:root {
  font-family: Inter, system-ui, sans-serif;
  color: #183537;
  background: #f5f8f7;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: #096961;
}
.bar {
  background: #112e33;
  color: white;
}
.bar-inner,
main {
  width: min(1024px, calc(100% - 40px));
  margin: auto;
}
.bar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar a {
  color: #e0ece9;
  text-decoration: none;
  font-size: 0.93rem;
}
.bar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}
.brand img {
  width: 35px;
}
main {
  padding: clamp(28px, 5vw, 68px) 0;
}
.heading {
  margin-bottom: 30px;
}
.kicker {
  font:
    650 0.81rem/1.4 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.105em;
  color: #37746d;
  margin: 0 0 10px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.1rem, 4.7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}
.heading > p:last-child {
  color: #49605f;
  margin-top: 14px;
}
.workspace {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  align-items: start;
  gap: 22px;
}
.card,
.spec,
.privacy {
  border: 1px solid #ccdcd7;
  border-radius: 18px;
}
.card {
  background: white;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 4px 16px #16393306;
}
h2 {
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}
.drop {
  padding: 32px 14px;
  margin: 18px 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  background: #f5faf8;
  border: 1.5px dashed #89aaa2;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.drop.drag {
  background: #d6f2e8;
  border-color: #137468;
}
.drop svg {
  color: #46776d;
}
.drop strong {
  font-size: 1.16rem;
}
.drop span,
#details {
  color: #506663;
  font-size: 0.91rem;
}
button,
.primary {
  line-height: 1.3;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #adc4be;
  background: white;
  color: #165a4f;
}
button:hover {
  background: #edf6f3;
}
.drop button {
  margin-top: 6px;
}
.primary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #126452;
  color: white;
  border-color: #126452;
}
.primary:hover {
  background: #104f43;
}
.primary:disabled {
  background: #e2ebe7;
  color: #50685f;
  border-color: #e2ebe7;
  cursor: default;
}
.spec {
  background: #153b3f;
  color: #f2fbf8;
  padding: 24px;
}
.spec .kicker {
  color: #abdfd3;
}
.spec h2 {
  font-size: 1.7rem;
}
.wave {
  height: 42px;
  margin: 15px 0;
  background: url(wave.svg) left center/100% 100% no-repeat;
}
.spec dl {
  margin: 0;
}
.spec dl div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #35565a;
  padding: 8px 0;
  font-size: 0.91rem;
}
.spec dt {
  color: #c5d8d5;
}
.spec dd {
  margin: 0;
  font-weight: 600;
}
.privacy {
  margin-top: 16px;
  padding: 20px 24px;
  background: #eaf3ee;
}
.privacy h2 {
  font-size: 1.04rem;
}
.privacy p,
footer {
  color: #4f635b;
}
.privacy p {
  margin-top: 5px;
}
.privacy p,
footer {
  font-size: 0.9rem;
}
footer {
  margin-top: 25px;
}
#status,
#result {
  margin-top: 18px;
}
#status.error {
  background: #fff2ee;
  color: #893627;
  padding: 12px;
  border-radius: 8px;
}
#working {
  display: flex;
  gap: 12px;
  align-items: center;
}
progress,
audio {
  width: 100%;
  accent-color: #126452;
}
#result {
  border-top: 1px solid #ccdcd7;
  padding-top: 20px;
}
#outputName {
  overflow-wrap: anywhere;
}
#player {
  margin: 14px 0;
}
#reset {
  display: block;
  margin: 10px auto 0;
  border: 0;
}
.about {
  max-width: 720px;
}
.about p {
  margin: 15px 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #258991;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .bar-inner {
    min-height: 62px;
  }
  .heading {
    margin-bottom: 20px;
  }
}

.waveform-preview { margin: 18px 0 0; }
.waveform-preview figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
#waveCaption, #waveTime { font-size: .86rem; color: #506663; }
#waveform { width: 100%; height: 132px; display: block; background: #f6fafc; border: 1px solid #d9e5eb; border-radius: 8px; }
.wavePlot { position: relative; overflow: hidden; border-radius: 8px; }
#waveform { cursor: crosshair; }
#playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #093a3c; box-shadow: 0 0 0 1px #fff; pointer-events: none; transform: translateX(-1px); }
#ruler { width: 100%; height: 28px; display: block; }
#waveSeek { width: 100%; height: 24px; margin: 0; accent-color: #126452; cursor: pointer; }
.timeReadout { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
