.setup-review-work { display:grid; grid-template-columns:1.3fr 100px 100px 1fr auto; gap:10px; padding:12px 0; align-items:end; border-bottom:1px solid #e8e3dc; }
.setup-review-work label { font-size:12px; color:#5d5550; }
.setup-review-work input,.setup-review-work select { width:100%; min-height:44px; margin-top:5px; padding:8px; border:1px solid #ccc4bb; border-radius:6px; background:white; color:#29231e; }
@media(max-width:700px) { .setup-review-work {grid-template-columns:1fr 1fr;} .setup-review-work label:first-child {grid-column:1/-1;} }
:root {
  color-scheme: light;
  --red-950: #641120;
  --red-800: #92192d;
  --red-700: #b51d33;
  --red-600: #c92742;
  --red-100: #fde8ec;
  --ink: #17212b;
  --ink-soft: #52606d;
  --navy: #182934;
  --canvas: #f3f5f6;
  --paper: #ffffff;
  --line: #dce2e5;
  --line-strong: #c6cfd4;
  --green: #1b7651;
  --green-soft: #e7f5ee;
  --amber: #9a5d08;
  --amber-soft: #fff1d6;
  --blue: #285b8f;
  --blue-soft: #e6f0f9;
  --shadow-sm: 0 1px 2px rgba(23, 33, 43, 0.08), 0 3px 10px rgba(23, 33, 43, 0.04);
  --shadow-lg: 0 24px 70px rgba(23, 33, 43, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(181, 29, 51, 0.035), transparent 28rem),
    var(--canvas);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(40, 91, 143, 0.45);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 220px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.1), transparent 19rem),
    var(--navy);
}

.sidebar-close,
.sidebar-scrim,
.icon-button.sidebar-toggle {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.07);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--red-600);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.nav-item {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item:active {
  transform: scale(0.98);
}

.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--red-600);
}

.nav-item svg,
.icon-button svg,
.card-arrow svg,
.back-button svg,
.lock-icon svg,
.status-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.rail-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 4px;
  color: rgba(255, 255, 255, 0.78);
}

.rail-foot > span:last-child {
  display: grid;
}

.rail-foot strong,
.rail-foot small {
  display: block;
}

.rail-foot strong {
  font-size: 0.82rem;
}

.rail-foot small {
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.sync-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #56d297;
  box-shadow: 0 0 0 4px rgba(86, 210, 151, 0.12);
}

.main-stage {
  min-height: 100vh;
  margin-left: 220px;
  padding: 0 34px 52px;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--red-700);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar h1,
.page-heading h2,
.section-heading h2,
.app-dialog h2,
.completion-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.topbar h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.back-button,
.dialog-close {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.mode-pill,
.status-pill,
.task-flag,
.verified-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.mode-pill {
  min-height: 46px;
  padding: 0 17px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(27, 118, 81, 0.12);
  font-size: 0.83rem;
}

.view {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  animation: view-in 220ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.event-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 28px 30px;
  color: #fff;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.07), transparent 46%),
    linear-gradient(135deg, var(--red-950), var(--red-700) 64%, #cd3048);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px rgba(100, 17, 32, 0.2);
  overflow: hidden;
  position: relative;
}

.event-strip.is-scheduled {
  background: linear-gradient(135deg, #172c39, #2b4b5b);
  box-shadow: 0 18px 42px rgba(23, 44, 57, 0.18);
}

.event-strip.is-past {
  background: linear-gradient(135deg, #3d2730, #784050);
  box-shadow: 0 18px 42px rgba(61, 39, 48, 0.18);
}

.event-strip.is-past.is-target-met {
  background: linear-gradient(135deg, #174a39, #287458);
  box-shadow: 0 18px 42px rgba(23, 74, 57, 0.18);
}

.event-strip::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -82px;
  top: -116px;
  border: 38px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.event-main,
.readiness-score {
  position: relative;
  z-index: 1;
}

.event-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.event-kicker .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14);
}

.event-main h2 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.countdown {
  margin-top: 10px;
  font-size: clamp(2.65rem, 7vw, 5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.countdown.is-static {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.event-subline {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
}

.readiness-score {
  min-width: 180px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  text-align: right;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.readiness-score strong {
  display: block;
  font-size: 2.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.readiness-score span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.83rem;
  font-weight: 720;
}

.critical-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 17px;
  border: 1px solid #efb5be;
  border-radius: 15px;
  color: var(--red-950);
  background: var(--red-100);
  font-weight: 750;
}

.critical-banner svg,
.attention-banner svg,
.success-banner svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.cycle-picker {
  display: flex;
  gap: 8px;
  margin: 22px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cycle-picker::-webkit-scrollbar {
  display: none;
}

.leader-cycle-picker { flex-wrap: wrap; overflow-x: visible; }
.closing-cycle-chip { color: var(--red-700); border-color: var(--red-700); }

.cycle-chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}

.cycle-chip.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.section-heading,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 15px;
}

.section-heading h2 {
  font-size: 1.25rem;
}

.section-heading p,
.page-heading p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.area-card {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.area-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 13px 30px rgba(23, 33, 43, 0.1);
}

.area-card:active {
  transform: scale(0.99);
}

.area-card.is-attention {
  border-color: #efb5be;
  box-shadow: inset 0 4px 0 var(--red-600), var(--shadow-sm);
}

.area-card.is-ready {
  box-shadow: inset 0 4px 0 var(--green), var(--shadow-sm);
}

.area-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.area-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--red-700);
  background: var(--red-100);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--canvas);
}

.area-card h3 {
  margin: 17px 0 0;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
}

.area-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.area-progress-copy {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
}

.status-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.73rem;
}

.status-not-started { color: var(--ink-soft); background: #edf0f2; }
.status-in-progress { color: var(--blue); background: var(--blue-soft); }
.status-needs-attention { color: var(--red-800); background: var(--red-100); }
.status-ready { color: var(--green); background: var(--green-soft); }

.progress-track {
  height: 7px;
  margin-top: 11px;
  border-radius: 999px;
  background: #e7ebed;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 220ms ease;
}

.area-card.is-ready .progress-track span { background: var(--green); }
.area-card.is-attention .progress-track span { background: var(--red-600); }

.bottom-nav {
  display: none;
}

.back-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 13px;
  font-weight: 760;
}

.page-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.page-heading-copy {
  flex: 1;
}

.page-heading h2 {
  margin-top: 7px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.detail-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--navy);
}

.detail-summary p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.detail-summary strong {
  font-size: 1.15rem;
}

.detail-score {
  text-align: right;
}

.detail-score strong {
  display: block;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.detail-score span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 700;
}

.task-list {
  display: grid;
  gap: 11px;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 15px 16px 15px 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.task-card.is-ready {
  border-color: #b7decf;
  background: linear-gradient(90deg, var(--green-soft), #fff 28%);
}

.task-card.is-attention {
  border-color: #efb5be;
  background: linear-gradient(90deg, var(--red-100), #fff 32%);
}

.task-copy {
  min-width: 0;
}

.task-copy strong {
  display: block;
  line-height: 1.32;
}

.task-copy p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.task-flags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.task-flag {
  min-height: 23px;
  padding: 0 8px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.task-flag.critical { color: var(--red-800); background: var(--red-100); }
.task-flag.priority { color: var(--amber); background: var(--amber-soft); }

.task-actions {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) 54px;
  gap: 8px;
}

.task-button {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.task-button.ready:hover,
.task-button.ready.is-selected {
  color: var(--green);
  border-color: #79ba9f;
  background: var(--green-soft);
}

.task-button.attention:hover,
.task-button.attention.is-selected {
  color: var(--red-800);
  border-color: #e38796;
  background: var(--red-100);
}

.task-exception { color: var(--red-800) !important; font-weight: 760; }
.task-more { position: relative; }
.task-more summary {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--paper);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.task-more summary::-webkit-details-marker { display: none; }
.cleaning-more-button {
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}
.task-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 12;
  min-width: 178px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.task-menu button { width: 100%; min-height: 44px; border: 0; border-radius: 9px; background: var(--red-100); color: var(--red-800); font-weight: 800; cursor: pointer; }

.sticky-progress {
  position: sticky;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 45px rgba(23, 33, 43, 0.16);
  backdrop-filter: blur(10px);
}

.sticky-progress strong {
  display: block;
  font-size: 0.91rem;
}

.sticky-progress span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 820;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  border: 1px solid var(--red-700);
  background: var(--red-700);
  box-shadow: 0 7px 18px rgba(181, 29, 51, 0.2);
}

.primary-button:hover { background: var(--red-800); }
.primary-button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.danger-button {
  color: var(--red-800);
  border: 1px solid #efb5be;
  background: var(--red-100);
}

.full-width { width: 100%; }

.cleaning-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.cleaning-summary > div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.cleaning-summary strong,
.cleaning-leader-metrics strong { display: block; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.04em; }
.cleaning-summary span,
.cleaning-leader-metrics span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .76rem; }
.cleaning-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cleaning-tab {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}
.cleaning-tab.is-active { color: #fff; border-color: var(--navy); background: var(--navy); }
.cleaning-tab span { min-width: 24px; padding: 3px 6px; border-radius: 8px; background: rgba(117,129,140,.15); font-size: .74rem; }
.cleaning-tab.is-active span { background: rgba(255,255,255,.18); }
.cleaning-state { display: inline-block; width: max-content; margin-top: 8px; padding: 4px 8px; border-radius: 8px; color: var(--ink-soft); background: var(--canvas); font-size: .71rem; font-weight: 820; }
.cleaning-state.state-complete { color: var(--green); background: var(--green-soft); }
.cleaning-state.state-attention,
.cleaning-state.state-overdue { color: var(--red-800); background: var(--red-100); }
.cleaning-note { margin: 17px 2px 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.5; }
.cleaning-week-list { display: grid; gap: 14px; }
.cleaning-week-day .panel-header { margin-bottom: 8px; }
.cleaning-week-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cleaning-week-row:last-child { border-bottom: 0; }
.cleaning-week-row strong { display: block; font-size: .84rem; }
.cleaning-week-row span:not(.cleaning-state) { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .73rem; }
.cleaning-week-row .cleaning-state { margin-top: 0; text-align: center; }
.cleaning-leader-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
.cleaning-leader-metrics > div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.cleaning-leader-sublist { margin: 11px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.cleaning-leader-sublist h4 { margin: 0 0 6px; font-size: .8rem; }
.cleaning-leader-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .77rem; }
.cleaning-leader-line span { color: var(--ink-soft); text-align: right; }
.cleaning-verified { margin: 12px 0; color: var(--green); font-weight: 800; font-size: .84rem; }

.cockpit-hero {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: stretch;
  margin: 0 0 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
}
.cockpit-event .eyebrow { color: rgba(255,255,255,.65); }
.cockpit-event h3 { margin: 7px 0 3px; font-size: 1.15rem; }
.cockpit-countdown { display: block; font-size: clamp(1.45rem, 3vw, 2.5rem); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cockpit-event > span { display: block; margin-top: 5px; color: rgba(255,255,255,.7); font-size: .78rem; }
.cockpit-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.cockpit-metrics > div { display: flex; flex-direction: column; justify-content: center; padding: 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; background: rgba(255,255,255,.07); }
.cockpit-metrics strong { font-size: clamp(1.5rem, 2.7vw, 2.35rem); line-height: 1.1; }
.cockpit-metrics span { margin-top: 6px; color: rgba(255,255,255,.72); font-size: .75rem; line-height: 1.25; }
.cockpit-metrics .is-urgent { background: rgba(181,29,51,.35); border-color: rgba(255,255,255,.34); }
.cockpit-panel { margin-bottom: 16px; }
.urgent-panel { border-color: #e7a9b3; }
.section-count { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 5px; border-radius: 9px; background: var(--red-100); color: var(--red-800); font-size: .8rem; }
.cockpit-row { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cockpit-row:last-child { border-bottom: 0; }
.cockpit-row strong { display: block; font-size: .88rem; }
.cockpit-row span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .76rem; }
.cockpit-row .task-flag { display: inline-block; margin: 0 0 0 4px; color: var(--red-800); font-size: .65rem; }
.cockpit-row .secondary-button { min-height: 40px; padding: 0 12px; font-size: .75rem; }
.not-started-mark { width: 31px; height: 31px; display: grid !important; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue) !important; font-size: 1.4rem !important; }
.gate-blockers { margin: 0 0 15px; padding: 12px; border-radius: 11px; color: var(--red-800); background: var(--red-100); font-size: .8rem; line-height: 1.45; }
.verification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.text-button { min-height: 44px; padding: 0 9px; border: 0; background: transparent; color: var(--ink-soft); font-size: .77rem; font-weight: 760; text-decoration: underline; cursor: pointer; }
.activity-details summary { cursor: pointer; font-weight: 800; }
.activity-details .activity-list { margin: 16px 0; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 16px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.panel + .panel-stack,
.panel-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.leader-area-list {
  display: grid;
  gap: 4px;
}

.leader-area-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f2;
}

.leader-area-row:last-child { border-bottom: 0; }

.leader-area-row button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
  font-size: 0.75rem;
  font-weight: 760;
  cursor: pointer;
}

.area-name-copy strong { display: block; font-size: 0.9rem; }
.area-name-copy span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.73rem; }

.metric-card {
  padding: 20px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--navy);
}

.metric-card .eyebrow { color: rgba(255, 255, 255, 0.58); }
.metric-card strong { display: block; font-size: 2.6rem; letter-spacing: -0.055em; }
.metric-card p { margin: 7px 0 0; color: rgba(255, 255, 255, 0.68); font-size: 0.83rem; line-height: 1.45; }

.attention-list,
.activity-list,
.settings-list {
  display: grid;
  gap: 10px;
}

.attention-item,
.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.attention-mark,
.activity-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.78rem;
}

.attention-mark { color: var(--red-800); background: var(--red-100); }
.activity-mark { color: var(--blue); background: var(--blue-soft); }
.attention-item strong,
.activity-item strong { display: block; font-size: 0.82rem; line-height: 1.35; }
.attention-item span,
.activity-item span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.72rem; }

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.86rem;
}

.success-banner,
.attention-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.success-banner { color: var(--green); background: var(--green-soft); border: 1px solid #b7decf; }
.attention-banner { color: var(--red-800); background: var(--red-100); border: 1px solid #efb5be; }
.success-banner strong,
.attention-banner strong { display: block; }
.success-banner p,
.attention-banner p { margin: 2px 0 0; }

.verified-pill {
  min-height: 32px;
  padding: 0 11px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.73rem;
}

.settings-list {
  margin-top: 2px;
}

.setting-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f2;
}

.setting-row:last-child { border-bottom: 0; }
.setting-row strong { display: block; font-size: 0.88rem; }
.setting-row span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.75rem; }
.time-badge { color: var(--ink) !important; font-weight: 800; font-size: 0.86rem !important; }

.admin-callout {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.5;
}

.admin-callout strong { color: var(--ink); }

.history-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.history-day {
  margin-bottom: 16px;
}

.history-day-label {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 10px 13px;
  border-bottom: 1px solid #edf0f2;
}

.history-row:last-child { border-bottom: 0; }
.history-time { color: var(--ink-soft); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.history-action strong { display: block; font-size: 0.85rem; }
.history-action span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.74rem; }

.app-dialog {
  width: min(92vw, 430px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.app-dialog::backdrop {
  background: rgba(16, 25, 31, 0.66);
  backdrop-filter: blur(5px);
}

.app-dialog form,
.app-dialog .dialog-body {
  position: relative;
  padding: 31px;
}

.exception-reasons { display: grid; gap: 8px; }
.exception-reasons button { min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 760; text-align: left; cursor: pointer; }
.exception-reasons button:hover { border-color: var(--red-700); background: var(--red-100); }

.wide-dialog { width: min(92vw, 620px); }

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  color: var(--red-700);
  background: var(--red-100);
}

.app-dialog h2 { font-size: 1.65rem; }
.dialog-copy { margin: 9px 0 20px; color: var(--ink-soft); line-height: 1.5; }

.pin-input {
  width: 100%;
  height: 66px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.45em;
}

.pin-hint {
  margin: 10px 0 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
}

.form-error {
  min-height: 18px;
  margin: 0 0 8px;
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.verification-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.verification-check {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.verification-check input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.verification-check span { font-size: 0.86rem; font-weight: 720; }

.note-field {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.note-field > span { font-size: 0.79rem; font-weight: 820; }
.note-field small { color: var(--ink-soft); font-weight: 600; }
.note-field textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  z-index: 100;
  min-width: 240px;
  max-width: min(92vw, 480px);
  padding: 13px 17px;
  border-radius: 13px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.completion-card {
  padding: 38px 26px;
  border: 1px solid #b7decf;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #f4fbf8, #fff);
  text-align: center;
}

.completion-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  color: #fff;
  background: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.completion-card h2 { font-size: 1.8rem; }
.completion-card p { max-width: 540px; margin: 9px auto 0; color: var(--ink-soft); line-height: 1.55; }

/* Shift Setup */
.shift-setup-view {
  position: relative;
}

.setup-command-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.11), transparent 24rem),
    linear-gradient(135deg, var(--navy), #243f4f);
  box-shadow: 0 18px 42px rgba(23, 44, 57, 0.18);
}

.setup-command-top,
.setup-control-row,
.setup-board-heading,
.setup-roster-head,
.setup-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setup-command-top h2,
.setup-board-heading h2,
.setup-break-manager h2,
.setup-import-modal h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.setup-command-top h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.setup-command-top p:not(.eyebrow) { margin: 5px 0 0; color: rgba(255, 255, 255, 0.66); font-size: 0.86rem; }
.setup-command-panel .eyebrow { color: #f6adba; }

.setup-mode-switch,
.setup-side-switch,
.setup-date-control {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.setup-mode-switch button,
.setup-side-switch button,
.setup-date-control button,
.setup-time-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.setup-mode-switch button { padding: 0 14px; }
.setup-mode-switch button.is-active,
.setup-side-switch button.is-active,
.setup-time-tabs button.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.setup-control-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.setup-date-control input {
  width: 146px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 760;
  color-scheme: dark;
}

.setup-date-control button { width: 38px; font-size: 1.35rem; }
.setup-date-control button:hover,
.setup-mode-switch button:hover,
.setup-side-switch button:hover,
.setup-time-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.setup-mode-switch button.is-active:hover,
.setup-side-switch button.is-active:hover,
.setup-time-tabs button.is-active:hover { color: var(--navy); background: #fff; }

.setup-side-switch button { min-width: 64px; padding: 0 13px; }
.setup-control-actions { display: flex; gap: 9px; margin-left: auto; }
.setup-file-input { display: none; }
.setup-control-actions .secondary-button { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.setup-control-actions .setup-clear-button { color: #ffdce3; border-color: rgba(255, 180, 194, 0.5); }
.setup-control-actions .primary-button { color: var(--red-950); background: #fff; }

.setup-time-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
  padding: 5px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.14);
}

.setup-time-tabs button { min-width: 0; padding: 0 8px; }

.setup-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.setup-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.setup-summary strong { font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.setup-summary span { color: var(--ink-soft); font-size: 0.73rem; font-weight: 720; }

.setup-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  gap: 15px;
  align-items: start;
}

.setup-workspace.is-display { grid-template-columns: 1fr; }
.setup-board { min-width: 0; }
.setup-board-heading { min-height: 55px; margin: 2px 2px 12px; align-items: flex-end; }
.setup-board-heading h2 { font-size: 1.25rem; }
.setup-board-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.84rem; }

.setup-source-note {
  max-width: 300px;
  overflow: hidden;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-source-note.is-empty { color: var(--amber); }

.setup-group {
  margin-bottom: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.setup-group-heading { margin-bottom: 13px; align-items: flex-start; }
.setup-group-heading h3 { margin: 0; font-size: 1rem; letter-spacing: -0.02em; }
.setup-group-heading p { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.75rem; }
.setup-group-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.setup-group-tools > span { padding: 5px 9px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.setup-group-tools button,
.setup-position-actions button,
.setup-hidden-positions button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--blue); background: #fff; font: inherit; font-size: 0.8rem; font-weight: 760; cursor: pointer; }
.setup-group-tools button { border-color: var(--blue); }
.setup-position-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.setup-position-actions button:disabled { opacity: .45; cursor: not-allowed; }
.setup-hidden-positions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.setup-hidden-positions > span { color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.setup-group-tools button:focus-visible,
.setup-position-actions button:focus-visible,
.setup-hidden-positions button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.setup-position-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setup-group-rotating-buddies .setup-position-grid,
.setup-group-transition-closing .setup-position-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.setup-position-card {
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fafb;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.setup-position-card.has-team { background: #fff; border-color: #cbd5da; }
.setup-position-card.is-secondary-position { background: #f6f9fb; border-style: dashed; }
.setup-position-card.is-selectable { cursor: pointer; }
.setup-position-card.is-selectable:hover,
.is-dragging-setup .setup-position-card { border-color: rgba(40, 91, 143, 0.55); }
.is-dragging-setup .setup-position-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 91, 143, 0.14); }

.setup-position-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 8px;
}

.setup-position-title strong { min-width: 0; overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.setup-position-title span { color: var(--ink-soft); font-size: 0.61rem; font-weight: 720; white-space: nowrap; }
.setup-position-team { display: grid; gap: 6px; }

.setup-open-slot {
  min-height: 57px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: #86939b;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.setup-assignee {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 7px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--blue-soft);
}

.setup-assignee.is-break-action {
  width: 100%;
  min-height: 68px;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.setup-assignee.is-break-action:hover { box-shadow: inset 0 0 0 2px rgba(40, 91, 143, 0.28); }
.setup-assignee.is-break-action:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.setup-assignee.is-on-break { color: var(--red-950); background: var(--red-100); }
.setup-assignee.is-break-complete { color: var(--green); background: var(--green-soft); }
.setup-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--blue); font-size: 0.72rem; font-weight: 900; }
.setup-assignee.is-on-break .setup-avatar { background: var(--red-700); }
.setup-assignee.is-break-complete .setup-avatar { background: var(--green); }
.setup-assignee-copy { min-width: 0; display: grid; gap: 2px; }
.setup-assignee-copy strong { overflow: hidden; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.setup-assignee-copy small { color: var(--ink-soft); font-size: 0.62rem; font-variant-numeric: tabular-nums; }
.setup-remove { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.72); cursor: pointer; }

.setup-break-badge { grid-column: 2 / -1; justify-self: start; padding: 3px 7px; border-radius: 999px; font-size: 0.58rem; font-weight: 850; }
.setup-break-badge.is-live { color: #fff; background: var(--red-700); }
.setup-break-badge.is-complete { color: var(--green); background: rgba(255, 255, 255, 0.75); }
.setup-break-badge.is-start { color: var(--blue); background: rgba(255, 255, 255, 0.78); }

.setup-roster-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #e9edf0;
  box-shadow: var(--shadow-sm);
}

.setup-roster-head { align-items: flex-end; }
.setup-roster-head .eyebrow { margin-bottom: 3px; }
.setup-roster-head h3 { margin: 0; font-size: 1.05rem; }
.setup-add-shift { min-height: 38px; padding: 7px 11px; border: 1px solid var(--blue); border-radius: 10px; color: var(--blue); background: #fff; font: inherit; font-size: .82rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.setup-add-shift:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.setup-board-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.setup-board-tools button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--blue); border-radius: 10px; color: var(--blue); background: #fff; font: inherit; font-size: .82rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.setup-board-tools button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.setup-sort { height: 38px; max-width: 115px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: #fff; font-size: 0.73rem; font-weight: 720; }

.setup-roster-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 13px 0 10px; padding: 4px; border-radius: 12px; background: #dce2e6; }
.setup-roster-tabs button { min-height: 38px; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.setup-roster-tabs button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 3px; border-radius: 999px; background: rgba(23, 33, 43, 0.08); }
.setup-roster-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }

.setup-selection-note { margin-bottom: 9px; padding: 9px 10px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 0.68rem; font-weight: 760; }
.setup-roster-list { display: grid; gap: 7px; }
.setup-roster-card { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; box-shadow: 0 1px 2px rgba(23, 33, 43, 0.05); cursor: grab; }
.setup-roster-card:hover { border-color: var(--blue); }
.setup-roster-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 91, 143, 0.13); }
.setup-roster-card.is-on-break { border-color: #efb5be; background: #fff9fa; }
.setup-roster-card.is-break-complete { border-color: #b7decf; background: #f7fcfa; }
.setup-manual-roster-row { padding: 5px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; }
.setup-manual-roster-row .setup-roster-card { border: 0; box-shadow: none; }
.setup-manual-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 6px 5px; }
.setup-manual-actions span { margin-right: auto; color: var(--ink-soft); font-size: .74rem; font-weight: 700; }
.setup-manual-actions button { min-height: 32px; padding: 4px 8px; border: 0; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font: inherit; font-size: .76rem; font-weight: 760; cursor: pointer; }
.setup-manual-actions button:last-child { color: var(--red-700); background: var(--red-100); }
.setup-roster-main,
.setup-roster-meta { min-width: 0; display: grid; gap: 3px; }
.setup-roster-main strong,
.setup-roster-meta strong { overflow: hidden; font-size: 0.77rem; text-overflow: ellipsis; white-space: nowrap; }
.setup-roster-main small,
.setup-roster-meta small { overflow: hidden; color: var(--ink-soft); font-size: 0.65rem; text-overflow: ellipsis; white-space: nowrap; }
.setup-roster-meta { text-align: right; }
.setup-roster-status { grid-column: 1 / -1; justify-self: start; padding: 3px 7px; border-radius: 999px; font-size: 0.59rem; font-weight: 850; }
.setup-roster-status.is-live { color: var(--red-800); background: var(--red-100); }
.setup-roster-status.is-complete { color: var(--green); background: var(--green-soft); }
.setup-empty-list { display: grid; gap: 5px; padding: 24px 12px; color: var(--ink-soft); text-align: center; }
.setup-empty-list strong { color: var(--ink); font-size: 0.8rem; }
.setup-empty-list span { font-size: 0.7rem; line-height: 1.45; }

.setup-break-manager { padding-top: 8px; }
.setup-break-manager .section-heading { align-items: center; gap: 12px; }
.setup-break-filters { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.setup-break-filters button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.setup-break-filters button.is-active { color: #fff; background: var(--blue); }
.setup-break-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setup-break-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px); align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.setup-break-card > div:first-child { min-width: 0; display: grid; gap: 3px; }
.setup-break-card > div:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-break-card > div:first-child span { color: var(--ink-soft); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.setup-break-card > div:first-child small { color: var(--ink-soft); font-size: 0.67rem; }
.setup-break-card.is-on-break { border-color: #efb5be; background: linear-gradient(90deg, #fff, var(--red-100)); }
.setup-break-card.is-break-complete { border-color: #b7decf; background: linear-gradient(90deg, #fff, var(--green-soft)); }
.setup-break-button { min-height: 58px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 850; cursor: pointer; }
.setup-break-button.is-live { background: var(--red-700); }
.setup-break-button span,
.setup-break-button small { display: block; }
.setup-break-button span { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.setup-break-button small { margin-top: 3px; color: rgba(255, 255, 255, 0.74); font-size: 0.63rem; }
.setup-break-ineligible { justify-self: stretch; padding: 14px; border-radius: 12px; color: var(--ink-soft); background: #edf0f2; font-size: 0.72rem; font-weight: 760; text-align: center; }
.setup-break-complete { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; padding: 10px 12px; border-radius: 12px; color: var(--green); background: rgba(255, 255, 255, 0.78); }
.setup-break-complete strong { font-size: 0.72rem; }
.setup-break-complete small { grid-column: 1; font-size: 0.64rem; }
.setup-break-complete button { grid-column: 2; grid-row: 1 / 3; border: 0; color: var(--green); background: transparent; font-size: 0.67rem; font-weight: 800; cursor: pointer; }

.setup-empty-state { grid-column: 1 / -1; display: grid; gap: 5px; padding: 42px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-soft); background: #fff; text-align: center; }
.setup-empty-state strong { color: var(--ink); }

.setup-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(16, 25, 31, 0.66); backdrop-filter: blur(5px); }
.setup-import-modal { width: min(92vw, 520px); padding: 30px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); }
.setup-import-modal > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.5; }
.setup-import-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.setup-import-stats > div { display: grid; gap: 4px; padding: 14px 10px; border-radius: 13px; background: var(--canvas); text-align: center; }
.setup-import-stats strong { font-size: 1.45rem; }
.setup-import-stats span { color: var(--ink-soft); font-size: 0.68rem; font-weight: 720; }
.setup-import-week { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.setup-import-week span { color: var(--ink-soft); }
.setup-import-warning { padding: 10px 12px; border-radius: 11px; color: var(--amber); background: var(--amber-soft); font-size: 0.73rem; font-weight: 720; }
.setup-position-modal label { display: block; margin: 18px 0 7px; font-size: .9rem; font-weight: 760; }
.setup-position-modal input { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.setup-position-modal input:focus { outline: 3px solid rgba(40, 91, 143, .2); border-color: var(--blue); }
.setup-position-error { min-height: 1.4em; margin: 9px 0 16px; color: var(--red-700) !important; font-size: .85rem; }
.setup-shift-modal label { display: block; margin: 16px 0 7px; font-size: .9rem; font-weight: 760; }
.setup-shift-modal input { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.setup-shift-modal input:focus { outline: 3px solid rgba(40, 91, 143, .2); border-color: var(--blue); }
.setup-shift-context { margin: 3px 0 17px; color: var(--ink-soft); font-size: .94rem; }
.setup-shift-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setup-shift-help { margin: 10px 0 0; color: var(--ink-soft); font-size: .78rem; }
@media (max-width: 520px) { .setup-roster-head { flex-wrap: wrap; } .setup-add-shift { order: 3; width: 100%; } }

@media (max-width: 1050px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .setup-workspace { grid-template-columns: 1fr; }
  .setup-roster-panel { position: static; max-height: none; }
  .setup-position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-group-rotating-buddies .setup-position-grid,
  .setup-group-transition-closing .setup-position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .side-rail {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }
  .app-shell.is-sidebar-open .side-rail { transform: translateX(0); }
  .main-stage { margin-left: 0; padding-inline: 24px; }
  .icon-button.sidebar-toggle { display: grid; }
  .sidebar-close {
    position: absolute;
    top: 27px;
    right: 12px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .app-shell.is-sidebar-open .sidebar-close { display: grid; }
  .app-shell.is-sidebar-open .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 19;
    display: block;
    width: 100%;
    border: 0;
    background: rgba(14, 26, 34, 0.35);
    cursor: pointer;
  }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(72px + var(--safe-bottom)); }
  .side-rail { display: none; }
  .main-stage { margin-left: 0; padding: 0 16px 28px; }
  .topbar { min-height: 88px; }
  .topbar h1 { font-size: 1.45rem; }
  .mode-pill { display: none; }
  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    height: calc(68px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 7px 10px var(--safe-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(23, 33, 43, 0.08);
    backdrop-filter: blur(12px);
  }
  .bottom-nav .nav-item {
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    color: var(--ink-soft);
    font-size: 0.66rem;
  }
  .bottom-nav .nav-item.is-active {
    color: var(--red-700);
    background: var(--red-100);
    box-shadow: none;
  }
  .bottom-nav .nav-item svg { width: 20px; height: 20px; }
  .event-strip { grid-template-columns: 1fr; padding: 23px 20px; }
  .readiness-score { min-width: 0; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .readiness-score strong { font-size: 2rem; }
  .readiness-score span { margin: 0; }
  .area-grid { grid-template-columns: 1fr; }
  .area-card { min-height: 158px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
  .page-heading .status-pill { order: 3; }
  .task-card { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .task-actions { grid-template-columns: minmax(0, 1fr) 54px; }
  .cleaning-leader-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cockpit-hero { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: 1fr auto; }
  .sticky-progress { bottom: calc(78px + var(--safe-bottom)); }
  .leader-area-row { grid-template-columns: minmax(0, 1fr) auto; }
  .leader-area-row button { grid-column: 1 / -1; }
  .history-row { grid-template-columns: 62px minmax(0, 1fr); }
  .history-row .status-pill { grid-column: 2; justify-self: start; }
  .app-dialog form { padding: 27px 21px 22px; }
}

@media (max-width: 430px) {
  .countdown { font-size: 2.65rem; }
  .event-main h2 { font-size: 1.25rem; }
  .section-heading { align-items: flex-start; }
  .detail-summary { grid-template-columns: 1fr; }
  .detail-score { text-align: left; }
  .task-actions { grid-template-columns: minmax(0, 1fr) 54px; }
  .cleaning-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cleaning-summary > div { padding: 11px; }
  .cleaning-summary strong { font-size: 1.25rem; }
  .cleaning-summary span { font-size: .68rem; }
  .cleaning-tab { flex: 1 1 100%; justify-content: space-between; }
  .cleaning-week-row { grid-template-columns: 1fr; gap: 5px; }
  .cleaning-leader-line { flex-direction: column; gap: 2px; }
  .cleaning-leader-line span { text-align: left; }
  .cockpit-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cockpit-metrics > div { padding: 9px; }
  .cockpit-metrics strong { font-size: 1.4rem; }
  .cockpit-metrics span { font-size: .68rem; }
  .cockpit-row { grid-template-columns: 31px minmax(0,1fr); }
  .cockpit-row button { grid-column: 2; justify-self: start; }
  .task-button { min-width: 0; padding: 0 8px; }
  .sticky-progress { align-items: stretch; flex-direction: column; }
  .sticky-progress .primary-button { width: 100%; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  .setup-command-top { align-items: flex-start; flex-direction: column; }
  .setup-mode-switch { width: 100%; }
  .setup-mode-switch button { flex: 1; }
  .setup-control-row { align-items: stretch; flex-wrap: wrap; }
  .setup-date-control { flex: 1 1 210px; justify-content: space-between; }
  .setup-side-switch { flex: 1 1 150px; }
  .setup-side-switch button { flex: 1; }
  .setup-control-actions { width: 100%; margin-left: 0; }
  .setup-control-actions button { flex: 1; }
  .setup-time-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-position-grid,
  .setup-group-rotating-buddies .setup-position-grid,
  .setup-group-transition-closing .setup-position-grid { grid-template-columns: 1fr; }
  .setup-break-grid { grid-template-columns: 1fr; }
  .setup-break-manager .section-heading { align-items: flex-start; flex-direction: column; }
  .setup-board-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sync-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 15% 20%, #de4f64, transparent 36%), linear-gradient(145deg, #b51d33, #671426);
}
.sync-gate[hidden] { display: none; }
.sync-gate-card {
  width: min(100%, 480px);
  padding: clamp(25px, 6vw, 38px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}
.sync-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.sync-brand > span:last-child { display: grid; line-height: 1.1; }
.sync-brand strong { font-size: 1.15rem; }
.sync-brand small { font-size: .8rem; color: var(--ink-soft); }
.sync-gate-card h2 { margin: 8px 0 12px; font-size: clamp(1.65rem, 5vw, 2.15rem); }
.sync-gate-card form { display: grid; gap: 10px; margin-top: 24px; }
.sync-gate-card form[hidden] { display: none; }
.sync-gate-card label { font-size: .88rem; font-weight: 750; }
.sync-gate-card input {
  width: 100%; min-height: 52px; padding: 0 15px;
  border: 1px solid #cfd3d7; border-radius: 10px;
  background: #fff; font: inherit; font-size: 1rem;
}
.sync-gate-card input:focus { outline: 3px solid #f9ccd3; border-color: var(--red-700); }
.sync-gate-card .primary-button { min-height: 54px; margin-top: 6px; }
.sync-gate-note { color: #59606a; font-size: .94rem; line-height: 1.5; }
.sync-message { min-height: 1.4em; margin: 4px 0; color: #6a313b; font-size: .88rem; }
.sync-switch-button, .rail-signout {
  border: 0; background: transparent; color: var(--red-700); font: inherit;
  font-size: .88rem; font-weight: 700; cursor: pointer;
}
.sync-switch-button { margin-top: 18px; padding: 8px 0; }
.rail-signout { margin-left: auto; white-space: nowrap; }
body:not(.app-authenticated) #app { visibility: hidden; pointer-events: none; }
.setup-local-note { font-size: .9rem; color: #59606a; }
/* Compact walk-up deployment board. Never clip extra people or custom positions. */
.setup-compact .setup-command-panel { padding:12px 16px; border-radius:16px; box-shadow:var(--shadow-sm); }
.setup-compact .setup-command-top h2 { font-size:1rem; }
.setup-compact .setup-command-top .eyebrow { display:none; }
.setup-compact .setup-command-top p:not(.eyebrow) { font-size:.75rem; }
.setup-compact .setup-local-note.is-synced { display:none; }
.setup-compact .setup-control-row { margin-top:8px; padding-top:8px; gap:10px; }
.setup-compact .setup-time-tabs { margin-top:8px; padding:2px; gap:2px; }
.setup-mode-display .setup-control-actions { display:none; }
.setup-compact .setup-summary { display:flex; flex-wrap:wrap; gap:8px 20px; margin:10px 0; }
.setup-compact .setup-summary > div { display:flex; align-items:baseline; gap:5px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.setup-compact .setup-summary strong { font-size:1rem; }
.setup-compact .setup-summary span { font-size:.875rem; }
.setup-compact .setup-board-heading { min-height:0; margin:0 0 8px; align-items:center; }
.setup-compact .setup-board-heading h2 { display:none; }
.setup-compact .setup-board-heading p { margin:0; font-size:.75rem; }
.setup-compact .setup-source-note { max-width:260px; }
.setup-compact .setup-group { margin:0; padding:10px; border-radius:13px; box-shadow:none; }
.setup-compact .setup-group-heading { margin-bottom:7px; gap:6px; }
.setup-compact .setup-group-heading h3 { font-size:.875rem; }
.setup-compact .setup-group-heading p { display:none; }
.setup-compact .setup-group-tools > span { padding:0; background:transparent; font-size:.75rem; }
.setup-compact .setup-position-grid { gap:6px; }
.setup-compact .setup-position-card { min-height:0; padding:0; overflow:hidden; border-radius:8px; }
.setup-compact .setup-position-title { padding:5px 7px; background:var(--blue); color:white; gap:3px; }
.setup-compact .setup-position-title strong { font-size:.875rem; white-space:normal; overflow:visible; line-height:1.15; }
.setup-compact .setup-position-title span { display:none; }
.setup-compact .setup-position-team { padding:4px; gap:4px; }
.setup-compact .setup-open-slot { min-height:44px; padding:4px; font-size:.875rem; border:0; background:transparent; }
.setup-compact .setup-assignee { grid-template-columns:minmax(0,1fr); gap:2px; padding:5px 6px; border-radius:5px; }
.setup-compact .setup-assignee.is-break-action { min-height:48px; }
.setup-compact .setup-avatar { display:none; }
.setup-compact .setup-assignee-copy strong { font-size:1rem; white-space:normal; overflow-wrap:anywhere; line-height:1.15; }
.setup-compact .setup-assignee-copy small { font-size:.75rem; line-height:1.2; }
.setup-compact .setup-break-badge { grid-column:1; font-size:.75rem; padding:2px 5px; }
.setup-compact .setup-break-badge.is-start { display:none; }
.setup-compact .setup-assignee.is-on-break { grid-template-columns:minmax(0,1fr) auto; }
.setup-compact .setup-break-badge.is-live { grid-column:2; grid-row:1; align-self:center; }
.setup-compact .setup-break-hint { display:none; }
.setup-compact .setup-groups { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.setup-compact .setup-position-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.setup-compact .setup-group-rotating-buddies,
.setup-compact .setup-group-transition-closing { grid-column:1 / -1; }
.setup-compact .setup-group-rotating-buddies .setup-position-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (min-width:960px) {
  .setup-compact .setup-command-panel { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:12px; }
  .setup-compact .setup-command-top { grid-column:1 / -1; }
  .setup-compact .setup-control-row { border:0; padding-top:0; margin-top:8px; }
  .setup-compact .setup-time-tabs { align-self:end; }
  .setup-compact .setup-time-tabs button { padding:0 4px; font-size:.875rem; }
  .is-setup-route .topbar { min-height:52px; }
  .is-setup-route .topbar h1 { font-size:1.45rem; }
  .setup-compact .setup-groups { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .setup-compact .setup-group { padding:8px; }
  .setup-compact .setup-group-leadership,
  .setup-compact .setup-group-boh-leadership { grid-column:1; grid-row:1; }
  .setup-compact .setup-group-outside,
  .setup-compact .setup-group-production-support { grid-column:1; grid-row:2; }
  .setup-compact .setup-group-front-counter,
  .setup-compact .setup-group-secondary-line { grid-column:2; grid-row:1 / span 2; }
  .setup-compact .setup-group-drive-thru,
  .setup-compact .setup-group-primary-line { grid-column:3; grid-row:1 / span 2; }
  .setup-compact .setup-group-rotating-buddies,
  .setup-compact .setup-group-transition-closing { grid-row:3; }
  .setup-compact .setup-group-transition-closing .setup-position-grid { grid-template-columns:repeat(7,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .setup-compact .setup-groups { grid-template-columns:1fr; }
  .setup-compact .setup-group-rotating-buddies .setup-position-grid,
  .setup-compact .setup-group-transition-closing .setup-position-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .setup-compact .setup-board-heading { align-items:flex-start; gap:4px; }
}

/* Keep the assignment roster beside the compact editor board. */
.setup-mode-edit .setup-control-row { flex-wrap:wrap; }
.setup-mode-edit .setup-workspace { grid-template-columns:minmax(0,1fr) 220px; gap:10px; }
.setup-mode-edit .setup-roster-panel { position:sticky; top:12px; max-height:calc(100dvh - 24px); padding:10px; display:flex; flex-direction:column; overflow:hidden; }
.setup-mode-edit .setup-roster-head { flex-wrap:wrap; gap:6px; }
.setup-mode-edit .setup-roster-head .eyebrow { display:none; }
.setup-mode-edit .setup-roster-head h3 { font-size:.875rem; }
.setup-mode-edit .setup-roster-list { overflow:auto; min-height:0; padding:3px; }
.setup-mode-edit .setup-roster-card { grid-template-columns:1fr; gap:2px; min-height:48px; padding:6px 8px; border-radius:7px; }
.setup-mode-edit .setup-roster-main strong { font-size:1rem; white-space:normal; }
.setup-mode-edit .setup-roster-main small { display:none; }
.setup-mode-edit .setup-roster-meta { text-align:left; }
.setup-mode-edit .setup-roster-meta strong { font-size:.75rem; white-space:normal; }
.setup-mode-edit .setup-roster-meta small { font-size:.75rem; }
.setup-mode-edit .setup-roster-tabs { margin:8px 0; }
.setup-mode-edit .setup-roster-tabs button { font-size:.875rem; }
.setup-mode-edit .setup-group-heading { flex-wrap:wrap; }
.setup-mode-edit .setup-group-tools { width:100%; justify-content:space-between; gap:4px; }
.setup-mode-edit .setup-position-actions { margin:0; padding:3px; gap:3px; }
.setup-mode-edit .setup-position-actions button { flex:1; min-height:32px; padding:3px; font-size:.875rem; }
.setup-mode-edit .setup-assignee { grid-template-columns:minmax(0,1fr); min-height:48px; }
.setup-mode-edit .setup-remove { display:none; }
.setup-mode-edit .setup-open-slot { font-size:.75rem; }
.setup-mode-edit .setup-group-tools button { min-height:32px; padding:4px 6px; font-size:.875rem; }
.setup-position-options summary { min-height:32px; display:grid; place-items:center; color:var(--blue); font-weight:800; cursor:pointer; list-style:none; background:#eef3f8; }
.setup-position-options summary::-webkit-details-marker { display:none; }
.setup-position-options summary:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.setup-mode-edit .setup-break-badge.is-live { grid-column:1 / -1; grid-row:auto; }
.setup-mode-edit .setup-board-tools .setup-source-note,
.setup-mode-edit .setup-board-tools [data-setup-add-shift] { display:none; }
@media (min-width:960px) {
  .setup-mode-edit .setup-command-panel { grid-template-columns:1fr; }
  .setup-mode-edit .setup-time-tabs { margin-top:6px; }
}
@media (max-width:959px) and (min-width:701px) {
  .setup-mode-edit .setup-workspace { grid-template-columns:minmax(0,1fr) 210px; }
}
@media (max-width:700px) {
  .setup-mode-edit .setup-workspace { grid-template-columns:1fr; }
  .setup-mode-edit .setup-roster-panel { grid-row:1; position:sticky; top:6px; z-index:2; max-height:260px; }
  .setup-mode-edit .setup-roster-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* OneClick-style name and shift lines: give tiles room rather than shrinking text. */
.setup-compact .setup-position-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); }
.setup-compact .setup-assignee-copy { display:grid; gap:3px; text-align:center; width:100%; min-width:0; }
.setup-compact .setup-assignee-copy strong { white-space:nowrap; overflow-wrap:normal; font-size:1rem; }
.setup-compact .setup-assignee-copy small { white-space:nowrap; font-size:.875rem; }
.setup-compact .setup-position-title { justify-content:center; text-align:center; }
.setup-compact .setup-assignee.is-on-break { grid-template-columns:minmax(0,1fr); }
.setup-compact .setup-break-badge.is-live { grid-column:1; grid-row:auto; justify-self:center; }
.setup-compact .setup-group-rotating-buddies .setup-position-grid,
.setup-compact .setup-group-transition-closing .setup-position-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); }
@media (min-width:701px) {
  .setup-mode-edit .setup-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .setup-mode-edit .setup-group { grid-column:auto; grid-row:auto; }
  .setup-mode-edit .setup-group-rotating-buddies,
  .setup-mode-edit .setup-group-transition-closing { grid-column:1 / -1; }
}
@media (min-width:1500px) {
  .setup-mode-edit .setup-groups { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

.setup-readiness { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; padding:10px 14px; margin:10px 0; border:1px solid var(--line); border-left:5px solid var(--blue); border-radius:12px; background:#fff; }
.setup-readiness-copy { flex:1; min-width:240px; display:grid; gap:4px; }
.setup-readiness-copy strong { font-size:1rem; }
.setup-readiness-copy span { font-size:.875rem; color:var(--ink-soft); }
.setup-readiness-clock { font-size:1rem; font-variant-numeric:tabular-nums; }
.setup-readiness .secondary-button { min-height:40px; padding:8px 12px; font-size:.875rem; }
.setup-readiness.is-attention,.setup-readiness.is-overdue { border-left-color:var(--red-800); background:#fff5f6; }
.setup-readiness.is-attention .setup-readiness-clock,.setup-readiness.is-overdue .setup-readiness-clock { color:var(--red-800); }
.setup-readiness.is-ready { border-left-color:var(--green); background:var(--green-soft); }
.setup-readiness.is-live { border-left-color:var(--amber); }
@media (max-width:600px) { .setup-readiness-copy { min-width:0; flex-basis:100%; } }

.setup-roster-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
.setup-mode-edit .setup-roster-tabs button { font-size:.75rem; }
.setup-roster-card.is-absent { opacity:.65; cursor:default; background:#f1f2f3; }
.setup-roster-card.is-absent .setup-roster-main strong { text-decoration:line-through; }
.setup-roster-row,.setup-manual-roster-row { display:grid; grid-template-columns:minmax(0,1fr) 36px; align-items:start; }
.setup-roster-row > .setup-roster-card,.setup-manual-roster-row > .setup-roster-card { grid-column:1 / -1; grid-row:1; padding-right:42px; }
.setup-attendance-options { grid-column:1 / -1; grid-row:1; z-index:1; pointer-events:none; }
.setup-attendance-options summary { width:36px; margin:4px 3px 0 auto; min-height:36px; display:grid; place-items:center; color:var(--blue); cursor:pointer; font-weight:800; list-style:none; border-radius:7px; pointer-events:auto; }
.setup-attendance-options summary:hover { background:var(--blue-soft); }
.setup-attendance-options summary:focus-visible { outline:3px solid var(--blue); outline-offset:-2px; }
.setup-attendance-options summary::-webkit-details-marker { display:none; }
.setup-attendance-options > div { display:flex; flex-wrap:wrap; gap:4px; padding:8px; margin-top:4px; border:1px solid var(--line); border-radius:8px; background:white; box-shadow:var(--shadow-sm); pointer-events:auto; }
.setup-manual-roster-row > .setup-manual-actions { grid-column:1 / -1; }
.setup-attendance-options button { min-height:36px; padding:4px 8px; color:var(--blue); background:white; border:1px solid var(--line); border-radius:7px; }
.setup-attendance-options span { width:100%; font-size:.875rem; color:var(--red-800); }

.setup-time-tabs button { white-space:normal; line-height:1.2; }
.setup-roster-tabs button { min-width:0; white-space:normal; overflow-wrap:anywhere; }

/* Two-sided leader cockpit: shared awareness, house-specific actions. */
.house-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.house-summary-card { text-align:left; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:white; color:var(--ink); min-height:70px; }
.house-summary-card.is-selected { border-color:var(--red-800); box-shadow:inset 0 0 0 1px var(--red-800); }
.house-summary-card strong { display:block; font-size:1rem; }
.house-summary-card span { display:block; color:var(--ink-soft); font-size:.75rem; margin-top:5px; }
.leader-tool-actions { display:flex; flex-wrap:wrap; gap:8px; }
.facilities-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.facilities-summary h3 { margin:0 0 5px; }
.facilities-summary p { margin:0; font-size:.8rem; color:var(--ink-soft); }
.note-field select { width:100%; box-sizing:border-box; font:inherit; padding:.8rem; border:1px solid #cbd5df; border-radius:.6rem; background:white; color:var(--ink); }
@media (max-width:500px) { .house-summary-card { padding:12px; } .house-summary-card strong { font-size:.88rem; } }
/* Facilities details live in a separate shared ticket view. */
.facilities-details { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0; font-size: 1rem; }
.facilities-history { margin-top: 1rem; border-top: 1px solid #dce3e8; padding-top: 1rem; }
.facilities-history summary { cursor: pointer; font-weight: 700; }
.facilities-unavailable { padding: 1rem; color: #922637; }
#facilities-dialog input { width: 100%; box-sizing: border-box; font: inherit; padding: .8rem; border: 1px solid #cbd5df; border-radius: .6rem; }
/* Leader closing walkthrough: station checks first, optional detail on demand. */
.closing-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 18px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.closing-toolbar label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:.875rem; font-weight:750; }
.closing-toolbar strong { flex:1; font-size:.875rem; }
.closing-toolbar input { min-height:42px; font:inherit; padding:6px; border:1px solid var(--line); border-radius:8px; }
.closing-stations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.closing-station { margin:0; padding:18px; border-left:4px solid var(--line); }
.closing-station.is-checked { border-left-color:var(--green); }
.closing-station.is-attention { border-left-color:var(--red-700); background:#fff7f8; }
.closing-station-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.closing-station h3 { margin:0 0 4px; font-size:1.05rem; }
.closing-station-head span { font-size:.875rem; color:var(--ink-soft); }
.closing-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.closing-station .task-more-button { min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; font-size:1.1rem; }
.closing-station details { margin-top:12px; }
.closing-station summary, .closing-review summary { min-height:32px; font-size:.875rem; font-weight:750; cursor:pointer; color:var(--blue); }
.closing-station ul { padding-left:20px; margin:8px 0 0; font-size:1rem; line-height:1.5; }
.closing-station li+li { margin-top:8px; }
.closing-issue-note { margin-bottom:0; font-size:1rem; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--red-700); }
.closing-finish { margin-top:16px; }
.closing-finish label, .closing-review>label, .closing-dialog label { display:block; margin:12px 0 6px; font-size:.875rem; font-weight:750; }
.closing-finish input, .closing-review input, .closing-review textarea, .closing-dialog textarea, .closing-dialog select { width:100%; min-height:44px; padding:10px; box-sizing:border-box; font:inherit; font-size:1rem; color:var(--ink); border:1px solid var(--line); border-radius:10px; background:#fff; }
.closing-finish input { max-width:360px; }
.closing-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0; }
.closing-fields label { display:grid; gap:6px; font-size:.875rem; font-weight:700; }
.closing-field-wide { grid-column:1/-1; }
.closing-review textarea { resize:vertical; line-height:1.5; }
.closing-review>.closing-actions { margin-top:12px; }
.closing-review h3 { margin-top:0; }
.closing-review>p { color:var(--ink-soft); font-size:.875rem; line-height:1.5; }
.closing-dialog { width:min(90vw,520px); padding:24px; border:0; border-radius:20px; color:var(--ink); }
.closing-dialog::backdrop { background:rgba(16,25,31,.65); }
@media (max-width:760px) { .closing-stations { grid-template-columns:1fr; } }
@media (max-width:480px) { .closing-fields { grid-template-columns:1fr; } .closing-station-head { align-items:flex-start; } .closing-toolbar strong { flex-basis:100%; } }

/* CFA-colored deployment trial. Scope stays on Setup; readiness styling is unchanged. */
.is-setup-route { background:#f7f5f1; }
.shift-setup-view { --blue:#b51d33; --blue-soft:#fff0f2; --line:#e6e0da; }
.shift-setup-view .setup-command-panel { background:#fffdfa; border:1px solid #e6e0da; border-radius:20px; box-shadow:0 4px 18px #4a172008; }
.shift-setup-view .setup-command-top h2 { letter-spacing:-.035em; color:var(--ink); }
.shift-setup-view .setup-command-top p:not(.eyebrow) { color:var(--ink-soft); }
.shift-setup-view .setup-date-control input,.shift-setup-view .setup-date-control button { color:var(--ink); background:white; border-color:var(--line); }
.shift-setup-view .setup-mode-switch, .shift-setup-view .setup-side-switch, .shift-setup-view .setup-time-tabs { background:#f0ece6; border-radius:12px; padding:4px; }
.shift-setup-view .setup-mode-switch button, .shift-setup-view .setup-side-switch button, .shift-setup-view .setup-time-tabs button { border-radius:9px; min-height:40px; color:var(--ink-soft); }
.shift-setup-view .setup-mode-switch button.is-active, .shift-setup-view .setup-side-switch button.is-active, .shift-setup-view .setup-time-tabs button.is-active { background:#b51d33; color:white; box-shadow:0 2px 6px #b51d3326; }
.shift-setup-view .setup-control-actions { gap:6px; }
.shift-setup-view .setup-control-actions button { min-height:40px; font-size:.8rem; padding:8px 12px; }
.shift-setup-view .setup-summary { gap:8px; }
.shift-setup-view .setup-summary > div { padding:6px 10px; background:white; border:1px solid #e6e0da; border-radius:10px; }
.shift-setup-view .setup-group { background:#fffdfa; border:1px solid #e6e0da; border-top:3px solid #b51d33; border-radius:16px; box-shadow:0 3px 12px #4a172008; padding:10px; }
.shift-setup-view .setup-group-heading h3 { font-size:1rem; letter-spacing:-.02em; }
.shift-setup-view .setup-position-grid { gap:8px; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); }
.shift-setup-view .setup-position-card { border:1px solid #e8dfd9; border-radius:10px; background:#f5f1eb; overflow:visible; }
.shift-setup-view .setup-position-title { background:#b51d33; border-radius:9px 9px 0 0; min-height:29px; padding:6px 8px; }
.shift-setup-view .setup-position-title strong { font-size:.85rem; }
.shift-setup-view .setup-assignee { background:white; border-radius:7px; padding:7px 5px; }
.shift-setup-view .setup-assignee-copy strong { font-size:clamp(.85rem,1.25vw,1.05rem); overflow:hidden; text-overflow:ellipsis; }
.shift-setup-view .setup-assignee-copy small { font-size:.82rem; font-variant-numeric:tabular-nums; }
.shift-setup-view .setup-assignee.is-on-break { background:#ffe7eb; color:#95192b; }
.shift-setup-view .setup-assignee.is-break-complete { background:#e7f5ee; }
.shift-setup-view .setup-open-slot { color:#968e85; font-size:.8rem; min-height:52px; }
.shift-setup-view .setup-position-options summary { min-height:32px; background:transparent; color:#b51d33; }
.shift-setup-view .setup-position-actions { position:relative; z-index:2; }
.shift-setup-view .setup-source-note { font-size:.7rem; }
.shift-setup-view .setup-roster-panel { border-radius:16px; background:#fffdfa; }
.shift-setup-view .setup-roster-card { border-color:#e6e0da; border-radius:9px; }
.shift-setup-view .setup-roster-main strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.setup-suggestion-modal { width:min(92vw,700px); max-height:88dvh; overflow:hidden; display:flex; flex-direction:column; }
.setup-suggestion-modal > :not(.setup-suggestion-list) { flex-shrink:0; }
.setup-suggestion-modal .dialog-actions { padding-top:12px; border-top:1px solid var(--line); }
.setup-suggestion-note { font-size:.875rem; line-height:1.5; color:var(--ink-soft); }
.setup-suggestion-list { display:grid; grid-auto-rows:max-content; gap:8px; margin:16px 0; overflow:auto; min-height:0; padding:2px; }
.setup-suggestion-row { display:grid; grid-template-columns:24px minmax(0,1fr) minmax(90px,auto); align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fffdfa; min-height:64px; cursor:pointer; }
.setup-suggestion-row input { width:22px; height:22px; accent-color:#b51d33; }
.setup-suggestion-row strong,.setup-suggestion-row small { display:block; }
.setup-suggestion-row small { font-size:.75rem; color:var(--ink-soft); margin-top:4px; }
.setup-suggestion-row b { color:#b51d33; font-size:.9rem; }
.setup-suggestion-gaps { margin:8px 0; font-size:.875rem; max-height:100px; overflow:auto; }
.setup-suggestion-gaps summary { padding:10px 0; cursor:pointer; }
@media (min-width:960px) {
  .setup-house-foh.setup-mode-display .setup-groups { grid-template-columns:.65fr 1fr 1.45fr; }
  .setup-house-foh .setup-group-front-counter,.setup-house-foh .setup-group-drive-thru { grid-row:auto; }
}
@media (min-width:701px) and (max-width:1499px) {
  .setup-house-foh.setup-mode-edit .setup-group-leadership { grid-column:1 / -1; }
}
@media (max-width:600px) {
  .shift-setup-view.setup-mode-edit .setup-roster-panel { position:static; max-height:400px; }
  .setup-suggestion-row { grid-template-columns:24px minmax(0,1fr); }
  .setup-suggestion-row b { grid-column:2; }
}
/* Break state is independent of the red station headers. */
.shift-setup-view .setup-assignee.is-on-break { background:#e8f2ff; color:#164d87; border-left:3px solid #2866b2; }
.shift-setup-view .setup-assignee.is-on-break .setup-avatar { background:#2866b2; }
.shift-setup-view .setup-break-badge.is-live, .shift-setup-view .setup-roster-status.is-live, .shift-setup-view .setup-break-button.is-live { background:#2866b2; color:#fff; }
.shift-setup-view .setup-roster-card.is-on-break { background:#e8f2ff; border-color:#83afe5; }
.shift-setup-view .setup-break-card.is-on-break { background:linear-gradient(90deg,#fff,#e8f2ff); border-color:#83afe5; }
.shift-setup-view .setup-assignee.is-break-overdue { background:#ffe7eb; color:#95192b; border-left-color:#b51d33; }
.shift-setup-view .setup-assignee.is-break-overdue .setup-avatar { background:#b51d33; }
.shift-setup-view .is-break-overdue .setup-break-badge.is-live, .shift-setup-view .is-break-overdue .setup-roster-status.is-live, .shift-setup-view .is-break-overdue .setup-break-button.is-live { background:#b51d33; color:#fff; }
.shift-setup-view .setup-roster-card.is-break-overdue { background:#ffe7eb; border-color:#b51d33; }
.shift-setup-view .setup-break-card.is-break-overdue { background:linear-gradient(90deg,#fff,#ffe7eb); border-color:#b51d33; }
.shift-setup-view .setup-control-actions { flex-wrap:wrap; }
.shift-setup-view .setup-control-actions .secondary-button { color:#17212b; background:#fff; border-color:#c6cfd4; }
.shift-setup-view .setup-control-actions .setup-clear-button { color:#92192d; background:#fff; border-color:#d8a6ae; }
.shift-setup-view .setup-control-actions .primary-button { color:#fff; background:#b51d33; }
/* One-page readiness: all area lists are immediately actionable. */
.readiness-toolbar { position:sticky; top:0; z-index:15; background:var(--canvas); padding:8px 0; border-bottom:1px solid var(--line); }
.readiness-toolbar .cycle-picker { margin-bottom:8px; }
.readiness-toolbar .event-strip { min-height:0; padding:12px 16px; margin-bottom:0; border-radius:14px; gap:12px; }
.readiness-toolbar .event-main { gap:3px; }
.readiness-toolbar .event-kicker { display:none; }
.readiness-toolbar .event-main h2 { font-size:1rem; margin:0; }
.readiness-toolbar .countdown { font-size:1.2rem; line-height:1.3; margin:0; }
.readiness-toolbar .event-subline { font-size:.75rem; margin:2px 0 0; }
.readiness-toolbar .readiness-score { min-width:100px; padding:0; }
.readiness-toolbar .readiness-score strong { font-size:1.6rem; }
.readiness-toolbar .readiness-score span { font-size:.75rem; }
.readiness-toolbar .critical-banner,.readiness-toolbar .success-banner { margin:8px 0 0; padding:10px 12px; font-size:.875rem; border-radius:10px; }
.readiness-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.readiness-group { background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-sm); min-width:0; }
.readiness-group-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; padding:14px; border-bottom:1px solid var(--line); }
.readiness-group-heading h3 { margin:0; flex:1; font-size:1rem; letter-spacing:-.02em; }
.readiness-group-heading .area-progress-copy { font-size:.75rem; white-space:nowrap; }
.readiness-group-heading .status-pill { font-size:.65rem; }
.readiness-group .task-list { display:grid; gap:0; padding:0; margin:0; }
.readiness-group .task-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 14px; margin:0; min-height:60px; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; }
.readiness-group .task-card:last-child { border-bottom:0; border-radius:0 0 14px 14px; }
.readiness-group .task-copy strong { font-size:.9rem; line-height:1.35; }
.readiness-group .task-copy p { font-size:.75rem; margin-top:4px; }
.readiness-group .task-flags { margin-top:4px; }
.readiness-group .task-flag { font-size:.6rem; padding:2px 6px; }
.readiness-group .task-actions { display:flex; flex-wrap:nowrap; gap:6px; }
.readiness-group .task-button { min-height:44px; min-width:78px; padding:8px; font-size:.8rem; }
.readiness-group .task-more summary { min-width:44px; min-height:44px; }
.readiness-group .task-menu { z-index:20; }
.readiness-save-note { text-align:center; font-size:.8rem; color:var(--ink-soft); padding:12px; }
.readiness-filter { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:8px; font-size:.8rem; color:var(--ink-soft); }
.readiness-filter .secondary-button { min-height:44px; padding:8px 12px; font-size:.8rem; color:var(--ink); background:#fff; }
.readiness-filter .secondary-button[aria-pressed="true"] { border-color:var(--ink-soft); background:var(--canvas); }
.readiness-all-ready { margin:0; padding:14px; font-size:.85rem; color:#18724e; }
.cleaning-filter { padding:0 0 12px; }
.setup-restriction-badge { display:block; flex-basis:100%; background:#fff4d6; color:#74500d; border:1px solid #d9b654; border-radius:6px; padding:4px 6px; font-size:.7rem; white-space:normal; }
.setup-restrictions { margin:12px 0; border-left:4px solid #d9b654; padding:14px; }
.setup-restrictions h3 { margin:0 0 6px; font-size:1rem; }
.setup-restrictions p { font-size:.8rem; margin:5px 0; }
.setup-restriction-row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:10px 0; border-top:1px solid var(--line); }
.setup-restriction-row>div:last-child { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.setup-restriction-row button { min-height:44px; padding:8px 10px; font-size:.8rem; }
.setup-attendance-options button small { display:block; font-size:.7rem; font-weight:400; margin-top:3px; }
.setup-assignee:has(.setup-restriction-badge),.setup-roster-card:has(.setup-restriction-badge) { flex-wrap:wrap; }
@media (max-width:900px) { .readiness-groups { grid-template-columns:1fr; } }
@media (max-width:500px) {
  .readiness-group .task-card { padding:10px; gap:6px; }
  .readiness-group .task-button { min-width:65px; }
  .readiness-group-heading { padding:12px; }
  .readiness-toolbar .event-strip { padding:10px 12px; }
  .readiness-toolbar .event-subline { display:none; }
}
/* Dated prep handoffs */
.prep-view { max-width:1120px; margin:0 auto; }
.prep-view .panel { padding:22px; margin-bottom:18px; }
.prep-view h2,.prep-view h3 { margin-top:0; }
.prep-view p { color:var(--ink-soft); line-height:1.55; }
.prep-calendar .prep-toolbar { display:flex; gap:14px; align-items:end; justify-content:center; }
.prep-toolbar label,.prep-fields label,.prep-handoff>label { display:flex; flex-direction:column; gap:8px; font-weight:650; }
.prep-view input:not([type=checkbox]),.prep-view textarea { min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--ink); font:inherit; max-width:100%; }
.prep-view input:focus,.prep-view textarea:focus { outline:2px solid var(--red-600); outline-offset:2px; }
.prep-days { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:18px 0; }
.prep-days button,.prep-shifts button { min-height:48px; border:1px solid var(--line); border-radius:12px; padding:10px; font-weight:700; background:var(--paper,#fff); }
.prep-days .is-active,.prep-shifts .is-active { color:white; border-color:var(--red-600); background:var(--red-600); }
.prep-shifts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.prep-summary { display:grid; grid-template-columns:2fr 1fr 1.5fr; gap:12px; margin:18px 0; }
.prep-summary>div { border:1px solid var(--line); border-radius:14px; padding:16px; background:white; }
.prep-summary span { display:block; color:var(--ink-soft); font-size:.8rem; margin-bottom:7px; }
.prep-summary strong { font-size:1.02rem; }
.prep-notice { border-left:3px solid var(--red-600); padding:12px 16px; background:#fff; border-radius:0 10px 10px 0; }
.prep-notice.is-warning { border-color:#bc7d22; background:#fff7e8; }
.prep-section-head { display:flex; justify-content:space-between; gap:16px; align-items:start; margin-bottom:12px; }
.prep-section-head h3 { margin-bottom:6px; }
.prep-section-head p { margin:0; }
.prep-section-head>span { font-size:.8rem; color:var(--ink-soft); }
.prep-table-scroll { overflow-x:auto; }
.prep-table { width:100%; border-collapse:collapse; text-align:left; }
.prep-table th,.prep-table td { border-bottom:1px solid var(--line); padding:14px 10px; vertical-align:middle; }
.prep-table thead th { font-size:.75rem; color:var(--ink-soft); font-weight:650; }
.prep-table small { display:block; color:var(--ink-soft); font-size:.75rem; font-weight:400; margin-top:5px; }
.prep-table input { width:90px; }
.prep-counter { width:196px; }
.prep-counter-steps { display:grid; grid-template-columns:44px 80px 44px; gap:8px; align-items:center; }
.prep-counter button { min-height:44px; border:1px solid var(--line); border-radius:10px; background:white; font-weight:750; }
.prep-counter-steps button { font-size:1.4rem; color:var(--red-600); }
.prep-counter-steps input { width:80px; text-align:center; font-weight:750; font-size:1.1rem; }
.prep-counter-shortcuts { display:flex; gap:8px; margin-top:8px; }
.prep-counter-shortcuts button { flex:1; padding:5px 8px; font-size:.75rem; }
.prep-counter-shortcuts button:last-child { background:#edf5f0; color:#206041; }
.prep-item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.prep-view .prep-item { margin-bottom:0; }
.prep-item-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:16px; }
.prep-item-head h3 { margin:0 0 5px; font-size:1.05rem; }
.prep-item-head h3 small { display:block; font-size:.75rem; font-weight:500; color:var(--ink-soft); }
.prep-item-head p { margin:0; font-size:.8rem; }
.prep-remaining { font-size:.8rem; color:var(--ink-soft); text-align:right; flex-shrink:0; }
.prep-item.is-ready { border-color:#91b6a0; }
.prep-item.is-ready .prep-remaining { color:#206041; }
.prep-tray-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.prep-tray-slot { min-width:0; }
.prep-tray { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; min-height:108px; border:2px solid var(--line); border-radius:14px; background:#fff; padding:12px 6px; text-align:center; }
.prep-tray span { font-size:.8rem; font-weight:600; }
.prep-tray strong { font-size:.85rem; }
.prep-tray small { color:var(--ink-soft); font-size:.7rem; }
.prep-tray.is-filled { border-color:#347951; background:#e9f5ed; color:#206041; }
.prep-tray.is-filled strong { color:#206041; }
.prep-tray.is-partial { border-color:#c19137; background:#fff8e8; }
.prep-tray:focus-visible { outline:3px solid var(--red-600); outline-offset:3px; }
.prep-partial { margin-top:8px; font-size:.75rem; }
.prep-partial summary { cursor:pointer; min-height:32px; text-align:center; color:var(--ink-soft); }
.prep-partial label,.prep-target-editor label { display:flex; flex-direction:column; gap:8px; }
.prep-partial input { width:100%; text-align:center; }
.prep-target-editor { margin-top:14px; font-size:.8rem; color:var(--ink-soft); }
.prep-target-editor summary { cursor:pointer; min-height:32px; }
.prep-target-editor input { width:100px; }
.prep-view .prep-item-grid+.prep-footnote { margin:12px 0 20px; }
.prep-mac-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.prep-mac-grid .prep-tray { min-height:82px; }
@media(max-width:900px) { .prep-item-grid { grid-template-columns:1fr; } }
.prep-table td[data-prep-needed] { font-weight:750; font-size:1.15rem; }
.prep-footnote { font-size:.8rem; margin-bottom:0; }
.prep-checklist label { display:flex; align-items:start; gap:12px; padding:15px 0; border-bottom:1px solid var(--line); cursor:pointer; line-height:1.5; }
.prep-checklist input { width:22px; height:22px; flex-shrink:0; accent-color:var(--red-600); margin-top:1px; }
.prep-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.prep-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.prep-source summary { cursor:pointer; font-weight:700; min-height:28px; }
.prep-view button:disabled { opacity:.55; cursor:wait; }
@media(max-width:820px) { .bottom-nav { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:600px) {
 .prep-tray-grid { gap:8px; }
 .prep-mac-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .prep-products .prep-table,.prep-products .prep-table tbody,.prep-products .prep-table tr { display:block; }
 .prep-products .prep-table thead { display:none; }
 .prep-products .prep-table tr { padding:14px 0; border-bottom:1px solid var(--line); }
 .prep-products .prep-table tbody th { display:block; border:0; padding:0 0 12px; }
 .prep-products .prep-table td { display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; padding:6px 0; }
 .prep-products .prep-table td:before { content:attr(data-prep-cell-label); color:var(--ink-soft); font-size:.8rem; font-weight:500; }
 .prep-counter-steps input { width:80px; }
 .prep-view .panel { padding:16px; }
 .prep-days { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .prep-summary { grid-template-columns:1fr 1fr; }
 .prep-summary>div:first-child { grid-column:1/-1; }
 .prep-fields { grid-template-columns:1fr; }
 .prep-table th,.prep-table td { padding:12px 7px; }
 .prep-table input { width:72px; }
 .prep-section-head { flex-direction:column; }
}
@media print {
 .prep-item-grid { display:block; }
 .prep-view .prep-item { margin-bottom:12px; }
 .prep-tray { min-height:60px; }
 .prep-partial summary,.prep-target-editor { display:none!important; }
 .prep-counter { width:auto; }
 .prep-counter-steps { display:block; }
 .prep-counter button,.prep-counter-shortcuts { display:none!important; }
 .side-rail,.bottom-nav,.topbar,.sidebar-scrim,.prep-toolbar,.prep-days,.prep-shifts,.prep-actions,.prep-settings,.prep-source,.prep-section-head button { display:none!important; }
 .main-stage { margin:0!important; padding:0!important; }
 .prep-view .panel { padding:12px; break-inside:avoid; box-shadow:none; }
 .prep-view { max-width:none; }
 .prep-view input,.prep-view textarea { border:1px solid #aaa; }
 .prep-summary { display:block; }
 .prep-summary>div { display:inline-block; margin-right:16px; padding:8px; }
 body { padding:0!important; }
}

/* BOH workspace shares the existing touch controls and surface styles. */
.boh-hub-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.boh-hub-card { text-align:left; padding:24px; cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-height:245px; color:inherit; }
.boh-hub-card h3 { font-size:1.5rem; }.boh-hub-card p { flex:1; line-height:1.5; color:var(--muted,#665f63); }.boh-hub-icon { font-size:.8rem; font-weight:800; color:#ad213b; letter-spacing:.12em; }
.boh-empty { padding:26px; max-width:760px; }.boh-empty p { line-height:1.6; margin:14px 0; }
.fryer-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:18px 0; }
.fryer-metrics > div { background:white; border:1px solid #e5dfe2; padding:18px; border-radius:16px; display:grid; gap:5px; }.fryer-metrics strong { font-size:1.8rem; }.fryer-metrics span { font-size:.85rem; color:#665f63; }
.fryer-guidance,.fryer-sync-note { padding:16px; border-radius:12px; background:#f8f0de; color:#5a421c; line-height:1.5; margin:16px 0; }
.fryer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }.fryer-card { padding:22px; min-width:0; }.fryer-card h3 { font-size:1.4rem; }
.fryer-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 14px; margin:20px 0; }.fryer-dates dt { font-size:.82rem; color:#665f63; margin-bottom:6px; }.fryer-dates dd { font-size:1rem; font-weight:750; margin:0 0 7px; }.fryer-dates small { display:block; font-weight:400; margin-top:6px; overflow-wrap:anywhere; }.fryer-dates .status-pill { font-size:.72rem; }
.fryer-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }.fryer-actions button,.fryer-editor button { min-height:48px; }.fryer-flag { padding:12px; border-left:3px solid #b4233d; background:#fff0f2; margin-top:14px; overflow-wrap:anywhere; }
.fryer-editor { margin:18px 0; padding:22px; border:2px solid #ad213b; scroll-margin-top:20px; }.fryer-editor form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.fryer-editor label { display:grid; gap:8px; font-weight:700; }.fryer-editor label:has(textarea),.fryer-editor .cleaning-note,.fryer-editor .form-error { grid-column:1/-1; }.fryer-editor input,.fryer-editor select,.fryer-editor textarea { min-width:0; width:100%; min-height:48px; padding:10px; border:1px solid #cfc5ca; border-radius:10px; background:white; font:inherit; }.fryer-editor textarea { resize:vertical; }
.fryer-calendar,.fryer-chart,.fryer-sources { padding:22px; margin-top:18px; }.fryer-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); margin-top:18px; }.fryer-weekday { font-size:.8rem; text-align:center; padding:8px 0; font-weight:750; }.fryer-calendar-day { border:1px solid #e9e3e6; min-height:100px; min-width:0; padding:7px; }.fryer-calendar-day > strong { font-size:.8rem; }.fryer-calendar-day.is-other-month { background:#f6f4f5; color:#837a7e; }.fryer-calendar-day.is-today { outline:2px solid #ad213b; outline-offset:-2px; }.fryer-calendar-plan { display:block; min-height:48px; width:100%; padding:5px 2px; font-size:.78rem; background:#f8e9ed; border:0; border-radius:6px; margin-top:4px; color:#7d1830; cursor:pointer; }.fryer-calendar-plan small { display:block; font-size:.65rem; }.fryer-plan-list > div { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:14px 0; border-top:1px solid #eee7eb; }.fryer-plan-list > div > span:not(.status-pill) { flex:1; }
.fryer-history article { padding:16px 0; border-top:1px solid #e9e3e6; overflow-wrap:anywhere; }.fryer-history p { margin:6px 0; }.fryer-history small { color:#665f63; }.fryer-sources summary { min-height:48px; cursor:pointer; font-weight:750; }.fryer-sources p,.fryer-sources li { line-height:1.6; margin:12px 0; }
.fryer-calendar-complete { display:block; min-height:48px; width:100%; margin-top:4px; padding:5px 3px; border:1px solid #a6d6c1; border-radius:6px; background:#e8f5ee; color:#126247; font-size:.78rem; cursor:pointer; overflow-wrap:anywhere; }
.fryer-calendar-complete small { display:block; font-size:.65rem; }
.fryer-calendar-plan.is-reminder { background:#e5f0fb; color:#215b8a; }
.fryer-editor form label.fryer-paired-service { display:flex; align-items:center; gap:12px; grid-column:1/-1; min-height:48px; }
.fryer-editor form .fryer-paired-service input { width:24px; height:24px; flex:0 0 24px; accent-color:#b51d33; }
.machines-filter-due { border-top:1px solid #c8d9e8; padding:8px; margin-top:6px; background:#edf5fc; border-radius:8px; font-size:12px; }
.maintenance-due-item { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #dce3e8; }
.maintenance-due-item:last-child { border-bottom:0; }
.maintenance-due-item > span { display:grid; gap:4px; min-width:0; }
.maintenance-due-item small { color:#52616d; }
.maintenance-due-item.is-overdue small { color:#a91b30; font-weight:700; }
.machines-filter-due .maintenance-due-item { flex-wrap:wrap; gap:6px; }
.machines-filter-due .secondary-button { min-height:44px; padding:6px 10px; font-size:12px; width:100%; }
.fryer-calendar-complete:focus-visible,.fryer-calendar-plan:focus-visible { outline:3px solid #263c52; outline-offset:2px; }
@media(max-width:1000px) { .boh-hub-grid {grid-template-columns:1fr;} .boh-hub-card {min-height:180px;} }
@media(max-width:700px) { .fryer-grid {grid-template-columns:1fr;} .fryer-metrics {grid-template-columns:repeat(2,minmax(0,1fr));} .fryer-editor form {grid-template-columns:1fr;} .fryer-calendar {padding:12px;} .fryer-calendar-day {padding:4px;min-height:75px;} .fryer-calendar-plan {font-size:.65rem;} .fryer-calendar-plan small {font-size:.58rem;} .fryer-plan-list > div {align-items:flex-start;flex-direction:column;} }

/* Suggested work lives in the existing station and break views. */
.setup-plan-strip{margin:12px 0 18px;padding:16px 20px;border:1px solid #e1dcd5;border-left:4px solid #b41432;border-radius:12px;background:#fff}
.setup-plan-strip-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.setup-plan-strip-head>strong{font-size:18px}.setup-plan-strip>small{display:block;margin-top:8px;color:#6d6660}
.setup-training-line,.setup-protected-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.setup-training-line>span,.setup-protected-line>span{padding:8px 10px;border-radius:6px;background:#f3f0eb;font-size:13px}.setup-training-line>span{background:#eef3f8}.setup-plan-person-note{display:block!important;font-size:11px!important;line-height:1.4;color:#72502c!important;white-space:normal!important}
.setup-combined-review{max-width:880px!important;width:min(880px,calc(100vw - 28px))!important;max-height:90vh;overflow:auto}.setup-combined-review h3{margin:24px 0 8px;padding-top:16px;border-top:1px solid #e7e1da;font-size:20px}.setup-combined-review .setup-suggestion-row{grid-template-columns:24px 1fr 160px}.setup-review-training,.setup-review-meal{display:grid;grid-template-columns:1.2fr 1fr 1fr 90px 90px;gap:10px;padding:14px 0;border-bottom:1px solid #e8e3dc;align-items:end}.setup-review-meal{grid-template-columns:1.3fr 100px 1.4fr 75px}.setup-review-meal>small{grid-column:1/-1}.setup-review-training label,.setup-review-meal label{font-size:12px;color:#5d5550}.setup-review-training label:first-child,.setup-review-meal label:first-child{font-size:14px;color:#29231e;align-self:center}.setup-combined-review input[type=time],.setup-combined-review select{display:block;margin-top:5px;max-width:100%;width:100%;padding:9px 6px;border:1px solid #ccc4bb;border-radius:6px;background:white;color:#29231e;min-height:40px}.setup-combined-review input[type=checkbox]{width:18px;height:18px;accent-color:#b41432;vertical-align:middle}.setup-combined-review .dialog-actions{position:sticky;bottom:-24px;background:white;padding:16px 0;margin-top:20px;border-top:1px solid #e8e3dc}
.setup-planned-meals{padding:16px 0 24px}.setup-planned-meals h3{font-size:22px;margin:0 0 6px}.setup-planned-meals>p{color:#6d6660}.setup-planned-meal{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;margin:8px 0;background:#fff;border:1px solid #ddd6cd;border-radius:10px}.setup-planned-meal>div{display:grid;grid-template-columns:150px 1fr;gap:4px 20px}.setup-planned-meal span,.setup-planned-meal small{grid-column:2}.setup-planned-meal.is-on-break{border-left:5px solid #c89123}.setup-planned-meal.is-break-complete{opacity:.7}
@media(max-width:700px){.setup-review-training,.setup-review-meal{grid-template-columns:1fr 1fr}.setup-review-training>label:first-child,.setup-review-meal>label:first-child{grid-column:1/-1}.setup-plan-strip-head{align-items:flex-start;flex-direction:column}.setup-planned-meal>div{display:flex;flex-direction:column}.setup-combined-review .setup-suggestion-row{grid-template-columns:22px 1fr}.setup-combined-review .setup-suggestion-row>b{grid-column:2}.setup-plan-strip{padding:12px}}
.setup-combined-review{display:block;overflow-y:auto}.setup-combined-review .setup-suggestion-list{overflow:visible;min-height:auto;flex-shrink:0}.setup-combined-review .setup-suggestion-gaps{max-height:none;overflow:visible}

.setup-review-meal.is-time-only{grid-template-columns:minmax(180px,1fr) 150px 80px}.setup-break-load{padding:12px 16px;background:#fff4da;border-left:4px solid #b57b12;border-radius:6px;color:#694a10}@media(max-width:700px){.setup-review-meal.is-time-only{grid-template-columns:1fr 1fr}}

.setup-daily-breaks{margin:16px 0;padding:20px;background:white;border:1px solid var(--line);border-radius:16px}.setup-day-break-list{display:grid;gap:8px;margin:16px 0}.setup-day-break-row{display:grid;grid-template-columns:minmax(170px,1fr) 150px 130px;align-items:center;gap:16px;padding:14px;border:1px solid var(--line);border-radius:10px}.setup-day-break-row strong,.setup-day-break-row small{display:block}.setup-day-break-row small{color:var(--ink-soft);font-size:12px;margin-top:5px}.setup-day-break-row label{font-size:12px;color:var(--ink-soft)}.setup-day-break-row input[type=time]{display:block;width:100%;min-height:42px;margin-top:5px;padding:8px;border:1px solid var(--line);border-radius:6px}.setup-day-paid{display:flex;gap:6px;align-items:center}.setup-day-paid input{width:18px;height:18px;accent-color:#b41432}.setup-day-break-row .setup-break-button{min-width:0;width:100%}@media(max-width:700px){.setup-day-break-row{grid-template-columns:1fr 1fr;gap:10px}.setup-day-break-row>div:first-child{grid-column:1/-1}.setup-daily-breaks{padding:12px}}

.setup-day-person{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;margin:8px 0;border:1px solid var(--line);border-radius:10px;background:#fffdfa;cursor:pointer}.setup-day-person>input{margin-top:3px;flex-shrink:0}.setup-day-person strong,.setup-day-person small{display:block}.setup-day-person small{margin-top:5px;color:var(--ink-soft);font-size:13px}.setup-day-person small b{color:#b41432}.setup-day-window{padding:10px 0;border-top:1px solid var(--line)}.setup-day-window h4{margin:0 0 8px}.setup-day-window>label,.setup-day-window>small{display:block;padding:5px 0;font-size:13px}.setup-day-review .setup-suggestion-gaps{max-height:none;overflow:visible}

/* Break correction stays on the tile; the name remains the start/return target. */
.setup-assignee-wrap { position:relative; min-width:0; }
.setup-assignee-wrap > .setup-assignee { width:100%; }
.setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy { padding-right:28px; }
.setup-break-options { position:absolute; top:1px; right:1px; z-index:3; }
.setup-break-options summary { display:grid; place-items:center; width:36px; height:36px; list-style:none; border-radius:6px; cursor:pointer; color:var(--blue); background:rgba(255,255,255,.85); font-weight:800; }
.setup-break-options summary::-webkit-details-marker { display:none; }
.setup-break-options summary:focus-visible { outline:3px solid var(--blue); }
.setup-break-options > div { position:absolute; right:0; min-width:150px; padding:6px; border:1px solid var(--line); border-radius:9px; background:white; box-shadow:var(--shadow-sm); }
.setup-break-reset { display:block; min-height:40px; padding:6px 10px; margin-top:4px; border:1px solid var(--line); border-radius:7px; background:white; color:var(--blue); font-size:.8rem; font-weight:700; cursor:pointer; }
.setup-break-options .setup-break-reset { width:100%; margin:0; }

/* Spatial deployment shares the existing station cards and action handlers. */
.setup-view-switch { display:flex; flex-shrink:0; gap:3px; padding:3px; border:1px solid var(--line); border-radius:11px; background:#f2efeb; }
.setup-view-switch button { min-height:38px; min-width:60px; padding:6px 12px; border:0; border-radius:8px; background:transparent; color:var(--ink-soft); font:inherit; font-size:.875rem; font-weight:750; cursor:pointer; }
.setup-view-switch button.is-active { background:var(--red-700,#a52332); color:white; box-shadow:0 1px 3px #3d25251c; }
.setup-view-switch button:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.setup-station-map { min-width:0; }
.setup-map-caption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; margin:0 0 8px; font-size:.8rem; color:var(--ink-soft); }
.setup-map-caption > span { font-weight:750; color:var(--ink); }
.setup-map-caption small { font-size:.75rem; }
.setup-map-floor { display:grid; gap:10px; padding:12px; border:2px solid #c8c2ba; border-radius:14px; background:#efede8; min-width:0; }
.setup-map-zone { position:relative; min-width:0; padding:10px; border:1px solid #d8d1c8; border-radius:9px; background:#faf9f6; }
.setup-map-zone > h3 { margin:0 0 8px; font-size:.9rem; letter-spacing:-.01em; color:#504940; }
.setup-map-stations { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr)); gap:7px; align-items:start; }
.setup-map-slot { min-width:0; }
.setup-map-floor-foh { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-areas:'leadership leadership' 'front drive'; }
.setup-map-zone-leadership { grid-area:leadership; }
.setup-map-floor-foh > .setup-map-zone-leadership .setup-map-stations { grid-template-columns:repeat(auto-fit,minmax(145px,210px)); justify-content:center; }
.setup-map-zone-front-counter { grid-area:front; background:linear-gradient(0deg,#f4f0e9 0 23%,#faf9f6 23%); }
.setup-map-zone-drive-thru { grid-area:drive; border-right:12px solid #d7d2ca; }
.setup-map-zone-front-counter .setup-map-stations { grid-template-columns:repeat(2,minmax(0,1fr)); min-height:270px; align-content:space-between; row-gap:20px; }
.setup-map-zone-front-counter [data-map-station='dining-room'] { grid-column:1; grid-row:1 / span 2; padding-bottom:80px; background:radial-gradient(ellipse at 50% 75%,#e3dcd2 0 22px,transparent 23px); }
.setup-map-zone-front-counter [data-map-station='register-1'],.setup-map-zone-front-counter [data-map-station='register-2'] { border-top:9px solid #c7c0b5; padding-top:4px; }
.setup-map-floor-boh { grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-areas:'primary primary primary production production production' 'centerline centerline centerline production production production' 'secondary secondary secondary prep prep prep' 'breakfast support support leadership leadership leadership'; }
.setup-map-zone-primary { grid-area:primary; }
.setup-map-zone-secondary { grid-area:secondary; }
.setup-map-zone-production { grid-area:production; background:#f5f4f0; border-top:10px solid #c5bfb5; }
.setup-map-zone-prep { grid-area:prep; border-bottom:10px solid #ccc5b9; }
.setup-map-zone-breakfast { grid-area:breakfast; padding:8px; }
.setup-map-zone-support { grid-area:support; }
.setup-map-centerline { grid-area:centerline; display:flex; align-items:center; justify-content:center; gap:10px; min-height:32px; border:1px solid #a9ada9; border-radius:4px; background:#d5dcd8; box-shadow:0 3px 0 #b6bfba; color:#4b5d55; font-size:.7rem; letter-spacing:.14em; font-weight:800; text-transform:uppercase; }
.setup-map-centerline i { width:17px; height:10px; border:1px solid #9ca9a0; border-radius:2px; background:#f1f3f0; }
.setup-map-zone-additional { margin-top:10px; }
.setup-station-map .setup-position-card { overflow:visible; background:white; }
.setup-station-map .setup-position-title { background:#f0eeea; color:#342c2c; border-radius:7px 7px 0 0; padding:5px 7px; }
.setup-station-map .setup-position-title strong { font-size:.8rem; }
.setup-station-map .setup-assignee { min-width:0; }
.setup-station-map .setup-assignee.is-on-break { grid-template-columns:minmax(0,1fr); }
.setup-station-map .setup-break-badge.is-live { grid-column:1; grid-row:auto; justify-self:center; }
.setup-station-map .setup-assignee-copy strong { overflow:hidden; text-overflow:ellipsis; }
.setup-station-map .setup-assignee-copy small { font-size:.76rem; }
.setup-station-map .setup-open-slot { min-height:44px; border:1px dashed #ddd6ce; border-radius:5px; color:#867a6d; }
.setup-station-map .setup-position-options { position:relative; }
.setup-map-legend { display:flex; flex-wrap:wrap; gap:8px 18px; padding:12px 2px 4px; color:var(--ink-soft); font-size:.75rem; }
.setup-map-legend span { display:flex; align-items:center; gap:6px; }
.setup-map-legend i { width:13px; height:13px; border-radius:4px; border:1px solid #c8c0b8; background:white; }
.setup-map-legend .map-blue { background:#dceafb; border-color:#6a9fd3; }
.setup-map-legend .map-green { background:#dcefe5; border-color:#69a98b; }
.setup-map-legend .map-red { background:#f8dddd; border-color:#d37d7d; }
.setup-map-handoff,.setup-map-tools { margin-top:10px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#faf9f6; }
.setup-map-handoff summary,.setup-map-tools summary { min-height:30px; cursor:pointer; font-size:.85rem; font-weight:700; color:var(--ink-soft); }
.setup-map-handoff summary span { margin-left:8px; font-size:.75rem; font-weight:400; }
.setup-map-handoff .setup-map-stations { margin-top:8px; }
.setup-map-tools > div { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:8px; }
.setup-map-tools strong { width:125px; font-size:.8rem; }
.setup-map-tools button { min-height:36px; border:1px solid var(--line); background:white; border-radius:6px; padding:5px 8px; cursor:pointer; color:var(--ink); }
@media(max-width:1050px) {
 .setup-mode-edit .setup-map-floor { padding:8px; gap:7px; }
 .setup-mode-edit .setup-map-floor-boh { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:'primary production' 'centerline production' 'secondary prep' 'breakfast support' 'leadership leadership'; }
 .setup-mode-edit .setup-map-stations { grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr)); }
}
@media(max-width:700px) {
 .setup-map-floor-foh { grid-template-columns:1fr; grid-template-areas:'leadership' 'front' 'drive'; }
 .setup-map-floor-boh { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:'primary production' 'centerline production' 'secondary prep' 'breakfast support' 'leadership leadership'; padding:7px; gap:7px; }
 .setup-map-zone { padding:7px; }
 .setup-map-zone > h3 { font-size:.8rem; }
 .setup-map-stations { grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr)); }
 .setup-map-floor-foh > .setup-map-zone-leadership .setup-map-stations { grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr)); }
}
.setup-map-zone:has(.setup-map-equipment) { padding-bottom:36px; }
.setup-map-equipment { position:absolute; left:10px; bottom:5px; width:calc(100% - 20px); height:23px; pointer-events:none; }
.setup-map-dining-art { position:absolute; left:18px; top:143px; width:calc(50% - 30px); max-height:100px; pointer-events:none; }
.setup-map-zone-front-counter [data-map-station='dining-room'] { background:none; padding-bottom:95px; }
.setup-map-zone-drive-thru { padding-right:26px; }
.setup-map-zone-drive-thru::after { content:'Drive-thru lane'; position:absolute; top:46px; bottom:12px; right:4px; width:17px; border-left:1px dashed #b4ada2; writing-mode:vertical-rl; text-align:center; font-size:.65rem; color:#887f73; letter-spacing:.08em; }
.setup-map-floor-foh > .setup-map-zone-leadership { display:grid; grid-template-columns:110px minmax(0,1fr); align-items:center; gap:10px; }
.setup-map-floor-foh > .setup-map-zone-leadership > h3 { margin:0; }
.setup-map-floor-foh > .setup-map-zone-leadership .setup-map-stations { justify-content:start; }
@media(max-width:700px) { .setup-map-floor-foh > .setup-map-zone-leadership { grid-template-columns:1fr; } }

/* Walk-up map: spend the space on readable names, not panels or decoration. */
.setup-layout-map.setup-mode-display .setup-command-panel { padding:7px 10px; border-radius:10px; margin-bottom:5px; }
.setup-layout-map.setup-mode-display .setup-command-top { min-height:0; gap:8px; }
.setup-layout-map.setup-mode-display .setup-command-top h2 { margin:0; font-size:.95rem; }
.setup-layout-map.setup-mode-display .setup-command-top p:not(.form-error) { display:none; }
.setup-layout-map.setup-mode-display .setup-command-top .form-error { margin:4px 0; }
.setup-layout-map.setup-mode-display .setup-mode-switch button,.setup-layout-map.setup-mode-display .setup-side-switch button,.setup-layout-map.setup-mode-display .setup-view-switch button { min-height:38px; padding:4px 10px; }
.setup-layout-map.setup-mode-display .setup-control-row { margin-top:4px; padding-top:0; gap:7px; }
.setup-layout-map.setup-mode-display .setup-time-tabs { margin-top:4px; }
.setup-layout-map.setup-mode-display .setup-time-tabs button { min-height:36px; }
.setup-layout-map.setup-mode-display .setup-summary { margin:5px 0; gap:4px 14px; }
.setup-layout-map.setup-mode-display .setup-summary strong { font-size:.9rem; }
.setup-layout-map.setup-mode-display .setup-summary span { font-size:.75rem; }
.setup-layout-map.setup-mode-display .setup-board-heading { display:none; }
.setup-map-coverage { margin:4px 0 6px; font-size:.75rem; color:var(--ink-soft); }
.setup-map-coverage > summary { min-height:28px; padding:4px 0; cursor:pointer; }
.setup-map-coverage .setup-plan-strip { margin:4px 0; padding:8px 12px; }
.setup-map-person-notes { padding:5px; min-width:210px; }
.setup-map-person-notes .setup-plan-person-note { display:block!important; color:var(--ink)!important; font-size:.8rem!important; text-align:left; padding:3px 0; }
.setup-layout-map.setup-mode-display .setup-map-caption { margin:3px 0 4px; font-size:.75rem; }
.setup-layout-map.setup-mode-display .setup-map-caption small { font-size:.7rem; }
.setup-layout-map.setup-mode-display .setup-map-floor { gap:5px; padding:6px; border-width:1px; border-radius:9px; }
.setup-layout-map.setup-mode-display .setup-map-zone { padding:5px; border-radius:6px; border-width:1px; }
.setup-layout-map.setup-mode-display .setup-map-zone > h3 { margin:0 0 4px; font-size:.75rem; }
.setup-layout-map.setup-mode-display .setup-map-stations { gap:4px; grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr)); }
.setup-layout-map.setup-mode-display .setup-map-equipment { display:none; }
.setup-layout-map.setup-mode-display .setup-map-zone-production,.setup-layout-map.setup-mode-display .setup-map-zone-prep { border-width:1px; }
.setup-layout-map.setup-mode-display .setup-map-centerline { min-height:18px; font-size:.6rem; box-shadow:none; }
.setup-layout-map.setup-mode-display .setup-position-title { padding:3px 5px; }
.setup-layout-map.setup-mode-display .setup-position-title strong { font-size:.72rem; line-height:1.1; }
.setup-layout-map.setup-mode-display .setup-position-team { padding:2px; gap:2px; }
.setup-layout-map.setup-mode-display .setup-assignee { padding:4px 5px; gap:1px; min-height:44px; }
.setup-layout-map.setup-mode-display .setup-assignee-copy { gap:2px; }
.setup-layout-map.setup-mode-display .setup-assignee-copy strong { font-size:16px; line-height:1.1; }
.setup-layout-map.setup-mode-display .setup-assignee-copy small { font-size:12px; line-height:1.1; }
.setup-layout-map.setup-mode-display .setup-assignee-copy > .setup-plan-person-note { display:none!important; }
.setup-layout-map.setup-mode-display .setup-break-badge { font-size:11px; padding:1px 4px; margin:0; line-height:1.2; }
.setup-layout-map.setup-mode-display .setup-break-badge.is-complete { justify-self:center; }
.setup-layout-map.setup-mode-display .setup-break-options summary { width:30px; height:30px; }
.setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy { padding-right:22px; }
.setup-layout-map.setup-mode-display .setup-open-slot { min-height:44px; padding:3px; font-size:.8rem; }
.setup-layout-map.setup-mode-display .setup-map-floor-foh > .setup-map-zone-leadership { grid-template-columns:88px minmax(0,1fr); gap:5px; }
.setup-layout-map.setup-mode-display .setup-map-floor-foh > .setup-map-zone-leadership .setup-map-stations { grid-template-columns:repeat(auto-fit,minmax(140px,190px)); }
.setup-layout-map.setup-mode-display .setup-map-zone-front-counter .setup-map-stations { min-height:0; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; row-gap:4px; }
.setup-layout-map.setup-mode-display .setup-map-zone-front-counter [data-map-station='dining-room'] { grid-row:auto; grid-column:auto; padding:0; }
.setup-layout-map.setup-mode-display .setup-map-zone-front-counter [data-map-station='register-1'],.setup-layout-map.setup-mode-display .setup-map-zone-front-counter [data-map-station='register-2'] { padding:0; border:0; }
.setup-layout-map.setup-mode-display .setup-map-dining-art { display:none; }
.setup-layout-map.setup-mode-display .setup-map-zone-front-counter { background:#faf9f6; }
.setup-layout-map.setup-mode-display .setup-map-zone-drive-thru { padding-right:18px; border-right-width:5px; }
.setup-layout-map.setup-mode-display .setup-map-zone-drive-thru::after { font-size:.55rem; width:12px; top:28px; }
.setup-layout-map.setup-mode-display .setup-map-handoff { margin-top:4px; padding:4px 7px; }
.setup-layout-map.setup-mode-display .setup-map-handoff summary { min-height:26px; font-size:.75rem; }
.setup-layout-map.setup-mode-display .setup-map-legend { padding:5px 1px 1px; gap:5px 14px; font-size:.7rem; }
body.is-setup-route:has(.setup-layout-map.setup-mode-display) .topbar { min-height:42px; }
body.is-setup-route:has(.setup-layout-map.setup-mode-display) .topbar h1 { font-size:1.15rem; }
body.is-setup-route:has(.setup-layout-map.setup-mode-display) .topbar .eyebrow { display:none; }
@media(min-width:821px) and (max-width:1180px) {
 body.is-setup-route:has(.setup-layout-map.setup-mode-display) .main-stage { padding:0 12px 12px; }
}
@media(max-width:820px) {
 body.is-setup-route:has(.setup-layout-map.setup-mode-display) .main-stage { padding:0 10px 10px; }
}
@media(max-width:700px) {
 .setup-layout-map.setup-mode-display .setup-map-floor-foh > .setup-map-zone-leadership { grid-template-columns:1fr; }
}
@media(min-width:701px) {
 .setup-layout-map.setup-mode-display .setup-command-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; }
 .setup-layout-map.setup-mode-display .setup-command-top { grid-column:2; grid-row:1; }
 .setup-layout-map.setup-mode-display .setup-command-top h2 { display:none; }
 .setup-layout-map.setup-mode-display .setup-control-row { grid-column:1; grid-row:1; margin:0; }
 .setup-layout-map.setup-mode-display .setup-time-tabs { grid-column:1 / -1; grid-row:2; margin:0; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
 .setup-layout-map.setup-mode-display .setup-time-tabs button { white-space:nowrap; font-size:12px; padding:0 3px; }
 .setup-layout-map.setup-mode-display .setup-date-control input { min-height:38px; }
 .setup-layout-map.setup-mode-display .setup-date-control button { min-height:38px; min-width:28px; padding:0 4px; }
 .setup-layout-map.setup-mode-display .setup-mode-switch { gap:1px; padding:2px; }
 .setup-layout-map.setup-mode-display .setup-mode-switch button { padding:4px 8px; font-size:.8rem; }
 .setup-layout-map.setup-mode-display .setup-map-stations { grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr)); }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy { padding-right:0; }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy > small:not(.setup-plan-person-note) { padding-right:20px; }
 .setup-layout-map.setup-mode-display .setup-break-options { top:20px; }
 .setup-layout-map.setup-mode-display .setup-break-options summary { width:24px; height:24px; background:transparent; }
}
@media(min-width:960px) {
 .setup-layout-map.setup-mode-display .setup-map-zone-primary .setup-map-stations,
 .setup-layout-map.setup-mode-display .setup-map-zone-secondary .setup-map-stations,
 .setup-layout-map.setup-mode-display .setup-map-zone-production .setup-map-stations { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(min-width:701px) {
 .setup-layout-map.setup-mode-display .setup-break-options { top:0; right:0; }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy { padding-right:0; }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy > strong { padding-right:18px; }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy > small:not(.setup-plan-person-note) { padding-right:0; white-space:normal; overflow-wrap:normal; }
}
.setup-layout-map.setup-mode-display .setup-position-team { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr)); }
.setup-layout-map.setup-mode-display .setup-map-slot:first-child .setup-break-options > div { left:0; right:auto; }
.setup-expand-map { min-height:38px; min-width:38px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font-size:1.25rem; cursor:pointer; }
.setup-expand-map:focus-visible { outline:3px solid var(--blue); }
.setup-map-overview { display:flex; justify-content:space-between; align-items:center; gap:5px 14px; flex-wrap:wrap; }
.setup-map-overview .setup-summary { margin:2px 0!important; }
.setup-map-overview .setup-map-coverage { margin:0; }
.setup-map-overview .setup-map-coverage[open] { flex-basis:100%; }
.setup-layout-map.setup-mode-display .setup-position-title { min-height:15px; }
.setup-layout-map.setup-mode-display .setup-position-card:not(.has-team) .setup-open-slot { min-height:20px; }
body:has(.setup-map-expanded) { padding-bottom:0; }
body:has(.setup-map-expanded) .topbar,body:has(.setup-map-expanded) .side-rail,body:has(.setup-map-expanded) .bottom-nav,body:has(.setup-map-expanded) .sidebar-scrim { display:none!important; }
body:has(.setup-map-expanded) .main-stage { margin:0; padding:4px 6px; min-height:100dvh; }
@media(min-width:701px) {
 .setup-layout-map.setup-mode-display .setup-date-control input { height:38px; width:145px; min-width:0; padding:4px; }
 .setup-layout-map.setup-mode-display .setup-date-control button { height:38px; }
 .setup-layout-map.setup-mode-display .setup-time-tabs { padding:2px; }
 .setup-layout-map.setup-mode-display .setup-mode-switch,.setup-layout-map.setup-mode-display .setup-side-switch { padding:2px; }
 .setup-layout-map.setup-mode-display .setup-map-zone-primary .setup-map-stations,
 .setup-layout-map.setup-mode-display .setup-map-zone-secondary .setup-map-stations,
 .setup-layout-map.setup-mode-display .setup-map-zone-production .setup-map-stations { align-items:start; }
}
body.is-setup-route:has(.setup-map-expanded) .main-stage { padding:2px 6px; }
.setup-map-expanded.setup-mode-display .setup-map-floor { gap:3px; padding:4px; }
.setup-map-expanded.setup-mode-display .setup-map-zone { padding:4px; }
.setup-map-expanded.setup-mode-display .setup-map-caption { margin:1px 0 2px; }
.setup-map-expanded.setup-mode-display .setup-map-handoff { margin-top:3px; }
.setup-map-expanded.setup-mode-display .setup-map-legend { padding-top:3px; }
@media(min-width:960px) {
 .setup-map-expanded.setup-mode-display .setup-map-floor-boh { grid-template-areas:'primary primary primary production production production' 'centerline centerline centerline production production production' 'secondary secondary secondary prep prep prep' 'breakfast support support support support leadership'; }
 .setup-map-expanded.setup-mode-display .setup-map-zone-primary:has(.setup-position-team > .setup-assignee-wrap:nth-child(4)) .setup-map-stations { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:701px) {
 .setup-layout-map.setup-mode-display .setup-break-options { top:20px; }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy > strong { padding-right:0; }
 .setup-layout-map.setup-mode-display .setup-assignee-wrap:has(.setup-break-options) .setup-assignee-copy > small:not(.setup-plan-person-note) { width:calc(100% - 23px); white-space:normal; }
}
@media(min-width:701px) and (max-width:959px) {
 .setup-map-expanded.setup-mode-display .setup-map-floor-boh { grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-areas:'primary primary primary production production production' 'centerline centerline centerline production production production' 'secondary secondary secondary prep prep prep' 'breakfast support support support support leadership'; }
 .setup-map-expanded.setup-mode-display .setup-map-zone-primary .setup-map-slot:has(.setup-position-team > .setup-assignee-wrap:nth-child(4)) { order:-1; grid-column:1 / -1; }
}

/* Compact follow-through on the walk-up Setup screen. */
.setup-todo { background:#fff; border:1px solid #dce1e5; border-radius:12px; margin:6px 0 10px; overflow:visible; }
.setup-todo-bar { display:flex; align-items:center; gap:8px; padding:6px 10px; flex-wrap:wrap; }
.setup-todo-title { font-size:12px; color:#586571; white-space:nowrap; }
.setup-todo-toggle { display:flex; align-items:center; gap:8px; padding:5px 8px; min-height:38px; border:0; border-radius:8px; background:#f4f6f7; color:#24343d; font-size:12px; cursor:pointer; flex-wrap:wrap; }
.setup-todo-toggle strong { font-size:13px; }
.setup-todo-toggle b { margin-left:auto; }
.setup-todo-toggle.is-urgent { background:#fff0f1; color:#a3152c; }
.setup-todo-toggle:focus-visible { outline:3px solid #3182ce; outline-offset:2px; }
.setup-todo-body { max-height: min(48vh,440px); overflow:auto; padding:10px; border-top:1px solid #e5e8eb; overscroll-behavior:contain; }
.setup-todo-body .readiness-group { margin-bottom:10px; }
.setup-todo-body .readiness-group-heading { padding:6px 10px; }
.setup-todo-body h3 { font-size:14px; margin:0; }
.setup-todo-body .task-card { min-height:48px; padding:8px 10px; gap:10px; }
.setup-todo-body .task-copy strong { font-size:14px; }
.setup-todo-body .task-copy p { font-size:12px; margin:3px 0; }
.setup-todo-body .task-button { min-height:40px; font-size:13px; padding:8px 12px; }
.setup-todo-body .task-flags { display:inline-flex; margin:2px 0; }
.setup-todo-body .task-more summary, .setup-todo-body .cleaning-more-button { min-height:40px; min-width:40px; }
.setup-todo-body .task-menu { z-index:20; }
@media(max-width:650px) { .setup-todo-bar {gap:4px;} .setup-todo-title {width:100%;} .setup-todo-toggle {flex:1; gap:5px;} .setup-todo-body .task-card {flex-direction:row;} }

/* Small, silent acknowledgement; never blocks the next check. */
#toast.is-celebrating {display:flex;align-items:center;gap:12px;background:#e6f6ed;color:#146b46;border:1px solid #a5d8bd;box-shadow:0 6px 22px #143d2426;pointer-events:none;}
.readiness-celebration-mark {position:relative;display:inline-grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#188352;color:#fff;font-size:23px;animation:readiness-pop .35s ease-out;}
.readiness-celebration-mark i {position:absolute;right:-6px;top:-8px;color:#d99b16;font-size:19px;font-style:normal;}
@keyframes readiness-pop {0%{transform:scale(.6)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.readiness-celebration-mark{animation:none}#toast.is-celebrating{transition:none}}

.cleaning-day-complete {background:#e6f6ed;border:1px solid #a5d8bd;color:#146b46;font-weight:650;}

/* Approved BOH sideways-T schematic. Spatial geometry is independent of assignee count. */
.boh-map-scroll{overflow:auto; border:1px solid #dce3df;border-radius:14px;background:white;padding:10px}
.boh-map-canvas{position:relative;min-width:1024px;aspect-ratio:1200 / 640;width:100%;}
.boh-map-landmarks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.boh-map-point{position:absolute;min-width:0;z-index:1}
.boh-map-point:focus-within,.boh-map-point:has(details[open]){z-index:5}
.setup-boh-schematic .boh-map-point .setup-position-card{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
.setup-layout-map .setup-boh-schematic .boh-map-point .setup-position-title{padding:0 2px 2px;background:transparent;border:0}
.setup-layout-map .setup-boh-schematic .boh-map-point .setup-position-title strong{font-size:13px;line-height:1.2;color:#52636e}
.setup-boh-schematic .boh-map-point .setup-position-title>span{display:none}
.setup-layout-map .setup-boh-schematic .boh-map-point .setup-position-team{padding:0;gap:2px;max-height:90px;overflow:auto}
.setup-layout-map .setup-boh-schematic .boh-map-point .setup-assignee{border:0;background:transparent;box-shadow:none;min-height:30px;padding:2px;text-align:left;justify-content:start}
.setup-layout-map .setup-boh-schematic .boh-map-point .setup-assignee-copy strong{font-size:21px;line-height:1.2;text-align:left;overflow-wrap:anywhere}
.setup-boh-schematic .boh-map-point .setup-avatar,.setup-boh-schematic .boh-map-point .setup-position-team .setup-assignee-copy small,.setup-boh-schematic .boh-map-point .setup-break-hint,.setup-boh-schematic .boh-map-point .setup-break-badge.is-start{display:none}
.setup-boh-schematic .boh-map-point .setup-assignee-copy{display:block;min-width:0}
.setup-boh-schematic .boh-map-point .setup-open-slot{min-height:28px;padding:2px;text-align:left;color:#84918d}
.setup-boh-schematic .boh-map-point .setup-assignee.is-on-break{background:#dceafb}
.boh-map-next{font-size:12px;color:#657a81;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1px 2px}
.boh-map-schedule{font-size:11px;color:#60757b;position:relative}
.boh-map-schedule>summary{cursor:pointer;min-height:24px;padding:3px 2px}
.boh-map-schedule>div{position:absolute;top:100%;left:0;width:260px;max-height:260px;overflow:auto;background:white;border:1px solid #bac9c4;border-radius:8px;padding:8px;box-shadow:0 8px 24px #19344033;z-index:10}
.boh-map-schedule .setup-assignee-copy small{display:block!important}
.boh-map-hint{font-size:12px;color:#63777d;margin:6px 0}
.boh-map-time{display:flex;align-items:center;gap:8px;font-size:13px}.boh-map-time select{min-height:40px;font-size:15px;padding:5px 12px;border:1px solid #ccd5d1;border-radius:8px;background:white}
.setup-boh-schematic .boh-map-point [data-setup-filter-due]{position:absolute;top:100%;max-width:200px;font-size:11px}
.setup-mode-edit .boh-map-canvas{min-height:1150px;aspect-ratio:auto}
.setup-mode-edit .boh-map-point .setup-position-team{max-height:150px;overflow:auto}

.setup-mode-display .boh-map-point .boh-map-schedule{position:absolute;right:0;top:-5px}
.setup-mode-display .boh-map-point .boh-map-schedule>summary{font-size:0;list-style:none;min-width:28px;min-height:28px;text-align:center;border-radius:5px;background:#f0f4f2}
.setup-mode-display .boh-map-point .boh-map-schedule>summary::-webkit-details-marker{display:none}
.setup-mode-display .boh-map-point .boh-map-schedule>summary:after{content:'⌄';font-size:19px;line-height:22px}
.setup-mode-display .boh-map-point .boh-map-schedule>div{left:auto;right:0}
.setup-mode-display .boh-map-point .setup-position-title{padding-right:28px}
/* Leader-only weekly review; historical reads happen on demand. */
.weekly-controls {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;}
.weekly-controls label {display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;}
.weekly-controls input {padding:9px;border:1px solid #d6dde1;border-radius:9px;font:inherit;background:#fff;color:#23343c;max-width:160px;}
.weekly-house-cards {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;}
.weekly-house-card {display:grid;gap:6px;text-align:left;background:#fff;border:1px solid #d8e0e5;border-radius:13px;padding:14px;color:#23343c;cursor:pointer;}
.weekly-house-card.is-selected {border:2px solid #b51d33;padding:13px;}
.weekly-house-card strong {font-size:20px;}.weekly-house-card span {font-size:13px;}
.weekly-panel {padding:16px;margin:12px 0;}.weekly-panel h3{margin:0 0 8px;font-size:19px;}
.weekly-totals {font-size:14px;font-weight:650;}.weekly-table-wrap{overflow-x:auto;}
.weekly-table {width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed;}
.weekly-table th,.weekly-table td {padding:11px 9px;border-bottom:1px solid #e5e9eb;text-align:left;vertical-align:top;overflow-wrap:anywhere;}
.weekly-table th:first-child {width:17%;}.weekly-table td strong,.weekly-table td span {display:block;}
.weekly-table td span {color:#66757e;font-size:12px;margin-top:3px;}
.weekly-table .is-done,.weekly-cleaning-row.is-done {background:#f0faf4;color:#176b48;}
.weekly-table .is-missing {background:#fff7f3;}
.weekly-verifiers {font-size:12px;margin-top:7px;line-height:1.45;}
.weekly-missing summary,.weekly-attempts summary {cursor:pointer;min-height:38px;}
.weekly-missing ul {padding-left:15px;font-size:12px;line-height:1.5;}
.weekly-missing li {margin:7px 0;}.weekly-missing em {color:#a61930;font-weight:700;}
.weekly-cleaning-row {border-bottom:1px solid #e5e9eb;padding:10px;border-radius:5px;font-size:14px;}
.weekly-cleaning-row summary strong {margin-right:12px;}.weekly-cleaning-row>strong{margin-right:12px;}
.weekly-attempts {margin-top:7px;font-size:12px;}.weekly-attempts p {margin:5px 0;}
@media(max-width:600px){.weekly-house-cards{gap:7px}.weekly-house-card{padding:10px}.weekly-house-card.is-selected{padding:9px}.weekly-table th,.weekly-table td{padding:8px 5px;font-size:12px}.weekly-panel{padding:11px}.weekly-verifiers{font-size:11px}}

/* Team-first workspaces: navigation changes presentation only, never shared data. */
.team-welcome{padding:8px 0 20px;max-width:780px}.team-welcome h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.035em;margin:8px 0 12px;line-height:1.15}.team-welcome p{color:#595b64;line-height:1.6}.team-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.team-action{display:flex;flex-direction:column;gap:9px;text-align:left;background:white;border:1px solid #dedfe4;border-radius:16px;padding:20px;color:#24252a;cursor:pointer;min-height:100px}.team-action:hover{border-color:#b51d33;background:#fff8f8}.team-action strong{font-size:18px}.team-action span{font-size:14px;color:#60616c;line-height:1.4}.team-now{padding:24px}.team-now>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.team-now h2{margin:4px 0}.team-sync{background:#f0f2f4;padding:7px 12px;border-radius:20px;font-size:13px;white-space:nowrap}.team-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.team-person{border:1px solid #e4e4e8;border-radius:14px;padding:18px;min-width:0;overflow-wrap:anywhere}.team-person h3{font-size:18px;margin:0 0 10px}.team-current{font-size:21px;font-weight:750;margin:0 0 18px;color:#a21830}.team-person dl{margin:0;display:grid;gap:12px}.team-person dt{font-size:12px;font-weight:700;color:#63636e;text-transform:uppercase;letter-spacing:.04em}.team-person dd{margin:4px 0 0;font-size:15px;line-height:1.5}.team-footnote,.team-empty{color:#63636e;line-height:1.6}.team-footnote{font-size:13px;margin:20px 0 0}.team-help{display:flex;gap:16px;background:#fff4dc;border-radius:16px;padding:20px;margin:20px 0}.team-help>span{font-size:26px}.team-help h3{font-size:17px;margin:0 0 8px}.team-help p{margin:0;line-height:1.6}.team-more summary{padding:16px 0;font-weight:700;cursor:pointer}.bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.team-action:focus-visible,.team-more summary:focus-visible{outline:3px solid #16749e;outline-offset:3px}
@media(max-width:1000px){.team-people{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.team-action-grid,.team-people{grid-template-columns:1fr}.team-action{min-height:76px;padding:16px}.team-now{padding:16px}.team-now>header{align-items:start}.team-welcome{padding-top:0}.team-action-grid{gap:8px}.team-person{padding:16px}.bottom-nav .nav-item{min-width:0;font-size:13px;min-height:62px}}

.workspace-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#e9e9ed;border-radius:16px;padding:6px;margin:0 0 24px;position:sticky;top:0;z-index:20}.workspace-tabs .nav-item{justify-content:center;text-align:center;min-height:52px;margin:0;color:#56535d;border-radius:11px;font-size:16px;gap:9px}.workspace-tabs .nav-item.is-active{background:#fff;color:#a21830;box-shadow:0 2px 5px #0000000d}.bottom-nav{display:none!important}@media(max-width:600px){.workspace-tabs{margin-bottom:18px}.workspace-tabs .nav-item{font-size:15px;min-height:48px}}@media print{.workspace-tabs{display:none!important}}body:has(.setup-map-expanded) .workspace-tabs{display:none}

/* House-scoped readiness: one active checklist, optional period history. */
.team-readiness-heading { display:grid; gap:.35rem; padding:.5rem 0; }
.team-readiness-heading strong { font-size:1.1rem; }
.team-readiness-heading span,.team-periods p { color:var(--muted,#68717d); font-size:.88rem; line-height:1.45; }
.team-periods { padding:.6rem 0; }
.team-periods summary { cursor:pointer; font-weight:700; padding:.5rem 0; }
.team-periods .cycle-picker { margin:.5rem 0; flex-wrap:wrap; }

.setup-hour-control {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;}

/* Readable assignment schematic. No absolute-position names or invented floor geometry. */
.boh-assignment-map {background:#f6f8f7;border:1px solid #dce4df;border-radius:16px;padding:18px;min-width:0;}
.boh-map-intro {font-size:14px;color:#586963;margin:8px 0 18px;}
.boh-work-areas {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start;}
.boh-centerline,.boh-other-areas {min-width:0;border:1px solid #dbe4de;border-radius:14px;padding:16px;background:#fff;}
.boh-zone-heading {display:flex;gap:10px;align-items:start;margin-bottom:18px;}
.boh-zone-heading>span {font-size:26px;}.boh-zone-heading h2 {font-size:20px;margin:0;}.boh-zone-heading p {font-size:13px;line-height:1.5;color:#65736d;margin:4px 0 0;}
.boh-line-side h3,.boh-role-group h3 {font-size:16px;margin:0 0 10px;color:#244c42;}
.boh-side-stations {display:grid;grid-template-columns:minmax(100px,.75fr) minmax(0,1.65fr);gap:12px;align-items:start;}
.boh-fry-edge {border-left:5px solid #89aaa0;padding-left:8px;min-width:0;}
.boh-line-stations,.boh-role-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;}
.boh-centerline-divider {display:flex;align-items:center;gap:8px;margin:18px 0;font-size:11px;color:#71837b;}
.boh-centerline-divider svg {width:74px;height:24px;flex-shrink:0;stroke:#89aaa0;stroke-width:5;fill:none;}
.boh-line-note {font-size:12px;line-height:1.5;color:#5d6d65;background:#f1f6f2;padding:10px;border-radius:8px;margin:16px 0 0;}
.boh-role-group {margin-bottom:18px;}.boh-role-group>header p {font-size:12px;color:#687970;margin:-4px 0 10px;}
.boh-assignment-map>.boh-role-group {margin-top:18px;}
.boh-assignment-map .boh-station {min-width:0;position:relative;}
.setup-layout-map .boh-assignment-map .setup-position-card {background:#f6f8f7;border:1px solid #d9e3dc;border-radius:10px;box-shadow:none;min-height:94px;overflow:visible;}
.setup-layout-map .boh-assignment-map .setup-position-title {padding:9px 10px;background:none;border:0;}
.setup-layout-map .boh-assignment-map .setup-position-title strong {font-size:13px;line-height:1.3;color:#4c645a;text-transform:none;}
.boh-assignment-map .setup-position-title>span {display:none;}
.setup-layout-map .boh-assignment-map .setup-position-team {padding:0 8px 8px;max-height:none;gap:8px;}
.setup-layout-map .boh-assignment-map .setup-assignee {min-height:44px;padding:6px;border-radius:6px;background:#e5f1e8;box-shadow:none;border:0;display:flex;text-align:left;}
.setup-layout-map .boh-assignment-map .setup-assignee-copy strong {font-size:19px;line-height:1.3;text-align:left;white-space:normal;overflow-wrap:anywhere;}
.boh-assignment-map .setup-avatar,.boh-assignment-map .setup-assignee-copy>small,.boh-assignment-map .setup-break-hint,.boh-assignment-map .setup-break-badge.is-start {display:none;}
.setup-layout-map .boh-assignment-map .setup-open-slot {min-height:30px;font-size:14px;color:#8a6255;padding:2px 8px;text-align:left;}
.boh-assignment-map .boh-map-next {font-size:12px;line-height:1.4;margin:6px 2px;color:#425c50;}
.boh-assignment-map .boh-map-schedule {position:static;margin:6px 0 0;}
.boh-assignment-map .boh-map-schedule>summary {font-size:12px;min-height:32px;padding:6px;background:#edf2ef;border-radius:6px;cursor:pointer;}
.boh-assignment-map .boh-map-schedule>div {position:static;width:auto;min-width:0;box-shadow:none;}
.boh-assignment-map .setup-assignee.is-on-break {background:#dceafb;}
@media(max-width:1100px){.boh-work-areas{grid-template-columns:1fr;}.boh-role-cards{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.boh-assignment-map{padding:10px;}.boh-centerline,.boh-other-areas{padding:12px;}.boh-role-cards{grid-template-columns:repeat(2,minmax(0,1fr));}.boh-line-stations{grid-template-columns:1fr;}.boh-side-stations{grid-template-columns:minmax(94px,.8fr) minmax(0,1.4fr);}.boh-centerline-divider{font-size:10px;}}
@media(min-width:700px){.boh-line-stations{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.boh-side-stations{grid-template-columns:minmax(108px,1fr) minmax(0,1.3fr);}}
/* Time controls must wrap rather than collide with leader/view controls on tablets. */
@media(min-width:701px) and (max-width:1100px){
 .setup-layout-map.setup-mode-display .setup-command-panel{display:flex;flex-direction:column;gap:8px;}
 .setup-layout-map.setup-mode-display .setup-command-top{align-self:flex-end;}
 .setup-layout-map.setup-mode-display .setup-control-row{display:flex;flex-wrap:wrap;gap:8px;}
 .setup-hour-control{flex-wrap:nowrap;}
}

/* FOH: relative placement from Kyle's bird's-eye drawing; readable at every size. */
.foh-outside,.foh-inside{border:1px solid #d6e1df;border-radius:16px;padding:16px;background:#fff;margin-bottom:16px;min-width:0;}
.foh-outside{background:#edf4f7;border-left:7px solid #94b5c1;border-top-left-radius:60px;}
.foh-outside>header{padding-left:12px;}.foh-outside h2{font-size:20px;margin:0;}.foh-outside p,.foh-extra p{font-size:13px;color:#596c73;line-height:1.5;}
.foh-outside-stations{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;align-items:end;}
.foh-ipos .foh-location-cards,.foh-dt-bag .foh-location-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.foh-lane-direction{font-size:13px;color:#496a7a;margin-top:12px;font-weight:700;}
.foh-bagging-row,.foh-service-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:14px;align-items:start;}
.foh-bagging-row{border-top:8px solid #9dad9e;padding-top:14px;border-bottom:1px dashed #b4c5b8;padding-bottom:16px;margin-bottom:18px;}
.foh-location{min-width:0;}.foh-location h3,.foh-extra h3{font-size:14px;color:#3f5c50;margin:0 0 10px;}.foh-location-cards{display:grid;gap:10px;}
.foh-dining{margin-top:20px;margin-left:65%;border-top:5px solid #d0c4a9;padding-top:12px;}.foh-extra{margin-top:18px;}
@media(max-width:600px){.foh-outside,.foh-inside{padding:10px;}.foh-bagging-row,.foh-service-row{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));}.foh-ipos .foh-location-cards,.foh-dt-bag .foh-location-cards{grid-template-columns:1fr;}.foh-assignment-map .setup-assignee-copy strong{font-size:15px!important;}.foh-assignment-map .setup-position-title strong{font-size:11px!important;}.foh-location h3{font-size:12px;}.foh-dining{margin-left:50%;}}

.foh-legacy{padding:16px;border:2px solid #ba7b24;border-radius:12px;background:#fff8e8;margin:16px 0;}.foh-legacy h3{margin:0 0 8px}.foh-legacy p,.foh-legacy-warning{font-size:13px;line-height:1.5;color:#85541b;padding:8px;}

/* Tablet-first FOH: retain relative placement, reduce repeated chrome, never clip people. */
.setup-layout-map .foh-assignment-map{padding:8px;}
.foh-assignment-map .boh-map-intro,.foh-assignment-map .boh-map-hint,.foh-outside>header p{display:none;}
.foh-assignment-map .foh-outside,.foh-assignment-map .foh-inside{padding:8px;margin-bottom:8px;border-radius:10px;}
.foh-assignment-map .foh-outside h2{font-size:14px;margin-bottom:5px;}
.foh-assignment-map .foh-outside-stations{gap:8px;}
.foh-assignment-map .foh-bagging-row{padding:6px 0;margin:0 0 6px;border-top-width:4px;}
.foh-assignment-map .foh-bagging-row,.foh-assignment-map .foh-service-row{gap:8px;}
.foh-assignment-map .foh-location h3{font-size:12px;margin:0 0 4px;}
.foh-assignment-map .foh-location-cards{gap:4px;}
.foh-assignment-map .foh-lane-direction{font-size:11px;margin-top:4px;}
.foh-assignment-map .foh-dining{padding-top:4px;margin-top:6px;border-top-width:3px;}
.setup-layout-map .foh-assignment-map .setup-position-card{min-height:58px;border-radius:6px;}
.setup-layout-map .foh-assignment-map .setup-position-title{padding:4px 6px;}
.setup-layout-map .foh-assignment-map .setup-position-title strong{font-size:12px;}
.setup-layout-map .foh-assignment-map .setup-position-team{padding:0 4px 4px;gap:4px;}
.setup-layout-map .foh-assignment-map .setup-assignee{min-height:40px;padding:4px;}
.setup-layout-map .foh-assignment-map .setup-assignee-copy strong{font-size:16px;line-height:1.2;}
.foh-assignment-map .boh-map-next{font-size:11px;margin:2px 0;}
.foh-assignment-map .boh-map-schedule{margin:2px 0;}
.foh-assignment-map .boh-map-schedule>summary{min-height:32px;padding:4px;font-size:11px;}
/* Editing is always a station list, not a second physical map. */
.setup-mode-edit .setup-groups{display:block;}
.setup-mode-edit .setup-position-grid{display:grid;grid-template-columns:1fr!important;}
.setup-mode-edit .setup-group{margin-bottom:12px;}
.setup-mode-edit .setup-position-card{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(0,1.7fr) 36px;align-items:start;min-height:54px;}
.setup-mode-edit .setup-position-title{padding:10px 8px;}
.setup-mode-edit .setup-position-team{padding:5px;}
.setup-mode-edit .setup-position-options{margin:0;}
.setup-mode-edit .setup-group-heading p{display:none;}
.setup-mode-edit .setup-selection-note{font-size:14px;line-height:1.4;background:#fff2cf;padding:10px;}
@media(max-width:600px){.setup-mode-edit .setup-position-card{grid-template-columns:100px minmax(0,1fr) 32px;}.foh-assignment-map .setup-assignee-copy strong{font-size:14px!important;}}

.setup-layout-map.setup-mode-display .setup-command-panel{display:flex;flex-direction:column;gap:6px;}
.setup-layout-map.setup-mode-display .setup-command-top{align-self:flex-end;position:static;}
.setup-layout-map.setup-mode-display .setup-control-row{display:flex;flex-wrap:wrap;gap:8px;}
.setup-mode-edit .setup-position-card .setup-position-title strong{white-space:normal;}
.setup-mode-edit .setup-selection-note button{display:block;min-height:40px;margin-top:6px;}

.setup-assign-prompt{grid-column:1 / -1;background:#e6f0eb;color:#24543e;padding:9px;font-size:14px;font-weight:700;min-height:40px;}
.setup-mode-edit .setup-position-title{grid-column:1;grid-row:1;align-self:stretch;border-radius:6px 0 0 6px;background:#edf1ee;color:#294d40;}
.setup-mode-edit .setup-position-title strong{color:#294d40;}
.setup-mode-edit .setup-position-team{grid-column:2;grid-row:1;}
.setup-mode-edit .setup-position-options{grid-column:3;grid-row:1;position:relative;}
.setup-mode-edit .setup-position-options[open]{grid-column:1 / -1;grid-row:3;}
.setup-mode-edit .setup-assign-prompt{grid-row:2;padding:5px 8px;min-height:30px;}
.setup-mode-edit .setup-open-slot{min-height:40px;padding:4px;}
.setup-mode-edit .setup-roster-tabs{display:flex;flex-wrap:wrap;}
.setup-mode-edit .setup-roster-tabs button{flex:1 0 44%;white-space:nowrap;font-size:12px;min-height:40px;}

.foh-handoff-toggle{display:flex;gap:8px;align-items:center;min-height:40px;font-size:13px;margin:0 0 5px;}
.foh-assignment-map:not(:has(.foh-show-handoffs:checked)) .boh-map-schedule{display:none;}
.foh-extra>summary{min-height:40px;cursor:pointer;font-size:14px;font-weight:700;}
.foh-assignment-map .foh-location>h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.setup-map-expanded #setup-readiness-banner{display:none;}
.setup-map-expanded .setup-date-control,.setup-map-expanded .setup-side-switch,.setup-map-expanded .setup-view-switch{display:none;}
.setup-layout-map.setup-mode-display.setup-map-expanded .setup-command-panel{flex-direction:row;align-items:center;flex-wrap:wrap;padding:6px;}
.setup-layout-map.setup-mode-display.setup-map-expanded .setup-command-top{order:2;align-self:center;}
.setup-map-expanded .setup-control-row{flex:1;}
.setup-map-expanded .setup-map-overview{margin:3px 0;}

/* Compact position lists retain employee cards and grow for genuine extra coverage. */
.setup-layout-list .setup-list-handoffs{display:flex;align-items:center;gap:8px;min-height:40px;font-size:14px;}
.setup-layout-list:not(:has(.setup-show-handoffs:checked)) .boh-map-schedule{display:none;}
.setup-layout-list .setup-board-heading{margin-bottom:6px;}
.setup-layout-list .setup-board-heading h2{font-size:18px;}
.setup-layout-list .setup-board-heading p{font-size:13px;margin:3px 0;}
.setup-layout-list .setup-group{padding:6px;margin:0;}
.setup-layout-list .setup-group-heading{margin-bottom:5px;gap:4px;}
.setup-layout-list .setup-group-heading h3{font-size:14px;}
.setup-layout-list .setup-group-heading p,.setup-layout-list .setup-group-tools>span{display:none;}
.setup-layout-list .setup-position-grid{gap:5px;}
.setup-layout-list .setup-position-card{min-height:0;}
.setup-layout-list .setup-position-title{padding:4px 6px;}
.setup-layout-list .setup-position-title strong{font-size:13px;}
.setup-layout-list .setup-position-title>span{display:none;}
.setup-layout-list .setup-position-team{padding:4px;gap:4px;}
.setup-layout-list .setup-assignee{min-height:44px;padding:4px 6px;}
.setup-layout-list .setup-assignee-copy strong{font-size:16px;white-space:normal;}
.setup-layout-list .setup-assignee-copy small{font-size:12px;white-space:normal;}
.setup-layout-list .setup-open-slot{min-height:32px;padding:5px;}
.setup-layout-list .boh-map-next{font-size:12px;margin:3px;}
.setup-map-expanded .setup-command-panel{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;padding:6px;}
.setup-map-expanded .setup-command-top{position:static;order:2;}
.setup-expand-map{width:auto!important;font-size:13px!important;padding:6px 10px!important;}
@media(min-width:701px){
 .setup-layout-list .setup-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:start;}
 .setup-layout-list .setup-group{grid-column:auto;grid-row:auto;}
 .setup-layout-list .setup-position-grid{grid-template-columns:1fr!important;}
 .setup-layout-list.setup-mode-edit .setup-groups{grid-template-columns:repeat(2,minmax(0,1fr));}
 .setup-layout-list.setup-mode-edit .setup-position-card{grid-template-columns:minmax(0,1fr) 32px;}
 .setup-layout-list.setup-mode-edit .setup-position-title{grid-column:1;grid-row:1;padding:4px;}
 .setup-layout-list.setup-mode-edit .setup-position-team{grid-column:1 / -1;grid-row:2;}
 .setup-layout-list.setup-mode-edit .setup-position-options{grid-column:2;grid-row:1;}
 .setup-layout-list.setup-mode-edit .setup-assign-prompt{grid-row:3;}
 .setup-layout-list.setup-mode-edit .setup-position-options[open]{grid-column:1 / -1;grid-row:4;}
 .setup-layout-list.setup-mode-edit .setup-roster-panel{position:sticky;top:6px;max-height:calc(100dvh - 24px);}
}
@media(min-width:701px){
 /* One balanced reading grid; grouping columns previously left long empty gaps. */
 .setup-layout-list .setup-groups{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
 .setup-layout-list .setup-group,.setup-layout-list .setup-position-grid{display:contents;}
 .setup-layout-list .setup-group-heading{display:none;}
 .setup-layout-list .setup-hidden-positions{grid-column:1 / -1;}
 .setup-layout-list.setup-mode-edit .setup-groups{grid-template-columns:repeat(3,minmax(0,1fr));}
 .setup-layout-list.setup-mode-edit .setup-position-card{align-content:start;}
 .setup-layout-list.setup-mode-edit .setup-position-title strong{font-size:13px;}
 .setup-layout-list .setup-position-card{align-self:start;}
 .setup-layout-list .setup-board-heading{padding:0;}
 .setup-layout-list .setup-assignee-copy small{line-height:1.2;}
}
.setup-list-tools{font-size:14px;margin:4px 0;}.setup-list-tools summary{min-height:40px;cursor:pointer;display:flex;align-items:center;}.setup-list-tools button{min-height:44px;margin:4px;padding:6px;}
.setup-control-actions>summary{font-size:14px;cursor:pointer;min-height:40px;padding:8px;}
.setup-mode-edit .setup-control-actions:not([open]){display:block;}
.setup-mode-edit .setup-control-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;}
.setup-mode-edit .setup-command-panel{display:flex;flex-direction:column;gap:5px;}
.setup-mode-edit .setup-command-top{order:0;width:100%;}
.setup-mode-edit .setup-control-row{order:1;width:100%;flex:none;}
.setup-mode-edit .setup-time-tabs{order:2;width:100%;display:flex;flex-wrap:wrap;gap:3px;margin:0;}
.setup-mode-edit .setup-time-tabs button{flex:1 0 85px;min-height:40px;padding:5px;font-size:13px;}
.setup-optional-positions{grid-column:1 / -1;}.setup-optional-positions>summary{min-height:40px;padding:8px;cursor:pointer;font-size:14px;font-weight:700;}.setup-optional-positions[open]{display:block;}.setup-optional-positions[open] .setup-position-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.setup-list-tools summary::before{content:'▸';margin-right:8px;}.setup-list-tools[open] summary::before{content:'▾';}
@media(min-width:701px){.setup-map-expanded.setup-mode-edit .setup-command-top{margin:0;padding:0;}.setup-map-expanded.setup-mode-edit .setup-control-row{margin:0;padding:0;border:0;}.setup-map-expanded.setup-mode-edit .setup-mode-switch button{min-height:40px;}}
@media(max-width:600px){.setup-optional-positions[open] .setup-position-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
.setup-list-station{min-width:0;}
.setup-map-expanded .setup-reviewed-notice{font-size:12px;}
@media(min-width:701px){
 .setup-layout-list .setup-groups{display:block;column-count:4;column-gap:6px;}
 .setup-layout-list.setup-mode-edit .setup-groups{column-count:3;}
 .setup-list-station{break-inside:avoid;display:inline-block;width:100%;vertical-align:top;margin-bottom:6px;}
 .setup-optional-positions,.setup-layout-list .setup-hidden-positions{column-span:all;}
 .setup-optional-positions[open] .setup-list-station{display:block;}
}
.setup-reviewed-info>summary{font-size:13px;min-height:36px;display:flex;align-items:center;cursor:pointer;}.setup-reviewed-info>summary::before{content:'▸';margin-right:6px;}.setup-reviewed-info[open]>summary::before{content:'▾';}

/* Names get their own row: status and actions must never squeeze a name. */
.shift-setup-view .setup-assignee-wrap > .setup-assignee {
  display:grid; grid-template-columns:minmax(0,1fr); align-content:start;
  gap:4px; text-align:left;
}
.shift-setup-view .setup-assignee-wrap .setup-assignee-copy {
  grid-column:1; width:100%; min-width:0; padding-right:0!important; text-align:left;
}
.shift-setup-view .setup-assignee-wrap .setup-assignee-copy strong {
  display:block; width:100%; white-space:normal; overflow:visible;
  text-overflow:clip; overflow-wrap:break-word; word-break:normal; line-height:1.25;
}
.shift-setup-view .setup-assignee-wrap .setup-break-badge {
  grid-column:1; grid-row:auto; justify-self:start; align-self:start;
  max-width:100%; min-height:28px; display:flex; align-items:center;
  white-space:normal; text-align:left;
}
.shift-setup-view .setup-assignee-wrap:has(.setup-break-options) .setup-break-badge {
  max-width:calc(100% - 32px);
}
.shift-setup-view .setup-assignee-wrap:has(.setup-break-options):not(:has(.setup-break-badge)) > .setup-assignee {
  padding-bottom:34px;
}
.shift-setup-view .setup-assignee-wrap > .setup-break-options {top:auto; bottom:3px; right:3px;}
.shift-setup-view .setup-assignee-wrap > .setup-break-options > div {bottom:100%;}
.shift-setup-view .setup-assignee-wrap .setup-avatar {display:none;}
/* Neutral means assigned, never 'break complete'. Only the explicit badge is green. */
.shift-setup-view .setup-assignee-wrap > .setup-assignee,
.setup-layout-map .boh-assignment-map .setup-assignee-wrap > .setup-assignee {
  background:#f2f4f5; color:#202d36;
}
.shift-setup-view .setup-assignee-wrap > .setup-assignee.is-on-break {background:#e8f2ff;color:#164d87;}
.shift-setup-view .setup-assignee-wrap > .setup-assignee.is-break-overdue {background:#ffe7eb;color:#95192b;}
.shift-setup-view .setup-assignee-wrap .setup-break-badge.is-complete {
  color:#246345; background:transparent; padding:2px 0; font-size:11px; font-weight:650;
}
.shift-setup-view .setup-assignee-wrap .setup-break-options summary {background:transparent;}
.boh-assignment-map:not(.foh-assignment-map):not(:has(.boh-show-handoffs:checked)) .boh-map-schedule {display:none;}
.boh-assignment-map .boh-zone-heading p,.boh-assignment-map .boh-centerline-divider span {display:none;}
@media(max-width:1280px){
 .boh-assignment-map:not(.foh-assignment-map) .boh-work-areas {grid-template-columns:minmax(0,1fr);gap:12px;}
 .boh-assignment-map:not(.foh-assignment-map) .boh-zone-heading {margin-bottom:10px;}
}
@media(min-width:701px) and (max-width:1280px){
 .boh-assignment-map:not(.foh-assignment-map) .boh-other-areas {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .boh-assignment-map:not(.foh-assignment-map) .boh-other-areas > .boh-zone-heading {grid-column:1 / -1;}
 .boh-assignment-map:not(.foh-assignment-map) .boh-role-group {margin-bottom:0;}
}

/* Upcoming handoffs stay visible; only the full schedule is optional. */
.shift-setup-view .boh-map-next {white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;font-size:12px;margin:5px 2px;color:#405563;overflow-wrap:break-word;}
/* Completed-break cards are green only when backed by a completed record. */
.shift-setup-view .setup-assignee-wrap > .setup-assignee.is-break-complete,
.setup-layout-map .boh-assignment-map .setup-assignee-wrap > .setup-assignee.is-break-complete {
  background:#e5f1e8; color:#204a36;
}
/* Hourly station work: quiet, shared and deliberately compact. */
.hour-work{border-top:1px solid var(--line);margin-top:12px;padding-top:10px;color:var(--ink)}
.hour-work h4{margin:0 0 5px;font-size:.8rem;line-height:1.3}.hour-work-help{font-size:.71rem!important;line-height:1.4!important;color:var(--ink-soft);margin:3px 0 8px!important}
.hour-task{display:flex;gap:8px;align-items:center;margin-top:8px}.hour-task>div{flex:1;min-width:0}.hour-task strong{display:block;font-size:.8rem;line-height:1.35;overflow-wrap:normal}.hour-task small{display:block;color:var(--ink-soft);font-size:.7rem;margin-top:3px}.hour-task button{flex:0 0 auto;min-height:40px;min-width:48px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;font-weight:700;color:var(--ink);cursor:pointer}.hour-task button:disabled{opacity:.5;cursor:wait}.hour-task.is-done strong{color:#456850}.hour-task-detail{font-size:.7rem!important;line-height:1.4!important;color:var(--ink-soft);margin:4px 0 7px!important}.hour-work> .hour-task-detail{display:none}.hour-work details{margin-top:8px}.hour-work summary{font-size:.73rem;cursor:pointer;padding:8px 0}.hour-next{font-size:.75rem!important;line-height:1.45!important;padding:8px 0 0;margin:7px 0 0!important;color:var(--ink-soft)}.hour-clear{font-size:.75rem!important;line-height:1.4!important;color:var(--ink-soft)}

/* Scheduled hours remain distinct from position/rotation times. */
.team-person .team-scheduled{margin:-3px 0 10px;font-size:14px;line-height:1.4;color:#4e5260;font-weight:600;font-variant-numeric:tabular-nums}.team-scheduled span{font-weight:400;color:#666b76;margin-right:3px}

/* v104 compact symmetric List display */
/* Display-only pilot: Edit and Breaks views retain original markup. */
.setup-layout-list.setup-mode-display .setup-groups{display:block!important;columns:auto!important;column-count:auto!important}
.compact-station-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.compact-station{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:16px 20px 15px 15px;gap:1px 6px;text-align:left;min-width:0;min-height:78px;height:78px;padding:5px 8px;background:#fff;border:1px solid #d7dbdf;border-radius:7px;color:#262b30;cursor:pointer}
.compact-role{font-size:12px;line-height:16px;font-weight:700;color:#a30d28;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-status{font-size:10px;line-height:16px;color:#67717b;white-space:nowrap}.compact-status.done{color:#246345}.compact-status.on{color:#185c9a}
.compact-name{grid-column:1/-1;line-height:20px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-shift,.compact-task{grid-column:1/-1;font-size:11px;line-height:15px;color:#4b5660;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-task{color:#35424a}
.compact-station:focus-visible{outline:3px solid #c8102e;outline-offset:1px}
.setup-mode-display.setup-layout-list .setup-map-overview,.setup-mode-display.setup-layout-list .setup-board-heading,.setup-mode-display.setup-layout-list .setup-list-handoffs{display:none}
.setup-mode-display.setup-layout-list .setup-command-panel{padding:8px;margin:0 0 6px;gap:4px;display:flex;flex-direction:column}
.setup-mode-display.setup-layout-list .setup-command-top{display:flex;justify-content:space-between;align-items:center;margin:0;padding:0}
.setup-mode-display.setup-layout-list .setup-command-top h2{font-size:17px;margin:0}
.setup-mode-display.setup-layout-list .setup-command-top .eyebrow,.setup-mode-display.setup-layout-list .setup-command-top h2+p{display:none}
.setup-mode-display.setup-layout-list .setup-local-note{font-size:11px;margin:1px 0}.setup-mode-display.setup-layout-list .setup-control-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0;padding:0;border:0}
.setup-mode-display.setup-layout-list .setup-mode-switch button,.setup-mode-display.setup-layout-list .setup-control-row button,.setup-mode-display.setup-layout-list .setup-control-row select,.setup-mode-display.setup-layout-list input{min-height:32px;font-size:12px;padding:4px 7px}
.setup-mode-display.setup-layout-list .setup-hour-control{margin:0;gap:4px}.setup-mode-display.setup-layout-list .setup-hour-control label{font-size:11px}.setup-mode-display.setup-layout-list .setup-date-control{margin:0}.setup-mode-display.setup-layout-list .setup-control-actions summary{min-height:32px;font-size:12px;padding:4px}
.setup-mode-display.setup-layout-list .setup-workspace,.setup-mode-display.setup-layout-list .setup-board{padding:0;gap:0;display:block}
.compact-dialog-shade{position:fixed;inset:0;background:#0007;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}.compact-dialog{background:white;border-radius:12px;width:520px;max-width:100%;max-height:90vh;overflow:auto;padding:14px}.compact-dialog>button{float:right;min-height:40px}.compact-dialog .setup-position-card{margin-top:45px}.compact-dialog .boh-map-schedule{display:block!important}
@media(max-width:900px){.compact-station-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-mode-display.setup-layout-list .setup-command-top h2{font-size:15px}}
@media(max-width:600px){.compact-station-grid{grid-template-columns:1fr}.compact-station{height:auto;min-height:84px}.compact-name{white-space:normal}.setup-mode-display.setup-layout-list .setup-command-top{flex-wrap:wrap}}

/* Fixed equal geometry includes Open, assignment, task/next footer. */
.compact-station{height:76px;min-height:76px;padding:4px 8px;grid-template-rows:15px 19px 14px 14px}
.compact-role,.compact-status{line-height:15px}.compact-name{line-height:19px}.compact-shift,.compact-task{line-height:14px}
/* Latest requested variant: equal square cells, full landscape page. */
@media(min-width:901px){.compact-station-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.compact-station{aspect-ratio:1;height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:17px 15px 38px 28px minmax(0,1fr);gap:1px;padding:7px}.compact-status{grid-row:2}.compact-name{white-space:normal;font-size:15px;line-height:19px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-shift,.compact-task{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:14px}.compact-task{border-top:1px solid #eee;padding-top:3px}}

@media(min-width:901px){.compact-station-grid.is-dense{grid-template-columns:repeat(7,minmax(0,1fr))}.compact-station{grid-template-rows:17px 15px 38px 26px minmax(0,1fr)}.compact-footer{min-height:0;overflow:hidden;border-top:1px solid #eee;padding-top:3px}.compact-task{border:0;padding:0}.compact-next,.compact-maintenance{display:block;font-size:11px;line-height:14px}.compact-maintenance.is-overdue{color:#b00020;font-weight:700}.compact-role{font-size:12px}.compact-status{font-size:10px}}
.compact-dialog>h3{margin:4px 0 12px}.compact-dialog .setup-position-card{margin-top:12px}.compact-dialog .boh-map-schedule{display:block!important}.compact-task-details{font-size:14px}.compact-dialog .machines-filter-due{max-height:none}

@media(min-width:901px){.compact-station{grid-template-rows:16px 14px 36px 14px minmax(0,1fr)}.compact-name{line-height:18px}.compact-shift{white-space:nowrap;display:block;line-height:14px}.compact-footer .compact-task,.compact-footer .compact-next,.compact-footer .compact-maintenance{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;line-height:14px}.compact-footer{overflow:visible}.compact-station-grid.is-dense .compact-station{padding:5px;gap:1px}.compact-footer>span:empty{display:none}}

@media(min-width:901px){.compact-station-grid.is-dense .compact-station{padding:4px;gap:0;grid-template-rows:15px 12px 32px 12px minmax(0,1fr)}.compact-station-grid.is-dense .compact-name{line-height:16px}.compact-station-grid.is-dense .compact-status,.compact-station-grid.is-dense .compact-shift{line-height:12px}.compact-footer .compact-task{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-footer .compact-maintenance{font-weight:700}}
@media(min-width:901px){body:has(.setup-layout-list.setup-mode-display) .workspace-tabs{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:8px;padding:4px}body:has(.setup-layout-list.setup-mode-display) .workspace-tabs .nav-item{min-height:38px;font-size:14px}body:has(.setup-layout-list.setup-mode-display) .topbar{min-height:48px;padding-block:4px;margin-bottom:6px}}
/* Smaller screens keep readable equal rows; landscape is the one-screen target. */
@media(max-width:900px){.compact-station{height:148px;min-height:148px;grid-template-rows:16px 38px 16px minmax(0,1fr);padding:6px}.compact-name{white-space:normal;line-height:19px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-footer{grid-column:1/-1;min-width:0;overflow:hidden}.compact-footer .compact-task{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.compact-next,.compact-maintenance{display:block;font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-maintenance.is-overdue{color:#b00020;font-weight:700}}
/* v105: wider screens must not grow square cards beyond the landscape height budget. */
@media(min-width:901px) and (orientation:landscape){
 .setup-mode-display.setup-layout-list .compact-station-grid{grid-template-columns:repeat(7,minmax(0,1fr));max-width:974px;margin-inline:auto}
 body:has(.setup-layout-list.setup-mode-display) .main-stage{padding-bottom:8px}
 .setup-mode-display.setup-layout-list .compact-footer{padding-top:0}
}

/* v106: familiar red position headers, centered equal-sized cards. */
.compact-station{text-align:center}.compact-role{background:#b51d33;color:#fff;text-align:center;grid-column:1/-1;border-radius:6px 6px 0 0;margin:-4px -4px 0;padding:2px 4px;line-height:19px;min-height:23px}.compact-name,.compact-status,.compact-shift,.compact-footer{text-align:center}
@media(min-width:901px){.compact-station-grid.is-dense .compact-station{grid-template-rows:19px 12px 32px 12px minmax(0,1fr)}}
@media(max-width:900px){.compact-station{grid-template-columns:minmax(0,1fr);grid-template-rows:23px 14px 38px 16px minmax(0,1fr);height:166px;min-height:166px}.compact-role{margin:-6px -6px 0}.compact-name,.compact-shift,.compact-footer{grid-column:1}.compact-status{grid-row:2}}

/* A disabled reviewed meal is an exception, not an active break action. */
.setup-day-break-row .setup-break-button:disabled { color:var(--ink-soft); background:#eef1f4; cursor:not-allowed; }
