:root {
  color-scheme: dark;
  --bg: #080a16;
  --surface: #111522;
  --surface-2: #1a2030;
  --surface-selected: #1c1533;
  --line: #30384a;
  --line-soft: #202738;
  --text: #f6f7fb;
  --muted: #aeb7c8;
  --quiet: #7f8aa0;
  --acid: #43e6c1;
  --acid-soft: #78f2d7;
  --violet: #7b24f8;
  --violet-soft: #a66cfb;
  --danger: #ff946f;
  --rail: 242px;
  --rail-compact: 82px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); }
button, input, select { font: inherit; }
textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #10110e; background: var(--acid); }
* { scrollbar-width: thin; scrollbar-color: #46516a var(--bg); }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #111; background: var(--acid); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.rail { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: var(--rail); padding: 24px 18px 20px; border-right: 1px solid var(--line-soft); background: #0b0e1a; transition: width .24s cubic-bezier(.16,1,.3,1), padding .24s cubic-bezier(.16,1,.3,1); }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.brand-toggle { flex: 0 0 auto; padding: 0; border: 0; border-radius: 11px; background: transparent; cursor: pointer; }
.brand-toggle:hover .brand-logo { filter: brightness(1.08); }
.brand-word { overflow: hidden; white-space: nowrap; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-word b { color: var(--muted); font-weight: 600; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand b { color: var(--muted); font-weight: 600; }
.brand-logo { display: block; width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.nav-list { display: grid; gap: 6px; margin-top: 48px; }
.nav-list a { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-list a:hover { color: var(--text); background: var(--surface); }
.nav-list a[aria-current="page"] { color: #111; background: var(--acid); }
.nav-list svg, .bottom-nav svg { width: 20px; height: 20px; }
.rail-foot { position: relative; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.profile-button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 50px; padding: 8px; border: 0; border-radius: 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.profile-button:hover { background: var(--surface); }
.profile-button > span:last-child { display: grid; gap: 3px; }
.profile-button b { font-size: 13px; }
.profile-button small { color: var(--muted); }
.profile-chevron { width: 17px; margin-left: auto; color: var(--quiet); transition: transform .18s ease; }
.profile-button[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #111; background: var(--acid); font-size: 12px; font-weight: 900; }
.account-menu { position: absolute; right: 0; bottom: 62px; left: 0; z-index: 4; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 24px 60px rgba(0,0,0,.46); }
.account-menu-head { display: grid; gap: 3px; padding: 8px 9px 11px; border-bottom: 1px solid var(--line-soft); }
.account-menu-head b { font-size: 13px; }
.account-menu-head small { color: var(--quiet); font-size: 11px; }
.account-menu button, .account-menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.account-menu button:hover, .account-menu a:hover { color: var(--text); background: var(--surface-2); }
.account-menu svg { width: 18px; height: 18px; }
.account-menu .account-logout { margin-top: 5px; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; color: var(--danger); }
.app-shell:not(.is-authenticated) .nav-list,
.app-shell:not(.is-authenticated) .bottom-nav { display: none; }

.app-shell.rail-collapsed .rail { width: var(--rail-compact); padding-inline: 12px; }
.app-shell.rail-collapsed main { margin-left: var(--rail-compact); }
.app-shell.rail-collapsed .brand-lockup { justify-content: center; }
.app-shell.rail-collapsed .brand-word, .app-shell.rail-collapsed .nav-list span, .app-shell.rail-collapsed .profile-button > span:not(.avatar), .app-shell.rail-collapsed .profile-chevron { display: none; }
.app-shell.rail-collapsed .nav-list a, .app-shell.rail-collapsed .profile-button { justify-content: center; width: 48px; padding-inline: 0; }
.app-shell.rail-collapsed .nav-list { justify-items: center; }
.app-shell.rail-collapsed .account-menu { right: auto; bottom: 0; left: 58px; width: 250px; }

.mobile-header, .bottom-nav { display: none; }
main { min-height: 100vh; margin-left: var(--rail); padding: 52px clamp(28px, 4.5vw, 76px) 80px; transition: margin-left .24s cubic-bezier(.16,1,.3,1); }
.view { width: min(1240px, 100%); margin-inline: auto; }
.landing-actions { display: flex; justify-content: flex-end; min-height: 44px; margin-bottom: clamp(54px, 8vw, 104px); }
.home-intro { display: block; max-width: 980px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
h1 em { color: var(--acid); font-family: inherit; font-style: normal; font-weight: 800; }
.home-intro p, .page-heading p { max-width: 690px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.landing-section { margin-top: clamp(72px, 9vw, 118px); scroll-margin-top: 32px; }
.system-state { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.system-state > span:last-child { display: grid; gap: 3px; }
.system-state b { font-size: 12px; }
.system-state small { color: var(--muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); }

.command-search { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; margin: 20px 0 24px; padding: 9px 13px 9px 17px; border: 1px solid #3a4358; border-radius: 14px; background: #0c101d; }
.command-search:focus-within { border-color: var(--acid); box-shadow: 0 8px 30px rgba(0, 0, 0, .32); }
.command-search svg { width: 22px; color: var(--muted); }
.command-search input { min-width: 0; padding: 12px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
.command-search kbd { padding: 4px 8px; border: 1px solid var(--line); border-bottom-color: #505b72; border-radius: 6px; color: var(--quiet); background: #151a28; }

.section-head, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head { margin-bottom: 18px; }
.section-head h2, .builder-section h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.02em; }
.section-head p, .helper { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.text-button { padding: 8px 0; border: 0; color: var(--acid); background: transparent; font-weight: 750; cursor: pointer; }
.text-button:hover { color: var(--acid-soft); }
.provider-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.provider-card { position: relative; display: grid; min-height: 170px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--provider-bg, var(--surface)); cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease; }
.provider-card:hover { border-color: #59657d; transform: translateY(-3px); }
.provider-card .provider-name { align-self: end; font-size: 21px; font-weight: 850; letter-spacing: -.03em; }
.provider-card .provider-name small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.provider-monogram { position: absolute; top: -20px; right: -3px; color: rgba(255,255,255,.11); font: 900 105px/1 Georgia, serif; }
.launch-arrow { position: absolute; top: 15px; left: 15px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.launch-arrow svg { width: 14px; }

.how-section { padding-block: clamp(42px, 5vw, 64px); border-block: 1px solid var(--line); }
.how-section .section-head { max-width: 760px; margin-bottom: 34px; }
.how-section .sequence-line { max-width: 980px; }
.how-section .sequence-line li:not(:last-child)::after { right: 20px; }
.how-section .sequence-line span, .how-section .sequence-line b { background: var(--bg); }
.how-section .sequence-line b { font-size: 14px; }
.how-section .sequence-line small { margin-top: 3px; font-size: 12px; }
.features-section .section-head { max-width: 760px; margin-bottom: 30px; }
.feature-list { display: grid; border-top: 1px solid var(--line); }
.feature-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-list article > svg { width: 28px; height: 28px; color: var(--acid); }
.feature-list h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.feature-list p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.signup-section { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.signup-section h2 { max-width: 680px; margin-bottom: 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.signup-section p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.signup-section .primary-button { flex: 0 0 auto; }
.login-dialog-shell { width: min(520px, calc(100vw - 32px)); }
.login-email { display: grid; gap: 8px; }
.login-email span { color: var(--muted); font-size: 12px; font-weight: 800; }
.login-email input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); font: inherit; }
.login-note, .auth-message { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-message:not(:empty) { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--mint) 35%, var(--line)); border-radius: 10px; color: var(--text); background: color-mix(in srgb, var(--mint) 8%, transparent); }
.compact-login { min-height: 38px; }

.cast-sequence { display: grid; grid-template-columns: minmax(250px, .85fr) 1.35fr auto; align-items: center; gap: 28px; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cast-copy { display: flex; align-items: center; gap: 15px; }
.cast-copy h2 { margin-bottom: 4px; font-size: 18px; }
.cast-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cast-symbol { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #111; background: var(--acid); }
.cast-symbol svg { width: 25px; }
.sequence-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.sequence-line li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 1px 8px; min-width: 0; }
.sequence-line li:not(:last-child)::after { position: absolute; top: 12px; right: 8px; left: 34px; height: 1px; background: #48536a; content: ""; }
.sequence-line span { z-index: 1; display: grid; grid-row: 1 / 3; place-items: center; width: 25px; height: 25px; border: 1px solid #59657d; border-radius: 50%; color: var(--acid); background: var(--surface); font-size: 11px; font-weight: 900; }
.sequence-line b { z-index: 1; width: max-content; padding-right: 8px; background: var(--surface); font-size: 12px; }
.sequence-line small { grid-column: 2; color: var(--quiet); font-size: 11px; }

.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.primary-button { border: 1px solid var(--acid); color: #111; background: var(--acid); }
.primary-button:hover { background: var(--acid-soft); }
.primary-button:disabled { border-color: #3a4358; color: var(--quiet); background: #1a2030; cursor: not-allowed; }
.secondary-button { border: 1px solid #3a4358; color: var(--text); background: transparent; }
.secondary-button:hover { background: var(--surface-2); }
.wide { width: 100%; }

.page-heading { margin-bottom: 38px; }
.page-heading h1 { margin-bottom: 8px; font-size: clamp(38px, 4.6vw, 66px); }
.filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-bar label { display: grid; flex: 1; gap: 8px; max-width: 620px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-bar input { padding: 13px 14px; border: 1px solid #3a4358; border-radius: 10px; outline: 0; color: var(--text); background: #0c101d; }
.filter-bar input:focus { border-color: var(--acid); }
.result-count { color: var(--muted); font-size: 12px; }
.provider-directory { display: grid; border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 16px; min-height: 82px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.directory-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: white; background: var(--provider-bg); font: 800 17px Georgia, serif; }
.directory-row h3 { margin: 0 0 4px; font-size: 16px; }
.directory-row p { margin: 0; color: var(--muted); font-size: 12px; }
.selected-tag, .desktop-only-badge { padding: 6px 9px; border: 1px solid var(--violet); border-radius: 999px; color: var(--violet-soft); background: var(--surface-selected); font-size: 11px; font-weight: 800; }
.open-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #3a4358; border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; }
.open-button:hover { border-color: var(--acid); }

.sports-board { display: grid; grid-template-columns: 1fr minmax(330px, .85fr); gap: 8px; min-height: 520px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.sports-message { display: flex; flex-direction: column; justify-content: end; padding: clamp(28px, 5vw, 70px); background: var(--acid); color: #111; }
.sports-message { border-radius: 10px; }
.sports-message h2 { max-width: 520px; margin-bottom: 18px; font: 400 clamp(44px, 6vw, 82px)/.94 Georgia, serif; letter-spacing: -.04em; }
.sports-message p { max-width: 600px; margin: 0; font-size: 14px; line-height: 1.6; }
.sports-providers { display: grid; align-content: start; overflow: hidden; border-radius: 10px; background: var(--surface); }
.sport-route { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 22px; border-bottom: 1px solid var(--line); }
.sport-route h3 { margin: 0 0 5px; }
.sport-route p { margin: 0; color: var(--muted); font-size: 12px; }

.discovery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.discovery-heading h1 { margin-bottom: 10px; font-size: clamp(42px, 5vw, 72px); }
.discovery-heading p { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.discovery-library { display: grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.discovery-library button { display: grid; gap: 3px; min-width: 94px; min-height: 68px; padding: 10px 15px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.discovery-library button + button { border-left: 1px solid var(--line); }
.discovery-library button:hover, .discovery-library button[aria-pressed="true"] { color: var(--text); background: var(--surface-2); }
.discovery-library b { color: var(--acid); font-size: 20px; font-variant-numeric: tabular-nums; }
.discovery-library span { font-size: 12px; font-weight: 800; }
.catalog-search { display: grid; grid-template-columns: 24px minmax(180px, 1fr) auto; align-items: center; gap: 13px; padding: 8px 9px 8px 17px; border: 1px solid #3a4358; border-radius: 14px; background: #0c101d; }
.catalog-search:focus-within { border-color: var(--acid); box-shadow: 0 12px 34px rgba(0,0,0,.34); }
.catalog-search > svg { width: 21px; color: var(--muted); }
.catalog-search label { min-width: 0; }
.catalog-search input { width: 100%; min-height: 46px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; caret-color: var(--acid); }
.catalog-search input::placeholder { color: #92948a; }
.scope-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #151a28; }
.scope-toggle button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.scope-toggle button[aria-pressed="true"] { color: #10110e; background: var(--acid); }
.catalog-tabs { display: flex; gap: 4px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.catalog-tabs button { position: relative; min-width: 104px; min-height: 48px; padding: 0 18px; border: 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 850; cursor: pointer; }
.catalog-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.catalog-tabs button[aria-selected="true"] { color: var(--text); }
.catalog-tabs button[aria-selected="true"]::after { background: var(--acid); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; }
.filter-chips { display: flex; gap: 7px; overflow-x: auto; }
.filter-chips button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.filter-chips button[aria-pressed="true"] { border-color: var(--violet); color: var(--violet-soft); background: var(--surface-selected); }
.catalog-freshness { flex: 0 0 auto; color: var(--quiet); font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-results { padding-top: 22px; border-top: 1px solid var(--line); }
.catalog-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.catalog-results-head h2 { margin-bottom: 5px; font-size: 23px; letter-spacing: -.025em; }
.catalog-results-head p { margin: 0; color: var(--muted); font-size: 12px; }
.catalog-results-head > span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.catalog-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.catalog-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.catalog-card:hover .catalog-art img { transform: scale(1.035); }
.catalog-image-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #4d5870; font: 800 78px/1 Georgia, serif; }
.catalog-source { position: absolute; top: 9px; right: 9px; padding: 5px 8px; border-radius: 999px; color: #111; background: rgba(245,244,237,.92); font-size: 12px; font-weight: 900; }
.catalog-card-body { padding: 15px; }
.catalog-card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--acid); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.catalog-card-meta span:last-child { color: var(--muted); text-align: right; }
.catalog-card h3 { margin: 10px 0 4px; overflow: hidden; font-size: 19px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.catalog-episode { min-height: 18px; margin: 0 0 9px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-description { display: -webkit-box; min-height: 58px; margin: 0; overflow: hidden; color: #c1c2ba; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-signals { display: flex; gap: 6px; min-height: 25px; margin-top: 11px; overflow: hidden; }
.catalog-signals span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.catalog-reactions { display: flex; align-items: center; gap: 6px; margin: 14px 0 12px; padding: 9px 0; border-block: 1px solid var(--line-soft); }
.catalog-reactions button { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.catalog-reactions button[aria-pressed="true"] { border-color: var(--violet); color: var(--violet-soft); background: var(--surface-selected); }
.catalog-reactions small { margin-left: auto; color: var(--quiet); font-size: 12px; }
.catalog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.catalog-actions button { min-height: 44px; padding: 0 8px; border: 1px solid #3a4358; border-radius: 8px; color: var(--text); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.catalog-actions button:hover:not(:disabled) { border-color: var(--acid); }
.catalog-actions button[aria-pressed="true"] { color: var(--violet-soft); background: var(--surface-selected); }
.catalog-actions button:disabled { color: #66685f; cursor: not-allowed; }
.catalog-actions .catalog-kast-action { border-color: var(--acid); color: #111; background: var(--acid); }
.catalog-status:not(:empty) { margin-bottom: 18px; }
.catalog-message { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.catalog-message strong { display: block; margin-bottom: 7px; font-size: 18px; }
.catalog-message p { max-width: 68ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.catalog-message button { min-height: 40px; margin-top: 15px; padding: 0 14px; border: 1px solid var(--acid); border-radius: 8px; color: #111; background: var(--acid); font-weight: 800; cursor: pointer; }
.catalog-message[data-tone="error"] { border-color: #784532; }
.catalog-loading { display: grid; grid-template-columns: repeat(3, 3px) 1fr; align-items: center; gap: 5px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.catalog-loading span { width: 3px; height: 18px; background: var(--acid); animation: catalog-pulse 1.1s ease-in-out infinite alternate; }
.catalog-loading span:nth-child(2) { animation-delay: .18s; }.catalog-loading span:nth-child(3) { animation-delay: .36s; }
.catalog-loading p { margin: 0 0 0 6px; color: var(--muted); font-size: 12px; }
@keyframes catalog-pulse { to { opacity: .22; transform: translateY(-4px); } }
.catalog-provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.catalog-provenance strong { color: var(--text); }
.catalog-provenance span { display: inline-flex; align-items: center; gap: 7px; }
.catalog-provenance i { width: 7px; height: 7px; border-radius: 50%; background: #76786e; }.catalog-provenance i[data-tone="live"] { background: var(--acid); }
.catalog-provenance small { flex-basis: 100%; color: var(--quiet); }
.kast-dialog-shell { width: min(500px, calc(100vw - 24px)); }
.kast-layout-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 18px; padding: 0; border: 0; }
.kast-layout-options legend { grid-column: 1 / -1; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.kast-layout-options input { position: absolute; opacity: 0; }
.kast-layout-options span { display: grid; place-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: 9px; font-weight: 900; cursor: pointer; }
.kast-layout-options input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 3px; }
.kast-layout-options input:checked + span { border-color: var(--acid); color: #111; background: var(--acid); }
.kast-screen-select { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.kast-screen-select select { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #0c101d; }
.kast-handoff-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.multiview-heading { margin-bottom: 28px; }
.control-bridge-state { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 800; }
.control-bridge-state i { width: 7px; height: 7px; border-radius: 50%; background: #707269; }
.control-bridge-state[data-connected="true"] { border-color: #2d8f7a; color: var(--acid); }
.control-bridge-state[data-connected="true"] i { background: var(--acid); }
.multiview-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 360px); gap: 20px; align-items: start; }
.build-stage { min-width: 0; }
.layout-fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.layout-fieldset legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.layout-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.layout-picker label { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 68px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #0c101d; cursor: pointer; }
.layout-picker label:hover { border-color: #55584d; color: var(--text); }
.layout-picker label:has(input:checked) { border-color: var(--violet); color: var(--text); background: var(--surface-selected); }
.layout-picker label:has(input:focus-visible), .destination-picker label:has(input:focus-visible) { outline: 3px solid var(--acid); outline-offset: 3px; }
.layout-picker input { position: absolute; opacity: 0; pointer-events: none; }
.layout-picker label > span:last-child { display: grid; gap: 3px; min-width: 0; }
.layout-picker b { font-size: 13px; }
.layout-picker small { color: var(--quiet); font-size: 10px; }
.layout-picker label:has(input:checked) small { color: #b6c28f; }
.layout-shape { display: grid; flex: 0 0 auto; gap: 2px; width: 38px; height: 29px; padding: 3px; border: 1px solid #6e7167; border-radius: 4px; }
.layout-shape.two { grid-template-columns: 1fr 1fr; }
.layout-shape.three { grid-template: 1fr 1fr / 1fr 1fr; }
.layout-shape.three i:first-child { grid-column: 1 / -1; }
.layout-shape.four { grid-template: 1fr 1fr / 1fr 1fr; }
.layout-shape i { min-width: 0; min-height: 0; background: #777a70; }
.layout-picker label:has(input:checked) .layout-shape i { background: var(--acid); }

.screen-config { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.screen-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.screen-toolbar h2 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.02em; }
.screen-toolbar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.screen-toolbar > span { flex: 0 0 auto; color: var(--acid); font-size: 11px; font-weight: 800; }
.display-layout { display: grid; gap: 7px; width: 100%; aspect-ratio: 16 / 9; min-height: 430px; padding: 7px; border: 1px solid #3a4358; border-radius: 12px; overflow: hidden; background: #060812; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.display-layout.layout-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.display-layout.layout-three, .display-layout.layout-four { grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); }
.display-layout.layout-three .screen-slot:first-child { grid-column: 1 / -1; }
.screen-slot { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 0; padding: clamp(14px, 2vw, 24px); overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: var(--provider-bg, #20221c); animation: layout-settle .28s cubic-bezier(.16,1,.3,1) both; }
.screen-slot::after { position: absolute; inset: 0; border: 1px solid transparent; border-radius: inherit; pointer-events: none; content: ""; }
.screen-slot:focus-within::after { border-color: var(--acid); }
.screen-slot-head { z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.screen-slot-head span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.screen-slot-head b { display: grid; place-items: center; min-width: 27px; height: 27px; padding-inline: 6px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; color: white; background: rgba(0,0,0,.24); font: 800 11px/1 Georgia, serif; }
.screen-slot-monogram { position: absolute; right: 16px; bottom: -16px; color: rgba(255,255,255,.08); font: 900 clamp(64px, 9vw, 126px)/1 Georgia, serif; pointer-events: none; }
.screen-slot-select { z-index: 1; display: grid; gap: 6px; width: min(100%, 330px); }
.screen-slot-select span { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; }
.screen-slot select { width: 100%; min-width: 0; padding: 11px 34px 11px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; outline: 0; color: white; background: rgba(7,8,6,.74); font-size: 13px; font-weight: 800; cursor: pointer; }
.screen-slot select:focus { border-color: var(--acid); }

.launch-panel { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.launch-panel h2 { margin-bottom: 14px; font-size: 21px; letter-spacing: -.025em; }
.destination-picker { display: grid; gap: 8px; }
.destination-picker label { position: relative; display: grid; grid-template-columns: 37px 1fr; align-items: center; gap: 11px; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); cursor: pointer; }
.destination-picker label:has(input:checked) { border-color: var(--violet); color: var(--text); background: var(--surface-selected); }
.destination-picker input { position: absolute; opacity: 0; }
.destination-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); background: var(--surface-2); }
.destination-icon svg { width: 20px; height: 20px; }
.destination-picker label:has(input:checked) .destination-icon { color: #111; background: var(--acid); }
.destination-picker label > span:last-child { display: grid; gap: 3px; }
.destination-picker b { font-size: 12px; }
.destination-picker small { color: var(--quiet); font-size: 11px; }
.cast-preflight { display: grid; gap: 13px; margin-top: 13px; padding: 14px; border: 1px solid #3a4358; border-radius: 11px; background: #0c101d; }
.cast-preflight > div b { font-size: 12px; }
.cast-preflight p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cast-preflight kbd { padding: 2px 5px; border: 1px solid #55584d; border-radius: 4px; color: var(--text); background: #1b1c17; font-size: 10px; }
.cast-preflight label { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 11px; line-height: 1.4; cursor: pointer; }
.cast-preflight input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--acid); }
.launch-action { margin-top: 16px; }
.launch-status { min-height: 34px; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.launch-status[data-error="true"] { color: var(--danger); }
.capability-note { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.capability-note b { font-size: 11px; }
.capability-note p { margin: 5px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.5; }

.controller-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.controller-head h2 { margin-bottom: 4px; }
.controller-head p { margin: 0; color: var(--muted); font-size: 11px; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--acid); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.controller-streams { display: grid; margin: 6px 0 14px; }
.controller-companion { display: grid; grid-template-columns: 42px 1fr; gap: 12px; margin: 14px 0 16px; padding: 14px; border: 1px solid #3a4358; border-radius: 12px; background: #0c101d; }
.controller-companion-icon { display: block; width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.controller-companion-icon svg { width: 22px; }
.controller-companion strong { display: block; font-size: 12px; }
.controller-companion p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.controller-companion .primary-button { grid-column: 1 / -1; }
.controller-stream { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; align-items: center; gap: 8px; min-height: 54px; border-bottom: 1px solid var(--line-soft); }
.controller-stream > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: white; background: var(--provider-bg); font: 800 10px Georgia, serif; }
.controller-stream-name { min-width: 0; }
.controller-stream-name strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.controller-stream-name small { color: var(--quiet); font-size: 9px; }
.controller-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #45483f; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.controller-button:hover:not(:disabled), .controller-button[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); background: #102722; }
.controller-button:disabled { opacity: .38; cursor: not-allowed; }
.controller-button svg { width: 16px; height: 16px; }
.group-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.group-controls .secondary-button { min-height: 40px; padding-inline: 10px; font-size: 11px; }
.danger-button { color: #ffb09a; }
.edit-layout { width: 100%; margin-top: 9px; text-align: center; }
.privacy-copy { display: block; margin-top: 18px; color: var(--quiet); font-size: 9px; line-height: 1.5; }

@keyframes layout-settle {
  from { opacity: .55; clip-path: inset(8% 5% 8% 5%); }
  to { opacity: 1; clip-path: inset(0); }
}

dialog { width: min(660px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(4,6,16,.82); backdrop-filter: blur(7px); }
.dialog-shell { padding: 24px; }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dialog-head { margin-bottom: 22px; }
.dialog-head h2 { margin-bottom: 5px; }
.dialog-head p { margin: 0; color: var(--muted); font-size: 13px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; cursor: pointer; }
.icon-button svg { width: 19px; }
.provider-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 52vh; overflow: auto; }
.provider-option { position: relative; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.provider-option:has(input:checked) { border-color: var(--violet); background: var(--surface-selected); }
.provider-option input { width: 17px; height: 17px; accent-color: var(--acid); }
.provider-option b { font-size: 13px; }
.provider-option small { display: block; margin-top: 3px; color: var(--muted); }
.dialog-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-actions span { color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 360px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); box-shadow: 0 16px 45px rgba(0,0,0,.4); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.toast.show { opacity: 1; transform: translateY(0); }

.compatibility-heading { margin-bottom: 26px; }
.compatibility-heading > div { min-width: 0; }
.export-compatibility { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.export-compatibility svg { width: 18px; }
.compatibility-summary { display: grid; grid-template-columns: repeat(4, minmax(105px, 1fr)) minmax(150px, 1.35fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.compatibility-summary > span { display: grid; gap: 4px; padding: 15px 18px; border-right: 1px solid var(--line-soft); }
.compatibility-summary > span:last-child { border-right: 0; }
.compatibility-summary b { font-size: 22px; letter-spacing: -.03em; }
.compatibility-summary small { color: var(--muted); font-size: 12px; }
.compatibility-summary .compat-updated b { font-size: 14px; line-height: 26px; }
.compatibility-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; align-items: start; }
.compatibility-matrix-panel, .evidence-editor { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compatibility-matrix-panel { min-width: 0; overflow: hidden; }
.compatibility-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 20px; border-bottom: 1px solid var(--line-soft); }
.compatibility-panel-head h2, .evidence-editor h2 { margin-bottom: 5px; font-size: 19px; letter-spacing: -.025em; }
.compatibility-panel-head p, .evidence-editor p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-key { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.status-key span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; }
.status-key span::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--quiet); content: ""; }
.status-key [data-tone="pass"]::before { background: var(--acid); }
.status-key [data-tone="partial"]::before { background: #ffc45c; }
.status-key [data-tone="fail"]::before { background: var(--danger); }
.compatibility-matrix-scroll { max-height: calc(100vh - 280px); overflow: auto; }
.compatibility-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compatibility-table th, .compatibility-table td { height: 60px; padding: 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-align: left; }
.compatibility-table thead th { position: sticky; top: 0; z-index: 3; height: 68px; background: var(--surface-2); }
.compatibility-table thead th:first-child { left: 0; z-index: 4; width: 155px; }
.compatibility-table thead th span { display: block; font-size: 11px; }
.compatibility-table thead th small { display: block; margin-top: 4px; overflow: hidden; color: var(--quiet); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.compatibility-table tbody th { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--surface); font-size: 12px; }
.compatibility-table tbody tr:last-child > * { border-bottom: 0; }
.compat-provider-mark { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; color: white; background: var(--provider-bg); font: 800 10px Georgia, serif; }
.compat-cell { background: #0c101d; transition: background .15s ease; }
.compat-cell.is-active { box-shadow: inset 0 0 0 2px var(--acid); }
.compat-cell select { width: 100%; min-height: 38px; padding: 7px 23px 7px 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--muted); background: #151a28; font-size: 11px; font-weight: 800; cursor: pointer; }
.compat-cell[data-tone="pass"] select { border-color: #2d8f7a; color: var(--acid); background: #102722; }
.compat-cell[data-tone="partial"] select { border-color: #80632d; color: #ffd37d; background: #241e13; }
.compat-cell[data-tone="fail"] select { border-color: #784532; color: var(--danger); background: #251713; }
.evidence-editor { position: sticky; top: 20px; padding: 20px; }
.evidence-editor-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.evidence-editor-head > div { min-width: 0; flex: 1; }
.evidence-editor-head > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: white; background: var(--provider-bg); font: 800 13px Georgia, serif; }
.evidence-close { display: none; flex: 0 0 auto; }
.evidence-editor form { display: grid; gap: 14px; padding-top: 18px; }
.evidence-editor label { display: grid; gap: 6px; }
.evidence-editor label > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.evidence-editor input, .evidence-editor select, .evidence-editor textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: #0c101d; font-size: 12px; }
.evidence-editor textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.evidence-editor input:focus, .evidence-editor select:focus, .evidence-editor textarea:focus { border-color: var(--acid); }
.clear-evidence { justify-self: center; color: var(--muted); }
.evidence-privacy { margin-top: 17px !important; padding-top: 15px; border-top: 1px solid var(--line-soft); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }

@media (max-width: 1050px) {
  :root { --rail: 82px; }
  .rail { align-items: center; padding-inline: 12px; }
  .brand-lockup { justify-content: center; }
  .brand-word, .nav-list span, .rail-foot .profile-button > span:not(.avatar), .profile-chevron { display: none; }
  .nav-list a { justify-content: center; width: 48px; padding: 0; }
  .profile-button { justify-content: center; padding: 0; }
  .account-menu { right: auto; bottom: 0; left: 58px; width: 250px; }
  .provider-strip { grid-template-columns: 1fr 1fr; }
  .cast-sequence { grid-template-columns: 1fr; }
  .sequence-line { max-width: 570px; }
  .multiview-workbench { grid-template-columns: 1fr; }
  .launch-panel { position: static; }
  .compatibility-workbench { grid-template-columns: 1fr; }
  .evidence-editor { position: static; }
  .compatibility-matrix-scroll { max-height: 620px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .rail { display: none; }
  .mobile-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: rgba(8,10,22,.94); backdrop-filter: blur(14px); }
  .mobile-header .brand { font-size: 17px; }
  main { margin-left: 0; padding: 34px 16px 104px; }
  .view { min-width: 0; overflow-x: clip; }
  .bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(11,14,26,.97); backdrop-filter: blur(18px); }
  .bottom-nav a { display: grid; place-items: center; gap: 4px; min-height: 52px; color: var(--quiet); font-size: 11px; }
  .bottom-nav a[aria-current="page"] { color: var(--acid); }
  h1 { font-size: 44px; }
  .landing-actions { display: none; }
  .home-intro { display: block; padding-top: 26px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
  .landing-section { margin-top: 72px; }
  .command-search { margin: 20px 0 24px; }
  .command-search kbd { display: none; }
  .section-head, .page-heading { align-items: flex-start; flex-direction: column; }
  .provider-strip { display: flex; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .provider-card { flex: 0 0 76vw; scroll-snap-align: start; }
  .cast-sequence { margin-top: 34px; padding: 18px; }
  .sequence-line { grid-template-columns: 1fr; gap: 12px; }
  .sequence-line li:not(:last-child)::after { display: none; }
  .sequence-line small { font-size: 11px; }
  .cast-sequence .primary-button { width: 100%; }
  .how-section { padding-block: 38px; }
  .how-section .sequence-line { gap: 18px; }
  .feature-list article { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .signup-section { align-items: stretch; flex-direction: column; padding: 26px 22px; }
  .signup-section .primary-button { width: 100%; }
  .directory-row { grid-template-columns: 44px 1fr auto; }
  .directory-row .selected-tag { display: none; }
  .directory-row .open-button span { display: none; }
  .sports-board, .multiview-workbench { grid-template-columns: 1fr; }
  .sports-message { min-height: 430px; }
  .sports-message h2 { font-size: 52px; }
  .desktop-only-badge { display: none; }
  .provider-options { grid-template-columns: 1fr; }
  .toast { right: 12px; bottom: 82px; left: 12px; max-width: none; }
  .multiview-heading { margin-bottom: 22px; }
  .control-bridge-state { align-self: flex-start; }
  .display-layout { min-height: 0; }
  .screen-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .screen-slot { padding: 13px; }
  .screen-slot-select span { display: none; }
  .screen-slot select { padding: 10px 28px 10px 9px; font-size: 11px; }
  .controller-button { width: 44px; height: 44px; }
  .group-controls .secondary-button { min-height: 44px; }
  .compatibility-heading, .compatibility-heading > div, .compatibility-heading .secondary-button, .compatibility-summary, .compatibility-workbench { width: 100%; max-width: 100%; min-width: 0; }
  .evidence-editor { position: fixed; right: 8px; bottom: 74px; left: 8px; z-index: 45; max-height: min(72vh, 620px); padding: 18px; overflow-y: auto; box-shadow: 0 24px 70px rgba(0,0,0,.68); transform: translateY(calc(100% + 90px)); visibility: hidden; pointer-events: none; transition: transform .22s cubic-bezier(.16,1,.3,1), visibility .22s; }
  .evidence-editor.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .evidence-close { display: grid; }
  .compatibility-matrix-scroll { max-height: none; overflow-x: auto; overflow-y: visible; }
  .compatibility-heading p { overflow-wrap: anywhere; }
  .compatibility-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compatibility-summary > span { border-bottom: 1px solid var(--line-soft); }
  .compatibility-summary > span:nth-child(2n) { border-right: 0; }
  .compatibility-summary > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .compatibility-panel-head { flex-direction: column; }
  .compatibility-panel-head > div { min-width: 0; }
  .status-key { justify-content: flex-start; }
  .compatibility-table { min-width: 760px; }
  .compatibility-table thead th:first-child { width: 150px; }
  .compatibility-heading .secondary-button { width: 100%; }
  .compat-cell select, .evidence-editor input, .evidence-editor select { min-height: 44px; }
  .discovery-heading { align-items: flex-start; flex-direction: column; }
  .discovery-view, .discovery-heading, .discovery-heading > div, .catalog-search, .scope-toggle, .catalog-tabs, .catalog-toolbar, .catalog-results, .catalog-grid, .catalog-card, .catalog-provenance { width: 100%; max-width: 100%; min-width: 0; }
  .discovery-library { width: 100%; }
  .discovery-library button { min-width: 0; }
  .catalog-search { grid-template-columns: 22px minmax(0, 1fr); overflow: hidden; }
  .catalog-search input { min-width: 0; }
  .scope-toggle { grid-column: 1 / -1; }
  .scope-toggle button { min-height: 44px; }
  .catalog-tabs button { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; padding-block: 13px; }
  .filter-chips { width: 100%; padding-bottom: 2px; }
  .filter-chips button { min-height: 40px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-actions button, .catalog-reactions button { min-height: 44px; }
  .catalog-reactions { flex-wrap: wrap; }
  .catalog-reactions small { width: 100%; margin-left: 0; }
  .catalog-provenance span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .layout-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-picker label { align-items: center; flex-direction: column; justify-content: center; gap: 7px; min-height: 82px; padding: 8px 5px; text-align: center; }
  .layout-picker small { display: none; }
  .screen-config { margin-inline: -4px; padding: 10px; }
  .display-layout { gap: 5px; min-height: 0; padding: 5px; }
  .screen-slot { padding: 9px; }
  .screen-slot-head span { font-size: 8px; }
  .screen-slot-head b { min-width: 23px; height: 23px; font-size: 9px; }
  .screen-slot select { font-size: 10px; }
  .launch-panel { padding: 18px; }
  .provider-card { flex-basis: 84vw; }
  .dialog-shell { padding: 18px; }
}

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

@media (forced-colors: active) {
  .nav-list a[aria-current="page"], .primary-button, .avatar, .cast-symbol, .screen-slot { border: 1px solid ButtonText; }
}

