:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #f7f3f5;
  background: #101013;
  --panel: #17171b;
  --card: #202025;
  --edge: #2b2b31;
  --muted: #9a96a1;
  --soft: #b9b4bf;
  --accent: #fc9d79;
  --focus-ring: #8e8a96;
  --player: 90px;
}
*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: rgb(170 165 175 / 0.35) transparent; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, .workspace-divider:focus-visible {
  outline: 1px solid var(--focus-ring); outline-offset: 2px;
}
input:focus, select:focus, textarea:focus { outline: none; }
a { color: inherit; text-decoration: none; }
svg:where(:not(#score-sheet svg)) { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.app { min-height: calc(100dvh - var(--player)); display: grid; grid-template-columns: 192px minmax(0, 1fr); }
.rail { height: calc(100dvh - var(--player)); position: sticky; top: 0; display: flex; flex-direction: column; padding: 24px 13px 16px; border-right: 1px solid var(--edge); background: #121216; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; margin: 0 0 34px 9px; font-size: 17px; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: block; flex: none; }
.nav-section, .albums { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--soft); padding: 11px 9px; border-radius: 9px; text-align: left; font-size: 13px; white-space: nowrap; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover, .nav-item.is-active { background: #26242a; color: #fff; }
.nav-item.is-active svg { color: var(--accent); }
.nav-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 29px 3px 6px 9px; font-weight: 650; }
.rail-footer { margin-top: auto; padding: 20px 5px 4px 8px; display: grid; grid-template-columns: 9px 1fr; column-gap: 6px; align-items: center; color: var(--soft); font-size: 11px; white-space: nowrap; }
.rail-footer i { width: 6px; height: 6px; border-radius: 50%; background: #70ce96; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 22%, #2b1f30, #101013 60%); }
.login-card { width: min(100%, 360px); padding: 28px; border: 1px solid #3d3340; border-radius: 18px; background: var(--panel); }
.login-brand { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 750; letter-spacing: -.045em; }
.login-card h1 { margin: 23px 0 15px; font-size: 20px; }
.login-card form { display: grid; gap: 12px; }
.login-card form .solid { margin-top: 4px; }
#auth-status { margin: 12px 0 0; color: var(--soft); font-size: 13px; }
#auth-status:empty { display: none; }
#password-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
#account-email, .member-email { overflow-wrap: anywhere; }
#account-email, #member-management { color: var(--soft); font-size: 13px; }
#member-management h3 { color: #f7f3f5; font-size: 14px; }
#account-members { display: grid; gap: 9px; list-style: none; padding: 0; max-height: 45dvh; overflow: auto; }
.account-member { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid #49404b; padding-top: 9px; }
.member-email { flex: 1 0 100%; }
.account-member .subtle { min-height: 29px; padding: 4px 8px; }
#account-dialog { width: min(560px, calc(100vw - 25px)); max-height: 90dvh; }
#access-log-rows { max-height: 35dvh; overflow: auto; padding: 9px; background: #17151a; border-radius: 8px; font-size: 11px; }
.workspace {
  --composer-default: 390px;
  --composer-min: 240px;
  --library-min: 260px;
  display: grid;
  grid-template-columns: clamp(var(--composer-min), var(--composer-width, var(--composer-default)), calc(100% - var(--library-min) - 7px)) 7px minmax(0, 1fr);
  height: calc(100dvh - var(--player));
}
.workspace.library-only { grid-template-columns: minmax(0, 1fr); }
.workspace.library-only :is(.composer, .workspace-divider) { display: none; }
.workspace-divider { position: relative; background: var(--edge); cursor: col-resize; touch-action: none; }
.workspace-divider::before { content: ""; position: absolute; inset: 0 3px; background: #484550; }
.workspace-divider:hover::before, .workspace-divider:focus-visible::before, .workspace.is-resizing .workspace-divider::before { background: var(--focus-ring); }
.workspace.is-resizing { cursor: col-resize; user-select: none; }
.composer { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #19191d; container-type: inline-size; }
.composer-header { display: grid; gap: 12px; padding: 24px 16px 13px; }
.composer-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.composer-heading h1 { margin: 0; }
#reset-composer { min-height: 30px; padding: 4px 8px; color: var(--soft); font-size: 11px; }
.composer-header h1 { white-space: nowrap; }
.eyebrow { color: #b2a5b1; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
h1, h2 { margin: 5px 0 0; font-weight: 750; letter-spacing: -.05em; }
h1 { font-size: 25px; }
h2 { font-size: 30px; }
.composer-scroll { padding: 0 16px 16px; overflow-y: auto; min-height: 0; scrollbar-gutter: stable; }
.mode-switch { display: flex; gap: 2px; background: #131317; border: 1px solid #32313a; padding: 3px; border-radius: 10px; }
.mode-switch button { flex: 1; border: 0; border-radius: 7px; padding: 7px 10px; white-space: nowrap; background: transparent; color: var(--soft); font-size: 12px; font-weight: 650; }
.mode-switch button:hover { color: #fff; }
.mode-switch button[aria-selected="true"] { background: #383442; color: #fff; }
.field-card { border: 1px solid #34323a; border-radius: 11px; background: #202025; margin-bottom: 8px; }
.field-card[open] { padding: 0 9px 9px; }
.field-card summary, .field > span, .preset-line label { color: #e8e2ea; font-weight: 680; font-size: 13px; }
.field-card summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.field-card > summary { min-height: 39px; padding: 7px 11px; gap: 7px; border-radius: 10px; }
.field-card[open] > summary { padding-inline: 2px; }
.field-card:not([open]) > summary:hover { background: #2a2831; }
.field-card summary::-webkit-details-marker { display: none; }
.field-card > summary svg { width: 15px; height: 15px; color: var(--muted); margin-left: auto; }
.field-card[open] > summary svg { transform: rotate(180deg); }
.field-card > summary small { margin-left: auto; color: var(--soft); font-size: 10px; font-weight: 500; }
.field-card > summary small:not(:empty) + svg { margin-left: 0; }
.composer-primary { border-color: #403847; }
.composer-section { margin-top: 8px; }
.composer-section-body { padding: 0 9px 2px; }
.composer-section-body > .field-card { background: #1a191f; }
.composer-style-options { margin-top: 6px; }
.composer-style-options > summary { min-height: 27px; padding: 0 2px; gap: 7px; color: var(--soft); font-size: 11px; }
.composer-style-options > summary::before { content: "›"; font-size: 13px; }
.composer-style-options[open] > summary::before { rotate: 90deg; }
#style-profile-summary { flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.quick-settings .field > span { color: var(--soft); font-size: 11px; white-space: nowrap; }
.quick-settings .field :is(input, select) { padding-left: 7px; padding-right: 4px; font-size: 12px; min-height: 34px; }
.field-hint { color: var(--muted); display: block; padding: 4px 0; font-size: 11px; }
.field-card textarea { border: 0; padding: 7px 0 0; width: 100%; background: transparent; color: #e8e4e9; }
textarea { resize: vertical; min-height: 45px; font-size: 13px; line-height: 1.55; }
#lyrics { min-height: 70px; }
#style { min-height: 56px; }
#composer-form textarea { field-sizing: content; resize: none; overflow-y: hidden; }
#composer-form textarea[data-expandable]:not(.expanded) { max-height: clamp(88px, 12dvh, 150px); overflow-y: auto; }
#composer-form textarea#style:not(.expanded) { max-height: clamp(78px, 10dvh, 132px); }
#composer-form :is(input, textarea, select):focus-visible { background-color: #26242d; }
@media (prefers-contrast: more) {
  #composer-form :is(input, textarea, select):focus-visible { background-color: #292830; }
}
.style-input { border: 1px solid #3a3741; border-radius: 9px; background: #18181c; }
.style-input textarea { display: block; padding: 8px 9px; border-radius: 9px; }
.style-profile { margin: 9px 0 4px; }
.style-profile-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-bottom: 6px; }
.style-profile-fields input { min-width: 0; width: 100%; min-height: 33px; }
.style-profile-fields .field > span { font-size: 11px; color: var(--soft); }
.style-suggestions { padding: 7px 8px 8px; border-top: 1px solid #302e37; }
.style-suggestion-label { display: block; margin-bottom: 5px; color: var(--soft); font-size: 10px; }
.style-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.style-tag-options { margin-top: 6px; }
.style-tags .chip { min-height: 24px; text-align: left; }
.style-tags .chip[aria-expanded="true"] { border-color: #81576a; color: #ffd1be; background: #46343f; }
.style-tags .chip:disabled { opacity: .7; }
.small-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.chip { background: #303037; border: 1px solid #38363e; color: #c9c1ce; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 650; }
.chip:hover { background: #473946; color: #ffe0d6; }
.field-writing { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 5px 0 4px; }
.composer-entry .field-writing { padding: 6px 8px; border-top: 1px solid #302e37; }
.composer-entry .score-open { margin-top: 0; }
.lyrics-writing .composer-tags { padding: 0; gap: 4px; }
.composer-recommend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.composer-recommend .auto-action { flex: 1; justify-content: flex-start; min-height: 36px; }
.composer-recommend [role="status"] { color: var(--soft); font-size: 11px; }
.composer-recommend [role="status"]:empty { display: none; }
.editor-expand { margin-left: auto; padding: 5px 3px; border: 0; border-radius: 4px; background: transparent; color: #c8b8d8; font-size: 11px; }
.editor-expand:hover { color: #fff; }
.composer .auto-action { color: #eadff4; background: #2d2735; border-color: #45394c; min-height: 30px; padding: 4px 8px; max-width: 100%; white-space: normal; text-align: left; }
.composer .auto-action:hover:enabled { background: #3b3045; }
.composer .auto-action svg { color: #d3b8ee; }
.composer .chip { min-height: 26px; }
.field-writing .subtle { min-height: 29px; padding: 4px 8px; font-size: 11px; }
.auto-action svg { width: 13px; height: 13px; color: var(--accent); }
.style-directory { border-top: 1px solid #34333b; margin-top: 5px; padding-top: 7px; }
.style-directory > summary { justify-content: flex-start; gap: 6px; font-size: 11px; color: var(--soft); }
.style-directory > summary::before { content: "›"; color: var(--muted); }
.style-directory[open] > summary::before { rotate: 90deg; }
.style-directory summary small, .style-directory p { color: var(--muted); font-size: 10px; }
.style-directory p { line-height: 1.5; margin: 4px 0 7px; }
.style-directory p b { color: var(--accent); }
.style-search { display: flex; align-items: center; gap: 6px; background: #19191d; padding: 0 7px; border: 1px solid #37363c; border-radius: 7px; }
.style-search svg { width: 13px; height: 13px; color: var(--muted); }
.style-search input { width: 100%; min-width: 0; padding: 6px 0; background: transparent; border: 0; font-size: 11px; }
.style-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 7px 0; }
.style-path button { border: 0; border-radius: 5px; background: #2d2a32; color: var(--soft); padding: 3px 5px; font-size: 10px; text-align: left; }
.style-path button + button::before { content: "› "; color: var(--muted); }
.style-path button[aria-current] { color: var(--accent); background: #382d32; }
.style-directory h3 { color: var(--soft); font-size: 10px; font-weight: 700; margin: 8px 0 4px; }
.style-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.style-choice { display: flex; min-width: 0; min-height: 27px; border: 1px solid #38363e; border-radius: 7px; background: #29282e; }
.style-keyword { flex: 1; position: relative; min-width: 0; border: 0; border-radius: 6px; background: transparent; text-align: left; padding: 5px 13px 5px 6px; color: #ece7ef; font-size: 10px; overflow-wrap: anywhere; }
.style-keyword small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.25; font-size: 9px; }
.style-next { position: absolute; right: 4px; top: 50%; translate: 0 -50%; color: var(--muted); }
.style-keyword:hover, .style-add:hover:enabled { background: #473946; color: #ffe0d6; }
.style-add { align-self: stretch; flex: none; width: 22px; border: 0; border-left: 1px solid #433942; border-radius: 0 6px 6px 0; background: #332c34; color: var(--accent); font-size: 13px; font-weight: 750; }
.style-directory .style-description { color: var(--soft); overflow-wrap: anywhere; }
.style-directory .style-sound { color: #f1c4b3; font-size: 11px; }
.style-reference { background: #25242c; border: 1px solid #37343f; border-radius: 7px; padding: 6px 7px; margin-bottom: 4px; }
.style-reference strong, .style-reference small { display: block; font-size: 11px; }
.style-reference small { color: var(--accent); font-size: 9px; margin-bottom: 3px; }
.style-reference a { color: var(--accent); font-size: 10px; text-decoration: underline; }
.chord-guide :is(.chord-options, #chord-results) { margin-inline: 8px; }
.chord-options { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 6px; margin-bottom: 7px; }
.chord-options .field > span { font-size: 10px; color: var(--soft); }
.chord-options .field select, .chord-guide > .subtle { min-height: 29px; padding: 5px; font-size: 11px; }
.chord-title { color: var(--soft); font-size: 11px; margin: 8px 0 4px; }
.chord-option { display: flex; margin: 4px 0; border: 1px solid #38363e; border-radius: 7px; background: #29282e; }
.chord-option > div { flex: 1; padding: 6px; min-width: 0; }
.chord-option strong { color: var(--accent); font-size: 10px; }
.chord-option code { display: block; margin: 3px 0; font-size: 11px; color: #efe9f3; }
.chord-option p { margin: 3px 0 0; font-size: 10px; line-height: 1.45; color: var(--soft); }
.score-open { margin-top: 8px; min-height: 29px; font-size: 11px; }
#score-editor { width: min(1320px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 17px; border-radius: 13px; overflow: auto; }
.score-header, .score-actions, .score-footer, .score-apply, .score-note-buttons, .score-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.score-header, .score-footer { justify-content: space-between; }
.score-header h2 { margin: 2px 0; font-size: 23px; }
.score-header small, .score-hint { color: var(--muted); font-size: 11px; }
.score-actions, .score-sections { margin-top: 9px; }
.score-actions .subtle, .score-note-buttons .subtle { min-height: 28px; padding: 4px 7px; font-size: 11px; }
.score-open-file { cursor: pointer; position: relative; }
.score-open-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.score-open-file:focus-within { outline: 1px solid var(--focus-ring); outline-offset: 2px; }
.score-workspace { display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 19vw, 220px); gap: 10px; margin-top: 8px; align-items: start; }
.score-visual { min-width: 0; }
.score-document-actions { justify-content: flex-end; }
.score-view-tabs { display: flex; gap: 2px; margin-right: auto; padding: 2px; border-radius: 8px; background: #121217; }
.score-view-tabs .subtle { background: transparent; border-color: transparent; }
.score-view-tabs [aria-pressed="true"], .score-control-group [aria-pressed="true"] { background: #353044; border-color: #605474; color: #f0e5ff; }
#score-sheet-wrap { height: min(56dvh, 660px); min-height: 235px; overflow: auto; padding: 8px; border-radius: 8px; color: #27222b; background: #fbf6ed; }
#score-sheet { min-height: 100%; }
#score-sheet > .score-placeholder { margin: 24px 10px; font-size: 13px; color: #574c56; }
#score-sheet .abcjs-note, #score-sheet .abcjs-rest { cursor: ns-resize; }
.score-roll-toolbar { display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: center; padding: 0 0 7px; }
.score-transport { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; padding: 8px; border: 1px solid #393441; border-radius: 9px; background: #1e1b25; }
.score-control-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.score-control-group .subtle { min-height: 30px; padding: 4px 8px; font-size: 11px; border-radius: 6px; }
.score-control-group .subtle svg { width: 15px; height: 15px; }
.score-control-group .score-play { min-width: 88px; background: #dcd1f0; border-color: #dcd1f0; color: #21172d; }
.score-control-group .score-play:hover { background: #eee4fc; }
.score-control-group .score-play[data-active="false"] { background: #26252c; border-color: #39373f; color: #eee8ee; }
.score-control-group .score-play[data-active="false"]:hover { background: #34323b; }
.score-clock { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #e5dbef; font-size: 12px; font-variant-numeric: tabular-nums; }
#score-position { min-width: 6.5em; font-weight: 700; }
#score-time { min-width: 7.1em; color: var(--soft); }
#score-tempo { color: #a79ab7; font-size: 10px; }
.score-transport-options, .score-roll-view-options { margin-left: auto; }
.score-control-group label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--soft); white-space: nowrap; }
.score-control-group select { width: auto; min-height: 30px; padding: 2px 5px; font-size: 11px; }
#score-roll-zoom { width: clamp(58px, 8vw, 106px); accent-color: #bea6e7; }
#score-roll-wrap { height: min(49dvh, 620px); min-height: 210px; overflow: auto; border: 1px solid #393643; border-radius: 8px; background: #191820; }
#score-roll { position: relative; min-width: 100%; font-size: 10px; }
.score-roll-empty { padding: 12px; color: var(--soft); }
.score-roll-header, .score-roll-grid { display: grid; grid-template-columns: var(--roll-key-width) minmax(0, 1fr); }
.score-roll-header { position: sticky; top: 0; z-index: 4; height: 44px; background: #262431; }
.score-roll-corner, .score-roll-keys { position: sticky; left: 0; z-index: 3; background: #22212a; }
.score-roll-corner { display: grid; grid-template-rows: 44px; border-right: 1px solid #575163; color: #ead9e7; text-align: center; }
.score-roll-track-name, .score-roll-wave-label { display: grid; place-items: center; padding: 0 2px; }
.score-roll-wave-label { height: 28px; border-top: 1px solid #474051; background: #22202d; color: #c6b5df; font-size: 9px; }
.score-roll-waveform { position: absolute; inset: 44px 0 auto; height: 28px; overflow: hidden; border-top: 1px solid #474051; background: #211d2a; cursor: pointer; }
.score-roll-waveform svg { display: block; height: 100%; max-width: none; fill: none; stroke: #aa92ce; stroke-width: 1; stroke-linecap: butt; pointer-events: none; }
.score-roll-wave-message { position: sticky; left: 55px; display: inline-flex; align-items: center; height: 100%; margin-left: 5px; color: var(--soft); pointer-events: none; }
.score-roll-part-label { display: grid; place-items: center; border-top: 1px solid #474051; font-weight: 700; }
.score-roll-part-label.drums { color: #ecc08b; }
.score-roll-part-label.bass { color: #a8e4b6; }
.score-roll-part { position: absolute; inset-inline: 0; overflow: hidden; border-top: 1px solid #474051; background: repeating-linear-gradient(90deg, #8780993b 0 1px, transparent 1px var(--roll-beat)), #211d2a; }
.score-roll-part-note { position: absolute; z-index: 2; height: 8px; overflow: hidden; padding: 0 1px; border: 0; border-radius: 2px; background: #d8a269; color: #1d201e; line-height: 8px; font-size: 7px; white-space: nowrap; cursor: move; touch-action: none; }
.score-roll-part-note.expanded { height: calc(var(--roll-row-height) - 4px); line-height: 1; font-size: 9px; text-align: left; }
:is(.score-roll-part, .score-roll-lanes).bass .score-roll-part-note { background: #8ecba0; }
#score-roll .score-roll-part-note[aria-pressed="true"] { z-index: 3; background: #ffe0a3; box-shadow: inset 0 0 0 1px #fff5da; color: #332318; }
#score-roll.drawing .score-roll-part { cursor: crosshair; }
.score-roll-ruler, .score-roll-lanes { position: relative; background-image: repeating-linear-gradient(90deg, #887b953d 0 1px, transparent 1px var(--roll-beat)), repeating-linear-gradient(90deg, var(--roll-snap-line) 0 1px, transparent 1px var(--roll-snap)); }
.score-roll-ruler { cursor: ew-resize; touch-action: pan-y; user-select: none; }
.score-roll-lanes { isolation: isolate; }
#score-roll.drawing .score-roll-lanes { cursor: crosshair; }
.score-roll-head, .score-roll-range { position: absolute; inset-block: 0; pointer-events: none; }
.score-roll-head { width: 2px; z-index: 3; background: #c3a5fa; }
.score-roll-ruler .score-roll-head::before { position: absolute; top: 0; left: -3px; width: 8px; height: 7px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); content: ""; }
.score-roll-range { z-index: 1; background: #ae87ec2b; border-inline: 1px solid #b694ea80; }
.score-roll-measure { position: absolute; z-index: 2; top: 0; height: 20px; padding: 3px 0 0 4px; border-left: 1px solid #64586c; color: #e1cfde; }
.score-roll-chord { position: absolute; z-index: 2; top: 21px; max-width: calc(var(--roll-beat) * 1.8); height: 18px; padding: 1px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #73536b; border-radius: 4px; background: #483248; color: #ffdff1; font-size: 9px; }
.score-roll-key, .score-roll-lane { height: var(--roll-row-height); border-bottom: 1px solid #5f546641; }
.score-roll-key { display: block; width: 100%; padding: 1px 7px 0 0; border: 0; border-right: 1px solid #575163; border-bottom: 1px solid #7c7380; text-align: right; background: #e2dae4; color: #28232e; line-height: 15px; }
.score-roll-key.black { background: #454051; color: #f0e7f3; }
.score-roll-key:hover { background: #ba9fe8; color: #251a36; }
.score-roll-lane.black { background: #06060e45; }
.score-roll-lane.octave { border-bottom-color: #88768e85; }
.score-roll-bar { position: absolute; top: 0; height: 100%; border-left: 1px solid #77708281; pointer-events: none; }
.score-roll-note { position: absolute; z-index: 2; display: flex; align-items: center; height: calc(var(--roll-row-height) - 4px); padding: 0; overflow: hidden; border: 1px solid #ffc0ac; border-radius: 3px; background: #d98184; color: #2d1020; cursor: move; touch-action: none; user-select: none; }
.score-roll-note.accompaniment { background: #91b9c9; border-color: #c3e4ec; color: #132838; }
.score-roll-note[aria-pressed="true"] { z-index: 3; background: #ffe0a3; border-color: #fff1cb; color: #332318; }
.score-roll-note-name { padding-left: 2px; white-space: nowrap; font-size: 8px; pointer-events: none; }
.score-roll-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; border-left: 1px solid #26152045; cursor: ew-resize; }
.score-roll-target { min-height: 17px; padding: 4px 2px 0; color: var(--soft); font-size: 10px; }
.score-roll-target[data-voice="0"] { color: #ffc0ac; }
.score-roll-target[data-voice="1"] { color: #c3e4ec; }
#score-sheet [data-note-playing] { color: #6941a5; }
#score-sheet [data-note-playing] :is(path, text) { fill: #6941a5; }
.score-inspector { padding: 9px; border: 1px solid var(--edge); border-radius: 8px; background: var(--card); }
.score-inspector h3 { margin: 0 0 7px; font-size: 11px; color: var(--soft); }
.score-parts { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--edge); }
#score-parts-status { color: var(--soft); font-size: 10px; }
#score-parts-downloads { display: flex; flex-wrap: wrap; gap: 4px; }
#score-parts-downloads .chip { white-space: nowrap; }
.score-part-time { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; }
#score-part-controls .score-note-buttons { margin-top: 8px; }
.score-inspector p { line-height: 1.45; margin: 4px 0 8px; }
#score-selection { font-size: 13px; font-weight: 650; }
.score-inspector .field { margin-top: 8px; }
.score-inspector .field span { font-size: 11px; }
.score-inspector select, .score-inspector .field input { min-height: 31px; padding: 5px; }
.score-chord-line { display: flex; gap: 4px; }
.score-chord-line .subtle { min-height: 31px; padding: 4px 6px; }
.score-raw { margin-top: 11px; font-size: 11px; color: var(--soft); }
.score-raw summary { cursor: pointer; }
.score-raw textarea { display: block; margin: 5px 0; width: 100%; padding: 5px; border-radius: 5px; background: #141419; }
.score-footer { padding-top: 9px; }
#sound-wiki { width: min(750px, 94vw); max-height: 88dvh; }
#sound-wiki-content { max-height: 63dvh; overflow: auto; margin-top: 11px; padding-right: 5px; }
#sound-wiki-tabs .chip[aria-pressed="true"] { background: #46343f; color: #ffd1be; }
.wiki-note, .wiki-card p { color: var(--soft); font-size: 12px; line-height: 1.55; }
.wiki-card { padding: 10px 12px; margin-top: 7px; border: 1px solid var(--edge); border-radius: 8px; background: #222127; }
.wiki-card h3 { margin: 0; font-size: 13px; }
.wiki-card p { margin: 6px 0 8px; }
.wiki-source { display: block; padding: 9px 4px; font-size: 12px; color: var(--soft); text-decoration: underline; }
.wiki-group { margin-top: 12px; }
.wiki-group > summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.wiki-era { display: block; margin-top: 4px; color: var(--soft); font-size: 11px; }
.wiki-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; font-size: 12px; line-height: 1.55; }
.wiki-facts dt { font-weight: 650; }
.wiki-facts dd { margin: 0; color: var(--soft); }
.wiki-recordings .wiki-source { display: inline-block; padding: 0 10px 0 0; }
.wiki-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; }
.wiki-example code { overflow-wrap: anywhere; color: #f2d8c7; }
.wiki-card-sources { display: flex; flex-wrap: wrap; gap: 0 8px; }
.wiki-card-sources .wiki-source { font-size: 11px; padding: 6px 0 1px; }
.wiki-chart-controls { display: grid; grid-template-columns: 2fr minmax(68px, .6fr) 1fr; gap: 8px; }
.wiki-chart-controls :is(label, select, input) { min-width: 0; }
.wiki-chart-list { margin: 8px 0; padding: 0; list-style: none; font-size: 12px; }
.wiki-chart-list li { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr); gap: 6px; padding: 7px 2px; border-bottom: 1px solid var(--edge); overflow-wrap: anywhere; }
.wiki-rank, .wiki-artist { color: var(--soft); }
.wiki-rank { font-variant-numeric: tabular-nums; }
#score-status { color: var(--soft); font-size: 11px; margin: 0; max-width: 500px; overflow-wrap: anywhere; }
#score-status[data-error="true"] { color: #ffb5b5; }
@media (max-width: 620px) {
  .score-workspace { grid-template-columns: minmax(0, 1fr); }
  #score-sheet-wrap, #score-roll-wrap { height: 39dvh; }
  .score-transport-options, .score-roll-view-options { margin-left: 0; }
}
.field { display: grid; gap: 6px; }
.field input, .field select, .field textarea, select, .search input { width: 100%; border: 1px solid #34333a; background: #202025; border-radius: 9px; min-height: 37px; padding: 8px 10px; font-size: 13px; }
.field small { color: var(--muted); font-size: 10px; font-weight: 500; }
.preset-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 9px 0 12px; }
.preset-line select { min-width: 0; text-overflow: ellipsis; }
.preset-line label { color: var(--soft); font-size: 11px; }
.preset-line :is(select, button) { min-height: 34px; padding: 5px 8px; font-size: 12px; }
.title-field { margin: 0 0 10px; }
.title-field > span { display: flex; align-items: baseline; gap: 6px; }
.composer .field :is(input:not([type="range"]), select), .preset-line select { background-color: #151519; }
.composer .field :is(input:not([type="range"]), select):focus-visible, .preset-line select:focus-visible { background-color: #26242d; }
#simple-fields { margin-top: 14px; }
#idea { min-height: 112px; }
.subtle, .solid { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border: 1px solid #39373f; background: #26252c; color: #eee8ee; padding: 8px 10px; border-radius: 9px; font-weight: 650; font-size: 12px; min-height: 36px; }
.subtle:hover { background: #34323b; }
.subtle svg { width: 15px; height: 15px; }
.wide { width: 100%; margin-top: 8px; }
.advanced { margin-top: 12px; border: 1px solid #34323a; background: #202025; border-radius: 11px; }
.advanced > summary { list-style: none; display: flex; gap: 7px; align-items: center; cursor: pointer; font-size: 12px; color: var(--soft); padding: 9px 10px; }
.advanced > summary small { margin-left: auto; color: var(--muted); font-size: 10px; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary svg { width: 15px; height: 15px; }
.advanced[open] > summary svg { transform: rotate(180deg); }
.advanced-grid { padding: 0 10px 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.advanced-grid .full { grid-column: 1 / -1; }
.settings-caption { border-top: 1px solid var(--edge); padding-top: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.advanced-grid output { float: right; color: var(--accent); font-variant-numeric: tabular-nums; }
.advanced-grid input[type="range"] { padding: 0; min-height: 22px; border: 0; background: transparent; }
#seed, #seed-mode { min-width: 0; }
.create-footer { border-top: 1px solid #34313b; padding: 9px 16px 12px; margin-top: auto; background: #1c1b21; }
.create-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 8px; color: var(--soft); font-size: 11px; margin: 0 2px 7px; font-variant-numeric: tabular-nums; }
.create-button { border: none; width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-size: 14px; font-weight: 800; color: #22131a; background: linear-gradient(105deg,#ffb685,#fa8e89 52%,#f18cba); }
.create-button:hover { filter: brightness(1.08); }
.create-note { color: var(--muted); }
@container (max-width: 315px) {
  .composer-header { align-items: stretch; flex-direction: column; }
}
.library { min-width: 0; overflow-y: auto; padding: 26px 26px 32px; background: radial-gradient(ellipse at 95% 0, #241921 0%,#151418 33%,#141417 66%); }
.library-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.library-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.library-header .subtle { margin-top: 7px; }
.toolbar { margin: 20px 0 10px; display: flex; gap: 8px; }
.search { position: relative; flex: 1; min-width: 0; max-width: 370px; }
.search svg { width: 15px; height: 15px; position: absolute; left: 11px; top: 11px; color: var(--muted); }
.search input { padding-left: 34px; }
.toolbar select { width: 105px; }
.queue-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.queue-controls label { display: inline-flex; align-items: center; gap: 4px; padding-right: 3px; font-size: 11px; color: var(--soft); }
.queue-controls input, .track-select { accent-color: var(--accent); margin: 0; width: 14px; height: 14px; cursor: pointer; }
.queue-controls .subtle { min-height: 29px; padding: 3px 8px; font-size: 11px; }
.track-list { display: grid; gap: 4px; }
.track {
  --track-select-width: 16px;
  --track-cover-size: 48px;
  display: grid;
  grid-template: "select cover info actions" / var(--track-select-width) var(--track-cover-size) minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  min-height: 67px;
  border-bottom: 1px solid #28272e;
  border-radius: 8px;
  position: relative;
}
.track > .track-select { grid-area: select; }
.track > .cover { grid-area: cover; width: var(--track-cover-size); height: var(--track-cover-size); }
.track > .track-info { grid-area: info; align-self: start; }
.track-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.track:hover, .track.current { background: #211f26; }
.cover { display: grid; place-items: center; position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; isolation: isolate; color: #fff; border: 0; background: #303039; }
.cover.art { background: var(--art-bg); }
.cover.art::before { content: ""; position: absolute; inset: -15px; z-index: -1; transform: rotate(-20deg); opacity: .72; background: repeating-linear-gradient(0deg, transparent 0 4px,#f6efff45 5px,transparent 7px); mask-image: radial-gradient(ellipse,#000 0%,transparent 66%); }
.cover.art::after { content: ""; position: absolute; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #ffd8c599; box-shadow: 0 0 15px #fff3 inset, 0 0 15px #fec1a884; z-index: -1; }
.cover.has-cover::before, .cover.has-cover::after { display: none; }
.cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; }
.has-cover .cover-image { opacity: 1; }
.track .cover.has-cover svg { filter: drop-shadow(0 1px 3px #000); }
.cover.has-cover .cover-image {
  animation: cover-loop 1.8s ease-in-out infinite paused;
}
.cover.has-cover.cover-playing .cover-image { animation-play-state: running; }
@keyframes cover-loop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) { .cover.has-cover .cover-image { animation: none; } }
.cover.art svg { opacity: 0; }
.track:hover .cover.art svg, .track.current .cover.art svg, .cover.art:focus-visible svg { opacity: 1; }
.track-info { overflow: hidden; }
.track-info strong { display: block; font-size: 13px; line-height: 16px; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info small, .track-duration { color: var(--muted); font-size: 11px; line-height: 14px; }
.track-info small { display: block; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.track-info .track-description {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  margin-top: 2px; white-space: normal; overflow-wrap: anywhere; color: var(--soft);
}
.track-details { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 7px; margin-top: 3px; }
.track-details small { margin-top: 0; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 0; border-radius: 7px; color: var(--soft); }
.icon-button:hover { color: #fff; background: #34313a; }
.rating { display: flex; gap: 1px; white-space: nowrap; }
.rating button { width: 17px; height: 17px; padding: 1px 0; display: grid; place-items: center; color: #827b88; border: 0; background: transparent; }
.rating svg { width: 13px; height: 13px; }
.rating button.on, .rating button:hover { color: #ffba84; }
.rating button.on svg { fill: #ffba84; }
.track-duration { text-align: right; font-variant-numeric: tabular-nums; }
.actions { position: fixed; z-index: 10; background: #29272f; border: 1px solid #423c47; box-shadow: 0 12px 36px #0009; min-width: 180px; border-radius: 10px; padding: 4px; }
.actions button, .actions a { border: 0; display: block; width: 100%; text-align: left; padding: 8px 10px; font-size: 12px; color: #f0eaf0; border-radius: 6px; background: transparent; }
.actions button:hover, .actions a:hover { background: #3a3540; }
.job-clock > * { grid-area: 1 / 1; }
.job-clock-text { display: grid; justify-items: center; gap: 1px; line-height: 1.05; }
.job-percent { font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.job-percent + .job-elapsed { color: var(--soft); font-size: 9px; }
.job-progress-ring {
  width: 40px; height: 40px; border-radius: 50%;
  background: conic-gradient(#ffd3b9, #f38aa7 var(--job-progress), #665060 var(--job-progress));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 1.4s linear infinite;
}
.job-elapsed { font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-queued-dot { width: 8px; height: 8px; border: 1px solid var(--muted); border-radius: 50%; }
.status-chip { font-size: 11px; color: #ffc1a1; border: 1px solid #503a3c; border-radius: 999px; padding: 4px 7px; }
.status-chip.failed { color: #fcaab6; }
.spinner { width: 40px; height: 40px; border: 2px solid #665060; border-top-color: #ffd3b9; border-right-color: #f38aa7; border-radius: 50%; animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .job-progress-ring { animation: none; } }
.empty { padding: 50px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.player { height: var(--player); position: fixed; bottom: 0; left: 0; right: 0; z-index: 11; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 490px) minmax(105px, 1fr); align-items: center; gap: 16px; padding: 0 22px; background: #1b1a20; border-top: 1px solid #332f38; }
.now-playing, .player-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.now-playing > div:last-child { min-width: 0; }
.now-playing strong, .now-playing small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing strong { font-size: 13px; }
.player-rating { display: block; color: #ffba84; font-size: 11px; letter-spacing: 1px; }
.play-controls button[aria-pressed="true"] { color: var(--accent); }
.repeat-mode { position: relative; }
.repeat-mode span { position: absolute; right: 1px; top: 1px; border-radius: 5px; background: #3c2831; color: var(--accent); font-size: 9px; padding: 0 2px; }
#play-queue-dialog { width: min(460px, 92vw); }
#trash-dialog { width: min(460px, 92vw); }
#trash-list { max-height: 48dvh; overflow: auto; }
.trash-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.trash-row + .trash-row { border-top: 1px solid #36313b; }
.trash-row span { min-width: 0; overflow-wrap: anywhere; }
.trash-row button { flex: none; }
#play-queue-summary { font-size: 12px; color: var(--soft); margin: 6px 0 9px; }
#play-queue-list { margin: 0; padding-left: 25px; max-height: 48dvh; overflow-y: auto; }
#play-queue-list li { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
#play-queue-list button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; text-align: left; padding: 7px; background: #27262e; font-size: 12px; }
#play-queue-list .queue-cover { width: 30px; height: 30px; flex: none; border-radius: 5px; }
#play-queue-list .queue-track-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#play-queue-list button small { flex: none; }
#play-queue-list button:hover { background: #38313c; }
#play-queue-list button[aria-current="true"], #play-queue-list button small { color: var(--accent); }
.now-playing small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.player-center { display: grid; gap: 5px; }
.play-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.play-button { display: grid; place-items: center; border: 0; background: #f5eaf1; color: #211622; border-radius: 50%; width: 35px; height: 35px; }
.play-button:hover { background: #ffb99c; }
.timeline { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.timeline input { flex: 1; min-width: 0; }
#playback-speed {
  width: 51px; min-height: 22px; flex: none; padding: 1px 3px; border: 1px solid transparent;
  border-radius: 5px; background: #26242b; color: var(--soft); cursor: pointer; font-size: 11px;
}
#playback-speed:hover { background: #34313a; color: #fff; }
#playback-speed:focus-visible { outline: 1px solid var(--focus-ring); }
input[type="range"] { accent-color: #fcaa92; cursor: pointer; }
.player-right { justify-content: flex-end; }
.player-right input { width: 74px; }
dialog { width: min(370px,calc(100vw - 25px)); border: 1px solid #504550; background: #241f28; color: inherit; border-radius: 16px; padding: 19px; box-shadow: 0 14px 60px #000a; }
dialog::backdrop { background: #0009; }
dialog h2 { font-size: 20px; margin: 0 0 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
#creation-settings-dialog { width: min(650px, 94vw); max-height: 87dvh; }
#creation-settings-dialog h2 { margin: 0; }
#creation-settings-song { margin: 4px 0; color: var(--soft); font-size: 12px; }
.creation-settings-content { max-height: 59dvh; overflow: auto; padding: 6px 3px 0 0; }
.creation-settings-list { display: grid; grid-template-columns: minmax(95px, .75fr) 1.25fr; gap: 6px 13px; margin: 7px 0 12px; font-size: 12px; }
.creation-settings-list dt { color: var(--soft); }
.creation-settings-list dd { margin: 0; overflow-wrap: anywhere; }
.creation-settings-text { border-top: 1px solid var(--edge); padding: 7px 0; font-size: 12px; }
.creation-settings-text summary { cursor: pointer; }
.creation-settings-text pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 0; color: var(--soft); }
.creation-settings-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.solid { background: #fba893; color: #251621; border-color: transparent; }
.toast { position: fixed; right: 21px; bottom: calc(var(--player) + 12px); z-index: 15; color: #fff4f0; background: #3b2d38; border: 1px solid #6b4e61; border-radius: 10px; padding: 11px 14px; max-width: min(410px, calc(100vw - 40px)); font-size: 13px; }
@media (max-width: 1130px) {
  .app { grid-template-columns: 150px minmax(0,1fr); }
  .workspace { --composer-default: 345px; }
  .library { padding-left: 16px; padding-right: 16px; }
  .track { gap: 6px; }
}
@media (max-width: 850px) {
  .app { grid-template-columns: 57px minmax(0,1fr); }
  .rail { padding: 14px 6px; }
  .brand { margin-left: 4px; }
  .brand-name, .nav-item > span, .nav-heading > span, .rail-footer { display: none; }
  .nav-item, .nav-heading { justify-content: center; margin-left: 0; }
  .workspace { --composer-default: 45%; }
  .track { --track-select-width: 14px; --track-cover-size: 41px; }
  .track-duration { display: none; }
  .track-actions > .icon-button { width: 26px; }
  .rating button { width: 17px; }
  .rating svg { width: 13px; }
}
@media (max-width: 620px) {
  :root { --player: 76px; }
  .app { display: block; padding-bottom: var(--player); }
  .rail { position: sticky; height: auto; z-index: 4; flex-direction: row; align-items: center; justify-content: space-between; padding: 7px 9px; overflow: visible; }
  .brand { margin: 0; }
  .brand-name { display: block; }
  .nav-section { display: flex; }
  .nav-heading { margin: 0; }
  .albums { display: flex; max-width: 25vw; overflow-x: auto; }
  .workspace { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--player) - 50px); }
  .workspace:not(.library-only) .library, .workspace .workspace-divider { display: none; }
  .composer-header { padding: 14px 14px 10px; }
  .composer-scroll { padding: 0 14px 12px; }
  .create-footer { padding-inline: 14px; }
  .library { padding: 14px 9px; }
  .library-header, .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: 100%; }
  .track { --track-cover-size: 32px; gap: 3px; }
  .track-actions > .icon-button { width: 25px; }
  .job-clock :is(.spinner, .job-progress-ring) { width: 28px; height: 28px; }
  .job-clock .job-percent, .job-clock .job-elapsed { font-size: 9px; }
  .player { padding: 0 9px; gap: 8px; grid-template-columns: minmax(75px,1fr) minmax(145px,1.2fr) 48px; }
  .player-right { gap: 0; }
  .player-right > :is(svg, #volume, #player-download) { display: none; }
  .player-right .icon-button { width: 24px; }
  .player-right .icon-button svg { width: 15px; }
  .play-controls { gap: 1px; }
  .play-controls .icon-button { width: 24px; }
  .play-controls svg { width: 15px; }
  .now-playing .cover { width: 35px; height: 35px; }
}

.lyrics-panel {
  min-width: 0; height: calc(100dvh - var(--player)); min-height: 0;
  display: flex; flex-direction: column; padding: 12px 16px 0;
  border-left: 1px solid var(--edge);
  background: radial-gradient(ellipse at 62% 0%, #28202b, #17171b 46%);
}
.lyrics-panel-header, .lyrics-toolbar { display: flex; align-items: center; gap: 6px; }
.lyrics-panel-header { justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; }
.lyrics-panel-header .icon-button { width: 28px; height: 28px; }
.lyrics-panel-header svg, .lyrics-toolbar svg { width: 16px; height: 16px; }
.lyrics-song { padding-bottom: 10px; }
.lyrics-song .cover { width: min(132px, 40vw); height: auto; aspect-ratio: 1; margin: 2px auto 13px; border-radius: 13px; }
.lyrics-song h2 { margin: 0 0 4px; font-size: 17px; font-weight: 720; overflow-wrap: anywhere; }
.lyrics-song p {
  margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5;
}
.lyrics-toolbar { padding: 7px 0; border-top: 1px solid var(--edge); }
.lyrics-toolbar h3 { flex: 1; margin: 0; font-size: 13px; }
.lyrics-toolbar .icon-button { width: 28px; height: 28px; }
#open-lyrics[aria-expanded="true"], #lyrics-follow[aria-pressed="true"]:enabled { color: var(--accent); }
.lyrics-notice { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.lyrics-notice:not(:has(#lyrics-status:not(:empty), button:not([hidden]))) { display: none; }
.lyrics-notice > span { padding-bottom: 5px; }
.lyrics-lines {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 0 18px;
  mask-image: linear-gradient(to bottom, #0004, #000 14px, #000 calc(100% - 18px), #0004);
}
@media (prefers-contrast: more) { .lyrics-lines { mask-image: none; } }
.lyric-line {
  display: block; width: 100%; border: 0; background: transparent;
  margin: 0; padding: 8px 3px; text-align: left; overflow-wrap: anywhere;
  color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.5;
}
button.lyric-line:hover { color: #fff; }
.lyric-line[aria-current="true"] { color: #fff7f3; font-weight: 700; }
.lyric-line.untimed { color: var(--soft); }
@media (min-width: 940px) {
  .app:has(.lyrics-panel:not([hidden])) { grid-template-columns: 150px minmax(0, 1fr) clamp(276px, 23vw, 350px); }
}
@media (min-width: 1131px) {
  .app:has(.lyrics-panel:not([hidden])) { grid-template-columns: 192px minmax(0, 1fr) clamp(276px, 23vw, 350px); }
}
@media (max-width: 939px) {
  .lyrics-panel { position: fixed; right: 0; bottom: var(--player); z-index: 10; width: min(380px, 100vw); box-shadow: -14px 0 38px #0008; }
}
@media (max-width: 620px) {
  .lyrics-panel { width: 100%; height: min(75dvh, calc(100dvh - var(--player))); border: 1px solid var(--edge); border-radius: 14px 14px 0 0; }
  .lyrics-song .cover { width: min(96px, 26vw); }
  .lyrics-panel .lyric-line { font-size: 16px; }
}
