:root{font-family:'DM Sans',Arial,sans-serif;color:#1c2635;background:#f5f7fb;font-synthesis:none;font-weight:400;--ink:#172338;--muted:#778297;--line:#e7ebf2;--blue:#315ce6;--nav:#111a2c;--green:#188258;--red:#c53e48;--amber:#986a00}
*{box-sizing:border-box}body{margin:0;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#dce5f6;padding:24px 15px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 32px}.brand-mark{width:36px;height:36px;border-radius:11px;background:#4468ee;display:grid;place-items:center;font:800 20px Manrope;color:white}.brand strong{font:700 15px Manrope;display:block;color:white}.brand small{display:block;color:#91a0ba;font-size:11px;margin-top:3px}.sidebar nav{display:grid;gap:6px}.nav-item{background:transparent;border:0;color:#aab5c8;padding:12px 13px;border-radius:9px;text-align:left;font:500 13px inherit;cursor:pointer;display:flex;align-items:center;gap:13px}.nav-item span{font-size:16px;width:18px;text-align:center}.nav-item:hover,.nav-item.active{background:#202d46;color:#fff}.nav-item.active{box-shadow:inset 3px 0 #6583ff}.sidebar-foot{margin-top:auto;border-top:1px solid #2c3850;padding:18px 8px 4px;font-size:12px;color:#b4c0d4}.sidebar-foot small{display:block;color:#77869f;margin:7px 0 0 15px;font-size:10px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#50c691;margin:0 8px 1px 0}.main{margin-left:238px;min-height:100vh;padding:0 38px 24px}.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.crumb{font-size:12px;color:#8490a2}.crumb span{margin:0 9px;color:#b0b8c5}.crumb b{color:#26344a;font-weight:600}.top-actions{display:flex;align-items:center;gap:12px}.save-state{font-size:11px;color:#718097;margin-right:3px}.button{border:1px solid transparent;border-radius:7px;padding:9px 13px;font:600 11px 'DM Sans',sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}.button.primary{background:var(--blue);color:white}.button.secondary{background:#fff;border-color:#dce2ec;color:#40506b}.button:hover{filter:brightness(.97)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;padding:28px 0 22px}.eyebrow{font-size:9px;letter-spacing:1.35px;font-weight:700;color:#7283a1;margin:0 0 8px}.page-head h1{font:700 25px Manrope;margin:0;color:#19263b;letter-spacing:-.5px}.subhead{font-size:12px;color:#7c899d;margin:7px 0 0}.view{display:none}.active-view{display:block}.panel{background:white;border:1px solid #e9edf3;border-radius:10px;box-shadow:0 3px 15px rgba(29,49,85,.025)}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid #edf0f5;gap:12px}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:9px}.search{width:230px}.input,.select{height:34px;border:1px solid #dfe5ee;border-radius:6px;padding:0 10px;background:#fff;color:#27364d;font:12px 'DM Sans',sans-serif;outline:none}.input:focus,.select:focus{border-color:#8199f4;box-shadow:0 0 0 3px #edf1ff}.search::placeholder{color:#9ba6b7}.select{min-width:125px}.count{font-size:11px;color:#78859a}.table-wrap{overflow:auto;max-height:calc(100vh - 260px)}table{width:100%;border-collapse:collapse;min-width:1100px}thead th{position:sticky;top:0;background:#f8f9fc;z-index:1;text-align:left;color:#7c8799;font-size:9px;text-transform:uppercase;letter-spacing:.5px;padding:11px 10px;border-bottom:1px solid #e9edf3;font-weight:700;white-space:nowrap}tbody td{border-bottom:1px solid #f0f2f6;padding:7px 9px;font-size:11px;color:#344258;white-space:nowrap}tbody tr:hover{background:#fbfcff}.group-cell{font-weight:600;color:#26344b}.variant-tag{display:inline-block;border:1px solid #e1e7f0;border-radius:4px;padding:3px 6px;background:#fafbfc;color:#60708a;font-size:10px}.grade-tag{display:inline-grid;place-items:center;min-width:51px;border-radius:4px;background:#eff3fb;color:#415777;padding:4px 6px;font-size:10px;font-weight:600}.row-input{width:78px;height:29px;border:1px solid transparent;border-radius:5px;padding:0 7px;text-align:right;font:11px 'DM Sans',sans-serif;color:#223149;background:transparent}.row-input:hover,.row-input:focus{border-color:#dce3ef;background:#fff;outline:none}.row-input.threshold{width:58px;color:#66758a}.route-select{max-width:150px;min-width:110px;height:29px;border:1px solid transparent;border-radius:5px;background:transparent;color:#4f6079;font:10px 'DM Sans',sans-serif}.route-select:hover,.route-select:focus{background:#fff;border-color:#dce3ef;outline:none}.margin-cell{font-weight:700;border-radius:5px;padding:6px 8px!important;text-align:right}.margin-cell.target-met{background:#e9f7ef;color:var(--green)}.margin-cell.below-target{background:#fff5dc;color:var(--amber)}.margin-cell.below-minimum{background:#fff0f0;color:var(--red)}.margin-cell.missing{color:#9aa4b3}.margin-sub{display:block;font-size:9px;font-weight:500;opacity:.8;margin-top:2px}.group-start td{border-top:1px solid #dfe5ed}.empty-note{padding:22px;color:#8290a3;font-size:12px}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:12px;padding:16px}.card{border:1px solid #e8edf3;border-radius:9px;padding:14px;background:#fff}.card h3{font:600 13px Manrope;margin:0 0 3px;color:#28364d}.card p{font-size:10px;color:#8a96a7;margin:0}.card .card-actions{margin-top:13px;display:flex;gap:7px;align-items:center}.metric{background:#f7f9fd;border-radius:6px;padding:9px 10px;margin-top:11px;display:flex;justify-content:space-between;font-size:10px;color:#69788e}.metric b{color:#2c3d57;font-weight:600}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px}.form-field label{display:block;font-size:10px;font-weight:600;color:#6c7a90;margin:0 0 5px}.form-field .input,.form-field .select{width:100%}.modal-backdrop{position:fixed;inset:0;background:#10192c66;z-index:10;display:grid;place-items:center;padding:20px}.modal{width:min(650px,100%);background:white;border-radius:12px;box-shadow:0 20px 70px #14244044;padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:17px}.modal h2{font:700 17px Manrope;margin:0}.modal .muted{font-size:11px;color:#8390a3;margin:6px 0 0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.divider{border:0;border-top:1px solid #edf0f4;margin:17px 0}.pill{background:#f1f4fa;border-radius:20px;padding:5px 9px;font-size:10px;color:#596982}.history-date{font-weight:700;color:#2e3c52}.history-count{font-size:10px;color:#8290a2}.history-grid{display:grid;grid-template-columns:190px 1fr;min-height:260px}.history-list{border-right:1px solid var(--line);padding:8px}.history-item{display:block;text-align:left;width:100%;border:0;background:#fff;padding:11px;border-radius:6px;font:11px 'DM Sans',sans-serif;cursor:pointer;color:#53627b}.history-item.active{background:#edf2ff;color:#3152c9;font-weight:600}.history-detail{padding:14px;overflow:auto}.history-detail table{min-width:800px}.mapping-table td{padding:9px}.mapping-table input{min-width:130px}footer{font-size:10px;color:#9aa4b3;padding:15px 1px}.toast{position:fixed;right:24px;bottom:22px;background:#15233a;color:#fff;padding:10px 14px;border-radius:7px;font-size:11px;box-shadow:0 8px 25px #13223c33;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:20}.toast.show{opacity:1;transform:translateY(0)}.danger{color:#bd4248}.small-button{height:29px;border:1px solid #dfe5ee;border-radius:5px;background:white;padding:0 9px;color:#51617a;font:600 10px 'DM Sans',sans-serif;cursor:pointer}.switch{accent-color:var(--blue)}.help{font-size:10px;color:#8995a7;line-height:1.5}.disabled{opacity:.45;pointer-events:none}
@media(max-width:980px){.sidebar{width:190px}.main{margin-left:190px;padding:0 20px 20px}.top-actions{gap:6px}.save-state{display:none}.search{width:175px}}@media(max-width:720px){.sidebar{position:static;width:auto;height:auto;padding:12px}.brand{padding:0 7px 10px}.sidebar nav{display:flex;overflow:auto}.nav-item{min-width:max-content;padding:9px}.sidebar-foot{display:none}.main{margin:0;padding:0 12px 15px}.topbar{height:52px}.page-head{padding:20px 0 15px;align-items:flex-start;gap:12px;flex-direction:column}.top-actions .secondary{display:none}.toolbar{align-items:flex-start;flex-direction:column}.toolbar-left{flex-wrap:wrap}.search{width:100%}.table-wrap{max-height:none}.history-grid{grid-template-columns:135px 1fr}.form-grid{grid-template-columns:1fr 1fr}}
/* Keep the full seven-grade setup visible in a scrollable dialog on smaller screens. */
.modal{max-height:calc(100vh - 40px);overflow:auto}

/* The main pricing grid keeps one device variant per row and groups prices by grade. */
.toolbar-left{flex-wrap:wrap}
.price-table{min-width:2445px;table-layout:fixed}
.price-table th,.price-table td{overflow:hidden;text-overflow:ellipsis}
.price-table thead tr:first-child th{top:0;height:34px;text-align:center}
.price-table thead tr:first-child th:nth-child(-n+4){text-align:left}
.price-table thead tr:nth-child(2) th{top:34px}
.price-table .grade-heading{background:#edf2fc;color:#526584;border-left:1px solid #dfe6f1}
.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){width:165px;min-width:165px;max-width:165px}
.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){width:125px;min-width:125px;max-width:125px}
.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){position:sticky;left:0;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){position:sticky;left:100px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){position:sticky;left:200px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){position:sticky;left:365px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){position:sticky;left:465px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){position:sticky;left:565px;z-index:3;background:#fff;box-shadow:3px 0 5px #1b2c4810}
.price-table thead tr:first-child th:nth-child(-n+6){z-index:5;background:#f8f9fc}
.price-table thead th.settings-heading,.price-table tbody td.settings-cell{position:sticky;right:0;z-index:4;width:62px;min-width:62px;max-width:62px;text-align:center;background:#fff;box-shadow:-3px 0 5px #1b2c4810}
.price-table thead th.settings-heading{z-index:6;background:#f8f9fc}
.price-table tbody tr:hover td:nth-child(-n+6),.price-table tbody tr:hover td.settings-cell{background:#fbfcff}
.price-table tbody td{height:50px}
.device-id{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px!important;color:#566781!important}
.device-name strong,.device-name span{display:block;overflow:hidden;text-overflow:ellipsis}
.device-name strong{font-size:11px;color:#26344b}
.device-name span{font-size:9px;color:#8692a4;margin-top:3px}
.price-input-cell{text-align:right;padding:7px 3px!important}
.price-input-cell .row-input{width:64px;max-width:100%;padding:0 2px}
.price-table .margin-cell{min-width:92px;text-align:right}
.settings-button{width:30px;height:30px;border:1px solid #dfe5ee;border-radius:7px;background:#fff;color:#61708a;font-size:16px;line-height:1;cursor:pointer}
.settings-button:hover,.settings-button:focus{border-color:#9aaff6;color:#315ce6;background:#f3f6ff;outline:none}
.grade-settings-table{min-width:1370px}
.grade-settings-table .channel-id-cell{color:#77849a;font:10px ui-monospace,SFMono-Regular,Consolas,monospace}
.grade-settings-table .route-select{min-width:155px;max-width:190px}
.grade-settings-table .row-input{min-width:90px}
.form-field .check-label{display:flex;align-items:center;gap:8px;min-height:34px;cursor:pointer}
.form-field .check-label input{accent-color:var(--blue)}
@media(max-width:720px){.toolbar-left{width:100%}.price-table{min-width:2445px}.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){left:0}.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){left:100px}.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){left:200px}.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){left:365px}.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){left:465px}.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){left:565px}}

/* Navigation is an off-canvas drawer, closed on first load. */
.sidebar{position:fixed;inset:0 auto 0 0;width:238px;height:100vh;transform:translateX(-102%);transition:transform .24s ease;z-index:31;box-shadow:12px 0 30px #09132924}
body.nav-open .sidebar{transform:translateX(0)}
.sidebar-backdrop{position:fixed;inset:0;z-index:30;border:0;padding:0;background:#10192c75;opacity:0;transition:opacity .2s ease;cursor:default}
.sidebar-backdrop.visible{opacity:1}
.sidebar-backdrop[hidden]{display:none}
.main{margin-left:0}
.topbar-start{display:flex;align-items:center;gap:13px;min-width:0}
.menu-toggle{width:34px;height:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #dfe5ee;border-radius:7px;background:#fff;cursor:pointer}
.menu-toggle span{width:15px;height:2px;border-radius:2px;background:#43536d}
.menu-toggle:hover,.menu-toggle:focus-visible{border-color:#9aaff6;background:#f3f6ff;outline:none}
.sidebar-close{margin-left:auto;width:29px;height:29px;border:1px solid #34415a;border-radius:7px;background:#202d46;color:#dce5f6;font:20px/1 Arial,sans-serif;cursor:pointer}
.sidebar-close:hover,.sidebar-close:focus-visible{background:#2d3b56;outline:2px solid #718bff}
.price-table thead tr:nth-child(2) th{text-align:center}
.price-table .price-input-cell .row-input{font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.sidebar,.sidebar-backdrop{transition:none}}
@media(max-width:720px){.sidebar{width:min(280px,85vw)}.sidebar nav{display:grid;overflow:auto}}

/* Device type profiles and the added identity column in the pricing grid. */
.price-table{min-width:2555px}
.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){width:110px;min-width:110px;max-width:110px}
.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){width:165px;min-width:165px;max-width:165px}
.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){width:100px;min-width:100px;max-width:100px}
.price-table thead tr:first-child th:nth-child(7),.price-table tbody td:nth-child(7){width:125px;min-width:125px;max-width:125px}
.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){position:sticky;left:0;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){position:sticky;left:100px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){position:sticky;left:210px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){position:sticky;left:310px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){position:sticky;left:475px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){position:sticky;left:575px;z-index:3;background:#fff}
.price-table thead tr:first-child th:nth-child(7),.price-table tbody td:nth-child(7){position:sticky;left:675px;z-index:3;background:#fff;box-shadow:3px 0 5px #1b2c4810}
.price-table thead tr:first-child th:nth-child(-n+7){z-index:5;background:#f8f9fc;text-align:left}
.price-table tbody tr:hover td:nth-child(-n+7),.price-table tbody tr:hover td.settings-cell{background:#fbfcff}
.channel-type-profile{border:1px solid #e8edf3;border-radius:8px;padding:9px 12px;margin:9px 0;background:#fbfcfe}
.channel-type-profile summary{cursor:pointer;color:#34445e;font-size:12px;font-weight:700;padding:3px 0 9px}
.channel-type-profile .form-grid{padding:0 0 8px}
.import-errors{max-height:145px;overflow:auto;padding:10px 12px;background:#fff5f4;border:1px solid #f3d7d6;border-radius:7px;color:#8c3b3d;font-size:11px}
.import-errors ul{margin:6px 0;padding-left:18px}
.import-preview{max-height:200px;overflow:auto;margin-top:12px;border:1px solid #e8edf3;border-radius:7px}
.import-preview div{padding:7px 10px;border-bottom:1px solid #f0f2f6;font-size:11px;color:#52617a}
.import-preview div:last-child{border-bottom:0}
@media(max-width:720px){.price-table{min-width:2555px}.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){left:0}.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){left:100px}.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){left:210px}.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){left:310px}.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){left:475px}.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){left:575px}.price-table thead tr:first-child th:nth-child(7),.price-table tbody td:nth-child(7){left:675px}}
.table-wrap.management-table-wrap{max-height:none}
.management-table{width:100%;table-layout:auto;border-collapse:collapse}
.management-table thead th{padding:12px 14px;background:#f8f9fc}
.management-table tbody td{padding:11px 14px;vertical-align:middle}
.management-table .management-name{font-weight:700;color:#26344b;min-width:170px}
.management-table .management-actions{white-space:nowrap;text-align:right}
.management-table .management-actions .small-button+.small-button{margin-left:5px}
.management-table .external-id-cell{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#77849a}
.management-table .profile-cell{min-width:205px;white-space:normal;line-height:1.4}
.management-table .profile-cell strong,.management-table .profile-cell small{display:block}
.management-table .profile-cell strong{font-size:10px;font-weight:700;color:#34445e}
.management-table .profile-cell small{margin-top:3px;font-size:9px;color:#8491a4}
.management-tabs{display:flex;gap:6px;padding:10px 16px 0;border-bottom:1px solid #edf0f5}
.management-tab{display:flex;align-items:center;gap:8px;padding:10px 13px;margin-bottom:-1px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;background:transparent;color:#718097;font:600 11px 'DM Sans',sans-serif;cursor:pointer}
.management-tab span{min-width:19px;padding:2px 6px;border-radius:10px;background:#f0f3f8;color:#8491a4;font-size:9px;text-align:center}
.management-tab:hover{background:#f8f9fc;color:#43536d}
.management-tab.active{border-color:#e8edf3;border-bottom-color:var(--blue);background:#fff;color:#33445f}
.management-tab.active span{background:#edf1ff;color:#4764d8}
.device-types-table{min-width:680px}
.channels-table{min-width:1000px}
.devices-table{min-width:1320px}
.devices-table th,.devices-table td{padding-left:12px;padding-right:12px}
.devices-table th:nth-child(4),.devices-table td:nth-child(4){min-width:165px}
.devices-table .management-actions{min-width:150px}
.device-filter-toolbar{justify-content:flex-start;padding-top:11px;padding-bottom:11px}
.management-table .small-button:disabled{opacity:.4;cursor:not-allowed}
.device-custom-fields{border:1px solid #e8edf3;border-radius:8px;padding:10px 12px;margin:14px 0;background:#fbfcfe}
.device-custom-fields-heading{display:flex;justify-content:space-between;margin-bottom:13px;color:#34445e;font-size:12px;font-weight:700}
.device-custom-fields-heading span{color:#8491a4;font-size:10px;font-weight:500}
.device-custom-fields .form-grid{max-height:340px;overflow:auto;padding:2px 3px 8px}
.device-custom-fields .check-label{display:flex;align-items:center;gap:7px;min-height:34px;font-size:10px;color:#53627b;cursor:pointer}
.device-custom-fields .check-label input{accent-color:var(--blue)}
.device-variable-form{max-height:min(58vh,480px);overflow:auto;padding:2px 4px 8px}
.device-variable-form .check-label{display:flex;align-items:center;gap:7px;min-height:34px;font-size:10px;color:#53627b;cursor:pointer}
.device-variable-form .check-label input{accent-color:var(--blue)}
.custom-field-tablist{display:flex;gap:5px;border-bottom:1px solid #e8edf3;margin:0 0 12px;padding:0 2px}
.custom-field-tab{display:flex;align-items:center;gap:7px;padding:9px 12px;margin-bottom:-1px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;background:transparent;color:#718097;font:600 11px 'DM Sans',sans-serif;cursor:pointer}
.custom-field-tab span{min-width:18px;padding:2px 5px;border-radius:10px;background:#f0f3f8;color:#8491a4;font-size:9px;text-align:center}
.custom-field-tab:hover{background:#f8f9fc;color:#43536d}
.custom-field-tab.active{border-color:#e8edf3;border-bottom-color:var(--blue);background:#fff;color:#33445f}
.custom-field-tab.active span{background:#edf1ff;color:#4764d8}
.custom-field-panel[hidden]{display:none}
.custom-field-panel .device-variable-form{max-height:min(54vh,440px)}
.custom-field-group+.custom-field-group{border-top:1px solid #e6eaf1;margin-top:11px;padding-top:11px}
.csv-format-select{height:29px;min-width:100px;font-size:10px}
.mapping-table{min-width:1120px}
.mapping-table input.switch{min-width:0;width:auto}
.page-head h1{font-family:'DM Sans',Arial,sans-serif}

/* Use DM Sans consistently throughout the interface. */
:root,body,button,input,select,textarea{font-family:'DM Sans',sans-serif}
.brand-mark,.brand strong,.page-head h1,.card h3,.modal h2,.sidebar-close,.device-id,.grade-settings-table .channel-id-cell,.management-table .external-id-cell{font-family:'DM Sans',sans-serif}
.price-table .grade-group-start{border-left:2px solid #cbd5e2!important}
.price-table .grade-heading.grade-group-start{border-left-width:3px!important}
.price-table .grade-inner-divider{border-left:1px solid #edf0f5!important}

/* Shared theme tokens and the light navigation drawer. */
:root{
  --blue:#e84967;
  --nav:#fff;
  --surface:#fff;
  --surface-raised:#f8f9fc;
  --surface-soft:#f7f9fd;
  --text:#344258;
  --text-strong:#19263b;
  --muted:#778297;
  --line:#e7ebf2;
  --border:#dfe5ee;
}
body{background:#f5f7fb;color:var(--text)}
.sidebar{background:var(--nav);color:#53627b;box-shadow:12px 0 30px #09132918}
.brand-mark{background:var(--blue)}
.brand strong{color:var(--text-strong)}
.brand small{color:#8793a6}
.nav-item{color:#617087}
.nav-item:hover,.nav-item.active{background:#f3f5f9;color:#26344a}
.nav-item.active{box-shadow:inset 3px 0 var(--blue)}
.sidebar-foot{border-top-color:#e1e6ee;color:#53627b}
.sidebar-foot small{color:#8793a6}
.sidebar-close{border-color:#dfe5ee;background:#fff;color:#53627b}
.sidebar-close:hover,.sidebar-close:focus-visible{border-color:var(--blue);background:#fff4f6;outline:2px solid #e8496740}
.button.primary{background:var(--blue)}
.input:focus,.select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #e8496722}
.settings-button:hover,.settings-button:focus{border-color:var(--blue);color:var(--blue);background:#fff4f6}
.history-item.active{background:#fcebef;color:#c83250}
.menu-toggle:hover,.menu-toggle:focus-visible{border-color:var(--blue);background:#fff4f6;outline:none}
.theme-toggle{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 11px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:#53627b;font:600 11px 'DM Sans',sans-serif;cursor:pointer;white-space:nowrap}
.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--blue);color:#c83250;background:#fff4f6;outline:none}
.theme-icon{font-size:15px;line-height:1}
.sidebar-foot{display:flex;flex-direction:column;align-items:stretch}
.sidebar-theme-toggle{width:100%;justify-content:flex-start;margin-top:16px}
.sidebar-foot .app-version{margin:12px 0 0;color:#8793a6;font-size:10px}
input[type="checkbox"],.switch{accent-color:var(--blue)}

/* Dark mode applies to the workspace surfaces while retaining the pink accent. */
body[data-theme="dark"]{
  color-scheme:dark;
  --nav:#151c29;
  --surface:#1c2533;
  --surface-raised:#252f3e;
  --surface-soft:#202a39;
  --text:#d8e0ec;
  --text-strong:#f1f4f8;
  --muted:#a0acc0;
  --line:#303b4d;
  --border:#3a4659;
  background:#111722;
  color:var(--text);
}
body[data-theme="dark"] .sidebar{color:#dce5f6;box-shadow:12px 0 30px #0005}
body[data-theme="dark"] .brand strong{color:#fff}
body[data-theme="dark"] .brand small{color:#91a0ba}
body[data-theme="dark"] .nav-item{color:#aab5c8}
body[data-theme="dark"] .nav-item:hover,body[data-theme="dark"] .nav-item.active{background:#252f40;color:#fff}
body[data-theme="dark"] .nav-item.active{box-shadow:inset 3px 0 var(--blue)}
body[data-theme="dark"] .sidebar-foot{border-top-color:#303b4d;color:#b4c0d4}
body[data-theme="dark"] .sidebar-foot small{color:#8795ab}
body[data-theme="dark"] .sidebar-foot .app-version{color:#8795ab}
body[data-theme="dark"] .sidebar-close{border-color:#3a4659;background:#202d40;color:#dce5f6}
body[data-theme="dark"] .sidebar-close:hover,body[data-theme="dark"] .sidebar-close:focus-visible{border-color:var(--blue);background:#392633;outline-color:#e8496766}
body[data-theme="dark"] .topbar{border-color:var(--line)}
body[data-theme="dark"] .crumb{color:#9eabc0}
body[data-theme="dark"] .crumb span{color:#68758a}
body[data-theme="dark"] .crumb b,body[data-theme="dark"] .page-head h1{color:var(--text-strong)}
body[data-theme="dark"] .save-state,body[data-theme="dark"] .subhead,body[data-theme="dark"] .count,body[data-theme="dark"] .history-count{color:var(--muted)}
body[data-theme="dark"] .eyebrow{color:#a4b3ca}
body[data-theme="dark"] .panel,body[data-theme="dark"] .card,body[data-theme="dark"] .modal{background:var(--surface);border-color:var(--line);color:var(--text)}
body[data-theme="dark"] .toolbar,body[data-theme="dark"] .management-tabs,body[data-theme="dark"] .custom-field-tablist{border-color:var(--line)}
body[data-theme="dark"] .input,body[data-theme="dark"] .select{background:#151c28;border-color:var(--border);color:var(--text)}
body[data-theme="dark"] .input::placeholder{color:#78869b}
body[data-theme="dark"] .input:focus,body[data-theme="dark"] .select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #e8496730}
body[data-theme="dark"] thead th{background:var(--surface-raised);border-color:var(--line);color:#aab6c9}
body[data-theme="dark"] tbody td{border-color:#2b3545;color:var(--text)}
body[data-theme="dark"] tbody tr:hover{background:#222c3a}
body[data-theme="dark"] .price-table .grade-heading{background:#252f40;color:#c2ccda;border-color:#3a4659}
body[data-theme="dark"] .price-table thead tr:first-child th:nth-child(-n+7){background:#202a39}
body[data-theme="dark"] .price-table tbody td:nth-child(-n+7){background:var(--surface)}
body[data-theme="dark"] .price-table thead th.settings-heading,body[data-theme="dark"] .price-table tbody td.settings-cell{background:#1c2533}
body[data-theme="dark"] .price-table tbody tr:hover td:nth-child(-n+7),body[data-theme="dark"] .price-table tbody tr:hover td.settings-cell{background:#222c3a}
body[data-theme="dark"] .price-table .grade-group-start{border-left-color:#526075!important}
body[data-theme="dark"] .price-table .grade-inner-divider{border-left-color:#3a4659!important}
body[data-theme="dark"] .device-id{color:#b4c0d4!important}
body[data-theme="dark"] .device-name strong,body[data-theme="dark"] .management-table .management-name{color:#e4eaf2}
body[data-theme="dark"] .device-name span,body[data-theme="dark"] .management-table .external-id-cell{color:#9ba9bd}
body[data-theme="dark"] .row-input,body[data-theme="dark"] .route-select{color:#d8e0ec}
body[data-theme="dark"] .row-input:hover,body[data-theme="dark"] .row-input:focus,body[data-theme="dark"] .route-select:hover,body[data-theme="dark"] .route-select:focus{background:#151c28;border-color:#46536a;color:#f1f4f8}
body[data-theme="dark"] .row-input.threshold{color:#aebbd0}
body[data-theme="dark"] .margin-cell.target-met{background:#19382f;color:#80d4ad}
body[data-theme="dark"] .margin-cell.below-target{background:#3b3421;color:#e6c46c}
body[data-theme="dark"] .margin-cell.below-minimum{background:#40282d;color:#f08d95}
body[data-theme="dark"] .margin-cell.missing{color:#a0acc0}
body[data-theme="dark"] .grade-tag,body[data-theme="dark"] .variant-tag,body[data-theme="dark"] .pill,body[data-theme="dark"] .metric,body[data-theme="dark"] .channel-type-profile,body[data-theme="dark"] .device-custom-fields{background:var(--surface-soft);border-color:var(--line);color:#c4cede}
body[data-theme="dark"] .grade-tag{background:#293548;color:#c4cede}
body[data-theme="dark"] .variant-tag{background:#202a39;color:#bac6d8}
body[data-theme="dark"] .metric b{color:#e0e7f0}
body[data-theme="dark"] .card h3,body[data-theme="dark"] .history-date,body[data-theme="dark"] .management-table .profile-cell strong,body[data-theme="dark"] .channel-type-profile summary{color:#e2e8f0}
body[data-theme="dark"] .card p,body[data-theme="dark"] .form-field label,body[data-theme="dark"] .management-table .profile-cell small,body[data-theme="dark"] .device-custom-fields-heading span,body[data-theme="dark"] .device-custom-fields .check-label,body[data-theme="dark"] .device-variable-form .check-label,body[data-theme="dark"] .help,body[data-theme="dark"] .modal .muted,body[data-theme="dark"] footer,body[data-theme="dark"] .empty-note{color:#9eabc0}
body[data-theme="dark"] .button.secondary,body[data-theme="dark"] .small-button,body[data-theme="dark"] .settings-button,body[data-theme="dark"] .menu-toggle,body[data-theme="dark"] .theme-toggle{background:#202a39;border-color:var(--border);color:#d3dce9}
body[data-theme="dark"] .button.secondary:hover,body[data-theme="dark"] .small-button:hover,body[data-theme="dark"] .settings-button:hover,body[data-theme="dark"] .theme-toggle:hover,body[data-theme="dark"] .theme-toggle:focus-visible{border-color:var(--blue);background:#392633;color:#ffb6c3}
body[data-theme="dark"] .menu-toggle span{background:#d3dce9}
body[data-theme="dark"] .history-list{border-color:var(--line)}
body[data-theme="dark"] .history-item{background:transparent;color:#b8c4d5}
body[data-theme="dark"] .history-item:hover{background:#252f40;color:#f1f4f8}
body[data-theme="dark"] .history-item.active{background:#392633;color:#ff9caf}
body[data-theme="dark"] .divider,body[data-theme="dark"] .group-start td,body[data-theme="dark"] .custom-field-group+.custom-field-group{border-color:var(--line)}
body[data-theme="dark"] .management-tab,body[data-theme="dark"] .custom-field-tab{color:#a7b3c6}
body[data-theme="dark"] .management-tab:hover,body[data-theme="dark"] .custom-field-tab:hover{background:#252f40;color:#e5ebf3}
body[data-theme="dark"] .management-tab.active,body[data-theme="dark"] .custom-field-tab.active{border-color:var(--line);border-bottom-color:var(--blue);background:var(--surface);color:#f1f4f8}
body[data-theme="dark"] .management-tab span,body[data-theme="dark"] .custom-field-tab span{background:#303b4d;color:#b7c3d4}
body[data-theme="dark"] .management-tab.active span,body[data-theme="dark"] .custom-field-tab.active span{background:#392633;color:#ff9caf}
body[data-theme="dark"] .import-errors{background:#40282d;border-color:#633940;color:#ffc0c5}
body[data-theme="dark"] .import-preview{border-color:var(--line)}
body[data-theme="dark"] .import-preview div{border-color:var(--line);color:#c6d0df}
body[data-theme="dark"] .custom-field-group+.custom-field-group{border-top-color:var(--line)}
body[data-theme="dark"] .toast{background:#e84967;color:#fff}
@media(max-width:720px){.sidebar-foot{display:flex}.theme-toggle{padding:0 8px}.sidebar-theme-toggle .theme-label{display:inline}}

.login-page{min-height:100vh;background:#f5f7fb;color:#1c2635;display:grid;place-items:center;padding:24px}
.login-shell{width:min(420px,100%)}
.login-card,.login-setup{background:#fff;border:1px solid #e6eaf1;border-radius:14px;box-shadow:0 12px 40px #15233a0d;padding:30px}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px}
.login-brand .brand-mark{background:#e84967;color:#fff;font-family:'DM Sans',sans-serif}
.login-brand strong{display:block;font-size:16px;font-weight:700}
.login-brand small{display:block;color:#7c899d;font-size:12px;margin-top:3px}
.login-card h1{font-size:25px;margin:0;letter-spacing:-.5px}
.login-intro{font-size:13px;line-height:1.5;color:#7c899d;margin:8px 0 24px}
.login-field{display:block;margin:16px 0;color:#56647b;font-size:12px;font-weight:600}
.login-field input{display:block;width:100%;height:42px;margin-top:7px;padding:0 12px;border:1px solid #dfe5ee;border-radius:7px;background:#fff;color:#27364d;font:14px 'DM Sans',sans-serif}
.login-field input:focus{outline:2px solid #e8496740;border-color:#e84967}
.login-submit{width:100%;height:42px;margin-top:7px;font-size:13px}
.login-submit:disabled{opacity:.65;cursor:wait}
.login-help{color:#8a96a7;font-size:11px;line-height:1.5;text-align:center;margin:18px 0 0}
.login-message{color:#bd4248;background:#fff0f0;padding:10px 12px;border-radius:7px;font-size:12px;line-height:1.4}
.login-message.success{color:#167650;background:#e9f7ef}
.login-switch-code,.login-back{display:block;margin:10px auto 0;font:600 12px 'DM Sans',sans-serif}
.login-back{border:0;background:transparent;color:#687790;cursor:pointer;padding:7px}
.login-back:hover,.login-back:focus-visible{color:#d53d5c;text-decoration:underline;outline:none}
.login-setup{margin-top:14px;color:#76540b;background:#fff7df;border-color:#f0dfaa;font-size:12px;line-height:1.6}
.login-setup code{font:11px ui-monospace,SFMono-Regular,Consolas,monospace;background:#f7eac3;padding:1px 4px;border-radius:3px}
body[data-theme="dark"].login-page{background:#111722;color:#e4e9f2}
body[data-theme="dark"] .login-card{background:#1b2331;border-color:#333e50;box-shadow:0 12px 40px #0003}
body[data-theme="dark"] .login-intro,body[data-theme="dark"] .login-brand small,body[data-theme="dark"] .login-help{color:#a1adc0}
body[data-theme="dark"] .login-field{color:#c1cad8}
body[data-theme="dark"] .login-field input{background:#151c29;border-color:#3a4659;color:#eef2f8}
body[data-theme="dark"] .login-setup{color:#f1d78b;background:#352e1c;border-color:#665524}
body[data-theme="dark"] .login-back{color:#a8b4c8}
body[data-theme="dark"] .login-message{color:#f08d95;background:#40282d}
body[data-theme="dark"] .login-message.success{color:#80d4ad;background:#19382f}
body.read-only #snapshot-button,body.read-only #export-link{display:none}
body.two-factor-setup-required .top-actions{display:none}
.admin-only-nav[hidden]{display:none}
.users-table{min-width:1080px}
.audit-table{min-width:720px}
.users-table .user-role-select{min-width:120px}
.user-active{background:#e8f6ee;color:#147348}
.user-disabled{background:#fff0f0;color:#b83f48}
.user-temp-password{display:inline-block;margin-left:4px}
.users-table button:disabled{opacity:.45;cursor:not-allowed}
.user-two-factor-required{display:inline-flex;align-items:center;gap:6px;color:#617087;font-size:11px;white-space:nowrap}
.user-two-factor-required input{accent-color:#e84967}
.credential-field{display:block;margin-top:14px}
.credential-field span{display:block;font-size:11px;font-weight:600;color:#627189;margin-bottom:6px}
.credential-field input{width:100%;height:40px;font:600 14px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.4px}
.user-form-grid{grid-template-columns:1fr 1.3fr .8fr;margin-bottom:14px}
body[data-theme="dark"] .user-active{background:#19382f;color:#80d4ad}
body[data-theme="dark"] .user-disabled{background:#40282d;color:#f08d95}
body[data-theme="dark"] .credential-field span{color:#abb7c9}
body[data-theme="dark"] .credential-field input{background:#151c29;border-color:#3a4659;color:#eef2f8}
@media(max-width:720px){.user-form-grid{grid-template-columns:1fr}}
.email-settings-form{padding:18px}
.email-form-grid{grid-template-columns:repeat(3,minmax(150px,1fr));align-items:end}
.email-secure-check{display:flex;align-items:center;gap:8px;min-height:34px;font-size:11px;color:#627189}
.email-secure-check input{accent-color:#e84967}
.email-security-note{margin:13px 0 17px}
.email-settings-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.email-settings-actions>div{display:flex;gap:8px;flex-wrap:wrap}
.email-settings-message{margin:0;font-size:11px;line-height:1.5}
.email-settings-message.success{color:#167650}
.email-settings-message.error{color:#bd4248}
body[data-theme="dark"] .email-secure-check{color:#bdc8d8}
body[data-theme="dark"] .email-settings-message.success{color:#80d4ad}
body[data-theme="dark"] .email-settings-message.error{color:#f08d95}
@media(max-width:720px){.email-form-grid{grid-template-columns:1fr}}

/* Optional authenticator-app two-factor settings. */
.security-panel{max-width:880px}
.security-content{padding:18px;display:grid;gap:16px}
.security-content>p{max-width:720px;margin:0;color:#687790;font-size:12px;line-height:1.6}
.security-policy{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;background:#f7f9fd;border:1px solid #e8edf3;border-radius:8px}
.security-policy>div{min-width:0}
.security-policy .help{margin:4px 0 0}
.security-policy .check-label{flex:0 0 auto;white-space:nowrap}
.users-two-factor-policy{margin:16px}
.security-enrollment{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:center}
.security-qr{display:grid;justify-items:center;gap:8px;padding:12px;background:#fff;border:1px solid #e8edf3;border-radius:8px;color:#687790;font-size:11px;text-align:center}
.security-qr img,.security-qr-placeholder{display:block;width:176px;height:176px}
.security-qr img{object-fit:contain}
.security-qr-placeholder{display:grid;place-items:center;padding:12px;background:#f7f9fd}
.security-enrollment-manual{display:grid;gap:9px;min-width:0}
.security-enrollment-manual>p{margin:0;color:#687790;font-size:12px;line-height:1.6}
.security-secret{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#f7f9fd;border:1px solid #e8edf3;border-radius:8px}
.security-secret code,.security-code-list code{font:600 12px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.5px;color:#33445e}
.security-secret code{overflow-wrap:anywhere}
.security-codes{display:grid;gap:12px;padding:14px;background:#f7f9fd;border:1px solid #e8edf3;border-radius:8px}
.security-codes .help{margin:4px 0 0}
.security-code-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.security-code-list code{display:block;padding:9px 10px;text-align:center;background:#fff;border:1px solid #e1e7f0;border-radius:6px}
.security-code-actions{display:flex;gap:8px;flex-wrap:wrap}
.security-codes-confirm{display:flex;align-items:center;gap:8px;color:#596982;font-size:11px}
.security-codes-confirm input{accent-color:#e84967}
.security-action-form{display:grid;grid-template-columns:minmax(190px,1fr) minmax(190px,260px) auto;align-items:end;gap:12px;padding:14px 0;border-top:1px solid #edf0f5}
.security-action-form>div>b{font-size:12px}
.security-action-form>div .help{margin:4px 0 0}
.security-action-form .form-field{min-width:0}
.security-action-form .button{min-height:34px}
.security-disable-form{border-bottom:1px solid #edf0f5;padding-bottom:0}
body[data-theme="dark"] .security-content>p,body[data-theme="dark"] .security-codes-confirm{color:#bdc8d8}
body[data-theme="dark"] .security-policy{background:#202a39;border-color:#303b4d}
body[data-theme="dark"] .user-two-factor-required{color:#bdc8d8}
body[data-theme="dark"] .security-qr{border-color:#303b4d;color:#52627b}
body[data-theme="dark"] .security-qr-placeholder{background:#202a39;color:#bdc8d8}
body[data-theme="dark"] .security-enrollment-manual>p{color:#bdc8d8}
body[data-theme="dark"] .security-secret,body[data-theme="dark"] .security-codes{background:#202a39;border-color:#303b4d}
body[data-theme="dark"] .security-secret code,body[data-theme="dark"] .security-code-list code{color:#d8e0ec}
body[data-theme="dark"] .security-code-list code{background:#151c28;border-color:#3a4659}
body[data-theme="dark"] .security-action-form,body[data-theme="dark"] .security-disable-form{border-color:#303b4d}
@media(max-width:720px){.security-policy{align-items:flex-start;flex-direction:column}.security-enrollment{grid-template-columns:1fr}.security-qr{justify-self:center}.security-action-form{grid-template-columns:1fr}.security-code-list{grid-template-columns:1fr 1fr}}

/* Pricing grid identity columns after removing the device type column. */
.price-table{min-width:2445px}
.price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){width:100px;min-width:100px;max-width:100px;left:0}
.price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){width:100px;min-width:100px;max-width:100px;left:100px}
.price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){width:165px;min-width:165px;max-width:165px;left:200px}
.price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){width:100px;min-width:100px;max-width:100px;left:365px}
.price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){width:100px;min-width:100px;max-width:100px;left:465px}
.price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){width:125px;min-width:125px;max-width:125px;left:565px;box-shadow:3px 0 5px #1b2c4810}
.price-table thead tr:first-child th:nth-child(7){left:auto;z-index:2;width:auto;min-width:0;max-width:none;box-shadow:none;text-align:center}
.price-table tbody td:nth-child(7){position:relative;left:auto;z-index:auto;width:auto;min-width:0;max-width:none;box-shadow:none}
.price-table thead tr:first-child th:nth-child(-n+6){z-index:5;background:#f8f9fc;text-align:left}
.price-table tbody tr:hover td:nth-child(-n+6),.price-table tbody tr:hover td.settings-cell{background:#fbfcff}
.devices-table{min-width:1180px}
body[data-theme="dark"] .price-table thead tr:first-child th:nth-child(-n+6){background:#202a39}
body[data-theme="dark"] .price-table tbody td:nth-child(-n+6){background:var(--surface)}
body[data-theme="dark"] .price-table tbody tr:hover td:nth-child(-n+6),body[data-theme="dark"] .price-table tbody tr:hover td.settings-cell{background:#222c3a}
@media(max-width:720px){
  .price-table{min-width:2445px}
  .price-table thead tr:first-child th:nth-child(1),.price-table tbody td:nth-child(1){left:0}
  .price-table thead tr:first-child th:nth-child(2),.price-table tbody td:nth-child(2){left:100px}
  .price-table thead tr:first-child th:nth-child(3),.price-table tbody td:nth-child(3){left:200px}
  .price-table thead tr:first-child th:nth-child(4),.price-table tbody td:nth-child(4){left:365px}
  .price-table thead tr:first-child th:nth-child(5),.price-table tbody td:nth-child(5){left:465px}
  .price-table thead tr:first-child th:nth-child(6),.price-table tbody td:nth-child(6){left:565px}
  .price-table thead tr:first-child th:nth-child(7){left:auto}
  .price-table tbody td:nth-child(7){left:auto;position:relative}
}
.price-type-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
.price-type-tabs .management-tab{flex:0 0 auto;white-space:nowrap}

/* Compact navigation grouped into workspace, settings, and account areas. */
.brand-mark{width:42px;height:42px;font:800 16px 'DM Sans',sans-serif;letter-spacing:-.8px}
.sidebar nav{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;gap:14px;overflow-y:auto;padding-right:2px}
.sidebar-primary,.sidebar-menu-group{display:grid;gap:4px}
.sidebar-bottom-groups{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.sidebar-menu-group{padding-top:0}
.sidebar-menu-group[hidden],#security-nav[hidden],#password-button[hidden],#logout-button[hidden]{display:none}
.sidebar-section-toggle{display:flex;align-items:center;justify-content:flex-start;width:100%;padding:12px 13px;border:0;border-radius:9px;background:transparent;color:#617087;font:500 13px 'DM Sans',sans-serif;letter-spacing:normal;text-align:left;text-transform:none;cursor:pointer}
.sidebar-section-toggle:hover,.sidebar-section-toggle[aria-expanded="true"]{background:#f3f5f9;color:#26344a}
.sidebar-section-toggle[aria-expanded="true"]{box-shadow:inset 3px 0 var(--blue)}
.sidebar-section-toggle:focus-visible{outline:2px solid #e8496740;outline-offset:1px}
.sidebar-submenu{display:grid;gap:4px}
.sidebar-submenu[hidden]{display:none}
.sidebar-account-summary{display:grid;gap:3px;padding:2px 13px 6px;min-width:0}
.sidebar-account-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53627b;font-size:11px;font-weight:700}
.sidebar-account-summary small{color:#8793a6;font-size:10px}
.sidebar-action-item{font:500 13px 'DM Sans',sans-serif}
.sidebar-action-item:hover{background:#fff4f6;color:#c83250}
.sidebar-foot{gap:0;padding-top:12px;border-top:0}
.sidebar-theme-toggle{margin-top:0}
.sidebar-foot .app-version{margin:9px 0 0 2px}
body[data-theme="dark"] .sidebar-section-toggle{color:#aab5c8}
body[data-theme="dark"] .sidebar-section-toggle:hover,body[data-theme="dark"] .sidebar-section-toggle[aria-expanded="true"]{background:#252f40;color:#fff}
body[data-theme="dark"] .sidebar-section-toggle[aria-expanded="true"]{box-shadow:inset 3px 0 var(--blue)}
body[data-theme="dark"] .sidebar-section-toggle:focus-visible{outline-color:#e8496766}
body[data-theme="dark"] .sidebar-account-summary small{color:#8795ab}
body[data-theme="dark"] .sidebar-account-summary strong{color:#d5deeb}
body[data-theme="dark"] .sidebar-action-item:hover{background:#392633;color:#ffb6c3}
.nav-item .nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;font-size:20px;line-height:1}
.nav-item .nav-icon svg,.sidebar-toggle-content svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav-item .currency-icon{font-size:22px;font-weight:700}
.sidebar-toggle-content{display:flex;align-items:center;gap:13px}
.sidebar-toggle-content svg{width:20px;height:20px;flex:0 0 20px}
#page-action{display:flex;align-items:center;gap:8px}
