:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #17233a;
  background: #f1f5f7;
  --muted: #506279;
  --line: #dce5ec;
  --green: #08745e;
  --dark-green: #065c4b;
  --navy: #12223b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.container { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .intro, .card-head, .controls, .sample-links {
  display: flex; align-items: center; gap: 12px;
}
.topbar-inner { justify-content: space-between; min-height: 68px; }
.brand { color: var(--navy); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.brand-mark { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; background: var(--navy); }
.brand-mark i { display: block; width: 2px; height: 8px; background: #8ae9c8; border-radius: 3px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 13px; }
.brand-mark i:nth-child(3) { height: 19px; }
.connection { font-size: .875rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8798a9; }
.connection[data-ready="true"] { color: var(--dark-green); }
.connection[data-ready="true"]::before { background: var(--green); }
.intro { justify-content: space-between; align-items: end; padding: 34px 0 25px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); line-height: 1.06; letter-spacing: -.055em; }
h2 { font-size: 1.15rem; letter-spacing: -.018em; }
.intro p { color: var(--muted); margin-top: 10px; }
.model-note { border-left: 2px solid #a9c8bd; padding: 0 0 0 14px; display: grid; gap: 4px; }
.model-note span, footer { color: var(--muted); font-size: .875rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.67fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.column { min-width: 0; display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 2px 4px #15273b05; min-width: 0; }
.card-head { justify-content: space-between; margin-bottom: 14px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .875rem; line-height: 1.45; margin-top: 10px; }
#clipTime, output, dd, td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.visual { min-width: 0; position: relative; overflow: hidden; border-radius: 9px; background: var(--navy); color: #d4e5ed; }
.visual canvas { display: block; width: 100%; height: 92px; }
.visual span { display: block; padding: 4px 12px 11px; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
audio { display: block; width: 100%; height: 38px; margin-top: 10px; }
.controls { flex-wrap: wrap; margin-top: 12px; gap: 8px; }
button, select, textarea { font: inherit; }
button, select { min-height: 40px; border: 1px solid #bfceda; border-radius: 8px; background: white; color: var(--navy); }
button { padding: 7px 12px; font-size: .875rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
button:hover:not(:disabled) { background: #eef4f6; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #29a68f; outline-offset: 3px; }
button:disabled { opacity: .52; cursor: default; }
button.primary { background: var(--green); color: #fff; border-color: var(--green); }
button.primary:hover:not(:disabled) { background: var(--dark-green); }
button.small { min-height: 34px; padding: 4px 10px; }
.record-icon { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
#record[data-recording="true"] .record-icon { border-radius: 2px; }
.download, .text-button { color: var(--dark-green); font-size: .875rem; font-weight: 650; }
.sample-links { margin-top: 10px; gap: 9px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.text-button { background: transparent; border: 0; min-height: 32px; padding: 3px 5px; }
.transcript { min-height: 74px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin-bottom: 12px; }
.transcript.empty { color: var(--muted); }
label { display: block; font-weight: 650; font-size: .875rem; margin: 12px 0 6px; }
.normal { font-weight: 400; }
select, textarea { width: 100%; }
select { appearance: none; padding: 8px 34px 8px 10px; background-image: linear-gradient(45deg, transparent 50%, #506279 50%), linear-gradient(135deg, #506279 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { padding: 9px 10px; border: 1px solid #bfceda; border-radius: 8px; resize: vertical; line-height: 1.4; color: var(--navy); }
.target { padding: 4px 8px; border-radius: 5px; color: #3a5267; background: #ecf2f6; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.target[data-pass="true"] { background: #dff4e8; color: #155d43; }
.target[data-pass="false"] { background: #fce8dc; color: #8a3312; }
.hero-number { display: block; font-size: 2.7rem; font-weight: 720; line-height: 1.02; letter-spacing: -.055em; }
#totalLabel { margin-top: 5px; }
dl { margin: 15px 0 0; }
dl div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 0; font-size: .875rem; gap: 8px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.history { margin-top: 18px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
td:first-child { max-width: 250px; overflow-wrap: anywhere; }
th { color: var(--muted); white-space: nowrap; }
td:nth-child(n+3) { white-space: nowrap; }
footer { padding: 18px 0 25px; }
@media (max-width: 730px) {
  .container { width: calc(100% - 28px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .model-note { display: none; }
  .card { padding: 16px; }
  .topbar-inner { min-height: 58px; }
}
@media (max-width: 380px) {
  .connection { font-size: .75rem; }
  .brand { gap: 6px; }
}

