:root{font:1rem/1.5 system-ui,sans-serif;color:#18362f;background:#f5f7f2;accent-color:#236451}
*{box-sizing:border-box}body{margin:0} [hidden]{display:none!important}
a{color:#185744;font-weight:650}button,input,select,textarea{font:inherit}
button{cursor:pointer;color:#173e34;background:#fff;border:1px solid #9db8ab;border-radius:8px;min-height:44px;padding:.5rem .8rem;font-weight:650}
button:hover:enabled{background:#e7f2ea}button:disabled{opacity:.56;cursor:default}
button.primary{background:#195c48;color:white;border-color:#195c48}button.primary:hover:enabled{background:#114433}
:focus-visible{outline:3px solid #a04523;outline-offset:3px}
header{background:#fff;border-bottom:1px solid #d5e3d9}nav,main{max-width:1120px;margin:auto;padding:0 1rem}nav{display:flex;align-items:center;justify-content:space-between;min-height:65px}
main{padding-top:1rem}.skip{position:absolute;top:-100px;left:1rem;background:#fff;padding:.5rem}.skip:focus{top:1rem}
.intro{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#dceee4;padding:clamp(1rem,4vw,2.25rem);border-radius:16px}.intro p{margin:.4rem 0 0}.intro h1{font-size:clamp(2rem,6vw,3.5rem);line-height:1.08;margin:0;letter-spacing:-.05em}.wave{display:flex;align-items:center;gap:6px;padding:.25rem .75rem}.wave i{background:#388c6f;width:8px;border-radius:10px;height:38px}.wave i:nth-child(2n){height:58px}.wave i:nth-child(4){height:84px}.wave i:is(:first-child,:last-child){height:21px}
.panel{background:white;border:1px solid #d5e3d9;border-radius:12px;padding:clamp(.85rem,2vw,1.35rem);margin-top:1rem;min-width:0}.panel h2,dialog h2{font-size:1.25rem;margin:0 0 .6rem}.section-heading{display:flex;align-items:center;gap:.6rem;margin-bottom:.55rem}.section-heading h2{margin:0}
.project-row,.actions,.tool{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap}.project-row{gap:1rem}.project-row>label{flex:1;min-width:min(100%,220px)}label{display:grid;gap:.3rem;font-weight:650}input,textarea,select{min-width:0;min-height:44px;padding:.45rem .55rem;border:1px solid #9db8ab;border-radius:7px;color:inherit;background:#fff;width:100%}.help{border-radius:50%;padding:0;width:44px;min-width:44px;color:#225946}.toolbar{gap:.5rem 1rem}
.hint{color:#4b6358;font-size:.925rem;margin:.65rem 0}.instructions{white-space:pre-wrap;overflow-wrap:anywhere}summary{font-weight:750;cursor:pointer;padding:.35rem 0}form label{margin:.75rem 0}
.track{border:1px solid #ccddd3;border-radius:10px;padding:.8rem;margin:.75rem 0}.track-name{max-width:27rem}.track-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.5rem 1rem;margin-top:.55rem}.track-controls label:not(.mute){width:8.5rem;font-size:.9rem}.mute{display:flex;align-items:center;gap:.4rem;min-height:44px}.mute input{width:19px;min-height:auto;height:19px}.lane{background:#edf4ef;border-radius:5px;height:25px;margin-top:.7rem;position:relative;overflow:hidden}.clip{position:absolute;border-radius:5px;height:100%;background:#429c7c;min-width:2px}.track:nth-child(even) .clip{background:#437ab0}.playhead{position:absolute;width:2px;height:100%;background:#1d342c}.track-meta{font-size:.875rem;color:#4b6358;margin:.35rem 0}.danger{color:#8a2930}
dialog{max-width:min(34rem,calc(100vw - 2rem));padding:1.25rem;border:1px solid #9db8ab;border-radius:12px;color:inherit}dialog::backdrop{background:#142b24aa}.close{float:right;margin:0 0 .5rem .65rem}footer{display:flex;gap:1rem;padding:1rem 0;font-size:.9rem}
@media(max-width:480px){.wave{display:none}.toolbar{gap:.5rem}.project-row{align-items:stretch}.project-row>.actions{width:100%}}
#sound-dialog{width:min(42rem,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 2rem)}
#sound-list{display:grid;gap:.5rem;list-style:none;margin:0 0 1rem;padding:0}
#sound-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem;padding:.6rem;border:1px solid #d5e3d9;border-radius:8px}
#sound-list p{margin:.15rem 0 0;color:#4b6358;font-size:.9rem}
#sound-status:empty{display:none}
#cut-dialog label{display:flex;justify-content:space-between;gap:1rem}
#cut-dialog input[type="range"]{display:block;margin:0 0 .5rem;padding:0;border:0}
#cut-dialog output{font-variant-numeric:tabular-nums;white-space:nowrap}
#cut-status:empty{display:none}
.clip-edit-button{align-self:end}
#cut-wave{display:block;width:100%;height:70px;background:#f0f5f1;border-radius:6px;margin-bottom:.75rem}
.shared-draft{border-top:1px solid #d5e3d9;padding:.75rem 0}.shared-draft h4,.shared-draft p{margin:0 0 .4rem}.shared-draft details{margin-top:.5rem}
.podcast-viewer :is(#project-panel,#instructions-panel,#team-panel,#teacher-drafts,#undo-cut){display:none!important}
.podcast-viewer .toolbar .tool:not(:has(#play)),.podcast-viewer .track-controls{display:none}
