
:root {
  --brand: #2A2F36;
  --brand-deep: #1E2228;
  --brand-line: #3A414B;
  --white: #FFFFFF;
  --panel: #F3F4F5;
  --panel-2: #EEEFF1;
  --line: #E3E5E8;
  --line-strong: #CDD1D6;
  --ink: #1F2328;
  --muted: #5E6670;
  --accent: #3B6FC2;
  --accent-ink: #2E5A9E;
  --tint: #EDF1F6;
  --success: #1E9E6A;
  --success-bg: #E6F5EE;
  --warning: #B8811C;
  --warning-bg: #FBF1DC;
  --error: #C43C3C;
  --error-bg: #FBE9E9;
  --line-dk: rgba(255,255,255,.22);
  --muted-dk: rgba(255,255,255,.72);

  --display: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --bar: 64px;
  --shadow-float: 0 12px 32px rgba(30,34,40,.14);
  --tint-strong: #DFE5EE;
  --error-deep: #A83232;
  --ring-soft: rgba(59,111,194,.25);
  --backdrop: rgba(30,34,40,.55);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232A2F36' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; display: block; }
svg { display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { margin: 0; color: var(--brand); line-height: 1.08; }
h1, .h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(34px, 5vw, 56px); }
h2, .h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 38px); }
h3, .h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }
h4, .h4 { font-family: var(--body); font-weight: 600; font-size: 16px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.up { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--muted); }
em.lift, .lift { font-style: italic; font-weight: 700; }
.figure { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1; color: var(--brand); letter-spacing: -.01em; }
.figure small { font-size: .4em; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-left: 4px; }
.code { font-family: var(--display); font-weight: 700; letter-spacing: .04em; color: var(--muted); }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-mid { width: min(960px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.band { padding: clamp(40px, 6vw, 80px) 0; }
.band-tight { padding: 28px 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.flex { display: flex; gap: 16px; align-items: center; }
.between { justify-content: space-between; }
.wrap-items { flex-wrap: wrap; }
.grid-2 { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 > *, .grid-3 > *, .dash-grid > *, .admin-shell > *, .lesson-layout > *, .split > *, .hero-grid > *, .live-layout > *, .event > *, .post > *, .svc > * { min-width: 0; }
.dash-grid { grid-template-columns: 1.4fr .6fr; align-items: start; }
.kv-stack { grid-template-columns: 1fr; gap: 2px 0; }
.kv-stack dt { margin-top: 10px; }
.kv-stack dt:first-child { margin-top: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.right { text-align: right; }
.center { text-align: center; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--bar);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.brand .brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .01em; color: var(--brand); white-space: nowrap; }
.footer .brand .brand-name { color: #fff; }
.brand .brand-sub { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 12px; line-height: 1; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  font-weight: 500; font-size: 14px; color: var(--ink);
  padding: 8px 12px; border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--brand); }
.nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.topbar .spacer { flex: 1; }
.account {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.account .avatar {
  width: 34px; height: 34px; background: var(--brand); color: #fff;
  font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.account .name { color: var(--ink); font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); padding: 8px 10px; cursor: pointer; color: var(--brand); }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: 14px; line-height: 1;
  padding: 15px 24px; min-height: 48px;
  border: 1.5px solid var(--btn, var(--brand)); background: var(--btn, var(--brand)); color: #fff;
  cursor: pointer; text-decoration: none; border-radius: 0;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--btn-hover, var(--brand-line)); border-color: var(--btn-hover, var(--brand-line)); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--tint); color: var(--brand); border-color: var(--brand); }
.btn-soft { background: var(--tint); border-color: var(--tint); color: var(--brand); }
.btn-soft:hover { background: var(--tint-strong); border-color: var(--tint-strong); }
.btn-onbrand { background: #fff; border-color: #fff; color: var(--brand); }
.btn-onbrand:hover { background: var(--panel); border-color: var(--panel); }
.btn-ghost-brand { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-brand:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--error-deep); border-color: var(--error-deep); }
.btn-sm { padding: 10px 14px; min-height: 44px; font-size: 12px; }
.btn-lg { padding: 18px 32px; font-size: 15px; min-height: 56px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.table td .link-btn, .table td > a:not(.btn):not(:has(*)) { display: inline-flex; align-items: center; min-height: 44px; }
.table td > a:has(strong) { display: block; padding: 6px 0; }
.table td > a strong { display: block; color: var(--brand); font-weight: 600; }
.table td > a strong + span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); cursor: pointer; font-weight: 500; text-decoration: underline; }
.text-link { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.text-link svg { width: 16px; height: 16px; }
.text-link { min-height: 44px; }
.includes li a { display: inline-flex; align-items: center; min-height: 44px; }

.field { display: block; margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--brand); }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 14px; min-height: 48px;
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring-soft); }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { font-size: 13px; color: var(--error); margin-top: 6px; font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.check {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border: 1.5px solid var(--line-strong); background: #fff;
  cursor: pointer; font-size: 14.5px; line-height: 1.5; min-height: 48px;
}
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; cursor: pointer; }
.check.is-checked { border-color: var(--brand); background: var(--tint); }
.check a { color: var(--accent-ink); text-decoration: underline; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline-fields { display: flex; gap: 12px; }
.inline-fields > * { flex: 1; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 24px; background: var(--line-strong); position: relative; transition: background .2s var(--ease); flex: 0 0 auto; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }

.panel { border: 1px solid var(--line); background: #fff; padding: 24px; }
.panel-tint { background: var(--panel); border: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.panel-head h3 { font-size: 18px; }
.knockout { background: var(--brand); color: #fff; padding: 32px; }
.knockout h1, .knockout h2, .knockout h3, .knockout .figure { color: #fff; }
.knockout .muted { color: var(--muted-dk); }
.knockout a:not(.btn) { color: #fff; text-decoration: underline; }
.knockout .rule { border-color: var(--line-dk); }
.notice { border-left: 4px solid var(--brand); background: var(--tint); padding: 14px 18px; font-size: 14px; }
.notice-warn { border-color: var(--warning); background: var(--warning-bg); }
.notice-error { border-color: var(--error); background: var(--error-bg); }
.notice-success { border-color: var(--success); background: var(--success-bg); }
.notice strong { color: var(--brand); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; line-height: 1.4; }
.chip { font-family: var(--body); }
.table th.right, .table th.num { text-align: right; }
.live-layout .player-controls { padding: 12px 16px; border-bottom: 0; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-warn { background: var(--warning-bg); color: var(--warning); }
.chip-error { background: var(--error-bg); color: var(--error); }
.chip-brand { background: var(--tint); color: var(--brand); }
.tag { display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding: 4px 8px; border: 1px solid var(--brand); color: var(--brand); }
.tag-fill { background: var(--brand); color: #fff; }

.meter { height: 6px; background: var(--panel-2); position: relative; overflow: hidden; }
.meter > i { position: absolute; inset: 0 auto 0 0; background: var(--brand); width: 0; transition: width .6s var(--ease); }
.meter-lg { height: 10px; }

.sheet { border-top: 2px solid var(--brand); }
.sheet-head { display: grid; grid-template-columns: 64px 1fr auto 96px; gap: 16px; padding: 10px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet-group { display: grid; grid-template-columns: 64px 1fr auto 96px; gap: 16px; align-items: baseline; padding: 22px 0 10px; border-bottom: 1px solid var(--line); }
.sheet-group .code { color: var(--brand); font-size: 18px; }
.sheet-group h3 { font-size: 20px; }
.sheet-group .meta { font-size: 12.5px; color: var(--muted); grid-column: 3 / 5; text-align: right; }
.sheet-row { display: grid; grid-template-columns: 64px 1fr auto 96px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 52px; }
a.sheet-row:hover { background: var(--panel); text-decoration: none; }
a.sheet-row:hover .title { color: var(--brand); }
.sheet-row .code { font-size: 14px; }
.sheet-row .title { font-weight: 500; font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sheet-row .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sheet-row .dur { text-align: right; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--brand); display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.sheet-row .dur svg { width: 18px; height: 18px; }
.sheet-row.is-done .dur { color: var(--success); }
.sheet-row.is-current { background: var(--tint); box-shadow: inset 4px 0 0 var(--brand); padding-left: 12px; margin-left: -12px; }
.sheet-row.is-locked { color: var(--muted); }
.sheet-row.is-locked .title { color: var(--muted); }
.sheet-row.is-locked .dur { color: var(--muted); }
.sheet-total { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 2px solid var(--brand); margin-top: -1px; }
.sheet-total .label { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; color: var(--brand); }
.sheet-total .figure { font-size: 28px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--brand); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--panel); }
.table .num { text-align: right; font-family: var(--display); font-weight: 700; color: var(--brand); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 20px 20px 20px 0; border-right: 1px solid var(--line); margin-right: 20px; }
.stats > div:last-child { border-right: 0; margin-right: 0; }
.stats .up { margin-bottom: 8px; }
.stats .figure { font-size: 36px; }

.player { position: relative; background: var(--brand-deep); aspect-ratio: 16 / 9; overflow: hidden; user-select: none; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .watermark {
  position: absolute; z-index: 5; pointer-events: none;
  font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.55); text-shadow: 0 1px 2px rgba(0,0,0,.6);
  white-space: nowrap; left: 8px; top: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; transition: left 6s linear, top 6s linear;
  padding: 4px 8px; background: rgba(0,0,0,.18);
}
.player .shield {
  position: absolute; inset: 0; z-index: 6; background: var(--brand); color: #fff;
  display: none; place-items: center; text-align: center; padding: 24px;
}
.player.is-hidden .shield { display: grid; }
.player.is-hidden video { visibility: hidden; }
.player .shield h3 { color: #fff; margin-bottom: 8px; }
.player .shield p { color: var(--muted-dk); max-width: 420px; }
.player-controls { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.player-controls .icon-btn { background: none; border: 1.5px solid var(--brand); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.player-controls .icon-btn svg { width: 20px; height: 20px; }
.player-controls .icon-btn:hover { background: var(--tint); }
.player-controls .scrub { flex: 1; min-width: 160px; height: 44px; display: flex; align-items: center; }
.player-controls .scrub input[type=range] { width: 100%; accent-color: var(--brand); height: 6px; cursor: pointer; }
.player-controls .time { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--brand); min-width: 96px; text-align: right; }
.player-controls select { min-height: 44px; padding: 6px 32px 6px 10px; width: auto; font-size: 13px; }

.lesson-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; min-height: calc(100vh - var(--bar)); }
.lesson-rail { border-right: 1px solid var(--line); background: var(--panel); position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); overflow-y: auto; }
.lesson-rail .rail-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.lesson-rail .rail-head .up { margin-bottom: 4px; }
.lesson-rail .rail-head .meter { margin-top: 12px; }
.rail-group { padding: 16px 20px 6px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 13px; color: var(--brand); letter-spacing: .04em; display: flex; gap: 10px; align-items: baseline; }
.rail-group .code { font-size: 12px; }
.rail-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 20px; font-size: 13.5px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; min-height: 44px; }
.rail-item:hover { background: #fff; text-decoration: none; }
.rail-item.is-current { background: #fff; border-left-color: var(--brand); font-weight: 600; color: var(--brand); }
.rail-item.is-locked { color: var(--muted); }
.rail-item .mark { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.rail-item.is-done .mark { background: var(--brand); border-color: var(--brand); }
.rail-item .mark svg { width: 12px; height: 12px; color: #fff; }
.rail-item .dur { font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--muted); }
.lesson-main { padding: 0 0 64px; min-width: 0; }
.lesson-body { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.lesson-head { padding: 24px 0 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.lesson-head .code { display: block; margin-bottom: 6px; }
.lesson-text h2 { font-size: 24px; margin: 32px 0 12px; }
.lesson-text h3 { font-size: 18px; margin: 24px 0 8px; }
.lesson-text ul, .lesson-text ol { padding-left: 22px; }
.lesson-text li { margin-bottom: 6px; }
.lesson-text blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--panel); font-style: italic; }
.lesson-text .ui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.lesson-text .ui-row .ui-steps { margin: 0; }
.lesson-text .ui-steps { margin: 28px 0; padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.lesson-text .ui-steps img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.lesson-text .ui-steps figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.lesson-text .ui-steps figcaption .up { display: block; margin-bottom: 6px; }
.lesson-text .ui-steps .lead { margin: 0 0 10px; font-weight: 600; }
.lesson-text .ui-steps ol.taps { list-style: none; padding: 0; margin: 0; }
.lesson-text .ui-steps ol.taps li { position: relative; padding-left: 30px; margin-bottom: 6px; }
.lesson-text .ui-steps ol.taps .n { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent, var(--brand)); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.lesson-text .ui-steps .note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .lesson-text .ui-row { grid-template-columns: 1fr; gap: 16px; } }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 40px; flex-wrap: wrap; }
.lesson-nav .btn { min-width: 160px; }
.resources { margin-top: 32px; }
.resources li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); list-style: none; }
.resources ul { padding: 0; margin: 0; }
.resources li svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.resources .doc { display: flex; gap: 10px; align-items: center; font-weight: 500; }

.q { padding: 28px 0; border-bottom: 1px solid var(--line); }
.q .qnum { font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 13px; letter-spacing: .08em; margin-bottom: 6px; }
.q .prompt { font-size: 18px; font-weight: 600; color: var(--brand); margin-bottom: 16px; line-height: 1.4; }
.option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; margin-bottom: 10px; min-height: 52px; font-size: 15px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.option input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: 0 0 auto; }
.option:hover { border-color: var(--brand); }
.option.is-selected { border-color: var(--brand); background: var(--tint); }
.option.is-correct { border-color: var(--success); background: var(--success-bg); }
.option.is-wrong { border-color: var(--error); background: var(--error-bg); }
.option .why { font-size: 13px; color: var(--muted); margin-top: 4px; }
.quiz-result { text-align: center; padding: 48px 24px; }
.quiz-result .figure { font-size: 72px; }

.cert { border: 2px solid var(--brand); padding: clamp(28px, 5vw, 64px); position: relative; background: #fff; }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-strong); pointer-events: none; }
.cert .brand img { height: 44px; }
.cert .cert-name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 52px); text-transform: uppercase; color: var(--brand); line-height: 1; margin: 20px 0 8px; }
.cert .cert-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.cert .sig { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--brand); font-size: 22px; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--bar)); }
.admin-rail { background: var(--brand); color: #fff; padding: 24px 0; position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); overflow-y: auto; }
.admin-rail .up { display: block; color: var(--muted-dk); padding: 18px 24px 8px; }
.admin-rail .up:first-child { padding-top: 0; }
.admin-rail a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500; border-left: 3px solid transparent; min-height: 44px; }
.admin-rail a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-rail a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.admin-rail a.is-active { background: rgba(255,255,255,.1); color: #fff; border-left-color: #fff; font-weight: 600; }
.admin-rail .rail-foot { padding: 20px 24px 0; margin-top: 20px; border-top: 1px solid var(--line-dk); font-size: 12px; color: var(--muted-dk); }
.admin-main { padding: 32px var(--gutter) 64px; min-width: 0; background: #fff; }
body:not(.sales):not(.review):not(:has(.topbar)) { padding-top: var(--bar); }
.admin-main { grid-column: 2; }
.admin-shell:not(:has(.admin-rail)) { background: linear-gradient(90deg, var(--brand) 0 240px, transparent 240px); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 2px solid var(--brand); }
.admin-head h1 { font-size: clamp(26px, 3vw, 34px); }
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input { max-width: 320px; min-height: 44px; padding: 9px 12px; }
.toolbar select { width: auto; min-height: 44px; padding: 8px 36px 8px 12px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs .is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab-panel[hidden] { display: none; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; }
.dropzone { border: 2px dashed var(--line-strong); padding: 32px; text-align: center; color: var(--muted); background: var(--panel); }
.dropzone strong { color: var(--brand); display: block; margin-bottom: 4px; }
.upload-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.upload-row .meter { flex: 1; }
.list-move { display: flex; flex-direction: column; gap: 2px; }
.list-move button { background: none; border: 1px solid var(--line-strong); width: 36px; height: 26px; cursor: pointer; color: var(--brand); display: grid; place-items: center; padding: 0; }
.list-move button svg { width: 12px; height: 12px; }
.editor-row { display: grid; grid-template-columns: 40px 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.editor-row .handle { color: var(--muted); }
.editor-row input.inline { min-height: 40px; padding: 8px 10px; font-size: 14px; }

.modal-backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.is-open { display: flex; }
.modal { background: #fff; width: min(760px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-float); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 24px; overflow-y: auto; font-size: 14.5px; }
.modal-body h4 { margin: 20px 0 6px; color: var(--brand); }
.modal-body h4:first-child { margin-top: 0; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.x-btn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.x-btn svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--brand); color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 200; pointer-events: none; max-width: calc(100% - 40px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float); min-width: 200px; display: none; z-index: 60; }
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--panel); text-decoration: none; }
.dropdown-menu .sep { border-top: 1px solid var(--line); }
.dropdown-toggle { background: none; border: 0; padding: 4px; cursor: pointer; display: flex; align-items: center; gap: 10px; }

.auth { min-height: calc(100vh - var(--bar)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--brand); color: #fff; padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.auth-side .muted { color: var(--muted-dk); }
.auth-side a:not(.btn) { color: #fff; text-decoration: underline; }
.auth-side ol { padding-left: 20px; margin: 24px 0 0; color: var(--muted-dk); font-size: 14px; }
.auth-side li { margin-bottom: 10px; }
.auth-side li strong { color: #fff; }
.auth-form { padding: clamp(32px, 6vw, 80px) var(--gutter); display: flex; align-items: center; }
.auth-form > div { width: min(460px, 100%); margin-inline: auto; }
.auth-form h1 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 8px; }
.steps { display: flex; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.steps li { flex: 1; padding: 10px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.steps li .n { font-family: var(--display); font-weight: 800; width: 22px; height: 22px; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; }
.steps li.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.steps li.is-done { color: var(--success); }
.agreement-box { border: 1.5px solid var(--line-strong); height: 320px; overflow-y: auto; padding: 20px; font-size: 13.5px; background: #fff; line-height: 1.6; }
.agreement-box h4 { margin: 18px 0 6px; color: var(--brand); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.agreement-box h4:first-child { margin-top: 0; }
.agreement-box .ver { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scroll-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.scroll-hint.is-done { color: var(--success); font-weight: 500; }
.scroll-hint svg { width: 16px; height: 16px; }

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.hero .lead { margin: 20px 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.portrait { aspect-ratio: 4 / 5; background: var(--brand); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--muted-dk); text-align: center; padding: 24px; }
.portrait .ph { font-size: 13px; max-width: 260px; }
.portrait .ph strong { display: block; color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; margin-bottom: 6px; }
.portrait .corner { position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--brand); padding: 10px 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split h2 { position: sticky; top: calc(var(--bar) + 24px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--brand); font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--brand); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 640px; }
.price-block { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--brand); }
.price-block > div { padding: 32px; }
.price-block > div + div { border-left: 2px solid var(--brand); }
.price-block .figure { font-size: clamp(40px, 5vw, 60px); }
.includes { list-style: none; padding: 0; margin: 20px 0 0; }
.includes li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.includes li svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.knockout .includes li { border-color: var(--line-dk); }
.knockout .includes li svg { color: #fff; }

.footer { background: var(--brand-deep); color: var(--muted-dk); padding: 40px 0 28px; font-size: 13px; margin-top: auto; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer a { color: #fff; }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .brand img { height: 28px; filter: brightness(0) invert(1); }
.footer .credit { width: 100%; padding-top: 18px; border-top: 1px solid var(--line-dk); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: reveal .6s var(--ease) both; }
.reveal-2 { animation-delay: .1s; } .reveal-3 { animation-delay: .2s; } .reveal-4 { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
  .topbar, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .cert { border-color: #000; }
}

@media (max-width: 1024px) {
  .lesson-layout { grid-template-columns: 280px 1fr; }
  .admin-shell { grid-template-columns: 200px 1fr; }
  .admin-shell:not(:has(.admin-rail)) { background: linear-gradient(90deg, var(--brand) 0 200px, transparent 200px); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .topbar .wrap { gap: 12px; }
  .brand img { height: 28px; }
  .brand .brand-sub { display: none; }
  .account .chip { display: none; }
  .topbar .signin-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: none; position: fixed; top: var(--bar); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 49; box-shadow: var(--shadow-float); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); min-height: 48px; }
  .mobile-nav a.is-active { color: var(--brand); font-weight: 600; background: var(--tint); }
  .account .name { display: none; }
  .hero-grid, .split, .grid-2, .dash-grid, .price-block, .row-2, .auth { grid-template-columns: 1fr; }
  .split h2 { position: static; }
  .price-block > div + div { border-left: 0; border-top: 2px solid var(--brand); }
  .auth-side { order: 2; padding: 32px var(--gutter); }
  .auth-side ol { display: none; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-rail { position: static; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  .lesson-rail.is-collapsed .rail-list { display: none; }
  .rail-toggle { display: flex; }
  .admin-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-main { grid-column: 1; grid-row: 2; }
  .admin-shell:not(:has(.admin-rail)) { background: none; }
  .admin-rail { position: static; height: auto; padding: 0; display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .admin-rail .up, .admin-rail .rail-foot { display: none !important; }
  .admin-rail { flex-direction: row; align-items: stretch; }
  .admin-rail a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 12px 16px; }
  .admin-rail a.is-active { border-bottom-color: #fff; }
  .admin-main { padding: 24px var(--gutter) 48px; }
  .sheet-head { display: none; }
  .sheet-row, .sheet-group { grid-template-columns: 52px 1fr 72px; }
  .sheet-row .kind { display: none; }
  .sheet-row > .meta, .sheet-group > .meta { display: none; }
  .sheet-row .dur, .sheet-group .dur { grid-column: 3; }
  .sheet-total { grid-template-columns: 52px 1fr auto; }
  .editor-row { grid-template-columns: 32px 56px 1fr; }
  .editor-row > :nth-child(n+4) { grid-column: 3; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 10px; }
  .stats > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .stats > div:last-child { border-bottom: 0; }
  .cert .cert-row { flex-direction: column; }
  .modal { max-height: 100vh; }
  .agreement-box { height: 260px; }
}
.nav-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--error); margin-left: 6px; vertical-align: middle; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 24px 16px; }
.badge { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge-plate { width: 84px; height: 64px; display: grid; place-items: center; border: 2px solid var(--brand); background: var(--brand); color: #fff; margin-left: 8px; }
.badge-icon { display: block; }
.badge-icon svg { width: 34px; height: 34px; }
.badge-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; color: var(--brand); line-height: 1.15; margin-top: 4px; }
.badge-meta { font-size: 12px; color: var(--muted); }
.badge.is-locked .badge-plate { background: transparent; border-color: var(--line-strong); color: var(--line-strong); }
.badge.is-locked .badge-name { color: var(--muted); }
.badge-lg .badge-plate { width: 132px; height: 100px; }
.badge-lg .badge-icon svg { width: 54px; height: 54px; }
.badge-lg .badge-name { font-size: 22px; }
.badge-earned-block { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 24px; background: var(--tint); border-left: 4px solid var(--brand); margin-top: 24px; text-align: left; }

.post { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 128px 1fr; gap: 24px; }
.post:first-child { border-top: 2px solid var(--brand); }
.post .when { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.post h3 { font-size: 20px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post p { color: var(--ink); max-width: 680px; }
.post.is-unread h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--error); flex: 0 0 auto; }
.post .by { font-size: 13px; color: var(--muted); margin-top: 10px; }

.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event .date { border: 2px solid var(--brand); text-align: center; padding: 8px 4px; }
.event .date .mon { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.event .date .day { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--brand); }
.event h3 { font-size: 19px; margin: 4px 0; }
.event .meta { font-size: 13px; color: var(--muted); }
.event.is-live { background: var(--tint); padding-left: 16px; padding-right: 16px; margin: 0 -16px; box-shadow: inset 4px 0 0 var(--error); }
.chip-live { background: var(--error); color: #fff; }
.chip-live::before { animation: livepulse 1.4s var(--ease) infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-layout { display: grid; grid-template-columns: 1fr 340px; gap: 0; border: 1px solid var(--line); }
.live-chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.live-chat .msgs { flex: 1; overflow-y: auto; padding: 16px; font-size: 13.5px; max-height: 420px; }
.live-chat .msg { margin-bottom: 12px; }
.live-chat .msg strong { color: var(--brand); display: block; font-size: 12px; }
.live-chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.live-chat input { min-height: 44px; padding: 8px 10px; font-size: 14px; }

.chart-card { border: 1px solid var(--line); padding: 20px 24px 16px; background: #fff; }
.chart-card h3 { font-size: 16px; }
.chart-card .sub { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text, .chart .tick text { fill: var(--muted); font-family: var(--body); font-size: 12px; }
.chart .val { fill: var(--ink); font-family: var(--body); font-size: 12.5px; font-weight: 600; }
.chart .mark { fill: var(--accent); transition: opacity .2s var(--ease); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:focus { outline: none; }
.chart g.col:hover .mark, .chart g.col:focus-within .mark { opacity: .72; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; }
.chart .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--brand); color: #fff; padding: 8px 10px; font-size: 12px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -10px; z-index: 5; opacity: 0; transition: opacity .15s var(--ease); }
.chart-tip.is-on { opacity: 1; }
.chart-tip strong { display: block; font-size: 14px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.hbar .track { height: 18px; background: var(--panel); position: relative; }
.hbar .track i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar .n { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hbar .lab { color: var(--ink); }
.hbar .lab small { display: block; color: var(--muted); font-size: 12px; }
.chart-table-toggle { font-size: 13px; margin-top: 10px; }
.chart-table-toggle summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent-ink); font-weight: 500; }
.score { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); }
.score.is-fail { color: var(--error); }
.score.is-none { color: var(--line-strong); }

.svc { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 18px; }
.svc p { color: var(--muted); font-size: 14px; margin: 4px 0 0; max-width: 620px; }
.partner { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted-dk); }
.partner strong { color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }

@media (max-width: 860px) {
  .post { grid-template-columns: 1fr; gap: 6px; }
  .event { grid-template-columns: 72px 1fr; gap: 14px; }
  .event .act { grid-column: 2; }
  .live-layout { grid-template-columns: 1fr; }
  .live-chat { border-left: 0; border-top: 1px solid var(--line); }
  .hbar { grid-template-columns: 1fr 56px; }
  .hbar .lab { grid-column: 1 / -1; }
  .svc { grid-template-columns: 1fr; }
  .admin-rail .up { display: none !important; }
}

.rail-toggle { display: none; width: 100%; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 14px var(--gutter); font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--brand); font-size: 14px; letter-spacing: .04em; justify-content: space-between; align-items: center; cursor: pointer; }
.rail-toggle svg { width: 18px; height: 18px; }
