:root {
  --ink: #f1f5e9;
  --muted: #a8b1a2;
  --surface: #151b17;
  --surface-2: #1d251f;
  --line: #354137;
  --acid: #d8ff51;
  --green: #54e69a;
  --red: #ff6f72;
  --amber: #ffc85b;
  --blue: #74b9ff;
  --purple: #c397ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #0d110e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 5%, rgba(216,255,81,.11), transparent 28%), radial-gradient(circle at 90% 10%, rgba(84,230,154,.08), transparent 30%);
}
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 56px 0 90px; position: relative; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: end; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: var(--acid); letter-spacing: .14em; font: 700 12px/1.2 ui-monospace, monospace; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 86px); line-height: .93; letter-spacing: -.055em; }
h1 span { color: var(--acid); }
.lede { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.6; margin: 26px 0 0; }
.policy-key { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(21,27,23,.86); }
.policy-key p { margin: 0 0 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.policy-key strong { display: block; margin-bottom: 20px; font-size: 20px; }
.key-row { color: var(--muted); font-size: 13px; margin-top: 10px; }
.dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; margin-right: 8px; }
.allowed { background: var(--green); } .prohibited { background: var(--red); }
.panel { background: rgba(21,27,23,.93); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.upload-panel { margin-bottom: 72px; }
form { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.drop-zone { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px 22px 82px; border: 1px dashed #526154; border-radius: 14px; position: relative; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--acid); background: rgba(216,255,81,.04); }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-zone strong { font-size: 17px; }
.drop-zone small { color: var(--muted); margin-top: 5px; }
.upload-icon { position: absolute; left: 24px; top: 28px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #10140f; background: var(--acid); font-size: 25px; font-weight: 900; }
button, .secondary { border: 0; border-radius: 12px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
.primary { padding: 0 26px; background: var(--acid); color: #11150f; min-width: 235px; }
.primary:disabled { opacity: .5; cursor: wait; }
.secondary { padding: 11px 15px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.progress-wrap { margin-top: 20px; }
.status-line { display: flex; justify-content: space-between; gap: 20px; }
.progress-track { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #090c0a; }
.progress-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--acid)); transition: width .35s; }
#job-detail { color: var(--muted); font: 12px ui-monospace, monospace; }
.error { margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(255,111,114,.5); border-radius: 12px; color: #ffc0c2; background: rgba(255,111,114,.08); white-space: pre-wrap; }
.hidden { display: none !important; }
.results { display: grid; gap: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 42px 0 0; }
h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.section-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
audio { width: 100%; height: 42px; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.model-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.model-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.model-card h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.model-name { color: var(--muted); margin: 4px 0 18px; font: 11px/1.45 ui-monospace, monospace; overflow-wrap: anywhere; }
.badge { flex: none; border-radius: 999px; padding: 5px 8px; color: var(--green); background: rgba(84,230,154,.1); font: 700 10px ui-monospace, monospace; text-transform: uppercase; }
.badge.error-state { color: var(--red); background: rgba(255,111,114,.1); }
.model-error { color: #ffc0c2; font-size: 13px; line-height: 1.5; }
.timeline { position: relative; height: 56px; border-radius: 11px; background: #080b09; overflow: hidden; }
.segment { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; border-right: 1px solid rgba(0,0,0,.4); border-radius: 0; color: #0b0e0b; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 10px ui-monospace, monospace; }
.segment:hover { filter: brightness(1.2); z-index: 2; }
.segment.FEMALE_SINGING { background: var(--red); color: #250304; }
.segment.MALE_SINGING { background: var(--blue); }
.segment.FEMALE_SPEECH, .segment.FEMALE { background: var(--purple); }
.segment.MALE_SPEECH, .segment.MALE { background: var(--green); }
.segment.NO_VOICE, .segment.NOENERGY { background: #465048; color: #f1f5e9; }
.segment.NO_RECORDING { color: #d8ddd7; background: repeating-linear-gradient(135deg, #303732 0 8px, #252b27 8px 16px); }
.segment.MUSIC, .segment.SINGING { background: var(--amber); }
.segment.NOT_SINGING, .segment.NOISE, .segment.SPEECH { background: #8fa092; }
.segment.UNDETERMINED { background: #d0d2cf; }
.ticks { display: flex; justify-content: space-between; color: var(--muted); margin-top: 6px; font: 10px ui-monospace, monospace; }
.interval-list { margin-top: 14px; display: grid; gap: 6px; max-height: 210px; overflow: auto; }
.interval-row { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 9px; border-radius: 9px; background: var(--surface-2); font-size: 12px; cursor: pointer; }
.interval-row:hover { outline: 1px solid #657267; }
.interval-row code { color: var(--acid); }
.interval-row em { color: var(--muted); font-style: normal; }
.audio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audio-grid h3 { font-size: 14px; margin: 0 0 10px; }
.transcript { font-size: 17px; line-height: 1.7; }
.transcript .model-name { margin-bottom: 12px; }
.transcript-empty { color: var(--muted); }
.json-panel summary { cursor: pointer; font-weight: 700; }
pre { max-height: 680px; overflow: auto; padding: 18px; border-radius: 12px; color: #d9e5d8; background: #080b09; font: 11px/1.55 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .hero, form, .model-grid, .audio-grid { grid-template-columns: 1fr; }
  .primary { min-height: 54px; }
  .hero { gap: 28px; }
  .shell { padding-top: 30px; }
  .section-heading { align-items: flex-start; gap: 18px; }
  h2 { font-size: 28px; }
}
