:root {
  color-scheme: dark;
  --bg: #0d0c11;
  --surface: rgba(255, 255, 255, 0.04);
  --raised: rgba(255, 255, 255, 0.07);
  --text: #f3f1ee;
  --muted: #b9b5bb;
  --faint: #99949d;
  --border: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(245, 183, 156, 0.38);
  --glass-panel: rgba(16, 15, 22, 0.52);
  --glass-blur: blur(24px);
  --accent: #f5b79c;
  --danger: #ff969e;
  --sidebar-width: 252px;
  --composer-width: 410px;
  --player-height: 0px;
}
body.is-playing { --player-height: 94px; }
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #38383e transparent; }
html { min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, summary, label[role="button"] { -webkit-tap-highlight-color: transparent; }
button, summary, select { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: default; opacity: .35; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #795b4e; color: white; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .nav-icon, .status-icon, .mode-icon, .label-icon, .summary-icon, .button-icon, .panel-icon, .search-icon, .mobile-nav-icon, .brand-symbol { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); height: calc(100vh - var(--player-height)); height: calc(100dvh - var(--player-height)); overflow: hidden; background: transparent; transition: height .42s cubic-bezier(.16,1,.3,1); }
.sidebar { display: flex; flex-direction: column; padding: 26px 18px 22px; border-right: 1px solid var(--glass-border); min-height: 0; background: rgba(14, 13, 19, 0.65); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; width: fit-content; transition: opacity .15s; }
.brand:hover { opacity: .9; }
.brand-symbol { width: 29px; height: 33px; stroke-width: 2; color: var(--accent); }
.brand-word { display: flex; align-items: baseline; gap: 8px; font-size: 30px; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.brand-caption { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.primary-nav { display: grid; gap: 8px; margin-top: 36px; }
.nav-link { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; color: var(--muted); border-radius: 12px; font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
body:not(.is-authenticated) [data-view-link="queue"],
body:not(.is-authenticated) [data-view-link="backoffice"] { display: none !important; }
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); transform: translateX(2px); }
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.nav-link.is-active .nav-icon {
  color: #f5b79c;
  filter: drop-shadow(0 0 7px rgba(245, 183, 156, 0.45));
}
.nav-queue-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff4e00, #eb1768);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(235, 23, 104, 0.4);
}
.sidebar-footer { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.profile { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; font-size: 12px; }
.profile small { display: block; color: var(--faint); font-size: 10px; margin-top: 3px; }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#c996d0,#edbb82); color: #32232c; font-weight: 800; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.connection-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }
.status-icon { width: 14px; height: 14px; color: var(--faint); }
.connection-status.is-ready .status-icon { color: #9ed9b2; }
.mobile-header, .mobile-nav { display: none; }
.main-content, .page-shell, .view-panel { min-width: 0; height: 100%; overflow: hidden; }
.create-layout { display: grid; grid-template-columns: var(--composer-width) minmax(0,1fr); height: 100%; }
.composer-card { display: flex; flex-direction: column; min-height: 0; min-width: 0; height: 100%; border-right: 1px solid var(--glass-border); background: var(--glass-panel); }
.composer-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 20px; }
.composer-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 66px; margin: 0 -16px 14px; padding: 0 18px; border-bottom: 1px solid var(--glass-border); }
.mode-switch { display: flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--glass-border); border-radius: 24px; background: rgba(0, 0, 0, 0.28); }
.mode-option { min-height: 30px; padding: 0 13px; border-radius: 20px; background: transparent; color: var(--muted); }
.mode-option.is-selected { background: rgba(255, 255, 255, 0.12); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.mode-option-top { display: flex; align-items: center; gap: 6px; }
.mode-icon { width: 13px; height: 13px; }
.mode-name { font-size: 12px; font-weight: 650; }
.model-label { display: flex; align-items: center; gap: 9px; border: 1px solid var(--glass-border); border-radius: 22px; padding: 7px 11px; color: #cfccd1; font-size: 11px; background: rgba(255, 255, 255, 0.04); }
.model-dot { height: 5px; width: 5px; background: var(--accent); border-radius: 50%; }
.form-stack { display: grid; gap: 12px; }
.prompt-assistant { display: grid; gap: 10px; padding: 15px 14px; border: 1px solid rgba(245, 183, 156, .25); border-radius: 14px; background: linear-gradient(140deg, rgba(245, 183, 156, .10), rgba(255, 255, 255, .035)); }
.prompt-assistant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prompt-assistant-heading h2 { font-size: 13px; font-weight: 700; }
.prompt-assistant-heading p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.prompt-assistant-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 20px; background: rgba(245, 183, 156, .13); color: #f5b79c; font-size: 9px; font-weight: 700; }
.prompt-assistant .prompt-idea { min-height: 74px; padding: 9px 10px; line-height: 1.55; resize: vertical; }
.prompt-assistant-actions { display: flex; align-items: center; gap: 8px; }
.prompt-assistant-actions label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.prompt-assistant-actions select { min-width: 64px; padding: 6px 4px; border: 1px solid var(--glass-border); border-radius: 8px; background: #27242c; color: var(--text); font-size: 10px; }
.prompt-assistant-actions button, .prompt-assistant-result button { margin-left: auto; padding: 8px 11px; border-radius: 8px; background: rgba(245, 183, 156, .17); color: #ffd4c0; font-size: 11px; font-weight: 650; }
.prompt-assistant-actions button:hover:enabled, .prompt-assistant-result button:hover { background: rgba(245, 183, 156, .27); }
.prompt-assistant-status { color: var(--muted); font-size: 10px; line-height: 1.5; }
.prompt-assistant-status.is-error { color: #ffb4a8; }
.prompt-assistant-result { display: grid; gap: 7px; min-width: 0; padding: 11px; border: 1px solid var(--glass-border); border-radius: 9px; background: rgba(0, 0, 0, .18); }
.prompt-assistant-result strong { color: var(--accent); font-size: 11px; }
.prompt-assistant-preview { display: grid; gap: 7px; max-height: 200px; min-width: 0; overflow-y: auto; }
.prompt-assistant-preview:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.prompt-assistant-result p, .prompt-assistant-result pre { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); font: inherit; font-size: 10px; line-height: 1.6; }
.prompt-assistant-result pre { color: var(--muted); }
.prompt-assistant-result button { justify-self: end; margin-left: 0; }
.field-group { display: grid; gap: 9px; min-width: 0; }
.editor-block { background: rgba(255, 255, 255, 0.038); border: 1px solid var(--glass-border); border-radius: 14px; padding: 16px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); transition: border-color .15s, background .15s, box-shadow .15s; }
.editor-block:hover { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.12); }
.editor-block:focus-within { border-color: var(--glass-border-focus); background: rgba(255, 255, 255, 0.065); box-shadow: 0 0 16px rgba(245, 183, 156, 0.12); }
.field-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.label-icon { width: 14px; height: 14px; color: var(--muted); }
.optional, .required, .field-meta { color: var(--faint); font-size: 10px; font-weight: 400; }
.required { color: #c8a496; }
.text-input, .text-area { width: 100%; min-width: 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: rgba(0, 0, 0, 0.22); outline: none; font-size: 12px; }
.text-input { height: 38px; padding: 0 10px; }
.text-area { padding: 9px 10px; line-height: 1.55; resize: vertical; }
.title-block > .text-input { background: transparent; border: 0; border-radius: 0; }
.title-block > .text-input:focus-visible { outline: none; }
.text-input:focus, .text-area:focus { border-color: var(--accent); }
.text-input::placeholder, .text-area::placeholder { color: #86838b; opacity: 1; }
.text-input:disabled, .text-area:disabled { color: var(--faint); opacity: .5; cursor: not-allowed; }
.lyrics-area { min-height: clamp(180px,26vh,310px); }
.style-area { min-height: 92px; height: 92px; }
.editor-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 9px; letter-spacing: .025em; }
.editor-foot > :first-child { letter-spacing: .08em; font-size: 8px; }
.suggestion-row { display: flex; gap: 6px; flex-wrap: wrap; }
.suggestion-chip { padding: 6px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); color: #c8c5cc; font-size: 10px; transition: background .15s, border-color .15s, color .15s; }
.suggestion-chip:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.16); color: white; }
.toggle-control { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: transparent; color: var(--muted); font-size: 10px; }
.toggle-track { position: relative; width: 27px; height: 16px; border-radius: 20px; background: #45434a; transition: background .15s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #e8e5e3; transition: transform .15s; }
.toggle-control[aria-checked="true"] .toggle-track { background: #bc836b; }
.toggle-control[aria-checked="true"] .toggle-thumb { transform: translateX(11px); }
.cover-field { padding: 14px; border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: 14px; background: rgba(0, 0, 0, 0.18); }
.dropzone { display: flex; align-items: center; gap: 10px; min-height: 80px; cursor: pointer; border-radius: 8px; padding: 7px; }
.dropzone:hover, .dropzone.is-dragging { background: rgba(255, 255, 255, 0.06); }
.dropzone-icon { color: var(--accent); }
.dropzone-copy { display: grid; gap: 5px; }
.dropzone-copy strong { font-size: 12px; }
.dropzone-copy span { color: var(--faint); font-size: 10px; }
.selected-file { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; }
.selected-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.file-mark { color: var(--accent); }
.icon-button { display: grid; place-items: center; background: transparent; width: 28px; height: 28px; border-radius: 50%; }
.icon-button:hover { background: rgba(255, 255, 255, 0.08); }
.advanced-panel { margin-top: 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--glass-border); transition: border-color .15s, background .15s; }
.advanced-panel[open] { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045); }
.advanced-panel summary { display: flex; align-items: center; padding: 15px 14px; list-style: none; user-select: none; }
.advanced-panel summary::-webkit-details-marker { display: none; }
.summary-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.summary-icon { width: 15px; height: 15px; color: var(--muted); }
.advanced-panel summary::after { content: ""; height: 6px; width: 6px; margin-left: auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.advanced-panel[open] summary::after { transform: rotate(225deg); }
.advanced-content { padding: 4px 14px 18px; display: grid; gap: 16px; }
.advanced-section { display: grid; gap: 9px; }
.advanced-section-header { display: flex; flex-direction: column; gap: 2px; }
.advanced-section-title { font-size: 12px; font-weight: 600; color: var(--text); }
.advanced-section-desc { font-size: 10px; color: var(--faint); line-height: 1.35; }
.advanced-grid, .plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; }
.advanced-content .field-group { gap: 6px; }
.advanced-content .field-label { font-size: 11px; font-weight: 500; color: #d0cdd4; }
.field-group-full { grid-column: 1 / -1; }
.advanced-content .field-hint { margin-top: 4px; color: var(--faint); font-size: 10px; line-height: 1.35; }
.seed-row { display: grid; gap: 6px; }
.check-label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; cursor: pointer; }
.check-label input { accent-color: var(--accent); cursor: pointer; }
.plan-options { padding: 13px 14px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--glass-border); }
.plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.plan-title-wrap { display: grid; gap: 2px; }
.plan-title { margin: 0; font-size: 12px; font-weight: 600; color: var(--text); }
.plan-desc { margin: 0; font-size: 10px; color: var(--faint); line-height: 1.35; }
.plan-grid.is-disabled { opacity: .4; pointer-events: none; }
.advanced-actions { display: flex; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--glass-border); }
.advanced-reset { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 11px; font-weight: 550; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.advanced-reset:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.18); color: var(--text); }
.advanced-reset:active { transform: scale(0.97); }
.advanced-reset .reset-icon { width: 13px; height: 13px; stroke-width: 2; transition: transform .3s ease; }
.advanced-reset:hover .reset-icon { transform: rotate(-60deg); }
.advanced-reset.is-spinning .reset-icon { animation: reset-spin .45s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes reset-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
.title-block { display: grid; gap: 5px; padding-bottom: 0; }
.title-block > .text-input { padding: 0; }
.save-destination { display: flex; align-items: center; gap: 7px; margin: 4px -14px 0; padding: 11px 14px; border-top: 1px solid var(--glass-border); color: var(--muted); font-size: 10px; }
.save-destination .icon { width: 13px; height: 13px; }
.destination-pill { margin-left: auto; padding: 5px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #d2cfd6; }
.submit-row { flex-shrink: 0; padding: 14px; border-top: 1px solid var(--glass-border); }
.primary-button {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(98deg, #ff4e00 0%, #eb1467 42%, #ff6b00 82%, #ffa600 100%);
  color: #ffffff;
  font-weight: 750;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 22px rgba(235, 20, 103, 0.42), 0 2px 10px rgba(255, 78, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.primary-button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.015);
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(235, 20, 103, 0.55), 0 3px 14px rgba(255, 78, 0, 0.42);
}
.primary-button:active:not(:disabled) {
  transform: scale(0.98);
}
.primary-button:disabled {
  opacity: .65;
  cursor: wait;
}
.primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.suno-sparkle-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.42'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.95;
}
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #ffffff; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-button.is-loading .button-spinner { display: block; position: relative; z-index: 1; }
.primary-button.is-loading .button-icon { display: none; }
.primary-button .submit-label, .primary-button .button-icon { position: relative; z-index: 1; }
.field-error, .form-error, .panel-error { color: var(--danger); font-size: 11px; overflow-wrap: anywhere; }
.form-error { margin-top: 12px; padding: 10px; border: 1px solid #623039; border-radius: 8px; background: #2e1b20; }
.is-invalid { outline: 1px solid var(--danger) !important; }
.jobs-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: rgba(14, 13, 19, 0.38); }
.panel-heading { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 25px; }
.panel-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 550; }
.breadcrumb-parent, .breadcrumb-separator { color: var(--faint); }
.panel-library-link { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.panel-library-link:hover { color: var(--text); }
.panel-library-link .icon { width: 14px; height: 14px; }
.workspace-toolbar { display: flex; gap: 9px; align-items: center; padding: 1px 25px 22px; }
.search-box { position: relative; display: block; flex: 1; min-width: 0; }
.search-box input { width: 100%; min-width: 0; height: 38px; padding: 0 38px; border: 1px solid var(--glass-border); border-radius: 24px; background: rgba(255, 255, 255, 0.05); outline: none; font-size: 12px; transition: border-color .15s, background .15s; }
.search-box input:focus { border-color: var(--glass-border-focus); background: rgba(255, 255, 255, 0.08); }
.search-box input::placeholder { color: var(--faint); }
.search-icon { position: absolute; left: 14px; top: 11px; height: 16px; width: 16px; color: var(--muted); pointer-events: none; }
.workspace-toolbar select { height: 36px; max-width: 110px; padding: 0 12px; border: 1px solid var(--glass-border); border-radius: 22px; background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 11px; }
.toolbar-button { display: grid; place-items: center; flex-shrink: 0; height: 36px; width: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); color: var(--muted); transition: background .15s, border-color .15s, color .15s; }
.toolbar-button:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.16); color: var(--text); }
.workspace-caption { display: flex; align-items: center; justify-content: space-between; padding: 0 25px 13px; font-size: 11px; color: var(--faint); }
.jobs-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 15px 20px; }
.job-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; margin-bottom: 6px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.045); transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.job-card:hover { background: rgba(255, 255, 255, 0.065); border-color: rgba(255, 255, 255, 0.12); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }
.job-art { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 9px; overflow: hidden; background: radial-gradient(ellipse at 20% 0%,var(--art-a),transparent 65%),linear-gradient(140deg,var(--art-b),var(--art-c)); }
.job-art .icon { position: relative; z-index: 1; width: 20px; height: 20px; color: white; filter: drop-shadow(0 1px 5px #000); }
.job-copy { min-width: 0; }
.job-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.job-style { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; margin-top: 3px; }
.job-card-meta { display: flex; gap: 6px; margin-top: 5px; color: var(--faint); font-size: 10px; }
.generation-progress { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.job-progress { max-width: 520px; margin-top: 9px; }
.generation-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 11px; font-weight: 600; }
.generation-progress-percent { flex: 0 0 auto; }
.generation-progress-segments, .generation-progress-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.generation-progress-segment { height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.11); }
.generation-progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .24s ease-out; }
.generation-progress-labels { color: var(--faint); font-size: 10px; line-height: 1.25; }
.generation-progress-labels span { min-width: 0; overflow-wrap: anywhere; }
.generation-progress-labels .is-current { color: var(--text); font-weight: 600; }
.queue-generation-progress { margin-top: 10px; }
.job-card-foot { display: grid; justify-items: end; gap: 8px; }
.status-badge { border-radius: 20px; padding: 4px 8px; background: #322a22; color: #dfbd91; font-size: 10px; white-space: nowrap; }
.status-badge.is-complete { background: #1d2d26; color: #a0cbb0; }
.status-badge.is-failed, .status-badge.is-cancelled { background: #322126; color: var(--danger); }
.job-error { color: var(--danger); margin-top: 7px; font-size: 11px; overflow-wrap: anywhere; }
.library-action { display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--muted); font-size: 10px; padding: 0; }
.library-action:hover { color: var(--accent); }
.library-action .icon { width: 12px; height: 12px; }
.jobs-empty { display: grid; justify-items: center; align-content: start; gap: 10px; min-height: 300px; padding: clamp(50px,12vh,130px) 15px 30px; text-align: center; }
.empty-wave { display: flex; align-items: center; gap: 5px; height: 56px; margin-bottom: 12px; color: #575056; }
.empty-wave i { display: block; width: 5px; height: 17px; border-radius: 6px; background: currentColor; }
.empty-wave i:nth-child(2), .empty-wave i:nth-child(6) { height: 29px; }
.empty-wave i:nth-child(3), .empty-wave i:nth-child(5) { height: 44px; }
.empty-wave i:nth-child(4) { height: 57px; background: var(--accent); opacity: .7; }
.jobs-empty strong { font-size: 16px; font-weight: 550; }
.jobs-empty > span { color: var(--faint); font-size: 12px; }
.empty-hint { margin-top: 12px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-size: 10px; }
.panel-error { margin: 10px 25px; }
.jobs-loading { display: grid; gap: 10px; padding: 20px 10px; }
.skeleton-line, .track-skeleton { background: linear-gradient(90deg,#1c1c20 20%,#28282d 45%,#1c1c20 70%); background-size: 240% 100%; animation: skeleton 1.4s ease-in-out infinite; }
.skeleton-line { width: 60%; height: 9px; border-radius: 5px; }
.skeleton-line-wide { width: 90%; }
.jobs-pagination-wrap {
  padding: 14px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.jobs-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.jobs-load-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.jobs-load-more-btn:active {
  transform: translateY(0);
}
.jobs-load-more-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}
.load-more-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.jobs-load-more-btn.is-loading .load-more-spinner {
  display: inline-block;
}
.jobs-end-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--faint);
  font-size: 11px;
}
.jobs-end-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.6;
}

#library-view { padding: 32px 30px 45px; overflow-y: auto; background: rgba(14, 13, 19, 0.35); }
#backoffice-view { padding: 32px 30px 45px; overflow-y: auto; background: rgba(14, 13, 19, 0.35); }
.backoffice-layout { display: grid; grid-template-columns: minmax(215px, 260px) minmax(0, 1fr); align-items: start; gap: 18px; }
.backoffice-editors { display: grid; gap: 18px; }
.backoffice-panel { min-width: 0; padding: 18px; border: 1px solid var(--glass-border); border-radius: 14px; background: rgba(255, 255, 255, 0.038); }
.backoffice-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.backoffice-panel-head h2 { font-size: 15px; font-weight: 650; }
.backoffice-panel-head .new-track-link { flex: 0 0 auto; padding: 6px 10px; font-size: 11px; }
.backoffice-artist-list { display: grid; gap: 7px; }
.backoffice-artist { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--glass-border); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--text); text-align: left; }
.backoffice-artist:hover, .backoffice-artist.is-selected { border-color: rgba(245,183,156,.42); background: rgba(245,183,156,.08); }
.backoffice-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #654a70; background-size: cover; background-position: center; font-size: 13px; }
.backoffice-artist-copy { display: grid; min-width: 0; gap: 1px; }
.backoffice-artist-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.backoffice-artist-copy small { color: var(--faint); font-size: 10px; }
.backoffice-form { display: grid; gap: 8px; }
.backoffice-form .text-area { height: auto; min-height: 72px; }
.backoffice-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.backoffice-fields .field-label, #album-editor > .field-label:has(input[type=file]) { display: grid; gap: 7px; color: var(--muted); font-weight: 500; }
.backoffice-form input[type=file] { min-width: 0; max-width: 100%; color: var(--muted); font-size: 11px; }
.backoffice-hint { color: var(--faint); font-size: 10px; }
.backoffice-form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.backoffice-form-actions .new-track-link { padding: 7px 14px; }
.backoffice-public-link { color: var(--accent); font-size: 11px; }
.backoffice-status { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.backoffice-status.is-error { color: var(--danger); }
.backoffice-admin-controls .auth-admin-button { color: var(--accent); }
#album-picker { margin: 2px 0 16px; }
@media (max-width: 1050px) { .backoffice-layout { grid-template-columns: 1fr; } .backoffice-artist-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 520px) { #backoffice-view { padding: 22px 16px 44px; } .backoffice-fields { grid-template-columns: 1fr; } .backoffice-panel-head { align-items: flex-start; } }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.eyebrow { color: var(--accent); letter-spacing: .15em; font-size: 9px; margin-bottom: 8px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.05em; font-weight: 700; }
.page-description { color: var(--faint); font-size: 12px; margin-top: 7px; }
.new-track-link { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(245, 183, 156, 0.35); border-radius: 22px; padding: 9px 14px; color: var(--accent); font-size: 12px; white-space: nowrap; background: rgba(245, 183, 156, 0.06); transition: background .15s, border-color .15s, transform .1s; }
.new-track-link:hover { background: rgba(245, 183, 156, 0.14); border-color: rgba(245, 183, 156, 0.5); transform: translateY(-1px); }
.library-toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.filter-group { display: flex; gap: 6px; }
.filter-button { min-height: 34px; padding: 0 15px; border: 1px solid var(--glass-border); border-radius: 22px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 11px; transition: background .15s, border-color .15s, color .15s; }
.filter-button:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); color: var(--text); }
.filter-button.is-selected { background: #eeeae5; color: #202024; border-color: #eeeae5; box-shadow: 0 2px 10px rgba(255, 255, 255, 0.18); }
.clear-search { position: absolute; right: 10px; top: 5px; height: 28px; width: 28px; background: transparent; font-size: 20px; color: var(--muted); }
.library-status { min-height: 20px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap: 28px 18px; }
.library-heading-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.library-heading-actions .new-track-link { cursor: pointer; }
.library-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--glass-border); margin: -4px 0 28px; }
.library-tabs a { padding: 9px 1px 12px; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; }
.library-tabs a:hover, .library-tabs a.is-selected { color: var(--text); }
.library-tabs a.is-selected { border-color: var(--accent); }
.library-content { display: grid; gap: 36px; }
.library-section { min-width: 0; }
.library-section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 15px; }
.library-section-heading h2 { font-size: 18px; letter-spacing: -.03em; }
.library-section-heading span { font-size: 11px; color: var(--faint); }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature-grid .release-tile { min-width: 0; }
.feature-grid .release-art { aspect-ratio: 1.65; }
.release-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: 18px; }
.release-tile { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.release-art { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 11px; background: radial-gradient(ellipse at 16% 5%,var(--art-a),transparent 62%),linear-gradient(140deg,var(--art-b),var(--art-c)); background-position: center; background-size: cover; box-shadow: 0 8px 24px #0004; transition: transform .2s; }
.release-tile:hover .release-art { transform: translateY(-3px); }
.release-art .icon { width: 32px; height: 32px; opacity: .75; }
.release-art.has-custom-cover .icon, .chart-art.has-custom-cover .icon, .album-hero-art.has-custom-cover .icon { display: none; }
.release-tile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 9px; font-size: 13px; }
.release-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: var(--muted); font-size: 11px; }
.release-tile small { margin-top: 3px; color: var(--faint); font-size: 10px; }
.chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
.chart-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-top: 1px solid var(--glass-border); }
.chart-rank { width: 20px; text-align: right; color: var(--faint); font-size: 11px; }
.chart-play { padding: 0; background: transparent; }
.chart-art { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; background: linear-gradient(135deg,var(--art-a),var(--art-c)); background-size: cover; background-position: center; color: #fff; }
.chart-art .icon { width: 16px; height: 16px; }
.chart-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.chart-copy strong, .chart-copy a, .chart-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-copy strong { font-size: 11px; }
.chart-copy a, .chart-copy span { color: var(--muted); font-size: 10px; }
.chart-copy a:hover { color: var(--accent); }
.chart-plays { white-space: nowrap; color: var(--faint); font-size: 10px; }
.chart-remix { padding: 3px 0; background: transparent; color: var(--accent); font-size: 10px; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 17px; }
.artist-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px; border: 1px solid var(--glass-border); border-radius: 13px; color: var(--text); background: #ffffff08; }
.artist-tile-art { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,#ad7390,#46375e); background-size: cover; background-position: center; font-size: 24px; }
.artist-tile strong { font-size: 12px; }
.artist-tile > span { font-size: 10px; color: var(--muted); }
.artist-hero { display: flex; align-items: end; gap: 22px; min-height: 245px; padding: 28px; border-radius: 17px; background: linear-gradient(120deg,#45324e,#1e1a2a); background-size: cover; background-position: center; }
.artist-hero-avatar { display: grid; place-items: center; width: 110px; height: 110px; flex: 0 0 110px; border: 3px solid #ffffff88; border-radius: 50%; background: #6c5179; background-size: cover; background-position: center; font-size: 34px; }
.artist-hero h2, .album-hero h2 { font-size: clamp(25px,3vw,43px); line-height: 1.1; }
.artist-hero p:not(.eyebrow), .album-hero p:not(.eyebrow) { max-width: 60ch; margin-top: 10px; color: #eee8ee; font-size: 12px; line-height: 1.6; }
.artist-hero span { display: block; margin-top: 10px; color: #ddd2de; font-size: 11px; }
.album-hero { display: flex; align-items: end; gap: 24px; padding: 24px; border-radius: 17px; background: linear-gradient(115deg,#372d42,#201b2a); }
.album-hero-art { display: grid; place-items: center; width: min(26vw,210px); aspect-ratio: 1; flex: 0 0 min(26vw,210px); border-radius: 10px; background: linear-gradient(135deg,var(--art-a),var(--art-c)); background-size: cover; background-position: center; }
.album-hero-art .icon { width: 42px; height: 42px; }
.album-hero a { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 12px; }
.single-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.single-lyrics { white-space: pre-wrap; font: inherit; font-size: 12px; color: var(--muted); line-height: 1.8; }
.track-title a:hover { color: var(--accent); }
.detail-edit { width: fit-content; }
.library-landing-empty { display: grid; justify-items: center; gap: 12px; padding: 70px 20px; text-align: center; border: 1px solid var(--glass-border); border-radius: 16px; }
.library-landing-empty p, .library-loading { color: var(--muted); font-size: 12px; }
.track-creator { display: inline-block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.track-creator:hover { color: var(--accent); }
.track-card { min-width: 0; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.05); transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.track-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.065); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38); }
.track-card.is-focused { outline: 2px solid var(--accent); outline-offset: 6px; }
.artwork { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 18% 5%,var(--art-a),transparent 60%),linear-gradient(140deg,var(--art-b),var(--art-c)); isolation: isolate; }
.artwork::before { content: ""; position: absolute; width: 76%; height: 130%; left: 26%; top: 6%; border: 1px solid #ffffff38; border-radius: 50%; transform: rotate(34deg); box-shadow: 0 0 0 14px #ffffff0a,0 0 0 29px #ffffff13,0 0 0 45px #ffffff0a,0 0 0 61px #ffffff10; }
.artwork::after { content: "YUE"; position: absolute; bottom: 9%; left: 9%; color: #ffffff94; font-size: clamp(24px,3vw,48px); font-weight: 850; letter-spacing: -.07em; }
.artwork-top { position: absolute; top: 10px; left: 10px; z-index: 1; }
.mode-badge { padding: 4px 7px; border-radius: 5px; background: rgba(21, 19, 27, 0.55); color: #fff; font-size: 9px; border: 1px solid rgba(255, 255, 255, 0.1); }
.artwork-play { position: absolute; z-index: 2; display: grid; place-items: center; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: #f3efe8; color: #1d1920; box-shadow: 0 3px 16px rgba(0, 0, 0, 0.35); transition: transform .15s, background .15s; }
.artwork-play:hover { transform: scale(1.1); background: #ffffff; }
.artwork-play .icon { width: 20px; height: 20px; }
.track-info { padding: 11px 1px 0; }
.track-info-head { display: flex; flex-direction: column; gap: 4px; }
.track-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.track-date { color: var(--faint); font-size: 10px; }
.track-style { margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); font-size: 11px; line-height: 1.6; min-height: 35px; overflow-wrap: anywhere; }
.track-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; margin-top: 8px; }
.download-link { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 10px; }
.download-link:hover { color: var(--text); }
.download-link .icon { height: 12px; width: 12px; }
.track-no-audio { font-size: 10px; color: var(--faint); margin-top: 8px; }
.remix-link { padding: 0; background: transparent; text-align: left; }
.artwork.has-custom-cover, .job-art.has-custom-cover { background-size: cover; background-position: center; }
.artwork.has-custom-cover::before, .artwork.has-custom-cover::after { display: none; }
.player-art.has-custom-cover .icon { display: none; }
.publish-dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 36px); overflow-y: auto; padding: 24px; border: 1px solid var(--glass-border); border-radius: 18px; background: #242128; color: var(--text); box-shadow: 0 24px 80px #0009; }
.publish-dialog::backdrop { background: #09070abf; backdrop-filter: blur(5px); }
.publish-form { display: grid; gap: 13px; }
.publish-head { display: flex; align-items: start; justify-content: space-between; }
.publish-head h2 { font-size: 21px; }
.publish-description { color: var(--muted); font-size: 12px; line-height: 1.6; }
.publish-close { background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.publish-cover-row { display: flex; align-items: center; gap: 15px; }
.publish-cover-preview { display: grid; place-items: center; flex: 0 0 95px; width: 95px; height: 95px; border-radius: 12px; background: linear-gradient(135deg,#835a78,#30283f); background-size: cover; background-position: center; color: white; }
.publish-cover-preview .icon { width: 25px; height: 25px; }
.publish-cover-preview.has-custom-cover .icon { display: none; }
.publish-cover-row input { max-width: 100%; color: var(--muted); font-size: 11px; }
.publish-actions { display: flex; justify-content: end; align-items: center; gap: 10px; margin-top: 10px; }
.publish-actions .primary-button { min-height: 38px; padding: 0 16px; font-size: 12px; }
.cms-dialog textarea { resize: vertical; }
.cms-dialog input[type="file"] { color: var(--muted); font-size: 11px; }
@media (max-width: 800px) { .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .chart-grid { grid-template-columns: 1fr; } .page-heading-library { align-items: start; flex-direction: column; } .library-heading-actions { justify-content: start; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid .release-art { aspect-ratio: 1.65; } .artist-hero { align-items: start; flex-direction: column; } .artist-hero-avatar { width: 80px; height: 80px; flex-basis: 80px; } .album-hero { align-items: start; flex-direction: column; } .album-hero-art { width: 145px; flex-basis: 145px; } .chart-remix { display: none; } }
.track-skeleton { aspect-ratio: 1 / 1.5; border-radius: 12px; }
.empty-state { grid-column: 1 / -1; min-height: 320px; display: grid; place-items: center; }
.empty-state-inner { display: grid; gap: 12px; justify-items: center; text-align: center; }
.empty-state-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); border-radius: 18px; color: var(--accent); margin-bottom: 10px; }
.empty-state h2 { font-weight: 550; font-size: 17px; }
.empty-state p { color: var(--faint); font-size: 12px; }
.empty-state .new-track-link { margin-top: 10px; }
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,1.6fr) minmax(0,1fr); align-items: center; gap: 24px; height: 94px; border-top: 1px solid rgba(255, 255, 255, 0.09); background: rgba(14, 13, 19, 0.72); padding: 10px 28px; box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(100%); visibility: hidden; pointer-events: none; transition: transform .46s cubic-bezier(.16,1,.3,1), opacity .32s ease, visibility 0s linear .46s; }
body.is-playing .player-bar { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .38s ease, visibility 0s; }
.player-track { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-art { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.07); color: #b1a1a0; transition: transform .2s ease; }
.player-art.has-track { background: radial-gradient(ellipse at 10% 10%,var(--art-a),transparent 65%),linear-gradient(140deg,var(--art-b),var(--art-c)); color: white; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.player-art.has-custom-cover { background-color: #17151d; background-size: contain; background-position: center; background-repeat: no-repeat; }
body.is-playing .player-art.has-track { transform: scale(1.02); }
.player-track-copy { display: grid; gap: 5px; min-width: 0; }
.player-track strong, .player-track-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-track strong { font-size: 12px; font-weight: 600; }
.player-track-copy > span { color: var(--faint); font-size: 11px; }
.player-center { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; max-width: 640px; justify-self: center; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.player-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #c2bec7; background: transparent; transition: color .15s, transform .1s; }
.player-button:hover:not(:disabled) { color: white; transform: scale(1.08); }
.player-button:active:not(:disabled) { transform: scale(0.95); }
.player-toggle { width: 34px; height: 34px; border-radius: 50%; background: #e9e5e1; color: #222126; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.player-toggle:hover:not(:disabled) { color: #222126; background: white; transform: scale(1.06); }
.player-visualizer-wrap { width: 100%; height: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; opacity: .45; transition: opacity .35s ease; }
body.is-playing .player-visualizer-wrap { opacity: .95; }
.player-visualizer { width: 100%; max-width: 480px; height: 18px; display: block; }
.player-timeline { display: flex; align-items: center; gap: 12px; width: 100%; color: #8e8b94; font-size: 10px; font-variant-numeric: tabular-nums; }
.player-timeline span { min-width: 32px; text-align: center; }
.player-bar input[type="range"] { height: 4px; accent-color: var(--accent); cursor: pointer; min-width: 0; }
#player-progress { flex: 1; width: 100%; }
.player-volume { display: flex; justify-self: end; align-items: center; gap: 10px; color: var(--muted); }
.player-volume input { width: 85px; accent-color: var(--accent); }
.player-volume .icon { height: 16px; width: 16px; }

/* 앰비언트 배경 그라데이션 (Suno Radiant Mesh & Audio Atmosphere) */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: .62;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform .6s ease;
  background: radial-gradient(circle at 50% 50%, #0e0c15 0%, #060508 100%);
}
body.is-playing .ambient-backdrop {
  opacity: .95 !important;
}

/* 움직이는 색과 흐림은 배경에 두고, 앞쪽 UI는 반투명 색으로만 겹친다. */
.ambient-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  filter: blur(95px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  pointer-events: none;
}

/* 1번 오르브: Suno 특유의 신비로운 딥 일렉트릭 바이올렛 / 퍼플 */
.ambient-orb-1 {
  width: 920px;
  height: 920px;
  background: radial-gradient(circle, #6c15f5 0%, #3e0da8 45%, transparent 72%);
  opacity: .65;
  transform: translate(-50%, -50%) translate(-25vw, -22vh);
}

/* 2번 오르브: Suno 특유의 타오르는 엠버 오렌지 & 핫 마젠타 */
.ambient-orb-2 {
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, #ff4e00 0%, #e01275 48%, transparent 70%);
  opacity: .60;
  transform: translate(-50%, -50%) translate(25vw, 22vh);
}

/* 3번 오르브: 재생 중인 곡 고유 컬러 블룸 (Dynamic Accent) */
.ambient-orb-3 {
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, var(--art-a, #ff6b35) 0%, var(--art-b, #4a154b) 50%, transparent 72%);
  opacity: .55;
  transform: translate(-50%, -50%) translate(4vw, -4vh);
}

/* Suno 특유의 자글거리는 시네마틱 스파클 / 필름 그레인 텍스처 오버레이 */
.ambient-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.40;
}

/* ========================================================
   서버 전체 대기열 PIP 컴포넌트 & 전용 뷰 스타일
   ======================================================== */
.queue-pip-widget {
  position: fixed;
  right: 24px;
  bottom: calc(var(--player-height) + 16px);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.queue-pip-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(22, 22, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.queue-pip-pill:hover {
  transform: translateY(-2px);
  background: rgba(30, 30, 37, 0.98);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.queue-pip-pill.has-active {
  background: linear-gradient(135deg, rgba(38, 22, 30, 0.95), rgba(24, 20, 26, 0.95));
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 8px 28px rgba(255, 85, 0, 0.25);
}

.queue-pip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79777f;
  flex-shrink: 0;
}
.queue-pip-dot.is-active,
.queue-pip-pill.has-active .queue-pip-dot {
  background: #ff5500;
  box-shadow: 0 0 10px #ff5500;
  animation: queue-pulse 1.6s ease-in-out infinite;
}
@keyframes queue-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.queue-pip-pill-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff4e00, #eb1768);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Floating PIP Window */
.queue-pip-window {
  pointer-events: auto;
  width: 410px;
  max-width: calc(100vw - 32px);
  max-height: min(540px, calc(100vh - var(--player-height) - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: pip-in .25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pip-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.queue-pip-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.queue-pip-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.queue-pip-head-stat {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.queue-pip-head-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pip-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.pip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.pip-btn .icon {
  width: 14px;
  height: 14px;
}

.queue-pip-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.queue-pip-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.queue-live-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff4e00, #eb1768);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}
.queue-pip-badge-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--faint);
}

.queue-item-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.queue-item-card.is-active-gen {
  background: linear-gradient(135deg, rgba(235, 20, 103, 0.08), rgba(255, 78, 0, 0.05));
  border-color: rgba(235, 20, 103, 0.25);
  box-shadow: 0 4px 18px rgba(235, 20, 103, 0.12);
}
.queue-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.queue-item-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-item-mode {
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.queue-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--faint);
}
.queue-creator-tag {
  color: var(--accent);
  font-weight: 600;
}
.queue-creator-tag.is-mine {
  color: #ffa500;
  background: rgba(255, 165, 0, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
}
.queue-progress-bar-wrap {
  margin-top: 10px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.queue-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff4e00, #eb1768);
  transition: width .1s linear;
}
.queue-progress-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}
.queue-empty-text {
  padding: 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.queue-pending-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  margin-bottom: 6px;
}
.queue-pending-pos {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.queue-pending-info {
  flex: 1;
  min-width: 0;
}
.queue-pending-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-pending-sub {
  font-size: 10px;
  color: var(--faint);
  display: flex;
  gap: 6px;
}

.queue-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 5px;
  font-size: 11.5px;
}
.queue-recent-title {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-recent-play {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 10.5px;
  cursor: pointer;
}
.queue-recent-play:hover {
  background: rgba(255, 255, 255, 0.16);
}

.queue-pip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  font-size: 10.5px;
  color: var(--faint);
}

/* Dedicated Queue View Panel */
#queue-view {
  padding: 32px 30px 45px;
  overflow-y: auto;
  background: rgba(14, 13, 19, 0.35);
}
.queue-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1.2fr);
  gap: 28px;
}
.queue-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.queue-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, transform .1s;
}
.queue-action-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.queue-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
.queue-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
}
.queue-banner-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38a169;
  box-shadow: 0 0 10px #38a169;
}
.queue-banner-gpu {
  font-size: 11px;
  color: var(--muted);
}
.queue-card-group {
  margin-bottom: 28px;
}
.queue-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.queue-live-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff4e00, #eb1768);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .queue-view-layout {
    grid-template-columns: 1fr;
  }
}

/* 재생 중 카드 시각 효과 */
.job-card.is-playing-card, .track-card.is-playing-card { position: relative; background: rgba(245, 183, 156, 0.08); }
.job-card.is-playing-card .job-art, .track-card.is-playing-card .artwork { box-shadow: 0 0 16px rgba(245, 183, 156, 0.4); }
.audio-pulse-indicator { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; width: 13px; }
.audio-pulse-indicator span { display: block; width: 2.5px; background: currentColor; border-radius: 2px; animation: pulse-bar 1.1s ease-in-out infinite alternate; }
.audio-pulse-indicator span:nth-child(1) { height: 35%; animation-delay: .1s; }
.audio-pulse-indicator span:nth-child(2) { height: 95%; animation-delay: .35s; }
.audio-pulse-indicator span:nth-child(3) { height: 60%; animation-delay: 0s; }
.audio-pulse-indicator span:nth-child(4) { height: 80%; animation-delay: .5s; }
@keyframes pulse-bar { 0% { height: 25%; } 100% { height: 100%; } }

/* Growl 알림 컴포넌트 */
.growl-region { position: fixed; z-index: 1000; right: 24px; bottom: calc(var(--player-height) + 16px); display: flex; flex-direction: column-reverse; gap: 10px; max-width: 430px; width: calc(100vw - 36px); pointer-events: none; }
.growl-card { pointer-events: auto; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: start; padding: 14px 16px; border-radius: 14px; background: rgba(26, 26, 30, 0.94); border: 1px solid #38383f; box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35); color: var(--text); overflow: hidden; animation: growl-in .35s cubic-bezier(0.16, 1, 0.3, 1) forwards; transition: opacity .25s, transform .25s; }
.growl-card.is-leaving { animation: growl-out .25s cubic-bezier(0.4, 0, 1, 1) forwards; }
.growl-card.is-warning { border-color: #79572b; background: linear-gradient(135deg, rgba(38,29,20,0.96), rgba(28,24,20,0.94)); }
.growl-card.is-warning .growl-icon { color: #f5b76c; }
.growl-card.is-success { border-color: #2b573d; background: linear-gradient(135deg, rgba(20,36,27,0.96), rgba(20,26,22,0.94)); }
.growl-card.is-success .growl-icon { color: #9ed9b2; }
.growl-card.is-error { border-color: #6d2f38; background: linear-gradient(135deg, rgba(40,21,25,0.96), rgba(28,20,22,0.94)); }
.growl-card.is-error .growl-icon { color: var(--danger); }
.growl-card.is-info { border-color: #3b465e; background: linear-gradient(135deg, rgba(22,29,42,0.96), rgba(20,24,32,0.94)); }
.growl-card.is-info .growl-icon { color: #a2c2f7; }
.growl-icon { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.growl-content { display: grid; gap: 4px; min-width: 0; }
.growl-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; }
.growl-message { font-size: 11.5px; color: #c5c2cb; line-height: 1.5; word-break: break-word; }
.growl-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.growl-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; }
.growl-action:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.growl-close { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: transparent; color: var(--muted); padding: 0; cursor: pointer; transition: background .15s, color .15s; }
.growl-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.growl-close .icon { width: 14px; height: 14px; }
.growl-progress-bar { position: absolute; bottom: 0; left: 0; height: 2.5px; background: currentColor; opacity: .35; width: 100%; transform-origin: left center; }
@keyframes growl-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes growl-out { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(40px) scale(0.95); } }

.toast-region { position: fixed; z-index: 1000; right: 22px; bottom: calc(var(--player-height) + 16px); }
.toast { max-width: min(400px,calc(100vw - 32px)); padding: 13px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(28, 27, 34, 0.88); color: var(--text); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45); font-size: 12px; }
.toast.is-error { border-color: #6a3941; color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes skeleton { to { background-position: -240% 0; } }

@media (min-width: 1600px) { .create-layout { grid-template-columns: 440px minmax(0,1fr); } .library-grid { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); } }
@media (max-width: 1200px) {
  :root { --sidebar-width: 216px; --composer-width: 370px; }
  .create-layout { grid-template-columns: var(--composer-width) minmax(0,1fr); }
  .brand { padding: 0 6px; }
  .brand-word { font-size: 26px; }
  .brand-caption { font-size: 8.5px; }
  .workspace-toolbar, .panel-heading { padding-left: 18px; padding-right: 18px; }
  .panel-heading h2 { gap: 7px; }
  .panel-library-link span { display: none; }
  .player-bar { gap: 18px; }
}
@media (max-width: 850px) and (min-width: 761px) {
  :root { --sidebar-width: 72px; --composer-width: 330px; }
  .brand { padding: 0 10px; }
  .brand-word, .nav-link span, .profile, .connection-label { display: none; }
  .nav-link { padding: 0; justify-content: center; }
  .sidebar-footer { padding: 10px 16px; }
  .create-layout { grid-template-columns: var(--composer-width) minmax(0,1fr); }
}
@media (max-width: 760px) {
  :root { --player-height: 0px; }
  body.is-playing { --player-height: 74px; }
  .app-shell { display: block; height: auto; min-height: 100dvh; padding: 58px 0 58px; overflow: visible; transition: padding-bottom .42s cubic-bezier(.16,1,.3,1); }
  body.is-playing .app-shell { padding-bottom: 136px; }
  .sidebar { display: none; }
  .mobile-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 18px; background: rgba(14, 13, 19, 0.82); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .brand-compact { padding: 0; }
  .brand-compact .brand-word { font-size: 19px; letter-spacing: -.04em; }
  .brand-compact .brand-symbol { width: 23px; height: 23px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: fixed; bottom: 0; left: 0; right: 0; z-index: 120; height: 58px; padding-bottom: env(safe-area-inset-bottom); background: rgba(14, 13, 19, 0.85); border-top: 1px solid rgba(255, 255, 255, 0.08); }
  body.is-authenticated .mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mobile-nav-link { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--faint); font-size: 12px; }
  .mobile-nav-link.is-active { color: var(--accent); }
  .mobile-nav-icon { width: 17px; height: 17px; }
  .main-content, .page-shell, .view-panel { height: auto; overflow: visible; }
  .create-layout { display: block; height: auto; }
  .composer-card { height: auto; border-right: 0; }
  .composer-scroll { overflow: visible; padding: 0 16px 16px; }
  .composer-heading { position: static; margin: 0 -16px 14px; }
  .lyrics-area { min-height: 190px; }
  .style-area { height: 85px; min-height: 85px; }
  .submit-row { padding: 12px 16px 20px; border: 0; }
  .jobs-panel { min-height: 380px; border-top: 1px solid var(--glass-border); }
  .jobs-list { overflow: visible; }
  .jobs-empty { padding-top: 40px; min-height: 270px; }
  .workspace-toolbar { padding-bottom: 16px; }
  .workspace-caption { padding-left: 18px; padding-right: 18px; }
  #library-view { padding: 26px 18px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 25px; }
  .new-track-link { font-size: 10px; padding: 8px 10px; }
  .library-toolbar { flex-wrap: wrap; gap: 12px; }
  .library-toolbar .search-box { flex-basis: 100%; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .player-bar { bottom: 58px; height: 74px; grid-template-columns: minmax(0,1fr) 115px; gap: 10px; padding: 8px 15px; }
  .player-art { width: 42px; height: 42px; }
  .player-volume { display: none; }
  .player-controls { gap: 12px; }
  .player-timeline { gap: 0; }
  .player-timeline span { display: none; }
  .player-center { gap: 9px; }
  .toast-region { bottom: 145px; right: 16px; }
  .empty-state { min-height: 300px; }
}
@media (max-width: 360px) {
  .page-heading .new-track-link { max-width: 105px; }
  .player-track-copy > span { display: none; }
  .job-card { gap: 9px; grid-template-columns: 45px minmax(0,1fr) auto; }
  .job-art { width: 45px; height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.auth-gate {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 18px;
  background: #201d29;
  color: #f6f2eb;
}
.auth-gate:not([open]) { display: none; }
.auth-gate::backdrop { background: rgba(10, 9, 14, 0.46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.auth-card {
  position: relative;
  width: 100%;
  padding: 28px;
  border-radius: inherit;
  background: #201d29;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.auth-eyebrow { color: #dea86c; font-size: 12px; letter-spacing: .16em; }
.auth-card h1 { margin: 0 36px 8px 0; font-size: 25px; }
.auth-description { color: #aaa7a4; line-height: 1.5; }
.auth-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #d5d0d8; cursor: pointer; font: inherit; font-size: 26px; line-height: 1; }
.auth-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.auth-close:focus-visible, .auth-card input:focus-visible, .auth-submit:focus-visible, .auth-switch:focus-visible { outline: 2px solid #e9b77e; outline-offset: 2px; }
.auth-card label { display: grid; gap: 7px; margin: 18px 0; font-size: 14px; }
.auth-card label[hidden] { display: none; }
.auth-card input {
  width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px;
  background: rgba(0, 0, 0, 0.32); color: #fff; font: inherit;
}
.auth-submit, .auth-switch, .auth-logout, .auth-admin-button, .auth-pending-row button, .auth-invite-row button, .auth-new-invite button {
  cursor: pointer; font: inherit;
}
.auth-submit { width: 100%; padding: 12px; border: 0; border-radius: 9px; background: #e9b77e; color: #21180f; font-weight: 700; }
.auth-submit:disabled { opacity: .65; cursor: progress; }
.auth-switch { margin-top: 16px; padding: 4px 0; border: 0; background: none; color: #e9b77e; }
.auth-error { color: #ffb5a9; line-height: 1.4; }
.auth-logout, .auth-admin-button { padding: 4px 0; border: 0; background: none; color: #e9b77e; font-size: 12px; white-space: nowrap; }
.auth-admin-nav-button { width: 100%; border: 0; background: transparent; text-align: left; }
.auth-admin-mobile-button { display: none; padding: 7px 10px; border: 1px solid var(--glass-border); border-radius: 9px; background: rgba(255,255,255,.06); color: var(--accent); font-size: 11px; font-weight: 650; white-space: nowrap; }
@media (max-width: 760px) {
  .auth-admin-mobile-button { display: block; margin-left: auto; }
  .mobile-header:has(.auth-admin-mobile-button) .connection-label { display: none; }
}
.auth-admin-panel { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; background: #201d29; color: var(--text); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72); }
.auth-admin-panel::backdrop { background: rgba(8, 7, 13, 0.76); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.auth-admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--border); }
.auth-admin-header h2 { font-size: 19px; line-height: 1.3; }
.auth-admin-close { padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.auth-admin-content { max-height: calc(100dvh - 108px); overflow-y: auto; padding: 20px 24px 24px; }
.auth-new-invite { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; gap: 8px; margin-bottom: 18px; }
.auth-new-invite label { display: grid; align-content: end; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; }
.auth-new-invite input { min-width: 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: #fff; }
.auth-new-invite button { align-self: end; min-height: 38px; }
.auth-new-invite button, .auth-invite-row button { padding: 9px 14px; border-radius: 8px; background: #e9b77e; color: #21180f; font-weight: 700; white-space: nowrap; }
.auth-invite-list { max-height: min(360px, 45dvh); overflow-y: auto; }
.auth-invite-empty { padding: 20px 0; color: var(--muted); font-size: 13px; }
.auth-invite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); }
.auth-invite-info { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.auth-invite-code { font-family: monospace; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #ffd699; }
.auth-invite-meta { color: var(--muted); font-size: 12px; }
@media (max-width: 480px) {
  .auth-admin-header { padding: 16px; }
  .auth-admin-content { padding: 16px; }
  .auth-new-invite { grid-template-columns: minmax(0, 1fr) 76px; }
  .auth-new-invite button { grid-column: 1 / -1; }
}
.track-creator { margin: 8px 0 0; color: #aaa7a4; font-size: 12px; }

/* Product surfaces: show the task, the result, and the next action. */
.form-stack { gap: 0; }
.model-label { display: none; }
.prompt-assistant { margin-bottom: 8px; }
.prompt-assistant-heading h2 { font-size: 14px; }
.prompt-assistant .prompt-idea { min-height: 84px; font-size: 13px; }
.prompt-assistant-actions label, .prompt-assistant-actions select, .prompt-assistant-actions button, .prompt-assistant-status, .prompt-assistant-result p, .prompt-assistant-result pre { font-size: 12px; }
.prompt-assistant-actions button:disabled { opacity: .45; }
.cover-field { order: -1; margin-bottom: 8px; }
.editor-block { padding: 16px 0 18px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.editor-block:hover, .editor-block:focus-within { border-color: var(--border); background: transparent; box-shadow: none; }
.field-label { font-size: 13px; }
.optional, .required, .field-meta { font-size: 11px; }
.text-input, .text-area { font-size: 13px; }
.title-block > .text-input { height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #1b1a20; }
.title-block > .text-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.editor-foot { justify-content: flex-end; font-size: 11px; }
.submit-privacy { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.advanced-section-desc, .plan-desc { display: none; }
.panel-heading h2 { font-size: 16px; font-weight: 700; }
.workspace-caption { justify-content: flex-end; font-size: 12px; }
.jobs-list { padding: 0 36px 20px; }
.job-card { margin: 0; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.job-card:hover { transform: none; border-color: var(--border); background: rgba(255,255,255,.035); box-shadow: none; }
.job-card.is-playing-card, .job-card.is-playing-card:hover { background: rgba(245, 183, 156, 0.08); }
.job-title { font-size: 14px; }
.job-style { font-size: 12px; }
.job-card-meta, .library-action, .status-badge { font-size: 11px; }
.jobs-empty { align-content: center; min-height: 240px; padding: 24px; }
.jobs-empty strong { font-size: 17px; font-weight: 650; }
.jobs-empty > span { color: var(--muted); font-size: 13px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.03em; }
.page-description { color: var(--muted); font-size: 13px; }
.library-landing-empty { justify-items: start; gap: 10px; padding: 28px 0 0; border: 0; border-radius: 0; text-align: left; }
.library-landing-empty h2 { font-size: 20px; }
.library-landing-empty p { color: var(--muted); font-size: 13px; }
.empty-state-mark { display: none; }
.empty-state { min-height: 230px; place-items: start; padding-top: 26px; }
.empty-state-inner { justify-items: start; text-align: left; }
.empty-state h2 { font-size: 18px; font-weight: 650; }
.empty-state p { color: var(--muted); font-size: 13px; }
.queue-status-banner { justify-content: flex-start; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 0 18px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.queue-banner-pulse { width: 7px; height: 7px; background: var(--accent); box-shadow: none; }
.queue-group-title { font-size: 16px; }
.queue-group-title #queue-page-pending-count { color: var(--muted); font-size: 13px; font-weight: 500; }
.backoffice-panel-head h2 { font-size: 17px; }
.backoffice-form { gap: 10px; }
.backoffice-form .text-area { min-height: 90px; }
.backoffice-hint { color: var(--muted); font-size: 12px; }

/* Product controls */
.queue-banner-left[hidden], .queue-create-link[hidden] { display: none; }
.queue-create-link { color: var(--accent); font-size: 13px; font-weight: 650; text-decoration: none; }
.queue-create-link:hover { text-decoration: underline; }
.queue-action-pill, .queue-recent-play, .publish-actions .filter-button { flex: 0 0 auto; white-space: nowrap; }
.queue-recent-play { min-width: 42px; text-align: center; }
.publish-actions .filter-button { min-width: 72px; font-size: 12px; }
.backoffice-form input[type=file], .publish-cover-row input[type=file] { font-size: 12px; color: var(--muted); }
.backoffice-form input[type=file]::file-selector-button, .publish-cover-row input[type=file]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(245,183,156,.3);
  border-radius: 8px;
  background: rgba(245,183,156,.08);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.backoffice-form input[type=file]::file-selector-button:hover, .publish-cover-row input[type=file]::file-selector-button:hover { background: rgba(245,183,156,.15); }
@media (max-width: 520px) {
  .queue-action-pill { padding: 8px 11px; }
  .queue-action-pill .icon { flex: 0 0 16px; }
  .queue-page-actions { flex: 0 0 auto; }
  .page-heading-queue { display: block; position: relative; }
  .page-heading-queue .queue-page-actions { position: absolute; top: 0; right: 0; }
}
.auth-eyebrow { display: none; }
.auth-card h1 { margin-top: 0; }
.auth-submit { background: var(--accent); color: #251b1b; }
.auth-switch, .auth-logout, .auth-admin-button { color: var(--accent); }
.auth-card input { color: var(--text); }
.auth-card input::placeholder { color: var(--muted); }
.growl-region, .toast-region { bottom: calc(var(--player-height) + 16px); }
@media (max-width: 760px) {
  .composer-heading { margin-bottom: 4px; }
  .jobs-list { padding: 0 18px 24px; }
  .job-card { padding-right: 8px; padding-left: 8px; }
  .page-heading h1 { font-size: 25px; }
  .library-landing-empty { padding-top: 24px; }
  .growl-region, .toast-region { bottom: calc(var(--player-height) + 74px); }
}

/* Library layout: Apple Music proportions in the studio's textured glass palette. */
#library-view {
  --text: #f3f1ee;
  --muted: #c5c0c9;
  --faint: #a49daa;
  --accent: #f5b79c;
  --glass-border: rgba(255,255,255,.13);
  --border: rgba(255,255,255,.13);
  color-scheme: dark;
  color: var(--text);
  background: rgba(16, 14, 24, .36);
  padding: 34px clamp(22px, 2.7vw, 48px) 64px;
}
body.is-playing #library-view { background: rgba(16, 14, 24, .18); }
#library-view::selection { background: #815d62; color: #fff; }
#library-view :focus-visible { outline-color: var(--accent); }
#library-view .page-heading-library { margin-bottom: 18px; }
#library-view .page-heading h1 { font-size: clamp(28px, 2.4vw, 38px); font-weight: 760; letter-spacing: -.035em; line-height: 1.1; }
#library-view .page-description { margin-top: 5px; color: var(--muted); font-size: 13px; }
#library-view .library-tabs { gap: 27px; margin: 0 0 34px; border-color: rgba(255,255,255,.15); }
#library-view .library-tabs a { padding: 12px 1px 11px; color: var(--muted); font-size: 13px; font-weight: 600; }
#library-view .library-tabs a:hover, #library-view .library-tabs a.is-selected { color: var(--text); }
#library-view .library-tabs a.is-selected { border-color: var(--accent); }
#library-view .library-content { gap: 44px; }
#library-view .library-section-heading { margin-bottom: 13px; }
#library-view .library-section-heading h2 { font-size: 20px; font-weight: 730; letter-spacing: -.026em; }
#library-view .library-section-heading span { color: var(--muted); font-size: 12px; }
#library-view .feature-grid { grid-template-columns: repeat(5, minmax(205px, 1fr)); gap: 17px; overflow-x: auto; padding: 0 0 13px; scrollbar-color: #6d6572 transparent; }
#library-view.is-new-music .feature-grid { grid-template-columns: repeat(3, minmax(205px, 1fr)); }
#library-view .feature-grid .release-tile { position: relative; display: block; overflow: hidden; border-radius: 9px; isolation: isolate; color: #fff; box-shadow: 0 8px 20px #0005; }
#library-view .feature-grid .release-art { aspect-ratio: .77; min-height: 235px; border-radius: 9px; box-shadow: none; }
#library-view .feature-grid .release-tile::after { content: ""; position: absolute; z-index: 1; inset: 48% 0 0; background: linear-gradient(transparent, #0e0e14ad); pointer-events: none; }
#library-view .feature-grid .release-tile strong, #library-view .feature-grid .release-tile span, #library-view .feature-grid .release-tile small { position: absolute; z-index: 2; left: 14px; right: 14px; margin: 0; color: #fff; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; text-shadow: 0 1px 8px #0007; }
#library-view .feature-grid .release-tile strong { bottom: 49px; font-size: 17px; font-weight: 740; }
#library-view .feature-grid .release-tile span { bottom: 29px; font-size: 11px; }
#library-view .feature-grid .release-tile small { bottom: 12px; font-size: 10px; opacity: .84; }
#library-view .release-grid { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); gap: 23px 18px; }
#library-view .release-tile { color: var(--text); }
#library-view .release-art { border-radius: 7px; box-shadow: 0 6px 16px #0006; }
#library-view .release-art .icon { color: #fff; opacity: .8; }
#library-view .release-tile strong { margin-top: 9px; font-size: 13px; font-weight: 630; }
#library-view .release-tile span { margin-top: 2px; color: var(--muted); font-size: 12px; }
#library-view .release-tile small { color: var(--faint); font-size: 11px; }
#library-view .chart-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; }
#library-view .chart-row { min-height: 61px; padding: 7px 0; border-color: rgba(255,255,255,.14); }
#library-view .chart-rank { color: var(--muted); font-size: 12px; }
#library-view .chart-art { width: 42px; height: 42px; flex-basis: 42px; border-radius: 5px; }
#library-view .chart-copy strong { font-size: 12px; font-weight: 630; }
#library-view .chart-copy a, #library-view .chart-copy span { color: var(--muted); font-size: 11px; }
#library-view .chart-plays { color: var(--faint); font-size: 10px; }
#library-view .chart-remix { color: var(--accent); }
#library-view .artist-grid { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; }
#library-view .artist-tile { flex: 0 0 133px; min-width: 0; gap: 4px; padding: 0; border: 0; background: transparent; text-align: center; }
#library-view .artist-tile-art { width: 128px; height: 128px; background-color: #443b50; box-shadow: 0 6px 17px #0006; }
#library-view .artist-tile strong { margin-top: 3px; color: var(--text); font-size: 12px; font-weight: 620; }
#library-view .artist-tile > span { color: var(--muted); font-size: 10px; }
#library-view .library-toolbar { justify-content: space-between; margin-bottom: 24px; }
#library-view .library-toolbar .search-box { max-width: 520px; }
#library-view .library-toolbar .search-box input { height: 44px; padding: 0 41px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); color: var(--text); font-size: 14px; }
#library-view .library-toolbar .search-box input:focus { background: rgba(255,255,255,.12); outline: 2px solid var(--accent); outline-offset: 1px; }
#library-view .library-toolbar .search-box input::-webkit-search-cancel-button { display: none; }
#library-view .library-toolbar .search-box input::placeholder { color: var(--faint); }
#library-view .library-toolbar .search-icon { top: 13px; color: var(--muted); }
#library-view .library-status { margin-bottom: 10px; color: var(--muted); }
#library-view .filter-button { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: var(--muted); }
#library-view .filter-button.is-selected { border-color: rgba(245,183,156,.42); background: rgba(245,183,156,.18); color: #ffdbc9; box-shadow: none; }
#library-view .clear-search { color: var(--muted); }
#library-view .library-search-results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
#library-view .search-result { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 11px; border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: rgba(255,255,255,.075); transition: background .15s; }
#library-view .search-result:hover { background: rgba(255,255,255,.13); }
#library-view .search-result-art { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 5px; background: linear-gradient(135deg,var(--art-a),var(--art-c)); background-size: cover; background-position: center; color: #fff; }
#library-view .search-result-art.has-custom-cover .icon { display: none; }
#library-view .search-result-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
#library-view .search-result-copy strong, #library-view .search-result-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#library-view .search-result-copy strong { font-size: 13px; font-weight: 650; }
#library-view .search-result-copy span { color: var(--muted); font-size: 11px; }
#library-view .search-result > .icon { width: 15px; color: var(--muted); }
#library-view .library-grid { grid-template-columns: repeat(auto-fill,minmax(176px,1fr)); gap: 25px 18px; }
#library-view .track-card { padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
#library-view .track-card:hover { transform: none; background: transparent; box-shadow: none; }
#library-view .track-card:hover .artwork { transform: translateY(-2px); }
#library-view .artwork { border-radius: 7px; transition: transform .18s; }
#library-view .artwork-top { display: none; }
#library-view .artwork-play { width: 34px; height: 34px; background: #f3efe8; color: #211d25; }
#library-view .artwork-play .icon { width: 17px; height: 17px; }
#library-view .track-info { padding: 7px 1px 0; }
#library-view .track-title { font-size: 13px; }
#library-view .track-date, #library-view .track-style, #library-view .track-creator, #library-view .download-link, #library-view .track-no-audio { color: var(--muted); }
#library-view .track-style { min-height: 0; -webkit-line-clamp: 1; font-size: 11px; }
#library-view .track-actions { gap: 5px 10px; }
#library-view .download-link:hover { color: var(--accent); }
#library-view .library-loading, #library-view .library-landing-empty p { color: var(--muted); }
#library-view .library-landing-empty { padding-top: 32px; }
#library-view .library-landing-empty h2 { font-size: 20px; }
#library-view.is-detail .page-heading-library, #library-view.is-detail .library-tabs { display: none; }
#library-view.is-album-detail { background: rgba(30, 34, 53, .40); }
body.is-playing #library-view.is-album-detail { background: rgba(30, 34, 53, .20); }
#library-view .library-back { display: inline-flex; width: fit-content; margin-bottom: -15px; color: var(--accent); font-size: 13px; font-weight: 600; }
#library-view .album-hero { align-items: center; gap: 28px; padding: 8px 0 0; border-radius: 0; background: transparent; }
#library-view .album-hero-art { width: clamp(160px,20vw,240px); flex: 0 0 clamp(160px,20vw,240px); border-radius: 8px; box-shadow: 0 12px 30px #0007; color: #fff; }
#library-view .album-hero-copy { min-width: 0; }
#library-view .album-hero h2 { font-size: clamp(26px,3vw,39px); font-weight: 750; letter-spacing: -.035em; }
#library-view .album-hero a { margin-top: 2px; color: var(--text); font-size: 21px; font-weight: 500; }
#library-view .album-hero .album-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
#library-view .album-hero p:not(.album-meta) { max-width: 48ch; margin-top: 8px; color: var(--muted); font-size: 12px; }
#library-view .album-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
#library-view .library-play-all, #library-view .library-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 0 16px; border-radius: 20px; font-size: 12px; font-weight: 650; }
#library-view .library-play-all { background: #f3efe8; color: #211d25; }
#library-view .library-play-all:hover { background: #fff; }
#library-view .library-secondary-action { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.10); color: var(--text); }
#library-view .library-secondary-action:hover { background: rgba(255,255,255,.17); }
#library-view .library-play-all .icon, #library-view .library-secondary-action .icon { width: 14px; height: 14px; }
#library-view .single-actions { margin-top: -25px; }
#library-view .album-track-list { margin-top: -2px; }
#library-view .album-track-row { display: flex; align-items: center; min-height: 50px; border-top: 1px solid rgba(255,255,255,.15); }
#library-view .album-track-number { width: 30px; flex: 0 0 30px; color: var(--muted); font-size: 12px; text-align: center; }
#library-view .album-track-main { display: grid; flex: 1; min-width: 0; gap: 1px; padding: 7px 5px; background: transparent; color: var(--text); text-align: left; }
#library-view .album-track-main:hover strong { color: var(--accent); }
#library-view .album-track-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 620; }
#library-view .album-track-main span { color: var(--muted); font-size: 10px; }
#library-view .album-track-remix { width: 32px; height: 32px; padding: 7px; background: transparent; color: var(--muted); }
#library-view .album-track-remix .icon { width: 17px; height: 17px; }
#library-view .album-track-remix:hover { color: var(--accent); }
#library-view .artist-hero { border-radius: 9px; background-color: #30283b; }
#library-view .artist-hero h2, #library-view .artist-hero p:not(.eyebrow), #library-view .artist-hero span { color: #fff; }
#library-view .single-lyrics { color: var(--muted); }
@media (max-width: 1300px) {
  #library-view .chart-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  #library-view { padding: 24px 16px 58px; }
  #library-view .library-tabs { gap: 19px; overflow-x: auto; white-space: nowrap; margin-bottom: 25px; }
  #library-view .library-tabs a { flex: 0 0 auto; }
  #library-view .feature-grid { grid-template-columns: repeat(5,minmax(205px,67vw)); }
  #library-view .feature-grid .release-art { min-height: 265px; }
  #library-view .library-search-results { grid-template-columns: 1fr; }
  #library-view .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 13px; }
  #library-view .library-toolbar { align-items: stretch; flex-direction: column; }
  #library-view .library-toolbar .search-box { max-width: none; width: 100%; }
  #library-view .album-hero { align-items: start; gap: 17px; }
  #library-view .album-hero-art { width: 35vw; flex-basis: 35vw; }
  #library-view .album-hero a { font-size: 16px; }
  #library-view .album-hero-actions { margin-top: 13px; }
}
@media (max-width: 520px) {
  #library-view .chart-grid { grid-template-columns: 1fr; }
  #library-view .album-hero { flex-direction: column; }
  #library-view .album-hero-art { width: min(52vw,210px); flex-basis: auto; }
  #library-view .single-actions { margin-top: -18px; }
}
