:root {
  color-scheme: light;
  --paper: #f6f5f2;
  --white: #fff;
  --panel: #fff;
  --on-accent: #fff;
  --on-ink: #fff;
  --ink: #20252b;
  --muted: #515b63;
  --subtle: #626c74;
  --line: #e2e5e7;
  --control-line: #828c94;
  --surface-muted: #f0f2f3;
  --surface-hover: #f5f6f7;
  --surface-pressed: #e8ecef;
  --accent: #25634d;
  --accent-hover: #194d3b;
  --action: var(--accent);
  --action-hover: var(--accent-hover);
  --accent-soft: #eaf3ee;
  --accent-line: #9bb8a9;
  --felt: #193e33;
  --felt-edge: #132e27;
  --felt-line: #769487;
  --dark-bg: #181b1f;
  --dark-surface: #22262b;
  --dark-raised: #2a3036;
  --dark-line: #444d55;
  --dark-control-line: #78838d;
  --dark-text: #fbfcfd;
  --dark-muted: #c3cbd3;
  --dark-accent: #9dc4b1;
  --danger: #8c3029;
  --danger-soft: #fff3f1;
  --danger-line: #e1b9b4;
  --danger-hover: #f8e1dd;
  --warning: #68471b;
  --warning-soft: #fbf4e8;
  --warning-line: #e7d7bd;
  --radius: 16px;
  --shadow: 0 2px 10px #20252b08;
  --shadow-elevated: 0 15px 44px #20252b29;
  --shadow-mock: 0 24px 48px #20252b36;
  font-family: "DM Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181b1f;
  --panel: #22262b;
  --on-ink: #181b1f;
  --ink: #f3f5f6;
  --muted: #bec6ce;
  --subtle: #a1adb7;
  --line: #3a424a;
  --control-line: #78838d;
  --surface-muted: #2b3137;
  --surface-hover: #2b3238;
  --surface-pressed: #35404a;
  --accent: #9dc4b1;
  --accent-hover: #b5d6c5;
  --action: #35735b;
  --action-hover: #3b7e65;
  --accent-soft: #283d33;
  --accent-line: #537563;
  --danger: #f0aaa2;
  --danger-soft: #422b2b;
  --danger-line: #86534e;
  --danger-hover: #513332;
  --warning: #e8c993;
  --warning-soft: #3c3122;
  --warning-line: #78613d;
  --shadow: 0 2px 10px #0000001f;
  --shadow-elevated: 0 15px 44px #00000066;
  --shadow-mock: 0 24px 48px #00000070;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
img, svg { display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icon { width: 1.14em; height: 1.14em; flex: 0 0 auto; }
.skip { position: fixed; top: -100px; left: 16px; background: var(--panel); border-radius: 6px; padding: 10px; z-index: 20; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.wrap { width: min(100% - 80px, 1280px); margin: 0 auto; }
.standalone { padding: 65px 0; min-height: 64vh; }
.eyebrow { font-weight: 800; font-size: .69rem; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; color: var(--subtle); }
.subhead { color: var(--muted); max-width: 61ch; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.48rem; font-weight: 820; letter-spacing: -.06em; white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--ink); color: var(--on-ink); }
.brand-mark .icon { width: 21px; height: 21px; }
.brand-period { color: var(--accent); }

.button { border: 1px solid transparent; border-radius: 10px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; font-size: .86rem; font-weight: 730; line-height: 1.25; white-space: nowrap; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button:is(.primary, .lime) { background: var(--action); color: var(--on-accent); }
.button:is(.primary, .lime):hover { background: var(--action-hover); }
.button:is(.secondary, .dark-button, .outline-light) { background: var(--panel); border-color: var(--line); color: var(--ink); }
.button:is(.secondary, .dark-button, .outline-light):hover { border-color: var(--control-line); background: var(--surface-hover); }
.button.tonal { background: var(--surface-muted); color: var(--ink); }
.button.tonal:hover { background: var(--surface-pressed); }
.button.danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.button.danger:hover { background: var(--danger-hover); }
.button.quiet { background: transparent; color: var(--muted); }
.button.quiet:hover { color: var(--danger); background: var(--danger-soft); }
.button:disabled { background: var(--surface-muted); border-color: var(--line); color: var(--subtle); pointer-events: none; }
.bare-icon { border: 0; background: transparent; color: var(--ink); width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; display: inline-grid; place-items: center; }
.bare-icon:hover:not(:disabled) { background: var(--surface-muted); }
.bare-icon:disabled { opacity: .35; }
.square-icon, .small-square { display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--surface-muted); color: var(--muted); }
.square-icon { width: 47px; height: 47px; font-size: 1.18rem; }
.small-square { width: 34px; height: 34px; border-radius: 8px; font-size: .98rem; }
.badge { display: inline-flex; align-items: center; width: max-content; gap: 6px; padding: 4px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-muted); font-size: .72rem; font-weight: 740; line-height: 1.42; white-space: nowrap; }
.badge i, .workspace-access i, .clock-live i, .eyebrow i, .preview-top i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge.draft { background: var(--warning-soft); color: var(--warning); }
.badge.running { background: var(--accent-soft); color: var(--accent); }

.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header nav, .site-actions { display: flex; align-items: center; gap: clamp(14px, 3vw, 35px); }
.site-header nav a, .site-actions > a:not(.button), .site-footer > a:not(.brand) { text-decoration: none; font-size: .88rem; font-weight: 700; }
.site-header a:hover:not(.button, .brand), .site-footer > a:not(.brand):hover { text-decoration: underline; }
.theme-picker { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; margin: 0; color: var(--muted); font-size: .75rem; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.theme-picker select[data-theme-choice] { width: 104px; min-height: 36px; padding: 6px 7px; border-color: var(--line); font-size: .78rem; cursor: pointer; }
.theme-picker select[data-theme-choice]:hover { border-color: var(--control-line); }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 565px; border-radius: 27px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--panel); padding: clamp(24px, 5.1vw, 79px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 29px; }
.hero-kicker i { color: var(--accent); }
.hero h1 { font-size: clamp(3.35rem, 6.55vw, 6.85rem); font-family: "Instrument Serif", "Georgia", serif; line-height: .94; font-weight: 500; letter-spacing: -.078em; text-wrap: nowrap; color: var(--ink); }
.hero h1 em { color: var(--muted); font-weight: 500; }
.hero-copy > p:not(.hero-kicker) { margin-top: 25px; max-width: 33ch; color: var(--muted); font-size: clamp(.96rem, 1.35vw, 1.12rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 15px; font-size: .78rem; font-weight: 620; }
.hero-note .icon { color: var(--accent); }
.hero-scene { min-height: 390px; position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; background: var(--paper); color: var(--dark-text); }
.scene-ring { position: absolute; width: 125%; aspect-ratio: 1.52; border: 1px solid var(--line); border-radius: 50%; z-index: -1; transform: rotate(-23deg); }
.scene-ring.ring-b { width: 102%; }
.scene-ring.ring-c { width: 78%; }
.hero-display { width: min(78%, 490px); margin: -36px 35px 0 0; padding: clamp(16px, 3vw, 34px); border: 1px solid var(--dark-line); border-radius: 20px; background: var(--dark-bg); box-shadow: var(--shadow-mock); transform: rotate(-5deg); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: clamp(.52rem, .8vw, .65rem); font-weight: 800; letter-spacing: .11em; color: var(--dark-muted); }
.preview-top span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.preview-top i { color: var(--dark-accent); }
.preview-clock { text-align: center; font-weight: 760; line-height: 1.02; letter-spacing: -.055em; font-variant-numeric: tabular-nums; font-size: clamp(4.1rem, 8.5vw, 7.7rem); padding-right: .055em; color: var(--dark-text); margin-top: 22px; white-space: nowrap; }
.preview-blinds { display: flex; justify-content: center; align-items: baseline; gap: 9px; color: var(--dark-text); font-size: clamp(.97rem, 2.25vw, 1.86rem); margin: 5px 0 22px; }
.preview-blinds span, .preview-foot span { font-size: .55rem; font-weight: 790; letter-spacing: .11em; color: var(--dark-muted); }
.preview-meter { background: var(--dark-line); height: 4px; overflow: hidden; border-radius: 10px; }
.preview-meter i { display: block; width: 66%; height: 100%; background: var(--dark-accent); }
.preview-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.preview-foot > div { display: grid; }
.preview-foot strong { color: var(--dark-text); font-size: clamp(.62rem, 1.55vw, 1.05rem); white-space: nowrap; }
.preview-foot small { color: var(--dark-muted); font-size: .64em; }
.hero-phone { position: absolute; bottom: 12%; right: 7%; transform: rotate(12deg); width: clamp(98px, 10vw, 138px); height: clamp(155px, 16vw, 200px); border: 5px solid var(--dark-bg); border-radius: 24px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; align-items: center; }
.phone-camera { background: var(--dark-bg); width: 31px; height: 6px; border-radius: 10px; margin: 6px auto 14px; }
.phone-brand { font-size: .68rem; font-weight: 850; }
.phone-brand .icon { width: .9em; color: var(--accent); }
.phone-brand span { color: var(--accent); }
.phone-sound { margin: 14px auto 2px; font-size: .35rem; font-weight: 900; letter-spacing: .07em; color: var(--muted); }
.hero-phone > strong { font-size: clamp(1.28rem, 2.4vw, 2.15rem); letter-spacing: -.08em; line-height: 1; }
.phone-toolbar { display: flex; gap: 3px; margin-top: 12px; }
.phone-toolbar span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; font-size: .55rem; background: var(--surface-muted); }
.phone-toolbar span:nth-child(2) { background: var(--action); color: var(--on-accent); }
.scene-chip { position: absolute; border-radius: 50%; border: 2px dashed var(--dark-muted); display: grid; place-items: center; box-shadow: var(--shadow-elevated); color: var(--dark-text); background: var(--dark-raised); font-size: 1.36rem; width: 49px; height: 49px; }
.scene-chip-one { top: 11%; right: 10%; transform: rotate(-19deg); }
.scene-chip-two { bottom: 15%; left: 8%; width: 43px; height: 43px; transform: rotate(12deg); background: var(--panel); color: var(--muted); border-color: var(--control-line); }
.landing-sequence { padding: 85px 0 70px; scroll-margin-top: 25px; }
.landing-section-head { display: grid; gap: 13px; margin-bottom: 27px; }
.landing-section-head h2, .landing-cta h2 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -.055em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.feature { border: 1px solid var(--line); border-radius: 15px; background: var(--panel); padding: clamp(17px, 2.8vw, 32px); }
.feature h3 { margin-top: 20px; font-size: 1.14rem; }
.feature p { margin: 8px 0 0; font-size: .92rem; color: var(--muted); max-width: 38ch; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 58px); border-radius: 24px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.landing-cta .eyebrow { margin: 0 0 11px; }
.landing-cta p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.landing-cta > div + div { display: grid; gap: 13px; text-align: center; }
.landing-cta > div + div > a:not(.button) { color: var(--accent); font-size: .84rem; }
.landing-cta .button.outline-light { background: var(--panel); border-color: var(--control-line); color: var(--ink); }
.landing-cta .button.outline-light:hover { background: var(--surface-hover); color: var(--ink); }
.site-footer { padding: 34px 0; display: flex; align-items: center; gap: 22px; color: var(--muted); }
.site-footer > span { margin-right: auto; font-size: .8rem; }
.site-footer .brand { color: var(--ink); }
.auth-main { margin-top: 34px; max-width: 980px; min-height: 570px; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.auth-art { min-height: 250px; background: var(--paper); display: grid; place-items: center; padding: 30px; overflow: hidden; position: relative; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border: 1px solid var(--line); width: 125%; height: 58%; transform: rotate(-22deg); border-radius: 50%; }
.auth-art::after { width: 110%; height: 50%; }
.auth-art-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; font-family: "Instrument Serif", Georgia, serif; line-height: .93; font-size: clamp(2rem, 6vw, 4.5rem); color: var(--ink); letter-spacing: -.07em; text-align: center; }
.auth-art-inner em { color: var(--muted); }
.auth-card { padding: clamp(27px, 6vw, 74px); align-self: center; }
.auth-card h1 { font-size: clamp(2rem, 4.3vw, 3.12rem); letter-spacing: -.06em; margin: 10px 0; }
.auth-card form { margin-top: 23px; }
.auth-extra { color: var(--muted); margin-top: 17px; font-size: .84rem; }
.auth-extra a { color: var(--accent); font-weight: 800; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--panel); padding: 25px 16px 16px; border-right: 1px solid var(--line); }
.sidebar-brand { padding: 0 8px 24px; }
.sidebar-divider { height: 1px; background: var(--line); flex: 0 0 auto; }
.nav-label { margin: 21px 10px 10px; font-size: .63rem; font-weight: 820; letter-spacing: .12em; color: var(--subtle); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a, .nav-button { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 680; min-height: 43px; }
.sidebar nav a[aria-current] { color: var(--accent); background: var(--accent-soft); font-weight: 790; }
.sidebar nav a[aria-current] i { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sidebar nav a:not([aria-current]):hover, .nav-button:hover { background: var(--surface-hover); }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.sidebar-bottom .theme-picker { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 12px; }
.sidebar-bottom .theme-picker select[data-theme-choice] { width: 99px; }
.nav-button { background: transparent; border: 0; width: 100%; text-align: start; }
.sidebar-bottom .sidebar-divider { margin: 11px 0 12px; }
.profile { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px; text-decoration: none; }
.profile:hover { background: var(--surface-hover); }
.avatar, .seat-avatar { border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-pressed); color: var(--ink); font-size: .78rem; width: 34px; height: 34px; font-weight: 800; flex: 0 0 auto; }
.profile-copy { min-width: 0; display: grid; margin-right: auto; }
.profile-copy strong { font-size: .76rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.profile-copy small { color: var(--muted); font-size: .69rem; }
.profile > .icon { font-size: .75rem; color: var(--muted); }
.mobile-head { display: none; }
.mobile-head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.workspace-body { min-width: 0; }
.workspace-top { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px clamp(20px, 4vw, 58px); border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .86rem; }
.workspace-top > span { display: flex; align-items: center; gap: 9px; }
.workspace-top a { text-decoration: none; }
.workspace-top a:hover { text-decoration: underline; }
.workspace-top > span .icon { width: .81em; }
.workspace-top strong { color: var(--ink); }
.workspace-access { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--muted); background: var(--panel); font-size: .76rem; font-weight: 740; white-space: nowrap; }
.workspace-access.expired { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-line); }
.workspace-content { max-width: 1440px; padding: 35px clamp(20px, 4vw, 58px) 65px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(2.15rem, 4vw, 3.47rem); letter-spacing: -.067em; font-weight: 770; overflow-wrap: anywhere; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading .subhead { margin-top: 8px; font-size: .94rem; }
.heading-actions, .section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.heading-actions { flex-shrink: 0; }
.heading-actions:empty { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .83rem; font-weight: 730; text-decoration: none; margin-bottom: 15px; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 1.28rem; letter-spacing: -.035em; }
.section-head h3 { font-size: 1.09rem; }
.section-head h3 small, h3 small { color: var(--muted); font-size: .68em; font-weight: 650; margin-left: 5px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 5px; font-size: .84rem; }
.section-head .eyebrow { margin-bottom: 5px; }
.demo-banner, .subtle-banner, .notice, .connection-warning { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 11px; margin: 0 0 18px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .85rem; }
.demo-banner > .icon, .subtle-banner > .icon, .notice > .icon, .connection-warning > .icon { min-width: 20px; min-height: 20px; }
.demo-banner > div, .subtle-banner > div { flex: 1; }
.demo-banner p, .subtle-banner p { font-size: .78rem; }
.demo-banner strong, .subtle-banner strong { color: var(--ink); }
.notice.error { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.connection-warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(235px, 1fr); gap: 15px; }
.focus-empty { min-height: 260px; position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; padding: clamp(21px, 3.4vw, 45px); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.focus-empty > div:first-child { z-index: 1; max-width: 60%; }
.focus-empty .eyebrow { color: var(--accent); display: flex; align-items: center; gap: 8px; }
.focus-empty h2 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2rem, 4.35vw, 3.5rem); letter-spacing: -.055em; line-height: .99; font-weight: 500; margin-top: 8px; }
.focus-empty p:not(.eyebrow) { color: var(--muted); margin: 10px 0 16px; font-size: .88rem; max-width: 35ch; }
.table-motif { position: absolute; width: 52%; height: 91%; right: -18%; top: 4%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-26deg); background: var(--surface-hover); color: var(--subtle); display: grid; place-items: center; }
.table-motif::before, .table-motif::after { content: ""; position: absolute; inset: 13px; border: 1px solid var(--line); border-radius: 50%; }
.table-motif::after { inset: 26px; }
.table-motif span { transform: rotate(26deg); font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1; opacity: .56; padding-right: 20%; }
.activity-card { padding: 20px; }
.activity-card .section-head { margin-bottom: 9px; }
.activity-stat { display: flex; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; gap: 10px; }
.activity-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-stat > div { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; width: 100%; }
.activity-stat span:not(.small-square) { color: var(--muted); font-size: .8rem; }
.activity-stat strong { font-size: 1.08rem; color: var(--ink); }
.tournament-list { margin-top: 17px; }
.tournament-list > .section-head, .league-detail .panel > .section-head, .results-panel .section-head, .feedback-list > .section-head { padding: 20px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .86rem; color: var(--muted); }
th { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); background: var(--surface-hover); text-align: left; }
th, td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tbody tr:hover { background: var(--surface-hover); }
td strong { color: var(--ink); }
.row-title, .row-chevron { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.row-title:hover, .row-chevron:hover { color: var(--accent); text-decoration: underline; }
.row-chevron { min-width: 28px; min-height: 30px; justify-content: center; }
.empty { padding: 36px 20px; text-align: center; display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.empty .square-icon { margin-bottom: 3px; }
.empty h2 { color: var(--ink); font-size: 1.22rem; letter-spacing: -.03em; }
.empty p { font-size: .84rem; max-width: 56ch; }
.empty .button { margin-top: 6px; }
.league-grid, .account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.league-card, .account-card { padding: 22px; }
.league-card h2, .account-card h2 { font-size: 1.37rem; margin: 11px 0 6px; overflow-wrap: anywhere; }
.league-card p, .account-card p { color: var(--muted); font-size: .88rem; }
.account-card .section-actions { margin-top: 16px; }
.league-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .36fr); gap: 14px; align-items: start; }
.points-card ol { list-style: none; margin: 0; padding: 0 20px 12px; }
.points-card li, .billing-details > div { display: flex; justify-content: space-between; gap: 13px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.league-history { margin-top: 14px; }
.league-history .section-head { padding: 15px 20px; }
.league-history ul { list-style: none; margin: 0; padding: 0; }
.league-history li { border-top: 1px solid var(--line); }
.league-history a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 10px 20px; font-size: .84rem; text-decoration: none; }
.league-history a:hover { background: var(--surface-hover); }
.league-history a:focus-visible { outline-offset: -3px; }
.league-history time { color: var(--muted); }
.rank { width: 27px; height: 27px; background: var(--surface-muted); color: var(--ink); border-radius: 7px; display: inline-grid; place-items: center; font-weight: 750; }
.billing-details { margin: 14px 0; }
.billing-details dt { color: var(--muted); font-weight: 640; }
.billing-details dd { margin: 0; text-align: end; font-weight: 710; }
.billing-note { margin: 13px 0 25px; font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 900px; }
.price-card { padding: clamp(20px, 3.8vw, 36px); }
.price-card.featured { border-color: var(--accent-line); }
.price-card:not(.featured) .button.primary { background: var(--panel); border-color: var(--control-line); color: var(--ink); }
.price-card:not(.featured) .button.primary:hover { background: var(--surface-hover); }
.price-card .eyebrow { margin-bottom: 13px; }
.price-top { display: flex; align-items: start; justify-content: space-between; gap: 7px; }
.price-top .badge { margin-top: -5px; background: var(--accent-soft); color: var(--accent); }
.price { font-weight: 820; line-height: 1.1; font-size: clamp(2.12rem, 5.7vw, 3.8rem); letter-spacing: -.075em; }
.price span { color: var(--muted); font-size: .29em; font-weight: 680; letter-spacing: normal; }
.price-card > p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: .83rem; }
.price-card ul { margin: 21px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li { display: flex; gap: 7px; align-items: center; font-size: .88rem; }
.price-card li .icon { color: var(--subtle); }
.faq { max-width: 900px; padding: 20px; }
.faq h2 { font-size: 1.28rem; margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; font-size: .89rem; }
.faq details p { color: var(--muted); padding-top: 5px; max-width: 76ch; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric { display: grid; gap: 3px; padding: 14px; }
.metric span { font-size: .76rem; color: var(--muted); }
.metric strong { font-size: 1.4rem; }
.feedback-item { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; }
.feedback-item > div { overflow-wrap: anywhere; }
.feedback-item form { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; min-width: 175px; }
.feedback-item select { min-height: 42px; }
.feedback-item form .form-note { width: 100%; }
.feedback-item p, .feedback-item small { color: var(--muted); font-size: .82rem; }

.stack-form, .form-grid { display: grid; gap: 13px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
label:not(.button) { font-size: .84rem; font-weight: 710; display: grid; gap: 5px; color: var(--ink); }
label small { font-size: .68rem; color: var(--muted); font-weight: 620; }
input:not([type=checkbox], [type=file]), select, textarea { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--control-line); border-radius: 8px; padding: 8px 11px; color: var(--ink); background: var(--panel); }
input::placeholder, textarea::placeholder { color: var(--subtle); }
textarea { resize: vertical; line-height: 1.48; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.field-help { font-size: .78rem; font-weight: 550; color: var(--muted); }
.form-note { color: var(--danger); font-size: .84rem; font-weight: 660; }
.form-note:empty { display: none; }
.form-note:not(:empty) { margin: 0 0 5px; }
.form-note[data-success=true] { color: var(--accent); }
.check-label { display: inline-flex !important; align-items: center; white-space: nowrap; min-height: 38px; }
.dialog-inner { padding: clamp(18px, 4vw, 27px); display: grid; gap: 13px; }
dialog { width: min(100% - 25px, 530px); max-width: none; max-height: calc(100dvh - 25px); padding: 0; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-elevated); }
dialog::backdrop { background: color-mix(in srgb, var(--dark-bg) 65%, transparent); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.dialog-head h2 { font-size: 1.6rem; letter-spacing: -.05em; padding: 6px 0; overflow-wrap: anywhere; }
.dialog-inner > p { color: var(--muted); font-size: .91rem; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.toast { position: fixed; bottom: 16px; right: max(16px, env(safe-area-inset-right)); max-width: calc(100% - 32px); background: var(--dark-surface); color: var(--dark-text); box-shadow: var(--shadow-elevated); padding: 12px 15px; border-radius: 10px; font-size: .9rem; z-index: 10; }
.wizard-progress { display: flex; gap: clamp(6px, 2vw, 21px); list-style: none; margin: 0 0 17px; padding: 0; flex-wrap: wrap; }
.wizard-progress li { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.wizard-progress li > span { display: grid; place-items: center; border: 1px solid var(--control-line); border-radius: 50%; width: 25px; height: 25px; font-size: .72rem; }
.wizard-progress li[aria-current] { color: var(--ink); }
.wizard-progress li[aria-current] > span { border-color: var(--action); background: var(--action); color: var(--on-accent); }
.wizard { max-width: 920px; }
.wizard-body { padding: clamp(16px, 3vw, 28px); }
.wizard-body h2 { font-size: 1.48rem; letter-spacing: -.04em; }
.wizard-body > .subhead { margin: 5px 0 18px; font-size: .87rem; }
.wizard > .form-note:not(:empty) { margin: 0 clamp(16px, 3vw, 28px) 10px; }
.wizard-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 13px clamp(16px, 3vw, 28px); }
.setup-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(16px, 4vw, 36px); }
.inline-input { display: flex; gap: 6px; margin: 10px 0; }
.inline-input input { flex: 1; }
.setup-player { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.setup-player label { flex: 1; }
.setup-player .button.quiet { padding-inline: 7px; }
.setup-player .button.quiet span { display: none; }
.setup-tables { margin: 10px 0; display: grid; gap: 9px; }
.setup-table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(50px, 80px) 30px; align-items: end; gap: 7px; }
.setup-table .bare-icon { width: 30px; }
.setup-players { max-height: 385px; overflow-y: auto; padding: 3px; margin: 5px -3px; }
.league-player-select { margin: 14px 0 8px; }
.empty-copy { color: var(--muted); padding: 10px 0; font-size: .83rem; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.structure-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 14px; }
.structure-top label { min-width: 150px; }
.structure-top .field-help { padding: 0 0 9px 4px; }
.level-editor { display: grid; gap: 5px; margin-bottom: 12px; }
.level-labels, .level-edit-row { display: grid; grid-template-columns: minmax(60px, 1fr) minmax(48px, .65fr) repeat(3, minmax(56px, .8fr)) 29px; gap: 6px; align-items: center; }
.level-labels { font-size: .72rem; color: var(--muted); font-weight: 700; }
.level-edit-row { font-size: .82rem; }
.level-edit-row .bare-icon { width: 29px; }
.level-edit-row input { padding-inline: 6px; }
.form-section { border-top: 1px solid var(--line); padding: 17px 0 0; margin-top: 17px; }
.form-section .form-grid { margin-top: 9px; }
.form-section h3 { font-size: 1.08rem; }
.form-section > .field-help { margin-top: 5px; }
.setup-overview { display: grid; grid-template-columns: 47px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 21px; }
.setup-overview h2 { font-size: 1.54rem; letter-spacing: -.045em; margin-top: 7px; }
.setup-overview p { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.setup-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 11px; font-size: .78rem; color: var(--muted); }
.setup-summary span { display: inline-flex; align-items: center; gap: 4px; }
.setup-start { align-self: center; display: grid; justify-items: end; gap: 5px; }
.setup-start small { color: var(--muted); font-size: .72rem; }
.controller-strip { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 13px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; color: var(--muted); font-size: .8rem; min-height: 43px; }
.controller-strip > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.controller-strip strong { color: var(--ink); }
.controller-strip .button { min-height: 33px; padding: 5px 10px; }
.running-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); column-gap: 13px; }
.running-layout .structure-panel { grid-column: 2; grid-row: 1; }
.running-layout > .live-stats, .running-layout > .section-space { grid-column: 1 / -1; }
.mobile-live-links { display: none; }
.clock-display { --clock-text: var(--ink); --clock-muted: var(--muted); --clock-accent: var(--accent); --clock-track: var(--surface-pressed); --clock-outline: var(--line); position: relative; overflow: hidden; padding: 19px clamp(15px, 3vw, 29px) 19px; min-width: 0; border-radius: var(--radius); color: var(--clock-text); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.clock-display-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--clock-muted); text-transform: uppercase; letter-spacing: .1em; font-size: .71rem; font-weight: 800; }
.clock-live { display: inline-flex; align-items: center; gap: 7px; }
.clock-live i { color: var(--clock-accent); }
.clock-level-meta { display: grid; text-align: end; }
.clock-level-meta small { font-size: .75em; font-weight: 680; letter-spacing: normal; text-transform: none; }
.clock-level-meta small:empty { display: none; }
.clock-display-mid { position: relative; display: grid; justify-content: center; align-content: center; flex: 1; padding: 11px 0 14px; text-align: center; }
.clock-time { font-variant-numeric: tabular-nums; font-weight: 760; font-size: clamp(4.3rem, 9vw, 8rem); line-height: .97; letter-spacing: -.055em; padding-right: .055em; white-space: nowrap; margin: 0 auto; }
.clock-blind-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.clock-blind-row p { font-size: clamp(1.3rem, 3vw, 2.38rem); color: var(--clock-text); font-weight: 770; letter-spacing: -.055em; }
.clock-blind-row span { max-width: 100%; overflow-wrap: anywhere; color: var(--clock-muted); font-size: .76rem; border: 1px solid var(--clock-outline); border-radius: 99px; padding: 4px 8px; }
.clock-blind-row span:empty { display: none; }
.clock-progress { display: block; appearance: none; border: 0; border-radius: 999px; overflow: hidden; width: 100%; height: 5px; background: var(--clock-track); color: var(--clock-accent); }
.clock-progress::-webkit-progress-bar { background: var(--clock-track); }
.clock-progress::-webkit-progress-value { background: var(--clock-accent); }
.clock-progress::-moz-progress-bar { background: var(--clock-accent); }
.clock-up-next { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: var(--clock-muted); font-size: .82rem; padding-top: 8px; }
.clock-up-next > span { flex: 0 0 auto; }
.clock-up-next strong { min-width: 0; text-align: end; overflow-wrap: anywhere; color: var(--clock-text); }
.clock-controls { display: flex; justify-content: space-between; gap: 7px; margin-top: 16px; }
.clock-controls .button { flex: 1 1 0; }
.clock-controls .button.lime { flex-grow: 1.25; }
.structure-panel { overflow: hidden; min-width: 0; }
.structure-panel > .section-head { padding: 16px; }
.structure-panel > ol { max-height: 262px; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.structure-panel li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 3px 14px; min-height: 42px; }
.structure-panel li.current { background: var(--surface-hover); box-shadow: inset 3px 0 var(--accent); }
.structure-panel li > div { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); font-size: .84rem; }
.structure-panel li > div span { color: var(--muted); overflow-wrap: anywhere; }
.structure-panel li .bare-icon { width: 32px; height: 32px; }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.live-stats > div { display: flex; align-items: center; gap: 10px; padding: 12px; }
.live-stats > div > div { display: grid; gap: 1px; }
.live-stats > div > div > span { color: var(--muted); font-size: .76rem; }
.live-stats strong { font-size: 1.26rem; letter-spacing: -.025em; line-height: 1.18; }
.live-stats strong small, .tv-stats strong small { color: var(--muted); font-size: .64em; }
.section-space { margin: 22px 0 0; }
.section-head-out { margin-bottom: 10px; align-items: center; }
.table-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.poker-table-card { padding: 14px; }
.felt-table { display: grid; place-items: center; height: 72px; position: relative; background: var(--felt); border: 4px solid var(--felt-edge); border-radius: 999px; margin: 10px auto; color: var(--dark-muted); width: min(88%, 330px); }
.felt-table::before { content: ""; inset: 4px 7px; position: absolute; border: 1px solid var(--felt-line); border-radius: inherit; }
.felt-logo { display: grid; justify-items: center; gap: 1px; font-weight: 800; }
.felt-logo small { font-size: .43rem; letter-spacing: .14em; text-transform: uppercase; }
.seats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; gap: 4px; }
.seats-grid > li { display: flex; gap: 4px; align-items: center; min-height: 39px; border: 1px dashed var(--line); border-radius: 7px; min-width: 0; }
.seats-grid > li[draggable=true] { cursor: grab; background: var(--surface-hover); border-style: solid; }
.seats-grid > li.drag-target { border: 2px solid var(--accent); background: var(--accent-soft); }
.seats-grid .seat-index { color: var(--subtle); padding: 0 0 0 6px; font-size: .67rem; width: 16px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.seat-empty { color: var(--muted); font-size: .76rem; padding: 2px 4px; }
.player-token { min-width: 0; height: 39px; padding: 4px 5px 4px 0; border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 710; text-align: left; border-radius: 7px; }
.player-token span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-token:hover:not(:disabled) { text-decoration: underline; }
.player-token:disabled { color: var(--muted); }
.seat-avatar { width: 20px; height: 20px; font-size: .59rem; }
.player-token small { color: var(--ink); background: var(--surface-pressed); border-radius: 9px; padding: 1px 3px; font-size: .62rem; }
.player-pool { margin-top: 11px; padding: 11px; }
.player-pool h3 { font-size: .88rem; margin-bottom: 7px; }
.player-pool > div { display: flex; flex-wrap: wrap; gap: 5px; }
.player-pool .player-token { background: var(--surface-hover); padding: 4px 7px; height: 35px; }
.player-pool .player-token.eliminated { background: var(--surface-muted); }
.player-pool .eliminated .seat-avatar { background: var(--surface-pressed); color: var(--muted); }
.history-panel { margin-top: 15px; padding: 0 13px; }
.history-panel summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: .85rem; font-weight: 720; }
.history-panel summary span { margin-left: auto; font-size: .72rem; color: var(--muted); }
.history-panel ol { list-style: none; padding: 0; margin: 0; max-height: 410px; overflow-y: auto; }
.history-panel li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .78rem; }
.history-panel li time { color: var(--muted); text-align: right; }
.saved-results { margin-top: 15px; padding: 16px; }
.saved-results h2 { font-size: 1.14rem; }
.saved-results p { font-size: .85rem; color: var(--muted); margin: 6px 0 10px; }
.results-panel .section-head { align-items: center; }
.results-panel .section-head .badge { margin-bottom: 7px; }
.table-footer { padding: 13px 20px; border-top: 1px solid var(--line); }
.result-order, .move-plan { list-style: none; padding: 0; margin: 0; max-height: min(48vh, 410px); overflow-y: auto; }
.result-order li { display: grid; grid-template-columns: 27px minmax(0, 1fr) 38px 38px; align-items: center; gap: 6px; padding: 2px 1px; border-top: 1px solid var(--line); font-size: .85rem; }
.order-up .icon { transform: rotate(-90deg); }
.order-down .icon { transform: rotate(90deg); }
.move-plan li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.share-dialog { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 13px; align-items: center; }
.share-dialog img { background: var(--white); padding: 5px; border-radius: 8px; border: 1px solid var(--line); width: 100%; height: auto; }
.share-dialog p { font-size: .83rem; color: var(--muted); margin-bottom: 9px; }
.share-dialog .section-actions { margin-top: 8px; }
.tv-mode { background: var(--dark-bg); }
.tv-page { position: relative; display: flex; flex-direction: column; min-height: 100dvh; background: var(--dark-bg); color: var(--dark-text); color-scheme: dark; }
.tv-header { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 13px; padding: clamp(12px, 2dvh, 22px) clamp(14px, 4vw, 65px); color: var(--dark-muted); }
.tv-title { text-align: center; font-size: clamp(.96rem, 3vw, 2rem); font-weight: 710; line-height: 1.18; text-wrap: balance; overflow-wrap: anywhere; color: var(--dark-text); }
.tv-brand { display: flex; align-items: center; gap: 5px; font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 810; letter-spacing: -.06em; }
.tv-brand > span:last-child { margin-left: -5px; color: var(--dark-accent); }
.tv-brand .brand-mark { margin-right: 3px; background: var(--dark-raised); color: var(--dark-text); }
.tv-fullscreen { justify-self: end; width: 39px; height: 39px; display: grid; place-items: center; background: var(--dark-surface); color: var(--dark-text); border: 1px solid var(--dark-control-line); border-radius: 8px; }
.tv-fullscreen:hover { background: var(--dark-raised); }
.tv-page :focus-visible { outline-color: var(--dark-accent); }
.tv-main { display: flex; flex: 1; flex-direction: column; width: min(92%, 1450px); margin: 0 auto; padding: 0 0 1.6dvh; }
.tv-main .connection-warning { margin: 0 0 8px; font-size: clamp(.77rem, 2vw, 1rem); }
.tv-clock { --clock-text: var(--dark-text); --clock-muted: var(--dark-muted); --clock-accent: var(--dark-accent); --clock-track: var(--dark-line); --clock-outline: var(--dark-control-line); flex: 1; overflow: visible; padding: 0 0 1.6dvh; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.tv-clock .clock-display-top { font-size: clamp(.78rem, 2.1vw, 1.8rem); }
.tv-clock .clock-live i { width: clamp(7px, 1vw, 14px); height: clamp(7px, 1vw, 14px); }
.tv-clock .clock-display-mid { padding: clamp(7px, 2dvh, 22px) 0 clamp(6px, 1.8dvh, 20px); }
.tv-clock .clock-time { font-size: min(27vw, 38dvh, 26rem); }
.tv-clock .clock-blind-row { margin-top: 1vh; gap: 2vw; }
.tv-clock .clock-blind-row p { font-size: clamp(1.5rem, min(7vw, 9dvh), 6rem); line-height: 1.12; }
.tv-clock .clock-blind-row span { font-size: clamp(.84rem, 2vw, 2rem); padding: .15em .45em; }
.tv-clock .clock-progress { height: clamp(5px, 1vh, 10px); }
.tv-clock .clock-up-next { font-size: clamp(.87rem, 2.1vw, 1.9rem); padding-top: 1.5vh; }
.tv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: 12px; }
.tv-stats > div { text-align: center; padding: 1vh 2vw; min-width: 0; }
.tv-stats > div + div { border-left: 1px solid var(--dark-line); }
.tv-stats > div > div { display: grid; }
.tv-stats > div span { color: var(--dark-muted); font-size: clamp(.64rem, 1.65vw, 1.6rem); }
.tv-stats strong { font-size: clamp(1.2rem, 4vw, 4.1rem); line-height: 1.1; letter-spacing: -.055em; }
.tv-stats strong small { color: var(--dark-muted); }

@media (max-width: 1050px) {
  .wrap { width: min(100% - 44px, 1280px); }
  .hero { min-height: 480px; }
  .hero-copy { padding: clamp(23px, 4.2vw, 48px); }
  .workspace { grid-template-columns: 183px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .sidebar-brand { padding-inline: 5px; }
  .running-layout { grid-template-columns: minmax(0, 1.35fr) minmax(195px, 1fr); }
}

@media (max-width: 780px) {
  .wrap { width: min(100% - 32px, 1280px); }
  .site-header { min-height: 67px; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: clamp(24px, 6vw, 47px); }
  .hero h1 { font-size: clamp(3.65rem, 11vw, 6.25rem); }
  .hero-scene { min-height: clamp(290px, 65vw, 438px); }
  .hero-display { width: min(72%, 450px); margin: -16px 24px 0 0; }
  .preview-clock { font-size: clamp(3.7rem, 13vw, 7rem); margin-top: 12px; }
  .hero-phone { right: 11%; bottom: 9%; }
  .landing-sequence { padding: 43px 0; }
  .landing-section-head { margin-bottom: 15px; }
  .auth-main { margin-top: 16px; grid-template-columns: .66fr 1fr; min-height: 500px; }
  .workspace { display: block; }
  .sidebar { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 3px 12px 12px; }
  .nav-open .sidebar { display: flex; }
  .sidebar-brand, .nav-label, .sidebar > .sidebar-divider, .sidebar ~ .workspace-body .workspace-top > span { display: none; }
  .sidebar nav { gap: 2px; }
  .sidebar-bottom { padding-top: 4px; }
  .mobile-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 61px; padding: 8px 15px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .mobile-head .theme-picker { gap: 4px; font-size: .7rem; }
  .mobile-head .theme-picker select[data-theme-choice] { width: 94px; }
  .mobile-head .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .mobile-head .brand-mark .icon { width: 17px; height: 17px; }
  .mobile-head .brand { font-size: 1.27rem; }
  .workspace-top { min-height: 0; padding: 0 15px; justify-content: flex-end; border-bottom: 0; background: transparent; }
  .workspace-top .workspace-access { margin-top: 9px; padding-block: 3px; }
  .workspace-content { padding: 18px 15px 40px; }
  .page-heading { margin-bottom: 17px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(198px, 1fr); gap: 10px; }
  .focus-empty { min-height: 228px; }
  .activity-card { padding: 13px; }
  .clock-time { font-size: clamp(4.7rem, 13vw, 7.2rem); }
}

@media (max-width: 570px) {
  .wrap { width: calc(100% - 24px); }
  .site-header { flex-wrap: wrap; gap: 12px; padding-block: 13px; }
  .site-actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
  .site-actions .theme-picker { margin-right: auto; gap: 5px; font-size: .72rem; }
  .site-actions .theme-picker select[data-theme-choice] { width: 94px; }
  .site-actions .button { min-height: 38px; padding: 7px 10px; }
  .site-header .brand { font-size: 1.29rem; gap: 6px; }
  .site-header .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .site-header .brand-mark .icon { width: 17px; height: 17px; }
  .site-actions > a:not(.button) { font-size: .8rem; }
  .hero { border-radius: 18px; }
  .hero h1 { font-size: clamp(3.1rem, 13vw, 4.7rem); }
  .hero-kicker { margin-bottom: 15px; }
  .hero-copy > p:not(.hero-kicker) { margin-top: 15px; }
  .hero-actions { margin-top: 16px; }
  .hero-note { font-size: .71rem; }
  .hero-scene { min-height: clamp(230px, 71vw, 340px); }
  .hero-display { width: 78%; margin: -16px 17px 0 0; padding: 12px; border-radius: 14px; }
  .preview-clock { font-size: clamp(3.2rem, 15vw, 6rem); }
  .preview-blinds { margin-bottom: 11px; }
  .hero-phone { width: 78px; height: 123px; border-width: 4px; border-radius: 15px; right: 7%; bottom: 9%; }
  .phone-camera { margin-bottom: 6px; }
  .phone-sound { margin-top: 7px; }
  .phone-toolbar { margin-top: 7px; }
  .phone-toolbar span { width: 15px; height: 15px; }
  .scene-chip { width: 34px; height: 34px; font-size: .95rem; }
  .scene-chip-two { left: 6%; }
  .feature-grid, .price-grid, .league-grid, .account-grid, .league-detail { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; padding: 13px; }
  .feature .square-icon { width: 38px; height: 38px; grid-row: span 2; }
  .feature h3 { margin-top: 1px; }
  .feature p { margin-top: 4px; }
  .landing-cta { flex-direction: column; align-items: start; gap: 14px; border-radius: 16px; }
  .landing-cta > div + div { text-align: left; gap: 8px; }
  .site-footer { gap: 8px; padding-block: 20px; }
  .site-footer .brand { font-size: 1rem; gap: 5px; }
  .site-footer .brand-mark { width: 25px; height: 25px; border-radius: 6px; }
  .site-footer .brand-mark .icon { width: 15px; height: 15px; }
  .site-footer > span { font-size: .66rem; }
  .site-footer > a:not(.brand) { font-size: .72rem; }
  .auth-main { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { min-height: 118px; padding: 15px; }
  .auth-art-inner { font-size: 2rem; gap: 7px; }
  .auth-art-inner .brand-mark { display: none; }
  .auth-art-inner br { display: none; }
  .standalone { padding-top: 25px; }
  .workspace-content { padding-inline: 12px; }
  .page-heading { flex-direction: column; align-items: start; gap: 11px; }
  .page-heading .subhead { margin-top: 5px; }
  .page-heading h1 { font-size: 2.35rem; }
  .back-link { margin-bottom: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .activity-card .section-head { grid-column: 1 / -1; margin: 0; }
  .activity-card .section-head .square-icon { display: none; }
  .activity-stat { border: 0; padding-bottom: 0; gap: 4px; }
  .activity-stat .small-square { display: none; }
  .activity-stat > div { display: grid; gap: 1px; }
  .activity-stat span:not(.small-square) { font-size: .73rem; }
  .focus-empty { min-height: 195px; }
  .focus-empty > div:first-child { max-width: 78%; }
  .demo-banner, .subtle-banner { flex-wrap: wrap; }
  .demo-banner .button, .subtle-banner .button { margin-left: auto; }
  .demo-banner > div, .subtle-banner > div { flex-basis: calc(100% - 32px); }
  .row-title > .small-square { display: none; }
  .tournament-list td, .tournament-list th { padding-inline: 8px; }
  .tournament-list tr > :first-child { padding-left: 13px; }
  .tournament-list tr > :last-child { padding-right: 7px; }
  .tournament-list td:nth-child(2), .tournament-list th:nth-child(2) { display: none; }
  .tournament-list td:first-child { white-space: normal; }
  .tournament-list td:first-child strong { max-width: 26ch; overflow-wrap: anywhere; }
  .tournament-list .section-head, .league-detail .panel > .section-head, .results-panel .section-head, .feedback-list > .section-head { padding: 14px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-item { flex-wrap: wrap; gap: 6px; }
  .setup-split { grid-template-columns: 1fr; }
  .wizard-progress li { font-size: .73rem; }
  .wizard-progress li > span { width: 20px; height: 20px; }
  .level-labels, .level-edit-row { grid-template-columns: minmax(35px, .75fr) minmax(33px, .55fr) repeat(3, minmax(40px, .86fr)) 25px; gap: 4px; }
  .level-edit-row { font-size: .74rem; }
  .level-edit-row input { padding-inline: 3px; }
  .level-edit-row .bare-icon { width: 25px; }
  .setup-overview { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 13px; }
  .setup-overview-icon { display: none; }
  .setup-start { justify-items: start; }
  .running-layout { display: flex; flex-direction: column; }
  .mobile-live-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
  .mobile-live-links a { display: inline-flex; align-items: center; min-height: 36px; gap: 6px; color: var(--ink); font-size: .78rem; font-weight: 760; }
  .running-layout .structure-panel { margin-top: 15px; }
  .running-layout #tables, .running-layout #schedule { scroll-margin-top: 13px; }
  .clock-display { padding: 14px 12px; }
  .clock-display-mid { padding: 12px 0 13px; }
  .clock-time { font-size: clamp(4.7rem, 20vw, 7.2rem); }
  .clock-controls .button { min-height: 45px; padding-inline: 5px; gap: 4px; }
  .structure-panel > ol { max-height: 140px; }
  .structure-panel > .section-head { padding: 12px; }
  .structure-panel .square-icon { width: 35px; height: 35px; }
  .live-stats { gap: 3px; }
  .live-stats > div { padding: 7px; }
  .live-stats .small-square { display: none; }
  .live-stats > div > div > span { font-size: .68rem; }
  .live-stats strong { font-size: 1.05rem; }
  .table-layout { grid-template-columns: 1fr; }
  .seats-grid > li, .player-token { min-height: 44px; }
  .section-head-out { flex-wrap: wrap; gap: 8px; }
  .results-panel .section-head { flex-wrap: wrap; }
  .share-dialog { grid-template-columns: 1fr; align-items: start; justify-items: stretch; }
  .share-dialog img { width: 110px; margin: 0 auto; }
  .tv-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 5px; }
  .tv-brand { font-size: 0; }
  .tv-brand > span:last-child { display: none; }
  .tv-clock { padding: 1vh 0 2vh; }
  .tv-clock .clock-display-mid { padding-block: max(4vh, 15px); }
}

@media (max-width: 365px) {
  .site-header .brand { font-size: 1.1rem; }
  .site-actions > a:not(.button) { font-size: .72rem; }
  .hero-copy { padding-inline: 15px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.25rem); }
  .button { padding-inline: 11px; }
  .block-footer { flex-wrap: wrap; }
  .level-labels, .level-edit-row { grid-template-columns: 34px minmax(24px, .55fr) repeat(3, minmax(28px, .78fr)) 21px; gap: 3px; }
  .level-edit-row .bare-icon { width: 21px; }
  .result-order li { grid-template-columns: 25px minmax(0, 1fr) 31px 31px; }
  .result-order .bare-icon { width: 31px; }
}

@media (orientation: landscape) and (max-height: 450px) {
  .tv-header { padding-block: 6px; }
  .tv-header .brand-mark { width: 27px; height: 27px; }
  .tv-fullscreen { width: 29px; height: 29px; }
  .tv-clock .clock-display-mid { padding-block: 3px; }
  .tv-clock .clock-time { font-size: min(25vw, 39vh); }
  .tv-clock .clock-blind-row p { font-size: 7vh; }
  .tv-stats strong { font-size: 7vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
