/* RC24 • UI refresh only. Engine, local projects, audio/export untouched. */
.cs-overlay{background:rgba(2,4,12,.92);backdrop-filter:blur(8px)}
.cs-dialog{width:min(1080px,100%);background:#0e101a;border:1px solid #42465f;border-radius:22px;box-shadow:0 25px 90px rgba(0,0,0,.8),0 0 0 1px rgba(170,140,255,.08)}
.cs-head{background:#151724;border-bottom:1px solid #33384e;padding:17px 24px}.cs-head h3{font-family:inherit;font-size:21px;letter-spacing:-.03em;color:#fff}.cs-head small{color:#b9a6ff;font-size:10px}.cs-head button{background:#25283b;border:1px solid #51546e}
.cs-body{background:linear-gradient(180deg,#111522 0,#0c0f19 100%);color:#f4f4fc;padding:19px 24px 36px;scroll-behavior:smooth}
.cs-body h4{font-family:inherit;font-size:19px;letter-spacing:-.025em;font-weight:750;color:#f9f9ff}
.cs-body p{color:#bec3d2;line-height:1.55;font-size:13px}
.cs-body small{color:#beaaff}
.cs-intro{background:radial-gradient(circle at 85% 0%,rgba(99,97,232,.26),transparent 49%),linear-gradient(130deg,#27233b,#161b30);border:1px solid #49426b;border-radius:18px;padding:24px}
.cs-stage-label{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.14em;color:#c6b4ff;font-weight:750}
.cs-signal{display:inline-block;border-radius:50%;background:#66dec7;box-shadow:0 0 0 4px #66dec728;width:8px;height:8px}
.cs-rc24{margin-left:auto;letter-spacing:.03em;border:1px solid #656099;border-radius:7px;padding:4px 7px;color:#c1b2ff}
.cs-intro-content{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cs-intro h4{font-size:clamp(23px,3vw,35px);max-width:550px;line-height:1.1;margin:13px 0 9px}
.cs-intro p{font-size:14px;max-width:520px;margin:0}
.cs-wave{display:flex;align-items:center;justify-content:center;gap:5px;min-width:165px;height:76px;opacity:.88}
.cs-wave i{width:6px;border-radius:6px;background:linear-gradient(#7ad8ce,#a887f5);height:23px}
.cs-wave i:nth-child(3n){height:54px}.cs-wave i:nth-child(2n){height:39px}.cs-wave i:nth-child(7){height:70px}
.cs-workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0 16px}
.cs-workflow button{background:#1b2031;border:1px solid #363e5b;color:#e8e6f3;border-radius:12px;min-height:47px;padding:6px 7px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:9px}
.cs-workflow button span{font-size:10px;font-weight:800;color:#ad94ff}.cs-workflow button:hover{background:#292b48;border-color:#8f79d8}
.cs-project-bar{background:#151a29;border:1px solid #333b55;border-radius:14px;padding:12px;margin:12px 0}
.cs-project-bar label,.cs-settings label{color:#e1dfec}
.cs-body input:not([type=file]):not([type=range]),.cs-body select{background:#171b2a;color:#f9f8ff;border:1px solid #4c526d;border-radius:9px}
.cs-body input:focus-visible,.cs-body select:focus-visible,.cs-body button:focus-visible{outline:3px solid #9be6e0;outline-offset:2px}
.cs-tour{background:#171b29;border:1px solid #3b4161}.cs-tour-head strong{color:#c8b2ff}.cs-tour-grid>div{border-color:#46485e;background:#202537;color:#d5cfe0}.cs-tour-grid b{background:#424264;color:#fff}.cs-tour-grid .done{background:#15332f;border-color:#317d70;color:#e7fff8}
.cs-transport{position:sticky;top:-20px;z-index:3;background:#111725f5;border:1px solid #343d56;border-radius:15px;padding:11px;box-shadow:0 7px 18px #040509aa;backdrop-filter:blur(9px);margin:14px 0}
.cs-compare-phase{background:#25243d;border-left-color:#b99cfb;color:#d5c2ff;border-radius:7px}
.cs-body button{transition:background .15s ease,border-color .15s ease,transform .15s ease}
.cs-body button:active{transform:scale(.98)}.cs-main,.cs-ab,.cs-subtle,.cs-danger{border-radius:10px;background:#23283d;border:1px solid #585f80;color:#f1f1fa;font-weight:700}
.cs-main{background:#8067c7;border-color:#a993ee;color:#fff}.cs-ab{background:#225d66;border-color:#54afb7}.cs-main:hover{background:#9980df}.cs-subtle:hover{background:#343b54}.cs-danger{background:#342330;border-color:#805064}
.cs-settings{background:#151b2a;border:1px solid #303c57}.cs-settings input[type=range]{accent-color:#b59afa}
.cs-tone-settings,.cs-intention,.cs-grid-section,.cs-melody,.cs-save{background:#171c2b;border:1px solid #343c54;border-radius:16px;padding:19px;margin:13px 0;scroll-margin-top:100px}
.cs-tone-settings{background:#171b2a}.cs-tone-settings p{color:#bec3d2}.cs-tone-settings .cs-hint{color:#aeb9cf}
.cs-intent-buttons button{background:#24273d;border:1px solid #4d526c;color:#ddd9eb}.cs-intent-buttons button.selected{background:#493678;border-color:#b299fa}
.cs-time-label,.cs-track{grid-template-columns:minmax(150px,178px) repeat(16,minmax(0,1fr));gap:4px}
.cs-time-label{margin:18px 0 10px}.cs-time-label>span{color:#aeb8d1}.cs-time-label .cs-beat{color:#bca9ff}.cs-time-label .cs-now{background:#6d53c6}
.cs-track{background:#111626;border:1px solid #2e344e;border-radius:10px;padding:6px;margin:7px 0;align-items:center}
.cs-track-name{padding:5px 6px}.cs-track-name strong{font-size:12px;color:#f7f8ff}.cs-track-name button{background:#252c43;border-color:#4f5978}.cs-timbre-control{color:#bec8dc}.cs-timbre-control select{background:#20263a;border-color:#4c5778;min-height:32px;font-size:11px}
.cs-cell{border-radius:6px;background:#22283a;border:1px solid #343d56;min-height:41px;color:#56617a;font-size:17px}
.cs-cell.downbeat{border-left:2px solid #79739f}
.cs-track:has([data-step^="kick:"]) .cs-cell.active{background:#a4598d;border-color:#d994c0;color:#fff;box-shadow:0 0 0 1px #a4598d50,inset 0 -4px 0 #502a47}
.cs-track:has([data-step^="clap:"]) .cs-cell.active{background:#b18a4c;border-color:#e9c17f;color:#fff;box-shadow:inset 0 -4px 0 #66502e}
.cs-track:has([data-step^="hat:"]) .cs-cell.active{background:#467c9c;border-color:#9bd1ee;color:#fff;box-shadow:inset 0 -4px 0 #254559}
.cs-track:has([data-step^="bass:"]) .cs-cell.active{background:#347d70;border-color:#83e0cc;color:#fff;box-shadow:inset 0 -4px 0 #215149}
.cs-cell:hover{border-color:#aa9fe7}.cs-think{background:#1d283a;border-left-color:#66d2c7;color:#e8efff!important}
.cs-save{border-color:#7662a8;background:linear-gradient(120deg,#211d39,#18202e)}
.cs-help{background:#131b29;border-color:#414968}.cs-help summary{color:#c7b2ff}
.cs-status{background:#15231e;color:#b5f5df;border-top-color:#355a52}.cs-status[data-error=true]{background:#33212a;color:#ffcabd}
@media(max-width:680px){.cs-overlay{padding:0}.cs-dialog{border-radius:0;max-height:100dvh}.cs-head{padding:12px 14px}.cs-body{padding:10px 10px 75px}.cs-intro{padding:15px}.cs-wave{min-width:75px;transform:scale(.65);transform-origin:right}.cs-intro-content{align-items:flex-start}.cs-workflow{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.cs-workflow button{font-size:11px;flex-direction:column;gap:1px;padding:6px 0}.cs-intention,.cs-tone-settings,.cs-grid-section,.cs-melody,.cs-save{padding:12px 9px}.cs-track{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:9px;background:#111626}.cs-track-name{grid-column:1/-1;display:grid;grid-template-columns:1fr 45px;column-gap:8px;align-items:center}.cs-track-name strong{font-size:13px}.cs-track-name .cs-timbre-control{grid-column:1/-1;display:grid;grid-template-columns:50px 1fr;align-items:center}.cs-track-name button{width:44px;min-height:38px}.cs-cell{min-height:45px;font-size:18px}.cs-track .cs-cell:nth-child(2),.cs-track .cs-cell:nth-child(10){border-left:3px solid #9480c4}.cs-transport{top:-10px}.cs-transport button{flex:1 1 38%}.cs-intro h4{font-size:23px}.cs-body h4{font-size:18px}}
@media(max-width:360px){.cs-wave{display:none}.cs-transport{gap:5px;padding:7px}.cs-transport button{font-size:12px;padding:8px 4px}.cs-workflow button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.cs-body button{transition:none}}
/* Global audio toolbar remains reachable elsewhere, not over modal workspace. */
body.cs-open #travessiaAudioPanel,body.ml24-open #travessiaAudioPanel{visibility:hidden!important;pointer-events:none!important}
