/* Shared geometric identity; studio interaction accents remain teal. */
:root,.studio-shell{--accent:#36b8a6;--brand-accent:#36b8a6}
.opus-logo{display:inline-block;object-fit:contain;vertical-align:middle;flex-shrink:0}
.studio-shell .topbar .brand{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:24px;padding:3px 10px;background:transparent;border:0;box-shadow:none}
.studio-shell .topbar .opus-logo{width:24px;height:18px}
.studio-shell>footer .opus-logo{width:19px;height:14px}

/* Black marks on the light studio chrome. */
.studio-shell .topbar .opus-logo,.studio-shell>footer .opus-logo{filter:brightness(0)}

/* Clip marquee is an interaction overlay and never part of project content. */
.studio-shell .region-marquee{position:absolute;z-index:8;pointer-events:none;border:1px solid #117e70;background:#36b8a62b;box-sizing:border-box}
.studio-shell .clip-select-mode [data-lane-track],.studio-shell .clip-select-mode .region{touch-action:none;cursor:crosshair}
.studio-shell #clip-select-mode[aria-pressed="true"]{background:#74c8b7;border-color:#228b7a;color:#112f29}

/* Shared title capitalization for current and dynamically created interface labels. */
.studio-shell :is(h1,h2,h3,h4,h5,h6,button,a,label,legend,summary,th,dt,strong,select,option,[role="button"],[role="tab"],[role="menuitem"],.section-label,.browser-title,.library-tab,.mixer-heading,.detail-context,.welcome-status,.agent-state){text-transform:capitalize}
/* Editable content and technical output keep their original spelling and case. */
.studio-shell :is(input,textarea,code,pre){text-transform:none}
.studio-shell .project-title input,.studio-shell .track-header input{text-transform:capitalize}

/* Native vectors inherit control colors and never depend on mobile emoji fonts. */
#opus-icon-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.studio-icon{display:inline-block;width:1em;height:1em;vertical-align:-.125em;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex-shrink:0}
.studio-shell .transport-button .studio-icon{width:12px;height:12px}
.studio-shell .agent-collapse .studio-icon{width:12px;height:12px;vertical-align:middle}

.group-trim{min-width:0;margin:7px 0;padding:7px;border:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:6px}.group-trim legend{font-size:10px;font-weight:600}.group-trim p{margin:0}.group-trim select,.group-trim input{width:100%;min-width:0}

/* Arrangement edge fades use the same monochrome vector language as controls. */
.studio-shell .region-fade-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden;opacity:.6}
.studio-shell .region-fade-overlay path{fill:none;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke}
.studio-shell .region-fade-handle{position:absolute;top:1px;z-index:3;width:9px;height:9px;transform:translateX(-50%);border:1px solid currentColor;background:#d5dadb;cursor:ew-resize;touch-action:none;opacity:0}
.studio-shell .region:hover .region-fade-handle,.studio-shell .region:focus-visible .region-fade-handle,.studio-shell .region.selected .region-fade-handle{opacity:1}
.studio-shell .crossfade-join{position:absolute;top:3px;bottom:auto;height:46px;overflow:hidden;z-index:3;min-width:3px;padding:0;border:0;border-radius:0;background:transparent;color:#172a2a;cursor:pointer;touch-action:none}
.studio-shell .crossfade-join:hover{background:#ffffff24}.studio-shell .crossfade-join svg{display:block;width:100%;height:100%;pointer-events:none}.studio-shell .crossfade-join path{fill:none;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke}

/* Preserve vector proportions and stroke weight when mobile controls shrink. */
.studio-icon{aspect-ratio:1;flex-shrink:0}
#opus-icon-definitions :is(path,rect,circle){vector-effect:non-scaling-stroke}

/* Keep the workspace column bounded; scroll musical lanes inside their pane. */
body.studio-shell{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){
 .studio-shell .transport,.studio-shell .topbar,.studio-shell .workspace{min-width:0}
 .studio-shell .viewbar{height:auto;flex-wrap:wrap}
 .studio-shell .view-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
 .studio-shell .topbar .project-title{min-width:0;flex:1}
 .studio-shell .topbar .project-title input{max-width:100%;width:100%}
}

/* Group folders use the studio's vector controls and neutral track colors. */
.studio-shell .track-header{padding-left:calc(var(--depth,0)*4px)}
.studio-shell .track-header.track-selected,.studio-shell .timeline-label.track-selected{box-shadow:inset 0 -2px var(--accent)}
.studio-shell .track-header .track-select,.studio-shell .timeline-label .track-select,.studio-shell .group-fold{display:inline-grid;place-items:center;flex:0 0 14px;width:14px;min-width:14px;height:20px;padding:0;border:0;background:transparent;color:inherit;font:8px system-ui;cursor:grab}
.studio-shell .group-fold{cursor:pointer}.studio-shell .group-fold .studio-icon{width:11px;height:11px}
.studio-shell .group-header{font-weight:700;border-top:2px solid var(--track)}
.studio-shell .track-header input{min-width:0}.studio-shell .timeline-label{display:flex;align-items:center;gap:2px;padding-left:calc(3px + var(--depth,0)*6px)}
.studio-shell .timeline-label>button[data-timeline-devices]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.studio-shell .group-row .timeline-lane{background-color:#9ba4a33b}
.studio-shell .group-overview-region{position:absolute;height:7px;min-width:2px;padding:0;border:1px solid #58635f;background:var(--track);opacity:.7;cursor:pointer}
.studio-shell .group-overview-region.inactive{opacity:.25}
.studio-shell .group-slot{height:100%;display:flex;align-items:stretch;border:1px solid #6e7774;background:#7b898624;font-size:8px}
.studio-shell .group-slot>button{padding:0 2px;border:0;border-radius:0;background:transparent;color:inherit;min-width:16px}
.studio-shell .group-slot .studio-icon{width:9px;height:9px}.studio-shell .group-slot .group-slot-label{flex:1;font-size:8px}
.studio-shell .group-slot.playing{border-color:#1c8e71;background:#62a68d50}.studio-shell .group-slot.queued{box-shadow:inset 0 -2px #e7b868}
.studio-shell .group-channel{border-top:2px solid var(--track)}
.studio-shell .set-manager #group-members{min-height:110px}
@media(max-width:720px){.studio-shell .group-fold{min-width:16px;width:16px}.studio-shell .group-slot>button{min-width:20px}}

.studio-shell .toggles .group-descendant-solo:not(.on){background:linear-gradient(90deg,#64b6a5 50%,#c8cdcf 50%)}
