:root {
  color-scheme: dark;
  background: #111e1b;
  color: #e8e4d8;
  font: 17px/1.6 system-ui, sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 900px; margin: auto; padding: 28px 24px 40px; }
nav, .links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
nav { font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid #425047; }
a { color: #dbcc9f; text-underline-offset: 4px; }
header { padding: 22px 0; }
h1 { font: 34px/1.2 Georgia, serif; margin: 8px 0 12px; }
h2 { font: 24px/1.3 Georgia, serif; margin: 0 0 16px; }
h3 { font: 18px/1.4 system-ui, sans-serif; margin: 20px 0 10px; }
pre { font: 13px/1.6 monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: #d9dabc; margin: 0 0 16px; }
p { color: #b9c5ba; max-width: 65ch; margin: 0 0 16px; }
.eyebrow { font-size: 12px; color: #a4b7a4; margin-bottom: 6px; }
section { border-top: 1px solid #425047; padding: 24px 0; }
.selection-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.segmented { display: inline-flex; border: 1px solid #667b68; border-radius: 4px; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
.segmented button { border: 0; border-right: 1px solid #667b68; padding: 8px 14px; background: transparent; min-height: 44px; }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed=true] { background: #d9dabc; color: #19251c; }
.segmented button:focus-visible { outline-offset: -4px; }
.take-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; color: #a4b7a4; font-size: 13px; }
.waveform { cursor: pointer; touch-action: none; user-select: none; position: relative; height: 134px; overflow: hidden; margin: 8px 0 16px; }
.waveform img { pointer-events: none; display: block; width: 100%; height: 100%; object-fit: fill; }
#playhead { pointer-events: none; transform: translateX(-1px); position: absolute; width: 2px; top: 0; bottom: 0; left: 0; background: #e3bd7a; }
audio { width: 100%; display: block; }
#status { min-height: 24px; font-size: 13px; margin: 6px 0 8px; }
.cue-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.cue-row button { padding: 4px 0; border: 0; background: transparent; color: #dbcc9f; font-size: 13px; min-height: 32px; }
.links, footer { font-size: 14px; }
.model-explanations details { border-top: 1px solid #425047; padding: 14px 0; }
.model-explanations summary { color: #dbcc9f; cursor: pointer; width: fit-content; max-width: 100%; }
.model-explanations details[open] summary { margin-bottom: 14px; }
footer { color: #819386; padding-top: 12px; }
.waveform:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #e3bd7a; outline-offset: 4px; }
@media (max-width: 480px) {
  main { padding: 20px 18px 32px; }
  .selection-row { gap: 12px; }
  .waveform { height: 102px; }
}

.new-badge { display: inline-block; margin-right: 9px; padding: 2px 10px; border-radius: 20px; background: #e3bd7a; color: #19251c; font-weight: 700; letter-spacing: .04em; }
.preserved { font-size: 14px; }

.seek-hint { font-size: 12px; margin: 8px 0 0; }

@media (max-width:480px) { .segmented { display:flex; width:100%; } .segmented button { flex:1; min-width:0; font-size:13px; padding:8px 6px; } }

.take-picker { display: grid; gap: .55rem; margin: 0 0 1rem; }
.take-picker select {
  padding: .7rem .85rem;
  max-width: 100%;
  background: #202923;
  color: #e3e8dd;
  border: 1px solid #748274;
  border-radius: .25rem;
  font: inherit;
}
.take-picker select:focus-visible { outline: 2px solid #c7d4b8; outline-offset: 2px; }
