:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #102923; color: #eeeade; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 85% 5%, #27483a 0, transparent 50%); }
main { max-width: 1000px; padding: 34px 36px 20px; margin: auto; }
header, .section-heading, .clip, footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
header { border-bottom: 1px solid #416052; padding-bottom: 24px; }
.wordmark { color: inherit; text-decoration: none; font-size: 24px; font-weight: 650; letter-spacing: -1px; }
.wordmark span { color: #97ac9d; font-weight: 400; }
.badge, .eyebrow, .section-heading > span, footer > span { font: 11px ui-monospace, monospace; letter-spacing: 1.3px; }
.badge { border: 1px solid #668672; padding: 9px 11px; border-radius: 30px; color: #c4d0b9; }
.intro { padding: 55px 0 32px; }
.eyebrow { color: #bbc997; }
h1 { margin: 20px 0; font: 72px/1.02 Georgia, serif; letter-spacing: -3px; font-weight: 400; }
h1 em { color: #d2db9c; font-weight: 400; }
.description { color: #b7c4b9; line-height: 1.7; }
.studio { background: #19362e; border: 1px solid #426052; border-radius: 18px; padding: 28px; }
h2 { margin: 0; font-size: 18px; font-weight: 500; }
h2 span { font: 12px ui-monospace, monospace; color: #a5b98c; margin-right: 14px; }
.section-heading > span { color: #96ac9b; font-size: 10px; }
.hint { color: #b0bfb2; font-size: 13px; line-height: 1.5; }
.capture, .transport { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
button { background: transparent; color: #eeeade; border: 1px solid #6c8674; border-radius: 7px; padding: 12px 18px; font: 14px system-ui, sans-serif; cursor: pointer; min-height: 44px; }
button.primary { background: #d2db9c; border-color: #d2db9c; color: #183129; font-weight: 600; }
button:hover:enabled { filter: brightness(1.12); }
button:disabled { opacity: 0.38; cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid #e9f4ad; outline-offset: 4px; }
.clip { font: 12px ui-monospace, monospace; color: #bdcbbd; }
#clip-name { overflow-wrap: anywhere; }
canvas { display: block; width: 100%; height: 90px; margin: 12px 0; border-radius: 8px; background: #112a23; }
.mix-heading { margin-top: 32px; border-top: 1px solid #426052; padding-top: 26px; }
.mixer { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 26px; }
label { font-size: 14px; }
output { float: right; color: #d2db9c; font: 12px ui-monospace, monospace; }
input[type=range] { display: block; width: 100%; accent-color: #d2db9c; margin: 18px 0 4px; min-height: 24px; }
#status { border-top: 1px solid #426052; padding-top: 18px; font-size: 13px; color: #c6d2b8; line-height: 1.6; margin-bottom: 0; }
#status.error { color: #ffbcaa; }
progress { width: 100%; accent-color: #d2db9c; }
footer { align-items: flex-start; margin-top: 24px; color: #9bad9e; }
footer > span { flex-shrink: 0; padding-top: 13px; font-size: 10px; }
footer p { font-size: 12px; line-height: 1.6; max-width: 330px; }
@media (max-width: 600px) {
  main { padding: 22px 18px; }
  h1 { font-size: 56px; }
  .intro { padding-top: 32px; }
  .studio { padding: 20px 16px; }
  .section-heading > span { display: none; }
  .mixer { grid-template-columns: 1fr; gap: 18px; }
  footer { display: block; }
  .badge { font-size: 9px; letter-spacing: 0.5px; }
}

.harmony-settings { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
select { display: block; margin-top: 8px; min-height: 44px; background: #112a23; color: #eeeade; border: 1px solid #6c8674; border-radius: 7px; padding: 8px; font: inherit; }
select:focus-visible { outline: 2px solid #e9f4ad; outline-offset: 4px; }
select:disabled { opacity: 0.5; }

.live-panel { border: 1px solid #426052; border-radius: 8px; padding: 14px; margin: 20px 0; }
.live-panel summary { cursor: pointer; min-height: 30px; }
.live-panel label { display: block; margin-top: 16px; }

#chord-panel { margin: 16px 0; }
#chord-timeline { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
#chord-timeline li { border: 1px solid #426052; border-radius: 6px; padding: 8px; font-size: 12px; }

.active-harmony { color: #d2db9c; font-size: 14px; line-height: 1.6; }

.pitch-deviation-chart, .pitch-time-chart { display: block; width: 100%; max-width: 700px; margin: 20px auto; background: #112a23; border-radius: 8px; }
.pitch-deviation-chart text, .pitch-time-chart text { fill: #bdcbbd; font: 15px system-ui, sans-serif; }
.pitch-grid { stroke: #426052; stroke-width: 1; }
.pitch-bar { fill: #93ad9a; }
.pitch-bar-zero { fill: #d2db9c; }
.pitch-zero { stroke: #e9f4ad; stroke-width: 1; stroke-dasharray: 3 3; }
#pitch-time { width: 100%; }
.pitch-trace { fill: none; stroke: #d2db9c; stroke-width: 1.5; stroke-linejoin: round; }
.pitch-trace-point { fill: #d2db9c; }
.pitch-time-cursor { stroke: #93ad9a; stroke-width: 1; stroke-dasharray: 3 3; }
.pitch-time-marker { fill: #e9f4ad; stroke: #112a23; stroke-width: 1.5; }
#pitch-panel > summary, #pitch-timeline-panel > summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.check-control { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-control input { accent-color: #d2db9c; width: 20px; height: 20px; }
#normalize[aria-pressed="true"] { border-color: #d2db9c; color: #d2db9c; }
