:root {
  --bg: #fff;
  --alt: #f4f6f9;
  --ink: #101418;
  --muted: #48515c;
  --blue: #0b57d0;
  --blue-dark: #08419e;
  --line: #d9dee5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.header { border-bottom: 1px solid var(--line); }
.header__row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 700; font-size: 19px; text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.menu a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.menu a:hover { color: var(--blue); text-decoration: underline; }

section { padding: 64px 0; }
section.alt { background: var(--alt); }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; }
h2 { font-size: clamp(25px, 3.4vw, 33px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 20px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.lead { font-size: 20px; color: var(--muted); }

.hero { background: var(--alt); }
.hero__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero__figure { margin: 0; }
.hero__figure img { display: block; width: 100%; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 2px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: #fff; color: var(--blue); }
.btn--ghost:hover { color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; padding: 0; list-style: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card p { margin: 0; color: var(--muted); }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; }
summary h3 { display: inline; margin: 0; }
details p { margin-top: 0; color: var(--muted); }

.form { margin-top: 28px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.form__heading { margin: 0 0 18px; font-size: 21px; font-weight: 700; }
.field { margin-bottom: 16px; }
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 15px; }
label span { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #7b8794; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: #b42318; border-width: 2px; }
.field__error { margin: 5px 0 0; color: #b42318; font-size: 14px; }
.form__note { font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status { padding: 12px 14px; border-radius: 8px; border: 1px solid; }
.form__status[data-state="ok"] { color: #05603a; background: #ecfdf3; border-color: #6ce9a6; }
.form__status[data-state="error"] { color: #912018; background: #fef3f2; border-color: #fda29b; }
.trap { position: absolute; left: -9999px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.message-page { min-height: 70vh; display: flex; align-items: center; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  section { padding: 44px 0; }
  .form { padding: 18px; }
}

/* Live now */
[hidden] { display: none !important; }
.live__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.live__filters button { min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.live__filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.live__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.live__list { margin: 0; padding: 0; list-style: none; max-height: 470px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.live__list button { display: block; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.live__list button span { display: block; font-size: 13px; color: var(--muted); }
.live__list button[aria-pressed="true"] { background: var(--alt); box-shadow: inset 4px 0 var(--blue); }
.live__list button.is-locked strong { color: var(--muted); font-weight: 500; }
.live__screen { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #101418; color: #c3cad3; text-align: center; }
.live__screen iframe { width: 100%; height: 100%; border: 0; }
.live__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (max-width: 860px) {
  .live__grid { grid-template-columns: minmax(0, 1fr); }
  .live__list { max-height: 300px; }
}

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--alt); }
.crumbs { font-size: 14px; color: var(--muted); }
#live-state:empty { display: none; }
.live__list { min-height: 300px; }
