/* The run-of-show clock's own rules, loaded after tokens.css and shell.css.

   The clock and the caller's console are stage screens: near black with a teal cast, off-white
   text (never pure white, so a phone backstage does not glow into the hall), huge tabular numbers,
   and colour only where it means something. The help page (/help) keeps the internal shell's light
   reading look, because it is read before the show, not in the dark.

   The attention scale on the Now card: calm (no colour), the last minute (gold, "Last minute"),
   over time (red, slow pulse, "Over time"), hold (grey dashes, "Hold"). The words always say what
   the colour says. */

:root {
  --st-bg: #0A1115;
  --st-bar: #0D161B;
  --st-card: #101B21;
  --st-card-2: #13222A;
  --st-line: #1F2E37;
  --st-line-2: #2A3B46;
  --st-text: #DCE5EA;
  --st-soft: #B9C7CF;
  --st-muted: #8FA3AF;
  --st-gold: var(--ybb-warm-gold);
  --st-gold-soft: var(--gold-300);
  --st-red: #FF6B6B;
  --st-red-bg: #2A0B0E;
  --st-red-bg-2: #4A1015;
  --st-red-line: #E5484D;
  --st-live: #6CC39A;
}

/* ---- the stage pages ---- */
html:has(body.stage-page) { background: var(--st-bg); }
body.stage-page {
  background: var(--st-bg);
  color: var(--st-text);
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent;
}
html[data-dim="1"] body.stage-page { filter: brightness(0.72); }
html[data-dim="2"] body.stage-page { filter: brightness(0.45); }
.stage-page h1, .stage-page h2, .stage-page h3 { color: var(--st-text); }
.stage-page a { color: var(--st-gold-soft); }
.stage-page :focus-visible { outline: 3px solid var(--st-gold); outline-offset: 3px; border-radius: 6px; }
.stage-page ::selection { background: var(--gold-700); color: var(--ybb-white); }
.stage-page .skip { color: var(--teal-900); }

/* The bar: the mark, whether this screen is in step, the show clock; then the screen's settings. */
.sbar { background: var(--st-bar); border-bottom: 1px solid var(--st-line); }
.sbar-top { display: flex; align-items: center; gap: 8px 14px; padding: 6px 12px 2px; }
.sbar-mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--st-text); text-decoration: none; font-weight: var(--weight-semibold); font-size: 1.1rem; }
.stage-page .sbar-mark { color: var(--st-text); }
.sbar-mark { flex: 0 0 auto; }
.sbar-mark img { height: 44px; width: 64px; flex: 0 0 auto; opacity: 0.85; }
.sync { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--st-line-2); color: var(--st-soft); font-size: 0.875rem; white-space: nowrap; }
.sync .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-muted); }
.sync[data-status="live"] .dot { background: var(--st-live); }
.sync[data-status="offline"] { border-color: var(--gold-600); color: var(--st-gold-soft); font-weight: var(--weight-semibold); }
.sync[data-status="offline"] .dot { background: var(--st-gold); }
.wall-wrap { margin-left: auto; }
.wall { font-size: 1.125rem; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--st-text); }
.wall[data-rehearsal="yes"] { color: var(--st-gold-soft); }
.sbar-row { display: flex; gap: 8px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; }
.sbar-row::-webkit-scrollbar { display: none; }
.sbtn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 16px;
  background: transparent; color: var(--st-text); border: 1px solid rgba(220, 229, 234, 0.35); border-radius: 100px;
  font: inherit; font-size: 0.9375rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.stage-page a.sbtn { color: var(--st-text); }
.sbtn:hover { border-color: var(--st-gold-soft); }
.sbtn[hidden], .stage-page .button[hidden] { display: none; }
.sbtn[aria-pressed="true"] { border-color: var(--st-gold); color: var(--st-gold-soft); font-weight: var(--weight-semibold); }
.sbtn-quiet { border-color: transparent; color: var(--st-soft); }
#wake[data-state="on"] { color: var(--st-muted); cursor: default; }
#wake[data-state="off"] { border-color: rgba(220, 229, 234, 0.35); }

.stage { max-width: 1440px; margin: 0 auto; padding: 12px 12px 48px; }
.note { margin: 8px 12px 0; padding: 8px 14px; border-radius: 10px; background: var(--st-card); color: var(--st-gold-soft); font-size: 0.9375rem; }
.noscript { padding: 24px; }

/* Banners: hold, rehearsal, offline. Hold is the loudest thing on the page, on purpose. */
.banners { display: grid; gap: 8px; }
.banners:has(.banner:not([hidden])) { margin-bottom: 12px; }
.banner { margin: 0; padding: 10px 16px; border-radius: 12px; font-size: 1rem; line-height: 1.4; }
.banner[hidden] { display: none; }
.banner-hold { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; background: var(--st-gold); color: var(--teal-900); font-weight: var(--weight-semibold); }
.hold-word { font-size: clamp(2.5rem, 10vw, 4.5rem); font-weight: var(--weight-bold); letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.banner-rehearsal { border: 2px dashed var(--gold-600); color: var(--st-gold-soft); background: var(--st-card); font-weight: var(--weight-semibold); }
.banner-offline { background: #2A2008; color: var(--st-gold-soft); border: 1px solid var(--gold-700); }

/* Now and Next. One column on a phone held upright; side by side when there is width. */
.cards { display: grid; gap: 12px; }
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  .cards { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
}
.card { background: var(--st-card); border: 2px solid var(--st-line); border-radius: 18px; padding: 14px 18px 16px; min-width: 0; }
.card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 32px; }
.card .eyebrow { margin: 0; font-size: 0.875rem; font-weight: var(--weight-semibold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-muted); }
.state-word:empty, .you[hidden] { display: none; }
.state-word, .you { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 100px; font-size: 0.875rem; font-weight: var(--weight-semibold); }
.you { background: var(--st-card-2); color: var(--st-gold-soft); border: 1px solid var(--gold-600); }
.card .title { margin: 6px 0 2px; font-size: clamp(1.5rem, 5.2vw, 2.6rem); font-weight: var(--weight-semibold); line-height: 1.15; letter-spacing: -0.01em; color: var(--st-text); text-wrap: balance; overflow-wrap: break-word; }
.card .who { margin: 0 0 4px; font-size: clamp(1.0625rem, 2.6vw, 1.375rem); color: var(--st-soft); }
.card .who:empty { display: none; }
.count { margin: 4px 0 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.count[hidden] { display: none; }
.digits { font-size: clamp(5rem, 25vw, 11.5rem); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; line-height: 0.95; letter-spacing: -0.03em; color: var(--st-text); }
.digits[data-len="7"], .digits[data-len="8"] { font-size: clamp(3.75rem, 17vw, 8.5rem); }
.digits[data-len="6"] { font-size: clamp(4.25rem, 20vw, 10rem); }
.unit { font-size: clamp(1.125rem, 3vw, 1.5rem); color: var(--st-soft); }
.progress { height: 10px; border-radius: 10px; background: var(--st-line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--teal-300); border-radius: 10px; transition: width 0.25s linear; }
.now[data-phase="before"] .progress, .now[data-phase="after"] .progress, .now[data-phase="gap"] .progress { display: none; }
.card .meta { margin: 8px 0 0; font-size: 0.9375rem; color: var(--st-muted); }
.card .meta:empty { display: none; }
.cues { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 1rem; }
.cues:empty { display: none; }
.cues dt { color: var(--st-muted); }
.cues dd { margin: 0; color: var(--st-text); overflow-wrap: anywhere; }

/* The last minute: gold, and the word. */
.now[data-level="warn"] { border-color: var(--st-gold); }
.now[data-level="warn"] .digits { color: var(--st-gold); }
.now[data-level="warn"] .progress span { background: var(--st-gold); }
.now[data-level="warn"] .state-word { background: var(--st-gold); color: var(--teal-900); }
/* Over time: red, a slow pulse (once every two seconds, well under any flash threshold), the word. */
.now[data-level="over"] { border-color: var(--st-red-line); background: var(--st-red-bg); animation: over 2s ease-in-out infinite; }
.now[data-level="over"] .digits { color: var(--st-red); }
.now[data-level="over"] .progress span { background: var(--st-red-line); }
.now[data-level="over"] .state-word { background: #C62828; color: var(--ybb-white); }
@keyframes over { 50% { background: var(--st-red-bg-2); } }
/* Hold: frozen. Grey dashes, the word. */
.now[data-level="hold"] { border-style: dashed; border-color: var(--teal-400); }
.now[data-level="hold"] .digits { color: var(--st-muted); }
.now[data-level="hold"] .state-word { background: var(--st-gold); color: var(--teal-900); }

.next .when { margin-left: auto; font-size: clamp(1.0625rem, 2.8vw, 1.375rem); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; color: var(--st-text); }
.next .title { font-size: clamp(1.375rem, 4.4vw, 2.2rem); }
.ready { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ready:empty { display: none; }
.ready li { padding: 8px 12px; border-left: 4px solid var(--st-gold); background: var(--st-card-2); border-radius: 0 10px 10px 0; color: var(--st-gold-soft); font-size: clamp(1.0625rem, 2.6vw, 1.3rem); font-weight: var(--weight-medium); }
.then { margin: 12px 0 0; color: var(--st-muted); font-size: 0.9375rem; }
.then[hidden] { display: none; }

/* The whole night as one thin line: each segment a block, the done ones faint, a white line at now. */
.night-wrap { margin: 14px 2px 6px; }
.night { position: relative; height: 12px; border-radius: 6px; background: var(--st-card); }
.night-track { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; }
.nb { position: absolute; top: 0; bottom: 0; background: var(--st-line-2); border-right: 1px solid var(--st-bg); }
.nb-done { background: #18252C; }
.nb-now { background: var(--teal-300); }
.nb-next { background: #5C7889; }
.nb-mine { box-shadow: inset 0 -4px 0 var(--st-gold); }
.night-now { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--st-text); border-radius: 2px; }
.night-line { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 0; font-size: 0.875rem; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.night-status { text-align: center; }
.night-status[data-level="1"] { color: var(--st-gold-soft); }
.night-status[data-level="2"] { color: var(--st-gold); font-weight: var(--weight-semibold); }

/* The list. */
.list { margin-top: 18px; }
.list-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list h2 { margin: 0; font-size: 1.125rem; }
.quiet, .earlier {
  min-height: var(--tap); padding: 0 14px; background: transparent; color: var(--st-soft);
  border: 1px solid var(--st-line-2); border-radius: 100px; font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.quiet[hidden], .earlier[hidden] { display: none; }
.earlier { display: flex; width: 100%; align-items: center; justify-content: center; margin: 10px 0 4px; border-style: dashed; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.row { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 12px 10px; border-top: 1px solid var(--st-line); }
.row:first-child { border-top: 0; }
.r-time { font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); color: var(--st-soft); }
.r-main { display: flex; flex-direction: column; min-width: 0; }
.r-title { font-weight: var(--weight-medium); color: var(--st-text); overflow-wrap: break-word; }
.r-who { color: var(--st-muted); font-size: 0.9375rem; }
.r-shift { color: var(--st-gold-soft); font-size: 0.875rem; }
.r-tag { font-size: 0.8125rem; font-weight: var(--weight-semibold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-muted); }
.row.is-now { background: var(--st-card-2); border-radius: 12px; box-shadow: inset 4px 0 0 var(--teal-300); border-top-color: transparent; }
.row.is-now + .row { border-top-color: transparent; }
.row.is-now .r-tag { color: var(--teal-200); }
.row.is-next { box-shadow: inset 4px 0 0 #5C7889; }
.row.is-done, .row.is-cut { opacity: 0.45; }
.row.is-cut .r-title { text-decoration: line-through; }
.row.is-mine .r-time { color: var(--st-gold); }
.row-empty { display: block; color: var(--st-muted); }

/* The caller's rows are buttons; one opens to show what can be done with that segment. */
.row:has(.row-toggle) { display: block; padding: 0; }
.row-toggle {
  display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; width: 100%;
  min-height: 52px; padding: 12px 10px; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px;
}
.row-toggle:hover { background: var(--st-card); }
.row-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 14px calc(4.75rem + 22px); }

/* The silent cue alert: a banner and the screen's edge pulsing gold three times. */
.cue-alert { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 0; padding: 14px 16px; background: var(--st-gold); color: var(--teal-900); font-size: clamp(1.125rem, 3vw, 1.5rem); line-height: 1.35; }
.cue-alert[hidden] { display: none; }
.cue-alert p { margin: 0; flex: 1 1 16rem; }
.cue-alert .sbtn { color: var(--teal-900); border-color: var(--teal-900); font-weight: var(--weight-semibold); }
body.cue-flash::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; box-shadow: inset 0 0 0 0 var(--st-gold); animation: cueflash 1.4s ease-in-out 3; }
@keyframes cueflash { 50% { box-shadow: inset 0 0 0 14px var(--st-gold); } }

/* The My cues sheet. */
.sheet { width: min(30rem, calc(100vw - 24px)); padding: 20px 22px; background: var(--st-card); color: var(--st-text); border: 1px solid var(--st-line-2); border-radius: 18px; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); }
.sheet h2 { margin: 0 0 8px; color: var(--st-text); }
.sheet p { color: var(--st-soft); }
.sheet label { display: block; margin: 8px 0 6px; font-weight: var(--weight-semibold); }
.sheet select, .stage-page select, .stage-page input[type="text"], .stage-page input[type="password"], .stage-page input[type="url"], .stage-page input[type="date"], .stage-page input[type="time"] {
  width: 100%; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--st-line-2);
  background: var(--st-bg); color: var(--st-text); font: inherit; font-size: 1.0625rem; color-scheme: dark;
}
.sheet-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sheet-btn { min-height: 52px; padding: 0 20px; border-radius: 12px; font: inherit; font-weight: var(--weight-semibold); cursor: pointer; border: 2px solid var(--st-gold); }
.sheet-quiet { background: transparent; color: var(--st-text); border-color: var(--st-line-2); }

/* Buttons on the dark pages: the shell's quiet button turned for a dark background. */
.stage-page .button { background: transparent; color: var(--st-text); border-color: var(--teal-300); }
.stage-page .button:hover { background: var(--st-card-2); color: var(--st-text); }
.stage-page .button:disabled { background: transparent; border-color: var(--st-line-2); color: var(--st-muted); }

@media (max-width: 420px) {
  .sbar-mark span:not(.visually-hidden) { display: none; }
  .row, .row-toggle { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 2px 10px; }
  .row-acts { padding-left: 10px; }
}
/* A phone on its side: everything a step smaller so Now, Next and the countdown fit the height. */
@media (orientation: landscape) and (max-height: 500px) {
  .sbar { display: flex; align-items: center; }
  .sbar-top { flex: 0 0 auto; padding: 4px 4px 4px 12px; }
  .sbar-row { flex: 1 1 auto; padding: 4px 12px 4px 4px; }
  .sbar-row .sbtn-quiet[href] { display: none; }
  .stage { padding-top: 8px; }
  .banner { padding: 6px 14px; }
  .hold-word { font-size: 2.25rem; }
  .card .who { font-size: 1rem; }
  .card .meta { display: none; }
  .card { padding: 10px 14px; }
  .card .title { font-size: 1.375rem; }
  .digits { font-size: clamp(4rem, 15vw, 7rem); }
  .digits[data-len="7"], .digits[data-len="8"] { font-size: clamp(3rem, 10vw, 5rem); }
  .cues { font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .now[data-level="over"] { animation: none; background: var(--st-red-bg-2); }
  body.cue-flash::after { animation: none; box-shadow: inset 0 0 0 10px var(--st-gold); }
}

/* ---- the caller's console ---- */
.console { display: grid; gap: 12px; margin: 12px 0 0; }
.ctl { background: var(--st-card); border: 2px solid var(--st-line); border-radius: 18px; padding: 14px; }
.ctl h2 { margin: 0 0 10px; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-muted); }
.ctl-main { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ctl-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.go {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-height: 88px; padding: 12px 18px;
  border-radius: 16px; border: 2px solid var(--st-gold); background: var(--st-gold); color: var(--teal-900);
  font: inherit; font-size: 1.375rem; font-weight: var(--weight-bold); text-align: left; cursor: pointer;
}
.go small { font-size: 0.9375rem; font-weight: var(--weight-medium); }
.go:active { background: var(--gold-600); }
.hold-btn {
  width: 100%; min-height: 88px; border-radius: 16px; border: 3px solid var(--st-gold); background: transparent; color: var(--st-gold-soft);
  font: inherit; font-size: 1.75rem; font-weight: var(--weight-bold); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.hold-btn[aria-pressed="true"] { background: var(--st-card-2); border-style: dashed; color: var(--st-text); letter-spacing: 0.02em; text-transform: none; font-size: 1.375rem; }
.ctl-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
@media (min-width: 640px) { .ctl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ctl-grid .button, .ctl-more .button { min-height: 60px; font-size: 1.0625rem; width: 100%; }
.ctl-more { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.ctl-more[hidden] { display: none; }
.ctl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; color: var(--st-muted); font-size: 0.9375rem; }
.ctl-foot .button { min-height: var(--tap); }
.ctl-foot output { flex: 1 1 14rem; }
.toast { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 70; max-width: min(36rem, calc(100vw - 24px)); padding: 12px 18px; border-radius: 12px; background: var(--st-text); color: var(--st-bg); font-weight: var(--weight-medium); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.toast[hidden] { display: none; }
.toast[data-kind="error"] { background: #C62828; color: var(--ybb-white); }
.offline-note { margin: 0 0 10px; color: var(--st-gold-soft); font-weight: var(--weight-semibold); }
.offline-note[hidden] { display: none; }

/* Settings, behind one disclosure, each group a step apart. */
.settings { margin-top: 24px; border-top: 1px solid var(--st-line); padding-top: 8px; }
.settings > summary { color: var(--st-text); min-height: 52px; font-size: 1.125rem; }
.settings > summary:hover { color: var(--st-gold-soft); }
.group { padding: 16px 0 20px; border-bottom: 1px solid var(--st-line); }
.group h3 { margin: 0 0 6px; font-size: 1.0625rem; color: var(--st-text); }
.group p { color: var(--st-soft); max-width: 44rem; }
.group label { display: block; margin: 12px 0 6px; font-weight: var(--weight-medium); }
.fields { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 52rem; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 6px; font-weight: var(--weight-medium); padding: 0; }
.choice label { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); margin: 0; padding: 0 16px; border: 1px solid var(--st-line-2); border-radius: 12px; cursor: pointer; font-weight: var(--weight-regular); }
.choice label:has(input:checked) { border-color: var(--st-gold); color: var(--st-gold-soft); font-weight: var(--weight-semibold); }
.choice input { width: 20px; height: 20px; accent-color: var(--st-gold); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preview { margin-top: 14px; max-height: 24rem; overflow: auto; border: 1px solid var(--st-line); border-radius: 12px; }
.preview[hidden] { display: none; }
.preview table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.preview th, .preview td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--st-line); vertical-align: top; }
.preview th { position: sticky; top: 0; background: var(--st-card-2); color: var(--st-soft); font-weight: var(--weight-semibold); }
.msgs { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.msgs li { padding: 8px 12px; border-radius: 10px; background: var(--st-card-2); }
.msgs .err { border-left: 4px solid var(--st-red-line); }
.msgs .warn { border-left: 4px solid var(--st-gold); }
.signin { max-width: 26rem; margin: 10vh auto 0; padding: 0 8px; }
.signin h1 { font-size: 1.75rem; color: var(--st-text); }
.signin p { color: var(--st-soft); }
.signin .err { color: var(--st-red); font-weight: var(--weight-semibold); min-height: 1.5em; }
.signin .button-primary { width: 100%; min-height: 56px; margin-top: 14px; font-size: 1.0625rem; }

/* ---- the help page (light, the internal shell's reading look) ---- */
.help-page main { max-width: 46rem; margin: 0 auto; padding-left: var(--shell-pad); padding-right: var(--shell-pad); }
.help-page .lede { margin-bottom: var(--space-5); }
.film { margin: 0 0 var(--space-6); }
.film video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--teal-900); }
.film figcaption { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--fs-meta); }
.help-page h2 { margin-top: var(--space-7); }
.help-page ol li, .help-page ul li { margin-bottom: var(--space-2); }
.share { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); align-items: center; padding: var(--space-5); background: var(--ybb-white); border: var(--panel-edge); border-radius: var(--radius); }
@media (min-width: 640px) { .share { grid-template-columns: 12rem minmax(0, 1fr); } }
.share img { width: 12rem; height: 12rem; }
.share p { margin: 0 0 var(--space-2); }
.link-big { font-size: 1.25rem; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.keys dt { font-weight: var(--weight-semibold); color: var(--text-heading); }
.keys dd { margin: 0; }
.swatch { display: inline-block; width: 0.9em; height: 0.9em; margin-right: 6px; border-radius: 3px; vertical-align: -0.1em; }
.sw-calm { background: var(--teal-300); }
.sw-warn { background: var(--ybb-warm-gold); }
.sw-over { background: #E5484D; }
.sw-hold { background: transparent; border: 2px dashed var(--teal-400); }
@media print {
  .film, .team-header .th-tag, .skip { display: none; }
  .help-page main { max-width: none; }
  .help-page h2 { margin-top: var(--space-5); break-after: avoid; }
  .share { break-inside: avoid; }
}
