/* The station home page (app.tightboard.com). The apps' dark look and
   type: Red Hat, Studio Night, each app in its own colour. */
@font-face { font-family: 'Red Hat Display'; font-weight: 700; src: url(/home/fonts/red-hat-display-latin-700-normal.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Red Hat Text'; font-weight: 400; src: url(/home/fonts/red-hat-text-latin-400-normal.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Red Hat Text'; font-weight: 600; src: url(/home/fonts/red-hat-text-latin-600-normal.woff) format('woff'); font-display: swap; }

:root {
  --bg: #0f1012; --panel: #17181c; --panel-2: #202226; --line: #2e3036;
  --text: #f4f1ea; --muted: #a3a4a9; --faint: #84858b; --accent: #f7d9a6;
  --ok: #4cc38a; --red: #ff4f45; --amber: #ffa62b;
  --studio: #ff5a4f; --director: #ffa62b; --voice: #ae93f6; --remote: #73aef2;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.45 'Red Hat Text', 'Segoe UI', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 560px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); display: grid; gap: 16px; }
h1, h2 { font-family: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 24px; }
h2 { font-size: 17px; margin-bottom: 10px; }
p { margin: 0; }
.faint { color: var(--faint); font-size: 14px; }
.label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.err { color: var(--red); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--accent); }

.top { display: flex; align-items: center; gap: 12px; }
.top .who { flex: 1; min-width: 0; }
.top h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark { border-radius: 8px; flex: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form { display: grid; gap: 10px; }

.text { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pin { letter-spacing: 0.3em; font-size: 22px; text-align: center; }
.pin::placeholder { letter-spacing: normal; font-size: 17px; }

button, .button { font: inherit; font-weight: 600; border-radius: 8px; padding: 11px 16px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
button:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary { background: var(--ok); border-color: var(--ok); color: #0b1a12; }
.ghost { background: transparent; }
.link { background: none; border: none; color: var(--muted); padding: 8px 4px; min-height: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
button[disabled] { opacity: 0.55; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 36px; padding: 6px 12px; font-weight: 400; }

.air-row { display: flex; gap: 14px; align-items: flex-start; }
.lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--faint); margin-top: 3px; flex: none; }
.lamp.up { background: var(--red); box-shadow: 0 0 10px var(--red); }
.lamp.down { background: transparent; border: 2px solid var(--amber); }
.air-text { display: grid; gap: 4px; min-width: 0; }
.now { font-size: 18px; font-weight: 600; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.people button { justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; }
.people small { color: var(--faint); font-weight: 400; font-size: 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--line)); color: var(--text); text-decoration: none; min-height: 132px; align-content: start; }
.tile:hover, .tile:focus-visible { background: var(--panel-2); outline: none; border-color: var(--c); }
.tile img { width: 40px; height: 40px; border-radius: 9px; }
.tile b { font-family: 'Red Hat Display', system-ui, sans-serif; font-size: 18px; }
.tile span { color: var(--faint); font-size: 13px; }
.foot { justify-content: space-between; margin-top: 6px; }
.help { text-align: center; }
