/* Root is an operational console, with inherited palettes and compact forms. */
.enterprise-desk-tabs { display:flex;flex-wrap:wrap;gap:6px;padding:16px 0;border-block:1px solid var(--line);margin:16px 0 24px; }.enterprise-desk-tabs [aria-pressed="true"] { color:var(--ink);outline:2px solid var(--ink);outline-offset:-2px; }
.enterprise-brief-title,.enterprise-company-grid article header { display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap; }
.enterprise-company-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }.enterprise-company-grid article { padding:18px;border:1px solid var(--line);border-radius:8px;min-width:0; }.enterprise-company-grid h4 { margin:0; }.enterprise-company-grid meter { width:100%;margin:18px 0 8px; }.enterprise-company-grid p { font-size:12px;line-height:1.6;color:var(--muted); }
.enterprise-record-list article { display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid var(--line); }.enterprise-record-list article>div:first-child { flex:1 1 220px;min-width:0; }.enterprise-record-list h4 { margin:0 0 7px;overflow-wrap:anywhere; }.enterprise-record-list p,.enterprise-record-list small { font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere; }
.enterprise-store-region { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:16px;padding:10px 0; }.enterprise-store-region label { display:grid;font-size:12px; }.enterprise-toolbar>label { flex:1 1 180px;min-width:0;display:grid;gap:7px;font-size:12px; }.enterprise-toolbar input { width:100%;box-sizing:border-box; }
#enterpriseRecordDialog :is(.enterprise-workspace-checks,.enterprise-checklist) input[type="checkbox"] { width:18px;height:18px;min-height:18px;flex:0 0 18px; }
.enterprise-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0; }.enterprise-wide,.enterprise-workspace-checks,.enterprise-checklist { grid-column:1/-1; }.enterprise-workspace-checks { max-height:230px;overflow:auto;border-block:1px solid var(--line);padding:14px 0; }.enterprise-workspace-checks label,.enterprise-checklist label { display:flex;align-items:center;gap:10px;margin:10px 0; }.enterprise-workspace-checks input,.enterprise-checklist input { width:18px;min-height:18px; }.enterprise-checklist { border:1px solid var(--line);border-radius:8px;padding:14px; }.enterprise-review-json { white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;background:var(--soft);padding:16px;border-radius:8px;max-height:360px;overflow:auto; }.enterprise-assigned { border-top:1px solid var(--line);padding:20px 0; }
@media(max-width:760px){.enterprise-company-grid,.enterprise-form-grid { grid-template-columns:minmax(0,1fr); }.enterprise-desk-tabs { flex-wrap:nowrap;overflow:auto; }.enterprise-desk-tabs button { flex-shrink:0; }body.mobile-shell #enterpriseRecordDialog { padding:18px; }.enterprise-record-list .root-actions { width:100%; }.enterprise-brief-title h3 { font-size:18px; }}
.root-command-bar { grid-column:1/-1;padding:18px 0;min-width:0; }.root-command-bar>label { display:grid;gap:8px;max-width:680px;font-size:12px; }.root-command-bar input { width:100%;box-sizing:border-box; }.root-command-bar [data-platform-results] { max-height:360px;overflow:auto;border-bottom:1px solid var(--line); }
#rootView .root-tabs { grid-row:3/6; }.root-nav-group { color:var(--muted);font-size:10px;text-transform:uppercase;padding:15px 9px 5px; }
.root-work-band { padding:20px 0;border-top:1px solid var(--line); }.root-work-band>header { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px; }.root-work-band header label { display:flex;align-items:center;gap:10px;font-size:12px; }.root-work-band h3 { margin:0 0 12px; }
.root-work-row { display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0; }.root-work-row>span { flex:1;min-width:0; }.root-work-row strong,.root-work-row small { display:block;overflow-wrap:anywhere; }.root-work-row strong { font-size:13px; }.root-work-row small { color:var(--muted);font-size:11px;margin-top:5px; }.root-work-row button { flex-shrink:0; }
.root-summary-facts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0; }.root-summary-facts>div { min-width:0;border-bottom:1px solid var(--line);padding:10px 0; }.root-summary-facts dt { font-size:12px;color:var(--muted); }.root-summary-facts dd { margin:7px 0;font-size:14px;overflow-wrap:anywhere; }
.root-tier-bar { display:grid;grid-template-columns:65px minmax(0,1fr) 35px;align-items:center;gap:16px;padding:10px 0;font-size:12px;text-transform:capitalize; }.root-tier-bar meter { width:100%;accent-color:var(--accent); }.root-tier-bar strong { text-align:right; }
@media(max-width:760px){#rootView .root-nav-group { display:none; }body.mobile-shell :is(#rootActionReview,#rootWorkspaceSummary) { padding:18px; }.root-summary-facts { grid-template-columns:minmax(0,1fr); }.root-work-band header label { width:100%;flex-wrap:wrap; }.root-work-row { gap:8px; }.root-work-row .secondary-button { padding-inline:10px; }}
body.root-platform-mode .nav-tabs .nav-button:not([data-view="root"]):not([data-view="settings"]),
body.root-platform-mode .sidebar :is(.summary-panel,.ongoing-panel) { display:none!important; }
body.root-platform-mode #nativeSearchControl { display:none!important; }
body:has(#rootView.active) .topbar .toolbar > :not(.account-profile):not(#accountProfile):not(.account-menu-wrap):not(:has(#accountProfileBtn)) { display:none; }
.root-platform-heading { padding:8px 0 24px;border-bottom:1px solid var(--line);margin-bottom:24px; }
.root-platform-heading h2 { font-size:26px;margin:8px 0; }
#rootView #rootControlCentre { display:grid;grid-template-columns:200px minmax(0,1fr);gap:0 26px;align-items:start; }
#rootView .root-centre-heading { grid-column:1/-1; }
#rootView .root-tabs { grid-column:1;grid-row:3/6;display:flex;flex-direction:column;align-items:stretch;border:0;gap:3px;margin:16px 0;padding:0 16px 0 0;border-right:1px solid var(--line); }
#rootView .root-tabs button { text-align:left; }
#rootView :is(.root-status,.root-pane) { grid-column:2;min-width:0; }
#rootView .root-pane { padding:0;border:0;box-shadow:none;background:transparent; }
#rootView .root-metrics > div { padding:18px 0;min-height:85px; }
@media(max-width:760px){
 #rootView #rootControlCentre { display:block; }
 #rootView .root-tabs { flex-direction:row;flex-wrap:nowrap;overflow-x:auto;border-right:0;border-block:1px solid var(--line);padding:12px 0; }
 #rootView .root-tabs button { flex:0 0 auto; }
 body.mobile-shell #taskManagementDialog { padding:18px; }
}
#mfaSecurityDialog { width:min(540px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; }
#mfaSecurityDialog .dialog-body { min-width:0; }
#mfaSecurityDialog p, #mfaSecurityDialog li { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
#mfaSecurityDialog form { display:grid; gap:14px; margin-top:18px; }
#mfaSecurityDialog label { display:grid; gap:8px; }
#mfaSecurityDialog label.check-row { display:flex; align-items:center; }
#mfaSecurityDialog footer { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:20px; }
.mfa-device-list > div { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.mfa-device-list strong,.mfa-device-list small { display:block; overflow-wrap:anywhere; }
.mfa-device-list strong { font-size:13px; }.mfa-device-list small { color:var(--muted); margin-top:4px; font-size:11px; }
.mfa-setup-qr { display:block; width:220px; height:220px; max-width:100%; object-fit:contain; background:white; margin:20px auto; border-radius:8px; }
.mfa-recovery-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0; list-style:none; }
.mfa-recovery-codes li { padding:8px 0; border-bottom:1px solid var(--line); }
.mfa-recovery-codes code { font-size:12px; font-variant-numeric:tabular-nums; }
.mfa-recovery-help { margin-top:24px; padding-top:16px; border-top:1px solid var(--line); }.mfa-recovery-help summary { cursor:pointer; font-size:13px; }.mfa-recovery-help ol { padding-left:20px; }
@media(max-width:480px){.mfa-recovery-codes { grid-template-columns:1fr; }}
#rootControlCentre { min-width:0; margin-bottom:20px; }
.root-centre-heading { display:flex; flex-wrap:wrap; align-items:start; justify-content:space-between; gap:12px; }
.root-centre-heading h3 { margin:0; }
.root-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.root-tabs { display:flex; gap:4px; flex-wrap:wrap; padding:12px 0; margin:12px 0; border-block:1px solid var(--line); }
#rootControlCentre .root-tabs button { min-height:34px; padding:6px 9px; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:12px; box-shadow:none; }
#rootControlCentre .root-tabs button.active { background:var(--soft); color:var(--ink); }
.root-pane[hidden], #platformMaintenance[hidden], #rootSupportApprovalRegion[hidden], .root-table tr[hidden] { display:none !important; }
#settingsView #rootControlCentre .root-pane, #settingsView #rootControlCentre .root-list section { min-width:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.root-pane h3 { margin:16px 0; font-size:18px; }
.root-pane h4 { margin:20px 0 12px; font-size:14px; }
.root-status { font-size:12px; color:var(--muted); min-height:18px; margin:8px 0; overflow-wrap:anywhere; }
.root-error { color:var(--danger); }
.root-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:14px 0; }
.root-metrics > div { min-width:0; padding:12px 0; border-bottom:1px solid var(--line); }
.root-metrics span { display:block; color:var(--muted); font-size:11px; }
.root-metrics strong { display:block; margin-top:7px; font-size:28px; font-variant-numeric:tabular-nums; }
.root-health { display:flex; gap:10px 20px; flex-wrap:wrap; align-items:center; margin:16px 0 20px; color:var(--muted); font-size:12px; }
.root-search { max-width:350px; font-size:12px; margin:14px 0; }
.root-table-scroll { max-width:100%; overflow:auto; scrollbar-width:thin; }
.root-table { width:100%; border-collapse:collapse; min-width:660px; text-align:left; font-size:12px; }
.root-table :is(td,th) { padding:11px 8px; border-bottom:1px solid var(--line); vertical-align:top; font-weight:400; }
.root-table th { font-weight:600; }
.root-table thead th { color:var(--muted); font-size:10px; font-weight:500; }
.root-table small { display:block; margin-top:4px; color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.root-badge { display:inline-flex; align-items:center; padding:4px 7px; border-radius:6px; color:var(--muted); background:var(--soft); font-size:10px; }
.root-badge.good { color:var(--good); }
.root-empty { margin:14px 0; font-size:12px; line-height:1.5; color:var(--muted); }
.root-form { max-width:680px; margin:18px 0 24px; }
.root-form > fieldset { display:grid; gap:13px; padding:0; margin:0; border:0; min-width:0; }
.root-form label { font-size:12px; min-width:0; }
.root-form > fieldset > label:has(> select), .root-form > fieldset > label:has(> input:not([type="checkbox"]):not([type="file"])) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,280px); align-items:center; gap:14px; }
.root-form :is(input,select,textarea) { min-width:0; }
.root-form textarea { min-height:80px; resize:vertical; }
.root-form .check-row { margin:0; min-height:32px; }
.root-form .check-row input { width:18px; height:18px; margin:0; }
.root-form button { justify-self:start; width:auto; }
.root-choice-list { padding:10px 0; border:0; border-block:1px solid var(--line); }
.root-choice-list > summary { padding:4px 0; font-size:12px; cursor:pointer; }
.root-choice-list label { display:flex; gap:9px; align-items:center; margin:8px 0; }
.root-choice-list input { width:17px; height:17px; min-height:17px; margin:0; padding:0; }
.root-list { margin:16px 0; min-width:0; }
.root-list > div { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); font-size:12px; }
.root-list section { flex:1 1 220px; min-width:0; }
.root-list :is(strong,p,small,span) { overflow-wrap:anywhere; }
.root-list strong { font-size:12px; font-weight:600; }
.root-list p { margin:5px 0; line-height:1.5; }
.root-list :is(small,span) { color:var(--muted); font-size:11px; }
.root-notice { padding:12px; border-left:3px solid var(--warn); background:var(--soft); color:var(--ink); font-size:12px; line-height:1.5; }
.root-lab-controls { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.root-lab-controls label { flex:1 1 160px; min-width:0; font-size:12px; }
.root-lab-frame { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:8px; }
#rootLabFrame { display:block; height:560px; max-width:100%; border:0; background:var(--panel-solid); }
#rootMfaDialog { width:min(440px,calc(100vw - 28px)); }
#rootMfaQr { width:220px; height:220px; padding:8px; background:white; justify-self:center; }
#rootMfaQr[hidden] { display:none; }
#rootMfaStatus { color:var(--muted); font-size:12px; line-height:1.5; }
#rootInspectorDialog { width:min(1100px,calc(100vw - 28px)); }
#rootInspectWeek { max-width:220px; }
#rootInspectorDialog .root-table { min-width:850px; }
#rootSupportApprovalRegion { margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.root-support-request { padding:12px 0; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; font-size:12px; }
.root-support-request p { margin:5px 0; }
.root-support-request small { color:var(--muted); }
.platform-announcement { display:flex; justify-content:space-between; align-items:start; gap:12px; padding:12px 0; margin-bottom:12px; border-bottom:1px solid var(--line); font-size:12px; }
.platform-announcement > div { min-width:0; }
.platform-announcement p { margin:5px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; color:var(--muted); }
#platformMaintenance { position:fixed; z-index:10000; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; padding:24px; background:var(--panel-solid); color:var(--ink); text-align:center; }
#platformMaintenance h2 { font-size:24px; }
#platformMaintenance p { max-width:580px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
body[data-root-tasks="false"] #dailyTasksPanel, body[data-root-cash="false"] #dailyCashPanel { display:none; }
body[data-root-experiments="false"] #godMode { display:none !important; }
#rootOperationsAccounts { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); min-width:0; }
#rootOperationsAccounts > details { padding:12px 0; border-bottom:1px solid var(--line); }
#rootOperationsAccounts summary { cursor:pointer; font-size:13px; font-weight:500; }
#rootOperationsAccounts .root-form { max-width:680px; }
#rootOperationsAccounts .root-list section { padding:0; background:transparent; box-shadow:none; border:0; }
#rootControlCentre progress { width:80px; height:6px; accent-color:var(--accent); }
#rootTicketDialog { width:min(720px,calc(100vw - 28px)); }
.root-ticket-image { max-width:100%; max-height:50vh; object-fit:contain; border-radius:8px; }
#operatorMfaDialog { width:min(440px,calc(100vw - 28px)); }
.root-operator-qr { width:220px; height:220px; background:white; padding:8px; }
@media print { #rootOperationsAccounts,#rootTicketDialog,#operatorMfaDialog { display:none !important; } }
@media(max-width:720px) {
  .root-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .root-tabs { flex-wrap:nowrap; overflow:auto; }
  .root-tabs button { flex-shrink:0; }
  .root-form > fieldset > label:has(> select), .root-form > fieldset > label:has(> input:not([type="checkbox"]):not([type="file"])) { grid-template-columns:minmax(0,1fr); gap:5px; }
  .root-form .two-cols { grid-template-columns:minmax(0,1fr); }
  .root-centre-heading > .root-actions { width:100%; }
}
@media print { #rootControlCentre,#platformMaintenance,#platformAnnouncementRegion,#rootSupportApprovalRegion,#rootMfaDialog,#rootInspectorDialog { display:none !important; } }
