/* Charma Brand Book 1.0 (Notion, 2026-09): palette, Spectral + Schibsted Grotesk, 10px radii, gold line. */
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/spectral-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: italic; font-display: swap; src: url(/static/fonts/spectral-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Spectral'; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/fonts/spectral-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(/static/fonts/schibsted-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url(/static/fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(/static/fonts/schibsted-grotesk-latin-600-normal.woff2) format('woff2'); }

:root {
  --green: #16261C;       /* Skogsgrön – primary */
  --sand: #F6EFE2;        /* Sand – surface-alt */
  --gold: #D8B25E;        /* Guld – secondary, detail only */
  --gold-text: #866930;   /* Textguld – gold text on light */
  --gold-dark: #A97E34;   /* Mörk guld – icons/large text on light */
  --gold-light: #E7C878;  /* Ljus guld – text on green */
  --ink: #1C2B22;         /* Bläck – body text */
  --creme: #F4ECDA;       /* Creme – text on green */
  --muted: #6B6E61;       /* Dov grön – secondary text */
  --line: #ECE5D5;        /* Linje */
  --pastel-green: #ECF2EE;
  --pastel-rose: #F8EFEE;
  --ok: #3C7A52;
  --warn: #9A6A14;
  --err: #A8392B;
  --radius: 10px;
  --radius-lg: 16px;
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Schibsted Grotesk', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--sand); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-text); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; }
p { margin: 0 0 1em; }
.kicker { font: 600 .75rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--gold-text); margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: .9em; white-space: nowrap; }
.goldline { border: 0; height: 2px; width: 48px; background: var(--gold); margin: 1rem 0 1.5rem; }

/* Header: green with gold logo (primary logo variant). Logo ≥140px wide, clear space = bow height. */
.site-header { background: var(--green); color: var(--creme); }
.site-header .bar { max-width: 1100px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 24px; }
.site-header .logo { color: var(--gold); width: 150px; display: block; }
.site-header .logo svg { width: 100%; height: auto; display: block; }
.site-header nav { margin-left: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--gold-light); text-decoration: none; font-weight: 500; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.site-header .who { color: var(--creme); opacity: .8; font-size: .875rem; }
/* Logout is quiet: the page's own primary action should be the loudest thing. */
.site-header .btn { background: transparent; border: 1px solid rgba(244,236,218,.35); color: var(--creme); }
.site-header .btn:hover { border-color: var(--gold); }

main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.narrow { max-width: 560px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.card.calm { background: var(--pastel-green); border-color: transparent; }
.card.alert { background: var(--pastel-rose); border-color: transparent; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.card > h3:first-child { font: 500 1.25rem/1.25 var(--serif); color: var(--green); margin: 0 0 .75rem; }
.card h3.sub, .card > h3:not(:first-child) { font: 600 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 1.5rem 0 .6rem; }
.card.danger-zone { border-color: #ead1cc; }
.card.narrow { max-width: 560px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* Buttons: primary = green with creme text; secondary = green outline. One primary per surface. */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1.5px solid var(--green); background: transparent; color: var(--green);
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--green); color: var(--creme); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--green); }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn.danger:hover:not(:disabled) { background: var(--pastel-rose); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.btn:disabled, .btn.primary:disabled, .btn.danger:disabled { opacity: 1; background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

label { display: block; font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=url], input[type=number], select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d9d0bd;
  border-radius: var(--radius); background: #fff; color: var(--ink); font: 400 1rem var(--sans); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 1rem; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--green); flex: none; }
.check + .hint { margin-left: 28px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: .925rem; }
th { text-align: left; font-weight: 500; font-size: .8rem; color: var(--muted); white-space: nowrap; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
td a { color: var(--ink); font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
td a:hover { color: var(--gold-text); }
.table-scroll { overflow-x: auto; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 .8rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.ok { background: var(--pastel-green); color: var(--ok); } .badge.ok::before { background: var(--ok); }
.badge.off { background: var(--line); color: var(--muted); } .badge.off::before { background: var(--muted); }
.badge.err { background: var(--pastel-rose); color: var(--err); } .badge.err::before { background: var(--err); }
.badge.warn { background: #f6ecd6; color: var(--warn); } .badge.warn::before { background: var(--warn); }

.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; background: var(--pastel-green); color: var(--ok); }
.flash.err { background: var(--pastel-rose); color: var(--err); }
.secret { background: var(--green); color: var(--creme); border-radius: var(--radius); padding: 18px 20px; }
.secret .code { font: 600 2rem/1.2 ui-monospace, monospace; letter-spacing: .08em; color: var(--gold-light); }
.secret pre { white-space: pre-wrap; word-break: break-all; color: var(--creme); margin: 8px 0 0; font-size: .85rem; }

/* ── Mobile control page (QR) ──────────────────────────────────────── */
.control .status { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.control .btn { min-height: 56px; font-size: 1rem; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--green); color: var(--creme); padding: 12px 18px; border-radius: var(--radius); font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.toast.err { background: var(--err); color: #fff; }

/* ── TV room status display (1920×1080, green dominant like a cover) ── */
/* Entrance on the TV (docs/motion.md): content rises in once, the gold line draws, the QR card follows. Then nothing moves. */
@keyframes rk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rk-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* QR needs dark modules on a light plate to scan everywhere; the plate is kept to the code itself. */

/* ── Printable QR sign (A5/A4) ───────────────────────────────────── */
body.print { background: #fff; }
.sign { width: 148mm; margin: 10mm auto; background: #fff; border: 1px solid var(--line); border-radius: 4mm; overflow: hidden; }
.sign header { background: var(--green); padding: 9mm 10mm; }
.sign header .logo { width: 44mm; color: var(--gold); }
.sign header .logo svg { width: 100%; height: auto; display: block; }
.sign .body { padding: 9mm 10mm 10mm; }
.sign h1 { font-size: 26pt; margin: 0; }
.sign .qrbox { width: 96mm; margin: 6mm auto; background: var(--creme); padding: 6mm; border-radius: 4mm; }
.sign .qrbox svg { width: 100%; height: auto; display: block; }
@media print { .noprint { display: none !important; } .sign { margin: 0 auto; border: 0; min-height: 200mm; } @page { size: A5; margin: 0; } }
@media screen and (max-width: 640px) { .sign { width: auto; margin: 12px; } .sign .qrbox { width: 100%; } }
/* Login: one centred card. */
.login { margin: 8vh auto 0; }
.login .card { padding: 28px; }
.login .btn { width: 100%; }

@media (max-width: 640px) {
  .site-header .bar { flex-wrap: wrap; gap: 12px; }
  .site-header nav { margin-left: 0; gap: 14px; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 1.6rem; }
}

/* Start page: one row per screen with a scannable mini QR on a cream plate. */
.screen-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.screen-row:first-of-type { border-top: 0; }
.screen-row:last-child { padding-bottom: 0; }
.qr-mini { background: var(--creme); border-radius: 10px; padding: 8px; }
.qr-mini svg { display: block; width: 100%; height: auto; }
/* Start page: one card per room, one tile per screen. */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; margin-top: 24px; }
.room-card { margin: 0; padding: 22px 24px; }
.room-card > .kicker { margin: 0 0 6px; }
.screen-tile { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.room-card > .kicker + .screen-tile { border-top: 0; padding-top: 8px; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.screen-head h2 { margin: 0; font-size: 1.6rem; }
.screen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.screen-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.screen-actions .btn .ico { width: 20px; height: 20px; flex: none; }
@media (max-width: 420px) { .screen-tile { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; } .screen-actions .btn { flex: 1; } }
.stack-tight { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }


/* ── Phone: web card, YouTube buttons, remote sheet ──────────────── */
.control .now-web .media { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.control .now-web .media .btn { min-height: 48px; padding: 8px; font-size: .9rem; }
.control .now-web .media [data-media="fullscreen"], .control .now-web .media [data-media="captions"] { grid-column: span 1; }
.remote { position: fixed; inset: 0; z-index: 50; background: var(--green); color: var(--creme); display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); animation: rk-sheet 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rk-sheet { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.remote-bar { display: flex; justify-content: space-between; align-items: center; }
.remote .btn { border-color: rgba(244,236,218,.35); color: var(--creme); }
.remote .pad { border-radius: var(--radius-lg); background: rgba(244,236,218,.06); border: 1px solid rgba(244,236,218,.14); touch-action: none; user-select: none; -webkit-user-select: none;
  display: grid; place-items: center; text-align: center; color: rgba(244,236,218,.55); font-size: .9rem; line-height: 1.6; }
.remote .pad p { margin: 0; pointer-events: none; }
.remote-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.remote-keys .btn { min-height: 48px; padding: 6px; font-size: .9rem; }
.remote input { background: rgba(244,236,218,.08); border-color: rgba(244,236,218,.25); color: var(--creme); }
.remote input::placeholder { color: rgba(244,236,218,.5); }
body.remote-on { overflow: hidden; }

/* Phone: "Hur fungerar det?" */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--sand); color: var(--ink); }
.sheet::backdrop { background: rgba(22, 38, 28, .55); }
.sheet-body { padding: 20px 20px 28px; }
.sheet h2 { margin: 0; font-size: 1.5rem; }
.sheet h3 { margin: 1.3em 0 .3em; }
.sheet p { margin: 0; }
.sheet p.method { margin-top: .5em; }
.sheet[open] { animation: rk-sheet 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
/* Desktop: the phone's bottom sheets become centred dialogs. */
@media (min-width: 720px) and (min-height: 500px) {
  .sheet { margin: auto; border-radius: var(--radius-lg); max-height: 82vh; box-shadow: 0 24px 64px rgba(22, 38, 28, .28); }
  .sheet[open] { animation: rk-pop 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .sheet-body { padding: 26px 28px 30px; }
}
@keyframes rk-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
/* ── Phones ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header .bar { padding: 14px 16px; gap: 10px 14px; flex-wrap: wrap; }
  .site-header .logo { width: 118px; }
  .site-header nav { margin-left: 0; width: 100%; gap: 6px 16px; font-size: .9rem; }
  .site-header .who { display: none; }
  .site-header nav form { margin-left: auto !important; }
  main { padding: 22px 16px 48px; }
  h1 { font-size: 1.7rem; }
  .btn.small { min-height: 44px; }
  .row > .btn.primary, form.row > .btn { width: 100%; }
  /* Tables become stacked rows: label-less, one cell per line. */
  .stack-rows thead { display: none; }
  .stack-rows tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stack-rows tbody tr:last-child { border-bottom: 0; }
  .stack-rows td { display: block; border: 0; padding: 2px 0; }
  .stack-rows td:empty { display: none; }
}


/* ── Phone: every press answers (docs/motion.md) ───────────────────── */
.control :is(.btn, .tile, .pager button) { position: relative; transition: transform 120ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 200ms, border-color 200ms, color 200ms; }
.control :is(.btn, .tile, .pager button):active:not(:disabled) { transform: scale(.97); }
.control .is-busy { color: transparent !important; pointer-events: none; }
.control .is-busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--gold) var(--gold) transparent transparent; animation: rk-spin 700ms linear infinite; }
.control .is-done { border-color: var(--ok); }
.control .is-done::after { content: '✓'; position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--ok); font-weight: 700; animation: rk-pop 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.control .btn.primary.is-done::after { color: var(--gold-light); }
.control .is-fail { animation: rk-shake 400ms cubic-bezier(0.2, 0.7, 0.2, 1); border-color: var(--err); }
@keyframes rk-spin { to { transform: rotate(1turn); } }
@keyframes rk-pop { from { opacity: 0; scale: .6; } }
@keyframes rk-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.control .badge { transition: background-color 200ms, color 200ms; }
.control .badge.flip { animation: rk-pop 200ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.control [hidden] { display: none !important; }
.control .card, .control .phase { border-color: var(--gold); }
.control .phase .progress { margin-top: 12px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.control .phase .progress span { display: block; width: 40%; height: 100%; background: var(--gold); border-radius: 2px; animation: rk-indeterminate 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
@keyframes rk-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.control #offline:not([hidden]) ~ * { opacity: .55; transition: opacity 200ms; }
@media (prefers-reduced-motion: reduce) {
  .control .btn, .control .badge, .control .card,   .control .is-busy::after { animation-duration: 2s; }
  .control .phase .progress span { animation: none; width: 100%; opacity: .5; }
}

/* ── Phone page layout (2026-10-14): green header, white tiles, gear for sound ── */
body.control { background: var(--sand); }
.control .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { background: var(--green); color: var(--creme); border-radius: 0 0 24px 24px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, calc((100% - 488px) / 2)) 40px; } /* same column as #app */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.hero .logo { color: var(--gold); width: 104px; display: block; }
.hero .logo svg { display: block; width: 100%; height: auto; }
.hero-links { display: flex; align-items: center; gap: 14px; }
.hero .link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; color: var(--creme); font: 500 .9rem var(--sans); text-decoration: none; cursor: pointer; opacity: .9; }
.hero .link .ico { width: 18px; height: 18px; color: var(--gold-light); }
.hero .kicker { color: var(--gold-light); margin: 0 0 4px; }
.hero .status { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero h1 { color: var(--creme); margin: 0; font-size: 1.9rem; line-height: 1.1; }
.hero .badge { flex: none; }
#app { max-width: 520px; margin: -22px auto 0; padding: 0 16px 40px; display: grid; gap: 12px; }
#app > .hint { margin: 0; }
.control .card { margin: 0; box-shadow: 0 1px 2px rgba(22, 38, 28, .06), 0 8px 24px rgba(22, 38, 28, .06); }
.control .card .kicker { margin: 0; }
.control .phase p { margin: 2px 0 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { appearance: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 92px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--green); font: 600 .95rem/1.25 var(--sans); text-align: left; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(22, 38, 28, .06); overflow-wrap: anywhere; hyphens: auto; }
.tile .ico { color: var(--gold-dark); }
.tile:disabled { opacity: .5; cursor: not-allowed; }
.tile.danger { color: var(--err); }
.tile.danger .ico { color: var(--err); }
.tile.primary { background: var(--green); border-color: var(--green); color: var(--creme); }
.tile.primary .ico { color: var(--gold-light); }
#view .ico:nth-of-type(2), #view.to-meeting .ico:nth-of-type(1) { display: none; }
#view.to-meeting .ico:nth-of-type(2) { display: block; }
.tile.pager { flex-direction: row; align-items: center; justify-content: space-between; padding: 6px; cursor: default; }
.pager button { appearance: none; width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--sand); color: var(--green); display: grid; place-items: center; cursor: pointer; }
.pager span { font-weight: 600; }
.agenda-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sand); color: var(--green); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.chip .ico { width: 18px; height: 18px; }
.chip .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.agenda-row { flex-wrap: nowrap; }
#app > * { min-width: 0; }
.chip { flex: none; }
.chip.next { flex: 0 1 auto; min-width: 0; margin-left: auto; background: var(--green); border-color: var(--green); color: #fff; }
.chip .ico { flex: none; }
.agenda-row.has-next #mineOpen .label { display: none; }
.chip.next .when { flex: none; font-variant-numeric: tabular-nums; color: var(--gold-light); }
.chip.next .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.chip.next.is-busy, .chip.next.is-done { opacity: .8; }
.agenda-list { list-style: none; margin: 14px 0 0; padding: 0; }
.agenda-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda-list li:first-child { border-top: 0; }
.agenda-list .when { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green); white-space: nowrap; }
.agenda-list .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-list li.empty { display: block; color: var(--muted); }
@media (max-width: 360px) { .agenda-list li { grid-template-columns: 1fr auto; } .agenda-list .what { grid-column: 1; grid-row: 2; } .agenda-list .btn { grid-row: 1 / span 2; grid-column: 2; } }
.control .card.vol { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.control .vol > .ico { color: var(--gold-dark); flex: none; }
.control .vol input[type=range] { flex: 1; min-width: 0; accent-color: var(--green); }
.control .vol .mono { width: 2.2em; text-align: right; }
.icon-btn { appearance: none; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); color: var(--green); display: grid; place-items: center; cursor: pointer; }
.control .foot { text-align: center; font-size: .85rem; color: var(--muted); }
.control .foot p { margin: 4px 0; }
.control .is-busy .ico, .control .is-busy span { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .control .tile { animation: none; } }
.control .card { border-color: var(--line); }
.control .card.phase { border-color: var(--gold); }
.tile.pager { grid-column: 1 / -1; min-height: 60px; }

.site-header .lang-switch { margin-left: auto; color: var(--creme); font-size: .9rem; text-decoration: none; opacity: .9; }

/* ── TV start screen (2026-10-14): scales with the screen ───────────────────────
   Everything is sized in vmin (the short side), so the same layout fills a laptop,
   a 1080p TV and a 4K TV alike: the QR is about half the screen height and the text
   stays readable from across the room. English sits under each Swedish line. */
body.display { background: var(--green); color: var(--creme); height: 100vh; overflow: hidden; }
.display .wrap { height: 100vh; box-sizing: border-box; padding: 6vmin 7vmin; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); gap: 4vmin 8vmin; }
.display .logo { color: var(--gold); width: 22vmin; align-self: center; }
.display .logo svg { width: 100%; height: auto; display: block; }
.display .clock { justify-self: end; align-self: center; font: 500 6vmin/1 var(--serif); color: var(--creme); font-variant-numeric: tabular-nums; }
.display .main { align-self: center; min-width: 0; }
.display h1 { color: var(--creme); font-size: 11vmin; line-height: 1; margin: 0; text-wrap: balance; }
.display .goldline { width: 10vmin; height: .45vmin; margin: 4vmin 0; border: 0; background: var(--gold); }
.display .how { display: grid; gap: 3.2vmin; max-width: 92vmin; }
.display .kicker { color: var(--gold-light); font-size: 2.1vmin; letter-spacing: .16em; margin: 0 0 1.2vmin; }
.display .en { display: block; color: var(--creme); opacity: .62; font-size: .8em; font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: .25em; }
.display .kicker .en { display: inline; margin-left: 1em; font-size: 1em; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); opacity: .55; }
.display ol, .display ul { margin: 0; padding: 0; list-style: none; font-size: 3.1vmin; line-height: 1.3; color: var(--creme); }
.display ol { counter-reset: step; }
.display li { padding: 1.3vmin 0; border-top: 1px solid rgba(244, 236, 218, .16); }
.display ol li { counter-increment: step; display: grid; grid-template-columns: 2.2em 1fr; }
.display ol li::before { content: counter(step); font: 500 1.15em/1.15 var(--serif); color: var(--gold-light); }
.display ul li { display: grid; grid-template-columns: 2.2em 1fr; }
.display ul li::before { content: ''; width: .5em; height: .5em; margin-top: .42em; border-radius: 50%; background: var(--gold); }
.display ul strong { grid-column: 2; font-weight: 600; color: var(--gold-light); }
.display ul strong .en { display: inline; margin-left: .5em; font-size: .8em; color: var(--creme); }
.display ul li > span { grid-column: 2; }
/* QR: gold modules straight on the green (Jonas: no white plate). The plate is only a frame:
   its padding is the quiet zone, kept in the background colour and wider than the 4 modules
   the spec asks for (58vmin box, 49 modules: 4.6vmin ≈ 4.5 modules). A fine gold ring
   sits outside it, with soft rounded corners. */
.display .qr { align-self: center; display: grid; justify-items: center; gap: 2.6vmin; width: 58vmin; }
.display .qr .plate { box-sizing: border-box; width: 100%; border-radius: 5vmin; padding: 4.6vmin;
  background: var(--green);
  box-shadow: inset 0 0 0 1px rgba(216, 178, 94, .45), 0 0 0 1.2vmin rgba(216, 178, 94, .06); }
.display .qr.cream .plate { background: var(--creme); box-shadow: 0 0 0 .35vmin rgba(216, 178, 94, .9), 0 0 0 1.3vmin var(--green), 0 0 0 calc(1.3vmin + 1px) rgba(216, 178, 94, .35); }
.display .qr svg { display: block; width: 100%; height: auto; }
.display .qr .scan { margin: 1vmin 0 0; text-align: center; font: 500 3.2vmin/1.2 var(--serif); color: var(--creme); }
.display .qr .scan .en { font: 400 2.3vmin/1.3 var(--sans); }
.display .qr .more { margin: 0; text-align: center; font-size: 1.9vmin; color: var(--creme); opacity: .7; }
.display .qr .more em { font-style: normal; color: var(--gold-light); }
.display .qr .more .en { font-size: .9em; }
/* Portrait or square screens: QR on top, text under it. */
@media (max-aspect-ratio: 5/4) {
  .display .wrap { grid-template-columns: 1fr auto; grid-template-rows: auto auto minmax(0, 1fr); }
  .display .qr { grid-row: 2; grid-column: 1 / -1; justify-self: center; width: 62vmin; }
  .display .main { grid-row: 3; grid-column: 1 / -1; align-self: start; }
}
/* Entrance on the TV (docs/motion.md): content rises in once, the gold line draws, the QR card follows. Then nothing moves. */
.display .main > *, .display .qr { animation: rk-rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.display .main > :nth-child(2) { animation-delay: 80ms; }
.display .main .goldline { transform-origin: left; animation: rk-draw 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both; }
.display .main > :nth-child(3) { animation-delay: 240ms; }
.display .qr { animation-delay: 400ms; }
@media (prefers-reduced-motion: reduce) { .display .main > *, .display .qr, .display .main .goldline { animation: none; } }

/* ── Admin: single screen page (calm layout, details in dialogs) ───── */
.screen-head { margin-bottom: 20px; align-items: flex-start; }
.nowrap { flex-wrap: nowrap; }
.admin-top { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); margin-bottom: 16px; }
.admin-top .card { margin-bottom: 0; }
.shot { display: block; width: 100%; max-height: 220px; object-fit: contain; object-position: left top; border-radius: 8px; border: 1px solid var(--line); background: var(--green); }
.status-table { margin-top: 10px; }
.status-table td { white-space: normal; }
.admin-actions { margin: 0 0 16px; gap: 8px; }
.card.fold { padding: 0; }
.fold > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > span { flex: 1; }
.status-table th { width: 9em; }
.fold > summary h3 { margin: 0; font: 500 1.1rem/1.25 var(--serif); color: var(--green); }
.fold > summary::after { content: '+'; color: var(--gold-text); font-weight: 600; }
.fold[open] > summary::after { content: '–'; }
.fold > :not(summary) { margin-left: 22px; margin-right: 22px; }
.fold > :last-child { margin-bottom: 18px; }
.fold[open] > :not(summary) { animation: rk-fade 200ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.logpre { max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; color: var(--gold-text); font-weight: 600; margin-bottom: 8px; }
.card.danger-zone.row { padding: 16px 22px; background: var(--pastel-rose); }
.danger-box { margin-top: 16px; padding: 12px; border: 1px solid #ead1cc; border-radius: var(--radius); background: var(--pastel-rose); }
.sheet.center { margin: auto; border-radius: var(--radius-lg); max-width: 640px; }
.sheet.center .sheet-body { padding: 20px 22px 24px; }
.form-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 16px; }
@keyframes rk-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  .sheet.center { margin: auto auto 0; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; }
  .admin-actions .btn { flex: 1 1 calc(50% - 8px); }
  .admin-top { grid-template-columns: minmax(0, 1fr); }
  .row.nowrap { flex-wrap: wrap; }
  .row.nowrap > input[type=text] { flex: 1 1 100%; }
  .fold > summary, .card.danger-zone.row { padding-left: 16px; padding-right: 16px; }
  .fold > :not(summary) { margin-left: 16px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fold[open] > :not(summary) { animation: none; } }



/* Narrow phones (flip covers, small screens): short header links, never wrapping. */
.hero-links, .hero .link { white-space: nowrap; }
.hero .link .short { display: none; }
@media (max-width: 420px) {
  .hero .link .long { display: none; }
  .hero .link .short { display: inline; }
  .hero .logo { width: 88px; }
  .hero-links { gap: 10px; }
}

/* Admin: way back to the staff start page */
.site-header .leave-admin { padding: 6px 12px; border: 1px solid rgba(244, 236, 218, .35); border-radius: 999px; color: var(--creme); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.site-header .leave-admin:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── Illustrations (views/illustrations.ts) ──────────────────────────────── */
.ill { display: block; width: 100%; height: auto; }
.display { --ill-line: var(--creme); --ill-accent: var(--gold); --ill-fill: rgba(244, 236, 218, .06); --ill-bg: var(--green); }
.sheet { --ill-line: var(--green); --ill-accent: var(--gold-dark); --ill-fill: var(--pastel-green); --ill-bg: var(--sand); }
.sheet .ill-fig { margin: .4em 0 .8em; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sheet .ill-fig .ill { max-width: 320px; margin: 0 auto; }
/* TV: the share section shows the transmitter next to the text. */
.display .share { display: grid; grid-template-columns: minmax(0, 1fr) 30vmin; column-gap: 4vmin; align-items: center; }
.display .share .kicker { grid-column: 1 / -1; }
.display .share ul { grid-column: 1; grid-row: 2; }
.display .share-ill { grid-column: 2; grid-row: 2; }
/* Several ways to share: tighter list and title so everything fits on one TV screen. */
.display .wrap:has(.share.many) h1 { font-size: 9vmin; }
.display .wrap:has(.share.many) .goldline { margin: 3vmin 0; }
.display .wrap:has(.share.many) .how { gap: 2.4vmin; }
.display .share.many ul { font-size: 2.6vmin; }
/* Three ways: the list takes the whole width and the illustration steps aside. */
.display .share.lots { grid-template-columns: 1fr; }
.display .share.lots .share-ill { display: none; }
.display .share.lots ul { font-size: 2.4vmin; }
.display .share.lots li { padding: .8vmin 0; }
.display .apcode { font: 600 1.15em/1 var(--sans); letter-spacing: .12em; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.control .apcode, .sheet .apcode { font-variant-numeric: tabular-nums; letter-spacing: .12em; color: var(--green); font-size: 1.15em; }
.display .share.many li, .display .wrap:has(.share.many) ol li { padding: 1vmin 0; }
.display .wrap:has(.share.many) ol { font-size: 2.8vmin; }
/* One-time entrance on the TV: plug in, press, waves, picture. Then it stands still. */
.display .ill .dongle { animation: ill-plug 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 700ms both; }
.display .ill .press { transform-box: fill-box; transform-origin: center; animation: ill-press 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 1500ms both; }
.display .ill .waves path { stroke-dasharray: 1; animation: ill-draw 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.display .ill .w1 { animation-delay: 1900ms; } .display .ill .w2 { animation-delay: 2050ms; } .display .ill .w3 { animation-delay: 2200ms; }
.display .ill .tv-pic { animation: ill-on 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 2500ms both; }
@keyframes ill-plug { from { transform: translateX(26px); opacity: 0; } }
@keyframes ill-press { 0% { opacity: .25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.7); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ill-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ill-on { from { opacity: 0; } to { opacity: .9; } }
.sheet .ill .tv-pic { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .display .ill * { animation: none !important; } .display .ill .tv-pic { opacity: .9; } }

/* ── Phone: AI chat (floating button + chat sheet) ─────────────────────── */
.chat-fab { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%;
  border: 0; background: var(--green); color: var(--gold-light); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 28px rgba(22, 38, 28, .35), 0 0 0 1px rgba(216, 178, 94, .35) inset;
  animation: fab-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both; transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.chat-fab .ico { width: 28px; height: 28px; }
.chat-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(216, 178, 94, .55); animation: fab-ring 1600ms cubic-bezier(0.2, 0.7, 0.2, 1) 900ms 1 both; pointer-events: none; }
.chat-fab:active { transform: scale(.94); }
body.chat-on .chat-fab { transform: scale(.6); opacity: 0; pointer-events: none; }
@keyframes fab-in { from { transform: translateY(16px) scale(.6); opacity: 0; } }
@keyframes fab-ring { to { box-shadow: 0 0 0 18px rgba(216, 178, 94, 0); } }
body.control { padding-bottom: 72px; }

dialog.chat { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; height: min(88vh, 780px); max-height: none;
  border-radius: 22px 22px 0 0; background: var(--sand); color: var(--ink); overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
dialog.chat[open] { display: flex; flex-direction: column; transform-origin: 92% 100%; animation: chat-in 340ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
dialog.chat.closing { animation: chat-out 180ms cubic-bezier(0.4, 0, 1, 1) both; }
dialog.chat::backdrop { background: rgba(22, 38, 28, .45); backdrop-filter: blur(2px); animation: fade-in 300ms both; }
@keyframes chat-in { from { transform: translateY(24px) scale(.92); opacity: 0; } }
@keyframes chat-out { to { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (min-width: 600px) { dialog.chat { margin: auto 24px 24px auto; border-radius: 22px; height: min(78vh, 720px); } }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--green); color: var(--creme); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(216, 178, 94, .16); color: var(--gold-light); flex: none; }
.chat-avatar .ico { width: 20px; height: 20px; }
.chat-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.chat-title strong { font: 500 1.15rem var(--serif); }
.chat-title .small { color: rgba(244, 236, 218, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-icon { appearance: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--creme); display: grid; place-items: center; cursor: pointer; }
.chat-icon:hover, .chat-icon:focus-visible { background: rgba(244, 236, 218, .1); }
.chat-icon .ico { width: 20px; height: 20px; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; animation: msg-in 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.msg.me { align-self: flex-end; background: var(--green); color: var(--creme); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.msg.bot.hello { background: transparent; border-style: dashed; color: var(--muted); }
.msg.err { background: var(--pastel-rose); border-color: transparent; color: var(--err); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dark); animation: dot 1.1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.steps { align-self: flex-start; display: grid; gap: 4px; padding: 2px 4px 2px 6px; margin-left: 4px; border-left: 2px solid rgba(216, 178, 94, .45); }
.step { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); animation: msg-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.step .dot { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); flex: none; }
.step.active { color: var(--green); font-weight: 500; }
.step.active .dot { border: 2px solid var(--gold); border-right-color: transparent; animation: rk-spin 700ms linear infinite; }

.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 14px 4px; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chip { appearance: none; flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--green); font: 500 .85rem var(--sans); cursor: pointer; white-space: nowrap; transition: border-color 200ms, transform 120ms; }
.chip:active { transform: scale(.96); }
.chip:hover { border-color: var(--gold); }
dialog.chat.busy .chat-chips { opacity: .4; pointer-events: none; }

.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 6px; }
.chat-input textarea { flex: 1; resize: none; overflow-y: hidden; min-height: 46px; max-height: 120px; padding: 12px 16px; border-radius: 23px; border: 1px solid var(--line); background: #fff; font: 400 1rem/1.35 var(--sans); color: var(--ink); }
.chat-input textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.chat-send { appearance: none; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green); color: var(--gold-light); display: grid; place-items: center; cursor: pointer; transition: transform 120ms, background-color 200ms; }
.chat-send:active { transform: scale(.92); }
.chat-send .ico { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity 200ms, transform 200ms; }
.chat-send .ico:last-child { opacity: 0; transform: scale(.5); }
dialog.chat.busy .chat-send { background: var(--err); color: #fff; }
dialog.chat.busy .chat-send .ico:first-child { opacity: 0; transform: scale(.5); }
dialog.chat.busy .chat-send .ico:last-child { opacity: 1; transform: none; }
.chat-note { margin: 0; padding: 0 16px max(10px, env(safe-area-inset-bottom)); font-size: .72rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .chat-fab, .chat-fab::after, dialog.chat[open], dialog.chat.closing, dialog.chat::backdrop, .msg, .step, .msg.typing i { animation: none !important; }
  .step.active .dot { animation-duration: 2s !important; }
}

/* Signage film (/v/:id) */
body.player { margin: 0; background: #16261C; overflow: hidden; }
body.player video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: contain; background: #16261C; }

/* Browser screen sharing: laptop page (/share/:token) and the TV receiver (/cast/:key) */
.share .cast-app { max-width: 640px; margin: 0 auto; padding: 16px; }
.share .btn.big { min-height: 56px; font-size: 1.1rem; width: 100%; }
.cast-live { display: grid; gap: 12px; }
.cast-live video { width: 100%; aspect-ratio: 16 / 9; background: #16261C; border-radius: 10px; object-fit: contain; }
.cast-live .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3C7A52; margin-right: 4px; vertical-align: middle; }
body.cast-body { margin: 0; background: #16261C; overflow: hidden; }
.cast-tv video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: contain; background: #16261C; }
.cast-wait { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 9vmin; color: #F4ECDA; background: #16261C; }
.cast-wait .logo { width: 22vmin; color: #D8B25E; position: absolute; top: 7vmin; left: 9vmin; }
.cast-wait .logo svg { width: 100%; height: auto; }
.cast-wait .kicker { color: #E7C878; font-size: 2.1vmin; letter-spacing: .16em; margin: 0 0 1.2vmin; }
.cast-wait h1 { font: 500 7vmin/1.05 'Spectral', Georgia, serif; margin: 0; color: #F4ECDA; }
.cast-wait .goldline { width: 12vmin; border: 0; height: .35vmin; background: #D8B25E; margin: 3vmin 0 0; animation: rk-line 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) infinite alternate; transform-origin: left; }
@keyframes rk-line { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
.cast-wait[hidden] { display: none; }
.sheet .cast-here { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; min-height: 52px; }
.sheet .cast-here .ico { width: 22px; height: 22px; }
.share-pick { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.room-card > .kicker + .share-pick { border-top: 0; padding-top: 6px; }
.share-pick h2 { margin: 0 0 6px; font-size: 1.5rem; }
.share-pick .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.share-pick .btn .ico { width: 20px; height: 20px; }
.code-form { display: flex; gap: 10px; margin-top: 16px; }
.login .code-form .btn { width: auto; flex: 0 0 auto; }
.code-form input { flex: 1 1 auto; width: auto; min-width: 7.5em; font: 600 1.3rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-align: center; }

.display .qr .shortlink { margin: 0; text-align: center; font-size: 2.2vmin; color: var(--creme); }
.display .qr .shortlink b { color: var(--gold-light); font-weight: 600; letter-spacing: .02em; }
.display .qr .shortlink .en-inline { opacity: .62; }
.display .qr .shortlink b.link { font-size: 2.8vmin; white-space: nowrap; }
.display .qr .shortlink b.code { font-size: 2.8vmin; letter-spacing: .14em; }
.display .qr .shortlink { line-height: 1.45; }
.display .qr:has(.shortlink) { width: 52vmin; gap: 2.2vmin; }
.short-links { display: grid; gap: 8px; margin-top: 10px; }
.short-links > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.short-links .mono { font-weight: 600; color: var(--green); word-break: break-all; }
