/* Kiosk: tablet in landscape at the charging racks, read from about 1 m away. */
body { overflow: hidden; user-select: none; -webkit-user-select: none; font-size: 18px; display: flex; flex-direction: column; }
.bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 24px 10px;
  background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); flex: none;
}
.brand { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.4rem; line-height: 1; }
.pill { border-radius: 999px; padding: .3em .9em; font-size: .85rem; font-weight: 500; }
.pill-none { background: var(--panel-2); color: var(--muted); }
.pill-open { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.clock { font-size: 1.15rem; font-weight: 600; }
.sup-btn { min-height: 40px; }

.station {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
}
.prompt {
  display: grid; align-content: center; justify-items: center; text-align: center; gap: 18px; padding: 32px 40px;
}
.tap-mark { color: var(--accent); }
.prompt h1 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); }
.sub { color: var(--muted); font-size: 1.15rem; line-height: 1.4; margin: 0; max-width: 38ch; }
.counts { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.counts div { display: grid; justify-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 28px 12px; min-width: 110px; }
.counts span { font-size: 3.4rem; font-weight: 600; line-height: 1; }
.counts small { color: var(--muted); font-size: .85rem; margin-top: 6px; }
#cIn { color: var(--ok); } #cOut { color: var(--accent); } #cSvc { color: var(--warn); }

.outlist { min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; background: var(--panel); border-left: 1px solid var(--line); padding: 26px 24px; }
.outlist h2 { font-size: 1.6rem; }
.rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 6px; align-content: start; }
.rows li {
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; align-items: center; gap: 10px;
  background: var(--panel-2); border-radius: var(--radius); padding: 12px 14px;
}
.rows .n { font-weight: 600; font-size: 1.25rem; }
.rows .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .dur { color: var(--muted); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rows li.long { background: var(--warn-bg); }
.rows li.long .dur { color: var(--warn); }
.rows li.missing { background: var(--bad-bg); }
.rows li.missing .dur { color: var(--bad); }
.empty { margin: 0; padding: 12px 2px; }

/* overlays */
.overlay {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 45%, transparent); padding: 20px;
}
.overlay.start { background: var(--panel); }
.overlay.start .card { box-shadow: none; border: 0; gap: 22px; }
.overlay.start .brand-logos { gap: 1.6em; margin-bottom: 4px; }
.overlay.start .brand-logos img { height: 84px; }
.overlay.start .brand-logos img.sfc { height: 61px; }
.overlay.start h1 { font-size: clamp(2.8rem, 6vw, 4rem); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px; width: min(760px, 100%);
  max-height: calc(100% - 20px); overflow-y: auto; display: grid; gap: 18px;
  box-shadow: 0 18px 50px rgb(42 36 32 / .22);
}
.card.narrow { width: min(560px, 100%); }
.card.center { text-align: center; justify-items: center; }
.card h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.card h2 { font-size: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.big { font-size: 1.2rem; min-height: 64px; padding-inline: 1.6em; }
.big-line { font-size: 1.45rem; font-weight: 500; margin: 0; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; min-height: 40px; justify-self: start; }
.stack { display: grid; gap: 12px; }
.err { color: var(--bad); background: var(--bad-bg); border-radius: 8px; padding: .6em .8em; margin: 0; font-weight: 600; }

.badge-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cam { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; justify-self: center; }
.cam.small { max-height: 34vh; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-frame { position: absolute; inset: 18% 24%; border: 4px solid rgb(255 255 255 / .85); border-radius: 12px; box-shadow: 0 0 0 999px rgb(0 0 0 / .25); }
.cam-msg { position: absolute; inset: auto 0 0; margin: 0; padding: 10px 14px; background: rgb(0 0 0 / .7); color: #fff; font-weight: 600; }
.timer { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.timer div { height: 100%; width: 100%; background: var(--accent); transform-origin: left; }

/* Result screens are full-screen tints, not a card on a solid colour. */
.result.ok { background: var(--ok-bg); }
.result.bad { background: var(--bad-bg); }
.result.warn { background: var(--warn-bg); }
.result .card { background: transparent; border: 0; box-shadow: none; width: min(1000px, 100%); gap: 18px; }
.result .card h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
.result .sub { font-size: 1.3rem; max-width: 46ch; }
.result #resDone { min-width: 240px; }
.res-icon { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 56px; font-weight: 600; color: #fff; }
.result.ok .res-icon { background: var(--ok); }
.result.bad .res-icon { background: var(--bad); }
.result.warn .res-icon { background: var(--warn); }
.warn-line { margin: 0; color: var(--warn); background: var(--warn-bg); padding: .6em 1em; border-radius: var(--radius); font-weight: 500; }
.result.warn .warn-line { background: var(--panel); }
.problems { display: grid; gap: 10px; width: min(600px, 100%); }
.problems p { margin: 0; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.problem-grid button { min-height: 56px; }

.pick-list, .resolve-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 42vh; overflow-y: auto; }
.pick-list button { width: 100%; justify-content: flex-start; }
.resolve-list li { background: var(--panel-2); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.resolve-list li > div:first-child { flex: 1 1 180px; font-size: 1.1rem; }
.resolve-list .seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.resolve-list .seg button { border: 0; border-radius: 0; border-left: 1px solid var(--line); font-weight: 500; }
.resolve-list .seg button:first-child { border-left: 0; }
.resolve-list .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.pin-dots { display: flex; gap: 12px; justify-content: center; min-height: 24px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { min-height: 72px; font-size: 1.7rem; background: var(--panel-2); border: 0; }
.keypad button.primary { background: var(--accent); }

.summary-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; }
.summary-grid dt { color: var(--muted); }
.summary-grid dd { margin: 0; font-weight: 600; }

@media (max-width: 820px) {
  body { overflow: auto; }
  body { display: block; }
  .station { grid-template-columns: 1fr; }
  .outlist { border-left: 0; border-top: 1px solid var(--line); }
}
