/* Clear Tech: restrained shared shell and readable data surfaces. No status semantics changed. */
:root{--bg:#f3f6fb;--panel:#fff;--line:#e3eaf3;--text:#20314c;--muted:#7c8ba2;--blue:#326ce5;--cyan:#159eae;--v2-accent:#326ce5;--v2-accent-dark:#2255be;--ui-line:#e3eaf3;--ui-muted:#7c8ba2;--ui-ink:#20314c;--ui-radius:12px;--ui-orange:#326ce5;--orange-primary:#326ce5;--orange-deep:#2255be;--orange-soft:#eff5ff;--electric-blue:#326ce5;--fresh-mint:#159eae}
*{scrollbar-color:#c5d2e4 #f1f4f9}body{background:#f3f6fb;color:#20314c}.sidebar{background:#fff;border-right:1px solid #e3eaf3;box-shadow:none}.brand-mark{background:linear-gradient(145deg,#3976e9,#1c4eb8);box-shadow:0 4px 10px #245ad51c;border-radius:13px}.nav button{border-radius:10px;color:#75859d}.nav button:hover{color:#245cc7;background:#f2f6fd;transform:none}.nav button.active{color:#245cc7;background:#edf4ff;border-color:#d7e5fc;box-shadow:none}.side-footer{background:#f8fafd;color:#8b9ab0;border-color:#eaf0f6}.topbar{height:68px;background:#ffffffed;border-bottom:1px solid #e3eaf3;backdrop-filter:blur(14px);gap:22px;padding:0 24px}.topbar h1,.page-id h1{font-size:19px;color:#1e304d}.topbar p,.page-id p{color:#8a99ae;margin-top:3px}.search{background:#f5f8fc;border-color:#e8edf5;border-radius:10px;max-width:580px}.search:focus-within{border-color:#b7cdf6;box-shadow:0 0 0 3px #326ce50c}.access-note,.role-pill{color:#6b83a9;background:#f1f6fe;border-color:#deE8f8}.avatar{background:#e5efff;color:#3267b7;border:1px solid #dce7f9}.content{padding:22px 24px 36px}.hero,.combined-hero,.compass-hero,.ops-hub-head,.ops-channel-head,.ops-decision-hero{background:linear-gradient(115deg,#f7faff,#fff 65%,#f0fafb)!important;border:1px solid #e1eaf5!important;box-shadow:none!important;border-radius:14px!important;padding:20px 22px!important}.hero:after,.combined-hero:after{display:none}.hero h2,.combined-hero h2,.compass-hero h2,.ops-decision-hero h2{font-size:23px!important;color:#243957!important;letter-spacing:-.6px}.hero p,.combined-hero p{color:#8291a7;font-size:12px}.hero .eyebrow,.combined-hero .eyebrow{color:#527cad}.card,.panel,.v2-panel,.pm-panel{border-color:#e4ebf4;box-shadow:0 3px 12px #25426c04;border-radius:12px}.center-tabs{top:68px;background:#ffffffef;border-color:#e3eaf3;border-radius:12px;box-shadow:none;gap:6px;padding:6px;margin:14px 0}.center-tabs button{color:#718199;border-color:transparent;background:transparent;border-radius:8px;font-size:12px}.center-tabs button:hover{background:#f1f6fd;color:#326ce5;border-color:#e0eafa}.center-tabs button.active{background:#326ce5;border-color:#326ce5;box-shadow:0 3px 7px #326ce51a;color:#fff}.primary,.btn-primary,.v2-search button,button.primary{border-color:#326ce5!important;background:#326ce5!important;box-shadow:none!important}.primary:hover,.btn-primary:hover,.v2-search button:hover,button.primary:hover{background:#285ecc!important;transform:none;filter:none}.secondary:hover,.ghost:hover{color:#326ce5;border-color:#c5d9fa;background:#f3f7fe}input:focus,select:focus,textarea:focus{border-color:#8eb4ef!important;box-shadow:0 0 0 3px #326ce50c!important}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#326ce5}.table-wrap,.data-table-scroll{border-color:#e4ebf4}.table-wrap table th,table th,.v2-table th,.pm-table th{background:#f5f8fc;color:#6e819a;border-bottom-color:#e2eaf4;padding-top:13px;padding-bottom:13px}.table-wrap table td,table td{border-bottom-color:#edf1f7;padding-top:13px;padding-bottom:13px}table tbody tr:hover td{background:#f5f9ff}.admin-stat{background:#fff;border-color:#e4ebf4;border-radius:12px;min-width:128px;padding:16px 20px}.admin-stat b{color:#28466f;font-variant-numeric:tabular-nums}.admin-toolbar{gap:12px;margin:18px 0}.admin-toolbar>button{margin-left:auto}.section-head h2,.section-head h3,.panel h2{color:#28405f}.stat-card,.metric-card{border-top-color:#91b5ee}.stat-card:nth-child(3n+2),.metric-card:nth-child(3n+2){border-top-color:#88c9d3}.stat-card:nth-child(3n),.metric-card:nth-child(3n){border-top-color:#aebee0}.floating-tool-rail button{box-shadow:0 4px 14px #2444670c;border-radius:12px}.floating-tool-rail button:nth-child(1),.floating-tool-rail button:nth-child(2),.floating-tool-rail button:nth-child(3){background:#fff;border-color:#e0e8f3;color:#6284ad}.floating-tool-rail button:hover{background:#f2f7ff;transform:none}.login-screen{background:radial-gradient(ellipse at 15% 20%,#e1edff,transparent 55%),#f3f7fc}.login-card,.login-shell{border-color:#dee9f5;box-shadow:0 18px 70px #25426c10}.login-submit{background:#326ce5}.fc-hero{background:linear-gradient(115deg,#f5f9ff,#fff)!important;border:1px solid #dee8f7!important;color:#28405f!important;box-shadow:none!important}.fc-hero h2{color:#28405f!important}.fc-hero p{color:#7b8da5!important}.fc-panel,.fc-stat{box-shadow:none!important;border-color:#e3eaf4!important}.product-summary-panel{background:#fff}.user-area{background:#fff;border-color:#e4ebf4}
@media(max-width:760px){.topbar{height:62px;padding:0 12px;gap:8px}.topbar h1{font-size:16px}.content{padding:12px}.center-tabs{top:62px}.hero,.combined-hero{padding:16px!important}.hero h2,.combined-hero h2{font-size:20px!important}.admin-toolbar{flex-wrap:wrap}.admin-toolbar>button{margin-left:0}.admin-stat{min-width:90px;padding:12px}.search{display:none}.access-note{display:none}#teamChatButton{min-width:60px;font-size:11px}.top-actions{gap:8px}}
:root{--v2-ink:#243b5b;--v2-muted:#7d8da3}.inventory-summary-card{border-radius:12px}.inventory-summary-card:not(.hot):not(.clearance):not(.warning):not(.danger){background:linear-gradient(145deg,#fff,#f7faff);border-color:#e1eaf7}.inventory-summary-card .metric-trend-hint{color:#5e86ba;font-size:10px}.inventory-summary-card:hover{border-color:#9fbfea!important;box-shadow:0 4px 14px #326ce50c!important;transform:none!important}.inventory-summary-card:focus-visible{outline-color:#326ce5!important}

/* One shared palette for every existing module; status and chart series keep their meaning. */
:root{--v2-line:#e3eaf3;--v2-soft:#f5f8fc;--navy:#20314c;--purple:#5266bd;--orange-hot:#5589ec}
::selection{background:#dce9ff;color:#193f81}
::-webkit-scrollbar-thumb{background:#c5d2e4!important;border-color:#f1f4f9!important}
::-webkit-scrollbar-track,.table-scrollbar{background:#f1f4f9!important}
.brand strong{color:#243957}.brand small,.nav-title{color:#7c8ba2}
body.focus-mode .topbar #teamChatButton{display:inline-flex!important}
.hero .status{background:#fff;border-color:#e2eaf5;color:#536c8e;box-shadow:none}
.v2-tabs button.active,.drawer-tabs button.active,.ops-event-tabs button.active,
.ops-mini-tabs button.active,.ops-matrix-switch button.active,
.compass-tabs button.active{background:#edf4ff;color:#245cc7;border-color:#bfd3f5;box-shadow:none}
.compass-tabs{border-color:#e3eaf3;border-radius:12px;box-shadow:none}
.compass-hero span,.compass-hero aside small,.ops-decision-hero small,
.ops-ai-head small,.ops-hub-head small,.ops-overview-panel header small,.ops-channel-head small{color:#527cad}
.compass-card header>span{background:#eff5ff;color:#3467b6}
.compass-ai button,.compass-loading button,.button-link{background:#326ce5;color:#fff}
.ops-cockpit-head{background:linear-gradient(115deg,#f7faff,#fff);border-color:#e3eaf3}
.ops-cockpit-head button,.ops-filterbar>button,.ops-decision-toolbar button,.ops-detail-btn{color:#3467b6;border-color:#c8d8ef;background:#f7faff}
.v2-kpi.active,.ops-kpi.active,.ops-live-metric.active{border-color:#326ce5;box-shadow:0 3px 12px #326ce512}
.ops-cockpit-metric.active{border-color:#87afea;background:#eff5ff}
.ops-modal-dialog{background:#f8faff;box-shadow:0 24px 80px #18365c26}
.ops-modal,.daily-trend-modal,.delivery-overlay{background:rgba(24,43,70,.38)}
.delivery-overlay.nested{background:rgba(24,43,70,.5)}
.active-column-filter span,.ops-alert-head>em{background:#eff5ff;color:#3467b6}
.patrol-toolbar button[aria-pressed=true]{background:#326ce5;color:#fff;border-color:#326ce5}
.patrol-item-head .patrol-category{background:#e7efff;color:#3467b6}
.patrol-item-head .patrol-shop-name,.patrol-summary-heading>b{color:#243b5b}
.patrol-link-group>header{background:#f3f7fd}.patrol-link-group>header b{color:#3467b6}
.focus-shell,.focus-dialog{--fc-bg:#f3f6fb;--fc-text:#243b5b;--fc-muted:#718199;--fc-line:#e3eaf3;--fc-accent:#326ce5;--fc-soft:#edf4ff}
.focus-shell button,.focus-dialog button{border-color:#dbe5f2;color:#425b7c}
.focus-shell button:hover,.focus-dialog button:hover{background:#f2f7ff;border-color:#bdd3f4}
.focus-shell .fc-primary,.focus-dialog .fc-primary,.vq-notice .vq-primary{background:#326ce5;color:#fff;border-color:#326ce5}
.focus-shell .fc-primary:hover,.focus-dialog .fc-primary:hover{background:#285ecc}
.fc-tabs button[aria-selected=true],.fc-tree .fc-selected{background:#edf4ff;color:#245cc7;border-color:#bfd3f5}
.fc-kpi,.fc-panel,.focus-dialog{border-color:#e3eaf3}
.fc-lane,.fc-detail-metrics>div,.fc-upload,.focus-dialog .fc-readonly{background:#f5f8fc}
.fc-work-card{border-color:#e3eaf3!important}.fc-work-card img,.fc-version img{background:#f7f9fc}
.fc-table th{background:#f5f8fc;color:#6e819a}.focus-dialog header{border-color:#e3eaf3}
.fc-bar-track{background:#eaf0f8}.fc-bar-track i{background:#729ce4}.fc-version a{color:#326ce5}
.vq-cards button{color:#243b5b;border-color:#e3eaf3}
.vq-cards button[aria-pressed=true]{background:#eff5ff;border-color:#8aafe8;box-shadow:inset 0 2px #326ce5}
.vq-action,.vq-notice button{color:#3467b6;border-color:#c8d8ef}
.vq-notice{background:#f2f7fe;border-color:#d5e3f6;color:#425b7c}
.category-create-dialog header small,.delivery-threshold-dialog>small,.delivery-editor-dialog header small{color:#527cad}
.delivery-threshold-dialog,.delivery-confirm-dialog,.delivery-editor-dialog{border-color:#dce6f4;box-shadow:0 24px 80px #18365c26}
.delivery-threshold-icon,.delivery-confirm-icon:not(.reject){background:#edf4ff;color:#326ce5}
.delivery-threshold-dialog h2{color:#243b5b}.delivery-threshold-dialog>p,.delivery-confirm-dialog p,.delivery-editor-dialog header p{color:#718199}
.delivery-modal-close,.delivery-filter-popover header button{background:#eff4fb;color:#617895}
.delivery-editor-dialog>header{background:linear-gradient(115deg,#f5f9ff,#fff);border-color:#e3eaf3}
.delivery-editor-dialog .delivery-plan-metrics,.delivery-editor-footer{background:#f8faff;border-color:#e3eaf3}
.delivery-editor-dialog .delivery-plan-metrics article,.delivery-editor-dialog .delivery-table-wrap{border-color:#e3eaf3}
.delivery-editor-footer button,.delivery-confirm-dialog footer button,.delivery-threshold-dialog footer button{border-color:#cbdaf0}
.delivery-editor-footer .submit-review-button,#modalApprovePlan{background:#326ce5!important;border-color:#326ce5!important}
.delivery-table .column-filter:hover,.delivery-table .column-filter.active{background:#326ce5;border-color:#326ce5;color:#fff}
.delivery-table thead th:nth-child(-n+4){background:#f2f6fc}
.delivery-table tbody tr:hover td:nth-child(-n+4){background:#edf4ff}
.delivery-filter-popover header b{color:#243b5b}
@media(prefers-reduced-motion:reduce){.nav button,.center-tabs button,.quick,.skill{transition:none}.quick:hover,.skill:hover{transform:none}}

/* Sidebar wordmark: both characters remain legible inside the existing brand tile. */
.sidebar .brand-mark{color:#fff;font-size:16px;line-height:1;letter-spacing:.02em;white-space:nowrap}

/* 晴空青蓝 — selected visual direction, 2026-11-19.
   Presentation only: keep statuses, chart series, DOM order and permission gates. */
:root {
  --sky-ink: #173a4c;
  --sky-muted: #617d8a;
  --sky-line: #dcebf0;
  --sky-soft: #eef9fc;
  --sky-accent: #087e96;
  --sky-accent-dark: #07677c;
  --sky-radius: 16px;
  --sky-shadow: 0 4px 16px rgb(27 89 111 / 5%);
  --sky-hero: linear-gradient(110deg, #dff9f7 0%, #c9f3f7 48%, #a9e1f8 100%);
  --bg: #f3fafc;
  --panel: #fff;
  --line: var(--sky-line);
  --text: var(--sky-ink);
  --muted: var(--sky-muted);
  --navy: var(--sky-ink);
  --blue: var(--sky-accent);
  --cyan: #149ba7;
  --v2-accent: var(--sky-accent);
  --v2-accent-dark: var(--sky-accent-dark);
  --v2-ink: var(--sky-ink);
  --v2-muted: var(--sky-muted);
  --v2-line: var(--sky-line);
  --v2-soft: var(--sky-soft);
  --ui-ink: var(--sky-ink);
  --ui-muted: var(--sky-muted);
  --ui-line: var(--sky-line);
  --ui-orange: var(--sky-accent);
  --ui-radius: var(--sky-radius);
  --orange-primary: var(--sky-accent);
  --orange-deep: var(--sky-accent-dark);
  --orange-soft: var(--sky-soft);
  --orange-hot: #36a9ce;
  --electric-blue: #279bd9;
  --fresh-mint: #149ba7;
}
body { background: var(--bg); color: var(--sky-ink); }
::selection { background: #cceef6; color: #164b61; }
* { scrollbar-color: #b9d9e3 #f1f8fa; }
::-webkit-scrollbar-thumb { background: #b9d9e3 !important; border-color: #f1f8fa !important; }
::-webkit-scrollbar-track, .table-scrollbar { background: #f1f8fa !important; }

/* The white navigation rail stays available at every center. */
.app { grid-template-columns: 100px minmax(0, 1fr); }
.sidebar { width: 100px; padding: 20px 10px 14px; background: #fff; border-color: var(--sky-line); box-shadow: none; }
.brand { padding: 0 0 20px; border-bottom-color: #edf4f7; }
.sidebar .brand-mark { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; letter-spacing: 1px; background: linear-gradient(145deg, #22c2d6, #308fce); box-shadow: 0 5px 15px #10a8ce24; }
.nav { margin-top: 16px; gap: 6px; }
.nav button { min-height: 63px; padding: 10px 4px; gap: 6px; border-radius: 12px; color: #607986; font-size: 11px; line-height: 1.4; }
.nav .ico { font-size: 21px; width: 22px; height: 22px; }
.nav button:hover { background: #edf9fb; color: #08798e; }
.nav button.active { background: linear-gradient(135deg, #07849a, #08778f); border-color: transparent; color: #fff; box-shadow: 0 5px 14px #0895b027; }
.side-footer { color: var(--sky-muted); background: #f6fbfd; border-color: #e6f1f4; margin: 22px 0 0; }
.main { min-width: 0; }
.topbar { min-height: 76px; height: 76px; padding: 0 24px; gap: 22px; background: #ffffffef; border-color: var(--sky-line); box-shadow: 0 2px 10px #1f7b9205; }
.page-id h1, .topbar h1 { color: var(--sky-ink); font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.page-id p, .topbar p { color: var(--sky-muted); font-size: 11px; }
.page-id { min-width: 160px; }
.search { max-width: 660px; background: #f6fcfd; border-color: #d7eaef; border-radius: 14px; }
.search input { background: #f6fcfd; border-color: #d7eaef; border-radius: 14px; color: var(--sky-ink); }
.search:focus-within { border-color: #80c5d6; box-shadow: 0 0 0 3px #0b93ad12; }
.access-note, .role-pill { color: #3e758c; background: #edf9fc; border-color: #d9edf4; }
.icon-btn, .user-area { border-color: var(--sky-line); border-radius: 12px; background: #fff; }
.avatar { background: #e2f3fa; color: #147b9b; border-color: #d6ebf4; }
.user-meta b { color: var(--sky-ink); }
.user-meta small { color: var(--sky-muted); }
.content { padding: 22px 24px 38px; max-width: 1920px; }

/* Shared headings; retain every center's actual actions and helper text. */
.hero, .combined-hero, .compass-hero, .ops-hub-head, .ops-channel-head,
.ops-decision-hero, .fc-hero, .mc-head {
  background: var(--sky-hero) !important;
  border: 1px solid #c7edf3 !important;
  border-radius: var(--sky-radius) !important;
  box-shadow: none !important;
  color: var(--sky-ink) !important;
  padding: 24px 26px !important;
  min-height: 120px;
  margin-bottom: 18px;
}
.hero h2, .combined-hero h2, .compass-hero h2, .ops-decision-hero h2,
.fc-hero h2, .mc-head h2 { font-size: 25px !important; line-height: 1.35; letter-spacing: -.6px; color: var(--sky-ink) !important; margin: 5px 0 7px; }
.hero p, .combined-hero p, .compass-hero p, .ops-decision-hero p,
.fc-hero p, .mc-head p { color: #426e7b !important; line-height: 1.8; font-size: 12px; }
.hero .eyebrow, .combined-hero .eyebrow, .mc-head small,
.compass-hero span, .compass-hero aside small, .ops-decision-hero small,
.ops-hub-head small, .ops-channel-head small { color: #387688; letter-spacing: 1.3px; font-size: 10px; }
.hero .status { color: #35697a; background: #ffffffbd; border-color: #d2e9ef; }
.section-head { margin: 22px 0 14px; gap: 12px; }
.section-head h2, .section-head h3, .panel h2, .panel h4,
.mc-section-head h3 { color: var(--sky-ink); }

/* White data cards with light borders; business warning colors remain intact. */
.card, .panel, .v2-panel, .pm-panel, .compass-card, .fc-panel, .fc-kpi,
.mc-panel, .mc-checks article, .mc-stat, .admin-stat, .inventory-summary-card {
  border-color: var(--sky-line) !important;
  border-radius: var(--sky-radius) !important;
  box-shadow: var(--sky-shadow) !important;
  min-width: 0;
}
.panel, .v2-panel, .mc-panel { padding: 20px; }
.mc-checks { gap: 16px; }
.mc-checks article { padding: 24px; }
.mc-checks article > span { color: #b3dce8; }
.mc-checks h3 { color: var(--sky-ink); }
.mc-checks p, .mc-section-head p, .mc-stat span, .mc-stat small,
.mc-muted { color: var(--sky-muted); }
.mc-stat b, .admin-stat b, .kpi .value { color: var(--sky-ink); font-variant-numeric: tabular-nums; }
.mc-stat.mc-negative b { color: #ba3844; }
.kpi-badge, .list-icon { background: #eaf8fb; color: #087e96; }
.stat-card, .metric-card { border-top-color: #40b4cf; }
.stat-card:nth-child(3n+2), .metric-card:nth-child(3n+2) { border-top-color: #66b6e5; }
.stat-card:nth-child(3n), .metric-card:nth-child(3n) { border-top-color: #8fcbd5; }
.inventory-summary-card:not(.hot):not(.clearance):not(.warning):not(.danger) { background: #fff; }
.inventory-summary-card .metric-trend-hint { color: #3f8399; }
.inventory-summary-card:hover { border-color: #8fcddb !important; box-shadow: 0 5px 18px #0a809912 !important; }
.product-summary-panel, .mc-panel, .mc-checks article { background: #fff; }
.mc-shell { --mc-blue: var(--sky-accent); --mc-line: var(--sky-line); --mc-text: var(--sky-ink); }
.focus-shell, .focus-dialog { --fc-bg: #f3fafc; --fc-text: var(--sky-ink); --fc-muted: var(--sky-muted); --fc-line: var(--sky-line); --fc-accent: var(--sky-accent); --fc-soft: #edf9fc; }
.mc-checks button, .mc-section-head h3 span, .fc-version a { color: var(--sky-accent); }
.mc-empty, .fc-lane, .fc-detail-metrics > div, .fc-upload, .focus-dialog .fc-readonly { background: #f5fbfd; }

/* Existing tabs keep their original event handlers and selection semantics. */
.center-tabs { top: 76px; gap: 7px; margin: 0 0 18px; padding: 7px; border-color: var(--sky-line); border-radius: 14px; box-shadow: var(--sky-shadow); }
.center-tabs button { padding: 11px 15px; border-radius: 10px; color: #557382; }
.center-tabs button.active { background: #e7f7fc; border-color: #b8e0ed; color: #076e88; box-shadow: none; }
.center-tabs button:hover { background: #f0fafc; border-color: #c8e6ee; color: var(--sky-accent-dark); }
.mc-tabs, .fc-tabs { gap: 7px; }
.mc-tabs [aria-current=page], .fc-tabs button[aria-selected=true],
.fc-tree .fc-selected, .v2-tabs button.active, .drawer-tabs button.active,
.ops-event-tabs button.active, .ops-mini-tabs button.active,
.ops-matrix-switch button.active, .compass-tabs button.active { background: #e8f7fb; color: #07788f; border-color: #bfe1eb; box-shadow: none; }
.v2-kpi.active, .ops-kpi.active, .ops-live-metric.active { border-color: #168ca8; box-shadow: 0 3px 12px #0d8aa50e; }
.ops-cockpit-metric.active { border-color: #9ed6e2; background: #effafd; }
.compass-tabs { border-color: var(--sky-line); }
.compass-card header > span, .ops-cockpit-head { background: #eff9fc; color: #287b96; border-color: var(--sky-line); }
.ops-cockpit-head button, .ops-filterbar > button, .ops-decision-toolbar button,
.ops-detail-btn, .vq-action, .vq-notice button { color: #16748d; border-color: #c9e2ea; background: #f6fcfe; }
.vq-cards button[aria-pressed=true] { background: #eaf8fc; border-color: #9ad4e3; box-shadow: inset 0 2px #168da6; }
.vq-notice { background: #eff9fc; border-color: #c7e6ee; color: #476d80; }
.patrol-toolbar button[aria-pressed=true] { background: #087e96; border-color: #087e96; color: #fff; }
.patrol-link-group > header { background: #f0f9fc; }
.patrol-link-group > header b, .patrol-item-head .patrol-category { color: #247b95; }
.patrol-item-head .patrol-category, .active-column-filter span, .ops-alert-head > em { background: #eaf7fc; color: #247b95; }

/* Keyboard focus and primary actions meet the same contrast at every center. */
.primary, .btn-primary, .v2-search button, button.primary,
.mc-shell .mc-primary, .mc-dialog .mc-primary,
.focus-shell .fc-primary, .focus-dialog .fc-primary, .vq-notice .vq-primary,
.compass-ai button, .compass-loading button, .button-link {
  background: var(--sky-accent) !important;
  border-color: var(--sky-accent) !important;
  color: #fff;
  box-shadow: none !important;
}
.primary:hover, .btn-primary:hover, .v2-search button:hover, button.primary:hover,
.mc-shell .mc-primary:hover, .mc-dialog .mc-primary:hover,
.focus-shell .fc-primary:hover, .focus-dialog .fc-primary:hover { background: var(--sky-accent-dark) !important; }
.mc-shell button, .mc-dialog button, .focus-shell button, .focus-dialog button { border-color: #cfE3eb; }
.mc-shell button:hover, .mc-dialog button:hover, .focus-shell button:hover,
.focus-dialog button:hover, .secondary:hover, .ghost:hover { border-color: #9dcedd; background: #f0fafc; }
input:focus, select:focus, textarea:focus { border-color: #58aabd !important; box-shadow: 0 0 0 3px #168ca812 !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.mc-shell button:focus-visible, .mc-dialog button:focus-visible { outline: 2px solid #187e9a; outline-offset: 3px; }
input[type=checkbox], progress, .mc-problem progress, .mc-dialog input[type=checkbox] { accent-color: #087e96; }

/* Scroll containers, frozen columns and table headers keep their geometry. */
.table-wrap, .data-table-scroll, .mc-scroll { border-color: var(--sky-line); }
.table-wrap table th, table th, .v2-table th, .pm-table th, .fc-table th,
.mc-shell th { background: #f2fafc; color: #567a8b; border-bottom-color: #dcebf0; padding-top: 14px; padding-bottom: 14px; }
.table-wrap table td, table td, .mc-shell td { border-bottom-color: #e9f1f5; padding-top: 15px; padding-bottom: 15px; }
table tbody tr:hover td { background: #f1fafc; }
.delivery-table thead th:nth-child(-n+4) { background: #edf8fb; }
.delivery-table tbody tr:hover td:nth-child(-n+4) { background: #e8f7fb; }
.delivery-table .column-filter:hover, .delivery-table .column-filter.active { background: #087e96; border-color: #087e96; color: #fff; }

/* Editors and communication stay visually consistent with the main workspace. */
.delivery-editor-dialog, .delivery-threshold-dialog, .delivery-confirm-dialog,
.focus-dialog, .mc-dialog, .admin-dialog { border-color: #cfe4ec; box-shadow: 0 24px 80px #1b52642e; }
.delivery-editor-dialog > header, .mc-dialog > header { background: linear-gradient(110deg, #f0fcfb, #e9f7fc); border-color: var(--sky-line); }
.delivery-editor-dialog header small, .delivery-threshold-dialog > small,
.category-create-dialog header small, .mc-dialog header small { color: #35778c; }
.delivery-threshold-dialog h2, .delivery-filter-popover header b { color: var(--sky-ink); }
.delivery-threshold-icon, .delivery-confirm-icon:not(.reject),
.delivery-modal-close, .delivery-filter-popover header button { background: #eaf8fc; color: #167b95; }
.delivery-editor-dialog .delivery-plan-metrics, .delivery-editor-footer { background: #f5fbfd; border-color: var(--sky-line); }
.delivery-editor-footer .submit-review-button, #modalApprovePlan { background: #087e96 !important; border-color: #087e96 !important; }
.mc-draft { background: #edf8fc; color: #45788b; }
.ops-modal-dialog { background: #f5fbfd; }
.floating-tool-rail button:nth-child(n) { background: #ffffffed; color: #287f97; border-color: #d6eaf0; box-shadow: 0 4px 16px #1b667515; }
.floating-tool-rail button:hover { background: #effafd; }
#teamChatButton { background: #edf8fc; border-color: #d5eaf3; color: #087e96; }
#teamChatButton:hover { background: #dff3fa; }
#teamChatButton.has-unread { background: #d7f1f8; color: #07677c; border-color: #67b7ce; box-shadow: 0 0 0 3px #118da514; }
.tc-header { background: linear-gradient(110deg, #ecfbfa, #f5fbfe); border-color: var(--sky-line); }
.tc-header h2, .tc-room-head h3, .tc-sidebar-title > b { color: var(--sky-ink); }
.tc-brand-icon, .tc-overlay .tc-primary { background: #087e96; border-color: #087e96; color: #fff; }
.tc-overlay .tc-primary:hover { background: #07677c; border-color: #07677c; }
.tc-sidebar { background: #f8fcfd; border-color: var(--sky-line); }
.tc-overlay .tc-room.selected, .tc-contact.chosen { background: #e8f7fb !important; border-color: #bfE2ec !important; }
.tc-messages { background: #f3fafc; }
.tc-message.mine .tc-bubble { background: #087e96; border-color: #087e96; }
.tc-avatar, .tc-message.mine .tc-avatar { background: #e3f3fa; color: #207b98; border-color: #d4eaf2; }
.tc-avatar.tc-group-avatar { background: #e4f5f3; color: #168772; border-color: #d5eeea; }
.tc-empty { background: radial-gradient(ellipse at 50% 40%, #e6f8fc, transparent 65%); }
.tc-empty-art { color: #168da6; border-color: #d6eaf1; box-shadow: 0 12px 35px #168ba714; }
.tc-eyebrow, .tc-overlay .tc-back, .tc-contact.chosen i { color: #327a91; }
.tc-alert-panel, .tc-emoji-panel { background: #f1fafc; border-color: #d6eaf1; }
.tc-alert-heading > b { color: #246d83; }
.tc-compose-tools #tcEmojiToggle[aria-expanded=true] { color: #087e96; background: #e7f6fb; border-color: #c7e5ee; }
.tc-overlay .tc-emoji-choice:hover { background: #dff3f8; border-color: #b9dfe9; }
.tc-overlay button:focus-visible, .tc-overlay input:focus-visible,
.tc-overlay textarea:focus-visible, .tc-overlay select:focus-visible { outline-color: #187e9a; }
.floating-tool-rail button { width: 100%; }
.login-screen { background: radial-gradient(ellipse at 18% 12%, #d9f7f5, transparent 55%), linear-gradient(125deg, #f4fcfd, #e8f5fc); }
.login-shell { border-color: #d1e9f1; box-shadow: 0 24px 70px #1b68751a; }
.login-submit { background: #087e96; }

@media (min-width: 761px) {
  body:not(.focus-mode) .content { padding-right: 88px; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .sidebar { padding: 14px 10px; }
  .brand { padding-bottom: 12px; }
  .sidebar .brand-mark { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; }
  .nav { margin-top: 10px; gap: 4px; }
  .nav button { min-height: 52px; padding: 6px 3px; gap: 4px; }
  .side-footer { display: none; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .topbar { padding: 0 18px; gap: 14px; }
  .topbar .access-note { display: none; }
  .content { padding: 18px; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 12px; }
  .brand { justify-content: flex-start; padding: 0; border: 0; }
  .sidebar .brand-mark { width: 44px; height: 44px; font-size: 16px; border-radius: 13px; }
  .brand > div:last-child { display: block; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; gap: 5px; }
  .nav button { min-height: 60px; padding: 8px 2px; line-height: 1.4; }
  .side-footer { display: none; }
  .topbar { height: auto; min-height: 64px; padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .page-id { min-width: 0; flex: 1; }
  .topbar h1 { font-size: 17px; }
  .topbar .page-id p { display: none; }
  .top-actions { gap: 6px; margin-left: auto; }
  .topbar .access-note, .topbar .search { display: none; }
  .user-area { padding: 4px; }
  .user-area .user-meta { display: none; }
  .top-actions > .icon-btn:not(#teamChatButton) { display: none; }
  .content { padding: 14px 12px 34px; }
  .center-tabs { position: relative; top: auto; margin-bottom: 14px; }
  .hero, .combined-hero, .compass-hero, .ops-hub-head, .ops-channel-head,
  .ops-decision-hero, .fc-hero, .mc-head { padding: 20px 18px !important; min-height: 112px; border-radius: 14px !important; gap: 12px; flex-wrap: wrap; }
  .hero h2, .combined-hero h2, .compass-hero h2, .ops-decision-hero h2,
  .fc-hero h2, .mc-head h2 { font-size: 22px !important; }
  .panel, .v2-panel, .mc-panel, .mc-checks article { padding: 16px; }
  .mc-filter, .mc-section-head, .mc-pages { flex-wrap: wrap; }
  .mc-filter input { min-width: 0; }
  .mc-tabs { flex-wrap: nowrap; overflow: auto; padding-bottom: 4px; }
  .mc-tabs button { flex-shrink: 0; }
  .mc-form { grid-template-columns: minmax(0, 1fr); }
  .mc-form input, .mc-form select, .mc-form textarea { min-width: 0; max-width: 100%; }
  .mc-dialog { width: calc(100vw - 24px); max-height: 90dvh; }
  .mc-dialog > header, .mc-dialog form, .mc-history { padding: 18px; }
  .mc-dialog form > footer { flex-wrap: wrap; }
  body:not(.focus-mode) .content { padding-bottom: 90px; }
  .floating-tool-rail { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; transform: none; width: auto; flex-direction: row; }
  .floating-tool-rail button { width: 46px; min-height: 46px; font-size: 10px; }
}
