:root{font-family:Segoe UI,Arial,sans-serif;color:#1e3031;background:#f3f3ec;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header,footer{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:28px 38px}.brand{font-weight:750;font-size:25px;text-decoration:none;color:inherit}.badge{border:1px solid #c9d4c8;border-radius:30px;padding:8px 14px;font-size:12px}main{max-width:1200px;margin:35px auto 65px;padding:0 38px;display:grid;grid-template-columns:0.9fr 1.2fr;gap:64px}.intro{padding-top:35px}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:700;color:#4d7663}h1{font-size:clamp(42px,5vw,66px);line-height:1.06;letter-spacing:-3px;margin:25px 0}h1 em{font-style:normal;color:#528264}.intro>p:last-child{line-height:1.8;color:#657473;font-size:15px}.card{background:#fff;border:1px solid #e1e6dd;border-radius:19px;padding:26px;margin-bottom:18px;box-shadow:0 4px 18px #24352404}h2{font-size:17px;margin:0 0 21px;display:flex;gap:12px;align-items:center}.step{font-size:11px;color:#5b7964;border:1px solid #dce6da;border-radius:50%;padding:7px}.drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 12px;background:#f7f9f3;border:1px dashed #b8c9b4;border-radius:12px;cursor:pointer;text-align:center}.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.drop:focus-within{outline:2px solid #528264}.drop span:last-of-type{font-size:12px;color:#697969}.upload-icon{font-size:26px;color:#528264}.muted{font-size:12px;line-height:1.6;color:#6b7774}audio{width:100%;height:42px;margin:8px 0}fieldset{border:0;padding:0;margin:0}fieldset:disabled{opacity:.45}.modes{display:flex;gap:10px;flex-wrap:wrap}.modes label{font-size:13px;padding:10px 9px;background:#f1f5ef;border-radius:8px;cursor:pointer}input[type=radio]{accent-color:#3c7050}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}label{font-size:12px;font-weight:600}input[type=number],select{display:block;width:100%;padding:11px;border:1px solid #d7ded7;border-radius:8px;margin-top:7px;font:inherit;font-size:15px;background:#fff;color:#243e30}input:focus,select:focus{outline:2px solid #8faa8c}button,.download{background:#2b543d;color:white;border:0;border-radius:9px;padding:14px 20px;font-weight:600;cursor:pointer;text-decoration:none;font-size:13px}button:hover,.download:hover{background:#3c7050}.action{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;margin-top:23px}.action label{width:100px}#status{font-size:13px;line-height:1.6;padding:0 8px}#status.error{color:#a13b30}.download{display:inline-block;margin-top:14px}.result{border-color:#9cb899}footer{font-size:11px;color:#6d7a73;border-top:1px solid #dbe1d5}footer span{margin-left:20px}[hidden]{display:none!important}@media(max-width:760px){main{grid-template-columns:1fr;gap:24px;margin-top:0;padding:0 20px}.intro{padding-top:0}h1{font-size:48px;margin:18px 0}header,footer{padding:22px 20px}.card{padding:20px}.action{gap:12px}footer{align-items:flex-start}}

#wave-panel{margin-top:20px}#wave{display:block;width:100%;height:150px;border-radius:8px;touch-action:none;cursor:crosshair}.wave-scale{display:flex;justify-content:space-between;font-size:11px;color:#6b7774;margin-top:6px}#selection-info{font-size:12px;line-height:1.5}#play-selection{padding:10px 14px;background:#e5eedf;color:#2b543d}
.zoom-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.zoom-buttons button{padding:8px 14px}#zoom-level{font-size:12px}#wave-pan{display:block;width:100%;accent-color:#528264;margin:10px 0}
.markers{margin-top:18px}.marker-row{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.marker-row button,#add-marker{background:#c3edff;color:#083c79;padding:8px 10px}.marker-row input{min-width:100px;flex:1;width:120px;border:1px solid #bcd8e8;border-radius:6px;padding:8px}

.header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#theme-toggle{padding:9px 13px}
:root[data-theme=dark]{color-scheme:dark;background:#101a20;color:#e5edf0}
[data-theme=dark] .card{background:#1b2931;border-color:#344650;box-shadow:none}
[data-theme=dark] .drop,[data-theme=dark] .modes label{background:#22353d;border-color:#526d76}
[data-theme=dark] .muted,[data-theme=dark] .intro>p:last-child,[data-theme=dark] .drop span:last-of-type,[data-theme=dark] .wave-scale,[data-theme=dark] footer{color:#b3c5cc}
[data-theme=dark] h1 em,[data-theme=dark] .eyebrow,[data-theme=dark] .upload-icon{color:#94d5aa}
[data-theme=dark] .step,[data-theme=dark] .badge{color:#b9d7c4;border-color:#526d76}
[data-theme=dark] input[type=number],[data-theme=dark] select,[data-theme=dark] .marker-row input{background:#122129;color:#e5edf0;border-color:#58717c}
[data-theme=dark] input::placeholder{color:#a4b9c3}
[data-theme=dark] button,[data-theme=dark] .download{background:#39724f;color:#fff}
[data-theme=dark] button:hover,[data-theme=dark] .download:hover{background:#458961}
[data-theme=dark] .marker-row button,[data-theme=dark] #add-marker{background:#19486a;color:#bcecff}
[data-theme=dark] #play-selection{background:#2c493b;color:#d0efda}
[data-theme=dark] #status.error{color:#ffb3a7}
[data-theme=dark] footer{border-color:#344650}
@media(max-width:500px){.header-actions{justify-content:flex-end}.header-actions .badge{display:none}}

.gain-control{margin-top:20px}.gain-control input{display:block;width:100%;accent-color:#528264;margin:14px 0}.gain-control output{font-size:13px;margin-right:12px}.gain-control button{padding:8px 10px}

/* Narrow screens and touch controls */
.workspace,.card,fieldset,.grid>label{min-width:0}
#file-info,.marker-row,#selection-info{overflow-wrap:anywhere}
@media(max-width:760px){
 header{gap:12px;flex-wrap:wrap}.brand{font-size:23px}.intro h1{font-size:40px;letter-spacing:-1.5px;margin:12px 0}.intro>p:last-child{font-size:14px;line-height:1.5}
 main{gap:18px;margin-bottom:28px}.card{padding:18px}.grid{gap:12px}
 button,.zoom-buttons button,.marker-row button,#add-marker,#play-selection,#theme-toggle,.gain-control button{min-height:44px}
 input[type=number],select,.marker-row input{font-size:16px;min-height:44px}
 .modes{display:grid;grid-template-columns:1fr;gap:8px}.modes label{min-height:44px;display:flex;align-items:center;gap:8px}
 .marker-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.marker-row>button:first-child{grid-column:1/-1}.marker-row input{grid-column:1/-1;width:100%;min-width:0}
 #wave-pan,.gain-control input[type=range]{height:36px;margin:8px 0}.action{align-items:stretch;flex-direction:column}.action label{width:100%}.action button{width:100%}
 footer{gap:12px;flex-direction:column}footer span{margin:0}.muted{font-size:13px}
}
@media(max-width:360px){main{padding:0 12px}header,footer{padding:18px 12px}.grid{grid-template-columns:1fr}.card{padding:14px}}

.brand{white-space:nowrap}.eyebrow{text-transform:none;letter-spacing:.5px}@media(max-width:500px){header{align-items:flex-start}.brand{font-size:22px}.header-actions{margin-left:auto}}

.legal-page{display:block;max-width:900px;margin:24px auto;padding:0 20px}.legal-page h1{font-size:30px;letter-spacing:-.5px;line-height:1.2}.legal-page h2{margin-top:28px}.legal-page p,.legal-page li{font-size:16px;line-height:1.65}.legal-page li{margin:10px 0}.legal-nav{display:flex;flex-wrap:wrap;gap:14px}.legal-nav a,.service-summary a,.legal-page a{color:#286a52}.notice{padding:14px;background:#fff0cc;color:#634b16;border-radius:8px}footer{flex-wrap:wrap}footer .legal-nav{width:100%}[data-theme=dark] .legal-nav a,[data-theme=dark] .service-summary a{color:#9cdbb7}

#recovery-code,#restore-code{display:block;width:100%;padding:12px;margin:12px 0;font-size:16px;box-sizing:border-box}summary{cursor:pointer;min-height:44px}

.order-row{padding:18px 0;border-bottom:1px solid #81958b55}.order-row p{overflow-wrap:anywhere}

.rights-box{margin:16px 0;padding:16px;border:1px solid #81958b66;border-radius:12px}.rights-label{display:flex;align-items:flex-start;gap:12px;line-height:1.5}.rights-label input[type=checkbox]{width:20px;height:20px;min-width:20px;margin-top:3px;accent-color:#286a52}.rights-box a{display:inline-block;margin-top:12px;color:#286a52}[data-theme=dark] .rights-box a{color:#9cdbb7}.drop:has(input:disabled){opacity:.55;cursor:not-allowed}
