:root {
  --slate: #2f4a63;
  --slate-dark: #1f3547;
  --teal: #2f8f8f;
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #d8e0e6;
  --warn-bg: #fff6e5;
  --warn-line: #e9c777;
  --danger: #b3432d;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

a { color: var(--slate); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--slate-dark);
  color: #fff;
}

.wordmark { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; letter-spacing: 0.01em; }
.header-actions { display: flex; gap: 14px; align-items: center; }
.header-link { color: #dce8ee; text-decoration: none; font-size: 0.9rem; }
.header-badge { background: rgba(255,255,255,0.14); border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; color: #fff; }
.version-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 2px 9px; font-size: 0.72rem; font-weight: 600; color: #dce8ee; font-variant-numeric: tabular-nums; }

.section-shell { max-width: 760px; margin: 0 auto; padding: 20px 18px 60px; }
.section-shell.wide { max-width: 980px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); margin: 0 0 6px; }

.kiosk-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-top: 18px;
  box-shadow: 0 1px 3px rgba(20, 30, 40, 0.06);
}

.kiosk-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.kiosk-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.kiosk-progress span.is-current, .kiosk-progress span.is-done { background: var(--teal); }

h1, h2, h3 { color: var(--slate-dark); margin-top: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

.big-choice-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 18px 0; }
.big-choice {
  padding: 22px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate-dark);
}
.big-choice:hover, .big-choice:focus-visible { border-color: var(--teal); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
}
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.service-list { display: grid; gap: 10px; margin: 16px 0; }
.service-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  color: var(--ink);
}
.service-option[aria-pressed="true"] { border-color: var(--teal); background: #eef8f8; }
.service-option small { display: block; color: var(--muted); font-weight: 400; }

.pay-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.pay-option {
  padding: 18px 14px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.pay-option[aria-pressed="true"] { border-color: var(--teal); background: #eef8f8; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.button-primary { background: var(--slate-dark); color: #fff; }
.button-primary:disabled { background: #a9b7c2; cursor: not-allowed; }
.button-secondary { background: #fff; color: var(--slate-dark); border: 1.5px solid var(--line); }
.button-block { width: 100%; justify-content: center; }
.text-button { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 0; }

.flow-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin: 12px 0; }
.notice-error { background: #fbe9e5; color: var(--danger); border: 1px solid #f0c3b8; }
.notice-success { background: #e6f5ec; color: #1f6b40; border: 1px solid #b9e0c8; }
.notice-staged { background: var(--warn-bg); color: #7a5c14; border: 1px solid var(--warn-line); }

.staged-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--warn-bg);
  color: #7a5c14;
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.role-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
  padding: 10px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.role-switcher span.label { font-size: 0.78rem; color: var(--muted); margin-right: 6px; align-self: center; }
.role-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}
.role-chip.is-active { background: var(--slate-dark); color: #fff; border-color: var(--slate-dark); }

.portal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.portal-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.88rem;
}
.portal-tab.is-active { border-color: var(--teal); background: #eef8f8; font-weight: 600; }

.kpi-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 14px 0; }
@media (min-width: 600px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi-card .kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--slate-dark); }
.kpi-card .kpi-label { font-size: 0.78rem; color: var(--muted); }

.task-list, .roster-list { list-style: none; padding: 0; margin: 10px 0; }
.task-list li, .roster-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.task-list li:last-child, .roster-list li:last-child { border-bottom: none; }

.staged-panel {
  border: 1px dashed var(--warn-line);
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #7a5c14;
}

.forbidden-panel {
  border: 1px solid #f0c3b8;
  background: #fbe9e5;
  border-radius: 10px;
  padding: 14px;
  color: var(--danger);
  font-size: 0.9rem;
}

.site-footer { text-align: center; padding: 20px; font-size: 0.8rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  .big-choice-grid, .pay-grid, .kpi-grid { grid-template-columns: 1fr; }
}

/* Phone/tablet/desktop device-preview switcher. Ported from notice-today-wabble's
   demo/styles.css 2026-09-02, per project/PLATFORM-BUILD-PLAN.md Slice 0. Variable
   names adapted to this repo's own palette (--slate-dark/--line/--card instead of
   NT's --ink/--line-strong/--paper); layout mechanism is unchanged. */
.preview-canvas { min-height: 100vh; background: var(--bg); }

.preview-device-controls { display: flex; align-items: center; gap: 0.6rem; }
.preview-mode-select { max-width: 7rem; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--card); cursor: pointer; font: 600 0.72rem/1 -apple-system, sans-serif; }
.preview-mode-select:hover, .preview-mode-select:focus-visible { border-color: var(--teal); color: var(--ink); }
.kiosk-deployment-select { border-style: dashed; border-color: var(--warn-line); }
.phone-view-size { display: none; color: var(--muted); font: 0.65rem/1 -apple-system, sans-serif; white-space: nowrap; }

.preview-scrollbar { position: fixed; z-index: 30; overflow: hidden; width: 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 14px rgba(28, 39, 51, 0.16); cursor: ns-resize; }
.preview-scrollbar span { display: block; width: 100%; min-height: 0.8rem; border-radius: inherit; background: var(--slate-dark); transition: transform 0.08s linear; }

body.phone-view, body.tablet-view { min-width: 0; min-height: 100dvh; overflow: auto; display: grid; place-items: start center; padding: 4.5rem 1.5rem 1.5rem; background: #e4e8ec; }
body.phone-view .preview-canvas, body.tablet-view .preview-canvas { min-height: 0; overflow-x: hidden; overflow-y: auto; border: 4px solid var(--slate-dark); border-radius: 1.5rem; background: var(--card); box-shadow: 0 24px 70px rgba(28, 39, 51, 0.22); cursor: grab; scrollbar-width: none; }
body.phone-view .preview-canvas::-webkit-scrollbar, body.tablet-view .preview-canvas::-webkit-scrollbar { display: none; }
body.phone-view .preview-canvas a, body.tablet-view .preview-canvas a, body.phone-view .preview-canvas button, body.tablet-view .preview-canvas button, body.phone-view .preview-canvas input, body.tablet-view .preview-canvas input, body.phone-view .preview-canvas select, body.tablet-view .preview-canvas select { cursor: pointer; }
body.phone-view .preview-canvas { width: 390px; height: 844px; }
body.tablet-view .preview-canvas { width: 768px; height: 1024px; }
body.phone-view .preview-scrollbar { top: 4.5rem; left: calc(50% + 13rem); height: 844px; }
body.tablet-view .preview-scrollbar { top: 4.5rem; left: calc(50% + 24.8rem); height: 1024px; }
body.phone-view .site-header, body.tablet-view .site-header { position: sticky; top: 0; padding-inline: 1rem; }
body.phone-view .header-link, body.tablet-view .header-link { display: none; }
body.phone-view .header-badge, body.tablet-view .header-badge { display: none; }
body.phone-view .phone-view-size, body.tablet-view .phone-view-size { display: inline-block; }

@media (max-width: 820px) {
  .preview-device-controls, .preview-scrollbar { display: none; }
  body.phone-view, body.tablet-view { padding: 0; background: var(--bg); }
  body.phone-view .preview-canvas, body.tablet-view .preview-canvas { width: 100%; height: auto; border: none; border-radius: 0; box-shadow: none; overflow: visible; }
}
