* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--vt-line-3) var(--vt-cloud-gray); }
body { margin: 0; color: var(--vt-ink); background: var(--vt-cloud-gray); font: 16px/1.48 var(--vt-font-body); }
button, input, select, textarea { font: inherit; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; opacity: .62; }
a { color: var(--vt-accent-text); }
:focus-visible { outline: 3px solid var(--vt-purple-accent); outline-offset: 3px; }
:where(.rail,.hero,.topbar) :focus-visible { outline-color: var(--vt-halo-blue); }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; z-index: 30; left: 85px; top: -80px; padding: 12px; background: var(--vt-white); }
.skip:focus { top: 10px; }
h1,h2,h3,p { margin: 0; }
h1 { font: 400 clamp(22px, 2.3vw, 30px)/1.25 var(--vt-font-display); letter-spacing: var(--vt-display-tracking); }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 16px; line-height: 1.3; }
small, .secondary { font-size: .875rem; color: var(--vt-text-secondary); }
.eyebrow { color: var(--vt-accent-text); font: 400 .75rem/1.45 var(--vt-font-mono); text-transform: uppercase; letter-spacing: var(--vt-eyebrow-tracking); }
.mono { font-family: var(--vt-font-mono); }

:root { --rail: 72px; }
.rail { position: fixed; z-index: 12; inset: 0 auto 0 0; width: var(--rail); overflow: hidden; background: var(--vt-galaxy-blue); color: var(--vt-white); display: flex; flex-direction: column; }
.rail.open { width: 280px; box-shadow: var(--vt-shadow-dark); }
.shell { margin-left: var(--rail); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.brand-button { width: 100%; height: 68px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--vt-line-on-dark); background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; }
.rail-mark { width: 33px; max-height: 29px; filter: brightness(0) invert(1); }
.rail-wordmark { display: none; width: 207px; }
.rail-caption { display: none; padding: 14px 18px 2px; color: var(--vt-ink-on-dark-2); font: 400 .75rem var(--vt-font-mono); text-transform: uppercase; }
.rail.open .rail-mark { display: none; }
.rail.open .rail-wordmark,.rail.open .rail-caption { display: block; }
.rail nav { display: grid; gap: 6px; padding: 13px 0; }
.nav { position: relative; min-height: 48px; padding: 10px 25px; color: var(--vt-ink-on-dark-2); border: 0; display: flex; align-items: center; gap: 20px; text-decoration: none; white-space: nowrap; font-size: .9rem; }
.nav:hover, .nav[aria-current=page] { color: var(--vt-white); background: var(--vt-line-on-dark); }
.nav[aria-current=page]::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--vt-purple-accent); }
.nav span { visibility: hidden; }
.rail.open .nav span { visibility: visible; }
.rail-bottom { margin-top: auto; border-top: 1px solid var(--vt-line-on-dark); padding: 10px 0; }
.rail-admin { display: none; margin: 0 18px; }
.rail.open .rail-admin { display: block; }
.rail-admin summary, .rail-admin a { display: block; min-height: 48px; padding: 12px 0; color: var(--vt-ink-on-dark-2); }
.sidebar-link { color: var(--vt-ink-on-dark); }
.scrim { position: fixed; inset: 0; background: rgb(var(--vt-galaxy-rgb) / 46%); z-index: 11; }
.topbar { position: sticky; z-index: 5; top: 0; min-height: 68px; border-bottom: 1px solid var(--vt-line-2); padding: 0 28px; background: var(--vt-white); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--vt-ink-3); font-size: .875rem; }
.breadcrumb strong { color: var(--vt-ink); }
.feedback { min-height: 48px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--vt-solar-gold); color: var(--vt-ink); display: inline-flex; gap: 8px; align-items: center; font-size: .875rem; font-weight: 700; }
.feedback svg { width: 17px; height: 17px; }
.mobile-menu { display: none; }

main, footer { width: 100%; max-width: 1600px; margin: 0 auto; padding-inline: 28px; }
main { flex: 1; min-width: 0; padding-block: 30px 40px; }
footer { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 17px; color: var(--vt-ink-3); font: 400 .75rem/1.4 var(--vt-font-mono); }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 18px; }
.page-head p { margin-top: 6px; }
.card { min-width: 0; background: var(--vt-white); border: 1px solid var(--vt-line-1); border-radius: 8px; box-shadow: var(--vt-shadow-sm); }
.panel { padding: 24px; }
.panel + .panel { margin-top: 17px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 14px; }
.margin-top { margin-top: 16px; }
.margin-bottom { margin-bottom: 14px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; text-align: center; font-weight: 700; font-size: .875rem; text-decoration: none; color: var(--vt-ink); background: var(--vt-white); border: 1px solid var(--vt-line-2); border-radius: 6px; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--vt-line-3); background: var(--vt-surface-1); }
.btn.primary { border-color: var(--vt-orbital-purple); background: var(--vt-orbital-purple); color: var(--vt-white); }
.btn.primary:hover { background: var(--vt-galaxy-blue); }
.btn.quiet { padding-inline: 8px; background: transparent; border-color: transparent; color: var(--vt-accent-text); }
.btn.quiet:hover { background: var(--vt-accent-soft); }
.btn.danger { color: var(--vt-danger-strong); border-color: var(--vt-danger-line); }
.btn.light { background: var(--vt-white); color: var(--vt-ink); border-color: var(--vt-white); }
.btn.glass { color: var(--vt-white); background: var(--vt-line-on-dark); border-color: var(--vt-line-on-dark-2); }
.btn.glass:hover { background: var(--vt-line-on-dark-2); }

.hero { min-height: 272px; position: relative; overflow: hidden; display: grid; align-items: center; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); border-radius: 8px; background: var(--vt-gradient-hero-deep); color: var(--vt-white); box-shadow: var(--vt-shadow-md); }
.hero-content { position: relative; z-index: 2; padding: 32px; }
.hero .eyebrow { color: var(--vt-halo-blue); margin-bottom: 12px; }
.hero h2 { font-size: clamp(28px,3.2vw,45px); letter-spacing: -.035em; line-height: 1.09; }
.hero p:not(.eyebrow) { margin-top: 10px; color: var(--vt-ink-on-dark-2); max-width: 410px; }
.hero .row { margin-top: 22px; }
.hero-visual { display: grid; min-height: 100%; align-items: center; justify-items: center; position: relative; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 35px, var(--vt-line-on-dark) 36px, transparent 37px 40px), var(--vt-gradient-halo); mask-image: linear-gradient(90deg, transparent, var(--vt-black) 23%); z-index: -1; opacity: .4; }
.hero-visual::after { content: ""; position: absolute; width: min(76%,340px); aspect-ratio: 1; background: radial-gradient(circle, var(--vt-halo-soft), transparent 65%); z-index: -1; }
.wave { display: flex; width: min(88%,430px); min-height: 138px; align-items: center; justify-content: center; gap: clamp(4px, .66vw, 10px); }
.wave i { display: block; min-width: 4px; width: 6px; border-radius: 999px; background: var(--vt-halo-blue); height: 14px; opacity: .52; }
.wave .w2 { height: 27px; opacity: .65; }
.wave .w3 { height: 44px; opacity: .72; }
.wave .w4 { height: 63px; opacity: .85; }
.wave .w5 { height: 90px; background: var(--vt-cloud-gray); opacity: .87; }
.wave .w6 { height: 116px; background: var(--vt-cloud-gray); opacity: .95; }
.wave .w7 { height: 136px; background: var(--vt-white); opacity: 1; }
.wave.live i { animation: pulse 1.2s alternate infinite ease-in-out; }
.wave.live i:nth-child(3n) { animation-delay: -.6s; }
.wave.live i:nth-child(2n) { animation-delay: -.9s; }
@keyframes pulse { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

.utilities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 15px 0 27px; }
.utility { min-height: 83px; padding: 13px 15px; display: flex; text-align: left; align-items: center; gap: 12px; color: var(--vt-ink); width: 100%; }
button.utility:hover { border-color: var(--vt-accent-line); background: var(--vt-surface-1-soft); }
.utility strong,.utility small { display: block; }
.utility strong { font-size: .9rem; }
.utility small { margin-top: 3px; }
.tile-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; color: var(--vt-accent-text); background: var(--vt-accent-soft); border: 1px solid var(--vt-accent-line); border-radius: 6px; }
.tile-icon.green { color: var(--vt-success-strong); background: var(--vt-success-soft); border-color: var(--vt-success-line); }
.tile-icon.gold { color: var(--vt-warning-strong); background: var(--vt-gold-soft); border-color: var(--vt-gold-line); }

.queue-title { margin: 0 0 12px; }
.toolbar { padding: 12px; display: flex; align-items: center; gap: 9px; }
.search { position: relative; flex: 1; min-width: 140px; }
.search svg { position: absolute; width: 19px; height: 19px; top: 17px; left: 12px; color: var(--vt-ink-3); pointer-events: none; }
.search input { padding-left: 39px; }
.toolbar select { width: auto; min-width: 145px; }
.table-shell { border-top: 1px solid var(--vt-line-1); }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
thead { background: var(--vt-surface-1); }
th { padding: 12px 15px; color: var(--vt-ink-2); font: 400 .72rem var(--vt-font-mono); text-transform: uppercase; letter-spacing: .035em; }
td { padding: 10px 15px; border-bottom: 1px solid var(--vt-line-1); font-size: .9rem; overflow-wrap: anywhere; }
td small { display: block; margin-top: 3px; }
th:nth-child(1) { width: 15%; } th:nth-child(2) { width: 34%; } th:nth-child(3) { width: 14%; } th:nth-child(4) { width: 15%; } th:nth-child(5) { width: 12%; } th:nth-child(6) { width: 10%; }
td:last-child { text-align: right; }
.table-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 15px; font: .75rem var(--vt-font-mono); color: var(--vt-ink-3); }
.badge { display: inline-flex; width: max-content; max-width: 100%; border: 1px solid var(--vt-line-2); padding: 4px 7px; border-radius: 4px; background: var(--vt-surface-1); color: var(--vt-ink-2); font-size: .75rem; font-weight: 700; line-height: 1.2; }
.badge.success { color: var(--vt-success-strong); border-color: var(--vt-success-line); background: var(--vt-success-soft); }
.badge.warn { color: var(--vt-warning-strong); border-color: var(--vt-warning-line); background: var(--vt-warning-soft); }
.badge.info { color: var(--vt-accent-text); border-color: var(--vt-accent-line); background: var(--vt-accent-soft); }
.badge.danger { color: var(--vt-danger-strong); border-color: var(--vt-danger-line); background: var(--vt-danger-soft); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 8px; border: 1px solid var(--vt-line-1); background: var(--vt-surface-1); }
.tabs button { min-height: 48px; padding: 7px 13px; border-radius: 6px; border: none; background: transparent; color: var(--vt-ink-2); font-size: .875rem; font-weight: 700; }
.tabs [aria-selected=true] { background: var(--vt-galaxy-blue); color: var(--vt-white); }

input:not([type=checkbox]),select,textarea { background: var(--vt-white); color: var(--vt-ink); border: 1px solid var(--vt-line-2); border-radius: 6px; min-height: 52px; width: 100%; min-width: 0; padding: 10px 11px; }
select { padding-right: 34px; appearance: none; background: linear-gradient(45deg,transparent 50%,var(--vt-ink-2) 50%) calc(100% - 17px) center / 6px 6px, linear-gradient(135deg,var(--vt-ink-2) 50%,transparent 50%) calc(100% - 11px) center / 6px 6px, var(--vt-white); background-repeat: no-repeat; }
textarea { min-height: 105px; resize: vertical; }
label { display: grid; gap: 5px; font-size: .875rem; font-weight: 700; min-width: 0; }
label.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; min-height: 48px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--vt-orbital-purple); flex: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty { min-height: 130px; display: grid; place-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--vt-text-secondary); }
.message { border: 1px solid var(--vt-line-2); background: var(--vt-surface-1-soft); border-radius: 6px; padding: 12px 14px; font-size: .875rem; }
.error, .form-error { color: var(--vt-danger-strong); }
.message.error { border-color: var(--vt-danger-line); background: var(--vt-danger-soft); }
.notice { display: grid; align-content: start; gap: 9px; padding: 17px; background: var(--vt-surface-1-soft); border: 1px solid var(--vt-line-1); border-radius: 6px; }
.notice p { line-height: 1.5; }

.detail-head { padding: 20px 23px 15px; border-bottom: 1px solid var(--vt-line-1); }
.detail-head h2 { margin-top: 6px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.facts span { display: block; color: var(--vt-ink-3); font-size: .75rem; }
.facts strong { overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 20px; border-bottom: 1px solid var(--vt-line-1); }
.detail-content { padding: 18px 22px 24px; display: grid; gap: 14px; }
.detail-main { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); align-items: start; gap: 14px; }
audio { max-width: 100%; width: 100%; margin: 0; }
.transcript { display: grid; gap: 9px; }
.segment { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--vt-line-1); }
.segment p { overflow-wrap: anywhere; white-space: pre-wrap; }
.segment .btn { padding-inline: 5px; }
.segment form { min-width: 0; }
.segment input { max-width: 320px; }
.segment textarea { min-height: 67px; }
.heading-tools { flex-wrap: wrap; align-items: baseline; }
.mark-list { display: grid; align-items: start; gap: 7px; }
.mark-item { justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 12px; }
.photo-card { padding: 10px; display: grid; align-content: start; gap: 8px; }
.photo-card img { aspect-ratio: 3/2; width: 100%; object-fit: contain; border-radius: 6px; background: var(--vt-surface-1); }
.capture-status { color: var(--vt-white); background: var(--vt-galaxy-blue); border-radius: 8px; padding: 22px; }
.capture-status .wave { margin: 0 auto; }
.capture-status .eyebrow { color: var(--vt-halo-blue); }
.timer { font: 400 clamp(29px,6vw,62px)/1 var(--vt-font-mono); letter-spacing: .02em; }
.capture-bar { justify-content: center; margin-top: 10px; }
.narrow { max-width: 880px; margin-inline: auto; }
details.removal { border: 1px solid var(--vt-danger-line); border-radius: 6px; padding: 2px 12px 7px; }
details.removal summary { min-height: 48px; cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--vt-danger-strong); }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; }

dialog { width: min(calc(100% - 28px),620px); max-height: calc(100% - 24px); color: var(--vt-ink); border: 1px solid var(--vt-line-2); border-radius: 12px; padding: 0; box-shadow: var(--vt-shadow-lg); }
dialog::backdrop { background: rgb(var(--vt-galaxy-rgb) / 50%); }
.dialog-top { position: sticky; z-index: 1; top: 0; background: var(--vt-white); border-bottom: 1px solid var(--vt-line-1); display: flex; align-items: center; justify-content: space-between; padding: 8px 25px; }
.dialog-top .btn { min-width: 48px; padding: 0; }
.dialog-main { padding: 20px 26px 25px; display: grid; gap: 14px; }
.dialog-main > form { display: grid; gap: 12px; }
.dialog-main .submit { width: 100%; min-height: 54px; }
#toast { position: fixed; z-index: 20; bottom: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); width: max-content; background: var(--vt-galaxy-blue); color: var(--vt-white); padding: 11px 16px; border-radius: 6px; box-shadow: var(--vt-shadow-md); font-size: .875rem; }
@media (max-width: 1100px) { th:nth-child(1) { width: 16%; } th:nth-child(2) { width: 30%; } th:nth-child(4) { width: 16%; } th:nth-child(6) { width: 12%; } }
@media (max-width: 900px) {
  .topbar { min-height: 60px; padding-inline: 20px; }
  main,footer { padding-inline: 20px; }
  .hero { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .utility { align-items: flex-start; flex-direction: column; }
  .detail-main { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .hero-content { padding: 22px; }
  .toolbar { flex-wrap: wrap; }
  .tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  table, tbody, tr, td { display: block; width: 100%; }
  table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { display: grid; padding: 11px 13px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3px 10px; border-bottom: 1px solid var(--vt-line-1); }
  td { padding: 2px 0; border: 0; }
  td:nth-child(2) { grid-row: 1; grid-column: 1 / -1; }
  td:nth-child(6) { justify-self: end; grid-row: 3; grid-column: 2; }
  td:nth-child(5) { grid-row: 4; grid-column: 1; }
  td[colspan] { grid-column: 1 / -1 !important; grid-row: auto !important; text-align: center; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  :root { --rail: 0px; }
  .rail:not(.open) { display: none; }
  .topbar { background: var(--vt-galaxy-blue); color: var(--vt-white); min-height: 58px; padding-inline: 12px; justify-content: start; }
  .breadcrumb, .breadcrumb strong { color: var(--vt-ink-on-dark); }
  .mobile-menu { display: grid; min-height: 44px; min-width: 44px; place-items: center; background: transparent; color: var(--vt-white); border: 0; }
  .feedback { min-width: 44px; min-height: 44px; margin-left: auto; padding: 0; justify-content: center; }
  .feedback span { display: none; }
  main,footer { padding-inline: 16px; }
  main { padding-top: 21px; padding-bottom: 29px; }
  footer { flex-wrap: wrap; gap: 5px; }
  .page-head { flex-wrap: wrap; margin-bottom: 15px; }
  .hero { grid-template-columns: minmax(0,1fr); min-height: auto; }
  .hero-visual { max-height: 87px; }
  .wave { min-height: 100px; transform: scaleY(.65); }
  .hero .row { margin-top: 16px; }
  .utilities { grid-template-columns: minmax(0,1fr); gap: 7px; margin-bottom: 20px; }
  .utility { min-height: 62px; padding: 8px 10px; align-items: center; flex-direction: row; }
  .utility .tile-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .btn,.tabs button,.rail-admin summary,.rail-admin a { min-height: 44px; }
  .panel,.detail-content,.detail-head { padding: 15px; }
  .detail-actions { padding: 10px 15px; }
  .facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capture-status { padding: 14px; }
  .capture-bar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 355px) { .breadcrumb { gap: 4px; font-size: .75rem; } .toolbar select { min-width: 100%; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; scroll-behavior: auto !important; } }
.segment .btn { min-width: 48px; }
#live-text { overflow-wrap: anywhere; }
#live-partial { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .badge { width: auto; }
  .panel .spread { flex-wrap: wrap; }
}
.capture-banner { position: sticky; top: 68px; z-index: 4; border-bottom: 1px solid var(--vt-danger-line); background: var(--vt-danger-soft); padding-inline: 28px; }
@media (max-width: 900px) { .capture-banner { top: 60px; padding-inline: 20px; } }
@media (max-width: 560px) { .capture-banner { top: 58px; padding-inline: 16px; } }
.search input[type=search] { padding-left: 39px; }
@media (max-width: 560px) {
  .hero-visual { min-height: 96px; max-height: none; }
  .hero-visual .wave { min-height: 0; height: 96px; }
}
