/* RoundUp's stylesheet: the followroom tokens, the design system's component CSS for the
   families RoundUp uses, then RoundUp's own layer. Import it once per app, before the app's CSS.
   The Go web app gets the same thing flattened into one file (scripts/copy-to-server.mjs). */
/* followroom tokens — generated from tokens.json; don't edit by hand.
   Themes: put data-theme on <html> (or any container):
     data-theme="dark"    dark, whatever the system says (also the default with no attribute)
     data-theme="light"   light
     data-theme="system"  follows the device's light / dark setting, and changes with it
   css/theme.js (or followroom.theme / followroomHTML.theme) sets it and remembers the choice. */
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* Dark — the brand's primary theme, and what you get with no data-theme at all */
:root, [data-theme="dark"], [data-theme="system"] {
  --surface-000: #0b0d10;
  --surface-100: #14171c;
  --line: #262b33;
  --ink: #e6e9ee;
  --ink-muted: #8b94a3;
  --signal: #3ee6a8;
  --signal-soft: #0f2a22;
  --on-signal: #0b0d10;
  --amber: #f5b13d;
  --danger: #ff6b6b;
  color-scheme: dark;
}

/* Light — bright rooms and weak projectors */
[data-theme="light"] {
  --surface-000: #f7f8fa;
  --surface-100: #ffffff;
  --line: #dde1e6;
  --ink: #0f1216;
  --ink-muted: #5a6270;
  --signal: #0a7d58;
  --signal-soft: #dff7ee;
  --on-signal: #ffffff;
  --amber: #9a5b00;
  --danger: #c42b2b;
  color-scheme: light;
}

/* System — light when the device is set to light */
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --surface-000: #f7f8fa;
    --surface-100: #ffffff;
    --line: #dde1e6;
    --ink: #0f1216;
    --ink-muted: #5a6270;
    --signal: #0a7d58;
    --signal-soft: #dff7ee;
    --on-signal: #ffffff;
    --amber: #9a5b00;
    --danger: #c42b2b;
    color-scheme: light;
  }
}

/* Theme-independent */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --container: 1200px;
  --measure: 680px;
  --bp-sm: 640px;
  --bp-md: 960px;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Type styles — one class per style in tokens.json */
.fr-type-web-hero { font-family: var(--font-sans); font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.03em; }
.fr-type-web-h2 { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.fr-type-web-h3 { font-family: var(--font-sans); font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.fr-type-web-lead { font-family: var(--font-sans); font-size: 20px; line-height: 32px; font-weight: 400; }
.fr-type-web-body { font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 400; }
.fr-type-stage-title { font-family: var(--font-sans); font-size: 72px; line-height: 76px; font-weight: 600; letter-spacing: -0.02em; }
.fr-type-stage-body { font-family: var(--font-sans); font-size: 36px; line-height: 48px; font-weight: 400; }
.fr-type-join-code { font-family: var(--font-mono); font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: 0.08em; }
.fr-type-display { font-family: var(--font-sans); font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.02em; }
.fr-type-title { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.fr-type-heading { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.fr-type-body { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }
.fr-type-small { font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 400; }
.fr-type-code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
.fr-type-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* The page itself: theme colours and a short cross-fade when the theme changes (not under reduced motion) */
html, [data-theme] { background-color: var(--surface-000); color: var(--ink); } /* a themed container takes its own page colour and text colour */
@media (prefers-reduced-motion: no-preference) {
  html.fr-theme-changing, html.fr-theme-changing * { transition: background-color .2s, border-color .2s, color .2s !important; }
}

/* Generated by scripts/sync-design-system.mjs from the design system's components/bundle.css: the btn, live, tag, card, field, control, pin, check, banner, toast, toaster, dialog, empty, appheader, chip, sync families. Don't edit. */
.fr-btn:focus-visible, .fr-qrcard-refresh:focus-visible, .fr-toast-action:focus-visible, .fr-toast-close:focus-visible, .fr-screenswitch-opt:focus-visible, .fr-sort-handle:focus-visible, .fr-inline-show:focus-visible, .fr-inline-editing:focus-within, .fr-answer:focus-visible, .fr-entry-input:focus-visible, .fr-control:focus-within, .fr-pin-box:focus-visible, .fr-check-input:focus-visible + .fr-check-mark, .fr-toggle:focus-visible, .fr-card:focus-visible, .fr-session:focus-visible, .fr-video:focus-visible, .fr-search:focus-within, .fr-range:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 4px var(--signal);
}
.fr-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: inherit; font-weight: 600; font-size: 14px;
  height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-100); color: var(--ink); cursor: pointer; }
.fr-btn:hover:not(:disabled) { border-color: var(--ink-muted); }
.fr-btn:disabled { cursor: not-allowed; opacity: .45; }
.fr-btn-lg { height: 48px; padding: 0 var(--space-6); font-size: 16px; }
.fr-btn-block { display: flex; width: 100%; }
.fr-btn-primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.fr-btn-primary:hover:not(:disabled) { border-color: var(--ink); }
.fr-btn-quiet { background: transparent; border-color: transparent; }
.fr-btn-quiet:hover:not(:disabled) { background: var(--surface-100); border-color: var(--line); }
.fr-btn-danger { background: transparent; border-color: var(--line); color: var(--danger); }
.fr-btn-danger:hover:not(:disabled) { border-color: var(--danger); }
.fr-btn-destructive { background: var(--danger); border-color: var(--danger); color: var(--on-signal); }
.fr-btn-destructive:hover:not(:disabled) { border-color: var(--ink); }
.fr-btn:has(> .fr-icon:only-child) { width: 36px; padding: 0; }
.fr-live { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.fr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.fr-live-live .fr-live-label { color: var(--signal); }
.fr-live-live .fr-live-dot { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.fr-live-waiting .fr-live-label, .fr-live-paused .fr-live-label, .fr-live-hidden .fr-live-label, .fr-live-blackout .fr-live-label { color: var(--amber); }
.fr-live-waiting .fr-live-dot, .fr-live-paused .fr-live-dot, .fr-live-hidden .fr-live-dot { background: var(--amber); }
.fr-live-blackout .fr-live-dot { background: transparent; border: 1.5px solid var(--amber); width: 6px; height: 6px; border-radius: var(--radius-sm); }
.fr-live-paused .fr-live-dot, .fr-live-hidden .fr-live-dot { border-radius: var(--radius-sm); }
.fr-live-ended .fr-live-dot { background: transparent; border: 1.5px solid var(--ink-muted); width: 5px; height: 5px; }
.fr-live-count { color: var(--ink); padding-left: var(--space-2); border-left: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .fr-live-live .fr-live-dot { animation: fr-pulse 2s ease-in-out infinite; }
  @keyframes fr-pulse { 50% { box-shadow: 0 0 0 5px var(--signal-soft); } }
}
.fr-join-stage .fr-live { font-size: 16px; line-height: 24px; }
.fr-join-stage .fr-live-dot { width: 12px; height: 12px; }
.fr-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 var(--space-1); border-radius: var(--radius-sm); background: var(--surface-100); color: var(--ink-muted); border: 1px solid var(--line); white-space: nowrap; }
.fr-tag-signal { background: var(--signal-soft); color: var(--signal); border-color: transparent; }
.fr-btn.fr-on { color: var(--signal); background: var(--signal-soft); }
.fr-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-2); width: 100%; padding: var(--space-2); text-align: left; font: inherit; color: var(--ink);
  background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; }
.fr-card:hover { border-color: var(--ink-muted); }
.fr-card-selected { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.fr-card-thumb .fr-tag { position: absolute; left: var(--space-2); top: var(--space-2); }
.fr-card-body { display: flex; flex-direction: column; gap: var(--space-1); padding: 0 var(--space-2) var(--space-2); }
.fr-card-title { font-weight: 600; font-size: 16px; line-height: 24px; }
.fr-card-desc { color: var(--ink-muted); font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fr-card-meta { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.fr-media .fr-media-play.fr-btn-lg { width: 56px; height: 56px; padding: 0; }
a.fr-btn { text-decoration: none; }
.fr-tag-soon { margin-left: var(--space-2); vertical-align: 2px; }
.fr-apptile-top .fr-tag-soon { margin-left: 0; }
.fr-sync { display: inline-flex; align-items: center; gap: var(--space-2); vertical-align: middle; }
.fr-sync-ring { display: block; flex: none; }
.fr-sync-base { fill: var(--ink-muted); opacity: .45; }
.fr-sync-on { fill: var(--signal); transition: opacity .4s ease; }
.fr-sync-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.fr-sync:not(.fr-sync-static) .fr-sync-seat:first-child .fr-sync-base { fill: var(--signal); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .fr-sync:not(.fr-sync-static) .fr-sync-seat:first-child .fr-sync-base { fill: var(--ink-muted); opacity: .45; }
  /* determinate: the seat being worked on breathes */
  .fr-sync-next .fr-sync-base { animation: fr-sync-breathe 1.2s ease-in-out infinite; }
  @keyframes fr-sync-breathe { 50% { fill: var(--signal); opacity: .7; } }
  /* orbit: one green seat travels round, with a short fading trail */
  .fr-sync-orbit .fr-sync-base { animation: fr-sync-orbit 1.2s linear infinite; }
  @keyframes fr-sync-orbit { 0%, 10% { fill: var(--signal); opacity: 1; } 30%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-orbit .fr-sync-seat:nth-child(1) .fr-sync-base { animation-delay: -1.20s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(2) .fr-sync-base { animation-delay: -1.05s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(3) .fr-sync-base { animation-delay: -0.90s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(4) .fr-sync-base { animation-delay: -0.75s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(5) .fr-sync-base { animation-delay: -0.60s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(6) .fr-sync-base { animation-delay: -0.45s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(7) .fr-sync-base { animation-delay: -0.30s; }
  .fr-sync-orbit .fr-sync-seat:nth-child(8) .fr-sync-base { animation-delay: -0.15s; }
  /* fill / drain with no progress: a looping demo of the same motion */
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-base, .fr-sync-drain:not(.fr-sync-static) .fr-sync-base { animation-duration: 2.4s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(1) .fr-sync-base { animation-name: fr-sync-fill-1; }
  @keyframes fr-sync-fill-1 { 0%, 4% { fill: var(--ink-muted); opacity: .45; } 7%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(2) .fr-sync-base { animation-name: fr-sync-fill-2; }
  @keyframes fr-sync-fill-2 { 0%, 12% { fill: var(--ink-muted); opacity: .45; } 15%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(3) .fr-sync-base { animation-name: fr-sync-fill-3; }
  @keyframes fr-sync-fill-3 { 0%, 20% { fill: var(--ink-muted); opacity: .45; } 23%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(4) .fr-sync-base { animation-name: fr-sync-fill-4; }
  @keyframes fr-sync-fill-4 { 0%, 28% { fill: var(--ink-muted); opacity: .45; } 31%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(5) .fr-sync-base { animation-name: fr-sync-fill-5; }
  @keyframes fr-sync-fill-5 { 0%, 36% { fill: var(--ink-muted); opacity: .45; } 39%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(6) .fr-sync-base { animation-name: fr-sync-fill-6; }
  @keyframes fr-sync-fill-6 { 0%, 44% { fill: var(--ink-muted); opacity: .45; } 47%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(7) .fr-sync-base { animation-name: fr-sync-fill-7; }
  @keyframes fr-sync-fill-7 { 0%, 52% { fill: var(--ink-muted); opacity: .45; } 55%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-fill:not(.fr-sync-static) .fr-sync-seat:nth-child(8) .fr-sync-base { animation-name: fr-sync-fill-8; }
  @keyframes fr-sync-fill-8 { 0%, 60% { fill: var(--ink-muted); opacity: .45; } 63%, 80% { fill: var(--signal); opacity: 1; } 90%, 100% { fill: var(--ink-muted); opacity: .45; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(1) .fr-sync-base { animation-name: fr-sync-drain-1; }
  @keyframes fr-sync-drain-1 { 0%, 14% { fill: var(--signal); opacity: 1; } 17%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(2) .fr-sync-base { animation-name: fr-sync-drain-2; }
  @keyframes fr-sync-drain-2 { 0%, 22% { fill: var(--signal); opacity: 1; } 25%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(3) .fr-sync-base { animation-name: fr-sync-drain-3; }
  @keyframes fr-sync-drain-3 { 0%, 30% { fill: var(--signal); opacity: 1; } 33%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(4) .fr-sync-base { animation-name: fr-sync-drain-4; }
  @keyframes fr-sync-drain-4 { 0%, 38% { fill: var(--signal); opacity: 1; } 41%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(5) .fr-sync-base { animation-name: fr-sync-drain-5; }
  @keyframes fr-sync-drain-5 { 0%, 46% { fill: var(--signal); opacity: 1; } 49%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(6) .fr-sync-base { animation-name: fr-sync-drain-6; }
  @keyframes fr-sync-drain-6 { 0%, 54% { fill: var(--signal); opacity: 1; } 57%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(7) .fr-sync-base { animation-name: fr-sync-drain-7; }
  @keyframes fr-sync-drain-7 { 0%, 62% { fill: var(--signal); opacity: 1; } 65%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
  .fr-sync-drain:not(.fr-sync-static) .fr-sync-seat:nth-child(8) .fr-sync-base { animation-name: fr-sync-drain-8; }
  @keyframes fr-sync-drain-8 { 0%, 70% { fill: var(--signal); opacity: 1; } 73%, 88% { fill: var(--ink-muted); opacity: .45; } 98%, 100% { fill: var(--signal); opacity: 1; } }
}
.fr-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.fr-field-label { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--ink); }
.fr-field-opt { margin-left: var(--space-2); font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.fr-field-help { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); max-width: 60ch; }
.fr-field-msg { margin: 0; display: flex; gap: var(--space-1); align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--danger); }
.fr-field-msg .fr-icon { margin-top: 2px; }
.fr-field-msg + .fr-field-help { display: none; }
.fr-control { position: relative; display: flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4); box-sizing: border-box;
  background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); }
.fr-control-lg { height: 48px; }
.fr-control:hover { border-color: var(--ink-muted); }
.fr-control-invalid, .fr-control-invalid:hover { border-color: var(--danger); }
.fr-control-disabled { opacity: .45; pointer-events: none; }
.fr-control-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; }
.fr-control-lg .fr-control-input { font-size: 16px; }
.fr-control-input::placeholder { color: var(--ink-muted); opacity: .8; }
.fr-control-affix { flex: none; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.fr-control-count { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.fr-control-number { padding: 0 2px; gap: 0; width: 184px; }
.fr-control-number .fr-control-input { text-align: center; font-family: var(--font-mono); font-size: 15px; }
.fr-control-unit { padding-right: var(--space-2); }
.fr-control-step { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.fr-control-lg .fr-control-step { width: 42px; height: 42px; }
.fr-control-step:hover:not(:disabled) { background: var(--surface-000); }
.fr-control-step:disabled { color: var(--ink-muted); opacity: .5; cursor: not-allowed; }
.fr-control-select { padding: 0; }
.fr-control-select .fr-control-input { -webkit-appearance: none; appearance: none; padding: 0 40px 0 var(--space-4); cursor: pointer; }
.fr-control-select .fr-control-input option { background: var(--surface-100); color: var(--ink); }
.fr-control-chevron { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.fr-pin { display: inline-flex; align-items: center; gap: var(--space-2); }
.fr-pin-box { width: 48px; height: 56px; box-sizing: border-box; text-align: center; padding: 0; font-family: var(--font-mono); font-weight: 500; font-size: 24px; color: var(--ink);
  background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); outline: 0; caret-color: var(--signal); }
.fr-pin-box:hover { border-color: var(--ink-muted); }
.fr-pin-invalid .fr-pin-box { border-color: var(--danger); }
.fr-pin-box:disabled { opacity: .45; }
.fr-pin-reveal { margin-left: var(--space-1); }
.fr-check, .fr-toggle-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.fr-check-box { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; }
.fr-check-input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.fr-check-mark { display: grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ink-muted); border-radius: var(--radius-sm); color: transparent; pointer-events: none; }
.fr-check-input:hover + .fr-check-mark { border-color: var(--ink); }
.fr-check-input:checked + .fr-check-mark { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.fr-check-mark .fr-icon { width: 14px; height: 14px; stroke-width: 2; }
.fr-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fr-check-label { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--ink); cursor: pointer; }
.fr-check-desc { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.fr-check-disabled { opacity: .45; }
.fr-check-disabled * { cursor: not-allowed; }
.fr-stage-top .fr-live { font-size: 1.05cqw; line-height: 1.5cqw; gap: .6cqw; }
.fr-stage-top .fr-live-dot { width: .65cqw; height: .65cqw; }
.fr-stage-top .fr-live-count { padding-left: .6cqw; }
.fr-card-problem { cursor: default; border-style: dashed; border-color: var(--amber); }
.fr-card-problem:hover { border-color: var(--amber); }
.fr-card-thumb-problem { background-image: none; display: grid; place-items: center; }
.fr-card-problem-icon { color: var(--amber); }
.fr-card-problem-icon .fr-icon { width: 28px; height: 28px; }
.fr-card-problem .fr-card-title { color: var(--ink-muted); }
.fr-card-issue { font-size: 13px; line-height: 20px; color: var(--ink); }
.fr-tag-warn { color: var(--amber); border-color: var(--amber); background: transparent; }
.fr-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.fr-card-add { border-style: dashed; background: transparent; }
.fr-card-add:hover { border-color: var(--signal); }
.fr-card-add:hover .fr-card-add-plus { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.fr-card-add-thumb { display: grid; place-items: center; background-color: transparent; }
.fr-card-add-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); border: 1.5px solid var(--ink-muted); color: var(--ink); background: var(--surface-100); transition: background-color .15s ease, color .15s ease; }
.fr-card-add-plus .fr-icon { width: 20px; height: 20px; }
.fr-card-add-over { border-color: var(--signal); border-style: solid; background: var(--signal-soft); }
.fr-card-add-over .fr-card-add-plus { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.fr-card-add-over .fr-card-title { color: var(--signal); }
.fr-library > .fr-card { min-width: 0; }
.fr-card-actions .fr-btn { max-width: 100%; }
.fr-card-actions .fr-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Banner: a full outline in the tone, an icon tile, text — no coloured side stripe */
.fr-banner { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); box-sizing: border-box; background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); }
.fr-banner-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--surface-000); color: var(--ink); }
.fr-banner-icon .fr-icon { width: 18px; height: 18px; }
.fr-banner-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.fr-banner-title { margin: 0; font-weight: 600; font-size: 14px; line-height: 22px; }
.fr-banner-text { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.fr-banner-text p { margin: 0; }
.fr-banner-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.fr-banner-close { margin: -4px -4px 0 0; }
.fr-banner-warning { border-color: var(--amber); }
.fr-banner-warning .fr-banner-icon { color: var(--amber); }
.fr-banner-error { border-color: var(--danger); }
.fr-banner-error .fr-banner-icon { color: var(--danger); }
.fr-banner-success { border-color: var(--signal); }
.fr-banner-success .fr-banner-icon { color: var(--signal); }
.fr-toaster { position: fixed; z-index: 50; left: 50%; bottom: var(--space-6); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--space-2); align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.fr-toaster-inline { position: absolute; }
@media (min-width: 960px) { .fr-toaster:not(.fr-toaster-inline) { left: auto; right: var(--space-6); transform: none; align-items: flex-end; } }
.fr-toast { pointer-events: auto; display: flex; align-items: center; gap: var(--space-2); min-height: 44px; max-width: 440px; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); box-sizing: border-box;
  background: var(--ink); color: var(--surface-000); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
@media (prefers-reduced-motion: no-preference) { .fr-toast { animation: fr-toast-in .18s ease-out; } @keyframes fr-toast-in { from { opacity: 0; transform: translateY(8px); } } }
.fr-toast-icon { flex: none; display: grid; }
.fr-toast-success .fr-toast-icon { color: var(--signal-soft); }
.fr-toast-error { background: var(--danger); color: var(--on-signal); }
.fr-toast-text { flex: 1; padding: var(--space-2) 0; }
.fr-toast-action { flex: none; height: 36px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fr-toast-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; opacity: .7; cursor: pointer; }
.fr-toast-action:hover, .fr-toast-close:hover { background: color-mix(in srgb, currentColor 14%, transparent); opacity: 1; }
.fr-dialog-scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--space-4); background: color-mix(in srgb, var(--surface-000) 78%, transparent); }
.fr-dialog-inline { position: absolute; }
.fr-dialog { width: 100%; max-width: 440px; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6);
  background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (prefers-reduced-motion: no-preference) { .fr-dialog { animation: fr-dialog-in .16s ease-out; } @keyframes fr-dialog-in { from { opacity: 0; transform: translateY(6px); } } }
.fr-dialog-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.fr-dialog-text { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.fr-dialog-text p { margin: 0 0 var(--space-2); }
.fr-dialog-text p:last-child { margin: 0; }
.fr-dialog-word { font-family: var(--font-mono); color: var(--ink); letter-spacing: .06em; }
.fr-dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.fr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); margin: 0 auto; max-width: 420px; padding: var(--space-12) var(--space-6); }
.fr-empty-compact { padding: var(--space-6) var(--space-4); }
.fr-empty-art { width: 64px; height: 64px; margin-bottom: var(--space-4); }
.fr-empty-compact .fr-empty-art { width: 40px; height: 40px; margin-bottom: var(--space-2); }
.fr-empty-seat { fill: var(--ink-muted); opacity: .45; }
.fr-empty-wait { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 2 1.6; }
.fr-empty-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.fr-empty-compact .fr-empty-title { font-size: 16px; line-height: 24px; }
.fr-empty-text { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.fr-empty-text p { margin: 0; }
.fr-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.fr-btn:has(> .fr-uiicon:only-child) { width: 36px; padding: 0; }
/* AppHeader — 48px; the whole bar drags the window, its controls don't */
.fr-appheader { display: flex; align-items: center; gap: var(--space-4); height: 48px; padding: 0 var(--space-4); box-sizing: border-box; overflow: hidden;
  background: var(--surface-100); border-bottom: 1px solid var(--line);
  -webkit-app-region: drag; app-region: drag; -webkit-user-select: none; user-select: none; }
.fr-appheader button, .fr-appheader a, .fr-appheader input, .fr-appheader select { -webkit-app-region: no-drag; app-region: no-drag; }
.fr-appheader-mac { padding-left: 80px; }
.fr-appheader-windows { padding-right: 148px; }
/* the two ends share the spare room equally, so the modes stay centred; the end never shrinks, the context does */
.fr-appheader-id { flex: 1 1 0; display: flex; align-items: center; gap: var(--space-2); min-width: min-content; }
.fr-appheader-id .fr-appicon, .fr-appheader-app { flex: none; }
.fr-appheader-app { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); white-space: nowrap; }
.fr-appheader-context { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font-size: 14px; line-height: 20px;
  padding-left: var(--space-2); margin-left: var(--space-1); border-left: 1px solid var(--line); }
.fr-appheader-modes { flex: none; display: flex; gap: 2px; padding: 2px; background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-md); }
.fr-appheader-mode { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-muted); font: inherit; font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: pointer; }
.fr-appheader-mode:hover:not(:disabled):not(.fr-appheader-mode-on) { color: var(--ink); background: var(--surface-100); }
.fr-appheader-mode-on { color: var(--ink); background: var(--surface-100); border-color: var(--line); cursor: default; }
.fr-appheader-mode:disabled { opacity: .45; cursor: not-allowed; }
.fr-appheader-mode:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 4px var(--signal); }
.fr-appheader-mode-live { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--signal-soft); }
.fr-appheader-end { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); }
.fr-appheader-status { display: flex; align-items: center; gap: var(--space-2); }
.fr-appheader-actions { display: flex; align-items: center; gap: var(--space-1); }
.fr-appheader-actions .fr-btn { height: 32px; }
.fr-appheader-actions .fr-btn:has(> .fr-uiicon:only-child), .fr-appheader-actions .fr-btn:has(> .fr-icon:only-child) { width: 32px; }
.fr-appheader-compact .fr-chip:has(.fr-chip-icon) .fr-chip-text,
.fr-appheader-tight .fr-appheader-mode:has(.fr-uiicon) > span:not(.fr-appheader-mode-live),
.fr-appheader-tight .fr-appheader-end .fr-live-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fr-appheader-nocontext .fr-appheader-context { display: none; }
.fr-appheader-tight .fr-appheader-mode:has(.fr-uiicon) { padding: 0 var(--space-2); }
.fr-appheader-tight .fr-appheader-end .fr-live-count { padding-left: 0; border-left: 0; }
.fr-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 var(--space-2); box-sizing: border-box; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-000); color: var(--ink); font: inherit; white-space: nowrap; }
.fr-chip-button { cursor: pointer; }
.fr-chip-button:hover { border-color: var(--ink-muted); }
.fr-chip-button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 4px var(--signal); }
.fr-chip-icon { color: var(--ink-muted); }
.fr-chip-text { display: inline-flex; align-items: baseline; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fr-chip-label { font-size: 12px; line-height: 16px; font-weight: 600; }
.fr-chip-detail { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); white-space: pre; }
.fr-chip-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); }
.fr-chip-connected .fr-chip-dot { background: var(--signal); }
.fr-chip-missing { border-color: var(--amber); }
.fr-chip-missing .fr-chip-icon, .fr-chip-missing .fr-chip-detail { color: var(--amber); }
.fr-chip-missing .fr-chip-dot { background: var(--amber); border-radius: var(--radius-sm); }
.fr-chip-off { border-style: dashed; color: var(--ink-muted); }
.fr-chip-off .fr-chip-dot { background: transparent; border: 1.5px solid var(--ink-muted); width: 4px; height: 4px; }
.fr-chip-sync { flex: none; }

/* RoundUp's layer on the followroom design system. Element defaults shared by the web app and the
   presenter console (a plain <button> is followroom's secondary button, inputs are its control box),
   and the pieces RoundUp has that the design system doesn't. Only tokens: no colour literals. */

body { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 22px; background: var(--surface-000); color: var(--ink); }
a { color: var(--ink); text-decoration-color: var(--ink-muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1 { margin: 0 0 var(--space-4); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
h2 { margin: 0 0 var(--space-2); font-size: 16px; line-height: 24px; font-weight: 600; }
h3 { margin: var(--space-4) 0 var(--space-2); font-size: 14px; line-height: 22px; font-weight: 600; }
code { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--ink-muted); }
.small { font-size: 12px; line-height: 18px; }
.label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* Buttons: plain is secondary; .primary, .danger (destructive action, outline), .destructive (filled), .quiet */
/* Hovers wrap :hover in :where() so they weigh the same as the defaults they restyle and never outrank a .fr-* component. */
button, .button {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 36px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-100); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
button:where(:hover:not(:disabled)), .button:where(:hover) { border-color: var(--ink-muted); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary, .button.primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
button.primary:where(:hover:not(:disabled)), .button.primary:where(:hover) { border-color: var(--ink); }
button.danger, .button.danger { background: transparent; color: var(--danger); }
button.danger:where(:hover:not(:disabled)) { border-color: var(--danger); }
button.destructive { background: var(--danger); border-color: var(--danger); color: var(--on-signal); }
button.destructive:where(:hover:not(:disabled)) { border-color: var(--ink); }
button.quiet, .button.quiet { background: transparent; border-color: transparent; }
button.quiet:where(:hover:not(:disabled)), .button.quiet:where(:hover) { background: var(--surface-100); border-color: var(--line); }
button.small, .button.small { height: 28px; padding: 0 var(--space-2); font-size: 13px; }
button.big, .button.big { height: 48px; padding: 0 var(--space-6); font-size: 16px; }
button[aria-pressed="true"] { background: var(--signal-soft); border-color: var(--signal); color: var(--signal); }
button[aria-pressed="true"].amber { background: transparent; border-color: var(--amber); color: var(--amber); }

/* Controls: the design system's one box, 40px (48px on phones) */
input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="range"]), select, textarea {
  box-sizing: border-box; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-100); color: var(--ink); font: inherit; font-size: 14px;
}
textarea { padding: var(--space-2) var(--space-4); min-height: 80px; line-height: 22px; }
input:not([type="checkbox"], [type="radio"], [type="file"]):where(:hover), select:where(:hover), textarea:where(:hover) { border-color: var(--ink-muted); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 0.8; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--signal); }
label { display: flex; flex-direction: column; gap: var(--space-2); font-weight: 600; }
label.check { flex-direction: row; align-items: center; font-weight: 400; }
fieldset { margin: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
legend { padding: 0 var(--space-1); font-weight: 600; }
@media (max-width: 640px) {
  input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="range"]), select { min-height: 48px; font-size: 16px; }
}

/* Focus: a 2px signal ring with a 2px page-colour gap, everywhere */
:where(a, button, .button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 4px var(--signal);
}

/* Ask in place: a named action, Cancel focused, the confirm button .danger or .destructive */
.fr-confirm { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--amber); border-radius: var(--radius-md); background: var(--surface-100); }
.fr-confirm p { margin: 0; }
.fr-confirm-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }

/* Lockup: the followroom logo, a line, then the app's name */
.fr-lockup { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; }
.fr-lockup .fr-logo { display: block; height: 18px; width: auto; }
.fr-lockup-app { padding-left: var(--space-2); border-left: 1px solid var(--line); font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.fr-logo-seat { fill: var(--ink-muted); }
.fr-logo-live { fill: var(--signal); }
.fr-logo-word { fill: var(--ink); }

/* Icons sit on the text line */
.fr-icon { flex: none; display: inline-block; vertical-align: -3px; }

/* The sync indicator as a button (SyncIndicator.svelte, and the web Teams list's ring) */
.ru-sync {
  --ru-sync-size: 28px;
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2); height: auto; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font-weight: 400; cursor: pointer;
}
.ru-sync:hover:not(:disabled) { border-color: transparent; }
.ru-sync .fr-sync-ring { width: var(--ru-sync-size); height: var(--ru-sync-size); }
.ru-sync[data-state="pending"] .fr-sync-base { fill: var(--amber); opacity: 0.7; }
.ru-sync[data-state="offline"] .fr-sync-base { fill: none; stroke: var(--ink-muted); stroke-width: 1; opacity: 1; }
.ru-sync[data-state="attention"] .fr-sync-base,
.ru-sync[data-state="error"] .fr-sync-base { fill: var(--danger); opacity: 1; }
.ru-sync__count, .ru-sync__mark {
  position: absolute; left: 0; top: 0; width: var(--ru-sync-size); height: var(--ru-sync-size); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: calc(var(--ru-sync-size) * 0.3); font-weight: 500; line-height: 1; color: var(--ink);
}
.ru-sync__mark { color: var(--danger); font-size: calc(var(--ru-sync-size) * 0.45); }
.ru-sync__text { display: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 720px) { .ru-sync__text { display: inline; } }
.ru-sync:disabled { opacity: 1; cursor: default; }

/* Round progress (RoundRing.svelte): segments in line, done in ink, the live dot in signal */
.rr-ring { --rr-ring-size: 32px; position: relative; display: inline-grid; place-items: center; width: var(--rr-ring-size); aspect-ratio: 1; color: var(--ink); }
.rr-ring > svg { grid-area: 1 / 1; width: 100%; height: 100%; overflow: visible; }
.rr-ring__seg { fill: none; stroke: var(--line); stroke-linecap: round; }
.rr-ring__seg.is-done { stroke: var(--ink); }
.rr-ring__dot { fill: var(--signal); opacity: 0; }
.rr-ring[data-live] .rr-ring__dot { opacity: 1; }
.rr-ring__label { grid-area: 1 / 1; font-family: var(--font-mono); font-weight: 500; font-size: calc(var(--rr-ring-size) * 0.36); line-height: 1; }

/* A segmented choice built from radio buttons (Settings › Appearance) */
.ru-segmented { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-000); }
.ru-segmented label { position: relative; flex-direction: row; gap: 0; }
.ru-segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ru-segmented span { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.ru-segmented input:checked + span { background: var(--surface-100); border-color: var(--line); color: var(--ink); }
.ru-segmented input:focus-visible + span { box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 4px var(--signal); }

@media (prefers-reduced-motion: reduce) {
  .ru-sync .fr-sync-base { animation: none !important; }
}

