:root {
  color-scheme: light;
  --ink: #182336;
  --muted: #51617b;
  --line: #dbe3ee;
  --blue: #2458b9;
  --paper: #fff;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #eef2f8; color: var(--ink); }
header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px max(24px, calc((100vw - 1300px)/2));
  background: #15233b; color: white;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 750; }
.brand span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #3264ca; font-size: 29px; line-height: 1; }
.brand small { display: block; color: #b7c6e0; font-size: 9px; letter-spacing: .14em; }
header .button, header button { background: transparent; border-color: #526484; color: white; }
header .button:hover, header button:hover, header .button[aria-current=page] { background: #314668; }
main { max-width: 1348px; padding: 24px; margin: auto; }
.hero {
  padding: 22px 26px; margin-bottom: 18px; border: 1px solid var(--line);
  background: linear-gradient(110deg, white 35%, #e3edff); border-radius: 16px;
}
.eyebrow, .panel-label { color: #3b5787; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 4px 0; font-size: clamp(27px, 4vw, 41px); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin: 3px 0 12px; font-size: 19px; }
p { margin: 8px 0 14px; color: var(--muted); }
.actions, .tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
button, .button, select, input, textarea { font: inherit; }
button, .button {
  display: inline-block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: white; color: var(--ink); font-weight: 650; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: #edf4ff; }
button:disabled { opacity: .53; cursor: default; }
:focus-visible { outline: 3px solid #5f92ed; outline-offset: 3px; }
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.primary:hover { background: #18468f; }
#record[aria-pressed=true] { background: #a7283a; border-color: #a7283a; }
.grid { display: grid; grid-template-columns: minmax(205px, 278px) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { min-width: 0; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.queue select { width: 100%; }
input, select, textarea { color: var(--ink); padding: 7px 9px; border: 1px solid #bac8dc; border-radius: 7px; background: white; }
input, textarea { width: 100%; }
textarea { min-height: 190px; resize: vertical; line-height: 1.65; }
label { display: block; margin: 7px 0 4px; font-size: 13px; font-weight: 650; }
#library { margin-top: 11px; color: var(--muted); }
.entry { display: block; width: 100%; margin-top: 7px; text-align: left; overflow-wrap: anywhere; }
.entry small { display: block; color: var(--muted); font-weight: 450; }
.entry[aria-current=true], .tabs [aria-pressed=true] { border-color: #779de6; background: #eaf2ff; color: #163c83; }
#empty { display: grid; min-height: 255px; justify-items: center; align-content: center; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #eaf2ff; color: var(--blue); font-size: 32px; margin-bottom: 10px; }
#title { margin-top: 5px; font-weight: 720; font-size: 20px; }
#date { margin: 5px 0 10px; }
.player { padding: 13px; border-radius: 11px; background: #eef4ff; border: 1px solid #d3e1fa; }
.timeline { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 9px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.timeline input { margin: 0; padding: 0; accent-color: var(--blue); }
.transport-buttons { margin-top: 8px; }
.job-options { margin: 10px 0; }
.metadata, .shortcuts { color: var(--muted); margin-top: 10px; }
summary { font-weight: 650; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; }
fieldset input { max-width: 140px; }
#transport { margin: 8px 0; }
.tabs { margin: 12px 0 8px; }
#editor { margin-bottom: 8px; }
#status { margin-bottom: 0; }
#status:empty { display: none; }
#remove { margin-left: auto; color: #a22536; }
dialog { width: min(92vw, 540px); padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: #14223b99; }
body[data-workspace=transcription] #live, body[data-workspace=transcription] label[for=edit-mode], body[data-workspace=transcription] #edit-mode,
body[data-workspace=dictation] #summarize, body[data-workspace=dictation] label[for=profile], body[data-workspace=dictation] #profile { display: none; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } main { padding: 13px; } .hero { padding: 17px; } }

.device-status { font-size: 13px; margin-bottom: 0; }
#mic-level { width: min(250px, 80%); vertical-align: middle; }
#mic-peak { color: #a22536; margin-left: 8px; }
#setup { max-height: 88vh; overflow: auto; }
#setup select { width: 100%; }
#setup input[type=checkbox] { width: auto; }
#versions textarea { min-height: 100px; }
