.crm-open .workbench-columns{grid-template-columns:minmax(0,1fr)}.crm-open .workbench-side{display:none}.crm-open .focus-panel{min-width:0}.crm-open .focus-panel>.panel-title{display:none}.crm-content{color:#332f29;min-width:0}.crm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.crm-toolbar h2{font-size:25px;margin:8px 0}.crm-eyebrow{font-size:10px;letter-spacing:2px;color:#9b7f4c}.crm-muted,.crm-help,.crm-foot{color:#8a8376;font-size:12px;line-height:1.8}.crm-button,.crm-primary,.crm-link,.crm-close{font:inherit;cursor:pointer;border-radius:9px;padding:10px 15px;border:1px solid #e5dfd2;background:#fffdf8;color:#514638;white-space:nowrap}.crm-primary{background:#ab8951;border-color:#ab8951;color:white}.crm-button:hover,.crm-close:hover{background:#f4efe4}.crm-link{border:0;background:transparent;color:#96703b;padding:4px}.crm-button:focus-visible,.crm-primary:focus-visible,.crm-link:focus-visible,.crm-close:focus-visible{outline:3px solid #ad8b50;outline-offset:3px}.crm-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.crm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 30px}.crm-metrics article{padding:20px;border:1px solid #ece4d6;background:#fffdf9;border-radius:14px}.crm-metrics span{font-size:12px;color:#8b8070}.crm-metrics strong{display:block;font-size:34px;font-weight:500;margin-top:12px;color:#6c5435}.crm-table-wrap{overflow:auto;border:1px solid #eee8de;border-radius:12px;background:#fff}.crm-table{border-collapse:collapse;min-width:680px;width:100%;font-size:12px}.crm-table th{background:#f8f5ef;text-align:left;color:#968771;padding:14px 16px;font-weight:500;white-space:nowrap}.crm-table td{padding:16px;border-top:1px solid #f0ece5;max-width:230px;overflow-wrap:anywhere;line-height:1.7}.crm-table tr:hover td{background:#fcfaf5}.crm-badge{background:#f3eddf;color:#947444;padding:4px 9px;border-radius:20px;white-space:nowrap}.crm-empty{padding:30px;text-align:center;color:#999080;font-size:13px;line-height:1.8}.crm-section-title{font-size:15px;font-weight:500;margin:28px 0 14px}.crm-filter{display:flex;gap:10px;margin:16px 0}.crm-filter input,.crm-filter select{padding:11px 13px;border:1px solid #e7dfd0;border-radius:9px;background:white;font:inherit;font-size:13px;min-width:0}.crm-filter input{flex:1}.crm-notice,.crm-warning,.crm-pending{padding:12px 16px;background:#faf1dd;border:1px solid #ecdbb6;border-radius:10px;font-size:13px;line-height:1.7;margin-bottom:15px}.crm-notice.is-error,.crm-form-error{color:#a43e32}.crm-pending{display:flex;align-items:center;gap:14px;justify-content:space-between}.crm-pager{display:flex;align-items:center;justify-content:flex-end;gap:14px;font-size:12px;padding:16px 0;color:#8c806d}.crm-dialog{position:fixed;margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:680px;max-width:100vw;border:0;border-left:1px solid #e5ddcf;background:#fffdf9;padding:0;color:#3c352b;box-shadow:-10px 0 60px #17171424}.crm-dialog::backdrop{background:#17171460;backdrop-filter:blur(3px)}.crm-dialog-head{position:sticky;top:0;z-index:2;background:#fffdf9;display:flex;gap:15px;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid #eee7dc}.crm-dialog-head h2{margin:0;font-size:20px;font-weight:500}.crm-dialog-body{padding:12px 28px 32px}.crm-form{display:grid;gap:16px;padding-top:18px}.crm-field{display:grid;gap:8px;font-size:13px;color:#776b58}.crm-field input,.crm-field textarea,.crm-field select{width:100%;box-sizing:border-box;padding:12px;border:1px solid #e3daca;border-radius:8px;background:white;font:inherit;color:#3c352b;min-height:44px}.crm-field textarea{min-height:90px;resize:vertical}.crm-form-error:empty{display:none}.crm-form button:disabled{opacity:.6;cursor:wait}.crm-properties{display:grid;grid-template-columns:135px minmax(0,1fr);font-size:13px;line-height:1.8;gap:16px 20px}.crm-properties dt{color:#9b8b71}.crm-properties dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.crm-tabs{display:flex;gap:8px;overflow:auto;border-bottom:1px solid #e9e1d3;margin:25px 0}.crm-tabs button{border:0;background:none;border-radius:0;color:#978b79;padding:12px 8px}.crm-tabs button.active{border-bottom:2px solid #b58f51;color:#7a5a2d}.crm-history{border:1px solid #e9dfd0;border-radius:12px;padding:18px;margin:15px 0}.crm-history h3{font-size:15px;margin-top:0}.crm-history small{overflow-wrap:anywhere;color:#968a78}.crm-history p{font-size:13px;line-height:1.7}.crm-coach-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.crm-coach-card{border:1px solid #e6dece;background:white;padding:24px;border-radius:14px;display:flex;align-items:flex-start;flex-direction:column;gap:12px}.crm-coach-card h3,.crm-coach-card p{margin:0}.crm-coach-card p{font-size:12px;color:#9b8a70}.crm-coach-card strong{font-size:15px;font-weight:500}.crm-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#eee3cc;color:#96703b}.crm-foot{text-align:right;margin:20px 0 0}@media(max-width:760px){.crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-metrics article{padding:15px}.crm-toolbar{align-items:flex-start;gap:10px}.crm-toolbar h2{font-size:22px}.crm-filter{flex-direction:column}.crm-dialog-body{padding:12px 18px 26px}.crm-dialog-head{padding:20px 18px}.crm-properties{grid-template-columns:100px minmax(0,1fr);gap:12px}.crm-coach-grid{grid-template-columns:minmax(0,1fr)}.crm-pending{flex-direction:column;align-items:flex-start}.crm-pager{justify-content:center}.crm-open .focus-panel{padding:16px}}
/* Compact operational layout, inspired by Jiahui's warm white and gold workspace. */
#home-view.crm-open .workbench-hero,#home-view.crm-open>.dashboard-metrics,#home-view.crm-open>.section-heading{display:none}#home-view.crm-open .welcome-row{margin-bottom:12px}#home-view.crm-open .welcome-row .eyebrow,#home-view.crm-open .welcome-copy{display:none}#home-view.crm-open .welcome-row h1{font-size:23px}#home-view.crm-open .workbench-modules{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}#home-view.crm-open .workbench-module{min-height:0;padding:11px 15px;border-radius:9px;flex:none;width:auto}#home-view.crm-open .workbench-module small,#home-view.crm-open .workbench-module .module-icon{display:none}#home-view.crm-open .workbench-module strong{font-size:12px;margin:0}#workspace[data-kind="sales"]:not(.xy-open){--gold:#ad8b50;--gold-light:#eee4cf;--paper:#f7f5ef;color:#514638}#workspace[data-kind="sales"]:not(.xy-open) .workspace-main{background:#f7f5ef}#workspace[data-kind="sales"]:not(.xy-open) .sidebar{background:#211f19;border-color:#393427}#workspace[data-kind="sales"]:not(.xy-open) .sidebar .brand small{color:#baaa87}#workspace[data-kind="sales"]:not(.xy-open) .sidebar .nav-item{color:#c6baa2}#workspace[data-kind="sales"]:not(.xy-open) .sidebar .nav-item.active{background:#6e5935}#workspace[data-kind="sales"]:not(.xy-open) .workbench-module.active{background:#ad8b50;border-color:#ad8b50;color:white}#workspace[data-kind="sales"]:not(.xy-open) .workbench-module{color:#65563e;border-color:#e8dfce}#workspace[data-kind="sales"]:not(.xy-open) .outline-button{color:#8c6a36;border-color:#dfcfb1}#workspace[data-kind="sales"]:not(.xy-open) .role-badge{color:#876832;background:#efe7d8}#workspace[data-kind="sales"]:not(.xy-open) .welcome-row h1{color:#4b3d27}#workspace[data-kind="sales"]:not(.xy-open) .light-panel{border-color:#e9e1d2}
@media(max-width:760px){#home-view.crm-open .workbench-modules{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}#home-view.crm-open .workbench-module{padding:10px 12px}#home-view.crm-open .welcome-row h1{font-size:19px}#home-view.crm-open .workbench-controls{gap:6px}#home-view.crm-open .workbench-controls button{font-size:11px;padding:8px}}

/* Shared person/student references inherit the Xiaoyao theme in every workspace. */
.ty-references,.ty-reference{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;max-width:100%;white-space:normal}.ty-references{gap:10px}.ty-reference-name{font-weight:500;line-height:1.7;overflow-wrap:anywhere;color:inherit}.ty-reference a{color:#d4b476;text-decoration:none;white-space:normal;overflow-wrap:anywhere}.ty-reference a:hover{text-decoration:underline;text-underline-offset:4px}.ty-reference a:focus-visible{outline:2px solid #d4b476;outline-offset:4px;border-radius:3px}.ty-reference-meta,.ty-reference-status,.ty-reference-source{font-size:11px;line-height:1.6;color:#a0a18d}.ty-reference-status{font-weight:400}.ty-reference[data-resolution=restricted] .ty-reference-name,.ty-reference[data-resolution=missing] .ty-reference-name,.ty-reference[data-resolution=ambiguous] .ty-reference-name{color:#c5b68f}.crm-history-person{display:flex;flex-direction:column;gap:5px}.ty-reference-arrow{font-size:11px}@media(max-width:760px){.ty-reference a{padding:5px 0}.ty-reference-name{font-size:13px}.ty-reference-meta,.ty-reference-status{font-size:11px}.crm-table td:has(.ty-reference){min-width:140px}}
