/*! Chordsetter | Copyright (c) 2026 Irvin Leshchinsky. All rights reserved. */
@layer foundation{@media screen{.header-actions .theme-toggle{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;flex-shrink:0}.theme-icon-moon,.theme-icon-sun{display:inline-flex}.theme-toggle .theme-icon-sun{display:none}:root[data-theme=dark] .theme-toggle .theme-icon-moon{display:none}:root[data-theme=dark] .theme-toggle .theme-icon-sun{display:inline-flex}:root[data-theme=dark]{color-scheme:dark;--bg: #1b1b1d;--canvas: #151518;--paper: #252427;--ink: #ece7ec;--text-secondary: #bcb4be;--text-tertiary: #a49ca8;--muted: var(--text-secondary);--faint: #938b97;--rule: #48414b;--rule-soft: #38333d;--accent: #dfabc9;--accent-hover: #f0c5de;--accent-soft: #40303d;--danger: #f0a399;--control-surface: #2d2a30;--control-hover: #38323b;--focus-ring: #dfabc933;--marker: #a9d2c2;--marker-soft: #283c33;--marker-rule: #456657;--danger-soft: #442e2d;--on-accent: #2c2029}:root[data-theme=dark] ::selection{background:#674c60;color:var(--ink)}:root[data-theme=dark] ::-webkit-scrollbar-thumb{background-color:#615867}:root[data-theme=dark] .button.primary,:root[data-theme=dark] .button.danger-primary,:root[data-theme=dark] .tray-chord.is-armed{color:var(--on-accent)}:root[data-theme=dark] .button.secondary,:root[data-theme=dark] .transpose-button,:root[data-theme=dark] .tray-chord{background:var(--control-surface);border-color:var(--rule)}:root[data-theme=dark] .button.quiet{color:var(--text-secondary)}:root[data-theme=dark] .button.secondary:hover,:root[data-theme=dark] .button.quiet:hover,:root[data-theme=dark] .icon-button:hover:not(:disabled),:root[data-theme=dark] .outline-row:hover{background:var(--control-hover);border-color:var(--rule)}:root[data-theme=dark] .outline-row.is-current,:root[data-theme=dark] .outline-row.is-current:hover{background:var(--accent-soft)}:root[data-theme=dark] .library-count,:root[data-theme=dark] .mode-switch{background:var(--control-surface)}:root[data-theme=dark] .action-menu,:root[data-theme=dark] .section-name-completion{border-color:var(--rule);box-shadow:0 8px 28px #0005,0 2px 6px #0003}:root[data-theme=dark] .action-menu [role=menuitem].danger:hover,:root[data-theme=dark] .action-menu [role=menuitem].danger:focus-visible,:root[data-theme=dark] .library-song-actions [data-action=delete-song]:hover{background:var(--danger-soft)}:root[data-theme=dark] .tiny-stave,:root[data-theme=dark] .structure-footer p,:root[data-theme=dark] .details-symbol,:root[data-theme=dark] .canvas-footer,:root[data-theme=dark] .annotation-line svg,:root[data-theme=dark] .transpose-fields>svg{color:var(--text-tertiary)}:root[data-theme=dark] .editor-guidance.is-armed{border-bottom-color:var(--rule)}:root[data-theme=dark] .song-paper{border-color:var(--rule-soft);box-shadow:0 2px 6px #0002,0 12px 28px #0002}:root[data-theme=dark] .song-title-input,:root[data-theme=dark] .lyric-text,:root[data-theme=dark] .modal h2{color:var(--ink)}:root[data-theme=dark] .song-title-input:hover,:root[data-theme=dark] .song-artist-input:hover{border-bottom-color:var(--rule)}:root[data-theme=dark] .song-title-input:focus,:root[data-theme=dark] .lyric-editor:focus,:root[data-theme=dark] .lyric-section-heading .lyric-section-name:focus{background:var(--control-surface)}:root[data-theme=dark] .song-artist-input::placeholder,:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:var(--text-tertiary)}:root[data-theme=dark] .paper-metadata,:root[data-theme=dark] .paper-metadata>span+span,:root[data-theme=dark] .paper-add-section,:root[data-theme=dark] .source-editor-wrap,:root[data-theme=dark] .source-editor-header,:root[data-theme=dark] .source-editor-footer,:root[data-theme=dark] dialog,:root[data-theme=dark] .import-textarea,:root[data-theme=dark] .export-tabs,:root[data-theme=dark] .export-preview,:root[data-theme=dark] .section-presets button,:root[data-theme=dark] .insert-type-tabs button,:root[data-theme=dark] .detected-section-list,:root[data-theme=dark] .detected-section-row+.detected-section-row{border-color:var(--rule)}:root[data-theme=dark] .section-rule{background:var(--rule-soft)}:root[data-theme=dark] .paper-metadata:hover,:root[data-theme=dark] .paper-add-section:hover,:root[data-theme=dark] .library-row:hover,:root[data-theme=dark] .library-row:focus-within{background:var(--control-surface)}:root[data-theme=dark] .line-surface:hover{background:#ffffff04}:root[data-theme=dark] .line-surface:focus-visible,:root[data-theme=dark] .instrumental-surface:focus-visible{outline-color:var(--accent)}:root[data-theme=dark] .placement-cursor{background:var(--focus-ring);border-bottom-color:var(--accent)}:root[data-theme=dark] .instrumental-guide{border-bottom-color:var(--rule-soft)}:root[data-theme=dark] .is-drop-target{background:var(--accent-soft)!important}:root[data-theme=dark] .annotation-line{color:var(--text-secondary)}:root[data-theme=dark] .directive-line>button:first-child{background:var(--accent-soft);border-left-color:var(--accent)}:root[data-theme=dark] .editable-chord-summary{color:var(--accent)}:root[data-theme=dark] .lyric-editor,:root[data-theme=dark] input:where(:not([type=checkbox])):not(.song-title-input):not(.song-artist-input),:root[data-theme=dark] select,:root[data-theme=dark] .field-label textarea{background:var(--control-surface);border-color:var(--rule)}:root[data-theme=dark] input:not([type=checkbox]):focus,:root[data-theme=dark] textarea:focus,:root[data-theme=dark] select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--focus-ring)}:root[data-theme=dark] .transpose-button:hover,:root[data-theme=dark] .tray-chord:hover,:root[data-theme=dark] .popover-chord-tray button:hover,:root[data-theme=dark] .section-presets button:hover,:root[data-theme=dark] .insert-type-tabs button.selected,:root[data-theme=dark] .lyric-section-controls .button:hover{background:var(--accent-soft);border-color:var(--accent)}:root[data-theme=dark] .tray-chord.is-armed{background:var(--accent);border-color:var(--accent)}:root[data-theme=dark] #save-status svg{color:var(--marker)}:root[data-theme=dark] #source-editor{background:var(--paper);color:var(--ink)}:root[data-theme=dark] #source-editor:focus{box-shadow:inset 0 0 0 2px var(--accent)}:root[data-theme=dark] dialog::backdrop{background:#09080bb3}:root[data-theme=dark] .chord-popover::backdrop{background:#09080b14}:root[data-theme=dark] .modal,:root[data-theme=dark] .chord-popover{box-shadow:0 16px 64px #0007,0 2px 8px #0003}:root[data-theme=dark] .inline-note{background:var(--marker-soft);border-left-color:var(--marker-rule)}:root[data-theme=dark] .library-song-icon,:root[data-theme=dark] .library-empty-icon{background:var(--accent-soft);border-color:var(--rule)}:root[data-theme=dark] kbd{box-shadow:0 1px 0 var(--rule)}:root[data-theme=dark] .timing-cell,:root[data-theme=dark] .is-instrumental .lyric-char{background:#a9d2c209;box-shadow:inset 0 -1px #a9d2c23d}:root[data-theme=dark] .timing-cell:not([data-placement-target]){background:transparent;box-shadow:none}:root[data-theme=dark] .timing-space-button{border-color:var(--rule);color:var(--text-secondary)}:root[data-theme=dark] .timing-space-button:hover{border-color:var(--accent);color:var(--accent)}:root[data-theme=dark] .chart-marker,:root[data-theme=dark] .inline-marker,:root[data-theme=dark] .notation-heading .icon-button,:root[data-theme=dark] .notation-preset-row .icon-button,:root[data-theme=dark] .notation-guide-list dt{color:var(--marker)}:root[data-theme=dark] .chart-marker:hover,:root[data-theme=dark] .chart-marker:focus-visible,:root[data-theme=dark] .chart-marker.is-editing,:root[data-theme=dark] button.inline-marker:hover,:root[data-theme=dark] button.inline-marker:focus-visible,:root[data-theme=dark] button.inline-marker.is-editing{color:#c1e7d7;background:var(--marker-soft);box-shadow:0 0 0 2px var(--marker-rule)}:root[data-theme=dark] .notation-tool{color:var(--marker);background:#25322c;border-color:#3c5147}:root[data-theme=dark] .notation-tool:hover,:root[data-theme=dark] .notation-tool:focus-visible{background:var(--marker-soft);border-color:var(--marker)}:root[data-theme=dark] .notation-tool.is-armed,:root[data-theme=dark] .notation-tool.is-armed:hover,:root[data-theme=dark] .notation-tool.is-armed:focus-visible{color:#182b22;background:var(--marker);border-color:var(--marker)}:root[data-theme=dark] .notation-preset-row select{color:var(--marker)}:root[data-theme=dark] .lane-value-label,:root[data-theme=dark] .lane-value-help,:root[data-theme=dark] .notation-guide-intro{color:var(--text-secondary)}:root[data-theme=dark] .toast{background:#d7c4d3;color:#28202a;box-shadow:0 4px 24px #0006}:root[data-theme=dark] .lyric-section-top{background:var(--control-surface);border-bottom-color:var(--rule-soft)}:root[data-theme=dark] .lyric-section-heading input.lyric-section-name:not(:focus),:root[data-theme=dark] .lyric-section-card .section-lyric-editor:not(:focus){background:transparent;border-color:transparent}:root[data-theme=dark] .lyric-section-heading input.lyric-section-name:hover:not(:focus),:root[data-theme=dark] .lyric-section-card .section-lyric-editor:hover:not(:focus){border-color:var(--rule)}:root[data-theme=dark] .pco-notice{background:#3a302b;border-left-color:#c39c7c}}@media screen and (min-width:601px)and (max-width:680px){.header-actions .library-button>span{display:none}.header-rule{display:none}}@media screen and (max-width:600px){.app-header:not(.library-header){grid-template-columns:repeat(6,minmax(0,1fr))}.app-header:not(.library-header) .brand{grid-column:1 / 4}.app-header:not(.library-header) .theme-toggle{grid-column:4;grid-row:1;justify-self:end}.app-header:not(.library-header) .pco-send-button{grid-column:5 / 7;grid-row:1;width:100%}.app-header:not(.library-header) .library-button{grid-column:1 / 3}.app-header:not(.library-header) .import-button{grid-column:3 / 5}.app-header:not(.library-header) .export-button{grid-column:5 / 7}.library-header .header-actions [data-action=import]>span{display:none}.library-header .header-actions [data-action=import]{width:40px;height:40px;padding:0}}}
