/* V143 · Shared premium language for the remaining modules. Print layouts are untouched. */
@media screen {
body.sx-premium { --sx-cobalt:#1c54c9;--sx-deep:#173d86;--sx-emerald:#087e67;--sx-amber:#9c6813;--sx-ink:#183353;--sx-muted:#60748e;--sx-line:#dce5f1;--sx-soft:#f0f5fc; }
body.sx-premium .workspace { background:#f2f6fc!important; }
body.sx-premium #crmView>.workspace>.topbar { background:linear-gradient(115deg,#123983,#1b53c3 60%,#276de0)!important;border-bottom:1px solid #6c98e44d!important;box-shadow:0 5px 22px #123e811c!important; }
body.sx-premium .topbar #pageTitle { color:#fff!important;font-weight:600!important;letter-spacing:-.4px; }
body.sx-premium .topbar #pageEyebrow { color:#c0d5ff!important;letter-spacing:1.6px;font-size:9px; }
body.sx-premium .topbar .premium-profile-avatar { border-radius:50%!important; }
body.sx-premium .nav-sidebar { padding:22px 12px 14px!important;border-right:1px solid #d7e3f4!important; }
body.sx-premium .app-brand { padding:0 8px 22px; }
body.sx-premium .brand-copy strong { letter-spacing:.5px;font-size:17px;color:#18385e!important; }
body.sx-premium .brand-copy em { color:#1d64d9!important; }
body.sx-premium .nav-menu-scroll { padding:2px 3px 15px; }
body.sx-premium .nav-sidebar .nav-group { margin:4px 0!important;border:1px solid transparent!important;border-radius:12px!important; }
body.sx-premium .nav-sidebar .nav-group>summary { display:flex;align-items:center;gap:9px;padding:10px 9px!important;letter-spacing:.3px!important;text-transform:none;font-size:11px;font-weight:600!important;color:#3a5275!important;border-radius:10px!important;cursor:pointer; }
body.sx-premium .nav-sidebar .nav-group>summary:hover { background:#eaf1fc!important; }
body.sx-premium .nav-sidebar .nav-group[open]>summary { background:#edf3fd!important;color:#174bac!important; }
body.sx-premium .sx-nav-group-mark { width:26px;height:26px;display:grid;place-items:center;flex:none;border-radius:8px!important;background:#e9f0ff;color:#2b61bc;border:1px solid #dbe6f9; }
body.sx-premium .sx-nav-group-mark .sx-icon { width:15px;height:15px; }
body.sx-premium .sx-nav-group-title { flex:1;line-height:1.4; }
body.sx-premium .nav-chevron { margin-left:auto; }
body.sx-premium [data-nav-group="sales"] .sx-nav-group-mark,body.sx-premium [data-nav-group="cash"] .sx-nav-group-mark { color:#08765d;background:#e7f6ef;border-color:#cce9dc; }
body.sx-premium [data-nav-group="stock"] .sx-nav-group-mark,body.sx-premium [data-nav-group="warehouse"] .sx-nav-group-mark { color:#956512;background:#fff5e0;border-color:#f0e2bd; }
body.sx-premium [data-nav-group="finance"] .sx-nav-group-mark,body.sx-premium [data-nav-group="admin"] .sx-nav-group-mark { color:#6950b0;background:#f1ecfb;border-color:#e1d8f3; }
body.sx-premium [data-nav-group="workshop"] .sx-nav-group-mark { color:#ab5c29;background:#fff0e5;border-color:#f2d9c4; }
body.sx-premium .nav-group nav { padding:5px 0 7px 7px;margin:0 0 0 12px;border-left:1px solid #dbe6f6; }
body.sx-premium .nav-sidebar .nav-item { min-height:37px;gap:8px;font-size:11px;padding:8px 9px;border-radius:8px!important;line-height:1.4; }
body.sx-premium .nav-sidebar .nav-item:hover { background:#eaf1fd!important;color:#174caa!important; }
body.sx-premium .nav-sidebar .nav-item.active { background:linear-gradient(105deg,#174ac2,#2a68d8)!important;color:#fff!important;border-color:#215ac5!important;box-shadow:0 4px 12px #2257bc25!important; }
body.sx-premium .nav-sidebar .nav-item.active :is(.nav-icon,small) { color:#f4f8ff!important; }
body.sx-premium .nav-badge { border-radius:20px!important;min-width:19px; }
body.sx-premium .work-mini { padding:12px 8px;border-top:1px solid #e2eaf5; }
body.sx-premium .user-card { margin:4px 1px 0;padding:12px 7px;background:#eef4fd!important;border:1px solid #dee8f6!important;border-radius:11px!important; }
body.sx-premium .user-meta strong { font-size:11px; }
body.sx-premium .user-card .icon-action { background:white;border-radius:7px!important; }

/* Every non-dashboard route is explicitly marked in index.html. */
body.sx-premium #crmView .sx-premium-route { --sx-accent:#2257c1;--sx-accent-soft:#edf3ff;background:transparent!important;color:var(--sx-ink); }
body.sx-premium #crmView :is(#route-quick-sale,#route-cash,#route-confirmed-sales,#route-sale-confirm) { --sx-accent:#087c66;--sx-accent-soft:#ebf7f2; }
body.sx-premium #crmView :is(#route-warehouse,#route-workshop,#route-italika) { --sx-accent:#9b6816;--sx-accent-soft:#fff6e5; }
body.sx-premium #crmView :is(#route-hr,#route-ledger,#route-approvals,#route-admin) { --sx-accent:#5b50b4;--sx-accent-soft:#f1effc; }
body.sx-premium #crmView .sx-premium-route :is(h2,h3,h4) { color:var(--sx-ink)!important;font-weight:600!important;letter-spacing:-.4px; }
body.sx-premium #crmView .sx-premium-route :is(.section-kicker,.hr-kicker) { color:var(--sx-accent)!important;font-size:9px;letter-spacing:1.4px;line-height:1.7; }
body.sx-premium #crmView .sx-premium-route :is(.route-help,.hr-heading p,.ita-header p) { color:var(--sx-muted);font-size:12px;line-height:1.7; }
body.sx-premium #crmView .sx-premium-route> :is(.toolbar,.n65-head),body.sx-premium #crmView .sx-premium-route :is(.hr-heading,.ita-header) { gap:16px;margin-bottom:22px; }
body.sx-premium #crmView .sx-premium-route> .toolbar:first-child:not(:has(.section-title)):not(:has(h2)) { padding:16px 18px;background:#ffffff!important;border:1px solid var(--sx-line);border-radius:12px!important;box-shadow:0 4px 15px #244c7a09!important; }
body.sx-premium #crmView .sx-premium-route :is(.panel,.hr-card,.goal93-chart-card,.goal93-consult,.monthly-report-body,.n65-banner,.n65-card,.ita-table-wrap) { border-radius:14px!important;background:#fff!important;border:1px solid var(--sx-line)!important;box-shadow:0 5px 18px #1d477c0a!important; }
body.sx-premium #crmView .sx-premium-route :is(.panel-head,.goal93-chart-head,.panel-subhead) { background:linear-gradient(110deg,#f8fbff,#fff)!important;border-bottom:1px solid #e1eaf7;padding:17px 19px;border-radius:13px 13px 0 0!important; }
body.sx-premium #crmView .sx-premium-route .panel-head h3 { font-size:15px; }
body.sx-premium #crmView .sx-premium-route :is(.section-title h2,.hr-heading h2,.ita-header h2) { font-size:25px;letter-spacing:-.7px; }
body.sx-premium #crmView .sx-premium-route .table-panel { overflow:hidden; }
body.sx-premium #crmView .sx-premium-route :is(.erp-table-wrap,.hr-table-scroll,.n65-scroll,.nq-table-wrap) { border-radius:11px!important;border-color:var(--sx-line)!important;background:#fff; }

/* Controls and forms: maintain actions, IDs, keyboard behavior and role visibility. */
body.sx-premium #crmView .sx-premium-route :is(.btn,.hr-btn),body.sx-premium :is(.modal,.drawer,dialog) :is(.btn,.hr-btn) { border-radius:8px!important;min-height:34px;padding:8px 12px;font-size:11px;font-weight:600;line-height:1.4;border-color:#d8e3f2!important;transition:background-color .15s,border-color .15s; }
body.sx-premium #crmView .sx-premium-route :is(.btn-light,.hr-btn:not(.hr-primary):not(.hr-btn-primary)),body.sx-premium :is(.modal,.drawer,dialog) .btn-light { background:linear-gradient(#fff,#f8fafd)!important;color:#375477!important;box-shadow:0 2px 4px #133f7806!important; }
body.sx-premium #crmView .sx-premium-route :is(.btn-primary,.hr-primary,.hr-btn-primary,.ds-primary),body.sx-premium :is(.modal,.drawer,dialog) :is(.btn-primary,.hr-primary,.hr-btn-primary,.ds-primary) { background:linear-gradient(120deg,#2055bf,#2b6be0)!important;color:#fff!important;border-color:#2059c3!important;box-shadow:0 3px 9px #1c52af1c,inset 0 1px 0 #ffffff22!important; }
body.sx-premium #crmView .sx-premium-route :is(.btn-primary,.hr-primary):hover,body.sx-premium :is(.modal,.drawer,dialog) .btn-primary:hover { background:linear-gradient(120deg,#1647a9,#215dc6)!important; }
body.sx-premium #crmView .sx-premium-route .btn-danger,body.sx-premium :is(.modal,.drawer,dialog) :is(.btn-danger,.hr-danger) { background:#fff2f0!important;color:#a6312c!important;border-color:#efc9c4!important;box-shadow:none!important; }
body.sx-premium #crmView .sx-premium-route .btn-warning { background:#fff5de!important;color:#805a14!important;border-color:#ead8aa!important; }
body.sx-premium #crmView .sx-premium-route .btn-sm { min-height:28px;font-size:10px;padding:6px 9px; }
body.sx-premium #crmView .sx-premium-route :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea),body.sx-premium :is(.modal,.drawer,dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) { border:1px solid #d5e0ef!important;border-radius:8px!important;background:#fff!important;color:#203f64;box-shadow:inset 0 1px 3px #24466d05!important;font-size:12px; }
body.sx-premium #crmView .sx-premium-route :is(input,select,textarea):focus,body.sx-premium :is(.modal,.drawer,dialog) :is(input,select,textarea):focus { border-color:#6798e7!important;outline:2px solid #9dbef555!important;outline-offset:1px; }
body.sx-premium #crmView .sx-premium-route :is(input,textarea)::placeholder { color:#8394ab; }
body.sx-premium :is(button,a,summary,input,select,textarea):focus-visible { outline:3px solid #5c91e4!important;outline-offset:3px; }
body.sx-premium #crmView .sx-premium-route :is(.search-box,.nq-search,.nex-sales-search) { border-radius:9px!important;border-color:#d9e5f4!important;background:#f8fbff!important; }
body.sx-premium #crmView .sx-premium-route :is(.hr-filters,.ita-filters,.n65-toolbar,.goal93-filterbar,.n136-filters,.monthly-report-filters,.n72-controls,.n59-goal-selector) { border:1px solid var(--sx-line)!important;border-radius:12px!important;background:#fff!important;padding:15px 17px;gap:12px; }

/* Navigation within each module. */
body.sx-premium #crmView .sx-premium-route :is(.segmented,.nexora-section-tabs,.erp-tabs,.hr-tabs,.goal93-tabs,.n65-tabs,.n58-tabs) { background:#eaf0fa!important;border:1px solid #dce6f4!important;border-radius:10px!important;padding:5px;gap:4px;box-shadow:inset 0 1px 3px #1e426c06!important; }
body.sx-premium #crmView .sx-premium-route :is(.segment,.nex-tab,.erp-tab,.goal93-tab,.n65-tabs button,.n58-tabs button,.hr-tabs button) { border-radius:7px!important;border:1px solid transparent!important;color:#57708f!important;background:transparent!important;font-size:11px;padding:9px 12px;font-weight:600; }
body.sx-premium #crmView .sx-premium-route :is(.segment.active,.nex-tab.active,.erp-tab.active,.goal93-tab.active,.n65-tabs button.active,.n58-tabs button.active,.hr-tabs button.is-active) { background:#fff!important;color:var(--sx-accent)!important;border-color:#d0def3!important;box-shadow:0 2px 7px #1e477817!important; }
body.sx-premium #crmView .sx-premium-route :is(.goal93-period,.sales-confirmed-periods button,.cash-shift-periods button,.credit-filter,.payment-filter) { border-radius:7px!important; }
body.sx-premium #crmView .sx-premium-route :is(.goal93-period.active,.sales-confirmed-periods button.active,.cash-shift-periods button.active,.credit-filter.active,.payment-filter.active) { background:#e9f1ff!important;color:#204fba!important;border-color:#b9cff1!important; }

/* Shared scorecards; numbers remain the original, permission-scoped values. */
body.sx-premium #crmView .sx-premium-route :is(.kpi-card,.goal93-kpi,.hr-kpi,.recruit-kpis>div,.recruit-kpis>article,.ita-kpis>article,.pos-cash-kpi,.pos-cash-kpis>div,.pos-cash-kpis>article,.erp-stat,.erp-kpi,.monthly-metric,.n65-metric,.n65-metrics>div,.n64-kpi,.nex-pace-card,.bank-kpi,.cash407-summary>div) { --sx-card:#245bc6;border:1px solid #d7e4f6!important;border-top:3px solid var(--sx-card)!important;border-radius:13px!important;background:linear-gradient(135deg,#fff 20%,#eef4ff)!important;box-shadow:0 5px 15px #2049770c,inset 0 1px 0 #fff!important;padding:18px!important;min-width:0; }
body.sx-premium #crmView .sx-premium-route :is(.kpi-card,.goal93-kpi,.hr-kpi,.recruit-kpis>div,.recruit-kpis>article,.ita-kpis>article,.pos-cash-kpi,.pos-cash-kpis>div,.erp-stat,.monthly-metric,.n65-metrics>div):nth-child(4n+2) { --sx-card:#087e67;border-color:#d0e7de!important;background:linear-gradient(135deg,#fff 20%,#edf8f3)!important; }
body.sx-premium #crmView .sx-premium-route :is(.kpi-card,.goal93-kpi,.hr-kpi,.recruit-kpis>div,.recruit-kpis>article,.ita-kpis>article,.pos-cash-kpi,.pos-cash-kpis>div,.erp-stat,.monthly-metric,.n65-metrics>div):nth-child(4n+3) { --sx-card:#9b6a19;border-color:#ecdfc1!important;background:linear-gradient(135deg,#fff 20%,#fcf5e7)!important; }
body.sx-premium #crmView .sx-premium-route :is(.kpi-card,.goal93-kpi,.hr-kpi,.recruit-kpis>div,.recruit-kpis>article,.ita-kpis>article,.pos-cash-kpi,.pos-cash-kpis>div,.erp-stat,.monthly-metric,.n65-metrics>div):nth-child(4n+4) { --sx-card:#6652b3;border-color:#e0d9f3!important;background:linear-gradient(135deg,#fff 20%,#f3effb)!important; }
body.sx-premium #crmView .sx-premium-route :is(.kpi-card,.goal93-kpi,.hr-kpi,.recruit-kpis>div,.recruit-kpis>article,.ita-kpis>article,.pos-cash-kpi,.pos-cash-kpis>div,.monthly-metric,.erp-stat,.n65-metrics>div)>strong { color:var(--sx-card,#2055bb)!important;font-size:26px!important;font-weight:700!important;letter-spacing:-.7px;line-height:1.3; }
body.sx-premium #crmView .sx-premium-route :is(.goal93-kpi-icon,.hr-kpi-icon,.activity-icon,.stage-icon) { background:#ffffffb8!important;color:var(--sx-card,#235abe)!important;border-radius:9px!important;border-color:#d9e5f5!important;box-shadow:0 3px 8px #244d8110!important; }
body.sx-premium #crmView .sx-premium-route .followup-kpi-danger { --sx-card:#af482f!important;border-color:#efd1c9!important;background:linear-gradient(135deg,#fff,#fff0e9)!important; }

/* Tables and lists. */
body.sx-premium #crmView .sx-premium-route table th,body.sx-premium :is(.modal,.drawer,dialog) table th { background:#edf3fc!important;color:#49668c!important;border-bottom:1px solid #d8e4f5!important;font-size:10px;font-weight:600!important;letter-spacing:.25px;padding:13px 14px; }
body.sx-premium #crmView .sx-premium-route table td,body.sx-premium :is(.modal,.drawer,dialog) table td { border-bottom-color:#e5edf7!important;padding:13px 14px;color:#284260; }
body.sx-premium #crmView .sx-premium-route table tbody tr:nth-child(even) { background:#fafcff; }
body.sx-premium #crmView .sx-premium-route table tbody tr:hover>td { background:#f0f6ff!important; }
body.sx-premium #crmView .sx-premium-route :is(.data-row,.followup-row,.ops-row) { border-bottom-color:#e6edf7!important; }
body.sx-premium #crmView .sx-premium-route :is(.data-row,.followup-row):hover { background:#f5f9ff!important; }
body.sx-premium #route-contacts #contactsList { padding:0 12px; }
body.sx-premium #route-contacts .data-row.contacts { padding:17px 9px;gap:15px; }
body.sx-premium #route-contacts .customer-avatar { width:39px;height:39px;border-radius:50%!important;background:linear-gradient(145deg,#edf4ff,#c9dcfa)!important;color:#315b98!important;border:2px solid #fff;box-shadow:0 3px 9px #1d4b8312!important;font-size:11px; }
body.sx-premium #route-contacts .customer-avatar img { border-radius:50%!important; }
body.sx-premium #route-tasks .followup-row { padding:18px 19px;border-left:3px solid transparent; }
body.sx-premium #route-tasks .followup-row.overdue { border-left-color:#d58939;background:#fffdf8; }
body.sx-premium #route-tasks .followup-method-cell { background:#eff4fd;padding:9px;border-radius:9px!important;color:#325988; }
body.sx-premium #crmView .sx-premium-route :is(.method-chip,.followup-overdue-chip,.status-chip,.presence,.hr-badge,.pos-cash-pill,.ita-badge,.recruit-status) { border-radius:20px!important;font-size:10px;line-height:1.45;padding:4px 8px; }
body.sx-premium #crmView .sx-premium-route :is(.followup-overdue-chip,.status-chip.overdue,.status-chip.rejected,.hr-status-void) { color:#a43c2b!important;background:#fff0eb!important;border-color:#efc6bc!important; }
body.sx-premium #crmView .sx-premium-route :is(.status-chip.won,.status-chip.approved,.hr-status-paid,.hr-status-approved,.pos-cash-pill.open,.presence.online,.hr-status-active) { color:#087354!important;background:#e9f7ef!important;border-color:#bee5d4!important; }
body.sx-premium #crmView .sx-premium-route :is(.status-chip.waiting,.status-chip.pending,.hr-status-pending,.hr-status-draft) { color:#8e6216!important;background:#fff6de!important;border-color:#ecdda9!important; }
body.sx-premium #crmView .sx-premium-route :is(.empty-list,.hr-empty,.ita-empty,.n72-empty,.n65-empty) { padding:35px 22px!important;color:#6b7f9b;background:#f8fbff;border-radius:10px!important;line-height:1.7; }

/* Sales, inventory, checkout and workshop. */
body.sx-premium #route-pipeline .pipeline-column { border:1px solid #dce6f3!important;border-radius:13px!important;background:#eaf1fb!important; }
body.sx-premium #route-pipeline .pipeline-col-head { padding:14px!important;border-radius:12px 12px 0 0!important;background:#e4edfb!important;border-bottom:1px solid #cfdcf0!important; }
body.sx-premium #route-pipeline .opportunity-card { border:1px solid #d7e3f3!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 10px #1f487510!important; }
body.sx-premium #crmView .sx-premium-route :is(.erp-selection-card,.erp-product-create-box,.erp-invoice-ocr-box,.nq-service-builder,.quote-sale-client-strip,.n63-digital-grid) { border-radius:11px!important;border-color:#d8e5f3!important;background:#f9fbff!important; }
body.sx-premium #crmView :is(#route-quick-sale,#route-sale-confirm,#route-workshop) .nq-checkout { background:linear-gradient(150deg,#fff,#edf6f4)!important;border:1px solid #cfe3dc!important;border-top:3px solid #188a72!important; }
body.sx-premium #crmView :is(#route-quick-sale,#route-sale-confirm,#route-workshop) .nq-grand { background:#e6f3ee!important;border:1px solid #c6e1d5!important;border-radius:10px!important;padding:15px!important;color:#09614c!important; }
body.sx-premium #crmView :is(#route-quick-sale,#route-sale-confirm,#route-workshop) .nq-grand strong { color:#09614c!important; }
body.sx-premium #crmView .sx-premium-route .nq-choices button { border-radius:8px!important;border-color:#d6e3f2!important; }
body.sx-premium #crmView .sx-premium-route .nq-choices button.active { background:#e8f2fe!important;border-color:#9cbde9!important;color:#285baa!important; }
body.sx-premium #route-erp .erp-readonly-value { background:#f2f6fc!important;border-radius:8px!important;border:1px solid #dce6f3; }
body.sx-premium #crmView .sx-premium-route :is(.erp-warning,.ita-warning,.n59-goal-note) { border:1px solid #ecd8ad!important;background:#fff8e9!important;color:#856125!important;border-radius:10px!important; }
body.sx-premium #crmView .sx-premium-route :is(.n58-order,.n58-order-card,.n58-card,.credit-receivable,.quote-discount-approval-card) { border-radius:12px!important;box-shadow:0 4px 14px #204d7c0a!important;border-color:#dbe6f5!important;background:#fff!important; }

/* Media, goals, work activity and people. */
body.sx-premium #route-media .media-card { border-radius:13px!important;border:1px solid #d8e5f4!important;box-shadow:0 5px 17px #163f7c0d!important;background:white!important;overflow:hidden; }
body.sx-premium #route-media :is(.media-thumb,.media-preview) { background:linear-gradient(140deg,#edf4ff,#f7faff)!important;border-bottom:1px solid #e0e9f6; }
body.sx-premium #route-goals :is(.goal93-source-strip,.goal93-quick-periods) { border-radius:10px!important; }
body.sx-premium #route-goals .nex-goal-administration>summary,body.sx-premium #route-work-activity details>summary { background:#f0f5fd!important;border:1px solid #dce7f6;border-radius:9px!important;color:#365987;padding:13px 16px; }
body.sx-premium #route-work-activity .n72-person { border:1px solid #d9e5f5!important;border-top:3px solid #497bc5!important;border-radius:12px!important;background:linear-gradient(160deg,#fff 55%,#edf4ff)!important;box-shadow:0 4px 14px #214e810d!important;padding:17px!important; }
body.sx-premium #route-work-activity .n72-hours { color:#2157b9!important;font-size:25px!important;letter-spacing:-.7px; }
body.sx-premium #route-work-activity .n72-status { border-radius:20px!important;padding:4px 8px;font-size:9px; }
body.sx-premium #route-hr .hr-heading { padding-bottom:17px;border-bottom:1px solid #dce5f3; }
body.sx-premium #route-hr .hr-tabs { margin-bottom:22px; }
body.sx-premium #route-hr .hr-section-head { margin-top:20px; }
body.sx-premium #route-hr :is(.hr-payroll-banner,.recruit-criteria article,.recruit-answers article,.hr-doc-preview) { border-radius:12px!important;border:1px solid #dce5f4!important;background:#fff!important;box-shadow:0 4px 14px #24497909!important; }
body.sx-premium #route-hr .recruit-person-link { color:#245dbf!important;font-weight:600;border-bottom:1px dotted #8db0e8; }
body.sx-premium #route-hr .recruit-kpis { gap:14px; }
body.sx-premium #route-hr .hr-total-strip { border-radius:0 0 12px 12px!important;background:#eef3fc!important; }
body.sx-premium #route-hr .hr-info { background:#f0f3fe!important;border:1px solid #d9def8!important;border-radius:10px!important;color:#596487; }

/* Dialogs, approvals and customer drawers use the same finish. */
body.sx-premium :is(.modal,.drawer,dialog) { border-radius:15px!important;border:1px solid #d7e2f3!important;background:#fff!important;box-shadow:0 24px 75px #15366333!important; }
body.sx-premium :is(dialog)::backdrop { background:#132c5270;backdrop-filter:blur(3px); }
body.sx-premium .modal-overlay { background:#132c5270!important;backdrop-filter:blur(3px); }
body.sx-premium :is(.modal-head,.drawer-head,.dialog-head,.hr-modal-form>header,.ita-modal-head) { background:linear-gradient(110deg,#edf3ff,#fafcff)!important;border-bottom:1px solid #d7e3f5!important;border-radius:14px 14px 0 0!important;padding:18px 21px; }
body.sx-premium :is(.modal-head,.drawer-head,.dialog-head,.hr-modal-form>header,.ita-modal-head) :is(h2,h3) { color:#234574!important;font-weight:600!important; }
body.sx-premium :is(.modal-actions,.hr-modal-form>footer) { background:#f7faff;border-top:1px solid #e0e8f4;border-radius:0 0 14px 14px!important;padding:15px 20px; }
body.sx-premium .drawer-section { border-radius:10px!important;border:1px solid #e1e9f5!important;background:#f9fbfe!important;margin-bottom:13px; }
body.sx-premium :is(.modal-close,.hr-close) { border-radius:8px!important;background:#fff!important;border:1px solid #d8e3f2!important;color:#59718e!important; }
body.sx-premium #notificationPopover { border-radius:14px!important;box-shadow:0 18px 45px #112f5b29!important;border:1px solid #d6e3f4!important; }

/* Authentication shares the finished product language. */
body.sx-premium #loginView { background:radial-gradient(ellipse at 20% 15%,#235fc4,#12387f 52%,#0e2550)!important; }
body.sx-premium #loginView .auth-card { border-radius:20px!important;border:1px solid #cfe0f4!important;background:#ffffff!important;box-shadow:0 30px 90px #04163266!important;padding:35px; }
body.sx-premium #loginView h1 { color:#25466f!important;font-size:18px;line-height:1.5; }
body.sx-premium #loginView :is(input,button) { border-radius:9px!important; }
body.sx-premium #loginView input { background:#f6f9fe;border:1px solid #d9e4f2!important;min-height:43px; }
body.sx-premium #loginView button[type="submit"] { background:linear-gradient(115deg,#1e4db2,#2a6add)!important;color:#fff!important;border:1px solid #2760c2!important;box-shadow:0 5px 12px #174aaa24!important;min-height:44px; }
body.sx-premium #loginView .brand-lockup { margin-bottom:23px; }

/* Blocking startup cover. CRM layout can settle underneath without being seen or focused. */
body.sx-starting { overflow:hidden!important; }
body.sx-starting> :not(#sessionLoadingView):not(#nexoraStartupRecovery):not(script):not(style) { visibility:hidden!important; }
body.sx-starting dialog::backdrop { background:transparent!important;backdrop-filter:none!important; }
body.sx-premium #sessionLoadingView { position:fixed;inset:0;z-index:99990;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 15% 10%,#2059b9,#123379 52%,#0c234e)!important;color:#fff;font-family:Inter,system-ui,sans-serif; }
body.sx-premium #sessionLoadingView[hidden],body.sx-premium #sessionLoadingActions[hidden] { display:none!important; }
body.sx-premium .sx-startup-card { width:min(480px,100%);text-align:center;padding:36px 30px;border:1px solid #91b8fd3d;background:linear-gradient(140deg,#ffffff10,#ffffff05);border-radius:23px!important;box-shadow:0 30px 100px #07163244,inset 0 1px 0 #ffffff18!important; }
body.sx-premium .sx-startup-logo { width:70px;height:70px;display:grid;place-items:center;margin:0 auto 23px;border:1px solid #8cbafb80;border-radius:20px!important;background:linear-gradient(140deg,#74afff40,#3376d922);box-shadow:0 0 40px #4485ef30,inset 0 1px 0 #c6dfff60!important;color:#c9e7ff; }
body.sx-premium .sx-startup-logo svg { width:39px;height:39px; }
body.sx-premium .sx-startup-brand { font-size:11px;font-weight:600;letter-spacing:4px;color:#a4c8ff; }
body.sx-premium #sessionLoadingTitle { font-size:25px;font-weight:600!important;color:#fff!important;letter-spacing:-.6px;margin:14px 0 10px; }
body.sx-premium #sessionLoadingDetail { font-size:13px;line-height:1.8;color:#c0d4f1;min-height:46px;max-width:370px;margin:0 auto; }
body.sx-premium .sx-startup-track { width:100%;height:3px;background:#ffffff15;margin:23px 0 21px;border-radius:3px!important;overflow:hidden; }
body.sx-premium .sx-startup-track:after { content:'';display:block;height:100%;width:36%;background:linear-gradient(90deg,#5da7ff,#81e5cc);border-radius:3px!important;animation:sx-startup-sweep 1.6s ease-in-out infinite; }
body.sx-premium .sx-startup-steps { display:flex;justify-content:center;gap:15px;margin:0;padding:0;list-style:none; }
body.sx-premium .sx-startup-steps li { font-size:9px;color:#829bc1;display:flex;align-items:center;gap:5px; }
body.sx-premium .sx-startup-steps li:before { content:'';width:5px;height:5px;border-radius:50%;background:#4d6e9f; }
body.sx-premium .sx-startup-steps li.is-current { color:#e2edff; }
body.sx-premium .sx-startup-steps li.is-current:before { background:#95c3ff;box-shadow:0 0 9px #98c8ff!important; }
body.sx-premium .sx-startup-steps li.is-complete:before { background:#72d8b3; }
body.sx-premium .sx-startup-footnote { margin:24px 0 0;font-size:10px;color:#96b1d7; }
body.sx-premium #sessionLoadingActions { display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:20px; }
body.sx-premium #sessionLoadingActions button { border:1px solid #97bbf066;background:#2b65c9;color:#fff;padding:11px 15px;border-radius:9px!important;font:600 11px Inter,system-ui;cursor:pointer; }
body.sx-premium #sessionLoadingLogin { background:transparent!important; }
html[data-startup-state="error"] .sx-startup-track,html[data-startup-state="error"] .sx-startup-steps { display:none; }
@keyframes sx-startup-sweep { 0%{transform:translateX(-105%)}100%{transform:translateX(385%)} }
@media(max-width:1100px) { body.sx-premium #crmView .sx-premium-route :is(.section-title h2,.hr-heading h2){font-size:22px}body.sx-premium .sx-nav-group-title{font-size:10px} }
@media(max-width:820px) { body.sx-premium .nav-sidebar{padding:18px 10px 12px!important}body.sx-premium #crmView .sx-premium-route{padding:17px 14px 25px}body.sx-premium #crmView .sx-premium-route> .toolbar:first-child:not(:has(.section-title)):not(:has(h2)){padding:12px} }
@media(max-width:600px) { body.sx-premium #crmView .sx-premium-route :is(.panel-head,.goal93-chart-head){padding:14px}body.sx-premium #crmView .sx-premium-route :is(.kpi-card,.goal93-kpi,.hr-kpi,.recruit-kpis>div,.recruit-kpis>article,.ita-kpis>article){padding:14px!important}body.sx-premium #route-contacts .data-row.contacts{padding:13px 4px;gap:9px}body.sx-premium #loginView .auth-card{padding:25px}body.sx-premium .sx-startup-card{padding:29px 20px}body.sx-premium #sessionLoadingTitle{font-size:23px}body.sx-premium .sx-startup-steps{gap:9px} }
@media(prefers-reduced-motion:reduce) { body.sx-premium .sx-startup-track:after { animation:none;width:100%;opacity:.75; } }
}
