/* Compose Studio — full-page song planning workspace. */
body.compose-studio-open { overflow: hidden; }

/* One planning surface at a time; the draft and price stay in view. */
.compose-studio-nav { display: flex; flex: 0 0 auto; gap: 6px; padding: 10px clamp(22px,4vw,64px); border-bottom: 1px solid var(--studio-line); background: rgba(9,9,13,.94); overflow-x: auto; }
.compose-studio-nav button { flex: 0 0 auto; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b8b2c3; font: 650 13px var(--font-sans,system-ui); cursor: pointer; }
.compose-studio-nav button[aria-selected="true"] { border-color: #9464c9; background: #2c203d; color: #f4eaff; }
.compose-studio-nav button:hover { color: #fff; background: #211b2c; }
.compose-idea-lab { display: grid; grid-template-columns: auto minmax(400px,1fr) minmax(220px,.65fr); align-items: center; gap: 8px 18px; flex: 0 0 auto; padding: 12px clamp(22px,4vw,64px); border-bottom: 1px solid var(--studio-line); background: linear-gradient(110deg,#17121f,#101116); }
.compose-idea-lab-heading { display: grid; gap: 6px; }
.compose-idea-lab-heading strong { color: #e5d8f5; font-size: 13px; }
.compose-idea-lab-heading span { color: #89d9b6; font-size: 10px; }
.compose-idea-lab-actions { display: flex; gap: 8px; }
.compose-idea-lab-actions button { display: grid; align-content: center; gap: 5px; flex: 1; min-height: 53px; padding: 9px 12px; text-align: left; border: 1px solid #65517c; border-radius: 9px; background: #2a1e39; color: #f0e5ff; cursor: pointer; }
.compose-idea-lab-actions button:last-child { background: #18302b; border-color: #3c7864; }
.compose-idea-lab-actions strong { font-size: 12px; }
.compose-idea-lab-actions span { color: #bdb2cb; font-size: 10px; line-height: 1.3; }
.compose-idea-lab-actions button:hover { border-color: #c29de8; }
.compose-idea-lab-history { min-width: 0; }
.compose-idea-lab-history label { display: block; margin-bottom: 5px; color: #b7adbf; font-size: 10px; }
.compose-idea-lab-history > div { display: flex; gap: 5px; }
.compose-idea-lab-history select { flex: 1; min-width: 0; padding: 8px; font-size: 11px; border: 1px solid #4a3b57; border-radius: 6px; background: #17121e; color: #e3d6f1; }
.compose-idea-lab-history button { min-width: 32px; border: 1px solid #44374e; border-radius: 6px; background: #211a2a; color: #e7d4f8; cursor: pointer; }
.compose-idea-lab-keeps { grid-column: 1 / 3; color: #b9a8ce; font-size: 10px; }
.compose-idea-lab-keeps summary { cursor: pointer; }
.compose-idea-lab-keeps > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.compose-idea-lab-keeps button { padding: 7px 10px; border: 1px solid #544563; border-radius: 6px; background: #201827; color: #cdb8e1; cursor: pointer; }
.compose-idea-lab-keeps button[aria-pressed="true"] { border-color: #af87d3; background: #3b2650; color: white; }
.compose-idea-lab-keeps small { display: block; margin-top: 8px; line-height: 1.4; }
.compose-idea-lab-note { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #aaa0b7; font-size: 10px; line-height: 1.4; }
.compose-idea-lab-note button { flex: 0 0 auto; padding: 0; border: 0; background: none; color: #d7b6f4; font-size: 10px; cursor: pointer; }
@media (min-width: 901px) { .compose-idea-lab-keeps { grid-column: 1 / 2; grid-row: 2; } .compose-idea-lab-note { grid-column: 2 / -1; grid-row: 2; } }
@media (max-width: 1100px) { .compose-idea-lab { grid-template-columns: minmax(360px,1fr) minmax(210px,.6fr); gap: 8px 12px; } .compose-idea-lab-heading { display: none; } }
@media (max-width: 900px) { .compose-idea-lab { grid-template-columns: minmax(0,1fr); padding: 10px 15px; } .compose-idea-lab-history { display: flex; align-items: center; gap: 10px; } .compose-idea-lab-history > div { flex: 1; min-width: 0; } .compose-idea-lab-history label { flex: 0 0 auto; margin: 0; } .compose-idea-lab-keeps { grid-column: 1; } .compose-idea-lab-note > span { display: none; } .compose-idea-lab-note { justify-content: flex-end; } }
@media (max-width: 560px) { .compose-idea-lab-actions button { padding: 8px; } .compose-idea-lab-actions span { font-size: 9px; } .compose-idea-lab-history select { font-size: 10px; } }
body .v6-composer--studio [hidden] { display: none !important; }
body .v6-composer--studio [data-studio-panel] > .v6-composer__section { padding: 18px 0 22px !important; }
.compose-more { margin-top: 13px; border-top: 1px solid var(--studio-line); padding-top: 11px; }
.compose-more > summary { cursor: pointer; color: #c4b9d5; font-size: 12px; font-weight: 650; }
.compose-more p { color: #b1a9bd; font-size: 12px; line-height: 1.6; }
.compose-more[open] > summary { margin-bottom: 12px; }
body .v6-composer--studio .v6-composer__footer { flex-wrap: wrap; gap: 8px; }
body .v6-composer--studio .v6-composer__footer::before { display: none; }
.compose-cost-notice { flex: 1 1 100%; grid-column: 1 / -1; margin: 0 0 3px; color: #b8aec9; font-size: 11px; line-height: 1.4; }
body .v6-composer--studio .compose-band-map { grid-template-columns: 105px repeat(var(--compose-columns), minmax(103px,1fr)); }
body .v6-composer--studio .compose-band-map select.compose-role-cell { width: 100%; min-width: 103px; min-height: 44px; padding: 7px; border: 1px solid var(--studio-line); border-radius: 0; font-size: 11px; text-align: center; }
.compose-role-cell.is-auto { color: #b2a9be; }

.compose-free-badge { flex-shrink: 0; padding: 7px 10px; border: 1px solid #2b6758; border-radius: 999px; color: #a7efcf; background: #123228; font-size: 11px; font-weight: 650; }
.compose-harmony .compose-section-heading p { margin: 7px 0 0; color: #aaa2b7; font-size: 13px; line-height: 1.5; }
.compose-harmony-styles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.compose-harmony-styles button { display: grid; gap: 8px; text-align: left; align-content: start; padding: 17px; border: 1px solid #393040; border-radius: 12px; background: #15121d; color: #f2eaf9; cursor: pointer; }
.compose-harmony-styles button strong { font-size: 14px; }
.compose-harmony-styles button span { color: #aaa2b8; font-size: 12px; line-height: 1.5; }
.compose-harmony-styles button[aria-pressed="true"] { border-color: #bb88f2; background: linear-gradient(120deg,#35204c,#20172d); box-shadow: inset 0 0 0 1px #bb88f2; }
.compose-harmony-styles button[aria-pressed="true"] strong::before { content: '✓ '; color: #d9b1ff; }
.compose-harmony-note { color: #aca3b9; font-size: 12px; line-height: 1.6; margin: 12px 0; }
.compose-harmony-plan, .compose-harmony-explorer { margin-top: 20px; padding: 20px; border: 1px solid #342b40; border-radius: 14px; background: linear-gradient(150deg,#15131d,#0e0e15); }
.compose-harmony-plan-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.compose-harmony-plan-head label { display: grid; gap: 7px; min-width: 180px; color: #c6bdcf; font-size: 12px; }
.compose-harmony-plan-head label select { padding: 8px 10px; }
.compose-harmony-plan-head > div { display: flex; flex-wrap: wrap; gap: 8px; }
.compose-harmony button[data-harmony-action] { border: 1px solid #51415e; border-radius: 8px; background: #27202f; padding: 10px 14px; color: #eee5f8; font: 650 12px var(--font-sans,system-ui); cursor: pointer; }
.compose-harmony button[data-harmony-action].is-primary { color: #fff; background: #7037a5; border-color: #a96ae0; }
.compose-harmony button:hover:not(:disabled) { border-color: #c39be7; }
.compose-harmony-chords { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 7px; }
.compose-harmony-chords button { display: grid; gap: 7px; padding: 12px 8px; min-height: 90px; border: 1px solid #40334f; border-radius: 9px; color: #f0e5ff; background: #21182b; cursor: pointer; }
.compose-harmony-chords button[aria-pressed="true"] { border-color: #b789e0; background: #392344; }
.compose-harmony-chords small { color: #ac97bf; font-size: 10px; }
.compose-harmony-chords strong { font-size: 18px; }
.compose-harmony-chords span { color: #b8a7c6; font-size: 10px; }
.compose-harmony-explorer h4 { margin: 0; color: #f5effb; font-size: 17px; }
.compose-harmony-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 22px; padding: 14px; border: 1px dashed #5c426d; border-radius: 10px; background: #120e19; }
.compose-harmony-path > span { display: flex; align-items: center; gap: 8px; }
.compose-harmony-path strong { display: inline-block; min-width: 42px; padding: 8px 11px; text-align: center; border-radius: 7px; background: #30203e; color: #e4c7ff; font-size: 17px; }
.compose-harmony-path i { color: #9974b4; font-style: normal; }
.compose-harmony-path > span:last-child strong { box-shadow: 0 0 0 1px #ba85e7; background: #4a2a61; color: white; }
.compose-harmony-moves { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.compose-harmony-moves > button { position: relative; display: grid; gap: 9px; padding: 17px; border: 1px solid #3e3d65; border-radius: 12px; background: linear-gradient(145deg,#1b2338,#181627); text-align: left; cursor: pointer; }
.compose-harmony-moves > button:nth-child(2) { border-color: #286552; background: linear-gradient(145deg,#142f2c,#131c23); }
.compose-harmony-moves > button:nth-child(3) { border-color: #765136; background: linear-gradient(145deg,#33251b,#211824); }
.compose-harmony-moves strong { color: #fbf4ff; font-size: 28px; font-weight: 650; }
.compose-harmony-moves .compose-harmony-operation { color: #d2b9ee; font-size: 11px; font-weight: 650; }
.compose-harmony-moves span:not(.compose-harmony-operation) { color: #a9e2cb; font-size: 13px; }
.compose-harmony-moves small { color: #d1bfdd; font-size: 12px; }
.compose-harmony-moves b { margin-top: 5px; color: #d8c3ed; font-size: 11px; }
.compose-harmony-path-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#composeHarmonyStatus { min-height: 18px; color: #c9b4df; font-size: 12px; }
@media (max-width: 1000px) {
  .compose-harmony-styles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .compose-studio-nav { gap: 3px; padding: 8px 12px; }
  .compose-studio-nav button { padding: 10px; font-size: 12px; }
  .compose-harmony-styles { grid-template-columns: 1fr; }
  .compose-harmony-moves { grid-template-columns: 1fr; }
  .compose-harmony-plan-head { flex-direction: column; align-items: stretch; }
  .compose-harmony-plan, .compose-harmony-explorer { padding: 14px; }
  .compose-harmony .compose-section-heading { align-items: start; flex-wrap: wrap; }
  .compose-harmony-chords { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compose-cost-notice { font-size: 10px; }
}

body .v6-composer--studio {
  color-scheme: dark;
  --studio-bg: #09090d;
  --studio-panel: #111117;
  --studio-panel-2: #17151f;
  --studio-line: rgba(255,255,255,.085);
  --studio-muted: #9a96a6;
  align-items: stretch;
  justify-content: stretch;
  background:
    radial-gradient(circle at 9% -8%, rgba(124,58,237,.2), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(236,72,153,.12), transparent 24%),
    var(--studio-bg);
}
body .v6-composer--studio .v6-composer__backdrop { display: none; }
body .v6-composer--studio .v6-composer__card {
  width: 100vw !important;
  max-width: none !important;
  max-height: none !important;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(8px);
  outline: none;
}
body .v6-composer--studio.v6-composer--visible .v6-composer__card { transform: none; }
body .v6-composer--studio .v6-composer__head {
  min-height: 72px;
  padding: 13px clamp(22px, 4vw, 64px) !important;
  justify-content: flex-start;
  gap: 14px;
  background: rgba(9,9,13,.82);
  border-bottom: 1px solid var(--studio-line);
  backdrop-filter: blur(20px);
  z-index: 3;
}
body .v6-composer--studio .v6-composer__title { gap: 13px; }
body .v6-composer--studio .v6-composer__title .v6-icon { color: #d8b4fe; }
body .v6-composer--studio .v6-composer__title h2 {
  font-size: 18px;
  letter-spacing: -.025em;
}
body .v6-composer--studio .v6-composer__subtitle {
  color: var(--studio-muted) !important;
  font-style: normal;
  font-size: 11px;
}
.compose-start-over {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #aaa5b6;
  font: 700 10px/1 var(--font-sans, system-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px;
}
.compose-start-over:hover { color: #fff; }
body .v6-composer--studio .v6-composer__close { flex: 0 0 34px; }
body .v6-composer--studio .v6-composer__body {
  flex: 1 1 auto;
  padding: 22px clamp(22px, 4vw, 64px) 150px !important;
  overflow: auto;
  scroll-behavior: smooth;
}
body .v6-composer--studio .v6-composer__body > * {
  width: min(1540px, 100%);
  margin-left: auto !important;
  margin-right: auto !important;
}
body .v6-composer--studio .v6-composer__summary {
  position: sticky;
  top: -22px;
  z-index: 2;
  padding: 10px 16px;
  margin-bottom: 14px !important;
  border: 1px solid rgba(192,132,252,.18);
  border-radius: 10px;
  background: rgba(28,22,38,.92);
  color: #eee9f7;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 650;
}
body .v6-composer--studio .v6-composer__section {
  margin-top: 0 !important;
  padding: 30px 0 34px !important;
  border-color: var(--studio-line) !important;
}
body .v6-composer--studio .v6-composer__section > * { margin-left: 0 !important; margin-right: 0 !important; }
body .v6-composer--studio .v6-composer__section h3,
body .v6-composer--studio .compose-section-heading h3 {
  min-height: 0;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  color: #f5f3f8 !important;
  font-size: clamp(17px, 1.5vw, 22px) !important;
  font-weight: 720;
  letter-spacing: -.025em !important;
  line-height: 1.15;
  text-transform: none !important;
}
body .v6-composer--studio .v6-composer__section h3::before { display: none; }
body .v6-composer--studio .compose-section-heading h3 span { color: #7d7888; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.compose-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px !important;
}
.compose-section-heading--actions { align-items: center; }
.compose-eyebrow {
  display: block;
  color: #b88cf4;
  font: 800 9px/1.3 var(--font-sans, system-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.compose-auto-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #85818f;
  font-size: 10px;
}
.compose-auto-note i { width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 12px #8b5cf6; }

body .v6-composer--studio select,
body .v6-composer--studio input[type="number"],
body .v6-composer--studio textarea {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #17161e;
  color: #f5f3f8;
  font: 550 12px/1.2 var(--font-sans, system-ui);
  outline: none;
}
body .v6-composer--studio select:focus,
body .v6-composer--studio input:focus,
body .v6-composer--studio textarea:focus {
  border-color: #9f67e9;
  box-shadow: 0 0 0 3px rgba(139,92,246,.14);
}
body .v6-composer--studio button:focus-visible { outline: 2px solid #c084fc; outline-offset: 2px; }

.compose-foundation-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 0 !important;
}
.compose-control {
  min-width: 0;
  min-height: 105px;
  padding: 13px;
  border: 1px solid var(--studio-line);
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  color: #bbb6c5 !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.compose-control > select, .compose-control > .compose-scale-pair { margin-top: 9px; }
.compose-control > small {
  min-height: 14px;
  margin-top: 8px;
  color: #7f7a89;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.compose-scale-pair { display: flex; gap: 6px; }
.compose-scale-pair select:first-child { width: 58px; }
.compose-scale-pair select:last-child { flex: 1; width: 0; }
.compose-scale-pair input { width: 82px; }
.compose-scale-pair button,
.compose-toolbar button,
.compose-section-heading > button,
.compose-inspector__actions button,
[data-chart-action] {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #d9d5e0;
  padding: 7px 10px;
  font: 700 10px/1 var(--font-sans, system-ui);
  cursor: pointer;
}
.compose-scale-pair button:hover,
.compose-toolbar button:hover,
.compose-section-heading > button:hover,
.compose-inspector__actions button:hover { border-color: rgba(192,132,252,.5); background: rgba(139,92,246,.12); color: #fff; }
button:disabled { opacity: .36; cursor: default; }
.compose-duration output {
  display: block;
  height: 30px;
  margin-top: 4px;
  color: #f3e8ff;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 30px;
  text-transform: none;
}
.compose-duration input { width: 100%; accent-color: #a855f7; }
.compose-duration > small { display: flex; justify-content: space-between; margin-top: 0; }
.compose-fact { margin: 10px 0 0 !important; color: #7f7a89; font-size: 10px; }

body .v6-composer--studio .v6-composer__brief {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 16px 18px;
  resize: vertical;
  background:
    radial-gradient(circle at 100% 0, rgba(139,92,246,.08), transparent 34%),
    #131219;
  border-color: rgba(192,132,252,.2);
  font-size: 14px;
  line-height: 1.55;
}
body .v6-composer--studio .v6-composer__brief::placeholder { color: #6e6978; font-style: normal; }
body .v6-composer--studio .v6-composer__brief-foot { margin-top: 8px !important; }
.compose-interpretation {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 14px !important;
  padding: 12px 14px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}
.compose-interpretation > strong { padding-top: 6px; color: #aba6b4; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.compose-hints { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.compose-hints button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 999px;
  background: rgba(139,92,246,.09);
  color: #e7ddf7;
  cursor: pointer;
  font-size: 10px;
}
.compose-hints button i { color: #86efac; font: 700 8px/1 var(--font-sans, system-ui); text-transform: uppercase; }
.compose-hints button b { color: #8f8999; font-size: 13px; }
.compose-hints button:hover { border-color: #9f67e9; }
.compose-hints__empty { padding: 5px 0; color: #777280; font-size: 10px; }

.compose-toolbar { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.compose-toolbar [data-chart-action="templates"] { border-color: rgba(192,132,252,.34); color: #dec8fa; }
.compose-template-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 9px;
  max-height: 410px;
  margin-bottom: 14px !important;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #0d0d12;
}
.compose-template-gallery[hidden] { display: none; }
.compose-template-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  background: #15141b;
  color: #eeeaf2;
  cursor: pointer;
}
.compose-template-card:hover { border-color: rgba(192,132,252,.5); background: #1a1722; transform: translateY(-1px); }
.compose-template-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compose-template-card__top strong { font-size: 12px; }
.compose-template-card__top em { color: #c4b5fd; font: 750 8px/1 var(--font-sans, system-ui); letter-spacing: .08em; text-transform: uppercase; }
.compose-template-card__shape { display: flex; align-items: center; gap: 3px; overflow: hidden; }
.compose-template-card__shape i {
  min-width: 0;
  overflow: hidden;
  padding: 4px 5px;
  border-top: 2px solid var(--compose-section-color);
  border-radius: 3px;
  background: rgba(255,255,255,.045);
  color: #aaa5b5;
  font: 650 8px/1 var(--font-sans, system-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compose-template-card__shape i b { margin-left: 4px; color: #eee; }
.compose-template-card__shape > span { color: #514d58; font-size: 8px; }
.compose-template-card__meta { color: #7f7a89; font-size: 9px; }

.compose-arrangement-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: stretch; }
.compose-arrangement-canvas, .compose-inspector {
  min-width: 0;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #0d0d12;
}
.compose-arrangement-canvas { padding: 14px; overflow: hidden; }
.compose-song-overview { display: flex; gap: 3px; height: 13px; margin-bottom: 10px; }
.compose-song-overview button {
  flex: var(--section-grow) 1 0;
  min-width: 5px;
  border: 0;
  border-radius: 2px;
  opacity: calc(.35 + var(--section-energy) * .65);
  background: var(--compose-section-color);
  cursor: pointer;
}
.compose-song-overview button.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 13px var(--compose-section-color); opacity: 1; }
.compose-song-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  align-items: flex-end;
  gap: 10px;
  min-height: 0;
  padding: 8px 2px 5px;
}
.compose-block {
  position: relative;
  display: block !important;
  width: 100%;
  min-width: 0;
  height: calc(94px + var(--section-energy) * 80px);
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--compose-section-color) 45%, rgba(255,255,255,.1)) !important;
  border-top: 3px solid var(--compose-section-color) !important;
  border-radius: 8px !important;
  background: linear-gradient(160deg, color-mix(in srgb, var(--compose-section-color) 9%, #17151e), #101016 78%) !important;
  box-shadow: none !important;
  transition: border-color .13s, transform .13s, box-shadow .13s;
}
.compose-block:hover { transform: translateY(-2px); }
.compose-block.is-selected { border-color: color-mix(in srgb, var(--compose-section-color) 70%, white) !important; box-shadow: 0 9px 28px rgba(0,0,0,.32), 0 0 0 1px color-mix(in srgb, var(--compose-section-color) 35%, transparent) inset !important; }
.compose-block__select {
  display: grid;
  align-content: end;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 27px 11px 11px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.compose-block__number { position: absolute; top: 9px; left: 11px; color: #77717e; font: 750 8px/1 var(--font-mono, monospace); }
.compose-block__select strong { color: #f2eef6; font-size: 12px; line-height: 1.1; }
.compose-block__select small { color: #8f8998; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-block__select em { overflow: hidden; color: #c4b5fd; font: 600 9px/1.2 var(--font-mono, monospace); text-overflow: ellipsis; white-space: nowrap; }
.compose-block__energy { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); }
.compose-block__energy i { display: block; width: calc(var(--section-energy) * 100%); height: 100%; border-radius: inherit; background: var(--compose-section-color); }
.compose-block > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.compose-block__grip { position: absolute; top: 7px; right: 8px; color: #80798a; cursor: grab; font-size: 12px; }
.compose-block__lock { position: absolute; top: 11px; right: 28px; color: #f9d77e; font-size: 6px; }
.compose-map-help { margin: 10px 2px 0; color: #777280; font-size: 9px; line-height: 1.45; }

.compose-inspector { padding: 15px; background: linear-gradient(180deg, #17151e, #111117); }
.compose-inspector__head { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--studio-line); }
.compose-inspector__head > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--compose-section-color) 52%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--compose-section-color) 12%, transparent); color: #fff; font: 750 11px/1 var(--font-mono, monospace); }
.compose-inspector__head small { color: #827c8b; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.compose-inspector__head h4 { margin: 2px 0 0; color: #f4eff8; font-size: 15px; }
.compose-inspector__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.compose-inspector__grid label { display: grid; gap: 5px; min-width: 0; color: #8f8998; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.compose-inspector__grid select { width: 100%; min-height: 34px !important; padding: 6px; font-size: 10px !important; letter-spacing: 0; text-transform: none; }
.compose-inspector__wide { grid-column: 1 / -1; }
.compose-energy { grid-template-columns: 1fr auto; }
.compose-energy input { grid-column: 1 / -1; width: 100%; accent-color: #a855f7; }
.compose-energy output { color: #d8b4fe; }
.compose-inspector__theory { display: grid; gap: 5px; margin-top: 13px; padding: 11px; border: 1px solid var(--studio-line); border-radius: 8px; background: rgba(0,0,0,.18); }
.compose-inspector__theory span { color: #7d7786; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.compose-inspector__theory strong { color: #d8b4fe; font: 650 11px/1.3 var(--font-mono, monospace); }
.compose-inspector__theory small { color: #7f7a89; font-size: 8px; line-height: 1.4; }
.compose-inspector__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.compose-inspector__actions button:nth-last-child(1) { color: #fda4af; }

.compose-band { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 9px; padding: 0 !important; }
.compose-band-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 9px !important;
  align-items: end !important;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.compose-band-row > strong { display: flex; align-items: center; gap: 7px; grid-column: 1 / -1; color: #eeeaf3; font-size: 11px; }
.compose-band-row > strong span { color: #c084fc; }
.compose-band-row > label { display: grid !important; gap: 5px; min-width: 0; color: #807b89; font-size: 8px !important; letter-spacing: .08em; text-transform: uppercase; }
.compose-band-row > label:not(.compose-range-control) { grid-column: 1 / -1; }
.compose-band-row select { width: 100%; min-height: 34px !important; padding: 6px !important; font-size: 10px !important; letter-spacing: 0; text-transform: none; }
.compose-range-control { grid-template-columns: 1fr auto 1fr auto !important; align-items: center; }
.compose-range-control input { width: 40px; min-height: 28px !important; padding: 4px !important; }
.compose-range-note { color: #77717e; font-size: 9px; }
.compose-dice { align-self: center; padding: 6px 8px !important; border-radius: 7px !important; }
.compose-band-row > small { grid-column: 1 / -1 !important; min-height: 14px; color: #8d8796 !important; font-size: 9px; }
.compose-band-map-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--studio-line); border-radius: 10px; background: #0d0d12; }
.compose-band-map {
  display: grid;
  grid-template-columns: 120px repeat(var(--compose-columns), minmax(68px, 1fr));
  min-width: calc(120px + var(--compose-columns) * 68px);
}
.compose-band-map > * { min-height: 38px; border: 0; border-right: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); background: transparent; color: #948e9e; }
.compose-band-map > strong, .compose-band-map__corner { display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 9px; }
.compose-band-map > strong span { color: #b583f1; }
.compose-band-map > button { display: grid; place-items: center; padding: 4px; cursor: pointer; font: 650 8px/1.15 var(--font-sans, system-ui); }
.compose-band-map > button small { display: block; color: #5f5968; font-size: 7px; }
.compose-band-map > button.is-selected { color: #f1e9fb; background: rgba(139,92,246,.08); }
.compose-role-cell span { font-size: 12px; }
.compose-role-cell small { opacity: 0; height: 0; overflow: hidden; }
.compose-role-cell:hover small { opacity: 1; height: auto; }
.compose-role-cell.is-auto { color: #696371; }
.compose-role-cell.is-play { color: #86efac; background: rgba(34,197,94,.065); }
.compose-role-cell.is-rest { color: #fda4af; background: rgba(244,63,94,.055); }

.compose-generation__primary { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.5fr); gap: 10px; }
body .v6-composer--studio .compose-generation .v6-composer__section {
  min-width: 0;
  padding: 14px !important;
  border: 1px solid var(--studio-line) !important;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
body .v6-composer--studio .compose-generation .v6-composer__section h3 { margin-bottom: 10px !important; font-size: 11px !important; letter-spacing: .05em !important; }
body .v6-composer--studio .compose-generation .v6-composer__section--melody-plus .v6-composer__caption { font-size: 8px; }
body .v6-composer--studio .compose-generation .v6-composer__check { align-items: flex-start; }
.compose-generation > .v6-composer__advanced { margin-top: 10px; border: 1px solid var(--studio-line); border-radius: 10px; background: rgba(255,255,255,.015); }
body .v6-composer--studio .v6-composer__advanced > summary { padding: 13px 15px; }
body .v6-composer--studio .v6-composer__advanced-body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; padding: 0 12px 12px; }
body .v6-composer--studio .v6-composer__advanced-body .v6-composer__section { padding: 11px !important; }
body .v6-composer--studio .v6-composer__advanced-body .v6-composer__section h3 { font-size: 10px !important; }

body .v6-composer--studio .v6-composer__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 72px;
  padding: 13px clamp(22px, 4vw, 64px) !important;
  background: rgba(9,9,13,.88);
  border-top: 1px solid var(--studio-line);
  box-shadow: 0 -18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(22px);
  z-index: 4;
}
body .v6-composer--studio .v6-composer__footer::before {
  content: 'Your draft is kept when you return to the song';
  margin-left: 10px;
  color: #716b7b;
  font-size: 9px;
}
body .v6-composer--studio .v6-composer__footer > [data-action="compose"] { min-width: 220px; margin-left: auto; }

@media (max-width: 1180px) {
  .compose-foundation-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .compose-band { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .compose-template-gallery { grid-template-columns: repeat(2, minmax(270px, 1fr)); }
  body .v6-composer--studio .v6-composer__advanced-body { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body .v6-composer--studio .v6-composer__subtitle,
  body .v6-composer--studio .v6-composer__footer::before { display: none; }
  body .v6-composer--studio .v6-composer__body { padding-left: 15px !important; padding-right: 15px !important; }
  .compose-arrangement-layout { grid-template-columns: 1fr; }
  .compose-inspector { order: -1; }
  .compose-band { grid-template-columns: 1fr 1fr; }
  .compose-generation__primary { grid-template-columns: 1fr; }
  .compose-template-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .compose-foundation-grid, .compose-band { grid-template-columns: 1fr !important; }
  .compose-section-heading { align-items: flex-start; flex-direction: column; }
  .compose-toolbar { justify-content: flex-start; }
  .compose-interpretation { grid-template-columns: 1fr; }
  .compose-song-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .v6-composer--studio .v6-composer__footer { gap: 7px; padding: 10px !important; }
  body .v6-composer--studio .v6-composer__footer > [data-action="compose"] { min-width: 0; flex: 1; }
}

body[data-theme="light"] .v6-composer--studio {
  --studio-bg: #f5f3f8;
  --studio-panel: #fff;
  --studio-line: rgba(42,31,56,.12);
  background: radial-gradient(circle at 8% -10%, rgba(124,58,237,.12), transparent 30%), #f5f3f8;
}
body[data-theme="light"] .v6-composer--studio .v6-composer__card { background: transparent !important; }
body[data-theme="light"] .v6-composer--studio .v6-composer__head,
body[data-theme="light"] .v6-composer--studio .v6-composer__footer { background: rgba(250,249,252,.9) !important; }
body[data-theme="light"] .v6-composer--studio .compose-arrangement-canvas,
body[data-theme="light"] .v6-composer--studio .compose-inspector,
body[data-theme="light"] .v6-composer--studio .compose-band-map-wrap,
body[data-theme="light"] .v6-composer--studio .compose-template-gallery { background: #fff; }
body[data-theme="light"] .v6-composer--studio select,
body[data-theme="light"] .v6-composer--studio input[type="number"],
body[data-theme="light"] .v6-composer--studio textarea,
body[data-theme="light"] .v6-composer--studio .compose-template-card { background: #fff; color: #241d2d; }
body[data-theme="light"] .v6-composer--studio .compose-block { background: linear-gradient(160deg, color-mix(in srgb, var(--compose-section-color) 10%, white), #faf9fb 78%) !important; }
body[data-theme="light"] .v6-composer--studio .compose-block__select strong,
body[data-theme="light"] .v6-composer--studio .compose-inspector h4,
body[data-theme="light"] .v6-composer--studio .compose-section-heading h3 { color: #211a29 !important; }

/* Direction is an invitation to explore, with the actual choices always visible. */
.v6-composer--studio { --direction-text: #f3edf9; --direction-soft: #bcb4c9; --direction-fill: #17131f; }
.compose-direction-pair { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-bottom: 16px !important; }
.compose-style-card, .compose-feel-card { min-width: 0; padding: 22px; border: 1px solid rgba(192,132,252,.22); border-radius: 16px; background: linear-gradient(120deg, rgba(139,92,246,.10), rgba(255,255,255,.02)); }
.compose-feel-card { border-color: var(--studio-line); background: rgba(255,255,255,.025); }
.compose-direction-top, .compose-control-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.compose-direction-top .compose-eyebrow { font-size: 10px; letter-spacing: .09em; }
.compose-direction-top > small, .compose-style-card > small { color: var(--direction-soft); font-size: 11px; }
.compose-direction-pair button, .compose-style-library button, .compose-control button { cursor: pointer; font-family: inherit; }
body .v6-composer--studio button:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
.compose-direction-top button, .compose-control-head button { border: 1px solid rgba(192,132,252,.24); border-radius: 20px; background: rgba(139,92,246,.09); padding: 7px 10px; color: var(--direction-soft); font-size: 11px; white-space: nowrap; }
.compose-direction-top button[aria-pressed="true"], .compose-control-head button[aria-pressed="true"] { color: #d8c4fa; background: rgba(139,92,246,.18); }
.compose-style-card > p, .compose-feel-card > p { margin: 12px 0 16px; color: var(--direction-soft); font-size: 13px; line-height: 1.6; }
.compose-feels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.compose-feels button, .compose-style-groups button { padding: 9px 12px; min-height: 38px; border: 1px solid var(--studio-line); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--direction-soft); font-size: 12px; }
.compose-feels button:hover, .compose-style-groups button:hover { border-color: #a78bfa; }
.compose-feels button[aria-pressed="true"], .compose-style-groups button[aria-pressed="true"] { border-color: #a78bfa; background: rgba(139,92,246,.22); color: var(--direction-text); }
.compose-dynamics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compose-rhythm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; color: var(--direction-soft); font-size: 11px; }
body .v6-composer--studio .compose-rhythm select { min-height: 34px; padding: 7px; font-size: 11px; }
.compose-rhythm small { flex-basis: 100%; font-size: 10px; }
.compose-dynamics label { color: var(--direction-soft); font-size: 11px; }
body .v6-composer--studio .compose-dynamics select { width: 100%; display: block; margin: 7px 0; font-size: 11px; padding: 8px; }
.compose-dynamics small { color: var(--direction-soft); font-size: 10px; }
.compose-style-library[hidden], .compose-prompt-panel[hidden] { display: none; }
.compose-style-note { margin: 12px 0 0; color: var(--direction-soft); font-size: 12px; line-height: 1.5; }
.compose-control { font-size: 10px !important; min-height: 142px; padding: 16px; }
.compose-control small { display: block; color: var(--direction-soft); font-size: 11px; }
.compose-control > p { color: var(--direction-soft); font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-transform: none; margin: 8px 0 0; }
.compose-control-head + .compose-scale-pair { margin-top: 9px; }
.compose-bpm-label { align-self: center; padding: 0 4px; color: var(--direction-soft); font-size: 11px; letter-spacing: 0; }
.compose-length-presets { display: flex; gap: 5px; margin-top: 8px; }
.compose-length-presets button { flex: 1; padding: 5px; color: var(--direction-soft); background: transparent; border: 1px solid var(--studio-line); border-radius: 5px; font-size: 11px; }
.compose-length-presets button[aria-pressed="true"] { border-color: #a78bfa; color: var(--direction-text); background: rgba(139,92,246,.12); }
.compose-idea-label { display: block; margin-bottom: 9px; color: var(--direction-text); font-size: 13px; font-weight: 650; }
.compose-idea-label span { margin-left: 8px; color: var(--direction-soft); font-size: 11px; font-weight: 400; }
body .v6-composer--studio .compose-prompt-generate { padding: 12px 18px; border: 1px solid #ae82ee; border-radius: 9px; background: linear-gradient(115deg, #7139b7, #853884); color: #fff; font-size: 13px; box-shadow: 0 4px 20px rgba(139,92,246,.16); }
.compose-prompt-generate small { margin-left: 7px; font-size: 10px; font-weight: 500; opacity: .8; }
.compose-prompt-panel { margin-top: 20px !important; scroll-margin-top: 60px; border: 1px solid #b68bfb55; background: radial-gradient(ellipse at 0 0, #8b5cf621, transparent 65%), var(--studio-panel); border-radius: 18px; padding: 24px; }
.compose-prompt-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--direction-text); }
.compose-prompt-title { display: flex; align-items: center; gap: 14px; }
.compose-prompt-spark { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 1px solid #b99aff55; border-radius: 15px; background: linear-gradient(135deg, #7958af44, #e38bbe22); color: #dec2ff; font-size: 29px; transform: rotate(-7deg); }
body .v6-composer--studio .compose-prompt-title h4 { margin: 5px 0 6px; color: var(--direction-text); font: 700 21px/1.2 var(--font-sans, system-ui); letter-spacing: -.025em; }
.compose-prompt-title p { margin: 0; color: var(--direction-soft); font-size: 12px; line-height: 1.5; }
.compose-prompt-regenerate, .compose-prompt-footer button { min-height: 42px; padding: 10px 14px; border: 1px solid var(--studio-line); border-radius: 9px; background: #ffffff08; color: var(--direction-text); font: 600 12px var(--font-sans, system-ui); }
.compose-prompt-regenerate { border-color: #b99aff66; background: #8b5cf61c; white-space: nowrap; }
.compose-prompt-regenerate > span { margin-right: 6px; font-size: 17px; }
.compose-prompt-regenerate:hover, .compose-prompt-footer button:not(:disabled):hover { border-color: #b99aff; background: #8b5cf625; }
.compose-prompt-context { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 12px; }
.compose-prompt-context span { padding: 6px 9px; color: var(--direction-soft); background: #a78bfa0d; border: 1px solid var(--studio-line); border-radius: 20px; font-size: 11px; }
.compose-prompt-paper { padding: 16px 18px; border: 1px solid #b99aff2b; border-radius: 12px; background: var(--direction-fill); }
.compose-prompt-paper-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 9px; color: var(--direction-soft); letter-spacing: .08em; }
#composePromptIdeaNumber { color: #c9adf7; font-weight: 650; }
body .v6-composer--studio #composeGeneratedPrompt { display: block; width: 100%; min-height: 98px; resize: vertical; border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--direction-text); font: 500 15px/1.75 var(--font-sans, system-ui); }
.compose-prompt-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.compose-prompt-navigation, .compose-prompt-actions { display: flex; align-items: center; gap: 8px; }
.compose-prompt-navigation > span { min-width: 85px; text-align: center; color: var(--direction-soft); font-size: 11px; }
.compose-prompt-navigation button { width: 42px; padding: 8px; }
.compose-prompt-footer button:disabled { opacity: .4; cursor: default; }
.compose-prompt-footer .compose-prompt-use { background: #c9adf7; border-color: #c9adf7; color: #21132f; min-width: 166px; }
.compose-prompt-footer .compose-prompt-use:not(:disabled):hover { color: #21132f; background: #ddc7ff; }
.compose-prompt-panel--used { border-color: #82d6b16b; }
.compose-prompt-panel--used #composePromptIdeaNumber { color: #9bd9bd; }
.compose-prompt-panel--used .compose-prompt-footer .compose-prompt-use:disabled { opacity: 1; background: #82d6b11a; border-color: #82d6b14d; color: #a5e0c6; }
.compose-prompt-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; color: var(--direction-soft); font-size: 11px; line-height: 1.5; }
.compose-prompt-note button, .compose-prompt-restore { flex-shrink: 0; border: 0; padding: 7px 0; background: transparent; color: var(--direction-soft); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
body .v6-composer--studio .compose-prompt-generate[hidden], .compose-prompt-restore[hidden] { display: none; }
body .v6-composer--studio #composeBrief.compose-brief-accepted { border-color: #82d6b175; box-shadow: 0 0 0 1px #82d6b116; }
body[data-theme="light"] #composePromptIdeaNumber { color: #755292; }
body[data-theme="light"] .compose-prompt-panel--used #composePromptIdeaNumber,
body[data-theme="light"] .compose-prompt-footer .compose-prompt-use:disabled { color: #24644a; }
@media (max-width: 560px) {
  .compose-prompt-title { align-items: flex-start; gap: 10px; }
  .compose-prompt-spark { flex-basis: 36px; height: 36px; font-size: 22px; border-radius: 10px; }
  body .v6-composer--studio .compose-prompt-title h4 { font-size: 19px; }
  .compose-prompt-regenerate, .compose-prompt-actions { width: 100%; }
  .compose-prompt-context { margin-top: 14px; }
  .compose-prompt-paper { padding: 14px; }
  body .v6-composer--studio #composeGeneratedPrompt { min-height: 230px; font-size: 14px; }
  body .v6-composer--studio #composeBrief.compose-brief-accepted { min-height: 280px; }
  .compose-prompt-navigation { margin: auto; }
  .compose-prompt-actions button { flex: 1; }
  .compose-prompt-note { align-items: flex-start; flex-direction: column; gap: 3px; }
  .v6-composer__brief-foot { flex-wrap: wrap; }
}
.compose-band-keep { width: fit-content; margin-top: 8px; padding: 6px 8px; color: var(--direction-soft); background: transparent; border: 1px solid var(--studio-line); border-radius: 6px; font: 500 10px var(--font-sans, system-ui); cursor: pointer; }
.compose-band-keep[aria-pressed="true"] { border-color: #a78bfa; }
body .v6-composer--studio .v6-composer__advanced-body { grid-template-columns: 1fr 1fr; }
body[data-theme="light"] .v6-composer--studio { --direction-text: #261a38; --direction-soft: #665774; --direction-fill: #faf7ff; --studio-panel: #fff; color-scheme: light; }
body[data-theme="light"] .compose-direction-top button[aria-pressed="true"],
body[data-theme="light"] .compose-control-head button[aria-pressed="true"] { color: #63438a; }
@media (max-width: 1180px) {
  .compose-direction-pair { grid-template-columns: 1fr 1fr; }
  .compose-dynamics { gap: 7px; }
  .compose-foundation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
  .compose-direction-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body .v6-composer--studio .v6-composer__head { padding: 12px !important; gap: 8px; }
  body .v6-composer--studio .v6-composer__title { gap: 7px; }
  body .v6-composer--studio .v6-composer__title h2 { font-size: 16px; }
  body .v6-composer--studio .v6-composer__footer { display: grid; grid-template-columns: 1fr 1fr; }
  body .v6-composer--studio .v6-composer__footer > [data-action="random-all"] { margin-left: 0; justify-content: center; }
  body .v6-composer--studio .v6-composer__footer > [data-action="compose"] { grid-column: 1 / -1; width: 100%; justify-content: center; }
  body .v6-composer--studio .v6-composer__body { padding-bottom: 185px !important; }
  .compose-direction-top { flex-wrap: wrap; }
  .compose-style-card, .compose-feel-card, .compose-prompt-panel { padding: 16px; }
  .compose-foundation-grid { grid-template-columns: 1fr !important; }
  .compose-idea-label span { display: block; margin: 5px 0 0; }
  .compose-prompt-generate { width: 100%; }
  .compose-control { min-height: 0; }
  .compose-dynamics { grid-template-columns: 1fr; }
  .compose-dynamics label { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 4px 8px; }
  .compose-dynamics small { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  body .v6-composer--studio .v6-composer__body { scroll-behavior: auto; }
}

/* Style collection: distinct record sleeves and direct, reversible choices. */
.compose-style-card { --style-color: #b99aff; display: flex; flex-direction: column; background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--style-color) 15%, transparent), transparent 75%), var(--studio-panel); border-color: color-mix(in srgb, var(--style-color) 30%, transparent); }
#composeStyleMode { color: var(--style-color); border: 1px solid color-mix(in srgb, var(--style-color) 30%, transparent); border-radius: 20px; padding: 5px 9px; font-size: 10px; }
.compose-style-identity { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
#composeStyleArt { flex: 0 0 100px; line-height: 0; }
.compose-style-art { width: 100%; display: block; transform: rotate(-4deg); filter: drop-shadow(0 6px 9px #0003); }
.style-art-base { fill: color-mix(in srgb, var(--style-color) 25%, #14121c); stroke: color-mix(in srgb, var(--style-color) 55%, transparent); }
.style-art-orbit { fill: none; stroke: var(--style-color); stroke-width: 1; opacity: .3; transform-origin: 55px 55px; transform: rotate(var(--sleeve-turn)); }
.style-art-label { fill: var(--style-color); opacity: .65; }
.style-art-bars { fill: var(--style-color); }
.style-art-line { fill: none; stroke: var(--style-color); stroke-width: 2; opacity: .45; }
.compose-style-identity > div:last-child { min-width: 0; }
#composeStyleGroup { display: block; margin-bottom: 6px; color: var(--direction-soft); font-size: 11px; }
#composeStyleName { display: block; color: var(--direction-text); font-size: clamp(24px, 2.6vw, 34px); font-weight: 750; line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
#composeStyleCharacter { display: block; margin-top: 8px; font-size: 12px; color: var(--style-color); }
.compose-style-card > p { margin: 14px 0 16px; }
.compose-style-actions { display: flex; gap: 9px; }
.compose-style-actions > button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--studio-line); background: #ffffff06; color: var(--direction-text); font: 600 12px var(--font-sans, system-ui); }
.compose-style-actions > .compose-style-trigger { flex: 1; justify-content: space-between; color: #16121f; background: var(--style-color); border-color: var(--style-color); }
.compose-style-trigger span { font-size: 10px; opacity: .75; white-space: nowrap; }
.compose-style-actions button:hover { filter: brightness(1.12); }
.compose-style-retain { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; padding: 12px 0 14px; }
.compose-style-retain button { min-height: 34px; border: 1px solid var(--studio-line); padding: 5px 9px; border-radius: 7px; background: transparent; color: var(--direction-soft); font-size: 11px; }
.compose-style-retain button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--style-color) 50%, transparent); color: var(--style-color); background: color-mix(in srgb, var(--style-color) 7%, transparent); }
.compose-style-retain small { font-size: 10px; color: var(--direction-soft); }
.compose-style-nearby { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--studio-line); }
.compose-style-nearby > small { display: block; margin-bottom: 8px; color: var(--direction-soft); font-size: 10px; }
.compose-style-nearby > div { display: flex; flex-wrap: wrap; gap: 6px; }
.compose-style-nearby button { padding: 7px 9px; min-height: 34px; border: 1px solid var(--studio-line); border-radius: 7px; color: var(--direction-text); background: color-mix(in srgb, var(--style-color) 6%, transparent); font-size: 11px; }
.compose-style-nearby button span { margin-left: 5px; color: var(--style-color); }
.compose-style-nearby button:hover { border-color: var(--style-color); }
.compose-style-picker-open .v6-composer__body { overflow: hidden !important; }
.compose-style-library { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 28px; background: #05040bbd; backdrop-filter: blur(10px); }
.compose-style-picker { display: flex; flex-direction: column; width: min(1120px, 100%); height: min(820px, 88dvh); min-height: 0; overflow: hidden; background: var(--studio-panel); color: var(--direction-text); border: 1px solid var(--studio-line); border-radius: 22px; box-shadow: 0 28px 100px #0008; }
.compose-style-picker-heading { display: flex; flex-shrink: 0; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 28px 28px 16px; background: radial-gradient(ellipse at 0 0, #9565e31a, transparent 80%); }
body .v6-composer--studio #composeStylePickerTitle { font: 750 30px/1.2 var(--font-sans, system-ui) !important; letter-spacing: -.035em !important; color: var(--direction-text) !important; margin: 7px 0 !important; }
.compose-style-picker-heading p { color: var(--direction-soft); font-size: 12px; line-height: 1.5; margin: 0; }
.compose-style-picker-heading > button { flex: 0 0 40px; height: 40px; border: 1px solid var(--studio-line); border-radius: 50%; background: #ffffff06; color: var(--direction-text); font-size: 16px; }
.compose-style-search { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 28px; }
.compose-style-search label { flex: 0 0 100%; color: var(--direction-soft); font-size: 11px; }
.compose-style-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--studio-line); border-radius: 10px; color: var(--direction-text); background: var(--direction-fill); font: 13px var(--font-sans, system-ui); }
.compose-style-search button { padding: 10px; border: 0; color: var(--direction-soft); background: transparent; font-size: 11px; }
.compose-style-search button[hidden] { display: none; }
.compose-style-groups { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 7px; padding: 16px 28px; margin: 0; border-bottom: 1px solid var(--studio-line); }
.compose-style-groups button { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; min-height: 38px; padding: 8px 10px; border-radius: 22px; }
.compose-style-groups button > span { color: var(--style-color, #b99aff); }
.compose-style-groups small { font-size: 9px; opacity: .65; }
.compose-style-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 28px 24px; scrollbar-gutter: stable; }
.compose-style-shelf h4 { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; color: var(--style-color); margin: 22px 0 12px; font-size: 13px; font-weight: 650; }
.compose-style-shelf h4 small { color: var(--direction-soft); font-size: 10px; font-weight: 400; }
.compose-style-shelf > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compose-style-option { display: flex; gap: 12px; align-items: flex-start; padding: 15px 12px; border: 1px solid var(--studio-line); border-radius: 12px; background: color-mix(in srgb, var(--style-color) 4%, transparent); color: var(--direction-text); text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.compose-style-option .compose-style-art { width: 56px; flex: 0 0 56px; margin-top: 3px; }
.compose-style-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.compose-style-option-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.compose-style-option-title strong { color: var(--direction-text); font-size: 14px; letter-spacing: -.02em; }
.compose-style-option-title b { color: var(--style-color); font: 600 9px var(--font-sans, system-ui); white-space: nowrap; }
.compose-style-option-character { color: var(--style-color); font-size: 10px; }
.compose-style-option-description { color: var(--direction-soft); font-size: 11px; line-height: 1.5; }
.compose-style-option-body > small { color: var(--direction-soft); font-size: 9px; margin-top: 4px; }
.compose-style-option:hover { border-color: var(--style-color); background: color-mix(in srgb, var(--style-color) 10%, transparent); transform: translateY(-2px); }
.compose-style-option[aria-pressed="true"] { border-color: var(--style-color); background: color-mix(in srgb, var(--style-color) 12%, transparent); box-shadow: inset 0 0 0 1px var(--style-color); }
.compose-style-picker > footer { display: flex; flex-shrink: 0; justify-content: space-between; gap: 10px; padding: 15px 28px; border-top: 1px solid var(--studio-line); color: var(--direction-soft); font-size: 10px; }
.compose-style-picker .compose-style-note { margin: 0; font-size: 10px; }
.compose-style-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 50px 20px; }
.compose-style-empty > span { font-size: 40px; color: #b99aff; }
.compose-style-empty strong { margin-top: 12px; font-size: 18px; }
.compose-style-empty p { color: var(--direction-soft); font-size: 12px; }
.compose-style-empty button { padding: 10px 15px; color: var(--direction-text); border: 1px solid var(--studio-line); border-radius: 8px; background: #9565e322; }
body[data-theme="light"] .compose-style-card,
body[data-theme="light"] .compose-style-picker { --style-color: #7754bd; }
body[data-theme="light"] #composeStyleCharacter,
body[data-theme="light"] #composeStyleMode,
body[data-theme="light"] .compose-style-retain button[aria-pressed="true"],
body[data-theme="light"] .compose-style-shelf h4 > span,
body[data-theme="light"] .compose-style-option-character,
body[data-theme="light"] .compose-style-option-title b { color: color-mix(in srgb, var(--style-color) 55%, #24182f); }
@media (max-width: 1000px) {
  .compose-style-shelf > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #composeStyleArt { flex-basis: 76px; }
  .compose-style-identity { gap: 13px; }
  .compose-style-actions { flex-wrap: wrap; }
  .compose-style-actions > button { padding: 10px 12px; }
  .compose-style-library { padding: 10px; }
  .compose-style-picker { height: calc(100dvh - 20px); border-radius: 15px; }
  .compose-style-picker-heading { padding: 18px 16px 12px; gap: 8px; }
  body .v6-composer--studio #composeStylePickerTitle { font-size: 25px !important; }
  .compose-style-search { padding: 0 16px; }
  .compose-style-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px; gap: 6px; }
  .compose-style-groups button { justify-content: center; padding: 8px 6px; gap: 5px; font-size: 10px; }
  .compose-style-results { padding: 0 16px 16px; }
  .compose-style-shelf > div { grid-template-columns: 1fr; }
  .compose-style-shelf h4 { margin-top: 16px; }
  .compose-style-picker > footer { padding: 12px 16px; }
  .compose-style-picker > footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .compose-style-option { transition: none; }
  .compose-style-option:hover { transform: none; }
}
