@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');

:root{font-family:'DM Sans','Segoe UI',sans-serif;color:#202936;background:#f6f7f9;font-size:16px;--accent:#245bd8;--accent-soft:#edf2ff;--muted:#687485;--line:#e6e9ee;--sidebar:#fff;--surface:#fff;--canvas:#f6f7f9;--radius:9px;--nav-width:244px}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}a{color:inherit}button,input,select{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #7fa8ff}button{color:inherit}button svg,span[data-icon] svg{width:18px;height:18px;display:block;flex-shrink:0}button{border:0}input,select{color:#202936}button,select{touch-action:manipulation}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:16px;background:white;padding:14px;z-index:20}.skip-link:focus{top:12px}
.studio{min-height:100px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px 30px;border-bottom:1px solid #dfe4ec;gap:24px}.studio-name{display:flex;align-items:center;gap:11px;min-width:215px}.studio-symbol{display:grid;place-items:center;background:#202936;color:#fff;width:35px;height:35px;border-radius:10px;font-size:21px;font-weight:650}.studio-name strong{display:block;font-size:15px;letter-spacing:-.3px}.studio-name small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.variant-switch{display:flex;gap:5px;padding:5px;background:#f3f5f8;border:1px solid #e8ebf0;border-radius:12px}.variant-switch>button{display:flex;align-items:center;gap:9px;padding:9px 14px;background:transparent;border-radius:8px;white-space:nowrap;text-align:left;font-size:13px;font-weight:600;min-height:49px}.variant-switch>button>span{border:1px solid #d7dce5;border-radius:5px;width:25px;height:27px;display:grid;place-items:center;font-size:12px;font-weight:650;color:#728093}.variant-switch small{display:block;font-size:11px;font-weight:400;color:#697586;margin-top:3px}.variant-switch>button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #172b4d13;color:#204ca8}.variant-switch>button[aria-pressed=true]>span{background:#245bd8;border-color:#245bd8;color:white}.prototype-label{display:flex;gap:7px;align-items:center;font-size:11px;color:#687485;white-space:nowrap}.prototype-label i{width:6px;height:6px;border-radius:50%;background:#79a887}
.app-shell{display:flex;min-height:calc(100vh - 146px)}.sidebar{width:var(--nav-width);background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;flex-shrink:0;padding:27px 16px 0}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 27px}.brand-name{font-weight:700;font-size:35px;letter-spacing:-2px;line-height:1}.brand-name>span{color:var(--accent)}.brand-divider{height:22px;width:1px;background:var(--line)}.brand-caption{font-size:12px;color:var(--muted);line-height:1.4}.workspace-picker{display:flex;align-items:center;background:#fafbfc;border:1px solid var(--line);border-radius:8px;padding:10px 9px;width:100%;gap:8px;text-align:left;margin-bottom:32px}.workspace-avatar{width:30px;height:30px;display:grid;place-items:center;background:#e8eefb;color:#375aab;border:1px solid #dce5fa;border-radius:6px;font-size:14px;font-weight:650}.workspace-picker strong{display:block;font-size:12px;font-weight:600}.workspace-picker small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.workspace-picker>span:last-child{margin-left:auto;color:#93a0b0}.workspace-picker svg{width:14px!important}.nav-section-label{font-size:10px;letter-spacing:1.2px;font-weight:600;color:#85909e;margin:0 12px 12px}.main-navigation{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:10px;background:transparent;border-radius:7px;padding:11px 12px;text-align:left;font-size:13px;color:#657184;width:100%;min-height:42px}.nav-item:hover{background:#f4f6fa}.nav-item.active{color:var(--accent);background:var(--accent-soft);font-weight:600}.nav-item svg{width:17px!important}.nav-count{font-size:11px;margin-left:auto;border-radius:5px;padding:2px 6px;background:#f0f2f5;color:#788396;font-weight:500;min-width:22px;text-align:center}.active .nav-count{background:#dce7ff;color:#2d58b7}.attention-count{background:#fff5df;color:#95620b}.sidebar-note{margin:54px 12px 40px;color:#7a8798}.sidebar-note>span{display:block;margin-bottom:13px;color:#8595ac}.sidebar-note strong{font-size:14px;line-height:1.65;font-weight:500;color:#536178}.sidebar-note p{font-size:12px;line-height:1.8;max-width:165px}.sidebar-bottom{margin-top:auto}.help-button{display:flex;align-items:center;gap:9px;background:transparent;color:#738095;font-size:12px;padding:12px;margin-bottom:13px}.help-button svg{width:16px!important}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:19px 3px}.avatar{display:inline-grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;font-size:10px;letter-spacing:.1px;font-weight:600;background:#ede8f8;color:#6b5398}.profile-avatar{width:33px;height:33px;background:#e9e3da;color:#786548}.profile strong{font-size:11px;display:block}.profile small{font-size:10px;display:block;margin-top:4px;color:#788395}.online-dot{margin-left:auto;width:6px;height:6px;background:#458966;border-radius:50%;border:2px solid white;box-sizing:content-box}
.workspace-shell{min-width:0;flex:1}.topbar{height:59px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid var(--line);background:#fff;gap:16px}.breadcrumb{display:flex;align-items:center;gap:13px;color:#7a8698;font-size:12px;white-space:nowrap}.breadcrumb svg{width:15px!important;color:#8893a3}.breadcrumb strong{color:#475467;font-weight:500}.breadcrumb-slash{color:#c6ced8}.topbar-end{display:flex;align-items:center;gap:17px}.today{font-size:11px;color:#8290a1}.demo-tag{font-size:9px;font-weight:600;letter-spacing:.7px;color:#77879a;border:1px solid #e5e9f0;padding:5px 7px;border-radius:4px}.mini-avatar{background:#e9e3da;color:#786548;width:25px;height:25px;font-size:9px}main{padding:34px 34px 20px;max-width:1700px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.4px;color:#8490a2}.page-heading h1{display:flex;align-items:center;gap:12px;margin:9px 0 8px;font-size:30px;font-weight:600;letter-spacing:-1px;line-height:1.25}.heading-count{font-size:13px;background:#e8ecf1;border-radius:6px;padding:4px 8px;letter-spacing:0;font-weight:500;color:#68768a}.page-description{font-size:13px;color:#7b8797;margin:0;line-height:1.6}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:9px 13px;border-radius:6px;font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,box-shadow .15s}.button svg{width:16px!important;height:16px!important}.button.primary{background:var(--accent);color:white;box-shadow:0 1px 2px #12459d12}.button.primary:hover{background:#1646ae}.button.secondary{border:1px solid #dfe4ec;background:#fff;color:#526074}.button.secondary:hover{background:#f6f8fc}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:29px}.metric{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px 19px}.metric-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#798698;gap:6px}.metric-label svg{color:#9ba6b7;width:16px!important}.metric-bottom{display:flex;align-items:end;justify-content:space-between;gap:8px;margin-top:14px}.metric-bottom>strong{font-size:28px;letter-spacing:-1px;line-height:1.1;font-weight:550}.metric-bottom>span,.metric-link{font-size:10px;line-height:1.7;color:#8490a0;white-space:nowrap}.metric-bottom>span{display:flex;align-items:center;gap:5px}.metric-link{background:transparent;color:var(--accent);padding:0;text-decoration:underline;text-underline-offset:3px}.status-dot{width:5px;height:5px;border-radius:50%;display:inline-block}.blue{background:#5686e3}.green{background:#6ea78b}.portal-intro{display:none}
.records-panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;box-shadow:0 2px 4px #20293602}.panel-tabs{display:flex;align-items:center;gap:22px;padding:0 22px;min-height:58px;border-bottom:1px solid var(--line)}.panel-tabs>button{align-self:stretch;display:flex;align-items:center;gap:7px;background:transparent;padding:0 0 1px;border-bottom:2px solid transparent;color:#7a8695;font-size:12px;font-weight:500;white-space:nowrap}.panel-tabs>button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent)}.panel-tabs>button>span{font-size:10px;border-radius:4px;background:#f0f2f6;padding:2px 5px;color:#8a94a5}.panel-tabs>button[aria-pressed=true]>span{background:var(--accent-soft);color:var(--accent)}.panel-caption{font-size:10px;color:#9aa3b0;margin-left:auto;white-space:nowrap}.filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 21px}.search-field{display:flex;align-items:center;gap:9px;border:1px solid #e0e5ed;background:#fff;min-height:37px;max-width:395px;flex:1;padding:0 10px;border-radius:6px}.search-field>span{color:#91a0b2}.search-field svg{width:16px!important}.search-field:focus-within{outline:2px solid #96b5ff;outline-offset:1px}.search-field input{border:0;background:transparent;outline:0;min-width:0;width:100%;height:35px;font-size:11px}.search-field input::placeholder{color:#8e9aab}.search-field input:focus-visible{outline:0}.search-field kbd{font-family:inherit;font-size:10px;color:#a6afbb;border:1px solid #e5e9ef;border-radius:3px;padding:1px 5px}.filter-actions{display:flex;gap:9px}.select-wrap{display:flex;align-items:center;gap:7px;border:1px solid #dfe4ec;border-radius:6px;padding:0 10px;color:#7e8a9b;position:relative;background:white}.select-wrap select{appearance:none;max-width:190px;background:transparent;border:0;padding:9px 18px 9px 0;min-height:37px;font-size:11px;color:#526074}.select-wrap>span:last-child{position:absolute;right:9px;pointer-events:none}.select-wrap svg{width:14px!important}.filter-actions .button{min-height:37px;font-size:11px}.filter-summary{display:flex;justify-content:space-between;padding:0 22px 15px;gap:12px;font-size:11px;color:#65738a}.filter-summary button{color:var(--accent);background:transparent;font-size:11px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}th{height:42px;font-size:10px;font-weight:500;color:#8691a0;background:#fafbfc;border-top:1px solid #edf0f4;border-bottom:1px solid var(--line);padding:0 14px}th button{display:flex;align-items:center;gap:7px;background:transparent;padding:0;font-size:inherit;color:inherit}th button svg{width:12px;height:12px}td{padding:16px 14px;border-bottom:1px solid #eef0f4;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}.select-cell{padding-left:22px!important;width:39px;padding-right:6px!important}input[type=checkbox]{width:14px;height:14px;margin:0;accent-color:var(--accent);vertical-align:middle;cursor:pointer}.record-title{background:transparent;text-align:left;padding:0;display:block;font-size:12px;font-weight:550;max-width:260px;white-space:normal;line-height:1.4}.record-title:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.record-number{font-size:10px;color:#8b96a6;display:block;margin-top:4px;letter-spacing:.2px}.company-name{font-size:11px;color:#5f6e82}.status-badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;font-size:10px;padding:4px 7px;line-height:1.3;font-weight:500;white-space:nowrap}.status-badge svg{width:11px!important;height:11px!important}.status-active{background:#eef3ff;color:#416bc3}.status-review{background:#fff6e5;color:#9b741e}.status-done{background:#edf6f1;color:#4e896b}.owner-cell{display:flex;align-items:center;gap:7px}.owner-name{font-size:10px;color:#69778b}.owner-cell .avatar{width:25px;height:25px;font-size:8px}.due-date{font-size:11px;color:#7e8a9a;font-variant-numeric:tabular-nums}.due-date.overdue{color:#b15c4a}.due-date.today-due{color:#a57c28}.amount-cell{text-align:right;font-size:11px;font-variant-numeric:tabular-nums}.row-end{width:35px;padding-left:4px;padding-right:16px}.icon-button{width:29px;height:29px;border:1px solid #e4e8ee;border-radius:5px;background:white;display:inline-grid;place-items:center;color:#8b97a8;flex-shrink:0}.icon-button svg{width:14px!important;height:14px!important}.icon-button:hover:not(:disabled){background:#f1f5fb;color:var(--accent)}.row-end .icon-button{border:0;background:transparent}.table-footer{display:flex;align-items:center;justify-content:space-between;padding:15px 21px;border-top:1px solid var(--line);gap:16px;font-size:10px;color:#8d97a6}.table-footer strong{color:#5d6c80;font-weight:500}.pagination{display:flex;align-items:center;gap:9px}.pagination label{display:flex;align-items:center;gap:7px;margin-right:8px}.pagination select{border:1px solid #e3e7ed;background:white;border-radius:4px;padding:4px;font-size:10px}.pagination>span{margin-right:5px}.bulk-actions{display:flex;gap:14px;align-items:center;padding:11px 22px;background:#eff4ff;font-size:11px;color:#365fae;border-block:1px solid #dce7fc}.bulk-actions button{display:flex;gap:6px;align-items:center;background:transparent;color:#365fae;font-size:11px}.bulk-actions button svg{width:14px!important}.bulk-actions button:last-child{margin-left:auto;font-size:10px}.empty-state{text-align:center;padding:55px 20px}.empty-state>span{display:inline-grid;place-items:center;background:#f1f4fa;color:#8495ad;width:45px;height:45px;border-radius:12px}.empty-state h2{font-size:17px;font-weight:550;margin-top:20px}.empty-state p{color:#7a8798;font-size:13px;margin-bottom:22px}.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:19px;font-size:10px;color:#96a0ae}.workspace-footer>span{display:flex;gap:5px;align-items:center;line-height:1.5}.workspace-footer svg{width:12px!important;height:12px!important}.workspace-footer button{font-size:10px;color:#8b97a8;background:transparent;text-decoration:underline;text-underline-offset:3px}.studio-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:46px;background:#fff;border-top:1px solid #e1e6ed;padding:10px 30px;font-size:11px;color:#96a0ad}.studio-footer strong{font-weight:550;color:#556479;margin-right:12px}.footer-dot{margin:0 8px;color:#c5cbd4}.record-cards{display:none}
dialog{border:1px solid #e1e6ed;border-radius:14px;box-shadow:0 25px 100px #142b4b30;color:#202936;padding:28px;max-height:90vh;overflow:auto;background:#fff}dialog::backdrop{background:#182c4e44;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:21px}.dialog-header .icon-button{border:0;background:#f4f6f9}dialog h2{font-size:24px;font-weight:550;letter-spacing:-.6px;line-height:1.35;margin:0 0 12px}.dialog-description{font-size:13px;color:#7a8799;line-height:1.7;margin-bottom:25px}.new-dialog{width:520px}.new-dialog form>label,.form-row label{display:flex;flex-direction:column;font-size:12px;font-weight:550;gap:8px;margin-bottom:19px;position:relative}.required{position:absolute;right:0;color:#a27857}.new-dialog input,.new-dialog select{width:100%;border:1px solid #dce2eb;border-radius:6px;padding:11px 12px;font-size:13px;min-height:42px;background:#fff}.new-dialog input::placeholder{color:#9aa5b3}.form-row{display:flex;gap:15px}.form-row>label{flex:1;min-width:0}.form-note{font-size:11px;color:#78879c;display:flex;align-items:center;gap:8px;line-height:1.7;padding:12px 0}.form-note svg{width:15px!important}.form-buttons{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:20px;margin-top:12px}.record-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:465px;height:100dvh;max-height:none;max-width:100%;border-radius:0;padding:30px;animation:slide-in .15s ease-out}.record-dialog h2{margin-bottom:13px}.detail-company{font-size:14px;color:#79879a;margin:0 0 20px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px 18px;margin:30px 0;padding:24px 0;border-block:1px solid var(--line)}.detail-grid dt{font-size:11px;color:#8c97a8;margin-bottom:9px}.detail-grid dd{font-size:13px;margin:0;font-weight:500}.detail-section h3{font-size:13px;font-weight:550}.detail-section p{font-size:13px;line-height:1.8;color:#79879a}.detail-event{display:flex;gap:12px;margin:18px 0;padding:14px;background:#f7f9fc;border-radius:7px}.detail-event>span{color:#6e91c7}.detail-event strong{font-size:12px;display:block;font-weight:500}.detail-event small{font-size:11px;color:#8a96a7;display:block;margin-top:5px}.detail-footer{display:flex;gap:9px;margin-top:28px;flex-wrap:wrap}.info-dialog{width:520px}.info-dialog p,.info-dialog li{font-size:14px;line-height:1.8;color:#66758b}.info-dialog ul{padding-left:20px}.info-dialog>.button{margin-top:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border:1px solid #dfe8df;background:#fff;color:#35684d;box-shadow:0 8px 35px #20364920;border-radius:8px;padding:14px 22px;font-size:13px;z-index:10;max-width:90vw;line-height:1.6}
/* B: compact operations workspace */
body[data-theme=dense]{--sidebar:#182638;--nav-width:218px;--canvas:#eef1f5;--radius:4px;--accent:#1d66d8;background:var(--canvas)}body[data-theme=dense] .sidebar{border-right-color:#182638;padding-top:22px;color:#e3eaf3}body[data-theme=dense] .brand-caption{color:#8f9db0}body[data-theme=dense] .brand-divider{background:#3a4659}body[data-theme=dense] .workspace-picker{background:#223247;border-color:#344256}body[data-theme=dense] .workspace-picker small{color:#8c9baf}body[data-theme=dense] .workspace-avatar{background:#344963;color:#b9d1f6;border-color:#405572}body[data-theme=dense] .nav-item{color:#a7b5c8;border-radius:4px;padding:10px;min-height:38px}body[data-theme=dense] .nav-item.active{background:#2b4668;color:#e1ecff;box-shadow:inset 3px 0 #72a8ff}body[data-theme=dense] .nav-item:hover{background:#263950}body[data-theme=dense] .nav-count{background:#2c3b4e;color:#a5b4c9}body[data-theme=dense] .active .nav-count{background:#3b5e88;color:#e5efff}body[data-theme=dense] .nav-section-label{color:#6e819a}body[data-theme=dense] .sidebar-note{display:none}body[data-theme=dense] .profile{border-color:#324256}body[data-theme=dense] .profile strong{color:#c1cdde}body[data-theme=dense] .profile small,body[data-theme=dense] .help-button{color:#8c9bb1}body[data-theme=dense] main{padding:25px 26px 18px}body[data-theme=dense] .topbar{height:49px;padding-inline:26px}body[data-theme=dense] .page-heading{margin-bottom:19px}body[data-theme=dense] .page-heading h1{font-size:27px}body[data-theme=dense] .page-description{display:none}body[data-theme=dense] .metrics{gap:0;border:1px solid #dce2eb;margin-bottom:20px;background:#fff}body[data-theme=dense] .metric{border:0;border-right:1px solid #e6e9ee;border-radius:0;padding:13px 17px}body[data-theme=dense] .metric:last-child{border-right:0}body[data-theme=dense] .metric-bottom{margin-top:8px}body[data-theme=dense] .metric-bottom strong{font-size:23px}body[data-theme=dense] .panel-tabs{min-height:45px;padding-inline:17px}body[data-theme=dense] .filter-toolbar{padding:12px 16px}body[data-theme=dense] td{padding-top:10px;padding-bottom:10px}body[data-theme=dense] .record-title{font-size:12px}body[data-theme=dense] .record-number{margin-top:2px}body[data-theme=dense] tbody tr:nth-child(even){background:#fafbfd}body[data-theme=dense] th{height:35px;background:#f0f3f7}body[data-theme=dense] .table-footer{padding-block:10px}body[data-theme=dense] .button{border-radius:4px}body[data-theme=dense] .records-panel{box-shadow:0 1px 3px #15304b08}
/* C: spacious self-service portal */
body[data-theme=portal]{--accent:#176b61;--accent-soft:#eaf5f2;--radius:12px;background:#f7f9f9}body[data-theme=portal] .app-shell{display:block}body[data-theme=portal] .sidebar{width:100%;flex-direction:row;padding:0 5%;height:79px;align-items:center;border-right:0;border-bottom:1px solid var(--line);gap:30px}body[data-theme=portal] .brand{padding:0;gap:10px}body[data-theme=portal] .brand-name>span{color:#176b61}body[data-theme=portal] .workspace-picker,body[data-theme=portal] .nav-section-label,body[data-theme=portal] .sidebar-note,body[data-theme=portal] .help-button{display:none}body[data-theme=portal] .main-navigation{flex-direction:row;gap:6px;flex:1}body[data-theme=portal] .nav-item{width:auto;padding:10px;font-size:12px}body[data-theme=portal] .nav-item>span[data-icon],body[data-theme=portal] .nav-count{display:none}body[data-theme=portal] .sidebar-bottom{margin:0}body[data-theme=portal] .profile{border:0;padding:0}body[data-theme=portal] .profile strong{font-size:11px}body[data-theme=portal] .profile small,body[data-theme=portal] .online-dot{display:none}body[data-theme=portal] .topbar{display:none}body[data-theme=portal] main{max-width:1240px;padding:43px 40px 32px}body[data-theme=portal] .eyebrow{color:#7a9791}body[data-theme=portal] .page-heading h1{font-size:34px;margin-top:11px}body[data-theme=portal] .page-heading{margin-bottom:24px}body[data-theme=portal] .page-description{font-size:14px}body[data-theme=portal] .metrics{display:none}body[data-theme=portal] .portal-intro{display:flex;align-items:center;gap:14px;padding:19px 21px;background:#edf5f2;border:1px solid #dcebe5;border-radius:10px;margin-bottom:28px}body[data-theme=portal] .portal-intro strong{font-size:14px;font-weight:550;color:#315d50}body[data-theme=portal] .portal-intro p{font-size:12px;color:#718d82;margin:6px 0 0;line-height:1.7}body[data-theme=portal] .portal-intro-icon{color:#739e8c}body[data-theme=portal] .portal-intro svg{width:26px!important;height:26px!important}body[data-theme=portal] .records-panel{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}body[data-theme=portal] .panel-tabs{padding:0;gap:25px;min-height:48px}body[data-theme=portal] .panel-tabs>button{font-size:13px}body[data-theme=portal] .panel-caption{display:none}body[data-theme=portal] .filter-toolbar{padding:20px 0}body[data-theme=portal] .search-field{min-height:42px;max-width:470px}body[data-theme=portal] .search-field input{font-size:12px;height:40px}body[data-theme=portal] .select-wrap select{min-height:42px;font-size:12px}body[data-theme=portal] .filter-actions .button{font-size:12px}body[data-theme=portal] .table-scroll{display:none}body[data-theme=portal] .record-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body[data-theme=portal] .record-card{background:white;border:1px solid #e1e8e5;border-radius:10px;padding:21px;display:flex;flex-direction:column;gap:15px;transition:border-color .15s,box-shadow .15s}body[data-theme=portal] .record-card:hover{border-color:#a6c2b9;box-shadow:0 3px 12px #264e3910}body[data-theme=portal] .card-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8a9a94}body[data-theme=portal] .card-top .status-badge{font-size:10px}body[data-theme=portal] .record-card .record-title{font-size:16px;max-width:none;line-height:1.5;font-weight:550}body[data-theme=portal] .card-company{font-size:12px;color:#86958f;margin-top:-9px}body[data-theme=portal] .card-bottom{display:flex;align-items:center;gap:12px;border-top:1px solid #eef2ef;padding-top:14px;margin-top:auto;flex-wrap:wrap}body[data-theme=portal] .card-bottom>.amount-cell{margin-left:auto;font-size:13px}body[data-theme=portal] .card-bottom .due-date{font-size:11px}body[data-theme=portal] .table-footer{padding-inline:0;margin-top:22px}body[data-theme=portal] .button.primary:hover{background:#10564e}body[data-theme=portal] .heading-count{background:#e7eeeb;color:#71867c}body[data-theme=portal] .workspace-footer{padding-top:24px}body[data-theme=portal] .bulk-actions{border-radius:6px;margin-bottom:16px}body[data-theme=portal] .card-top label{display:flex;gap:8px;align-items:center}
@keyframes slide-in{from{transform:translateX(25px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(min-width:1650px){main{padding:42px 45px}.topbar{padding-inline:45px}.page-heading{margin-bottom:34px}.metrics{margin-bottom:34px}td{padding-block:19px}}
@media(max-width:1250px){.studio{padding:14px 20px}.prototype-label{display:none}.variant-switch>button{padding-inline:12px}.studio-name{min-width:190px}.metric-bottom>span{display:none}.metric-label{font-size:11px}.panel-caption{display:none}:root{--nav-width:220px}main{padding-inline:24px}.topbar{padding-inline:24px}.sidebar{padding-inline:12px}.owner-name{max-width:75px;white-space:normal;line-height:1.4}.today{display:none}td{padding-inline:11px}.record-title{max-width:220px}.page-description{font-size:12px}.studio-footer{padding-inline:20px}}
@media(max-width:950px){.studio{flex-wrap:wrap;gap:15px;justify-content:center}.studio-name{min-width:0;flex:1}.studio-name small{font-size:11px}.variant-switch{width:auto}.variant-switch small{display:none}.variant-switch>button{font-size:11px;padding:8px;gap:6px;min-height:35px}.variant-switch>button>span{width:21px;height:23px}.app-shell{min-height:calc(100vh - 130px)}:root{--nav-width:185px}.brand{padding-inline:8px}.brand-caption{font-size:10px}.workspace-picker small{font-size:9px}.workspace-picker>span:last-child{display:none}.nav-item{font-size:11px;gap:7px;padding-inline:9px}.nav-section-label{font-size:9px}.sidebar-note{margin-inline:9px}.sidebar-note strong{font-size:13px}.profile{gap:6px}.profile strong{font-size:10px}.profile-avatar{width:27px;height:27px}.profile small{font-size:9px}main{padding:26px 20px}.metrics{gap:8px}.metric{padding:14px 11px}.metric-label{font-size:10px}.metric-label>span{display:none}.metric-bottom{margin-top:13px}.metric-bottom strong{font-size:24px}.page-heading h1{font-size:27px}.page-description{max-width:330px}.filter-toolbar{flex-wrap:wrap;padding:16px}.search-field{max-width:none;flex-basis:100%}.filter-actions{margin-left:auto;width:100%;justify-content:space-between}.panel-tabs{gap:15px;padding-inline:16px}.panel-tabs>button{font-size:11px}.table-footer{padding-inline:16px}.studio-footer{font-size:10px}.studio-footer>span:last-child{display:none}body[data-theme=portal] .sidebar{padding-inline:25px;gap:20px}body[data-theme=portal] .brand-caption,body[data-theme=portal] .brand-divider{display:none}body[data-theme=portal] .profile>div{display:none}body[data-theme=portal] .nav-item{font-size:11px;padding:9px}body[data-theme=portal] main{padding-inline:28px}body[data-theme=dense]{--nav-width:185px}}
@media(max-width:680px){.studio{padding:13px 14px;justify-content:flex-start;gap:12px}.studio-name small{font-size:11px}.studio-name strong{font-size:13px}.studio-symbol{width:29px;height:29px;font-size:18px}.variant-switch{width:100%;gap:3px;padding:4px}.variant-switch>button{flex:1;justify-content:center;font-size:10px;padding:7px 4px;gap:6px}.variant-switch>button>span{width:19px;height:21px;font-size:10px}.sidebar{width:100%;padding:0 14px;display:block;border-right:0;border-bottom:1px solid var(--line)}.app-shell{display:block}.brand{display:none}.workspace-picker,.nav-section-label,.sidebar-note,.sidebar-bottom{display:none}.main-navigation{display:flex;flex-direction:row;gap:4px;overflow:auto;padding:9px 0}.nav-item{white-space:nowrap;width:auto;padding:9px 10px;min-height:38px;font-size:11px;gap:6px}.nav-item>span[data-icon],.nav-count{display:none}.topbar{height:43px;padding-inline:17px}.breadcrumb{font-size:10px;gap:9px}.demo-tag{font-size:8px}.mini-avatar{display:none}main{padding:25px 16px 20px}.page-heading{display:block;margin-bottom:22px}.page-heading h1{font-size:28px;margin-block:8px}.page-description{font-size:12px;max-width:none}.page-heading>.button{margin-top:18px;min-height:40px;font-size:12px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:22px}.metric{padding:15px}.metric-label{font-size:11px}.metric-label>span{display:block}.metric-bottom{margin-top:12px}.metric-bottom strong{font-size:27px}.metric-bottom>span{display:none}.metric-link{font-size:10px}.panel-tabs{gap:17px;padding-inline:13px;min-height:51px;overflow:auto}.panel-tabs>button{font-size:10px;gap:4px}.panel-tabs>button>span{font-size:9px;padding:2px 4px}.filter-toolbar{padding:14px 12px;gap:11px}.search-field input{font-size:11px}.search-field kbd{display:none}.filter-actions{gap:8px}.select-wrap{padding-left:8px;flex:1;max-width:220px}.select-wrap select{font-size:11px;width:100%;max-width:none}.filter-actions .button{padding-inline:10px}.table-scroll table{min-width:800px}.table-footer{align-items:flex-start;flex-direction:column;padding:14px 12px;font-size:10px;gap:13px}.pagination{width:100%;justify-content:flex-end;gap:8px}.pagination label{margin-right:auto}.table-footer>span{line-height:1.5}.workspace-footer{align-items:flex-start;font-size:9px;gap:12px}.workspace-footer button{font-size:9px;line-height:1.5;min-width:80px;text-align:right}.workspace-footer>span{max-width:220px}.studio-footer{padding:13px 16px;font-size:10px;line-height:1.7}.studio-footer strong{display:block;margin:0}.bulk-actions{flex-wrap:wrap;padding:12px;font-size:10px;gap:10px}.bulk-actions button{font-size:10px}.bulk-actions button:last-child{margin-left:0}.filter-summary{font-size:10px;padding-inline:12px}.record-dialog{padding:23px}.new-dialog,.info-dialog{padding:23px;max-width:calc(100% - 24px)}dialog h2{font-size:22px}.form-row{gap:10px}.new-dialog input{font-size:12px;padding:10px}.toast{bottom:16px;font-size:12px;white-space:normal;width:max-content;max-width:92vw}body[data-theme=dense] .sidebar{padding:0 14px}body[data-theme=dense] .brand{display:none}body[data-theme=dense] .workspace-picker{display:none}body[data-theme=dense] main{padding:22px 15px}body[data-theme=dense] .topbar{padding-inline:17px}body[data-theme=dense] .page-heading{display:flex;align-items:end;gap:12px}body[data-theme=dense] .page-heading .button{font-size:10px;padding:10px;margin:0}body[data-theme=dense] .page-heading h1{font-size:25px}body[data-theme=dense] .page-heading .heading-count{font-size:11px}body[data-theme=dense] .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}body[data-theme=dense] .metric{padding:12px 8px}body[data-theme=dense] .metric-label{font-size:9px;min-height:23px;line-height:1.3}body[data-theme=dense] .metric-label>span,body[data-theme=dense] .metric-link{display:none}body[data-theme=dense] .metric-bottom strong{font-size:21px}body[data-theme=dense] .filter-toolbar{padding:12px}body[data-theme=portal] .sidebar{height:auto;display:block;padding:0 16px}body[data-theme=portal] .brand{display:flex;padding-top:17px}body[data-theme=portal] .brand-name{font-size:29px}body[data-theme=portal] .sidebar-bottom{display:none}body[data-theme=portal] .main-navigation{padding-top:13px}body[data-theme=portal] .nav-item{font-size:11px;padding:9px 10px}body[data-theme=portal] main{padding:27px 17px}body[data-theme=portal] .page-heading h1{font-size:31px}body[data-theme=portal] .page-description{font-size:12px}body[data-theme=portal] .portal-intro{padding:16px;align-items:start;gap:10px}body[data-theme=portal] .portal-intro strong{font-size:13px}body[data-theme=portal] .portal-intro p{font-size:11px}body[data-theme=portal] .portal-intro svg{width:20px!important;height:20px!important}body[data-theme=portal] .record-cards{grid-template-columns:1fr;gap:12px}body[data-theme=portal] .record-card{padding:18px}body[data-theme=portal] .panel-tabs{gap:19px;min-height:44px}body[data-theme=portal] .panel-tabs>button{font-size:11px}body[data-theme=portal] .filter-toolbar{padding-block:17px}body[data-theme=portal] .filter-actions .button{font-size:11px}body[data-theme=portal] .table-footer{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Task-critical text stays readable in every density variant. */
.table-scroll,th{position:relative}
body .nav-item,body[data-theme=portal] .nav-item,body .panel-tabs>button,body[data-theme=portal] .panel-tabs>button{font-size:14px}
body .record-title,body[data-theme=dense] .record-title{font-size:14px;min-width:170px}
body .company-name,body .owner-name,body .due-date,body .amount-cell,body .status-badge,body[data-theme=portal] .card-top .status-badge,body[data-theme=portal] .card-bottom .due-date{font-size:14px}
body th{font-size:13px;color:#647286}
body .page-description,body[data-theme=portal] .page-description{font-size:16px;color:#647286}
body .button,body .filter-actions .button,body[data-theme=dense] .page-heading .button,body[data-theme=portal] .filter-actions .button{font-size:14px}
body .search-field input,body[data-theme=portal] .search-field input,body .select-wrap select,body[data-theme=portal] .select-wrap select{font-size:14px}
body .search-field{max-width:440px}
body .metric-label,body[data-theme=dense] .metric-label{font-size:13px;color:#647286}
body .owner-name{max-width:110px;white-space:normal;line-height:1.45}
body .status-badge{padding:5px 8px}
body .new-dialog form>label,body .form-row label,body .new-dialog input,body .new-dialog select,body .detail-grid dt,body .detail-grid dd,body .detail-section h3,body .detail-section p,body .detail-event strong{font-size:14px}
body .record-number,body .table-footer,body .pagination select,body .filter-summary,body .filter-summary button,body .metric-link,body .bulk-actions,body .bulk-actions button{font-size:12px}
body .records-panel{min-width:0}
body .nav-item{gap:8px}
body[data-theme=portal] .record-card .record-title{font-size:16px}
@media(max-width:1250px){body .panel-tabs{gap:16px}body .panel-tabs>button{font-size:13px}body .nav-item,body[data-theme=portal] .nav-item{font-size:13px}body .filter-toolbar{flex-wrap:wrap}body .filter-actions{margin-left:auto}body .search-field{min-width:260px}body .owner-name{max-width:100px}}
@media(max-width:680px){body .studio{max-width:100%}body .variant-switch{min-width:0}body .variant-switch>button{min-width:0;white-space:normal;text-align:left}body .variant-switch>button>span{flex-shrink:0}body .nav-item,body[data-theme=portal] .nav-item{font-size:14px}body .page-description,body[data-theme=portal] .page-description{font-size:16px;line-height:1.65}body .metric-label{font-size:13px}body .panel-tabs>button,body[data-theme=portal] .panel-tabs>button{font-size:14px}body .panel-tabs{gap:20px}body .search-field{min-width:0}body .filter-actions{min-width:0}body .filter-actions .button{font-size:13px}body .select-wrap select{font-size:13px}body .select-wrap{max-width:none;min-width:0}body .table-scroll table{min-width:1050px}body[data-theme=dense] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-theme=dense] .metric{padding:13px}body[data-theme=dense] .metric-label{font-size:13px}body[data-theme=dense] .page-heading{display:block}body[data-theme=dense] .page-heading .button{margin-top:15px}body .studio-footer{overflow-wrap:anywhere}body .form-row{flex-direction:column;gap:0}body[data-theme=portal] .card-bottom .owner-cell{flex:1;min-width:145px}body[data-theme=portal] .card-bottom{gap:10px}body .record-title{min-width:0}}
