:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #111210; color: #f3f3e9; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(860px, 100%); margin: 0 auto; padding: clamp(32px, 8vw, 96px) 24px; }
.eyebrow { color: #a6a89b; font-size: .72rem; letter-spacing: .18em; }
h1 { font-size: clamp(5rem, 16vw, 9rem); letter-spacing: -.08em; line-height: 1; margin: 42px 0 20px; }
h1 span { color: #d0ef76; }
.lead { font-size: clamp(1.35rem, 3vw, 1.8rem); color: #c4c6ba; }
section { margin-top: 64px; padding: 30px; border: 1px solid #34372d; border-radius: 16px; background: #1a1d16; }
.status { color: #d0ef76; font-size: .82rem; }
h2 { font-size: 1.3rem; margin-top: 18px; }
section p { line-height: 1.7; color: #bec2b2; max-width: 60ch; }
footer { margin-top: 48px; color: #969b8a; font-size: .8rem; }
a { color: inherit; }
.auth-layout { max-width: 580px; padding-top: 48px; }
.auth-layout h1 { margin-top: 28px; font-size: 6rem; }
.auth-layout section { margin-top: 32px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { color: #d7dacd; font-size: .88rem; margin-top: 8px; }
.auth-form input { font: inherit; min-width: 0; width: 100%; border: 1px solid #515746; background: #111510; color: #f3f3e9; border-radius: 8px; padding: 13px 14px; }
.auth-form input:focus { outline: 2px solid #d0ef76; outline-offset: 2px; }
button { cursor: pointer; font: inherit; font-weight: 650; border: 0; border-radius: 8px; padding: 13px 18px; color: #17200c; background: #d0ef76; }
.auth-form button { margin-top: 12px; display: flex; justify-content: space-between; }
button:focus-visible, a:focus-visible { outline: 2px solid #f3f3e9; outline-offset: 4px; }
.form-errors { color: #ffb7aa; font-size: .9rem; line-height: 1.6; }
.help { font-size: .82rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 64px; gap: 16px; }
.wordmark { text-decoration: none; font-size: 2.2rem; font-weight: 750; letter-spacing: -.08em; }
.wordmark span, .page-heading span { color: #d0ef76; }
.quiet { color: #c4c6ba; background: #25291f; font-size: .85rem; }
h1.page-heading { font-size: clamp(2.3rem, 7vw, 4rem); letter-spacing: -.045em; margin-top: 22px; }
.workspace-card { margin-top: 28px; }
@media (max-width: 420px) { .auth-layout section { padding: 24px; } .topbar { margin-bottom: 40px; } }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 18px; border-radius: 8px; background: #d0ef76; color: #17200c; font-weight: 700; text-decoration: none; }
.workspace-card .button-link { margin-top: 8px; }
.catalog-layout { width: min(1060px, 100%); padding-top: 40px; }
.catalog-layout .topbar { margin-bottom: 42px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: #adb2a1; font-size: .86rem; margin-bottom: 48px; }
.breadcrumbs span { color: #6c7460; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.catalog-heading h1 { margin-bottom: 8px; }
.catalog-heading .lead { margin-bottom: 0; font-size: 1.1rem; }
.catalog-section { margin-top: 42px; padding: 0 28px; }
.section-title { display: flex; justify-content: space-between; align-items: center; color: #adb2a1; border-bottom: 1px solid #34372d; }
.section-title h2 { font-size: .82rem; font-weight: 600; margin: 21px 0; text-transform: uppercase; letter-spacing: .08em; }
.song-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; border-bottom: 1px solid #34372d; }
.song-row:last-child { border: 0; }
.song-row h3 { font-size: 1.12rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.song-row p { font-size: .85rem; margin: 0; line-height: 1.4; }
.catalog-tree, .catalog-tree ul { list-style: none; margin: 0; padding: 0; }
.catalog-tree { padding: 10px 0 18px; }
.catalog-tree ul { margin: 0 0 0 18px; padding: 0 0 0 18px; border-left: 1px solid #34372d; }
.catalog-tree-leaf { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #292c24; }
.catalog-tree-leaf[draggable="true"] { cursor: grab; }
.catalog-tree-leaf.is-dragging { opacity: .42; }
.catalog-tree-folder.is-dragging { opacity: .42; }
.catalog-tree.is-drop-target, .catalog-tree-folder.is-drop-target { outline: 2px dashed #d0ef76; outline-offset: 3px; background: #20251b; }
.catalog-tree-status { min-height: 1.4em; margin: 10px 0 0; color: #adb2a1; font-size: .85rem; }
.catalog-tree-mode-form { display: flex; justify-content: flex-end; margin: 8px 0; }
.catalog-tree-mode-form label { display: inline-flex; align-items: center; gap: 8px; color: #c4c6ba; font-size: .85rem; cursor: pointer; }
.catalog-tree-mode-form input { accent-color: #d0ef76; width: 17px; height: 17px; }
.catalog-tree-song-files { flex: 1; min-width: 0; }
.catalog-tree-song-file-heading { display: flex; justify-content: flex-start; align-items: center; gap: 10px; padding: 3px 0; font-weight: 600; }
.catalog-tree-song-heading { display: flex; align-items: center; gap: 10px; }
.catalog-tree-disclosure { flex: 0 0 12px; color: #d0ef76; }
.catalog-tree-song-zip { flex: 1; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.catalog-tree-song-zip:hover { color: #d0ef76; }
.catalog-tree-song-file-heading > span:last-child { margin-left: 4px; color: #929889; font-size: .78rem; font-weight: 400; }
.catalog-tree-file-list { margin: 8px 0 0 16px !important; padding-left: 14px !important; }
.catalog-tree-file { display: grid; grid-template-columns: minmax(100px, .4fr) minmax(0, 1.8fr) minmax(110px, .5fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #292c24; font-size: .86rem; }
.catalog-tree-file-kind, .catalog-tree-file-meta { color: #929889; font-size: .75rem; }
.catalog-tree-file a { overflow-wrap: anywhere; }
.catalog-tree-file-meta { text-align: right; }
.catalog-tree-song { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.catalog-tree-song-heading .catalog-tree-song { min-width: 0; }
.catalog-tree-song:hover { color: #d0ef76; }
.catalog-tree-leaf-main { min-width: 0; }
.catalog-tree-meta { margin: 5px 0 0; color: #929889; font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-tree-tag { color: inherit; text-decoration: none; }
.catalog-tree-tag:hover, .catalog-tree-tag.is-active { color: #d0ef76; }
.catalog-tree-filter-status { margin: 14px 0; color: #adb2a1; font-size: .88rem; }
.catalog-tree-filter-status a { color: #d0ef76; }
.catalog-tree-empty { padding: 12px 0; color: #858a7d; font-size: .85rem; }
.catalog-tree-create { margin: 14px 0 8px; color: #d0ef76; font-size: .9rem; }
.catalog-tree-create > summary, .catalog-tree-folder-tools > details > summary { width: fit-content; cursor: pointer; }
.catalog-tree-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.catalog-tree-inline-form label { color: #a6a89b; font-size: .82rem; }
.catalog-tree-inline-form input { min-width: 140px; max-width: min(100%, 280px); padding: 8px 10px; border: 1px solid #515746; border-radius: 7px; background: #111510; color: #f3f3e9; font: inherit; }
.catalog-tree-inline-form button { padding: 8px 12px; font-size: .82rem; }
.catalog-tree-folder-tools { margin: 8px 0 0 20px; color: #a6a89b; font-size: .8rem; }
.catalog-tree-folder-forms { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 0 8px; }
.catalog-tree-root-heading { display: flex; align-items: center; gap: 8px; margin: 13px 0 2px; padding-bottom: 8px; border-bottom: 1px solid #34372d; color: #e7e8df; }
.catalog-tree-shell { padding: 4px; border-radius: 8px; }
.catalog-tree-root-heading strong { margin-right: 2px; font-size: 1.02rem; }
.catalog-tree-folder-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; padding: 8px 0; border-bottom: 1px solid #34372d; }
.catalog-tree-folder-name { max-width: 100%; padding: 0; border: 0; background: transparent; color: #e7e8df; font: inherit; font-weight: 650; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.catalog-tree-folder-name:hover, .catalog-tree-folder-name:focus-visible { color: #d0ef76; }
.catalog-tree-folder-name[hidden] { display: none; }
.catalog-tree-folder > .catalog-tree-children { width: auto; }
.catalog-tree-folder > .catalog-tree-inline-form { margin: 6px 0 8px; }
.catalog-tree-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.catalog-icon-form { display: contents; }
.catalog-icon-button { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid #3c4234; border-radius: 8px; background: #22271f; color: #d0ef76; font: inherit; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer; }
.catalog-icon-button:hover, .catalog-icon-button:focus-visible { border-color: #d0ef76; background: #2b3224; color: #e2f6a3; }
.catalog-icon-button.is-danger { color: #cf9e91; }
.catalog-icon-button.is-danger:hover, .catalog-icon-button.is-danger:focus-visible { border-color: #cf9e91; background: #33231f; color: #f0b4a4; }
.catalog-tree-inline-form[hidden] { display: none; }
.catalog-tree-inline-form { width: fit-content; max-width: 100%; padding: 7px 0; }
.catalog-tree-rename { margin-left: 0; }
.catalog-tree-leaf { gap: 12px; }
.catalog-tree-leaf-main, .catalog-tree-song-files { flex: 1 1 auto; }
.catalog-trash-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.catalog-trash-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid #34372d; border-radius: 10px; background: #171a15; }
.catalog-trash-entry h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.catalog-trash-entry p { margin: 4px 0 0; color: #929889; font-size: .82rem; }
.catalog-trash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-trash-purge { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.catalog-trash-purge input { width: 180px; max-width: 100%; padding: 7px 9px; border: 1px solid #515746; border-radius: 7px; background: #111510; color: #f3f3e9; font: inherit; font-size: .82rem; }
.catalog-trash-purge button { padding: 7px 10px; font-size: .8rem; }
.catalog-trash-actions details > summary { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid #515746; border-radius: 7px; color: #cf9e91; cursor: pointer; list-style: none; }
.catalog-trash-actions details > summary::-webkit-details-marker { display: none; }
.catalog-trash-purge button { border-color: #765348; background: #35241f; color: #f0b4a4; }
.catalog-tree-inline-form .button-secondary, .catalog-trash-actions .button-secondary { border: 1px solid #515746; background: #22271f; color: #c4c6ba; }
.catalog-tree-inline-form button { padding: 8px 11px; font-size: .82rem; }
@media (max-width: 600px) { .catalog-icon-button { min-width: 32px; height: 32px; } .catalog-tree-leaf { gap: 8px; } .catalog-tree-actions { gap: 3px; } .catalog-trash-entry { align-items: flex-start; } }
.row-action { color: #d0ef76; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.empty-state { padding: 40px 0 48px; text-align: center; }
.empty-state p { margin: 0 auto 22px; }
.empty-symbol { color: #d0ef76; font-size: 2.5rem; }
.form-card { max-width: 650px; margin-top: 36px; }
.auth-form select { font: inherit; width: 100%; border: 1px solid #515746; background: #111510; color: #f3f3e9; border-radius: 8px; padding: 13px 14px; }
.form-actions { display: flex; align-items: center; gap: 24px; margin-top: 12px; }
.form-actions a { color: #c4c6ba; font-size: .9rem; }
@media (max-width: 600px) { .catalog-heading { align-items: start; flex-direction: column; } .catalog-section { padding: 0 18px; } .catalog-layout { padding: 28px 20px; } .breadcrumbs { margin-bottom: 36px; } }
@media (max-width: 600px) { .catalog-tree-file { grid-template-columns: 1fr; gap: 4px; } .catalog-tree-file-meta { text-align: left; } }
.organize-link { text-align: right; margin: 20px 0 -25px; font-size: .88rem; }
.organize-link a { color: #d0ef76; }
.row-actions { display: flex; align-items: center; gap: 18px; }
.text-button { background: transparent; padding: 0; color: #d5a99e; font-size: .88rem; font-weight: 500; }
.empty-copy { padding: 10px 0 24px; }
.auth-form input[type=checkbox] { width: auto; margin-right: 8px; }
.auth-form #id_tags label { display: flex; align-items: center; margin-top: 8px; }
.song-title { text-decoration: none; }
.song-title:hover { color: #d0ef76; }
.song-heading { overflow-wrap: anywhere; }
.detail-meta { color: #adb2a1; font-size: .85rem; margin: 28px 0 0; }
.item-card { padding: 24px 0; border-bottom: 1px solid #34372d; }
.item-card:last-child { border-bottom: 0; }
.chord-tool { margin-top: 36px; }
.chord-workbench { margin-top: 28px; }
.chord-workbench .chord-tool { margin-top: 0; }
.chord-workbench-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chord-workbench-actions .chord-audio-play { width: auto; padding: 0 14px; border-radius: 8px; font: inherit; }
.chord-sections { margin-top: 34px; }
.chord-section-create, .chord-section-edit, .chord-grip-form { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.chord-section-create, .chord-grip-form { margin: 12px 0; }
.chord-section-create label, .chord-grip-form label { display: grid; flex: 1 1 150px; gap: 5px; color: #a5aa9c; font-size: .85rem; }
.chord-section-create input, .chord-section-edit input, .chord-grip-form input { min-width: 0; padding: 8px 10px; border: 1px solid #515746; border-radius: 7px; background: #111510; color: #f3f3e9; font: inherit; }
.chord-grip-form select { min-width: 150px; max-width: 100%; padding: 8px 10px; border: 1px solid #515746; border-radius: 7px; background: #111510; color: #f3f3e9; font: inherit; }
.chord-section-card { margin-top: 14px; padding: 14px; border: 1px solid #33392f; border-radius: 10px; }
.chord-section-card > .item-heading { margin-bottom: 10px; }
.chord-section-edit input { width: min(100%, 240px); }
.chord-order-control { width: 34px; height: 34px; padding: 0; border: 1px solid #515746; border-radius: 7px; background: #20251b; color: #d0ef76; font: inherit; }
.chord-order-control:disabled { opacity: .35; cursor: default; }
.chord-audio-host { position: fixed; top: 0; left: -10000px; width: 640px; height: 480px; overflow: hidden; opacity: 0; pointer-events: none; }
.chord-audio-play { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #d0ef76; color: #111510; font-size: 1rem; }
.chord-section-transport { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chord-section-transport .chord-audio-play { width: auto; padding: 0 12px; border-radius: 8px; font: inherit; }
.chord-audio-play:disabled { opacity: .4; }
.chord-grip-form { padding: 10px 0; border-top: 1px solid #33392f; }
.chord-grip-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; gap: 14px; }
.chord-grip-entry { display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #33392f; border-radius: 10px; background: #151711; }
.chord-grip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; font-size: 1.1rem; font-weight: 650; }
.chord-grip-heading-actions { display: flex; align-items: center; gap: 8px; }
.chord-grip-heading-actions .chord-action-button { box-sizing: border-box; display: inline-grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #515746; border-radius: 10px; background: #25291f; color: #d0ef76; font: inherit; font-size: 1.1rem; line-height: 1; }
.chord-grip-heading-actions .chord-action-button:hover { border-color: #d0ef76; }
.chord-grip-heading-actions .chord-action-button:disabled { opacity: .4; }
.chord-grip-edit-toggle { width: 38px; height: 38px; padding: 0; border: 1px solid #515746; border-radius: 8px; background: #25291f; color: #d0ef76; font-size: 1.15rem; }
.chord-grip-display { width: 100%; max-width: 100%; }
.chord-grip-diagram { width: 100%; max-width: 100%; overflow-x: auto; }
.chord-saved-grip { min-width: 0; }
.chord-grip-entry .chord-saved-grip { display: block; margin: 0; padding: 0; border: 0; }
.chord-grip-order-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chord-edit-details { flex: 1 1 100%; min-width: 0; }
.chord-edit-details summary { cursor: pointer; color: #d0ef76; }
.chord-edit-details label { margin: 10px 0; max-width: 300px; }
.chord-edit-details button { margin: 0 6px 4px 0; }
.chord-tool > .chord-audio-play { width: auto; padding: 0 12px; border-radius: 8px; font: inherit; }
.fretboard-svg { display: block; width: 100%; min-width: 760px; height: auto; overflow: visible; }
.fretboard-wood { fill: #0c0d0a; stroke: #4b4e40; stroke-width: 1; }
.fretboard-fret { stroke: #777966; stroke-width: 1.5; }
.fretboard-string { stroke: #777966; }
.fretboard-nut { stroke: #a2a48f; stroke-width: 4; }
.fretboard-position-dot { fill: #594116; opacity: .72; }
.fretboard-fret-number, .fretboard-string-name { fill: #999b82; font: 14px sans-serif; }
.fretboard-position-label { fill: #999b82; font: 12px sans-serif; }
.fretboard-open-ring { fill: #10110e; stroke: #f09122; stroke-width: 3; }
.fretboard-open-name, .fretboard-mark { fill: #f3f0dc; font: 14px sans-serif; }
.fretboard-note-label { font: 14px sans-serif; pointer-events: none; }
.fretboard-degree-label { fill: #d0ef76; font: 14px sans-serif; }
.fretboard-degree-root { fill: #b8d72e; }
.fretboard-degree-tone { fill: #f09122; }
.fretboard-clickable { cursor: pointer; }
.fretboard-clickable:focus-visible { stroke: #fff; stroke-width: 4; outline: none; }
.fretboard-edit-hit { fill: transparent; cursor: pointer; }
.fretboard-edit-control:focus .fretboard-edit-hit { stroke: #fff; stroke-width: 2; outline: none; }
.chord-diagram { display: block; width: 100%; min-width: 0; height: auto; overflow: visible; }
.chord-diagram .fretboard-note-label { font-size: 11px; }
.chord-board-svg { min-width: 760px; }
.chord-diagram-line { stroke: #a5aa9c; }
.chord-diagram-dot { fill: #d0ef76; stroke: #111510; stroke-width: 1; }
.chord-diagram-mark, .chord-diagram-position { fill: #d0ef76; font: 14px sans-serif; }
.chord-diagram-position { font-size: 10px; }
.chord-diagram-note { fill: #111510; font: bold 10px sans-serif; }
.chord-diagram-degree { fill: #d0ef76; font: 10px sans-serif; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chord-board-viewport { width: 100%; max-width: 100%; overflow-x: auto; padding: 8px 0; }
.chord-board-start { display: inline-flex; align-items: center; gap: 8px; color: #c4c6ba; font-size: .9rem; }
.chord-board-start select { width: auto; min-width: 60px; padding: 6px; border: 1px solid #515746; border-radius: 6px; background: #111510; color: #f3f3e9; font: inherit; }
.chord-name-choice { display: inline-block; margin: 3px 4px 3px 0; padding: 4px 8px; border: 1px solid #515746; border-radius: 5px; background: #20251b; color: #e3e8d3; font: inherit; }
.chord-name-choice[aria-pressed="true"] { border-color: #d0ef76; color: #d0ef76; }
.chord-name-superscript { font-size: .7em; line-height: 0; vertical-align: super; }
span.chord-name-choice { border: 0; padding: 0; background: none; }
.scale-tool { margin-top: 36px; }
.scale-controls { display: flex; flex-wrap: wrap; gap: 16px; }
.scale-controls label { display: grid; gap: 7px; color: #c4c6ba; font-size: .85rem; }
.scale-controls select { min-width: 150px; max-width: 100%; padding: 10px; border: 1px solid #515746; border-radius: 8px; background: #111510; color: #f3f3e9; font: inherit; }
.scale-intervals { margin: 20px 0 0; padding: 12px; border: 1px solid #515746; border-radius: 8px; }
.scale-intervals[hidden] { display: none; }
.scale-intervals > div { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.scale-intervals label { white-space: nowrap; }
.scale-intervals input { accent-color: #d0ef76; }
.scale-intervals p { margin: 12px 0 0; }
.scale-notes { overflow-wrap: anywhere; }
.scale-attach-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #33392f; }
.scale-attach-form label { display: grid; flex: 1 1 220px; gap: 5px; color: #a5aa9c; font-size: .85rem; }
.scale-attach-form input { min-width: 0; padding: 9px 11px; border: 1px solid #515746; border-radius: 7px; background: #111510; color: #f3f3e9; font: inherit; }
.scale-attach-form select { min-width: 100px; padding: 9px 11px; border: 1px solid #515746; border-radius: 7px; background: #111510; color: #f3f3e9; font: inherit; }
.scale-attach-form .help { flex-basis: 100%; margin: 0; }
.attached-scale { margin-top: 12px; }
.scale-board-viewport { max-width: 100%; overflow-x: auto; padding: 18px 10px; border-radius: 8px; background: #11120f; }
.scale-fret-labels { position: relative; width: 1560px; height: 18px; color: #333; font-size: 11px; }
.scale-fret-labels span { position: absolute; transform: translateX(-50%); }
.scale-board-viewport svg { display: block; }
.scale-fretboard { max-width: 100%; overflow-x: auto; padding: 12px 8px; border: 1px solid #34372d; border-radius: 10px; background: #0b0c0a; }
.scale-neck { display: block; width: 100%; min-width: 760px; height: auto; overflow: visible; }
.scale-neck-wood { fill: #0c0d0a; stroke: #4b4e40; stroke-width: 1; }
.scale-string, .scale-fret { stroke: #777966; stroke-width: 1.5; }
.scale-nut { stroke: #a2a48f; stroke-width: 4; }
.scale-position-dot { fill: #594116; opacity: .72; }
.scale-fret-number { fill: #999b82; font: 14px sans-serif; }
.scale-open-ring { fill: #10110e; stroke: #f09122; stroke-width: 3; }
.scale-open-name { fill: #f3f0dc; font: 15px sans-serif; }
.scale-note { fill: #332719; stroke: #ed8d1e; stroke-width: 3; }
.scale-note-root { fill: #34351f; stroke: #b8d72e; stroke-width: 3; stroke-dasharray: none; }
.scale-note-unselected { fill: #11120f; stroke: #66695b; stroke-width: 1.25; }
.scale-note-selected { stroke: #ed8d1e; stroke-width: 4; stroke-dasharray: none; }
.scale-note-root.scale-note-selected { stroke: #b8d72e; stroke-width: 3; stroke-dasharray: none; }
.scale-note-extra { stroke: #ed8d1e; stroke-width: 3; stroke-dasharray: 3 2; }
.scale-note-label { fill: #f7f3e4; font: 14px sans-serif; pointer-events: none; }
.scale-note-label-root { fill: #b8d72e; font-weight: 700; }
.scale-note-label-tone { fill: #f09122; font-weight: 650; }
.scale-note-label-unselected { fill: #d0d1c7; }
.scale-note-clickable { cursor: pointer; }
.scale-note-clickable:focus { stroke: #ed8d1e; stroke-width: 4; outline: none; }
.scale-note-root.scale-note-clickable:focus { stroke: #b8d72e; stroke-width: 3; }
.scale-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.scale-library-item { display: flex; min-width: 0; align-items: stretch; gap: 6px; padding: 8px; border: 1px solid #34372d; border-radius: 8px; background: #151712; }
.scale-library-select { display: grid; flex: 1; min-width: 0; gap: 4px; text-align: left; border: 0; background: transparent; color: #e6e6dc; cursor: pointer; }
.scale-library-select small { color: #a5aa9c; overflow-wrap: anywhere; }
.scale-library-actions { display: grid; justify-items: center; align-content: start; gap: 6px; }
.scale-star { min-width: 36px; color: #d0ef76; }
.scale-edit-details summary { cursor: pointer; padding: 6px; border: 1px solid #4a4f3d; border-radius: 6px; list-style: none; color: #d0ef76; }
.scale-edit-details summary::-webkit-details-marker { display: none; }
.scale-definition-form { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin: 12px 0; }
.scale-definition-form[hidden] { display: none; }
.scale-definition-form label { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 8px; color: #c4c6ba; white-space: nowrap; }
.scale-definition-form input, .scale-definition-form select, .scale-controls select { max-width: 100%; padding: 10px; border: 1px solid #515746; border-radius: 8px; background: #111510; color: #f3f3e9; font: inherit; }
.scale-editor-status { color: #a5aa9c; }
.scale-controls { margin: 16px 0; }
.scale-controls label { display: grid; gap: 7px; color: #c4c6ba; font-size: .85rem; }
.scale-workbench { margin-top: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.scale-workbench > .scale-identifier { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.scale-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.scale-toolbar select { min-width: 140px; max-width: 100%; padding: 9px 10px; border: 1px solid #515746; border-radius: 8px; background: #111510; color: #f3f3e9; font: inherit; }
.scale-tonic-control { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; color: #c4c6ba; font-size: .95rem; font-weight: 650; white-space: nowrap; }
.scale-tonic-control select { width: 74px; min-width: 74px; padding: 9px 22px 9px 9px; }
.scale-toolbar .scale-notes { flex: 1 1 240px; min-width: 0; margin: 0; color: #c4c6ba; }
.scale-toolbar [data-create-scale-toggle] { flex: 0 0 auto; }
.scale-audio-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.scale-audio-controls button { padding: 9px 13px; }
.scale-audio-controls button:disabled { cursor: default; opacity: .55; }
.scale-audio-status { align-self: center; color: #c4c6ba; font-size: 13px; }
.scale-definition-form label input { width: 280px; max-width: 35vw; }
.scale-definition-form button { flex: 0 0 auto; padding: 10px 14px; white-space: nowrap; }
.scale-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; color: #c4c6ba; }
.scale-feedback[hidden] { display: none; }
@media (max-width: 700px) {
  .scale-definition-form { flex-wrap: wrap; }
  .scale-definition-form label { flex: 1 1 100%; min-width: 0; white-space: normal; }
  .scale-definition-form label input { flex: 1 1 120px; width: auto; max-width: 100%; min-width: 0; }
  .scale-definition-form button { flex: 1 1 auto; }
}
.scale-identifier-results { display: grid; gap: 7px; margin: 12px 0; }
.scale-result-group { min-width: 0; margin: 0; padding: 10px; border: 1px solid #34372d; border-radius: 9px; background: #151712; }
.scale-result-group[hidden] { display: none; }
.scale-result-group h3 { margin: 0 0 10px; color: #c4c6ba; font-size: .95rem; }
.scale-result-group summary { color: #d0ef76; cursor: pointer; }
[data-result-list] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.scale-match-row { position: relative; min-width: 0; }
.scale-match-row .scale-match { display: flex; width: 100%; min-width: 0; align-items: center; gap: 4px; padding-right: 48px; overflow: hidden; text-align: left; white-space: nowrap; }
.scale-match-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scale-match-name-compact { font-size: .88em; }
.scale-match-name-diminished { font-size: .76em; }
.scale-match-ratio { flex: none; }
.scale-match[aria-pressed="true"] { border-color: #d0ef76; background: #20251a; }
.scale-match-star { position: absolute; top: 50%; right: 7px; display: grid; width: 34px; height: 34px; margin: 0; padding: 0; place-items: center; box-sizing: border-box; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: #d0ef76; font-size: 0; line-height: 0; cursor: pointer; }
.scale-match-star svg { display: block; width: 20px; height: 20px; }
.scale-match-star:disabled { cursor: default; opacity: 1; }
.scale-match-star:not(:disabled):hover, .scale-match-star:not(:disabled):focus-visible { background: #272a20; }
.scale-match { padding: 9px 12px; border: 1px solid #535844; border-radius: 8px; background: #1a1c17; color: #e5e8d7; cursor: pointer; }
.scale-match:hover, .scale-match:focus-visible { border-color: #d0ef76; }
.scale-match-readonly, .scale-match-readonly:hover { border-color: #535844; cursor: default; }
.scale-duplicate-confirm, .scale-duplicate-cancel { margin: 4px 6px 4px 0; padding: 5px 9px; border: 1px solid #515746; border-radius: 6px; background: #20231b; color: #d0ef76; font: inherit; cursor: pointer; }
.scale-duplicate-cancel { color: #c4c6ba; }
.chord-diagram-root { fill: #34351f; stroke: #b8d72e; stroke-width: 2.5; }
.chord-diagram-wood { fill: #0c0d0a; stroke: #4b4e40; stroke-width: 1; }
.chord-diagram-tone { fill: #332719; stroke: #ed8d1e; stroke-width: 2.5; }
.chord-diagram-note-root, .chord-diagram-degree-root { fill: #d0ef76; }
.chord-diagram-note-tone, .chord-diagram-degree-tone { fill: #f09122; }
.chord-diagram-position-dot { fill: #594116; }
.item-heading, .item-footer { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.song-edit-history { display: grid; gap: 8px; margin: 10px 0 20px; }
.song-edit-history-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.song-edit-history-heading h2 { margin: 0; font-size: .9rem; }
.song-edit-history-list { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding-left: 18px; color: #a5aa9c; font-size: .82rem; }
.item-heading h3 { font-size: 1.1rem; margin: 7px 0 0; overflow-wrap: anywhere; }
.item-content { color: #e1e3d9; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; margin: 20px 0; }
.item-footer { color: #9da493; font-size: .8rem; align-items: center; }
.move-button { font-size: 1rem; padding: 6px 12px; }
.move-button:disabled { opacity: .35; cursor: default; }
.auth-form textarea { font: inherit; width: 100%; min-width: 0; resize: vertical; border: 1px solid #515746; background: #111510; color: #f3f3e9; border-radius: 8px; padding: 13px 14px; }
.asset-player { display: block; width: 100%; margin-top: 16px; }
video.asset-player { max-height: 70vh; background: #111; }
.youtube-player { width: min(100%, 52rem); aspect-ratio: 16 / 9; margin-top: 16px; background: #111; border-radius: 8px; overflow: hidden; }
.youtube-player .youtube-load { width: 100%; height: 100%; display: grid; place-items: center; border: 0; background: #18181b; color: #fafafa; cursor: pointer; }
.youtube-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.catalog-heading-actions, .upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upload-section { max-width: 720px; }
.upload-section .auth-form > p { margin: 0; }
.upload-actions { margin-top: 12px; }
.upload-actions [hidden], .auth-form [hidden] { display: none; }
.upload-actions .text-button { padding: 12px; }
.upload-progress { width: 100%; margin-top: 22px; accent-color: #d0ef76; }
.upload-status { min-height: 1.6em; }
.upload-status.is-error { color: #ffb7aa; }
/* Interaktywny zapis alphaTab: osobny scroll dla nut i lista ścieżek. */
.tablature-preview { min-width: 0; }
.tablature-player[hidden] { display: none; }
.tablature-player { display: grid; grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); min-height: 480px; height: min(76vh, 860px); margin-top: 14px; overflow: hidden; border: 1px solid #d7deea; border-radius: 12px; background: #fff; color: #172033; }
.tablature-tracks { min-width: 0; overflow: auto; padding: 14px 10px; border-right: 1px solid #d7deea; background: #f1f4f9; }
.tablature-tracks h4 { margin: 2px 6px 12px; color: #475875; font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.tablature-track-list { display: grid; gap: 6px; }
.tablature-track { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 5px; padding: 7px; border: 1px solid transparent; border-radius: 9px; background: #e6ebf3; }
.tablature-track-visible { display: flex; min-width: 0; align-items: center; gap: 8px; color: #172033; cursor: pointer; }
.tablature-track-visible input { flex: none; accent-color: #4c71be; }
.tablature-track-visible span { overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.tablature-track-toggle { width: 32px; height: 30px; padding: 0; border: 1px solid #d4dceb; border-radius: 8px; background: #eef2f8; color: #40516f; font-size: .76rem; font-weight: 650; }
.tablature-track-toggle[aria-pressed="true"] { border-color: #7595d0; background: #d8e4f7; color: #203f7c; }
.tablature-player-main { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.tablature-score-viewport { min-width: 0; min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; background: #fff; }
.tablature-score { width: 100%; min-height: 100%; padding: 16px; color: #111; }
.tablature-score .at-cursor-bar { background: rgb(76 113 190 / 16%); }
.tablature-score .at-cursor-beat { width: 3px; background: rgb(220 53 69 / 85%); }
.tablature-score .at-highlight * { fill: #c0392b; stroke: #c0392b; }
.tablature-playbar { display: flex; min-height: 62px; flex-wrap: wrap; align-items: center; gap: 10px 13px; padding: 9px 14px; border-top: 1px solid #d7deea; background: #f4f6fa; color: #33415d; font-size: .8rem; }
.tablature-playbar button { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #4c71be; color: white; font-size: 1rem; }
.tablature-playbar button:disabled { opacity: .45; cursor: progress; }
.tablature-playbar .tablature-stop { width: 30px; height: 30px; border-radius: 8px; background: transparent; color: #53617a; }
.tablature-playbar input[type="range"] { min-width: 60px; accent-color: #4c71be; }
.tablature-playbar [data-tab-position] { flex: 1 1 140px; }
.tablature-tempo { display: grid; gap: 4px; white-space: nowrap; }
.tablature-tempo-input { display: flex; align-items: center; gap: 6px; }
.tablature-tempo input { width: 76px; padding: 5px 7px; border: 1px solid #d7deea; border-radius: 6px; background: white; color: #172033; font: inherit; }
.tablature-playbar .tablature-tempo-reset { width: auto; height: 32px; padding: 5px 8px; border: 1px solid #d7deea; border-radius: 6px; background: white; color: #40516f; font: inherit; }
.tablature-tempo input:disabled, .tablature-tempo-reset:disabled { opacity: .5; }
.tablature-zoom { display: grid; min-width: 105px; gap: 4px; white-space: nowrap; }
.tablature-zoom span { display: flex; align-items: center; gap: 6px; }
.tablature-zoom input { width: 86px; accent-color: #4c71be; }
.tablature-zoom output { min-width: 14px; text-align: right; }
.tablature-volume { display: grid; min-width: 112px; gap: 4px; white-space: nowrap; }
.tablature-volume span { display: flex; align-items: center; gap: 6px; }
.tablature-volume input { width: 86px; accent-color: #4c71be; }
.tablature-volume output { min-width: 34px; text-align: right; }
.tablature-playbar .tablature-metronome { width: auto; height: 32px; padding: 0 10px; border: 1px solid #d4dceb; border-radius: 7px; background: white; color: #40516f; font: inherit; }
.tablature-playbar .tablature-metronome[aria-pressed="true"] { border-color: #7595d0; background: #d8e4f7; color: #203f7c; }
.tablature-playbar [data-tab-player-status] { flex: 1 1 100%; margin: 0; white-space: nowrap; }
@media (max-width: 800px) {
    .tablature-player { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: min(82vh, 900px); }
    .tablature-tracks { max-height: 150px; border-right: 0; border-bottom: 1px solid #d7deea; }
    .tablature-track-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .tablature-playbar { flex-wrap: wrap; gap: 8px; }
    .tablature-playbar [data-tab-position] { min-width: 100px; }
}
@media (max-width: 520px) {
    .tablature-player { min-height: 430px; height: 78vh; }
    .tablature-track-list { grid-template-columns: 1fr; }
    .tablature-playbar { column-gap: 8px; }
    .tablature-tempo { flex: 1; grid-template-columns: 1fr auto; }
    .tablature-playbar [data-tab-player-status] { width: 100%; }
}
