@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --ink: #000;
  --white: #fff;
  --pale: #f7f7f7;
  --line: #d9d9d9;
  --hair: #ececec;
  --muted: #595959;
  --ice: #7fd9e8;
  --cyan: #0e7488;
  --orange: #ff8c00;
  --gutter: clamp(18px, 4.6vw, 64px);
  --grid: clamp(22px, 4vw, 52px);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 14px/1.6 var(--mono); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
h1,h2,h3,p,ol,ul,dl,dd { margin: 0; }
h1 { font-size: clamp(32px,5vw,64px); font-weight: 700; line-height: 1.03; letter-spacing: -.065em; overflow-wrap: anywhere; }
h2 { font-size: 17px; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 14px; }
.shell { width: min(100%,1320px); margin-inline: auto; padding-inline: var(--gutter); }
.site-head { background: var(--white); border-bottom: 2px solid var(--ink); }
.site-head-inner { min-height: 59px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.site-head-inner > :last-child { justify-self: end; }
.brand { width: max-content; display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 32px; object-fit: contain; filter: brightness(0); transform: scale(1.18); }
.brand b { font-size: 15px; letter-spacing: .045em; }
.event-name { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 41px; padding: 7px 13px; border: 1px solid var(--ink); border-radius: 0;
  color: var(--ink); background: var(--white); text-decoration: none;
  font-size: 12px; font-weight: 650; cursor: pointer; text-align: center;
}
.btn:hover, .btn[aria-pressed="true"] { background: var(--pale); }
.btn.primary { background: var(--ink); color: var(--white); clip-path: polygon(6px 0,calc(100% - 6px) 0,calc(100% - 6px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 6px) calc(100% - 4px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 4px),0 calc(100% - 4px),0 4px,6px 4px); }
.btn.primary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ice); }
.btn.primary:hover { background: #262626; }
.btn.accent { background: var(--ice); border-color: var(--ice); }
.btn.accent:hover { background: #a6e4ed; }
button:disabled { opacity: .48; cursor: default; }
.under,.text-button { text-decoration: underline; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.text-button { border: 0; padding: 4px 0; background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
.workspace { margin-top: 27px; min-height: calc(100vh - 191px); }
.workspace-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; margin-bottom: 9px; }
.label { font-size: 11px; letter-spacing: .06em; }
.muted { color: var(--muted); }
.minor { font-size: 12px; }
.modes { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 26px; }
.modes a { border-right: 1px solid var(--line); padding: 11px 17px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.modes a:first-child { border-left: 1px solid var(--line); }
.modes a:hover { background: var(--pale); }
.modes a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dot { display: inline-block; margin-left: 8px; width: 8px; height: 8px; vertical-align: 1px; background: var(--ice); }
.notice { margin: -12px 0 18px; border-left: 3px solid var(--cyan); padding: 7px 10px; background: #eaf7fa; }
.index-label { display: table; background: var(--ice); padding: 2px 8px; font-size: 12px; line-height: 1.6; }
.live-grid,.split,.slide-layout,.host-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: var(--grid); align-items: start; }
.live-grid { grid-template-columns: minmax(0,1.19fr) minmax(0,1fr); }
.on-air {
  background-color: var(--pale);
  background-image: linear-gradient(to right,#d6dfe159 1px,transparent 1px),linear-gradient(to bottom,#d6dfe159 1px,transparent 1px),linear-gradient(120deg,transparent,#edf5f7);
  background-size: 72px 72px,72px 72px,100% 100%;
  min-height: 416px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: clamp(19px,3vw,39px);
}
.on-air h1 { margin: 20px 0 25px; max-width: 16ch; }
.live-note { max-width: 45ch; white-space: pre-line; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 17px; }
.action-row.compact { margin-top: 0; justify-content: space-between; }
.sublink { display: inline-block; font-size: 12px; margin-top: 23px; }
.video-box { margin-top: 23px; max-width: 528px; }
.video-box video,.video-box iframe { width: 100%; display: block; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--ink); }
.video-box p { font-size: 11px; margin-top: 5px; color: var(--muted); }
.band-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 46px; padding: 7px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.band-head select { margin-left: 4px; }
#schedule,.rank { list-style: none; padding: 0; }
#schedule li { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 45px; border-bottom: 1px solid var(--hair); padding: 6px; }
#schedule li[aria-current="step"] { border-left: 3px solid var(--cyan); background: #eaf7fa; padding-left: 3px; }
#schedule li strong { font-size: 12px; line-height: 1.36; }
#schedule time,#schedule small { font-size: 11px; font-variant-numeric: tabular-nums; }
#schedule small { color: var(--muted); }
.section-heading { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 12px var(--grid); align-items: end; margin: 2px 0 25px; }
.section-heading h1 { margin-top: 11px; }
.section-heading > p { padding-bottom: 2px; max-width: 46ch; color: var(--muted); }
.flat { min-width: 0; overflow-wrap: anywhere; }
.flat > p { margin-top: 12px; }
.stack { display: grid; gap: 11px; align-content: start; min-width: 0; }
.stack label:not(.check) { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
input:not([type="checkbox"]),textarea,select { border: 1px solid #9f9f9f; border-radius: 0; background: var(--white); padding: 6px 8px; max-width: 100%; min-width: 0; }
textarea { resize: vertical; }
.stack label > textarea,.stack label > input:not([type="checkbox"]),.stack label > select { width: 100%; padding: 8px 10px; font-size: 14px; font-weight: 400; }
.stack > .action-row { margin-top: 0; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; margin: 3px 0; }
.check input { width: 17px; height: 17px; accent-color: var(--cyan); flex: 0 0 auto; }
.feedback { font-size: 12px; color: var(--cyan); }
.feedback:empty { display: none; }
.feedback.error { color: #a01818; }
.editorial-note { background: var(--pale); border-left: 3px solid var(--cyan); padding: 9px 12px; white-space: pre-line; overflow-wrap: anywhere; }
.question,.submission { padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.question-line { white-space: pre-wrap; margin: 5px 0 8px; }
.question-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 11px; }
.question .btn { min-height: 35px; }
.empty { padding: 13px 0; color: var(--muted); font-size: 13px; }
.scene { min-height: 380px; border: 1px solid var(--ink); padding: clamp(16px,3vw,40px); background-color: var(--pale); background-image: radial-gradient(#d7dde0 1px,transparent 1px); background-size: 24px 24px; }
.slide-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; }
.scene h2 { font-size: clamp(27px,4vw,51px); margin: 24px 0 14px; letter-spacing: -.07em; }
#slide-line { font-size: clamp(17px,2vw,25px); line-height: 1.34; max-width: 37ch; }
#slide-detail { margin-top: 15px; color: var(--muted); max-width: 43ch; }
.slide-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 25px; }
.rank li { border-bottom: 1px solid var(--hair); }
.rank button { width: 100%; display: grid; grid-template-columns: 25px minmax(0,1fr) 19px; align-items: center; gap: 8px; padding: 9px 4px; min-height: 35px; border: 0; background: var(--white); text-align: left; cursor: pointer; font-size: 12px; }
.rank button:hover,.rank button[aria-current="true"] { background: #eaf7fa; }
.example-report { margin-top: 21px; padding: 12px 15px; background: var(--pale); border-top: 1px solid var(--ink); }
.example-report p { margin-top: 5px; white-space: pre-wrap; }
.practice-window { position: relative; isolation: isolate; border: 1px solid var(--ink); background-image: radial-gradient(#dfdfdf 1px,transparent 1px); background-size: 24px 24px; }
.practice-window.field-on { background-image: none; }
.practice-window .field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.practice-copy { padding: clamp(16px,2.6vw,32px); }
.practice-copy h2 { font-size: 24px; margin: 12px 0 8px; }
.practice-copy a:focus-visible,.practice-copy button:focus-visible { outline-color: #a45400; }
.orbit { height: 123px; width: min(100%,370px); margin: 10px auto; position: relative; display: grid; place-items: center; }
.orbit b { display: block; width: 11px; height: 11px; background: var(--orange); border-radius: 50%; }
.orbit span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: .07; }
.orbit span:nth-child(1) { left: 4%; top: 11%; } .orbit span:nth-child(2) { right: 4%; top: 11%; }
.orbit span:nth-child(3) { left: 4%; bottom: 11%; } .orbit span:nth-child(4) { right: 4%; bottom: 11%; }
.orbit[data-phase="1"] span,.orbit[data-phase="2"] span { opacity: .85; }
.orbit[data-phase="2"] b { background: var(--ink); }
.phase-rail { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 4px; margin: 14px 0 6px; }
.phase-rail span { height: 3px; background: var(--line); }
.phase-rail span.active { background: var(--orange); }
.pulse-row { display: grid; grid-template-columns: minmax(88px, auto) 1fr 28px; gap: 7px; align-items: center; margin-block: 9px; font-size: 11px; }
.pulse-row progress { width: 100%; height: 12px; accent-color: var(--cyan); }
.auth { max-width: 390px; }
.auth .btn { justify-self: start; }
.queues { margin-top: 24px; }
.submission dl { display: grid; gap: 7px; margin: 8px 0; }
.submission dt { color: var(--muted); font-size: 11px; }
.submission dd { margin-top: 1px; }
.submission textarea { width: 100%; margin-top: 8px; }
.submission .btn { min-height: 35px; }
.footer { padding-block: 17px; margin-top: 31px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.footer::before { content: ""; width: 100%; border-top: 1px solid var(--line); }
@media(max-width:780px) {
  .site-head-inner { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .event-name { display: none; }
  .site-head-inner .btn { padding-inline: 6px; font-size: 10px; min-height: 34px; }
  .modes a { padding: 8px 10px; font-size: 12px; }
  .workspace { margin-top: 18px; }
  .live-grid,.split,.slide-layout,.host-grid,.section-heading { grid-template-columns: minmax(0,1fr); }
  .section-heading { align-items: start; }
  .on-air { min-height: unset; }
  .on-air h1 { margin-block: 15px; }
  .slide-actions .btn { flex: 0 0 auto; }
}

/* The participant and operator use the event's existing typography and grid. */
.audience-bar { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin:-10px 0 24px; padding-bottom:11px; border-bottom:1px solid var(--hair); }
.audience-bar .identity { margin-left:auto; font-size:12px; }
.identity summary { cursor:pointer; }
.identity form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; padding:10px 0; max-width:500px; }
.identity input { display:block; margin-top:4px; }
.locked { padding:34px 0 60px; max-width:700px; }
.locked h1 { margin:20px 0; }
.locked p { margin-bottom:20px; color:var(--muted); }
.modes a[data-locked="true"] { color:var(--muted); }
.modes a[data-locked="true"]::after { content:" · позже"; font-size:9px; font-weight:400; }
.speaker-summary { margin-top:22px; border-top:1px solid var(--line); padding-top:13px; display:grid; gap:3px; }
.speaker-summary a { font-size:12px; text-underline-offset:3px; }
.speaker-panel,.followup-sheet { border-top:1px solid var(--ink); padding:25px 0; }
.speaker-panel h2 { font-size:32px; line-height:1.12; letter-spacing:-.04em; max-width:20ch; margin:17px 0 10px; }
.speaker-panel > p { margin-top:14px; max-width:50ch; }
.speaker-monogram { width:88px; height:88px; display:grid; place-items:center; color:var(--cyan); background-color:#e8f6f8; background-image:linear-gradient(#d9e8e9 1px,transparent 1px),linear-gradient(90deg,#d9e8e9 1px,transparent 1px); background-size:22px 22px; font-size:30px; font-weight:700; }
.resource-list { display:grid; gap:10px; margin:22px 0; }
.resource-list a { padding:11px 0; border-bottom:1px solid var(--line); text-underline-offset:3px; }
.followup-sheet > p { margin-top:14px; }
.host-overview { display:flex; gap:28px; flex-wrap:wrap; align-items:center; padding:18px 0; border-block:1px solid var(--ink); margin:12px 0 25px; }
.host-overview > div { display:grid; gap:6px; }
.host-overview strong { font-size:24px; max-width:450px; line-height:1.2; }
.host-overview .btn { margin-left:auto; }
.settings-row { display:grid; gap:10px; font-size:12px; margin:7px 0 16px; }
.settings-row > label:first-child { display:flex; gap:10px; align-items:center; }
.access-row { padding:12px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(110px,1fr) auto; gap:8px; align-items:center; }
.access-row .access-time { display:flex; gap:7px; grid-column:1/-1; align-items:center; }
.access-row input { font-size:12px; max-width:210px; }
.access-row .btn { min-height:32px; font-size:11px; }
.access-status { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
#access-controls { max-height:520px; overflow:auto; padding-right:5px; }
.roster-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; padding:8px 0; border-bottom:1px solid var(--hair); font-size:12px; }
.roster-row small { color:var(--muted); }
#audience-roster { max-height:440px; overflow:auto; margin-top:12px; }
@media(max-width:780px) { .host-overview .btn { margin-left:0; } .audience-bar .identity { margin-left:0; } .access-row { grid-template-columns:minmax(0,1fr) auto; } .speaker-panel { padding-top:15px; } }
.settings-row > label:first-child { display:grid; grid-template-columns:60px minmax(0,1fr); }
#slide-frame { display:block; width:100%; aspect-ratio:16 / 9; border:0; margin:15px 0; }
.quick-air { display:flex; flex-wrap:wrap; align-items:end; gap:12px 16px; margin-bottom:25px; }
.quick-air label { display:grid; gap:6px; min-width:min(100%,300px); font-size:12px; }
.quick-air select { max-width:450px; width:100%; min-height:41px; }
.quick-air > span { flex:1 1 250px; padding-bottom:9px; }
.modes a[aria-current="page"][data-locked="true"] { color:var(--white); }
