:root {
  --bg: #09090b;
  --panel: #141417;
  --panel-2: #1b1b20;
  --line: #2b2b31;
  --line-strong: #42424a;
  --text: #f4f4f5;
  --muted: #9898a3;
  --soft: #c7c7ce;
  --good: #7ee2a8;
  --bad: #ff8b8b;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -10%, rgba(97, 97, 112, .28), transparent 31%),
    linear-gradient(180deg, #0b0b0e 0%, var(--bg) 50%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
.shell { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 54px 0 90px; }
.hero { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { margin: 0 0 13px; color: #7f7f89; font-size: 11px; letter-spacing: .18em; font-weight: 800; }
h1 { margin: 0; max-width: 760px; font-size: clamp(52px, 8vw, 92px); line-height: .9; letter-spacing: -.065em; }
.intro { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.privacy-pill { flex: none; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(20,20,23,.8); padding: 10px 13px; border-radius: 999px; color: #c9c9cf; font-size: 12px; }
.privacy-pill span { width: 7px; height: 7px; background: var(--good); border-radius: 50%; box-shadow: 0 0 12px rgba(126,226,168,.7); }
.panel { border: 1px solid var(--line); background: rgba(20,20,23,.94); border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.upload-panel { padding: 13px; }
.dropzone { width: 100%; min-height: 128px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; text-align: left; color: var(--text); border: 1px dashed var(--line-strong); border-radius: 13px; padding: 22px; background: transparent; transition: .16s ease; }
.dropzone:hover, .dropzone.dragging { background: #19191d; border-color: #777781; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #34343b; border-radius: 13px; background: #222228; font-size: 23px; }
.upload-copy strong, .upload-copy small { display: block; }
.upload-copy strong { font-size: 15px; }
.upload-copy small { margin-top: 6px; color: var(--muted); }
.browse, .secondary, .export-button, .icon-button { border: 1px solid #3a3a42; background: #232328; color: #ececef; border-radius: 10px; }
.browse { padding: 11px 15px; font-size: 13px; font-weight: 750; }
.audio-card { padding: 14px 8px 5px; }
.audio-meta { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 10px; padding: 0 7px; }
.audio-meta strong, .audio-meta small { display: block; }
.audio-meta small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.icon-button { min-height: 36px; padding: 0 12px; }
audio { width: 100%; }
.settings-panel { margin-top: 14px; padding: 21px; }
.settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
label > span { display: block; margin: 0 0 8px; color: #b8b8c0; font-size: 11px; font-weight: 800; }
select { width: 100%; height: 44px; color: var(--text); background: var(--panel-2); border: 1px solid #37373e; border-radius: 10px; padding: 0 10px; outline: none; }
select:focus, textarea:focus { border-color: #777782; }
.action-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.primary, .secondary { min-height: 46px; padding: 0 18px; font-weight: 800; }
.primary { border: 0; border-radius: 11px; background: #f2f2f3; color: #111114; }
.status-wrap { flex: 1; min-width: 180px; margin-left: 4px; }
.status-line { display: flex; gap: 8px; align-items: center; color: #c3c3ca; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5b5b65; }
.status-dot.busy { background: white; animation: blink 1.1s infinite; }
.status-dot.done { background: var(--good); }
.status-dot.error { background: var(--bad); }
.progress-track { height: 4px; margin-top: 9px; border-radius: 99px; background: #28282e; overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: #f0f0f2; transition: width .2s ease; }
.error-box { margin-top: 16px; border: 1px solid #713d3d; background: #291818; color: #ffb6b6; border-radius: 12px; padding: 14px; }
.error-box strong { font-size: 13px; }
.error-box p { margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
.error-box details { margin-top: 10px; font-size: 11px; color: #d7a2a2; }
.error-box pre { overflow: auto; white-space: pre-wrap; line-height: 1.45; }
.system-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.system-row span { border: 1px solid #2f2f36; background: #19191d; color: #85858f; padding: 7px 9px; border-radius: 999px; font-size: 10px; }
.footnote { margin: 12px 0 0; color: #777781; font-size: 11px; line-height: 1.55; }
.results { margin-top: 42px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.exports { display: flex; flex-wrap: wrap; gap: 7px; }
.export-button { min-height: 38px; padding: 0 12px; font-size: 12px; font-weight: 800; }
.transcript-panel { padding: 17px; margin-bottom: 12px; }
.transcript-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; color: #bdbdc5; font-size: 12px; }
.text-button { border: 0; background: none; color: #cfcfd5; padding: 0; }
textarea { width: 100%; resize: vertical; outline: none; border: 1px solid #34343b; border-radius: 11px; background: #0f0f12; color: var(--text); padding: 13px; line-height: 1.55; }
.table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.table-head, .transcript-row { display: grid; grid-template-columns: 58px 130px 130px minmax(0,1fr); }
.table-head { min-height: 42px; align-items: center; border-bottom: 1px solid #29292f; color: #777781; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.table-head span { padding: 0 13px; }
.transcript-row { min-height: 76px; border-bottom: 1px solid #29292f; }
.transcript-row:last-child { border-bottom: 0; }
.row-index { display: grid; place-items: start center; padding-top: 18px; color: #666671; font-size: 11px; }
.time-button { align-self: start; margin: 12px 7px; height: 35px; padding: 0 9px; border: 1px solid #33333a; border-radius: 8px; background: #1a1a1f; color: #c3c3cb; font-variant-numeric: tabular-nums; font-size: 11px; }
.row-text { min-height: 76px; border: 0; border-left: 1px solid #29292f; border-radius: 0; background: transparent; }
@keyframes blink { 50% { opacity: .28; } }
@media (max-width: 860px) {
  .settings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { display: block; }
  .privacy-pill { display: inline-flex; margin-top: 20px; }
}
@media (max-width: 640px) {
  .shell { padding-top: 34px; }
  .dropzone { grid-template-columns: auto 1fr; }
  .browse { grid-column: 1 / -1; text-align: center; }
  .settings-grid { grid-template-columns: 1fr; }
  .action-row { align-items: stretch; flex-direction: column; }
  .status-wrap { width: 100%; margin: 5px 0 0; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .table-head { display: none; }
  .transcript-row { grid-template-columns: 50px 1fr 1fr; }
  .row-text { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #29292f; }
}
