/* Travessia · Estúdio Criativo RC15 */
.cs-open{overflow:hidden}.cs-overlay{display:none;position:fixed;inset:0;z-index:125;align-items:center;justify-content:center;padding:12px;background:rgba(3,4,7,.91)}.cs-overlay.open{display:flex}.cs-dialog{background:linear-gradient(155deg,#161312,#0c0b0f 74%);border:1px solid #694b41;border-radius:19px;width:min(930px,100%);max-height:95dvh;display:flex;flex-direction:column;box-shadow:0 20px 90px #000}.cs-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 22px;border-bottom:1px solid #49352e}.cs-head h3{font-family:Georgia,serif;font-size:22px;margin:0}.cs-head small{font-size:10px;color:#efa985;letter-spacing:.11em;font-weight:800}.cs-head button{background:#271c1b;border:1px solid #79564a;border-radius:12px;color:#fff;min-height:44px;min-width:44px;font-size:20px;cursor:pointer}.cs-body{overflow-y:auto;overscroll-behavior:contain;padding:17px 22px 30px;color:#f4ede8;line-height:1.45}.cs-body h4{font-family:Georgia,serif;font-size:21px;line-height:1.2;margin:0 0 9px}.cs-body p{font-size:13px;color:#d5c4b9;margin:4px 0 9px}.cs-body small{color:#e8ad86}.cs-intro{padding:18px 20px;background:linear-gradient(115deg,#311813,#171115);border:1px solid #754b3d;border-radius:15px}.cs-intro h4{font-size:25px;margin:4px 0}.cs-project-bar{display:flex;align-items:end;gap:11px;flex-wrap:wrap;margin:17px 0}.cs-project-bar label,.cs-settings label{font-size:12px;color:#ddc8bd;display:grid;gap:7px;flex:1;min-width:190px;font-weight:700}.cs-body input:not([type="file"]):not([type="range"]),.cs-body select{width:100%;background:#211b1b;color:#faf3ee;border:1px solid #735347;min-height:45px;border-radius:9px;padding:10px 11px;font:inherit}.cs-tour{background:#151414;border:1px solid #6b5144;border-radius:14px;padding:15px}.cs-tour-head{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.cs-tour-head strong{color:#ffcf98;font-size:12px;letter-spacing:.05em}.cs-tour-head span{font-size:12px;color:#b8aba3}.cs-tour-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.cs-tour-grid>div{display:flex;gap:7px;align-items:center;font-size:12px;color:#b9a9a0;border:1px solid #3f3632;border-radius:9px;padding:8px}.cs-tour-grid b{display:grid;place-items:center;border-radius:50%;width:26px;height:26px;flex:none;background:#42352e;color:#e8cebe}.cs-tour-grid .done{border-color:#5e8b70;color:#e0f7e2;background:#14231b}.cs-tour-grid .done b{background:#3e7550}.cs-transport{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0}.cs-body button{font:inherit;cursor:pointer;min-height:44px}.cs-main,.cs-ab,.cs-subtle,.cs-danger{padding:11px 13px;border-radius:10px;font-weight:700;border:1px solid #7b5849;color:#fff;background:#29201d}.cs-main{background:#a53e31;border-color:#e08060}.cs-ab{background:#6b4431;border-color:#b88b64}.cs-subtle{background:#29201d;color:#f2e3db}.cs-danger{border-color:#75413d;background:#311614;color:#ffbfb6}.cs-body button:disabled{opacity:.38;cursor:not-allowed}.cs-settings{display:flex;gap:18px;flex-wrap:wrap;align-items:end;background:#171414;padding:14px;border:1px solid #44342f;border-radius:12px}.cs-settings label>span{display:flex;gap:6px}.cs-settings input[type="range"]{width:100%;accent-color:#e4a27c;min-height:26px}.cs-intention{margin:17px 0;padding:15px;border:1px solid #554038;border-radius:12px;background:#191415}.cs-intent-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}.cs-intent-buttons button{background:#292321;border:1px solid #685044;color:#f6e4db;border-radius:10px;padding:10px 6px;font-size:12px}.cs-intent-buttons .selected{background:#683124;border-color:#ec9b70}.cs-grid-section,.cs-melody{border:1px solid #4c3830;background:#161313;padding:16px;border-radius:13px;margin:15px 0}.cs-section-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.cs-time-label,.cs-track{display:grid;grid-template-columns:minmax(108px,158px) repeat(16,minmax(0,1fr));gap:3px;align-items:stretch;margin:4px 0}.cs-time-label{margin:15px 0 8px}.cs-time-label>span{font-size:10px;text-align:center;color:#a99a91}.cs-time-label .cs-beat{color:#ffc08b;font-weight:800}.cs-time-label .cs-now{color:#fff;background:#a85538;border-radius:6px}.cs-track-name{display:flex;justify-content:space-between;gap:2px;align-items:center;font-size:12px;min-width:0;padding-right:3px}.cs-track-name strong{font-size:11px;font-weight:700}.cs-track-name button{min-height:40px;width:32px;padding:0;background:#28201f;color:#fff;border:1px solid #634d43;border-radius:8px}.cs-track-name button.muted{opacity:.58}.cs-cell{background:#292425;border:1px solid #4d3e37;border-radius:6px;padding:0;min-height:43px;color:#66554e;font-size:18px;display:grid;place-items:center}.cs-cell.downbeat{border-left-color:#8f715e}.cs-cell.active{background:#894332;border-color:#e69b72;color:#fff;box-shadow:inset 0 0 9px #a75538}.cs-cell.active:hover{background:#a4523c}.cs-cell:focus-visible,.cs-body button:focus-visible,.cs-body select:focus-visible,.cs-body input:focus-visible{outline:3px solid #ffd080;outline-offset:2px}.cs-think{border-left:3px solid #dca16f;padding:9px 12px;background:#211a17;border-radius:0 8px 8px 0;margin-top:12px!important}.cs-melody h4{margin-bottom:9px}.cs-notes{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.cs-notes label{display:grid;gap:4px;font-size:11px;text-align:center}.cs-notes select{font-size:12px!important;padding:7px 3px!important;min-width:0}.cs-save{background:#221b15;border:1px solid #8d6e40;border-radius:13px;padding:17px}.cs-save-actions{display:flex;gap:7px;flex-wrap:wrap;margin:11px 0}.cs-save-actions button{flex:1;min-width:145px}.cs-warning{color:#ffbf97!important}.cs-help{padding:13px 15px;margin:15px 0;border:1px solid #58473f;border-radius:10px;background:#181516}.cs-help summary{cursor:pointer;font-weight:700;color:#f3d4b8}.cs-bottom{display:flex;gap:9px;justify-content:flex-end;margin:13px 0}.cs-status{font-size:12px;color:#d8eada;padding:8px 16px;border-top:1px solid #4e403a;background:#141d18}.cs-status[data-error="true"]{color:#ffc6b8;background:#2e1817}.cs-hero{padding:19px;background:linear-gradient(120deg,#28140f,#171015);border:1px solid #865039;border-radius:16px;margin:14px 0;display:flex;gap:18px;align-items:center;justify-content:space-between}.cs-hero strong{display:block;font:700 22px Georgia,serif}.cs-hero p{font-size:13px;margin:9px 0;color:#dec9bf}.cs-hero small{font-size:11px;color:#f1af80;letter-spacing:.06em}.cs-hero button{flex:none;min-height:50px;background:#ad4435;color:#fff;border:1px solid #e98966;border-radius:11px;padding:12px 18px;font-weight:800}.cs-legacy{margin:16px 0;background:#171416;border:1px solid #4f3c3a;border-radius:13px;padding:15px}.cs-legacy summary{cursor:pointer;font-weight:700}.cs-legacy p{font-size:12px;color:#c9bab0}
@media(max-width:680px){.cs-overlay{padding:0}.cs-dialog{width:100%;max-height:100dvh;border-radius:0}.cs-body{padding:13px 10px 70px}.cs-head{padding:12px}.cs-intro{padding:15px}.cs-tour-grid{gap:3px}.cs-tour-grid>div{flex-direction:column;text-align:center;gap:3px;font-size:10px;padding:6px 3px}.cs-intent-buttons{grid-template-columns:repeat(2,1fr)}.cs-grid-section,.cs-melody{padding:9px 6px}.cs-time-label,.cs-track{grid-template-columns:minmax(69px,91px) repeat(16,minmax(0,1fr));gap:2px}.cs-track-name{flex-direction:column;align-items:flex-start;justify-content:center;font-size:9px}.cs-track-name strong{font-size:10px}.cs-track-name button{width:33px;min-height:27px}.cs-cell{min-height:37px;font-size:13px;border-radius:3px}.cs-time-label>span{font-size:9px}.cs-melody .cs-notes{grid-template-columns:repeat(4,minmax(0,1fr))}.cs-hero{flex-direction:column;align-items:stretch}.cs-hero button{width:100%}.cs-project-bar label{min-width:150px}.cs-transport button{flex:1 1 40%}.cs-settings label{min-width:150px}.cs-body h4{font-size:19px}}
@media(prefers-reduced-motion:reduce){.cs-overlay *,.oficina-overlay *{animation:none!important;transition:none!important}}
/* RC15 regression: no minuscule 16-column touch targets on mobile. Two eight-step rows. */
@media(max-width:680px){
 .cs-time-label{display:none}
 .cs-track{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin:13px 0 18px;background:#1d1817;border:1px solid #49382f;border-radius:11px;padding:9px}
 .cs-track-name{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:5px;min-height:38px}
 .cs-track-name strong{font-size:13px}
 .cs-track-name button{min-height:38px;min-width:42px}
 .cs-cell{min-height:44px;min-width:0;font-size:18px;border-radius:6px}
 .cs-track .cs-cell:nth-child(2),.cs-track .cs-cell:nth-child(10){border-left:3px solid #e6a275}
}
.cs-compare-phase{width:100%;display:block;font-size:12px;font-weight:700;letter-spacing:.02em;color:#e8b890;background:#261e1b;border-left:3px solid #dca06f;border-radius:0 7px 7px 0;padding:7px 10px}
.cs-section-head>.cs-subtle{flex:none;white-space:nowrap;min-width:98px;font-size:12px;padding:9px 11px}
/* RC16: timbre e metrônomo — controles fáceis de encontrar */
.cs-tone-settings {margin:16px 0;padding:16px;border:1px solid rgba(151,174,204,.28);border-radius:14px;background:rgba(94,121,169,.07)}
.cs-tone-settings h4,.cs-melody-top h4{margin:0 0 5px}
.cs-tone-settings p {margin:0 0 8px;color:var(--muted,#b0b7c9);font-size:13px}
.cs-tone-row,.cs-melody-top {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cs-tone-row label,.cs-melody-top label {display:flex;align-items:center;gap:9px;font-size:13px}
.cs-tone-row input[type=checkbox]{width:22px;height:22px;accent-color:#b35ee3}
.cs-tone-row select,.cs-melody-top select,.cs-timbre-control select{max-width:100%;font-size:13px;min-height:38px;border-radius:7px;background:#171c2d;color:#f5f5fa;border:1px solid #535b70;padding:5px}
.cs-tone-settings .cs-hint{font-size:12px;color:#b8bfd2;margin:8px 0 0}
.cs-track-name{flex-wrap:wrap;gap:8px}
.cs-timbre-control{display:flex;flex-direction:column;gap:3px;width:100%;font-size:11px;color:#bfc3d1}
.cs-timbre-control select{width:100%;font-size:12px;min-height:38px}
.cs-melody-top{margin-bottom:10px}
@media(max-width:480px){.cs-tone-row{align-items:flex-start;flex-direction:column}.cs-tone-row label{width:100%;justify-content:space-between}.cs-melody-top label{width:100%;justify-content:space-between}}
/* Avoid legacy app checkbox enlargement in the production controls. */
.cs-tone-row .cs-metronome-switch {justify-content:flex-start!important;gap:11px}
.cs-tone-row #csMetroEnabled {width:21px!important;height:21px!important;transform:none!important;flex:0 0 21px;margin:0;accent-color:#b35ee3}
