:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee6;
  --soft: #f8fafc;
  --brand: #007f8f;
  --brand-dark: #075965;
  --brand-soft: #dff7f7;
  --good: #16803c;
  --warn: #b85c00;
  --danger: #b42318;
  --nav: #0c1423;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; max-width: 100%; }
button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
h1, h2, p { margin-top: 0; }
h1, h2, p, strong, span, small, b { overflow-wrap: anywhere; }
h1 { margin-bottom: 0; font-size: 30px; letter-spacing: 0; }
h2 { margin-bottom: 2px; font-size: 18px; letter-spacing: 0; }
p { margin-bottom: 0; color: var(--muted); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.sidebar {
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(0,127,143,.34), transparent 34%),
    linear-gradient(180deg, #0c1423 0%, #111827 100%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1fbfc, #cceff2);
  color: var(--brand-dark);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(7,89,101,.08);
}
.brand strong { display: block; line-height: 1.05; font-size: 19px; }
.brand small, .tenant-card span, .tenant-card small {
  display: block;
  color: #aeb8c2;
}
.service-chip {
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dff7f7;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.nav { display: grid; gap: 8px; }
.nav-item {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: #d6dde5;
  text-align: left;
}
.nav-item span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #9fb0bf;
  font-size: 11px;
}
.nav-item strong {
  min-width: 0;
  line-height: 1;
  font-size: 14px;
  overflow-wrap: normal;
  white-space: nowrap;
}
.nav-item small {
  min-width: 0;
  margin-top: 3px;
  color: #9fb0bf;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: normal;
  white-space: nowrap;
}
.nav-item.active, .nav-item:hover {
  border-color: rgba(63,215,219,.42);
  background: #ecfeff;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  color: white;
}
.nav-item.active strong, .nav-item:hover strong { color: #073f49; }
.nav-item.active small, .nav-item:hover small { color: #0f766e; }
.nav-item.active span, .nav-item:hover span {
  background: var(--brand);
  color: white;
}
.tenant-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
}

.main {
  min-width: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.topbar {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.topline { margin-top: 7px; font-weight: 700; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.primary, .ghost { padding: 0 15px; }
.primary { background: var(--brand); color: white; }
.ghost { background: #e5ebf1; color: var(--ink); }

.view { display: none; }
.view.active { display: grid; gap: 16px; }
.replace-flow {
  display: grid;
  gap: 14px;
}
.replace-head,
.replace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.replace-head {
  padding: 18px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}
.replace-head h2 {
  margin: 6px 0 5px;
  font-size: 28px;
}
.replace-head p {
  color: #cbd5e1;
  font-weight: 700;
}
.status-pill.dark {
  background: rgba(255,255,255,.12);
  color: #ffffff;
}
.back-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #e5ebf1;
  color: #111827;
}
.replace-step {
  display: none;
}
.replace-step.active {
  display: grid;
  gap: 12px;
}
.replace-toolbar {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.replace-toolbar strong {
  font-size: 18px;
}
.replace-toolbar span {
  color: var(--muted);
  font-weight: 800;
}
.planned-shifts,
.candidate-list {
  display: grid;
  gap: 10px;
}
.planned-shift,
.candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, .8fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.planned-shift.alert {
  border-color: #fecaca;
  background: #fff7f7;
}
.planned-shift strong,
.candidate-card strong {
  display: block;
  font-size: 16px;
}
.planned-shift span,
.planned-shift small,
.candidate-card span,
.candidate-card small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}
.planned-shift b {
  display: block;
  font-size: 15px;
}
.planned-shift em,
.candidate-card em {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.planned-shift button,
.candidate-card button {
  padding: 0 14px;
  background: #111827;
  color: #ffffff;
}
.replace-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.replace-filters button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e5ebf1;
  color: #344054;
  white-space: nowrap;
}
.replace-filters button.active {
  background: var(--brand);
  color: #ffffff;
}
.candidate-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.candidate-score {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ecfeff;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 950;
}
.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}
.planner-hero, .control-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  min-width: 0;
}
.planner-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: stretch;
  padding: 18px;
  border-radius: 8px;
  background: #182230;
  color: white;
}
.planner-hero h2 {
  margin: 7px 0 8px;
  font-size: 34px;
  line-height: 1.05;
}
.planner-hero p { color: #d5e1ea; font-weight: 650; }
.planner-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.planner-summary article {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.planner-summary span, .planner-summary small {
  display: block;
  color: #d5e1ea;
}
.planner-summary strong {
  display: block;
  margin: 5px 0;
  font-size: 24px;
}
.control-main, .money-panel {
  border-radius: 8px;
  border: 1px solid var(--line);
}
.control-main {
  padding: 22px;
  color: white;
  background: linear-gradient(135deg, #0a6f7d, #182230);
  display: grid;
  gap: 12px;
  align-content: center;
}
.control-main h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}
.control-main p {
  max-width: 660px;
  color: #d7eef2;
  font-weight: 650;
}
.status-pill {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #ecfeff;
  font-size: 12px;
  font-weight: 900;
}
.decision-row { display: flex; gap: 10px; flex-wrap: wrap; }
.money-panel {
  padding: 18px;
  background: var(--panel);
  display: grid;
  align-content: center;
  gap: 6px;
}
.money-panel span, .money-panel small { color: var(--muted); font-weight: 800; }
.money-panel strong { font-size: 34px; color: var(--brand-dark); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metric-grid article, .panel, .kiosk-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric-grid article { padding: 15px; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid strong { display: block; margin: 5px 0; font-size: 26px; }

.work-grid, .kiosk-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 14px;
}
.panel { min-width: 0; padding: 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.live { color: var(--good); font-weight: 900; }
.people-list, .task-list, .activity-feed, .validation-list, .audit-list, .team-grid, .week-board {
  display: grid;
  gap: 9px;
}
.person {
  width: 100%;
  min-height: unset;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.person:hover { border-color: var(--brand); background: #eefcff; }
.person span, .person small { display: block; color: var(--muted); }
.badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf8ee;
  color: var(--good);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.badge.late, .badge.alert { background: #fff1f0; color: var(--danger); }
.badge.pause { background: #fff5e8; color: var(--warn); }
.task-list button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.activity-feed {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.activity-feed div, .audit-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}
.activity-feed b { color: var(--ink); }

.week-scheduler {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 9px;
}
.week-scheduler article, .team-card, .validation-row {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.week-scheduler span, .week-scheduler small, .team-card span, .team-card small, .validation-row span, .validation-row small {
  display: block;
  color: var(--muted);
}
.week-scheduler b {
  display: block;
  margin: 6px 0;
  color: var(--brand-dark);
}
.week-scheduler article.open { border-color: #fed7aa; background: #fff8ef; }
.requests-list {
  display: grid;
  gap: 9px;
}
.requests-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.requests-list span { color: var(--muted); }
.requests-list button {
  padding: 0 12px;
  background: #e8f7fa;
  color: var(--brand-dark);
}
.planning-tools {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.planning-tools button {
  background: #e8f7fa;
  color: var(--brand-dark);
  padding: 0 12px;
}

.kiosk-card { padding: 16px; display: grid; gap: 12px; text-align: center; }
.clock {
  padding: 22px;
  border-radius: 8px;
  background: #182230;
  color: white;
}
.clock strong { display: block; font-size: 48px; }
.clock span { color: #c8d2dc; }
.employee-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}
.employee-strip article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.employee-strip span, .employee-strip small { display: block; color: var(--muted); }
.employee-actions { margin: 0 0 14px; }
#pinInput {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 22px;
}
.pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pad button { background: #e8eef4; font-size: 20px; }
.kiosk-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.success { background: var(--good); color: white; }
.warning { background: var(--warn); color: white; }
.danger { background: var(--danger); color: white; }

.validation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 10px;
  align-items: center;
}
.validation-row b.ok { color: var(--good); }
.validation-row b.late, .validation-row b.alert { color: var(--danger); }
.validation-row b.pause { color: var(--warn); }

.team-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.team-card {
  display: grid;
  gap: 8px;
}
.team-card b { color: var(--brand-dark); }
.payroll-table { display: grid; }
.pay-row {
  display: grid;
  grid-template-columns: 1.2fr .9fr .7fr .7fr .8fr .8fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.pay-row.head { color: var(--muted); font-weight: 900; }
.pay-row strong { color: var(--brand-dark); }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #182230;
  color: white;
  font-weight: 850;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 11px 12px 10px;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 12px; }
  .service-chip { padding: 6px 8px; font-size: 10px; }
  .tenant-card { display: none; }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item {
    width: auto;
    min-height: 62px;
    padding: 10px 10px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    text-align: left;
    background: rgba(255,255,255,.055);
  }
  .nav-item span { display: none; }
  .nav-item strong { font-size: 15px; text-align: left; }
  .nav-item small { font-size: 12px; text-align: left; }
  .main { padding: 12px; gap: 14px; }
  .topbar { flex-direction: column; }
  .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .actions button { width: 100%; padding: 0 10px; }
  .planner-hero, .control-room, .work-grid, .kiosk-wrap { grid-template-columns: 1fr; }
  .planner-summary { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-scheduler { grid-template-columns: 1fr; }
  .requests-list div { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 25px; line-height: 1.08; }
  .topline { font-size: 14px; }
  .sidebar { padding-top: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .service-chip { display: none; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-item { min-height: 58px; padding: 10px 12px; }
  .nav-item strong { font-size: 16px; }
  .nav-item small { font-size: 12px; }
  .control-main { padding: 16px; }
  .control-main h2 { font-size: 25px; }
  .decision-row { display: grid; grid-template-columns: 1fr; }
  .metric-grid, .planning-tools, .kiosk-actions, .employee-strip { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
  .panel-head { flex-direction: column; }
  .panel-head button { width: 100%; }
  .panel-head p { display: none; }
  .person { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .person > div:nth-child(2) { text-align: right; }
  .person .badge { grid-column: 1 / -1; width: fit-content; }
  .validation-row, .pay-row { grid-template-columns: 1fr; gap: 5px; }
  .pay-row.head { display: none; }
  .clock strong { font-size: 42px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 380px) {
  .main { padding: 10px; }
  .nav { gap: 7px; }
  .nav-item { min-height: 54px; padding: 9px 10px; }
  .nav-item strong { font-size: 15px; }
  .nav-item small { font-size: 11px; }
  .person { grid-template-columns: 1fr; }
  .person > div:nth-child(2) { text-align: left; }
}

/* Mobile 2026 reset: the phone app is a command center, not a small desktop. */
.mobile-command { display: none; }

@media (max-width: 900px) {
  body {
    padding-bottom: 100px;
    background: #f6f7fb;
  }

  .sidebar {
    position: static;
    padding: 14px 14px 6px;
    background: #f6f7fb;
    color: #101828;
    border: 0;
  }

  .brand {
    padding: 4px 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    color: #667085;
  }

  .service-chip {
    border: 0;
    background: #e7f1ff;
    color: #073b7a;
  }

  .nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 26px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 18px 48px rgba(17,24,39,.18);
    backdrop-filter: blur(16px);
  }

  .nav-item.secondary {
    display: none;
  }

  .nav-item {
    min-height: 58px;
    padding: 7px 4px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #667085;
    text-align: center;
    box-shadow: none;
  }

  .nav-item span {
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
    font-size: 21px;
    line-height: 1;
  }

  .nav-item strong {
    font-size: 12px;
    text-align: center;
  }

  .nav-item small {
    display: none;
  }

  .nav-item.active,
  .nav-item:hover {
    background: #111827;
    color: #ffffff;
    box-shadow: none;
  }

  .nav-item.active strong,
  .nav-item:hover strong,
  .nav-item.active span,
  .nav-item:hover span {
    color: #ffffff;
  }

  .main {
    padding: 0 14px 14px;
  }

  .topbar {
    padding: 0;
  }

  .topbar h1,
  .topline,
  .actions {
    display: none;
  }

  .eyebrow {
    color: #7c3aed;
  }
}

@media (max-width: 560px) {
  .mobile-command {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(17,24,39,.07);
  }

  .mobile-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-live-head span,
  .mobile-live-head b {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-live-head strong {
    display: block;
    margin-top: 1px;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-status span,
  .mobile-status small {
    display: block;
    color: #667085;
    font-weight: 800;
  }

  .mobile-status {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
  }

  .mobile-status > b {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fb923c;
    color: #ffffff;
    font-size: 22px;
  }

  .mobile-status strong {
    display: block;
    margin: 2px 0;
    color: #111827;
    font-size: 21px;
    line-height: 1.05;
  }

  .mobile-status span,
  .mobile-status small {
    font-size: 12px;
  }

  .mobile-now-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .mobile-now-grid article {
    min-width: 0;
    padding: 7px 4px;
    border-radius: 13px;
    background: #f2f4f7;
    text-align: center;
  }

  .mobile-now-grid .pause-stat {
    background: #fffaeb;
  }

  .mobile-now-grid b {
    display: block;
    color: #111827;
    font-size: 17px;
  }

  .mobile-now-grid span {
    display: block;
    color: #667085;
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-service-list {
    display: grid;
    gap: 6px;
  }

  .mobile-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
  }

  .mobile-service-row.alert {
    border-color: #fecaca;
    background: #fff1f0;
  }

  .mobile-service-row.pause {
    border-color: #fed7aa;
    background: #fffbeb;
  }

  .mobile-service-row span,
  .mobile-service-row small {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-service-row strong {
    color: #111827;
    font-size: 14px;
    justify-self: end;
  }

  .mobile-service-row small {
    grid-column: 1 / -1;
  }

  .mobile-action-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mobile-action-stack button {
    min-height: 46px;
    border-radius: 14px;
    font-size: 15px;
  }

  .mobile-action-stack .primary {
    background: #111827;
    color: #ffffff;
  }

  .mobile-action-stack .ghost {
    background: #eef4ff;
    color: #073b7a;
  }

  .mobile-action-stack .pause-action {
    grid-column: 1 / -1;
    background: #fff7ed;
    color: #9a3412;
  }

  .control-room,
  .metric-grid,
  .decision-panel {
    display: none;
  }

  .replace-head {
    padding: 14px;
    align-items: flex-start;
    border-radius: 18px;
  }

  .replace-head h2 {
    font-size: 22px;
    line-height: 1.1;
  }

  .replace-head p {
    font-size: 13px;
  }

  .replace-toolbar {
    padding: 10px;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 16px;
  }

  .planned-shift,
  .candidate-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
  }

  .planned-shift > div:nth-child(2) {
    text-align: right;
  }

  .planned-shift em,
  .candidate-card em {
    grid-column: 1;
    width: fit-content;
  }

  .planned-shift button,
  .candidate-card button {
    grid-column: 2;
    grid-row: 2 / 4;
    min-height: 42px;
    border-radius: 13px;
  }

  .candidate-score {
    width: 38px;
    height: 38px;
  }

  .candidate-card > div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .live-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .live-panel .panel-head {
    display: none;
  }

  .people-list {
    gap: 10px;
  }

  .person {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17,24,39,.06);
  }

  .person strong {
    font-size: 17px;
  }

  .person > div:nth-child(2) {
    text-align: right;
  }

  .person .badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .planner-hero {
    padding: 16px;
    border-radius: 24px;
  }

  .planner-hero h2 {
    font-size: 28px;
  }

  .planner-hero p,
  .planner-summary {
    display: none;
  }

  .panel,
  .week-scheduler article,
  .team-card,
  .validation-row,
  .kiosk-card {
    border-radius: 20px;
  }
}
