/* Wex Records · the working studio, collection and listening desk. */
body[data-view="studio"] .studio-layout {
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0 20px;
}
.studio-layout .studio-sidebar { top: 120px; }
.studio-layout .artist-card {
  isolation: isolate;
  border: 1px solid #ffffff1c;
  border-radius: 22px;
  background: #17151d;
  box-shadow: 0 14px 45px #0004;
}
.studio-layout .artist-card img { display: block; aspect-ratio: .7; object-position: 40% 45%; }
.studio-layout .artist-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #120b18dd);
  pointer-events: none;
}
.artist-label { position: absolute; z-index: 1; left: 21px; right: 15px; bottom: 23px; }
.artist-label > span { display: block; color: #ff83bb; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.artist-label > strong { display: block; margin-top: 9px; color: #faf4f8; font-size: 25px; font-weight: 650; line-height: 1.2; letter-spacing: -.05em; }
.studio-layout .studio-summary { padding: 21px 0 0; }
.studio-layout .studio-summary > .minor { padding: 5px 0; color: #eee5ed; font-size: 14px; }
.studio-layout .studio-summary .key { min-height: 40px; font-size: 13px; }
.studio-layout .studio-summary p { margin-top: 11px; font-size: 12px; color: #a69daa; line-height: 1.65; }
.studio-layout .studio-heading { align-items: flex-start; margin-bottom: 26px; }
.studio-layout .studio-heading h1 { margin-top: 8px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 650; line-height: 1.1; letter-spacing: -.055em; }
:is(.studio-layout, .label-library, .label-editor) .studio-eyebrow { color: #ff67ad; font-size: 11px; font-weight: 750; letter-spacing: .13em; line-height: 1.5; }
.studio-lead, .library-intro { color: #aca2b2; font-size: 14px; line-height: 1.6; }
.studio-lead { margin: 12px 0 0; }
.studio-layout .draft-status { margin-top: 4px; border: 1px solid #ffffff1a; border-radius: 999px; padding: 6px 11px; background: #ffffff04; color: #b5aab9; font-size: 12px; white-space: nowrap; }
.studio-layout .studio-form-top { gap: 15px; margin-bottom: 20px; }
.studio-layout .mode-tabs { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid #ffffff13; border-radius: 13px; background: #0c0c10b3; }
.studio-layout .mode-tabs .key { min-height: 37px; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #aaa0b2; font-size: 13px; box-shadow: none; }
.studio-layout .mode-tabs .key[aria-pressed="true"] { background: #332130; border-color: #ff4b9c48; color: #fff2f9; box-shadow: inset 0 1px 0 #ffffff0b; }
.studio-layout .reset-draft { font-size: 12px; color: #a99eaf; }
.studio-layout .studio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); gap: 20px; }
.studio-layout :is(.compose-panel, .sound-panel, .generation-panel) {
  border: 1px solid #ffffff18;
  border-radius: 20px;
  background: #17151de8;
  box-shadow: inset 0 1px 0 #ffffff04, 0 10px 35px #0001;
}
.studio-layout :is(.compose-panel, .sound-panel) { padding: 25px; }
.studio-layout .panel-head { align-items: center; gap: 12px; margin-bottom: 20px; }
.studio-layout .panel-head :is(h2, h3) { color: #faf4f8; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.studio-layout .panel-head > svg { color: #ff72b4; width: 18px; height: 18px; }
.studio-layout .generation-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 22px; margin-bottom: 20px; padding: 22px 25px; background: linear-gradient(100deg, #201821e8, #17151de8 65%); }
.studio-layout .generation-panel > .panel-head { margin-bottom: 0; }
.studio-layout .generation-panel .panel-head h3 { font-size: 15px; }
.studio-layout .generation-panel .field { margin: 0; }
body:is([data-view="studio"], [data-view="editor"]) .field { gap: 9px; font-size: 13px; font-weight: 550; margin: 18px 0; }
body:is([data-view="studio"], [data-view="editor"]) .field :is(input:not([type="range"]), select, textarea),
.label-library :is(input, select), .studio-layout .catalog-search {
  border-color: #ffffff1c;
  border-radius: 10px;
  background: #0d0d12a8;
  color: #e9e0ec;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 450;
  box-shadow: inset 0 1px 3px #0001;
}
body:is([data-view="studio"], [data-view="editor"]) .field textarea { line-height: 1.75; }
body:is([data-view="studio"], [data-view="editor"]) .field :is(input, textarea)::placeholder, .studio-layout .catalog-search::placeholder { color: #8e8598; opacity: 1; }
body:is([data-view="studio"], [data-view="editor"]) .field :is(input, select, textarea):focus-visible,
.studio-layout .catalog-search:focus-visible, .label-library :is(input, select):focus-visible { border-color: #ff4c9f99; outline: 2px solid #ff459a35; outline-offset: 2px; }
.studio-layout .field-grid { gap: 16px; }
.studio-layout .lyrics-editor { min-height: 280px; padding: 16px !important; font-size: 15px !important; line-height: 1.85 !important; }
.studio-layout .editor-meta { margin-top: 8px; align-items: flex-start; gap: 12px; }
.studio-layout :is(.field-hint, .range-field small, .input-counter, .style-budget, .dictation-status) { font-size: 12px; font-weight: 400; line-height: 1.6; color: #a79cad; }
.studio-layout .input-counter { white-space: nowrap; font-variant-numeric: tabular-nums; }
.studio-layout .range-field output { border-radius: 5px; background: #ff248e12; color: #ff91c3; padding: 2px 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.studio-layout .range-field input[type="range"] { height: 24px; min-height: 24px; }
.studio-layout .range-field input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #ff248e, #75425f); }
.studio-layout .range-field input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -4.5px; background: #fff1f8; border: 3px solid #ff3998; box-shadow: 0 0 0 3px #ff248e10; }
.studio-layout .range-field input[type="range"]::-moz-range-track { height: 4px; background: linear-gradient(90deg, #ff248e, #75425f); }
.studio-layout .range-field input[type="range"]::-moz-range-thumb { width: 7px; height: 7px; background: #fff1f8; border: 3px solid #ff3998; }
.studio-layout :is(.structure-tags, .preset-chips) { gap: 7px; }
.studio-layout .structure-tags .key { min-height: 31px; font-size: 12px; padding: 5px 10px; border-radius: 7px; }
.studio-layout .lyrics-helper { margin-top: 22px; padding: 18px; background: linear-gradient(120deg, #ff248e09, #ffffff02); border: 1px solid #ff4fa52c; border-radius: 14px; }
.studio-layout .lyrics-helper h3 { color: #f3e5f0; font-size: 15px; font-weight: 650; }
.studio-layout .lyrics-helper .field { margin: 12px 0; }
.studio-layout .lyrics-helper-actions { gap: 9px; }
.studio-layout .style-preview { margin-top: 24px; padding: 19px 0 0; border-color: #ffffff16; }
.studio-layout .style-preview strong { color: #c3b8cc; font-size: 12px; }
.studio-layout .style-preview p { font-size: 13px; line-height: 1.75; color: #f4d7e8; }
.studio-layout .style-preview small { font-size: 12px; line-height: 1.6; color: #9e93a7; }
.studio-layout .control-section { margin-top: 25px; padding-top: 25px; border-color: #ffffff13; }
.studio-layout .setting-heading, .studio-layout .catalog-heading h3 { color: #eee5f0; font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.studio-layout .catalog-heading { align-items: center; margin-bottom: 7px; gap: 10px; }
.studio-layout .catalog-heading > span { font-size: 11px; font-weight: 500; white-space: nowrap; padding: 3px 7px; border-radius: 6px; background: #ffffff06; color: #a89daf; }
.studio-layout .catalog-search { margin: 5px 0 18px; min-height: 38px; padding: 8px 11px; font-size: 13px; }
.studio-layout .catalog-category + .catalog-category { margin-top: 19px; }
.studio-layout .catalog-category h4 { margin-bottom: 9px; color: #a89bae; font-size: 12px; font-weight: 550; letter-spacing: 0; }
.studio-layout .preset-chip { min-height: 32px; padding: 6px 10px; border: 1px solid #ffffff1a; border-radius: 8px; background: #ffffff03; color: #c3b8cc; font-size: 12px; font-weight: 500; line-height: 1.5; box-shadow: none; }
.studio-layout .preset-chip[aria-pressed="true"], .studio-layout .chips .key[aria-pressed="true"] { border-color: #ff419b82; background: #ff248e20; color: #ffe1f1; box-shadow: inset 0 0 0 1px #ff248e0a; }
.studio-layout .chips { gap: 7px; }
.studio-layout .chips .key { min-height: 36px; padding: 7px 12px; border-radius: 8px; font-size: 13px; }
.studio-layout .catalog-category .style-preset-grid { gap: 9px; }
.studio-layout .style-preset { padding: 13px !important; border-radius: 11px; gap: 7px; }
.studio-layout .style-preset > span { color: #e9dfea; font-size: 13px; font-weight: 650; }
.studio-layout .style-preset > small { color: #a197ab; font-size: 12px; line-height: 1.55; }
.studio-layout .style-preset[aria-pressed="true"] > small { color: #d4b6ca; }
.studio-layout .create-bar { margin-top: 22px; padding: 15px 18px; gap: 14px; border: 1px solid #ee9bc339; border-radius: 16px; background: #201923f2; box-shadow: 0 12px 36px #0007, inset 0 1px 0 #fff1f90a; backdrop-filter: blur(22px); }
.studio-layout .create-summary { min-width: 0; font-size: 12px; line-height: 1.6; }
.studio-layout .create-summary > strong { margin-bottom: 3px; font-size: 14px; font-weight: 650; }
.studio-layout .create-actions { gap: 12px; flex-shrink: 0; }
.studio-layout .create-actions > .primary { min-height: 43px; min-width: 160px; padding: 10px 18px; font-size: 14px; gap: 10px; }
.studio-layout .reset-settings { min-height: 40px; border-color: #ffffff18; background: #ffffff03; font-size: 12px; }
.studio-layout .queue-section { margin-top: 35px; }
body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) :is(.job, .empty) { border: 1px solid #ffffff15; border-radius: 16px; background: #17151de8; box-shadow: none; }
body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) .job { padding: 19px 21px; }
body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) .job-line strong { font-size: 14px; font-weight: 600; }
body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) .job .meta { margin-top: 9px; font-size: 12px; color: #a89cad; }
body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) .job .status { border-radius: 6px; padding: 4px 7px; background: #ffffff05; font-size: 12px; white-space: nowrap; }
.label-library, .label-editor { padding-top: 40px; }
.label-library .section-title { margin: 8px 0 12px; align-items: center; }
:is(.label-library, .label-editor) .section-title h1 { font-size: clamp(34px, 3.5vw, 48px); font-weight: 650; letter-spacing: -.05em; line-height: 1.1; }
.library-intro { margin: 0 0 29px; }
.label-library #library-filters { padding: 13px; margin: 0; border: 1px solid #ffffff1b; border-radius: 16px; background: #17151de8; gap: 9px; }
.label-library #track-search { flex: 1 1 220px; max-width: none; }
.label-library #library-filters .key { min-height: 40px; padding: 9px 13px; font-size: 13px; border-radius: 9px; }
.label-library .playlist-tools { padding: 17px 0; margin: 0 0 8px; gap: 9px; }
.label-library .playlist-tools > span, .label-library .playlist-tools > small { font-size: 12px; }
.label-library .playlist-tools select { min-height: 38px; font-size: 13px; }
.label-library .cards { gap: 9px; }
.label-library .track { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 17px; padding: 14px 17px; border: 1px solid #ffffff13; border-radius: 15px; background: #17151dd9; box-shadow: none; transition: border-color .2s, background .2s; }
.label-library .track > .cover { width: 56px; height: 56px; border-radius: 10px; background: #29222f; border: 1px solid #ffffff16; }
.label-library .track > div:not(.track-actions) { min-width: 0; }
.label-library .track-name { font-size: 15px; font-weight: 650; letter-spacing: -.012em; }
.label-library .track .meta { margin-top: 6px; font-size: 12px; color: #a69bad; line-height: 1.5; }
.label-library .track-actions { gap: 5px; grid-column: auto; }
.label-library .track-actions .round-key { width: 36px; height: 36px; border-radius: 9px; }
.label-library .track.playing { border-color: #ff419b65; background: linear-gradient(95deg, #301b2b, #17151d 65%); box-shadow: inset 3px 0 0 #ff248e; }
.label-library .empty { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 36px; }
.label-library .empty .empty-icon { width: 68px; height: 68px; border-radius: 20px; background: #ff248e0e; color: #ff61aa; box-shadow: inset 0 0 0 1px #ff61aa24; }
.label-library .empty h3 { font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.label-library .empty p { color: #aaa0b2; font-size: 14px; line-height: 1.65; max-width: 410px; }
.label-editor .editor-back { display: inline-flex; gap: 8px; margin-bottom: 15px; font-size: 13px; color: #b3a6bc; }
.label-editor .editor-columns { grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); gap: 24px; }
.label-editor .panel { min-width: 0; padding: 28px; border: 1px solid #ffffff19; border-radius: 20px; background: #17151de8; box-shadow: inset 0 1px 0 #ffffff04; }
.label-editor .editor-summary { gap: 16px; }
.label-editor .editor-summary > h2 { font-size: 25px; font-weight: 650; letter-spacing: -.035em; line-height: 1.25; overflow-wrap: anywhere; }
.label-editor .editor-summary > .subtle { margin: 0; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.label-editor .editor-art { position: relative; height: 232px; margin: 0 0 8px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ffffff0c; border-radius: 14px; background: radial-gradient(ellipse at 42% 55%, #ff248e16, transparent 70%), #0c0c1099; }
.label-editor .editor-art > .cover { width: 164px; height: 164px; transform: translateX(-25px) rotate(-4deg); border: 1px solid #ffffff22; border-radius: 11px; background: linear-gradient(135deg, #38203e, #2c1528); box-shadow: 0 16px 28px #0007; }
.label-editor .editor-art .cover > svg { width: 44px; height: 44px; padding: 9px; color: #ffb9dc; }
.label-editor .editor-art .cover:has(img) > svg { display: none; }
.label-editor .editor-record { position: absolute; width: 170px; height: 170px; left: calc(50% - 25px); border: 1px solid #ffffff20; border-radius: 50%; background: radial-gradient(circle, #0c0c10 0 5%, #ec238b 5.5% 19%, #15131a 19.5% 23%, transparent 24%), repeating-radial-gradient(circle, #28232c 0 1px, #141216 2px 4px); box-shadow: 0 10px 20px #0005; }
.label-editor .editor-summary > .studio-eyebrow { margin-top: 1px; }
.label-editor .editor-summary .row { gap: 9px; flex-wrap: wrap; }
.label-editor .details-block { padding-top: 19px; border-top: 1px solid #ffffff15; }
.label-editor .details-block summary { font-size: 14px; color: #e8dbe9; }
.label-editor .song-text { padding-top: 17px; color: #bbb0c3; font-size: 14px; line-height: 1.9; }
.label-editor .editor-process > h2 { font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.label-editor .editor-ops { padding: 6px; border: 1px solid #ffffff14; border-radius: 12px; background: #0c0c10a8; gap: 7px; margin: 20px 0 24px; }
.label-editor .editor-ops .key { padding: 8px 11px; min-height: 36px; border-radius: 8px; font-size: 13px; }
.label-editor #edit-form > .subtle { font-size: 14px; line-height: 1.7; }
.label-editor #edit-form > .actions { gap: 10px; }
.label-editor #edit-form > .actions .minor { font-size: 12px; }
.label-editor #edit-form > .operation-price { display: block; margin: 20px 0 5px; padding-top: 18px; border-top: 1px solid #ffffff15; color: #d9c0d2; font-size: 12px; line-height: 1.6; }
.label-editor #edit-form > .operation-balance { display: block; margin: 0 0 15px; color: #a99bad; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.label-editor #edit-form > .operation-balance:empty { display: none; }
.label-editor #edit-form > .primary { min-height: 42px; font-size: 14px; }
body { --dock: 120px; }
#player { grid-template-columns: minmax(190px, 1fr) auto minmax(230px, 1.4fr) auto 32px; gap: 24px; min-height: 98px; padding: 15px 20px; border: 1px solid #ffffff27; border-radius: 19px; background: linear-gradient(105deg, #28202bea, #141218f5 45%, #1b171ff5); box-shadow: 0 20px 65px #0009, inset 0 1px 0 #fff1fa0b; }
#player::before { left: 22px; right: 22px; background: linear-gradient(90deg, transparent, #ff248eab 40%, #ffd0e855 65%, transparent); }
#player .player-info { grid-template-columns: 56px minmax(0, 1fr); gap: 15px; }
#player .player-artwork { width: 56px; height: 56px; border-radius: 12px; }
#player .artwork-ring { border-color: #ffffff12; }
#player.is-playing .artwork-ring { border-color: #ff248e73; box-shadow: 0 0 18px #ff248e17; }
#player .player-eyebrow { font-size: 10px; letter-spacing: .09em; line-height: 13px; color: #baabbe; }
#player .player-title { margin-top: 4px; font-size: 14px; line-height: 19px; color: #faf4f8; }
#player .player-caption { margin-top: 2px; font-size: 12px; line-height: 16px; color: #a99bb3; }
#player .transport { gap: 8px; }
#player .bare { width: 32px; height: 34px; color: #b6a8bf; }
#player .main-play { width: 44px; height: 44px; border-color: #ff9dcc8c; background: linear-gradient(145deg, #ff80ba, #ff248e 75%); color: #290b1b; box-shadow: inset 0 1px 0 #ffffff60, 0 5px 22px #ff248e29; }
#player .main-play:hover { box-shadow: inset 0 1px 0 #ffffff60, 0 5px 25px #ff248e45; }
#player .wave-stage { height: 40px; }
#player #meter { height: 35px; }
#player .seek-rail { height: 2px; background: #ffffff12; }
#player .seek-rail span { background: linear-gradient(90deg, #fff0f7, #ff248e); box-shadow: 0 0 9px #ff248e44; }
#player .player-timeline { height: 15px; margin-top: 6px; }
#player .player-timeline output { color: #bfb1c7; font-size: 11px; line-height: 15px; }
#player .player-quality { font-size: 9px; letter-spacing: .12em; color: #8e8199; }
#player .player-close { width: 32px; height: 32px; border: 1px solid #ffffff14; border-radius: 9px; margin-left: 0; background: #ffffff04; }
#player .player-volume input { width: 65px; }
@media (hover: hover) {
  .studio-layout .preset-chip:hover { border-color: #ff67ad58; background: #ff248e0c; color: #fff0f8; }
  .label-library .track:hover { border-color: #ffffff32; background: #211b26; }
  .label-library .track.playing:hover { border-color: #ff419ba0; background: #2c1c28; }
}
@media (max-width: 1280px) {
  body[data-view="studio"] .studio-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 26px; }
  .studio-layout .artist-card img { aspect-ratio: .65; }
  .artist-label { left: 17px; bottom: 19px; }
  .artist-label > strong { font-size: 23px; }
  .studio-layout :is(.compose-panel, .sound-panel) { padding: 21px; }
  .studio-layout .generation-panel { padding: 20px 21px; }
  #player { grid-template-columns: minmax(165px, 1fr) auto minmax(170px, 1.2fr) auto 32px; gap: 17px; }
  #player .player-volume input { width: 48px; }
}
@media (max-width: 1050px) {
  body[data-view="studio"] .studio-layout { display: block; }
  .studio-layout .studio-sidebar { position: static; display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 19px; margin-bottom: 28px; }
  .studio-layout .artist-card { border-radius: 15px; }
  .studio-layout .artist-card img { width: 90px; aspect-ratio: 1; object-position: 42% 35%; }
  .artist-label { display: none; }
  .studio-layout .artist-card::after { background: linear-gradient(transparent, #120b1833); }
  .studio-layout .studio-summary { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 7px; padding: 0; }
  .studio-layout .studio-summary p { margin: 0; flex-basis: 100%; }
  .studio-layout .studio-heading { margin-bottom: 23px; }
  .studio-layout .studio-heading h1 { font-size: 42px; }
  .studio-layout .studio-grid { gap: 18px; }
  .label-editor .editor-columns { grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr); gap: 18px; }
  .label-editor .panel { padding: 22px; }
  .label-editor .editor-art { height: 205px; }
  .label-editor .editor-art > .cover { width: 145px; height: 145px; }
  .label-editor .editor-record { width: 150px; height: 150px; }
}
@media (max-width: 800px) {
  body { --dock: 142px; }
  .studio-layout .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-layout .generation-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout .catalog-category .style-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout .lyrics-editor { min-height: 250px; }
  .label-library #track-search { flex-basis: 100%; }
  .label-library .playlist-tools { flex-wrap: wrap; }
  .label-editor .editor-columns { grid-template-columns: minmax(0, 1fr); }
  .label-editor .editor-art { height: 235px; }
  .label-editor .editor-art > .cover { width: 170px; height: 170px; }
  .label-editor .editor-record { width: 175px; height: 175px; }
  #player { grid-template-columns: minmax(150px, 1fr) auto auto 32px; min-height: 120px; padding: 12px 15px; gap: 10px 15px; }
  #player .player-info { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  #player .player-artwork { width: 48px; height: 48px; }
  #player .seek-block { grid-template-columns: minmax(0, 1fr) 83px; gap: 13px; }
  #player .wave-stage { height: 28px; }
  #player #meter { height: 24px; }
  #player .player-timeline { margin: 0; }
  #player #seek::-webkit-slider-thumb { height: 28px; }
  #player #seek::-moz-range-thumb { height: 28px; }
  #player .player-quality { display: none; }
}
@media (max-width: 600px) {
  body[data-view="studio"] .studio-layout { padding-top: 25px; }
  .studio-layout .studio-sidebar { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; margin-bottom: 25px; }
  .studio-layout .artist-card img { width: 72px; aspect-ratio: .9; }
  .studio-layout .studio-summary { gap: 7px 14px; }
  .studio-layout .studio-summary > .minor { font-size: 13px; }
  .studio-layout .studio-summary .key { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .studio-layout .studio-summary p { line-height: 1.5; }
  .studio-layout .studio-heading h1 { font-size: 37px; }
  .studio-layout .studio-eyebrow { font-size: 10px; letter-spacing: .09em; }
  .studio-lead { font-size: 13px; }
  .studio-layout .draft-status { padding: 5px 8px; font-size: 11px; }
  .studio-layout .studio-form-top { flex-wrap: wrap; gap: 12px; }
  .studio-layout .mode-tabs { min-width: 0; gap: 3px; }
  .studio-layout .mode-tabs .key { padding: 8px 10px; font-size: 12px; }
  .studio-layout :is(.compose-panel, .sound-panel, .generation-panel) { padding: 19px; border-radius: 16px; }
  .studio-layout .generation-panel { column-gap: 15px; }
  .studio-layout .field-grid { gap: 12px; }
  .studio-layout .create-bar { padding: 13px; gap: 12px; border-radius: 14px; }
  .studio-layout .create-summary { flex-basis: 100%; }
  .studio-layout .create-actions { width: 100%; gap: 8px; }
  .studio-layout .create-actions .studio-help-action { flex: 1; }
  .studio-layout .create-actions .reset-settings { padding: 9px 10px; }
  .studio-layout .create-actions > .primary { flex: 1; min-width: 0; padding: 9px 12px; font-size: 13px; }
  .label-library, .label-editor { padding-top: 27px; }
  .label-library .section-title { gap: 17px; }
  .label-library .section-title .key { font-size: 13px; min-height: 38px; }
  .label-library #library-filters { padding: 10px; gap: 7px; }
  .label-library #library-filters .key { flex: 1; justify-content: center; gap: 6px; padding: 8px; font-size: 12px; }
  .label-library #library-filters .key svg { width: 15px; height: 15px; }
  .label-library .track { grid-template-columns: 48px minmax(0, 1fr); gap: 11px 13px; padding: 13px; }
  .label-library .track > .cover { width: 48px; height: 48px; }
  .label-library .track-name { font-size: 14px; }
  .label-library .track-actions { grid-column: 2; justify-self: end; margin-top: -3px; }
  .label-library .track-actions .round-key { width: 34px; height: 32px; }
  .label-library .track .meta { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .label-library .empty { flex-direction: column; text-align: center; padding: 30px 22px; gap: 15px; }
  .label-library .empty h3 { font-size: 19px; }
  .label-editor .panel { padding: 21px; border-radius: 16px; }
  .label-editor .editor-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .label-editor .editor-ops .studio-help-action { min-width: 0; }
  .label-editor .editor-ops .key { flex: 1; min-width: 0; justify-content: center; padding: 8px 7px; font-size: 12px; line-height: 1.4; white-space: normal; text-align: center; }
  body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) .job { padding: 16px; }
  body:is([data-view="studio"], [data-view="library"], [data-view="editor"]) .job-line { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 520px) {
  body { --dock: 148px; }
  #player { grid-template-columns: minmax(0, 1fr) auto 30px; min-height: 122px; left: 9px; right: 9px; gap: 12px 8px; padding: 12px; border-radius: 16px; }
  #player .player-info { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  #player .player-artwork { width: 38px; height: 42px; }
  #player .player-eyebrow { font-size: 9px; line-height: 12px; letter-spacing: .04em; gap: 4px; }
  #player .player-title { font-size: 13px; line-height: 17px; margin-top: 3px; }
  #player .player-caption { font-size: 11px; line-height: 15px; margin-top: 1px; }
  #player .transport { gap: 1px; }
  #player .transport .bare { width: 25px; height: 34px; }
  #player .main-play { width: 36px; height: 36px; }
  #player .player-close { width: 28px; height: 30px; }
  #player .seek-block { grid-column: 1 / 3; grid-template-columns: minmax(0, 1fr) 73px; gap: 10px; }
  #player .player-timeline output { font-size: 11px; }
  #player .player-volume .bare { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .studio-layout .catalog-category .style-preset-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-layout .generation-panel .range-field { grid-column: 1 / -1; }
  .studio-layout .generation-panel { gap: 17px 12px; }
  .studio-layout .catalog-heading h3 { font-size: 14px; }
  .studio-layout .preset-chip { padding: 6px 9px; }
  .label-library .section-title { align-items: flex-start; }
  .label-library .section-title h1 { font-size: 34px; }
  .label-library .section-title .key { padding: 8px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-layout *, .label-library *, .label-editor *, #player * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .studio-layout :is(.compose-panel, .sound-panel, .generation-panel, .preset-chip, .create-bar), .label-library .track, .label-editor .panel, #player { background: Canvas; border-color: CanvasText; box-shadow: none; }
  .studio-layout .preset-chip[aria-pressed="true"] { border: 2px solid Highlight; color: Highlight; }
  #player .main-play { color: ButtonText; background: ButtonFace; border-color: ButtonText; box-shadow: none; }
}
