:root {
  color-scheme:light;
  --canvas:#f7f9fd;
  --paper:#fff;
  --ink:#15243b;
  --muted:#7b879b;
  --subtle:#53637c;
  --line:#e5ebf4;
  --accent:#2b61e8;
  --accent-hover:#204ed0;
  --accent-light:#edf3ff;
  --font:-apple-system,BlinkMacSystemFont,"Inter","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
}
.login-page { min-height:100svh; display:grid; place-items:center; padding:28px; }
.login-card { width:100%; max-width:340px; }
.login-card .brand { margin-bottom:44px; }
.login-card h1 { margin:0 0 30px; font-size:26px; font-weight:500; letter-spacing:-.6px; }
.login-card input { padding:14px 16px; }
.login-card .primary { width:100%; justify-content:space-between; }
.login-error { min-height:28px; color:#be4343; font-size:13px; margin-bottom:8px; }
.sidebar-logout { margin:0 24px 20px; align-self:flex-start; color:var(--muted); }
.creation-only .station-main { padding-top:40px; }
@media(max-width:700px) { .creation-only .station-main { padding-top:24px; } }
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font:14px/1.6 var(--font);
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea {
  font:inherit;
}
button,a,select,summary {
  touch-action:manipulation;
}
button,a {
  color:inherit;
}
button {
  cursor:pointer;
}
button:disabled,select:disabled {
  cursor:default;
  opacity:.45;
}
[hidden] {
  display:none!important;
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=button]:focus-visible {
  outline:3px solid #2b61e82e;
  outline-offset:3px;
}
h1,h2,p {
  margin:0;
}
h1 {
  font-size:30px;
  line-height:1.35;
  font-weight:650;
  letter-spacing:-.8px;
}
h2 {
  font-size:14px;
  font-weight:600;
}
a {
  text-decoration:none;
}
svg {
  display:block;
}
fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
.muted {
  color:var(--muted);
  font-size:12px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
/* One collection, three work areas. */
.station-layout {
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  min-height:100dvh;
}
.station-sidebar {
  position:sticky;
  top:0;
  height:100dvh;
  background:var(--paper);
  border-right:1px solid var(--line);
  padding:0 20px 24px;
  display:flex;
  flex-direction:column;
}
.station-topbar {
  height:84px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  padding-left:8px;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  color:#162a4a;
  font-size:26px;
  font-weight:750;
  letter-spacing:-1.2px;
}
.brand svg {
  width:32px;
  height:32px;
  padding:5px;
  background:var(--accent);
  border-radius:9px;
  fill:none;
  stroke:white;
  stroke-width:1.8;
  stroke-linecap:round;
}
.brand-dot {
  color:var(--accent);
}
.sidebar-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 10px 16px;
  font-size:12px;
  color:var(--muted);
}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  border-radius:7px;
  width:30px;
  height:30px;
  padding:0;
  font-size:22px;
  font-weight:300;
  color:var(--muted);
}
.icon-button:hover {
  background:var(--accent-light);
  color:var(--accent);
}
#spaceList {
  overflow-y:auto;
  min-height:0;
}
.space-item {
  display:flex;
  gap:11px;
  width:100%;
  align-items:center;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  padding:14px 12px;
  text-align:left;
  margin-bottom:6px;
}
.space-item:hover {
  background:#f6f8fc;
}
.space-item.active {
  background:var(--accent-light);
  color:var(--accent);
}
.space-symbol {
  flex:0 0 30px;
  width:30px;
  height:32px;
  display:grid;
  place-items:center;
}
.space-symbol svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
}
.space-copy {
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.space-copy strong {
  font-size:14px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.space-copy small {
  font-size:11px;
  font-weight:400;
  color:#8795ab;
  white-space:nowrap;
}
.sidebar-footer {
  margin-top:auto;
  padding:20px 12px 0;
  color:#a0aabc;
  font-size:11px;
}
.station-main {
  min-width:0;
  padding:0 clamp(24px,3vw,52px) 32px;
}
.station-tabs {
  position:sticky;
  z-index:10;
  top:0;
  height:84px;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid var(--line);
  background:var(--canvas);
}
.station-tabs button {
  display:inline-flex;
  gap:8px;
  align-items:center;
  height:38px;
  padding:0 16px;
  border:0;
  background:transparent;
  border-radius:8px;
  color:var(--subtle);
  font-size:13px;
  font-weight:500;
}
.station-tabs button svg {
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.station-tabs button:hover {
  color:var(--accent);
}
.station-tabs button[aria-current=page] {
  color:var(--accent);
  background:#eaf0fe;
  font-weight:600;
}
.station-caption {
  margin-left:auto;
  color:#95a0b2;
  font-size:11px;
}
.station-view {
  max-width:1440px;
  margin:0 auto;
  padding-top:34px;
}
.view-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}
.view-heading p {
  color:var(--muted);
  font-size:13px;
  margin-top:8px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.station-tabs {
  max-width:1440px;
  margin:0 auto;
}
/* Shared controls. */
.primary,.secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:40px;
  padding:9px 17px;
  border:1px solid transparent;
  border-radius:8px;
  text-decoration:none;
  white-space:nowrap;
  font-size:13px;
  font-weight:550;
  transition:background .15s,border-color .15s;
}
.primary {
  color:#fff;
  background:var(--accent);
  border-color:var(--accent);
}
.primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover);
}
.secondary {
  background:var(--paper);
  border-color:#dbe3f0;
  color:var(--subtle);
}
.secondary:hover {
  border-color:#b8ccf5;
  color:var(--accent);
  background:#fafdff;
}
.text-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:30px;
  border:0;
  background:transparent;
  color:var(--subtle);
  font-size:13px;
  font-weight:500;
  padding:4px 0;
}
.text-button:hover {
  color:var(--accent);
}
.small {
  font-size:12px;
}
input,textarea,select {
  max-width:100%;
  border:1px solid #dfe6f1;
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
}
input,textarea {
  width:100%;
  padding:11px 13px;
}
textarea {
  display:block;
  resize:vertical;
  line-height:1.85;
  scrollbar-width:thin;
  scrollbar-color:#cbd6e7 transparent;
}
input::placeholder,textarea::placeholder {
  color:#9aa6b9;
}
input:focus,textarea:focus,select:focus {
  border-color:#a6bef2;
  outline:none;
  box-shadow:0 0 0 3px #2b61e80a;
}
select {
  min-height:36px;
  padding:7px 30px 7px 12px;
  font-size:12px;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23818fa6' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 9px center;
  cursor:pointer;
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  font-weight:500;
  margin-bottom:20px;
}
.field textarea,.field input {
  font-weight:400;
}
details summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  list-style:none;
  cursor:pointer;
  font-size:13px;
  color:var(--subtle);
}
details summary::-webkit-details-marker {
  display:none;
}
details summary>span {
  color:#95a5bd;
  font-size:18px;
  font-weight:300;
  transition:transform .15s;
}
details[open]>summary>span {
  transform:rotate(45deg);
}
/* Reference library. */
.library-dropzone {
  display:flex;
  align-items:center;
  gap:16px;
  border:1px dashed #ccdaf3;
  border-radius:10px;
  background:#f2f6ff;
  padding:20px 24px;
  margin-bottom:24px;
  cursor:pointer;
}
.library-dropzone:hover,.library-dropzone.dragover {
  border-color:#7c9de6;
  background:#eaf1ff;
}
.import-symbol {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#e4edff;
  color:var(--accent);
  flex:0 0 auto;
}
.import-symbol svg {
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.import-copy {
  font-size:13px;
  color:#5c7297;
  flex:1;
}
.library-dropzone .text-button {
  white-space:nowrap;
  color:var(--accent);
}
.library-toolbar {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
}
.search-field {
  width:300px;
  position:relative;
}
.search-field svg {
  position:absolute;
  left:12px;
  top:11px;
  width:17px;
  height:17px;
  fill:none;
  stroke:#91a0b5;
  stroke-width:1.6;
  stroke-linecap:round;
}
.search-field input {
  height:40px;
  padding-left:38px;
  font-size:13px;
}
.library-toolbar select {
  margin-left:auto;
  min-width:128px;
  height:40px;
  color:var(--subtle);
}
.library-table {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
}
.track-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px 88px 40px;
  align-items:center;
  gap:20px;
  padding:15px 22px;
  border-bottom:1px solid #edf1f7;
  min-height:71px;
}
.track-row:last-child {
  border-bottom:0;
}
.track-row:not(.track-head):hover {
  background:#fafcff;
}
.track-head {
  min-height:43px;
  padding-top:11px;
  padding-bottom:11px;
  background:#fcfdff;
  font-size:11px;
  color:#8a97ab;
}
.track-title {
  display:flex;
  align-items:center;
  gap:13px;
  border:0;
  background:transparent;
  padding:0;
  text-align:left;
  min-width:0;
}
.track-mark {
  width:34px;
  height:34px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#f0f5fd;
  color:#7894c4;
}
.track-mark svg {
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.track-copy {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.track-copy strong {
  font-size:14px;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.track-copy small {
  color:#93a0b3;
  font-size:11px;
  font-weight:400;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.duration {
  color:#8c99ac;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.track-state {
  font-size:11px;
  color:#8796ad;
}
.track-state::before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  margin-right:6px;
  vertical-align:2px;
}
.track-state.analyzed {
  color:#4b7ce1;
}
.track-state.failed {
  color:#ba7280;
}
.track-row>.text-button {
  font-size:12px;
  color:#8999b2;
}
.library-empty {
  color:var(--muted);
  padding:90px 24px;
  text-align:center;
  font-size:13px;
}
.pagination {
  display:flex;
  justify-content:flex-end;
  margin-top:18px;
  font-size:12px;
  color:var(--muted);
}
.pagination>div {
  display:flex;
  align-items:center;
  gap:12px;
}
.pagination .text-button {
  width:32px;
  height:32px;
  padding:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
}
/* Style exploration. */
.space-songs {
  padding:15px 18px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:9px;
  margin-bottom:20px;
}
.space-songs summary {
  font-size:12px;
}
.space-track {
  display:flex;
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.space-track:last-child {
  border:0;
}
.space-track>button:first-child {
  flex:1;
  text-align:left;
  justify-content:flex-start;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.space-track>span {
  font-size:11px;
  color:var(--muted);
}
.space-track select {
  min-height:30px;
  font-size:11px;
}
.style-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  align-items:start;
}
.conversation {
  display:flex;
  flex-direction:column;
  min-width:0;
  height:clamp(420px,calc(100dvh - 300px),820px);
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  padding:26px 26px 20px;
}
.messages {
  flex:1;
  min-height:100px;
  overflow-y:auto;
  padding-right:7px;
  scrollbar-width:thin;
  scrollbar-color:#cfdaec transparent;
}
.chat-message {
  margin-bottom:24px;
  font-size:13px;
  line-height:1.95;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.chat-message .speaker {
  display:block;
  font-size:10px;
  color:#91a0b6;
  margin-bottom:7px;
  line-height:1.4;
  font-weight:500;
}
.chat-message.user {
  background:#eef4ff;
  border:1px solid #e7effe;
  padding:14px 16px;
  border-radius:10px 10px 3px 10px;
  margin-left:32px;
  color:#435b82;
}
.conversation-empty {
  padding:24px 0;
  color:#92a0b6;
  font-size:13px;
  line-height:1.9;
}
.conversation #chatForm,.creation-dialogue #refineForm {
  position:relative;
  flex:0 0 auto;
  margin-top:18px;
}
.conversation textarea,.creation-dialogue textarea {
  background:#fafcff;
  padding:12px 14px 50px;
  font-size:12px;
  min-height:118px;
  resize:none;
}
#chatSend,#refineButton {
  position:absolute;
  right:9px;
  bottom:9px;
  min-height:30px;
  padding:5px 12px;
  font-size:11px;
  border-radius:6px;
}
.style-memory {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
}
.style-memory .section-heading {
  margin-bottom:20px;
}
.style-memory .section-heading .muted {
  color:#7290be;
  font-size:11px;
}
.memory-summary {
  font-size:13px;
  color:#51617a;
  line-height:1.95;
}
.research-link { margin:8px 0 12px; color:var(--accent); }
.research-overview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; }
.memory-directions .memory-field { border-top:1px solid var(--line); padding-top:14px; }
.research-dialog { width:min(900px,calc(100vw - 40px)); max-height:88dvh; padding:0; }
.research-dialog .dialog-heading { position:sticky; top:0; z-index:2; padding:24px 30px; margin:0; background:var(--paper); border-bottom:1px solid var(--line); }
.research-dialog .dialog-actions { bottom:0; margin:0; padding:16px 30px; }
.research-body { padding:18px 30px; font-size:14px; line-height:1.95; color:var(--subtle); }
.research-intro,.research-signature { color:var(--ink); }
.research-family { border-top:1px solid var(--line); margin-top:22px; padding-top:20px; }
.research-family>summary { display:flex; justify-content:space-between; gap:20px; color:var(--ink); font-size:17px; }
.research-family>summary small { color:var(--muted); font-size:12px; }
.research-body strong,.track-study strong { display:block; margin:18px 0 4px; font-size:12px; color:var(--muted); }
.research-rule { margin:18px 0; padding:14px 0; border-top:1px solid var(--line); }
.research-rule>summary { color:var(--accent); font-size:14px; }
.research-source { font-size:12px; color:var(--muted); border-left:2px solid var(--line); padding-left:12px; }
.research-references { margin:18px 0; }
.research-personal { margin-top:30px; }
.research-personal h3 { font-size:18px; color:var(--ink); }
.research-rule blockquote { margin:18px 0; padding-left:14px; border-left:2px solid var(--accent); color:var(--ink); }
.research-mechanism { border-top:1px solid var(--line); margin-top:20px; padding-top:16px; }
.research-mechanism h3 { font-size:16px; color:var(--ink); }
.research-dimension { color:var(--muted); font-size:12px; margin:0; }
.track-study { font-size:14px; line-height:1.9; color:var(--subtle); }
#trackAudio { width:100%; margin:0 0 22px; }
.creation-basis { margin:16px 0 24px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--subtle); font-size:13px; line-height:1.9; }
.creation-basis strong { display:block; color:var(--ink); font-size:12px; margin-bottom:5px; }
.creation-basis .research-source { display:block; margin-top:8px; }
.memory-placeholder {
  color:#95a2b7;
  font-size:13px;
  line-height:1.9;
  padding:10px 0 25px;
}
.style-memory details {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:16px;
}
.style-memory details summary {
  font-size:12px;
}
.memory-field {
  color:var(--subtle);
  font-size:12px;
  line-height:1.9;
  white-space:pre-wrap;
  margin-top:14px;
}
.memory-field strong {
  display:block;
  font-size:11px;
  color:#93a0b3;
  font-weight:500;
  margin-bottom:4px;
}
.lyric-directions {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:16px;
}
.lyric-direction {
  margin-top:14px;
}
.lyric-direction>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.lyric-direction strong {
  font-size:12px;
  font-weight:550;
  color:#536b90;
}
.lyric-direction p {
  font-size:12px;
  line-height:1.85;
  color:#8998ae;
  margin-top:4px;
}
.lyric-direction .text-button {
  min-height:24px;
  padding:0 4px;
  font-size:12px;
}
.style-memory #saveStyle {
  width:100%;
  margin-top:24px;
}
.memory-actions {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
}
.memory-actions select {
  width:100%;
  color:var(--subtle);
}
.memory-actions .text-button {
  font-size:11px;
}
.creative-preferences {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:20px;
}
.preference-trait {
  font-size:12px;
  color:var(--subtle);
  line-height:1.9;
  margin-top:10px;
}
.feedback-entry {
  padding-top:12px;
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
}
.feedback-entry .text-button {
  color:#7290be;
  font-size:11px;
  min-height:24px;
}
.editor-controls {
  display:flex;
  align-items:center;
  gap:14px;
}
.editor-controls #saveDraft {
  color:var(--accent);
  font-size:11px;
}
#finalPromptDialog {
  width:min(740px,calc(100vw - 40px));
}
#finalPromptText {
  font-size:12px;
  line-height:1.85;
  background:#fbfcff;
}
#finalPromptDialog .dialog-actions {
  gap:12px;
}
.style-memory {
  display:flex;
  flex-direction:column;
  height:clamp(420px,calc(100dvh - 300px),820px);
}
.style-memory>.section-heading {
  flex:0 0 auto;
}
.memory-content {
  min-height:0;
  flex:1;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#cfdaec transparent;
  padding-right:4px;
}
.style-memory #saveStyle {
  flex:0 0 auto;
  margin-top:18px;
}
.style-memory .memory-archives {
  flex:0 0 auto;
  margin-top:16px;
  padding-top:14px;
}
.memory-archives .memory-actions {
  margin:0;
  border:0;
  padding-top:14px;
  gap:10px 14px;
}
@media(max-width:820px) {
  .style-memory {
    height:auto;
  }
  .memory-content {
    overflow:visible;
  }
}
/* Writing desk and a persistent per-work conversation. */
.creation-history {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
#projectSelect {
  width:190px;
  font-size:12px;
  color:var(--subtle);
  background-color:var(--paper);
  min-height:40px;
}
.creation-history #newProject {
  padding:9px 15px;
  min-height:40px;
  border:1px solid #dbe3f0;
  border-radius:8px;
  background:var(--paper);
  color:var(--accent);
  font-size:12px;
}
.creation-history #newProject:hover {
  background:var(--accent-light);
}
.creation-history .delete-work-button {
  min-height:40px;
  color:#a14a50;
}
.creation-history .delete-work-button:hover {
  color:#8c313a;
}
.delete-work-name {
  margin:0 0 14px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.dialog-error { color:#a14a50; font-size:13px; }
.primary.danger-button { background:#a84751; border-color:#a84751; }
.primary.danger-button:hover { background:#923b45; }
#deleteProjectDialog { width:min(440px,calc(100vw - 40px)); }
#deleteProjectDialog .dialog-actions { gap:12px; }
.toast .undo-delete { color:inherit; margin-left:16px; text-decoration:underline; }
.creation-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  align-items:start;
  gap:24px;
}
.creation-editor {
  --editor-pad:28px;
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
}
.brief-section {
  padding:23px 28px;
}
.brief-section .section-heading {
  margin-bottom:11px;
}
.brief-section h2 {
  font-size:12px;
  color:#7187a8;
  font-weight:500;
}
.brief-section .muted {
  color:#9aa8bd;
  font-size:11px;
}
.work-theme {
  font-size:13px;
  line-height:1.85;
  color:var(--subtle);
  white-space:pre-wrap;
  max-height:145px;
  overflow-y:auto;
  scrollbar-width:thin;
}
.creation-workspace.has-draft .brief-section {
  border-bottom:1px solid #edf1f7;
}
.creation-workspace:not(.has-draft) .brief-section {
  padding:32px;
}
.creation-workspace:not(.has-draft) .brief-section h2 {
  font-size:20px;
  line-height:1.4;
  color:var(--ink);
  font-weight:600;
}
#theme {
  min-height:210px;
  padding:18px;
  font-size:14px;
  background:#fbfcff;
}
#briefForm .field {
  margin:20px 0;
}
#composeButton {
  min-width:150px;
}
.output {
  padding:22px 28px 26px;
  min-width:0;
}
.output>.section-heading {
  margin-bottom:15px;
}
.output>.section-heading h2 {
  color:#8c9bb1;
  font-size:11px;
  font-weight:500;
}
#revisionSelect {
  min-height:30px;
  font-size:11px;
  padding-top:4px;
  padding-bottom:4px;
}
.song-title {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:28px;
  line-height:1.5;
  font-weight:600;
  letter-spacing:-.6px;
}
.song-title-row {
  display:flex;
  align-items:center;
  gap:10px;
}
.song-title-row .song-title {
  flex:1;
  min-width:0;
  cursor:text;
}
.song-title-row .title-edit-button {
  flex-shrink:0;
  color:#7e96bd;
}
.title-edit-button svg {
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.song-title-row.is-editing .song-title {
  box-shadow:0 1px var(--accent);
}
.song-title-row>.text-button {
  flex-shrink:0;
  color:var(--accent);
  font-size:12px;
}
.song-title:focus {
  box-shadow:none;
  border-bottom:1px solid #c2d3f5;
}
#draftSummary {
  font-size:11px;
  color:#8d9cb3;
  margin:4px 0 23px;
}
.result-field {
  margin-top:22px;
}
.field-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:9px;
  font-size:12px;
  font-weight:550;
  color:var(--subtle);
}
.field-heading .text-button {
  min-height:24px;
  color:#9ba9bd;
  font-weight:400;
  font-size:11px;
}
.lyrics-text {
  min-height:340px;
  height:380px;
  font-size:14px;
  line-height:2;
  padding:16px 19px;
  background:#fcfdff;
}
.style-text {
  height:140px;
  min-height:100px;
  font-size:12px;
  padding:14px 17px;
  background:#fcfdff;
  color:#546780;
}
.song-settings {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:24px;
}
.song-settings summary {
  font-size:12px;
}
.metadata-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px 12px;
  margin-top:20px;
  margin-bottom:18px;
}
.metadata-grid label {
  min-width:0;
  font-size:11px;
  color:#8d9cb1;
}
.metadata-grid input,.metadata-grid select {
  margin-top:5px;
  width:100%;
  height:36px;
  padding:6px 9px;
  font-size:12px;
}
.metadata-grid select {
  padding-right:25px;
}
.song-settings .field {
  color:var(--subtle);
  font-size:12px;
}
.output-actions {
  position:sticky;
  bottom:0;
  z-index:5;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px;
  padding:14px var(--editor-pad) 16px;
  margin-left:calc(-1 * var(--editor-pad));
  margin-right:calc(-1 * var(--editor-pad));
  margin-bottom:-26px;
  margin-top:24px;
  border-top:1px solid var(--line);
  background:var(--paper);
  border-radius:0 0 12px 12px;
}
.output-actions .primary,.output-actions .secondary {
  min-height:38px;
  font-size:12px;
  padding:8px 14px;
}
.output-actions .text-button {
  font-size:12px;
}
.output-actions #exportButton {
  margin-left:auto;
}
.audio-result {
  display:flex;
  gap:12px;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:20px;
}
.audio-label {
  font-size:11px;
  color:var(--muted);
}
audio {
  min-width:0;
  flex:1;
  height:38px;
}
.creation-dialogue {
  position:sticky;
  top:104px;
  height:clamp(360px,calc(100dvh - 244px),760px);
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  padding:24px 22px 20px;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.creation-dialogue h2 {
  font-size:13px;
}
.dialogue-symbol {
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  background:var(--accent-light);
  border-radius:7px;
  color:var(--accent);
}
.dialogue-symbol svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.creation-messages {
  flex:1;
  min-height:80px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#cfdaec transparent;
  padding-right:3px;
}
.creation-messages .chat-message {
  font-size:12px;
  margin-bottom:20px;
}
.creation-messages .chat-message.user {
  margin-left:12px;
  padding:12px 14px;
}
.creation-messages .text-button {
  display:block;
  font-size:10px;
  color:#7592c4;
  margin-top:5px;
  padding:0;
  min-height:22px;
}
.creation-messages .conversation-empty {
  font-size:12px;
  padding:10px 0;
}
.empty-output {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:220px;
  color:#94a6c2;
}
.empty-output svg {
  width:200px;
  height:74px;
  margin-bottom:14px;
  stroke:#a9c1ed;
  fill:none;
  stroke-width:1.5;
  stroke-linecap:round;
}
.empty-output p {
  font-size:13px;
}
.creation-workspace:not(.has-draft):not(.awaiting-draft) .output {
  display:none;
}
/* Dialogs and task feedback share the same visual language. */
dialog {
  width:min(590px,calc(100vw - 40px));
  max-height:calc(100dvh - 64px);
  overflow-y:auto;
  background:var(--paper);
  color:var(--ink);
  border:1px solid #dce5f3;
  border-radius:16px;
  padding:30px;
  box-shadow:0 24px 80px #1f3a6429;
  scrollbar-width:thin;
}
dialog::backdrop {
  background:#12264a40;
  backdrop-filter:blur(3px);
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}
.dialog-actions {
  position:sticky;
  bottom:-30px;
  display:flex;
  justify-content:flex-end;
  margin:24px -30px -30px;
  padding:16px 30px;
  border-top:1px solid var(--line);
  background:var(--paper);
}
.dialog-actions .primary {
  min-width:84px;
}
.dialog-heading h2,#loginDialog h2 {
  font-size:19px;
  font-weight:600;
}
.dialog-note {
  font-size:13px;
  color:var(--muted);
  line-height:1.85;
  margin:0 0 22px;
}
dialog .field textarea {
  font-size:13px;
}
dialog form>.primary {
  margin-top:4px;
}
#trackDialog {
  width:min(680px,calc(100vw - 40px));
}
.track-evidence {
  color:var(--subtle);
  font-size:12px;
  line-height:1.9;
  white-space:pre-wrap;
  padding:18px 0;
}
#trackForm>.primary {
  margin-top:20px;
}
.suno-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.suno-import {
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:24px;
}
.suno-import label {
  display:block;
  font-size:13px;
  margin-bottom:10px;
}
.suno-import input {
  font-size:12px;
}
#loginDialog .field {
  margin-top:24px;
}
.job-status {
  position:sticky;
  bottom:16px;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 18px;
  border:1px solid #cfddf5;
  border-radius:9px;
  background:#f1f6ff;
  margin-top:24px;
  font-size:12px;
  box-shadow:0 5px 20px #203f7810;
}
.job-icon {
  width:12px;
  height:12px;
  border:2px solid #aac1ef;
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
}
.job-status.failed {
  background:#fff7f8;
  border-color:#f0d8df;
}
.job-status.failed .job-icon {
  animation:none;
  border-color:#b97486;
}
.job-status progress {
  accent-color:var(--accent);
  height:4px;
  border:0;
  border-radius:3px;
  margin-left:auto;
  width:110px;
  overflow:hidden;
  appearance:none;
}
.job-status progress::-webkit-progress-bar {
  background:#dce8fc;
}
.job-status progress::-webkit-progress-value {
  background:var(--accent);
}
.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100vw - 40px);
  padding:11px 19px;
  color:#fff;
  background:#1e365c;
  border-radius:9px;
  box-shadow:0 8px 28px #19335622;
  font-size:13px;
  z-index:100;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
@media(min-width:1600px) {
  .station-layout {
    grid-template-columns:256px minmax(0,1fr);
  }
  .station-sidebar {
    padding-left:28px;
    padding-right:28px;
  }
  .creation-workspace,.style-workspace {
    grid-template-columns:minmax(0,1fr) 360px;
    gap:32px;
  }
  .creation-dialogue {
    padding:28px 26px 22px;
  }
  .creation-messages .chat-message {
    font-size:13px;
  }
  .lyrics-text {
    height:440px;
    font-size:15px;
  }
}
@media(max-width:1150px) and (min-width:821px) {
  .creation-editor {
    --editor-pad:22px;
  }
  .station-layout {
    grid-template-columns:198px minmax(0,1fr);
  }
  .station-sidebar {
    padding-left:12px;
    padding-right:12px;
  }
  .station-main {
    padding-left:24px;
    padding-right:24px;
  }
  .creation-workspace,.style-workspace {
    grid-template-columns:minmax(0,1fr) 280px;
    gap:18px;
  }
  .creation-history {
    gap:8px;
  }
  #projectSelect {
    width:154px;
  }
  .brief-section,.output {
    padding-left:22px;
    padding-right:22px;
  }
  .creation-dialogue,.style-memory {
    padding-left:18px;
    padding-right:18px;
  }
  .track-row {
    gap:12px;
    padding-left:18px;
    padding-right:18px;
  }
}
@media(max-width:820px) {
  .station-layout {
    display:block;
  }
  .station-sidebar {
    position:static;
    height:auto;
    border:0;
    border-bottom:1px solid var(--line);
    padding:0 24px 18px;
  }
  .station-topbar {
    height:68px;
    padding-left:0;
  }
  .brand {
    font-size:24px;
  }
  .brand svg {
    width:30px;
    height:30px;
  }
  .sidebar-heading {
    padding:0;
    margin:0 0 8px;
  }
  #spaceList {
    display:flex;
    gap:8px;
    overflow-x:auto;
  }
  .space-item {
    width:auto;
    flex:0 0 auto;
    margin:0;
    min-width:176px;
    padding:10px 12px;
  }
  .sidebar-footer {
    display:none;
  }
  .station-main {
    padding:0 24px 28px;
  }
  .station-tabs {
    height:66px;
    gap:4px;
  }
  .station-caption {
    display:none;
  }
  .station-tabs button {
    padding-left:14px;
    padding-right:14px;
  }
  .station-view {
    padding-top:28px;
  }
  .view-heading {
    margin-bottom:24px;
  }
  h1 {
    font-size:27px;
  }
  .creation-workspace,.style-workspace {
    grid-template-columns:minmax(0,1fr);
    gap:20px;
  }
  .creation-dialogue {
    position:static;
    height:420px;
  }
  .style-memory {
    order:2;
  }
  .conversation {
    height:520px;
  }
  .creation-history {
    gap:8px;
  }
  #projectSelect {
    width:165px;
  }
  .output-actions {
    position:static;
  }
}
@media(max-width:540px) {
  .creation-editor {
    --editor-pad:20px;
  }
  .station-sidebar {
    padding:0 18px 15px;
  }
  .station-main {
    padding:0 18px 24px;
  }
  .station-tabs {
    gap:0;
    justify-content:space-between;
  }
  .station-tabs button {
    padding:0 12px;
    font-size:12px;
    gap:6px;
  }
  .station-view {
    padding-top:25px;
  }
  .view-heading {
    align-items:flex-start;
    gap:15px;
  }
  h1 {
    font-size:25px;
  }
  .view-heading p {
    font-size:11px;
    margin-top:6px;
  }
  .view-heading>.primary,.view-heading>.secondary {
    padding:8px 12px;
    font-size:12px;
    min-height:37px;
  }
  #createView>.view-heading {
    display:block;
  }
  .creation-history {
    margin-top:18px;
    justify-content:flex-start;
  }
  #projectSelect {
    flex:1;
    width:auto;
    min-width:0;
  }
  .library-dropzone {
    padding:16px;
    gap:12px;
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .import-copy {
    font-size:12px;
    padding-top:2px;
  }
  .library-dropzone .text-button {
    margin-left:50px;
    font-size:11px;
    min-height:22px;
  }
  .import-symbol {
    width:34px;
    height:34px;
  }
  .library-toolbar {
    gap:9px;
    margin-bottom:13px;
  }
  .search-field {
    min-width:0;
    flex:1;
    width:auto;
  }
  .library-toolbar select {
    min-width:98px;
    width:98px;
    font-size:11px;
    padding-left:9px;
  }
  .track-row {
    grid-template-columns:minmax(0,1fr) 48px 32px;
    gap:10px;
    padding:13px 14px;
    min-height:70px;
  }
  .track-row>.duration {
    display:none;
  }
  .track-head>span:nth-child(2) {
    display:none;
  }
  .track-title {
    gap:10px;
  }
  .track-mark {
    width:30px;
    height:32px;
  }
  .track-copy strong {
    font-size:13px;
  }
  .track-copy small {
    font-size:10px;
  }
  .track-state {
    font-size:10px;
    white-space:nowrap;
  }
  .track-state::before {
    display:none;
  }
  .track-row>.text-button {
    font-size:11px;
  }
  .track-head {
    min-height:40px;
  }
  .brief-section,.output {
    padding:20px;
  }
  .creation-workspace:not(.has-draft) .brief-section {
    padding:23px 20px;
  }
  #theme {
    padding:14px;
    min-height:190px;
    font-size:13px;
  }
  .song-title {
    font-size:25px;
  }
  .lyrics-text {
    padding:13px 14px;
    height:350px;
    font-size:13px;
  }
  .style-text {
    padding:12px 14px;
    height:150px;
  }
  .output-actions {
    gap:10px 15px;
    margin-bottom:-20px;
  }
  .output-actions #exportButton {
    margin-left:0;
  }
  .metadata-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .creation-dialogue,.style-memory,.conversation {
    padding:21px 18px 18px;
  }
  .conversation {
    height:490px;
  }
  .chat-message {
    font-size:12px;
  }
  .chat-message.user {
    margin-left:16px;
  }
  .space-track {
    gap:8px;
  }
  .space-track>span {
    display:none;
  }
  dialog {
    width:calc(100vw - 28px);
    padding:23px;
    border-radius:12px;
  }
  .dialog-actions {
    bottom:-23px;
    margin-left:-23px;
    margin-right:-23px;
    margin-bottom:-23px;
    padding:14px 23px;
  }
  #trackDialog {
    width:calc(100vw - 28px);
  }
  .job-status {
    padding:12px;
    font-size:11px;
    gap:8px;
  }
  .job-status progress {
    width:50px;
  }
  .audio-label {
    display:none;
  }
}
