/* SK Control. One dark surface system for every page. */

body {
  background: #101113;
  color: #e7e8ea;
  font: 13px/1.45 "Segoe UI", sans-serif;
}

body.ops {
  --bg: #101113;
  --surface: #1c1f26;
  --text: #e7e8ea;
  --muted: #8b919a;
  --line: #2c313a;
  --accent: #8b9cf7;
  --radius: 6px;
  background: #101113;
}

.sidebar { background: #14161a; border-right: 1px solid #2c313a; }
.side-nav a { border-radius: 6px; }
.side-nav a.on { background: #23262e; color: #f2f3f5; box-shadow: none; }
.logo, .avatar { border-radius: 6px; background: #23262e; }
.main { background: #101113; }
.bottom-nav { background: #14161a; border-top: 1px solid #2c313a; }

body.ops .ops-top { height: 48px; flex-basis: 48px; }
body.ops .ops-top h1,
body.ops h1 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; }
body.ops h2, body.ops h3 { font-size: 13px; font-weight: 600; }

body.ops .chip,
body.ops .chips button,
body.ops .pick-btn,
body.ops .scope button,
body.ops .place-switch button,
body.ops .crm-btn,
body.ops button,
body.ops input,
body.ops select,
.tm .crm-btn,
.tm .shift-tab,
.tm .menu-btn {
  border-radius: 6px;
  box-shadow: none;
}

body.ops .mon-filters,
body.ops .scope,
.tm .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
body.ops .chips { flex-wrap: nowrap; }

body.ops table { width: 100%; border-collapse: collapse; font-size: 13px; }
body.ops th,
body.ops td { padding: 6px 8px; border-bottom: 1px solid #2c313a; vertical-align: middle; }
body.ops th { color: #8b919a; font-weight: 600; font-size: 12px; text-align: left; }
body.ops tr:hover td { background: rgba(255, 255, 255, .03); }

.tm .hero-kpis { gap: 8px; padding: 8px 16px; }
.tm .hero-kpi {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: #1c1f26;
  border: 1px solid #2c313a;
}
.tm .hero-kpi .ico { display: none; }
.tm .hero-kpi b { font-size: 18px; font-weight: 600; }
.tm .hero-kpi span { font-size: 12px; }
.tm .feed-row,
.tm .tl-card {
  border-radius: 6px;
  margin: 4px 0;
  padding: 6px 8px;
  box-shadow: none;
}
.tm .shift-tab { border-radius: 0; }
.tm .shift-tab.active { border-bottom-color: #8b9cf7; }
.tm .ref-person .pill,
body.ops .status-pill { border-radius: 6px; min-width: 0; }

body.ops .skel {
  height: 40px;
  border-radius: 6px;
  background: #1c1f26;
  animation: none;
}

body.ops .quiet,
body.ops .place,
.visual-wait {
  color: #8b919a;
  font-size: 12px;
}
.visual-wait { margin: 0 16px 8px; }

body.ops button:focus-visible,
body.ops a:focus-visible,
body.ops input:focus-visible,
body.ops select:focus-visible,
.tm button:focus-visible,
.tm a:focus-visible {
  outline: 2px solid #8b9cf7;
  outline-offset: 1px;
}
body.ops button:disabled,
body.ops input:disabled,
.tm .crm-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.gate { background: #101113; }
.gate-card {
  background: #1c1f26;
  color: #e7e8ea;
  border: 1px solid #2c313a;
  border-radius: 8px;
  box-shadow: none;
}
.gate-card .primary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: #23262e;
  color: #e7e8ea;
  text-decoration: none;
}

.sheet, .role-pop, .pick-pop, .photo-viewer {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .tm .hero-kpis { grid-template-columns: 1fr; }
  body.ops .ops-top h1 { font-size: 14px; }
}

/* Pages that still painted their own navy. Color only — layout stays in each stylesheet. */
body.ops .ops-map,
body.ops.map-screen .map-workspace { background: #101113; }
body.ops .ops-rail { background: #14161a; border-left: 1px solid #2c313a; }
body.ops .chips button,
body.ops .map-find select,
body.ops .map-find input,
body.ops .map-search,
body.ops .scope button,
body.ops .attn-fab,
body.ops .ops-filter-launch,
body.ops .ops-filter-done {
  background: #1c1f26;
  border-color: #2c313a;
  color: #e7e8ea;
}
body.ops .chips button.on,
body.ops .scope button.on,
body.ops #kindChips button.on,
body.ops .helper-tabs button.on {
  background: #2a3148;
  border-color: #8b9cf7;
  color: #f4f5f7;
  box-shadow: none;
}
body.ops #kindChips button.on::before { color: #c9cff8; }
body.ops .map-search:focus-within { border-color: #8b9cf7; box-shadow: none; }
body.ops .ops-card,
body.ops .attn-card,
body.ops .ops-empty,
body.ops .helper-card,
body.ops .station-card,
body.ops .helper-report,
body.ops .kind-board article,
body.ops .work-kinds article,
body.ops .helper-notice,
body.ops .draft-card select,
body.ops .draft-card input {
  background: #1c1f26;
  border-color: #2c313a;
  color: #e7e8ea;
  box-shadow: none;
}
body.ops .kind-board .ring {
  background: conic-gradient(#3dba84 calc(var(--pct) * 1%), #2c313a 0);
}
body.ops .kind-board .ring b { background: #1c1f26; color: #e7e8ea; }
body.ops .work-kinds b,
body.ops .kind-board small,
body.ops .place-board small,
body.ops .loc-bar b { color: #8b919a; }
body.ops .loc-bar i,
body.ops .place-board i { background: #2c313a; }
body.ops .place-board em { background: #8b9cf7; }
body.ops .loc-bar em { background: #3dba84; }
body.ops .station-card a,
body.ops .helper-notice button,
body.ops .draft-card button[type="submit"] { color: #c5caf0; }
body.ops .station-card { box-shadow: inset 3px 0 0 #3dba84; }
body.ops .station-card.diff { background: #2a241c; border-color: #6a5438; box-shadow: inset 3px 0 0 #e0a15a; }
body.ops .attn-card.bad { box-shadow: inset 3px 0 0 var(--bad); }
body.ops .attn-card.warn { box-shadow: inset 3px 0 0 var(--warn); }
body.ops .status-pill,
body.ops .pick-pop,
body.ops .kpis div,
body.ops .today-result,
body.ops .today-kinds,
body.ops .dash-goal,
body.ops .vehicle-feed,
body.ops .task-roster,
body.ops .task-empty,
body.ops .shift-feed,
body.ops .shift-context section,
body.ops.map-screen .drawer,
body.ops.map-screen .map-note,
body.ops.home .search,
body.ops.home .kpi-row article,
body.ops.home .watch,
body.ops.home .panel,
body.ops.home .today-block,
body.ops.home .watch-card,
body.ops.home .map-card,
body.admin-page .admin-note,
body.ops .stack-item {
  background: #1c1f26;
  border-color: #2c313a;
  color: #e7e8ea;
}
body.ops .chip,
body.ops .pick-btn,
body.ops .task-map-toolbar .chips button,
body.ops .task-map-toolbar .chips a {
  background: #1c1f26;
  border-color: #2c313a;
  color: #e7e8ea;
  box-shadow: none;
}
body.ops .task-map-toolbar .chips button.on,
body.ops .task-map-toolbar .chips a.on,
body.ops .pick-opt.on {
  background: #2a3148;
  border-color: #8b9cf7;
  color: #f4f5f7;
  box-shadow: none;
}
body.ops .stack-item:hover,
body.ops .stack-item:active { background: #23262e; border-color: #8b9cf7; }
body.ops .scooter-wrap.picked { box-shadow: 0 0 0 3px rgba(139, 156, 247, .55); }
body.ops .task-roster-head,
body.ops .mon-table th,
body.ops.home .rail-switch { background: #17191e; }
body.ops .shift-tabs button.on,
body.ops .tl-kinds button.on { background: #2a3148; color: #f4f5f7; }
body.ops .hero-kpis span,
body.ops .shift-id b span,
body.ops .shift-id p,
body.ops .tl-row time,
body.ops .tl-idle time,
body.ops .tl-list .tl-status { color: #8b919a; }
body.ops .tl-photo,
body.ops .tl-card .ph { background: #17191e; }
body.ops.map-screen .map-filter-sheet .text-btn:hover,
body.ops.map-screen .map-filter-sheet .text-btn:active { background: #8b9cf7; color: #101113; }
@media (max-width: 768px) {
  body.ops .map-tools { background: #1c1f26; }
  body.ops .ops-filter-launch,
  body.ops .ops-filter-launch.on {
    background: #1c1f26;
    border-color: #8b9cf7;
    color: #e7e8ea;
  }
  body.ops .ops-filter-done { background: #8b9cf7; color: #101113; }
}

body.ops .duty-line a { color: #9ec1ff; margin-left: 10px; white-space: nowrap; text-decoration: none; }
