.wave-page { --wave-panel: #13201f; --wave-surface: #192b29; --wave-line: #37504a; --wave-light: #edf7f2; --wave-muted: #a4bab3; --wave-accent: #b9f3d7; }
.wave-intro { padding: 10px 0 23px; }
.wave-intro h1 { margin: 0; font-size: clamp(2rem, 5.1vw, 3.8rem); line-height: 1.04; letter-spacing: -.055em; }
.wave-intro p { margin: 12px 0 0; max-width: 66ch; color: var(--muted); }
.wave-editor { color: var(--wave-light); background: var(--wave-panel); border: 1px solid var(--wave-line); border-radius: 22px; margin-bottom: 24px; overflow: hidden; color-scheme: dark; }
.wave-editor [hidden] { display: none !important; }
.wave-toolbar, .wave-preview-toolbar, .wave-panel-title, .wave-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wave-toolbar { padding: 13px 16px; border-bottom: 1px solid var(--wave-line); flex-wrap: wrap; }
.wave-actions, .wave-segments { display: flex; flex-wrap: wrap; gap: 7px; }
.wave-editor button, .wave-editor select { background: var(--wave-surface); color: var(--wave-light); border: 1px solid var(--wave-line); border-radius: 8px; padding: 7px 11px; min-height: 37px; font: inherit; font-size: .875rem; cursor: pointer; box-shadow: none; }
.wave-editor button:hover { background: #25403a; }
.wave-editor button:disabled { opacity: .45; cursor: default; }
.wave-editor .wave-open, .wave-segments button[aria-pressed=true], .wave-effects button[aria-pressed=true] { color: #122821; background: var(--wave-accent); border-color: var(--wave-accent); font-weight: 700; }
.wave-editor :focus-visible { outline: 2px solid var(--wave-accent); outline-offset: 3px; }
.wave-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 292px); }
.wave-workbench { min-width: 0; display: flex; flex-direction: column; }
.wave-preview-toolbar { padding: 10px 13px; flex-wrap: wrap; border-bottom: 1px solid var(--wave-line); }
#waveAnimationState { margin-inline-start: 4px; font-weight: 700; color: var(--wave-muted); }
#wavePlay[aria-pressed=true] { border-color: var(--wave-accent); }
#wavePlay[aria-pressed=true] #waveAnimationState { color: var(--wave-accent); }
.wave-preview { position: relative; min-width: 0; min-height: 340px; height: clamp(360px, 54vw, 600px); display: grid; place-items: center; padding: 15px; background: #0b1515; flex: 1 0 auto; }
.wave-preview.is-dragging { outline: 2px dashed var(--wave-accent); outline-offset: -7px; }
.wave-preview > p { color: var(--wave-muted); text-align: center; padding: 18px; }
.wave-image-frame { position: relative; max-width: 100%; max-height: 100%; overflow: hidden; border-radius: 6px; background-color: #253c38; background-image: conic-gradient(#304842 25%, transparent 0 50%, #304842 0 75%, transparent 0); background-size: 20px 20px; }
.wave-image-frame canvas { width: 100%; height: 100%; display: block; }
.wave-image-frame canvas[data-local=true] { cursor: crosshair; touch-action: none; }
.wave-image-frame canvas:focus-visible { outline-offset: -4px; }
.wave-comparison-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--wave-light); box-shadow: 0 0 0 1px #06171366; pointer-events: none; transform: translateX(-50%); }
.wave-center-marker { position: absolute; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #121c1c; transform: translate(-50%, -50%); pointer-events: none; }
.wave-split { display: flex; gap: 12px; align-items: center; padding: 8px 13px; color: var(--wave-muted); font-size: .875rem; }
.wave-split input { flex: 1; min-width: 60px; }
.wave-caption { padding: 9px 13px; border-top: 1px solid var(--wave-line); color: var(--wave-muted); font-size: .8125rem; min-width: 0; }
#waveSource { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
#waveDimensions { white-space: nowrap; }
.wave-adjustments { padding: 15px; border-left: 1px solid var(--wave-line); min-width: 0; }
.wave-panel-title h2 { margin: 0; font-size: 1.2rem; }
.wave-panel-title button { min-height: 32px; padding: 4px 8px; }
.wave-effects { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 20px; }
.wave-effects button { display: flex; justify-content: flex-start; align-items: center; gap: 8px; }
.wave-effects button span { font-size: 1.14rem; line-height: 1; }
.wave-fields { display: grid; gap: 5px; }
.wave-fields label { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; color: var(--wave-light); font-size: .875rem; }
.wave-fields output, .wave-effect-hint { color: var(--wave-muted); }
.wave-editor input[type=range] { accent-color: var(--wave-accent); cursor: pointer; }
.wave-fields input { margin: 0 0 10px; width: 100%; min-height: 18px; }
.wave-edge { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-top: 8px; font-size: .875rem; }
.wave-effect-hint { font-size: .875rem; margin: 11px 0 0; }
.wave-status { margin: 0; padding: 10px 13px; border-top: 1px solid var(--wave-line); color: var(--wave-muted); font-size: .875rem; }
@media (max-width: 760px) {
    .wave-workspace { grid-template-columns: minmax(0, 1fr); }
    .wave-adjustments { border-left: 0; border-top: 1px solid var(--wave-line); }
    .wave-effects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wave-preview { height: clamp(280px, 66vw, 520px); min-height: 0; padding: 10px; }
}
@media (max-width: 420px) {
    .wave-toolbar, .wave-preview-toolbar { padding-inline: 9px; }
    .wave-editor button { padding-inline: 7px; }
    .wave-effects button { gap: 5px; }
    .wave-effects button span { font-size: .9rem; }
}
