@font-face {
  font-family: Montserrat;
  src: url("./brand/Montserrat-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("./brand/Montserrat-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./brand/IBMPlexMono-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f6fc;
  --paper-end: #e8e9f6;
  --panel: #fff;
  --ink: #15151f;
  --ink-2: #3a3b4c;
  --muted: #616378;
  --edge: #dadceb;
  --violet: #6b4ef6;
  --violet-deep: #5538d5;
  --violet-soft: #eeeaff;
  --lavender: #a992ff;
  --stage: #0f0f14;
  --stage-rule: #ffffff24;
  --stage-muted: #c5c3d6;
  --cover-bg: radial-gradient(ellipse at 87% 90%, #302254 0%, #1c172d 34%, transparent 68%), #0f0f14;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; min-height: 100vh; background: linear-gradient(158deg, var(--paper) 7%, var(--paper-end)); }
h1, h2, h3, p { margin: 0; }
em { color: var(--violet); font-style: normal; }
button, select, input, textarea { font: inherit; }
button, select, label:has(input[type=radio]), summary { cursor: pointer; }
button:disabled, select:disabled, fieldset:disabled label { cursor: default; }
button { color: inherit; }
a { color: var(--violet-deep); text-underline-offset: .2em; }
:is(button, select, input, textarea, summary, a):focus-visible, input:focus-visible + span {
  outline: 3px solid #876cff; outline-offset: 3px;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icons, [hidden] { display: none !important; }
.page { width: min(1320px, calc(100% - clamp(40px, 8vw, 128px))); margin-inline: auto; }

/* Product header and operator toolbar */
.mast-inner { display: flex; align-items: center; gap: 20px; min-height: 73px; border-bottom: 1px solid #cccedd; }
.brand { display: inline-flex; align-items: center; gap: 15px; flex: none; }
.brand img { display: block; width: 100px; height: auto; }
.masthead .brand img { filter: brightness(.43); }
.brand > span { border-left: 1px solid #c6c7d7; padding-left: 15px; font-size: 19px; line-height: 1.15; letter-spacing: -.055em; font-weight: 600; }
.brand-caption { font-size: 12px; color: var(--muted); }
.engine { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #56586b; font: 500 11px/1.35 var(--mono); }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #8d8a9e; }
.engine .dot.ready { background: #178349; box-shadow: 0 0 0 3px #dceee4; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 32px 0 24px; }
h1 { font-size: clamp(35px, 3.9vw, 58px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; }
.title-actions { display: flex; align-items: center; gap: 9px; }
.secondary, .audience-return, .share-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 9px 14px; border: 1px solid #cbcede; border-radius: 8px;
  background: #ffffff9e; font-size: 13px; font-weight: 600; text-decoration: none;
}
.secondary:hover { border-color: #b0a7d6; background: #fff; }
.secondary svg { width: 16px; height: 16px; }
#listeners { color: var(--violet-deep); background: var(--violet-soft); border-color: #cfc4fb; }
#listeners:hover { background: #e3dcff; }
#share-dot { background: var(--violet); }
.layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) clamp(315px, 29%, 368px); gap: 20px; padding-bottom: 38px; }
.main-column { min-width: 0; display: grid; gap: 16px; }

/* The cover art yields its column as soon as the captions start. */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 377px; overflow: hidden; border-radius: 16px; background: var(--cover-bg); color: #fff; }
.stage-top, .stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-inline: clamp(20px, 2.25vw, 34px); }
.stage-top { min-height: 57px; border-bottom: 1px solid var(--stage-rule); }
.session-state, .reader-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border-left: 2px solid var(--lavender); background: #ffffff0f; color: #d3c7ff; font: 500 10px/1.2 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.session-state .dot { width: 5px; height: 5px; background: #a6a1b6; }
.session-state .dot.active { background: var(--lavender); box-shadow: 0 0 0 3px #aa92ff24; }
.timer, .route { display: flex; align-items: center; gap: 7px; color: var(--stage-muted); font: 500 11px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.timer svg { width: 14px; height: 14px; }
.stage-body { display: grid; align-items: center; flex: 1; min-width: 0; padding: 24px clamp(20px, 2.25vw, 34px); }
.stage.cover .stage-body { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 5px; }
.caption-area { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.target-line, .reader-route { color: var(--lavender); font: 500 11px/1.35 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
#caption { margin-top: 16px; font-size: clamp(34px, 3.5vw, 55px); line-height: 1.06; letter-spacing: -.055em; font-weight: 500; overflow-wrap: anywhere; }
#caption em { display: block; color: var(--lavender); }
#caption.translated { font-size: clamp(30px, 2.65vw, 45px); letter-spacing: -.04em; line-height: 1.17; }
.cover-art { display: none; width: 100%; max-height: 228px; height: auto; object-fit: contain; pointer-events: none; }
.cover .cover-art { display: block; }
.source-text { color: var(--stage-muted); font-size: 14px; line-height: 1.5; margin-top: 14px; }
.sample { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; padding: 8px 11px; border-radius: 7px; border: 1px solid #786b9c; background: #b49bff0b; color: #e0d6ff; font-size: 12px; font-weight: 600; }
.sample svg { width: 14px; height: 14px; fill: currentColor; }
.sample:hover { background: #b49bff20; border-color: var(--lavender); }
.sample:disabled, .share-primary:disabled { opacity: .6; }
.stage-foot { border-top: 1px solid var(--stage-rule); min-height: 48px; }
.signal { display: flex; align-items: center; gap: 7px; color: var(--stage-muted); font: 500 10px/1.35 var(--mono); white-space: nowrap; text-transform: uppercase; }
.signal svg { width: 15px; height: 15px; color: var(--lavender); }
#meter { width: clamp(44px, 7vw, 100px); height: 16px; margin-left: 2px; }
#lag { margin-left: auto; font-size: 10px; text-align: right; }
#lag:empty { display: none; }
.route { gap: 8px; color: #ebe8fc; }
.route b { font-weight: 500; }
.route span { color: var(--lavender); }
.audience-return { display: none; }

/* Operator cards */
.lan-card { display: flex; align-items: center; gap: 15px; padding: 17px 22px; background: var(--violet-soft); border: 1px solid #d5ccfa; border-radius: 13px; min-width: 0; }
.lan-icon { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 10px; color: var(--violet-deep); background: #ded6ff; }
.lan-icon svg { width: 22px; height: 22px; }
.lan-copy { min-width: 0; }
.lan-copy h2 { font-size: 16px; font-weight: 600; letter-spacing: -.035em; }
.lan-copy p { margin-top: 3px; color: #57516d; font-size: 12px; line-height: 1.45; }
.lan-action { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-left: auto; padding: 8px 0 8px 8px; border: 0; color: var(--violet-deep); background: transparent; font-size: 12px; font-weight: 600; }
.lan-action svg { width: 16px; height: 16px; }
.lan-action:hover span { text-decoration: underline; text-underline-offset: 3px; }

.history, .settings { min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 15px; }
.history-head, .settings-head { display: flex; align-items: center; gap: 10px; }
.history-head { justify-content: space-between; padding: 17px 22px; }
.history h2, .settings h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.045em; font-weight: 500; }
.count { font: 500 10px/1.25 var(--mono); color: #56546b; background: #edeef7; padding: 5px 7px; white-space: nowrap; }
.history-empty { border-top: 1px solid #edeef5; padding: 17px 22px 19px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.history-empty svg { width: 16px; height: 16px; }
#history { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
#history li { display: grid; grid-template-columns: 61px minmax(0, 1fr); gap: 13px; padding: 15px 22px; border-top: 1px solid #edeef5; }
#history time { font: 500 11px/1.5 var(--mono); color: var(--muted); padding-top: 3px; }
#history p { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
#history .original { margin-top: 3px; color: var(--muted); font-size: 12px; }
.history-export {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 14px; padding: 12px clamp(14px, 2vw, 22px); border-top: 1px solid var(--edge);
}
#export-label { color: var(--muted); font: 500 10px/1.5 var(--mono); text-transform: uppercase; }
.export-formats { display: flex; flex-wrap: wrap; gap: 6px; }
.export-formats .secondary { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.export-formats .secondary span { color: var(--violet-deep); font: 500 10px/1.3 var(--mono); }
.settings { padding: 20px 22px; border-top: 3px solid var(--violet); }
.settings-head { border-bottom: 1px solid var(--edge); padding-bottom: 15px; margin-bottom: 17px; }
.settings-head svg { color: var(--violet-deep); width: 18px; height: 18px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field > label, .share-block label { display: block; padding: 0; margin-bottom: 7px; color: var(--muted); font: 500 11px/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.source-options, .format-options { display: flex; gap: 5px; }
.source-options label, .format-options label { position: relative; flex: 1; min-width: 0; }
input[type=radio] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.source-options span, .format-options span { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink-2); font-size: 12px; }
.source-options span { padding: 10px 4px; border: 1px solid var(--edge); border-radius: 7px; }
.source-options input:checked + span { background: var(--violet-soft); border-color: #a68efc; color: var(--violet-deep); font-weight: 600; }
.source-options svg { width: 16px; height: 16px; }
.source-options input:not(:checked) + span:hover, .format-options input:not(:checked) + span:hover { background: #f2f1f8; }
.device-row, .select-wrap { display: flex; align-items: center; position: relative; }
.device-row { margin-top: 3px; color: var(--muted); }
.device-row > svg:first-child { position: absolute; left: 1px; width: 13px; height: 13px; pointer-events: none; }
select { appearance: none; text-overflow: ellipsis; }
.device-row select { width: 100%; border: 0; border-radius: 3px; background: transparent; color: var(--muted); padding: 6px 21px; font-size: 11px; }
.chevron { position: absolute; right: 12px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.device-row .chevron { right: 1px; width: 12px; height: 12px; }
.input-hint, .terms-panel p, #terms-status { font-size: 11px; line-height: 1.5; color: var(--muted); }
.input-hint { margin-top: 7px; }
.language-field, .format { margin-top: 16px; }
.select-wrap select, #share-network, .invite-link input {
  width: 100%; min-width: 0; padding: 10px 30px 10px 12px; border: 1px solid #ced0df; border-radius: 7px;
  color: var(--ink); background: var(--panel); font-size: 13px; line-height: 1.35;
}
#language { padding-left: 47px; }
.select-wrap > span { position: absolute; left: 10px; color: #60557e; background: #efedf7; padding: 3px 4px; font: 500 10px/1.2 var(--mono); pointer-events: none; }
fieldset:disabled, select:disabled { opacity: .65; }
.format-options { padding: 3px; gap: 2px; background: #f2f2f8; border: 1px solid var(--edge); border-radius: 8px; }
.format-options label:last-child { flex: 1.55; }
.format-options span { padding: 7px 2px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; font-size: 11px; }
.format-options input:checked + span { color: var(--violet-deep); background: var(--panel); border-color: #d3c9f3; font-weight: 600; }
.terms-panel { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--edge); }
.terms-panel summary { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.terms-panel summary::marker { color: var(--violet-deep); }
.terms-panel label { display: block; font-size: 12px; margin: 12px 0 5px; }
.terms-panel textarea { width: 100%; resize: vertical; font: 500 12px/1.5 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--edge); border-radius: 7px; padding: 8px; }
.start { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 17px; border: 1px solid var(--violet); border-radius: 8px; background: var(--violet); color: white; font-size: 14px; font-weight: 600; }
.start svg { width: 15px; height: 15px; fill: currentColor; }
.start:hover, .share-primary:hover { background: var(--violet-deep); }
.start.running { background: #262431; border-color: #262431; }
.start:disabled { opacity: .6; }
.check-button { width: 100%; margin-top: 7px; min-height: 35px; font-size: 12px; background: var(--panel); }
.check-report dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 14px; padding: 0 22px; margin: 0; }
.check-report dt { font: 500 10px/1.4 var(--mono); color: var(--muted); }
.check-report dd { font-size: 15px; margin: 4px 0 0; }
.check-report > button { margin: 16px 22px; }
.notice { color: #734123; background: #fff1e0; border-left: 2px solid #e8672e; padding: 10px; margin-top: 12px; font-size: 12px; line-height: 1.5; }

/* Listener invitation */
#share-dialog { width: min(486px, calc(100% - 24px)); max-height: min(90dvh, 880px); padding: 0; color: var(--ink); background: white; border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 18px 75px #17112640; }
#share-dialog::backdrop { background: #161621a8; }
.share-heading, .share-block, #share-dialog footer { padding: 18px 22px; }
.share-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.share-heading h2 { font-size: 23px; letter-spacing: -.05em; font-weight: 500; }
.dialog-close { flex: none; width: 35px; height: 35px; border: 0; border-radius: 7px; color: var(--muted); background: #f2f2f8; font-size: 22px; line-height: 1; }
.share-block, #share-dialog footer { border-top: 1px solid var(--edge); }
.share-wifi { background: #f7f5ff; box-shadow: inset 3px 0 0 var(--violet); }
.share-block h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.035em; }
.share-block h3 svg { width: 17px; height: 17px; color: var(--violet-deep); }
.share-block p { margin: 6px 0 13px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.share-block label { margin-bottom: 5px; }
#share-network { appearance: auto; margin-bottom: 8px; }
.share-primary { border-color: transparent; background: var(--violet); color: white; }
#network-live { display: flex; align-items: center; gap: 17px; }
#present-qr { width: min(38%, 152px); flex-shrink: 0; text-align: center; text-decoration: none; font-size: 11px; }
#share-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 5px; background: white; }
#present-qr:hover span, .link-action:hover, .end-show:hover { text-decoration: underline; }
.invite-link { flex: 1; min-width: 0; }
.invite-link input { padding: 8px; font: 500 11px/1.5 var(--mono); }
.invite-link button { margin-top: 7px; }
.link-action { display: inline-block; padding-block: 8px 0; font-size: 12px; text-decoration: none; }
#share-note { margin: 0 22px 14px; color: var(--muted); font-size: 12px; }
.end-show { padding: 5px 0; border: 0; background: transparent; color: #914025; font-size: 12px; }
#stop-remote { margin-left: 6px; }

/* Projector and narrow layouts */
body.audience-mode { background: var(--stage); }
.audience-mode :is(.masthead,.title-row,.settings,.lan-card,.history,.stage-foot,.sample,.source-text,.timer) { display: none; }
.audience-mode .page { width: 100%; max-width: none; padding: 0; }
.audience-mode .layout, .audience-mode .main-column { display: block; padding: 0; }
.audience-mode .stage { border-radius: 0; min-height: 100vh; min-height: 100dvh; }
.audience-mode .stage-top { margin-inline: 5vw; min-height: 72px; }
.audience-mode .audience-return { display: inline-flex; min-height: 34px; background: transparent; border-color: #605b74; color: #e7e4f3; font-size: 12px; }
.audience-mode .audience-return svg { width: 14px; height: 14px; }
.audience-mode .stage-body { padding: 5vh 7vw 9vh; }
.audience-mode #caption { font-size: clamp(36px, 5.8vw, 108px); line-height: 1.14; }
.audience-mode .target-line { font-size: clamp(13px, 1.25vw, 22px); }
.audience-mode .cover-art { max-height: 56vh; }

@media (max-width: 1100px) {
  .layout { gap: 15px; }
  .settings { padding: 17px; }
  .lan-card { padding: 14px 16px; gap: 11px; }
  .signal > svg { display: none; }
}
@media (max-width: 820px) {
  .page { width: calc(100% - 32px); }
  .mast-inner { min-height: 60px; }
  .brand img { width: 85px; }
  .brand-caption { display: none; }
  .title-row { padding: 23px 0 17px; }
  .layout, .main-column { display: contents; }
  main.page { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
  .title-row { margin-bottom: -12px; }
  .stage { order: 1; min-height: 306px; }
  .lan-card { order: 2; }
  .settings { order: 3; }
  .check-report { order: 4; }
  .history:not(.check-report) { order: 5; }
  .audience-mode main.page { gap: 0; padding: 0; }
}
@media (max-width: 560px) {
  .page { width: calc(100% - 24px); }
  .brand { gap: 10px; }
  .brand img { width: 70px; }
  .brand > span { padding-left: 10px; font-size: 16px; }
  .engine { font-size: 10px; gap: 6px; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  h1 { font-size: 36px; }
  .title-actions { gap: 7px; }
  .title-actions .secondary { min-height: 40px; padding: 7px 10px; font-size: 12px; }
  .stage { min-height: 275px; }
  .stage-top { min-height: 47px; }
  .stage.cover .stage-body { grid-template-columns: minmax(0, 1.28fr) minmax(0, .8fr); gap: 0; }
  .stage-body { padding-block: 21px; }
  #caption { font-size: clamp(27px, 7.3vw, 36px); margin-top: 10px; }
  #caption.translated { font-size: clamp(25px, 6.2vw, 32px); }
  .target-line { font-size: 10px; letter-spacing: .045em; }
  .cover-art { width: 108%; justify-self: end; }
  .sample { padding: 7px 8px; margin-top: 15px; font-size: 11px; }
  .stage-foot { min-height: 40px; gap: 6px; flex-wrap: wrap; padding-block: 8px; }
  .signal { gap: 4px; font-size: 9px; }
  #meter { width: 34px; }
  #lag { font-size: 9px; }
  .lan-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 32px; gap: 10px; }
  .lan-icon { width: 31px; height: 31px; border-radius: 7px; }
  .lan-copy h2 { font-size: 14px; }
  .lan-copy p { font-size: 11px; }
  .lan-action { min-height: 40px; width: 32px; justify-content: center; padding: 0; }
  .lan-action::after { content: ""; position: absolute; inset: 0; border-radius: 13px; }
  #lan-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .history-head, .history-empty { padding-inline: 17px; }
  .share-heading, .share-block, #share-dialog footer { padding: 15px 17px; }
  .share-heading h2 { font-size: 20px; }
  .audience-mode .stage-top { min-height: 58px; }
}
@media (max-width: 380px) {
  .stage.cover .stage-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, .6fr); }
  .session-state { font-size: 9px; }
}

/* The organizer follows one session from its source to the saved recording. */
.workflow { margin: -4px 0 22px; }
.workflow ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; list-style: none; margin: 0; padding: 0; }
.workflow li { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 11px/1.45 var(--mono); }
.workflow li + li::before { content: "→"; color: #77718d; }
.workflow li[aria-current="step"] { color: var(--violet-deep); }
#page-title:focus { outline: none; }
body:not([data-view="entry"]) #entry-screen, body[data-view="entry"] #studio-layout,
body[data-view="entry"] .title-actions, body[data-view="results"] .title-actions #audience,
body[data-view="results"] .title-actions #listeners { display: none; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .85fr); gap: 20px; align-items: stretch; }
.entry-form { padding: clamp(20px, 2.4vw, 36px); border-radius: 16px; border: 1px solid var(--edge); border-top: 3px solid var(--violet); background: white; }
.entry-form legend { font: 500 clamp(18px, 1.6vw, 24px)/1.22 Montserrat,sans-serif; text-transform: none; letter-spacing: -.045em; color: var(--ink); margin-bottom: 12px; }
.mode-options, .language-options { display: grid; gap: 9px; }
.mode-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.language-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-options label, .language-options label { position: relative; min-width: 0; }
.mode-options span, .language-options span {
  display: flex; border: 1px solid #d5d7e5; border-radius: 10px; height: 100%; color: var(--ink-2); background: var(--paper);
}
.mode-options span { flex-direction: column; align-items: flex-start; padding: clamp(13px,1.3vw,20px); gap: 7px; }
.mode-options svg { margin-bottom: 4px; color: #716b86; }
.mode-options strong { font-weight: 600; font-size: 19px; line-height: 1.14; letter-spacing: -.045em; }
.mode-options small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.language-options span { justify-content: center; flex-wrap: wrap; align-items: center; padding: 11px 5px; gap: 6px; font-size: 13px; font-weight: 600; }
.language-options b { font: 500 10px/1.1 var(--mono); color: var(--muted); }
.entry-form label input:checked + span { border-color: #9a80ff; background: var(--violet-soft); box-shadow: inset 0 0 0 1px #b29dff; color: var(--violet-deep); }
.entry-form label input:checked + span svg, .entry-form label input:checked + span b { color: var(--violet-deep); }
.entry-form label:hover span { border-color: #a59db9; }
#language-controls { margin-top: 23px; }
#configure { margin-top: 26px; min-height: 45px; }
#configure svg { fill: none; }
.entry-preview { min-width: 0; display: flex; flex-direction: column; padding: clamp(20px,2.4vw,36px); color: white; background: var(--cover-bg); border-radius: 16px; position: relative; overflow: hidden; }
.entry-preview h2 { font-size: clamp(27px,3vw,47px); line-height: 1.06; letter-spacing: -.055em; font-weight: 500; margin: 15px 0; z-index: 1; }
.entry-preview em { display: block; color: var(--lavender); }
.entry-preview img { width: min(60%, 215px); height: auto; margin: auto -6px 6px auto; }
.entry-preview p { color: var(--stage-muted); font-size: 13px; line-height: 1.55; max-width: 39em; }
#library { margin: 18px 0 32px; }
.library-note { padding: 14px 22px 18px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--muted); }
#library-list { margin: 0; padding: 0; list-style: none; max-height: 350px; overflow-y: auto; }
#library-list li { border-top: 1px solid var(--edge); padding: 12px 22px; display: flex; align-items: center; gap: 12px; }
.open-record { flex: 1; min-width: 0; text-align: left; padding: 4px 0; background: transparent; border: 0; }
.open-record strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 15px; }
.open-record:hover strong { color: var(--violet-deep); }
.open-record small, #result-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.remove-record, .link-button { background: transparent; border: 0; padding: 6px 0; color: var(--violet-deep); font-size: 12px; font-weight: 600; }
.remove-record { color: #755044; }
.link-button:hover, .remove-record:hover { text-decoration: underline; }
.chosen-route { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 10px 12px; margin-bottom: 14px; background: var(--violet-soft); border-radius: 8px; }
.chosen-route strong { font-size: 14px; letter-spacing: -.025em; }
.chosen-route span { grid-row: 2; font: 500 11px/1.4 var(--mono); color: var(--violet-deep); }
.chosen-route .link-button { grid-column: 2; grid-row: 1 / 3; }
#session-name { width: 100%; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 7px; color: var(--ink); font-size: 13px; }
#source-instruction { margin: 14px 0 8px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
#list-devices { font-size: 11px; }
.record-option { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.record-option input { margin-top: 2px; accent-color: var(--violet); }
.record-option strong { display: block; font-size: 13px; }
.record-option small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; line-height: 1.45; }
#local-save-hint { margin-top: 10px; }
body[data-view="setup"] .layout { grid-template-columns: minmax(0,1.2fr) minmax(320px,.9fr); }
body[data-view="setup"] .settings { grid-column: 1; grid-row: 1; }
body[data-view="setup"] .main-column { grid-column: 2; grid-row: 1; }
body[data-view="setup"] .main-column > :is(.lan-card,.history),
body[data-view="live"] :is(#device-settings,#model-field,#glossary-panel,#edit-choice,#record-option,#rehearse,#local-save-hint),
body[data-view="results"] :is(.settings,.lan-card),
body[data-view="results"]:not(.audience-mode) .stage { display: none; }
body[data-view="setup"] .stage.cover .stage-body { grid-template-columns: 1fr; }
body[data-view="setup"] .stage.cover .cover-art { display: none; }
body[data-view="setup"] #caption { font-size: clamp(26px,3vw,43px); }
body[data-view="results"] .layout { grid-template-columns: minmax(0,1fr); }
.result-card { min-width: 0; border-radius: 15px; border: 1px solid var(--edge); border-top: 3px solid var(--violet); background: white; padding: 21px 24px; }
.result-card .target-line { color: var(--violet-deep); }
.result-card h2 { margin-top: 10px; font-size: clamp(23px,2.8vw,38px); line-height: 1.13; font-weight: 500; letter-spacing: -.045em; overflow-wrap: anywhere; }
#save-status { margin: 12px 0; color: var(--muted); font-size: 12px; }
#audio-result { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
#audio-result label { font-size: 12px; font-weight: 600; }
#audio-result audio { width: min(100%, 340px); }
#new-session { margin-top: 3px; }
.audience-mode :is(.workflow,#entry-screen,#result-card) { display: none!important; }
@media (max-width: 820px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr) minmax(200px,.62fr); gap: 12px; }
  .entry-form { padding: 17px; }
  .language-options { gap: 5px; }
  .language-options span { font-size: 12px; }
  .workflow { margin-top: 0; }
  body[data-view="setup"] .settings { order: 1; }
  body[data-view="setup"] .stage { order: 2; }
  .result-card { order: 1; }
}
@media (max-width: 600px) {
  .entry-grid { grid-template-columns: minmax(0,1fr); }
  .entry-preview { padding: 15px 17px; }
  .entry-preview h2 { font-size: 22px; margin: 6px 0; } .entry-preview em { display: inline; margin-left: .3em; }
  .entry-preview img { display: none; } .entry-preview p { font-size: 11px; }
  .entry-form legend { font-size: 18px; } .mode-options span { padding: 12px; }
  .mode-options small { font-size: 11px; } .mode-options strong { font-size: 16px; }
  .language-options span { flex-direction: column; gap: 3px; font-size: 11px; padding: 10px 2px; }
  .workflow ol { gap: 5px 7px; } .workflow li { gap: 6px; font-size: 9px; }
  .workflow { margin-bottom: 0; } #library-list li { padding: 10px 14px; }
}
body[data-view="setup"] .stage-body { padding-block: 35px; }
body[data-view="setup"] .stage { min-height: 270px; }
body[data-view="setup"] #audience { display: none; }
#online-inputs .format-options label { flex: 1; }
#online-inputs .format-options span { white-space: normal; text-align: center; }
#secure-entry { margin-top: 8px; }

.entry-guide { margin: 16px 0; padding: 13px 18px; border-left: 2px solid #aa97f0; border-radius: 0 8px 8px 0; background: #ffffff9e; font-size: 13px; }
.entry-guide summary { font-weight: 600; color: var(--ink-2); }
.entry-guide ol { padding-left: 20px; margin-bottom: 5px; line-height: 1.6; }
.entry-guide li + li { margin-top: 5px; }
.entry-guide a { display: inline-block; margin-top: 10px; }

#mobile-stop { display: none; }
@media (max-width: 820px) {
  body[data-view="live"] #mobile-stop:not([hidden]) { display: inline-flex; background: var(--stage); color: white; }
  body[data-view="live"] .settings #start { display: none; }
  .title-actions { flex-wrap: wrap; }
}
.login-page { max-width:1100px; }
.login-page h2 { font-size:clamp(22px,3vw,34px); font-weight:500; letter-spacing:-.04em; }
.login-page form p { margin:12px 0 18px; font-size:14px; line-height:1.55; color:var(--muted); }
.login-page form label { display:block; font:500 11px/1.5 var(--mono); color:var(--muted); margin:14px 0 6px; }
.login-page form input { width:100%; min-height:44px; padding:10px; border:1px solid var(--edge); border-radius:8px; }
.host-logout { margin-left:6px; }

.event-picker{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:15px 0;padding:16px 18px;background:white;border:1px solid var(--edge);border-radius:12px}
.event-picker .field{margin:0;flex:1 1 240px;min-width:0}.event-picker select,#event-url{width:100%;min-height:42px;padding:8px 11px;background:white;border:1px solid var(--edge);border-radius:7px;font:inherit;color:inherit}
#event-save-row{margin:10px 0}#event-save-note,.delivery-card>p,#event-invite-status{font-size:13px;color:var(--muted);line-height:1.55}
#event-save-note{margin-top:7px}.delivery-card dl{padding:0 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:13px;margin:12px 0}
.delivery-card dt{color:var(--muted);font-size:12px}.delivery-card dd{margin:4px 0 0;font:500 17px var(--mono)}.delivery-card>p{padding:0 18px 15px}
#event-invite{width:min(480px,calc(100% - 24px));border:1px solid var(--edge);border-radius:15px;padding:22px;color:var(--ink)}#event-invite::backdrop{background:#18142b70}
#event-invite-status{margin:10px 0}#event-qr{display:block;margin:10px auto}#event-public label{display:block;margin:8px 0;font-size:13px}
.event-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.event-actions a{font-size:13px;color:var(--violet-deep)}#event-access{margin-top:9px}
body[data-view="live"] #event-save-row,.audience-mode .delivery-card{display:none!important}
@media print{
  body:has(#event-invite[open])>*:not(#event-invite){display:none!important}
  #event-invite[open]{position:static;width:100%;max-width:none;max-height:none;overflow:visible;border:0;margin:0;text-align:center}
  #event-invite[open] :is(button,.event-actions,#event-invite-status){display:none!important}
  #event-qr{width:55mm;height:55mm}#event-url{border:0;text-align:center;font-size:12pt}#event-invite::backdrop{background:none}
}

#voice-field{margin:12px 0}#voice-example{margin-top:7px}#voice-example summary{cursor:pointer;font-size:13px;color:var(--violet-deep)}
#voice-preview{display:block;width:100%;margin-top:5px;height:40px}

html:not([data-demo-workspace]) .guest-only,html[data-demo-workspace] #host-logout{display:none!important}
.guest-start{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:15px 0;padding:17px 20px;background:#eeebfc;border:1px solid #d5cdf4;border-radius:13px}
.guest-start h2{margin:0 0 5px;font-size:19px;font-weight:600;letter-spacing:-.03em}.guest-start p{margin:0;color:var(--ink-2);font-size:13px;line-height:1.55}.guest-start .start{width:auto;min-width:184px;margin:0;padding:10px 17px}
@media(max-width:600px){.guest-start{align-items:stretch;flex-direction:column;gap:10px;padding:14px}.guest-start .start{width:100%}.reader-head .brand span{white-space:nowrap}}

.guest-actions{display:grid;min-width:190px;gap:6px}.guest-actions .secondary{justify-content:center;min-height:36px}

.demo-controls{margin:0 clamp(16px,2.4vw,36px);padding:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--stage-rule);color:#e8e4f2}
.demo-progress{display:grid;gap:3px}.demo-progress strong{font-size:14px}.demo-progress span{font-size:12px;color:var(--stage-muted)}
.demo-buttons,.hall-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.demo-buttons button,.stage-zoom{border:1px solid #6b617f;background:transparent;color:#eee8fa;padding:7px 10px;border-radius:7px;font:inherit;font-size:12px;cursor:pointer}
.demo-buttons button:hover,.stage-zoom:hover{background:#ffffff18}.demo-buttons #demo-replay{background:#b9a5ff;color:#201831;border-color:transparent;font-weight:600}.stage-zoom{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;min-height:32px}.stage-zoom svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.75}
.audience-mode :is(.demo-controls,.stage-zoom){display:none!important}.demo-hold .settings{display:none!important}.demo-hold .layout{grid-template-columns:minmax(0,1fr)}
#hall-dialog{width:min(510px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:0;border:1px solid var(--edge);border-radius:16px;color:var(--ink);background:white}#hall-dialog::backdrop{background:#161621a8}
#hall-dialog p{color:var(--muted);font-size:13px;line-height:1.5;margin:8px 0 12px}#hall-dialog h3{margin:0;font-size:16px}#hall-link-box label{display:block;color:var(--muted);font-size:12px;margin:12px 0 5px}#hall-url{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--edge);border-radius:7px;color:var(--ink)}.hall-actions{margin-top:9px}#hall-dialog #hall-note{padding:0 22px 12px;color:var(--violet-deep)}#hall-monitor[aria-pressed="true"]{border-color:var(--violet-deep)}#delivery-card #hall-delivery{padding-bottom:0}
@media(max-width:600px){.demo-controls{align-items:flex-start}.demo-buttons button{min-height:38px}.title-actions{gap:5px}.demo-hold .stage{order:1}}

body[data-view="results"] .title-actions #hall-output{display:none}

#pa-controls{border:0;padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}#pa-controls legend{font:600 16px/1.35 Montserrat,sans-serif;color:var(--ink);margin:0 0 9px}#pa-controls label{display:flex;align-items:center;gap:6px;border:1px solid var(--edge);background:white;border-radius:8px;padding:8px 10px;font-size:13px;cursor:pointer}#pa-controls label:has(input:checked){background:var(--violet-soft);border-color:#a48ce7}#pa-controls input{accent-color:var(--violet)}#hall-dialog #pa-status{color:var(--violet-deep)}
