@charset "UTF-8";

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-variable.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #0c0b10;
  --panel: #17151e;
  --panel-raised: #211d29;
  --paper: #faf7fa;
  --soft: #d3cdd8;
  --muted: #ada5b6;
  --pink: #ff72b7;
  --edge: #ffffff17;
  --action-fill: linear-gradient(115deg,#ff9cc9 0%,#ff62ad 72%,#fa4da2 100%);
  --action-hover: linear-gradient(115deg,#ffb2d6 0%,#ff83be 72%,#ff68af 100%);
  --accent-wash: #ff64b512;
  --surface-edge: #ffffff1b;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --serif: var(--sans);
  --gutter: clamp(18px, 2.6vw, 44px);
  --dock: 96px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; scroll-padding-bottom: 180px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 500 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,p { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input,textarea,select { font: inherit; }
button { border: 0; color: inherit; background: none; cursor: pointer; }
button,a { touch-action: manipulation; }
button svg,a svg { flex-shrink: 0; }
button:disabled,input:disabled,select:disabled,textarea:disabled { opacity: .48; cursor: default; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: #ff45b36b; color: #fff; }
.skip { position: fixed; top: -60px; left: 20px; z-index: 60; padding: 10px; background: var(--paper); color: var(--bg); }
.skip:focus { top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page-shell { max-width: 1600px; margin: auto; padding: 0 var(--gutter) calc(var(--dock) + 32px); }
.site-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 1400px; margin: 32px auto 0; padding: 20px 0 8px; border-top: 1px solid #ebcce41c; color: #ad9cb6; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
body[data-view=home] .site-legal { margin-top: 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 94px; border-bottom: 1px solid var(--edge); }
.wordmark { width: 246px; flex-shrink: 0; display: block; }
.wordmark img { width: 100%; height: auto; object-fit: contain; object-position: center; display: block; }
.masthead nav { display: flex; align-items: center; gap: 4px; }
.nav-key { color: var(--muted); min-height: 36px; padding: 8px 16px; border-radius: 9px; font-weight: 550; }
.nav-key[aria-current=page] { color: var(--paper); background: #25262b; }
.nav-key:hover { color: var(--paper); background: #202126; }
.nav-key.profile { display: flex; align-items: center; gap: 8px; margin-left: 10px; border: 1px solid var(--edge); }
.nav-key.profile svg { width: 16px; height: 16px; }

.row,.actions,.chips,.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key,.primary,.minor,.round-key,.preset-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.2; }
.key { min-height: 36px; padding: 8px 12px; border: 1px solid #3a3b44; border-radius: 8px; background: #24252b; color: #d6d6dd; font-size: 13px; font-weight: 500; }
.key:hover:not(:disabled),.round-key:hover:not(:disabled) { background: #2d2e36; border-color: #545461; color: #fff; }
.key[aria-pressed=true],.key.selected { color: #ffd7ec; background: #52233f; border-color: #e15a9f; }
.mini { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.primary { min-height: 42px; padding: 10px 20px; border-radius: 9px; color: #290d20; font-size: 14px; font-weight: 700; background: var(--action-fill); border: 1px solid #ffb8df; box-shadow: inset 0 1px 0 #ffffff52,0 4px 18px #f93d9d27; transition: background .15s,transform .15s,box-shadow .15s; }
.primary:hover:not(:disabled) { background: var(--action-hover); box-shadow: inset 0 1px 0 #ffffff66,0 5px 22px #ff43a53d; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.minor { min-height: 32px; padding: 4px 0; font-size: 12px; font-weight: 500; color: #b8b8c2; }
.minor:hover { color: #fff; }
.danger,.minor.danger { color: #ff91a9; }
.round-key { width: 34px; height: 34px; padding: 0; border-radius: 8px; color: #b9bac4; background: transparent; border: 1px solid transparent; }
.round-key.on { color: #ff8eb7; background: #422332; }
.round-key.on svg { fill: #803650; }

.studio-layout { display: grid; grid-template-columns: 216px minmax(0,1fr); align-items: start; gap: 32px; padding: 36px 0; }
.studio-sidebar { position: sticky; top: 24px; min-width: 0; }
.artist-card { position: relative; overflow: hidden; border-radius: 16px; background: #242228; border: 1px solid #303137; }
.artist-card img { display: block; width: 100%; aspect-ratio: .88; object-fit: cover; object-position: 39% 45%; }
.artist-copy { padding: 20px 16px; border-top: 1px solid #303137; }
.artist-copy h2 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.artist-copy p { color: #a7a6af; font-size: 12px; line-height: 1.65; margin-top: 7px; }
.studio-summary { margin-top: 18px; padding: 16px 0; border-bottom: 1px solid var(--edge); color: var(--muted); font-size: 12px; }
.studio-summary p + p { margin-top: 8px; }
.studio-summary strong { color: var(--paper); font-weight: 550; }
.studio-summary > a,.studio-summary > button { width: 100%; justify-content: flex-start; margin-bottom: 10px; }
.studio-summary > p { font-size: 11px; line-height: 1.65; }
.studio-sidebar > .key,.studio-sidebar > .minor { margin-top: 14px; }
.studio-workspace { min-width: 0; }
.studio-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.studio-heading h1 { font-size: 36px; font-weight: 650; line-height: 1.15; letter-spacing: -.045em; }
.studio-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.draft-status { color: var(--muted); font-size: 11px; }
.studio-form { min-width: 0; }
.studio-form-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.studio-form-top .mode-tabs { margin-bottom: 0; }
.studio-form-top .reset-draft { margin: 0; }
.mode-tabs { display: flex; gap: 4px; padding: 4px; width: fit-content; margin-bottom: 20px; border: 1px solid var(--edge); border-radius: 10px; background: #17181c; }
.mode-tabs .key { border-color: transparent; background: transparent; color: var(--muted); min-width: 132px; }
.mode-tabs .key[aria-pressed=true] { background: #2d2e35; color: var(--paper); box-shadow: 0 2px 3px #0002; border-color: #42434c; }
.studio-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); gap: 18px; align-items: start; }
.compose-panel,.sound-panel { min-width: 0; border: 1px solid var(--edge); border-radius: 20px; background: var(--panel); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.panel-head svg { color: var(--muted); }
.control-section { border-top: 1px solid var(--edge); padding-top: 20px; margin-top: 20px; }
.control-section:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.setting-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; color: #e3e2e7; font-size: 13px; font-weight: 500; }
.field-hint { font-size: 11px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-chip { min-height: 30px; padding: 5px 10px; border: 1px solid #35363e; border-radius: 6px; background: #222329; color: #bfc0c9; font-size: 12px; font-weight: 400; }
.preset-chip:hover { border-color: #67616c; color: #f4edf2; }
.preset-chip[aria-pressed=true] { color: #ffb4d0; background: #3d2633; border-color: #8b4a64; }
#voices { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
#voices .voice { min-width: 0; min-height: 36px; padding: 7px 4px; font-size: 12px; }
.editor-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.editor-tools .key { min-height: 28px; font-size: 11px; padding: 5px 8px; }
.editor-tools .minor { font-size: 12px; color: #eca1bf; }
.editor-meta { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.editor-meta .field-hint,.editor-meta .input-counter { margin: 0; }
.editor-meta .input-counter { flex-shrink: 0; }
.structure-tags,.idea-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.idea-examples > span { flex-basis: 100%; }
.structure-tags .key { min-height: 28px; font-size: 11px; padding: 5px 9px; }
.field .lyrics-editor { min-height: 230px; line-height: 1.65; padding: 14px; }
.instrumental-note { padding: 28px 18px; margin: 18px 0; color: var(--muted); border: 1px dashed #46404a; border-radius: 10px; background: #201c24; }
.instrumental-note svg { color: #e7a1bc; }
.instrumental-note h3 { color: var(--paper); margin: 10px 0; font-size: 16px; }
.instrumental-note p { font-size: 12px; }
.range-field > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-field output { font-size: 11px; font-variant-numeric: tabular-nums; color: #eaa3bf; }
.generation-controls .panel-head { margin-bottom: 8px; }
.generation-controls h3 { font-size: 14px; font-weight: 550; }
.lyrics-helper { margin-top: 18px; padding: 16px; border: 1px solid #463442; border-radius: 10px; background: #242027; }
.lyrics-helper h3 { font-size: 14px; font-weight: 500; color: #ecc9d8; margin-bottom: 12px; }
.lyrics-helper textarea { background: #1b181f; }
.lyrics-helper .key { color: #f1bbd0; border-color: #654555; background: #382732; }
.generation-panel { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px 16px; margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--edge); border-radius: 12px; background: #1c1c22; }
.generation-panel > .panel-head { grid-column: 1/-1; margin: 0; }
.generation-panel .panel-head h3 { font-size: 13px; font-weight: 500; color: var(--muted); }
.generation-panel > .field-grid { display: contents; }
.generation-panel .field { margin: 0; align-content: start; }
.generation-panel > .field-hint { grid-column: 1/-1; margin: 0; }
.style-preview { margin-top: 16px; border-top: 1px solid var(--edge); padding-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.style-preview strong { display: block; color: #cbc7ce; font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.create-bar { position: sticky; bottom: calc(var(--dock) + 9px); z-index: 7; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 14px 18px; border: 1px solid #424049; border-radius: 12px; background: #222128f5; backdrop-filter: blur(14px); box-shadow: 0 8px 30px #0003; }
.create-bar .main-cta { width: auto; min-width: 168px; min-height: 42px; gap: 14px; }
.arrow-well { display: flex; }
.arrow-well svg { width: 17px; height: 17px; }
.create-summary { color: var(--muted); font-size: 12px; }
.create-summary strong { display: block; color: #eee8ed; font-size: 13px; font-weight: 550; }
.reset-draft { margin-right: auto; }
.create-bar .form-error { flex-basis: 100%; margin: 0; }

.field { display: grid; gap: 7px; min-width: 0; margin: 14px 0; color: #d5d5dc; font-size: 13px; font-weight: 400; }
.field:first-child { margin-top: 0; }
.field small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.field input,.field textarea,.field select,.search,input.standard,select.standard,.prompt { display: block; width: 100%; min-width: 0; border: 1px solid #35363f; border-radius: 8px; background: #141519; color: var(--paper); min-height: 38px; padding: 9px 11px; font-size: 14px; font-weight: 400; line-height: 1.45; box-shadow: 0 1px 1px #ffffff03; }
.field input::placeholder,.field textarea::placeholder,.search::placeholder,.prompt::placeholder { color: #70727d; }
.field input:focus,.field textarea:focus,.field select:focus,.search:focus,.prompt:focus { border-color: #bd7391; outline-offset: 2px; }
.field textarea,.prompt { resize: vertical; min-height: 90px; }
.prompt { min-height: 300px; line-height: 1.85; }
.field input[type=number] { font-variant-numeric: tabular-nums; }
.field input[type=range] { min-height: 25px; padding: 0; background: transparent; border: 0; }
.field-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; column-gap: 12px; }
.field-grid .field { margin: 12px 0; }
.field select { appearance: auto; }
.form-error,.inline-error { color: #ffabc0; }
.form-error { margin-top: 10px; font-size: 13px; }
.form-error:empty { display: none; }
.warning { color: #edb9ca; }

.section { max-width: 1250px; margin: 0 auto; padding: 34px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.section h1 { font: 600 30px/1.2 var(--sans); letter-spacing: -.04em; }
.section h2,.panel h2,.dialog-inner h2 { font: 600 19px/1.3 var(--sans); letter-spacing: -.025em; }
.section h3 { font-size: 17px; line-height: 1.3; font-weight: 550; }
.subtle { color: var(--muted); font-size: 13px; }
.meta { color: var(--muted); font-size: 11px; }
.intro { color: var(--soft); margin-top: 12px; max-width: 65ch; }
.panel,.empty,.job { background: var(--panel); border: 1px solid var(--edge); border-radius: 18px; padding: 22px; }
.panel-title { margin-bottom: 18px; }
.empty { display: flex; gap: 16px; align-items: flex-start; padding: 32px; }
.empty-icon { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 10px; color: #e7a1bc; background: #35252f; }
.empty p { margin: 8px 0 16px; color: var(--muted); }
.filters { margin-bottom: 18px; }
.search { flex: 1; min-width: 155px; max-width: 400px; }
.filters .key { white-space: nowrap; }
.playlist-tools select { width: min(290px,100%); }
.cards { display: grid; gap: 8px; }
.track { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 15px; background: #1a1b20; border: 1px solid #2a2b32; border-radius: 11px; }
.track:hover { background: #202127; border-color: #41414a; }
.track.playing { border-color: #97506d; background: #242027; }
.cover { aspect-ratio: 1; overflow: hidden; position: relative; display: grid; place-items: center; border-radius: 8px; background: #302831; border: 1px solid #4b3a47; color: #f5e3ec; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover svg { position: relative; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #30252bcc; }
.track-name { display: block; padding: 0; text-align: left; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; font-weight: 550; }
.track .meta { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-actions { display: flex; gap: 4px; align-items: center; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-grid .panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 28px; }
.jobs { display: grid; gap: 10px; }
.job { padding: 16px 18px; }
.job-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-line strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.job .meta { margin-top: 5px; }
.job-msg { margin-top: 8px; font-size: 12px; overflow-wrap: anywhere; }
.job .actions { margin-top: 12px; }
.status { font-size: 11px; color: #a4a4ae; white-space: nowrap; }
.status.pending { color: #efacce; }
.status.pending:before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-right: 7px; animation: pulse 1.4s ease infinite; }
.queue-section { max-width: none; padding: 20px 0 0; }
.queue-section h2 { font-size: 16px; }
.queue-section:empty { display: none; }
.section + .section { padding-top: 0; }
.editor-columns { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(360px,1.2fr); gap: 20px; align-items: start; }
.editor-summary { display: grid; gap: 14px; }
.song-text { white-space: pre-wrap; font-size: 13px; line-height: 1.85; color: #c0bec7; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.panel .actions { margin: 14px 0 4px; }
.editor-ops { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.editor-columns form .primary { margin-top: 10px; }
.details-block summary { cursor: pointer; color: var(--soft); padding: 10px 0; font-size: 13px; }
.panel-link { color: #ee9dbd; font-size: 12px; }
.boot { padding: 70px 20px; text-align: center; color: var(--muted); }
#connection:not([hidden]) { margin-top: 14px; border: 1px solid #693b50; border-radius: 8px; background: #32222c; color: #efc1d2; padding: 10px 14px; font-size: 12px; }

#player { position: fixed; z-index: 8; bottom: max(12px,env(safe-area-inset-bottom)); left: max(18px,calc((100vw - 1600px)/2)); right: max(18px,calc((100vw - 1600px)/2)); display: grid; grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr) auto; gap: 24px; align-items: center; min-height: 74px; padding: 12px 20px; background: #212126f5; border: 1px solid #3d3c46; border-radius: 13px; backdrop-filter: blur(18px); box-shadow: 0 10px 30px #0006; }
.player-info { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; }
.player-title { font-size: 13px; font-weight: 550; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.player-caption { color: var(--muted); font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport,.player-volume { display: flex; align-items: center; gap: 7px; }
.transport .bare,.player-volume .bare { width: 30px; height: 30px; display: grid; place-items: center; color: #b8b8c3; }
.transport .bare:hover,.player-volume .bare:hover { color: #fff; }
.transport .main-play { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; color: #201018; background: #e9a4c0; }
.transport .main-play:hover { background: #ffc0da; }
.transport .main-play svg { width: 17px; height: 17px; }
input[type=range] { accent-color: var(--pink); cursor: pointer; min-width: 0; }
.seek-block { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; align-items: center; }
.seek-block canvas { display: block; width: 100%; height: 18px; }
.seek-block output { white-space: nowrap; font-size: 10px; color: #b8b5c0; font-variant-numeric: tabular-nums; }
#seek { width: 100%; grid-column: 1/-1; margin: 4px 0 0; height: 10px; }
.player-volume input { width: 64px; }
.player-volume .bare { width: 25px; }

.dialog-inner { padding: 26px; }
dialog { width: min(94vw,580px); padding: 0; max-height: 88svh; overflow: auto; background: #1c1d22; color: var(--paper); border: 1px solid #494650; border-radius: 16px; box-shadow: 0 30px 100px #0009; }
dialog::backdrop { background: #08080bb8; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-head .round-key { flex-shrink: 0; }
.dialog-text { color: var(--soft); margin: 12px 0 18px; font-size: 13px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.menu-list { display: grid; gap: 7px; }
.menu-list > * { justify-content: flex-start; padding: 10px 13px; }
.menu-list .collection-member { justify-content: space-between; }
.lyric-option { border: 1px solid var(--edge); padding: 16px; border-radius: 10px; margin: 12px 0; }
.lyric-option h3 { font-size: 15px; }
.lyric-option pre { font: 13px/1.7 var(--sans); white-space: pre-wrap; max-height: 280px; overflow: auto; }
.upload-pick { display: block; padding: 16px; border: 1px dashed #55505b; border-radius: 10px; background: #18191d; }
.upload-pick input { max-width: 100%; font-size: 12px; color: var(--soft); }
.upload-pick input::file-selector-button { padding: 8px 12px; margin-right: 8px; border: 1px solid #4b424c; border-radius: 7px; color: #f1d9e3; background: #382a34; cursor: pointer; }
.upload-source { font-size: 11px; line-height: 1.6; color: var(--muted); padding: 6px 0; }
#upload-preview audio { display: block; width: 100%; height: 36px; margin: 10px 0 14px; }
#notices { position: fixed; right: var(--gutter); bottom: calc(var(--dock) + 18px); z-index: 30; display: grid; gap: 8px; max-width: min(390px,90vw); pointer-events: none; }
.notice { padding: 12px 16px; border: 1px solid #5d4355; border-radius: 9px; background: #322731; color: #f2e1ea; box-shadow: 0 5px 16px #0005; font-size: 12px; }
.tour-catcher { position: fixed; inset: 0; z-index: 40; }
.tour-highlight { position: fixed; pointer-events: none; z-index: 41; border-radius: 10px; outline: 2px solid #f493bc; box-shadow: 0 0 0 9999px #050407bb; }
.tour-card { position: fixed; z-index: 42; width: min(340px,calc(100vw - 28px)); padding: 20px; background: #25222a; border: 1px solid #795168; border-radius: 12px; box-shadow: 0 10px 60px #000b; }
.tour-card h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -.02em; margin: 10px 0 8px; }
.tour-card p { font-size: 13px; color: #c7c2cc; }
.tour-card .actions { margin-top: 18px; justify-content: flex-end; }
.tour-card .primary { min-height: 36px; padding: 8px 16px; font-size: 13px; }
.tour-top { display: flex; align-items: center; justify-content: space-between; }
.tour-top button { display: flex; padding: 3px; }
@keyframes pulse { 50% { opacity: .4; } }

@media (min-width: 1500px) {
  .studio-layout { grid-template-columns: 240px minmax(0,1fr); gap: 32px; }
  .studio-grid { gap: 22px; }
  .compose-panel,.sound-panel { padding: 26px; }
}
@media (max-width: 1180px) {
  .generation-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .studio-layout { grid-template-columns: 168px minmax(0,1fr); gap: 20px; }
  .artist-card img { aspect-ratio: .8; }
  .artist-copy { padding: 16px 12px; }
  .artist-copy h2 { font-size: 15px; }
  .compose-panel,.sound-panel { padding: 18px; }
  .studio-grid { gap: 14px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #voices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #player { gap: 14px; }
}
@media (max-width: 980px) {
  .studio-layout { display: block; padding-top: 22px; }
  .studio-sidebar { position: static; display: grid; grid-template-columns: 102px minmax(0,1fr); align-items: center; gap: 20px; margin-bottom: 24px; }
  .artist-card { display: flex; align-items: center; background: none; border: 0; }
  .artist-card img { width: 102px; height: 102px; aspect-ratio: auto; object-position: 40% 40%; border: 1px solid #41373e; border-radius: 13px; flex-shrink: 0; }
  .artist-copy { padding: 10px 18px; border: 0; }
  .artist-copy h2 { font-size: 18px; }
  .studio-summary { border: 0; padding: 0; margin: 0; }
  .studio-summary > a,.studio-summary > button { width: auto; margin: 0 12px 4px 0; }
  .studio-heading h1 { font-size: 28px; }
  .studio-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .editor-columns { grid-template-columns: minmax(220px,.8fr) minmax(300px,1.2fr); }
  #player { grid-template-columns: minmax(130px,1fr) auto minmax(130px,.8fr); }
  .player-volume { grid-column: 3; grid-row: 2; justify-self: end; }
  .player-info,.transport { grid-row: 1/3; }
  .seek-block { grid-column: 3; }
  .player-volume .bare { height: 18px; }
  .player-volume input { height: 10px; width: 50px; }
}
@media (max-width: 680px) {
  .generation-panel { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px; gap: 14px 12px; }
  :root { --gutter: 16px; --dock: 116px; }
  .masthead { height: 72px; gap: 12px; }
  .wordmark { width: 180px; }
  .wordmark img { height: auto; }
  .masthead nav { gap: 3px; }
  .nav-key { padding: 7px 8px; font-size: 11px; min-height: 34px; }
  .nav-key.profile { margin-left: 2px; padding: 7px; }
  .nav-key.profile span { display: none; }
  .studio-sidebar { grid-template-columns: 92px minmax(0,1fr); gap: 14px; margin-bottom: 20px; }
  .studio-summary { padding: 0; }
  .studio-summary > a,.studio-summary > button { margin-right: 0; font-size: 11px; }
  .studio-summary > p { font-size: 10px; }
  .artist-card img { width: 92px; height: 92px; }
  .artist-copy { padding: 8px 14px; }
  .artist-copy h2 { font-size: 16px; }
  .artist-copy p { font-size: 11px; margin-top: 4px; }
  .studio-heading { margin-bottom: 18px; }
  .studio-heading h1 { font-size: 26px; }
  .studio-heading p { font-size: 12px; }
  .studio-grid { grid-template-columns: minmax(0,1fr); }
  .compose-panel,.sound-panel { padding: 20px; }
  .mode-tabs { width: 100%; }
  .mode-tabs .key { flex: 1; min-width: 0; }
  .prompt { min-height: 230px; }
  #voices { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .create-bar { flex-wrap: nowrap; gap: 8px; padding: 10px; bottom: calc(var(--dock) + 4px); }
  .create-bar .main-cta { min-width: 145px; padding: 10px 12px; gap: 7px; }
  .create-summary { min-width: 0; font-size: 10px; }
  .create-summary span { display: none; }
  .create-summary strong { font-size: 11px; }
  .section { padding: 26px 0; }
  .section h1 { font-size: 27px; }
  .account-grid,.editor-columns { grid-template-columns: minmax(0,1fr); }
  .panel,.account-grid .panel { padding: 20px; }
  .track { grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 12px; }
  .track-actions { grid-column: 2; justify-content: flex-end; }
  .track-actions .round-key { width: 32px; height: 30px; }
  .track .meta { font-size: 10px; }
  .job { padding: 14px; }
  .job-line { align-items: flex-start; }
  .job-line strong { font-size: 11px; }
  .job .status { font-size: 10px; }
  .job .actions { gap: 6px; }
  .job .actions .mini { font-size: 11px; padding: 6px 9px; }
  .field-grid { gap: 0 10px; }
  #player { grid-template-columns: minmax(120px,1fr) auto; gap: 5px 8px; padding: 10px 13px; left: 8px; right: 8px; bottom: max(8px,env(safe-area-inset-bottom)); }
  .player-info { grid-template-columns: 32px minmax(0,1fr); grid-column: 1; grid-row: 1; gap: 8px; }
  .player-title { font-size: 11px; }
  .player-caption { font-size: 9px; }
  .transport { grid-column: 2; grid-row: 1; gap: 3px; }
  .transport .main-play { width: 32px; height: 32px; }
  .transport .bare { width: 24px; height: 28px; }
  .seek-block { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .seek-block canvas { height: 12px; }
  .seek-block output { font-size: 9px; }
  #seek { height: 11px; margin-top: 0; }
  .player-volume { grid-column: 2; grid-row: 2; }
  .player-volume input { width: 47px; }
  .dialog-inner { padding: 20px; }
  .empty { padding: 22px 18px; }
}
@media (max-width: 410px) {
  .masthead { gap: 6px; }
  .wordmark { width: 153px; }
  .nav-key { padding: 6px 7px; font-size: 10px; }
  .compose-panel,.sound-panel { padding: 17px; }
  #voices .voice { font-size: 10px; }
  .preset-chip { font-size: 10px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Open, searchable musical controls. Every option is visible before filtering. */
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.catalog-heading h3 { margin: 0; color: var(--paper); font-size: 13px; font-weight: 500; }
.catalog-heading > span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.music-catalog > .field-hint { margin: 5px 0 10px; font-size: 11px; }
.catalog-search { width: 100%; min-height: 33px; margin: 0 0 12px; padding: 7px 10px; color: var(--paper); background: #111216; border: 1px solid var(--edge); border-radius: 7px; font: inherit; font-size: 12px; }
.catalog-search:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.catalog-search::placeholder { color: var(--muted); }
.catalog-category + .catalog-category { margin-top: 12px; }
.catalog-category h4 { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .02em; }
.catalog-category .preset-chips { margin: 0; gap: 5px; }
.catalog-category .preset-chip { min-height: 28px; padding: 5px 8px; font-size: 11px; }
.catalog-category .style-preset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.style-preset { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; width: 100%; text-align: left; padding: 10px !important; }
.style-preset > span { font-size: 12px; font-weight: 500; }
.style-preset > small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.style-preset[aria-pressed=true] > small { color: #cbaaba; }
.catalog-empty { color: var(--muted); font-size: 12px; line-height: 1.6; }
.style-budget { display: block; margin: -5px 0 14px; color: var(--muted); font-size: 10px; text-align: right; }
.style-budget.is-over-limit { color: #ff8ba5; }
.structure-tags { flex-wrap: wrap; }
.idea-examples { display: block; }
.idea-examples .field-hint { margin: 6px 0 10px; }
.dictation-control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.dictation-control .field-hint { font-size: 10px; }
.dictation-control [aria-pressed=true] { color: #ffa4ce; border-color: #a64478; }
.lyrics-helper-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 410px) { .catalog-category .style-preset-grid { grid-template-columns: 1fr; } }

/* The studio uses quiet materials; colour marks actions and selected settings. */
.masthead { border-bottom-color:#ffffff12; }
.masthead nav { padding:5px;border:1px solid #ffffff13;border-radius:15px;background:#16131cb3;box-shadow:inset 0 1px 0 #ffffff07; }
.nav-key { border-radius:10px;font-size:12px;font-weight:600;transition:color .18s,background .18s,box-shadow .18s; }
.nav-key[aria-current=page] { color:#fff6fa;background:#ffffff0c;box-shadow:inset 0 1px 0 #ffffff10; }
.nav-key:hover { color:#fff5fc;background:#ffffff09; }
.nav-key.profile { border-color:#ffffff1c;background:#ffffff04; }
.key { border-color:#ffffff1c;background:linear-gradient(180deg,#ffffff06,#ffffff02);color:#d7d1dd;border-radius:10px; }
.key:hover:not(:disabled) { border-color:#ffffff38;background:#ffffff0b; }
.primary { border-color:#ffb3d46b;box-shadow:inset 0 1px 0 #ffffff40,0 4px 16px #f93d9d19;font-weight:750;border-radius:11px; }
.generation-panel,.compose-panel,.sound-panel,.panel {
  background:linear-gradient(145deg,#1c1922 0%,#17151d 70%);border-color:var(--surface-edge);
  box-shadow:inset 0 1px 0 #ffffff06,0 14px 38px #00000018;
}
.generation-panel { background:linear-gradient(110deg,#211a26,#19161f 65%);border-radius:16px;position:relative; }
.generation-panel::before { content:"";position:absolute;left:20px;top:-1px;width:80px;height:1px;background:linear-gradient(90deg,#ff70b8,transparent); }
.generation-panel .panel-head h3 { font-weight:650;color:#eee8f1;font-size:12px; }
.studio-eyebrow { display:block;margin-bottom:9px;color:#c890ad;font-size:9px;font-weight:700;letter-spacing:.15em; }
.draft-status { display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff15;padding:5px 10px;border-radius:20px;color:#b5adbd;font-size:10px; }
.draft-status::before { content:"";width:5px;height:5px;border-radius:50%;background:#ce94b3; }
.panel-head { padding-bottom:15px;border-bottom:1px solid #ffffff0e; }
.generation-panel .panel-head { padding-bottom:10px; }
.panel-head h2 { font-size:18px;font-weight:650;letter-spacing:-.035em; }
.panel-head svg,.range-field output { color:#f794c4; }
.artist-card { border-radius:22px;border-color:#ffffff1d;background:#17151e;box-shadow:0 14px 36px #0004; }
.artist-card img { filter:brightness(.95) contrast(1.08); }
.artist-copy { border-top-color:#ffffff13;padding:20px; }
.artist-copy p { color:#a79dae; }
.artist-copy h2 { font-size:19px;font-weight:650; }
.studio-summary { border-bottom-color:#ffffff13; }
.field { color:#c8c1d0;font-size:12px;font-weight:600; }
.field input:not([type=range]),.field textarea,.field select,.catalog-search,.search {
  background:#0e0d13;border-color:#ffffff14;box-shadow:inset 0 1px 2px #0003;border-radius:10px;
  transition:border-color .18s,box-shadow .18s;
}
.field input:focus,.field textarea:focus,.field select:focus,.catalog-search:focus,.search:focus {
  border-color:#f37ab4a1;box-shadow:0 0 0 3px #ff69bd12;outline:2px solid transparent;outline-offset:2px;
}
.field input::placeholder,.field textarea::placeholder,.catalog-search::placeholder,.search::placeholder { color:#8e859b;opacity:1; }
.field .lyrics-editor { padding:16px;line-height:1.9; }
.preset-chip,.style-preset { border-color:#ffffff15;background:#ffffff03;color:#c4bdcf;border-radius:9px; }
.preset-chip:hover,.style-preset:hover { border-color:#e588b254;background:#f681b80b;color:#fff2f9; }
.preset-chip[aria-pressed=true],.style-preset[aria-pressed=true] { color:#ffd7eb;border-color:#f17cb98c;background:linear-gradient(135deg,#8e285b42,#c73c7a1b);box-shadow:inset 0 1px 0 #ffd9eb0c; }
.style-preset { padding:12px!important;gap:6px; }
.style-preset>span { color:#ece6ef;font-weight:650; }
.style-preset[aria-pressed=true]>small { color:#d8aec7; }
.catalog-heading { margin-bottom:3px; }
.catalog-heading h3 { font-weight:700;font-size:13px; }
.catalog-heading>span { padding:2px 7px;border-radius:5px;background:#ffffff05;color:#c3b3cc; }
.catalog-category+.catalog-category { margin-top:16px; }
.catalog-category h4 { font-weight:650;letter-spacing:.035em;color:#aaa0b5;font-size:10px; }
.mode-tabs { background:#101016;border-color:#ffffff14;border-radius:13px; }
.mode-tabs .key[aria-pressed=true] { background:#29222e;border-color:#ff92c228;color:#ffe2f1;box-shadow:inset 0 1px 0 #ffe4f510,0 2px 5px #0002; }
.lyrics-helper { background:linear-gradient(125deg,#3b203025,#1d1823);border-color:#d477a32e;border-radius:14px; }
.lyrics-helper .key { background:#ffffff05;border-color:#bb74964d;color:#efc7dc; }
.create-bar { border-color:#d7b4ce39;background:linear-gradient(105deg,#26202bf5,#19161ff7);box-shadow:inset 0 1px 0 #fff0fa09,0 10px 36px #0007;backdrop-filter:blur(20px);border-radius:17px; }
.main-cta { background:var(--action-fill);border:1px solid #ffb8df75;box-shadow:inset 0 1px 0 #ffffff45,0 4px 18px #f93d9d1c; }
.main-cta:hover { background:var(--action-hover);box-shadow:0 5px 22px #ff43a526; }
.field input[type=range] { appearance:none;-webkit-appearance:none;background:transparent;height:24px;padding:0;border:0;box-shadow:none; }
.field input[type=range]::-webkit-slider-runnable-track { height:3px;border-radius:8px;background:linear-gradient(90deg,#ff83c1,#965175 58%,#3e3349); }
.field input[type=range]::-moz-range-track { height:3px;border-radius:8px;background:linear-gradient(90deg,#ff83c1,#965175 58%,#3e3349); }
.field input[type=range]::-webkit-slider-thumb { appearance:none;-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;border:2px solid #ffe1f1;border-radius:50%;background:#ed79b7;box-shadow:0 0 8px #ff66ba25; }
.field input[type=range]::-moz-range-thumb { width:8px;height:8px;border:2px solid #ffe1f1;border-radius:50%;background:#ed79b7; }
.field input[type=range]:focus-visible { outline:2px solid #ff8bce;outline-offset:4px;border-radius:8px; }
.track { border-color:#ffffff12;background:linear-gradient(110deg,#1c1922,#15141b);border-radius:14px;padding:14px 16px; }
.track:hover { border-color:#ffffff30;background:linear-gradient(110deg,#211c29,#1b1722); }
.track.playing { border-color:#c95c8f77;background:linear-gradient(110deg,#32202d,#1a1622);box-shadow:inset 3px 0 0 #ff77bb; }
.track-name { font-weight:650; }
.empty { border-style:dashed;background:linear-gradient(135deg,#241a262f,#141219); }
.section h1 { font-weight:650;font-size:34px; }
.site-legal { color:#9a91a5;border-top-color:#ffffff12; }
@media(max-width:760px) {
  .masthead nav { border-radius:12px;padding:3px;gap:2px; }
  .nav-key { font-size:11px; }
  .studio-layout { padding-top:24px; }
  .studio-heading h1,.section h1 { font-size:29px; }
  .studio-eyebrow { font-size:8px; }
  .style-preset { padding:10px!important; }
}
@media(max-width:410px) {
  .masthead nav { background:transparent;border:0;padding:0; }
  .nav-key { font-size:10px; }
  .track { padding:12px; }
}
@media(forced-colors:active) {
  .key,.primary,.main-cta,.preset-chip,.style-preset,.round-key,.nav-key,.field input,.field textarea,.field select,.catalog-search { box-shadow:none; }
  .key[aria-pressed=true],.key.selected,.preset-chip[aria-pressed=true],.style-preset[aria-pressed=true],.nav-key[aria-current=page] { outline:2px solid Highlight;outline-offset:-3px; }
  .field input:focus,.field textarea:focus,.field select:focus,.catalog-search:focus { outline:2px solid Highlight; }
}
