:root{--blue:#005ac8;--blue-soft:#eaf2ff;--bg:#f5f7fb;--surface:#fff;--text:#182b43;--muted:#5c6e84;--border:#dce3ee;--subtle:#f0f4f9;--lyric-size:30px;--shadow:0 8px 30px #1d365606;color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:650;border:1px solid transparent;border-radius:9px;padding:10px 14px;min-height:40px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;background:transparent;color:var(--text);white-space:nowrap}button:hover{background:var(--subtle)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #76acff;outline-offset:3px}a{color:var(--blue);text-decoration:none}svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block;flex:none}i[data-icon]{display:inline-flex;flex:none;font-style:normal}.primary{background:var(--blue);color:#fff}.primary:hover{background:#004ea9}.secondary{background:var(--surface);border-color:var(--border)}.secondary:hover{background:var(--blue-soft);border-color:#b7cee9}.quiet{color:var(--muted)}.icon-only{width:40px;min-width:40px;padding:8px}.app-header{display:flex;align-items:center;gap:24px;padding:19px 30px;background:var(--surface);border-bottom:1px solid var(--border);min-height:85px}.brand{font-weight:850;font-size:32px;letter-spacing:.045em;line-height:1.12;white-space:nowrap;color:var(--blue)}.app-name{font-size:16px;font-weight:550;border-left:1px solid var(--border);padding-left:24px;display:flex;gap:9px;align-items:center}.beta{font-size:9px;letter-spacing:1px;font-weight:700;color:var(--muted);border:1px solid var(--border);padding:3px 5px;border-radius:4px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:4px}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100dvh - 85px)}.sidebar{border-right:1px solid var(--border);background:var(--surface);padding:24px 14px 16px;display:flex;flex-direction:column;min-width:0}.sidebar-top{padding:0 6px 24px;display:flex;flex-direction:column;gap:12px}.library-button{justify-content:flex-start;padding-left:10px;color:var(--text)}.library-button i:last-child{margin-left:auto}.library-button i:last-child svg{width:15px}.new-song{justify-content:center}.sidebar-label{display:flex;justify-content:space-between;align-items:center;padding:0 12px 12px;font-size:10px;font-weight:750;letter-spacing:1.1px;color:var(--muted)}#sectionCount{letter-spacing:0;border-radius:4px;background:var(--subtle);padding:2px 6px}#sectionList{display:flex;flex-direction:column;gap:5px}.section-button{justify-content:flex-start;width:100%;text-align:left;padding:10px 12px;min-height:53px;font-size:13px;gap:10px;border:1px solid transparent}.section-button .section-number{display:grid;place-items:center;flex:none;width:26px;height:26px;color:var(--muted);background:var(--subtle);font-size:11px;font-weight:650;border-radius:7px;font-variant-numeric:tabular-nums}.section-button.active{background:var(--blue-soft);color:var(--blue);border-color:#d2e4ff}.section-button.active .section-number{background:var(--blue);color:#fff}.section-button .section-label{overflow:hidden;text-overflow:ellipsis}.section-button .repeat-icon{margin-left:auto}.repeat-icon svg{width:14px;height:14px}.section-button.active:after{content:'';width:5px;height:5px;background:var(--blue);border-radius:50%;margin-left:auto;flex:none}.sidebar-foot{margin-top:auto;padding:32px 12px 4px;display:flex;align-items:center;gap:10px}.tiny-mark{display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:50%;background:var(--blue);color:#fff;font-size:16px;font-weight:850}.sidebar-foot p{font-size:10px;line-height:1.65;margin:0;color:var(--muted)}.sidebar-foot a{display:block;font-weight:600}
main{padding:28px 32px 14px;min-width:0;display:flex;flex-direction:column;max-width:1800px;width:100%;margin:auto}.song-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.eyebrow{font-size:9px;letter-spacing:1.45px;font-weight:750;color:var(--muted);margin:0 0 7px}.song-heading h1{font-size:29px;letter-spacing:-.8px;line-height:1.2;margin:0 0 7px}.song-heading>p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.song-actions{display:flex;gap:9px}.song-tools{display:flex;gap:25px;align-items:center;padding:13px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:22px}.tool-group{display:flex;gap:10px;align-items:center}.tool-label{font-size:11px;color:var(--muted);font-weight:550;white-space:nowrap}.stepper{display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden;height:34px}.stepper button{min-height:32px;min-width:31px;width:31px;padding:6px;border:0;border-radius:0;font-size:12px}.stepper svg{width:14px;height:14px}.stepper output{min-width:32px;text-align:center;font-size:12px;font-weight:700}.stepper #keyLabel{min-width:41px}.reset-transpose{min-height:30px;width:25px;padding:3px;color:var(--muted);margin-left:-6px}.reset-transpose svg{width:14px;height:14px}select,input{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px 11px;min-height:36px;font-size:13px}select{cursor:pointer}#displayMode{min-height:34px;font-size:12px;padding:6px 25px 6px 10px;max-width:180px}.help-button{margin-left:auto;min-height:34px;padding:7px 0;font-size:11px}.help-button svg{width:16px;height:16px}.stage-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);margin:0 1px 12px;letter-spacing:.2px}.stage-heading>div{display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;border-radius:50%;background:#7890ac}.running .status-dot{background:#148260;box-shadow:0 0 0 3px #14826015}.stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;flex:1;align-items:stretch}.lyric-card{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:22px 25px 27px;min-width:0;box-shadow:var(--shadow);position:relative;min-height:360px}.lyric-card.current{border-top:3px solid var(--blue);padding-top:20px}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.card-top .eyebrow{margin:0;font-size:9px;letter-spacing:1px;color:var(--muted)}.current .card-top .eyebrow{color:var(--blue)}.card-number{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.lyric-card h2{font-size:16px;letter-spacing:-.2px;margin:0 0 25px;font-weight:700}.lyrics{font-size:var(--lyric-size);line-height:1.45;font-weight:500;letter-spacing:-.45px}.lyric-line{display:flex;flex-wrap:wrap;align-items:flex-end;margin-bottom:.9em;min-height:1.45em;row-gap:.22em}.lyric-line:last-child{margin-bottom:0}.lyric-piece{display:inline-grid;grid-template-rows:auto auto;min-width:0;max-width:100%;vertical-align:bottom;align-self:flex-end}.lyric-piece>span{white-space:pre;overflow-wrap:normal;word-break:normal;hyphens:none}.chord{color:var(--blue);font-size:.58em;font-weight:750;line-height:1.6;letter-spacing:0;min-height:1.6em;padding-right:.5em;white-space:nowrap!important}.chord.number{font-size:.54em}.number-circle{display:inline-grid;place-items:center;background:var(--chord-color,var(--blue));color:#fff;width:1.6em;height:1.6em;border-radius:50%;margin:0 .45em .2em 0;font-style:normal;font-size:.95em;font-weight:750}.lyrics-only .lyric-piece{display:inline}.lyrics-only .chord{display:none}.lyrics-only .lyric-line{display:block;margin-bottom:.6em}.end-card{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:8px;background:var(--surface);color:var(--muted)}.end-card>svg{width:38px;height:38px;color:var(--blue);margin-bottom:5px}.end-card h2{margin:0;color:var(--text);font-size:23px}.end-card p{font-size:13px;max-width:230px;line-height:1.7}.end-card button{margin-top:5px}.transport{display:flex;align-items:center;gap:24px;background:var(--surface);border:1px solid var(--border);border-radius:13px;margin-top:21px;padding:17px 18px;box-shadow:var(--shadow)}.play-controls{display:flex;gap:6px;align-items:center}.play-button{min-width:156px}.play-button svg{width:16px;height:16px}.play-controls .secondary{background:var(--subtle);border-color:transparent}.countdown{min-width:100px;flex:1;padding:0 8px}.countdown-label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin-bottom:9px}.countdown-label output{font-size:18px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:var(--text)}.progress-track{height:5px;border-radius:5px;background:var(--subtle);overflow:hidden}.progress-track span{height:100%;width:0;display:block;background:var(--blue);transition:width .1s linear}.timing{display:flex;align-items:center;border-left:1px solid var(--border);padding-left:16px;gap:3px}.timing label{display:flex;gap:6px;align-items:center}.timing label>span{font-size:10px;color:var(--muted)}.timing input{width:52px;font-size:13px;font-weight:650;padding:6px;border:none;min-height:31px;text-align:center;background:var(--subtle);appearance:textfield}.timing input::-webkit-inner-spin-button{appearance:none}.timing small{font-size:9px;color:var(--muted)}.timing button{min-width:30px;width:30px}.timing svg{width:16px;height:16px}.bottom-hint{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:var(--muted);padding:13px 2px 0;line-height:1.6}kbd{font:inherit;border:1px solid var(--border);border-radius:4px;padding:2px 5px;background:var(--surface);color:var(--muted)}.hint-divider{margin:0 8px}.number-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;padding:0 0 16px}.number-legend>span{display:flex;align-items:center;gap:4px}.number-legend .number-circle{width:21px;height:21px;font-size:11px;margin:0}.sidebar-hidden .workspace{grid-template-columns:minmax(0,1fr)}.sidebar-hidden .sidebar{display:none}.sidebar-hidden main{max-width:1500px}
dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:18px;box-shadow:0 24px 100px #132d5550;padding:0;max-height:90dvh;max-width:calc(100vw - 24px)}dialog::backdrop{background:#12283f70;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;border-bottom:1px solid var(--border);gap:20px}.dialog-header h2{margin:0;font-size:23px;letter-spacing:-.6px}.dialog-header .eyebrow{margin:0 0 5px}.dialog-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:18px 28px;border-top:1px solid var(--border)}.editor-dialog{width:1080px}.editor-grid{display:grid;grid-template-columns:1.1fr 1fr;min-height:450px}.source-side{padding:24px 28px;border-right:1px solid var(--border)}.source-side label{display:block;font-size:12px;font-weight:650;margin-bottom:8px}.source-side input{width:100%;margin-top:7px}.field-row{display:flex;align-items:center;gap:14px;margin-bottom:15px}.field-row>label{flex:1;min-width:0}.field-row>button{margin-top:11px}.source-side textarea{width:100%;height:310px;min-height:180px;border:1px solid var(--border);border-radius:10px;padding:14px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.9;resize:vertical;background:var(--bg);color:var(--text)}.field-help,.source-side details{font-size:11px;line-height:1.7;color:var(--muted)}.source-side details{margin-top:14px}.source-side summary{font-weight:650;cursor:pointer;color:var(--text)}code{font-size:11px;background:var(--subtle);padding:1px 4px;border-radius:4px}.analysis-side{padding:24px;background:var(--bg);min-width:0}.analysis-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.analysis-title h3{margin:0;font-size:14px}.pill{font-size:10px;color:var(--blue);background:var(--blue-soft);border-radius:20px;padding:5px 9px}.pill:empty{display:none}.analysis-empty{text-align:center;padding:80px 10px;color:var(--muted);font-size:13px;line-height:1.8}.analysis-empty>svg,.analysis-empty>i{display:block;margin:auto}.analysis-empty svg{width:36px;height:36px;stroke-width:1.3}.analysis-section{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:13px;margin:10px 0;font-size:12px}.analysis-section h4{display:flex;justify-content:space-between;gap:10px;margin:0 0 8px;font-size:12px}.analysis-section h4 small{font-size:9px;font-weight:500;color:var(--muted)}.analysis-section .lyrics{font-size:17px;letter-spacing:0}.analysis-section .lyric-line{margin-bottom:.5em}.analysis-section details{margin-top:8px;font-size:10px;color:var(--muted)}.analysis-section summary{cursor:pointer}.analysis-error,.warning{padding:10px 12px;border-radius:8px;font-size:11px;line-height:1.65;background:#fff5df;color:#875d06;border:1px solid #efd4a3}.footer-note{font-size:10px;color:var(--muted);flex:1}.settings-dialog,.library-dialog,.help-dialog{width:590px}.settings-section{padding:21px 28px;border-bottom:1px solid var(--border)}.settings-section h3{font-size:14px;margin:0 0 8px}.settings-section p,.help-content p{font-size:12px;color:var(--muted);line-height:1.7;margin:6px 0 16px}.settings-row{display:flex;gap:15px;align-items:center}.settings-row label{flex:1;font-size:11px;display:flex;flex-direction:column;gap:8px}.settings-row input,.settings-row select{width:100%}.checkbox{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.6;margin:9px 0;cursor:pointer}.checkbox input{min-height:0;accent-color:var(--blue);width:16px;height:16px}.mapping-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.map-item{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.map-item label{font-size:11px;font-weight:700;flex:1}.map-item input[type=text]{width:100%;text-align:center;min-height:32px;padding:7px}.map-item input[type=color]{width:24px;height:24px;min-height:24px;padding:2px;border-radius:50%;cursor:pointer}.selected-section{color:var(--blue)!important;font-size:11px!important;margin:10px 0!important}.settings-dialog .warning{margin:15px 28px}.library-help{font-size:12px;line-height:1.7;color:var(--muted);padding:10px 28px}.saved-song{margin:0 28px 12px;padding:15px;display:flex;align-items:center;gap:15px;border:1px solid var(--border);border-radius:10px}.saved-song>button:first-child{flex:1;display:block;text-align:left;white-space:normal;padding:0;font-size:14px}.saved-song small{display:block;margin-top:5px;font-size:10px;color:var(--muted);font-weight:400}.library-empty{padding:25px 28px 40px;text-align:center;font-size:13px;color:var(--muted)}.help-content{padding:12px 28px 24px}.help-content ol{padding-left:20px;font-size:13px;line-height:1.8}.help-content li{padding-left:6px;margin:15px 0}.help-callout{display:flex;gap:15px;background:var(--blue-soft);border-radius:10px;padding:17px;margin:24px 0}.help-callout p{margin:0;color:var(--text)}.help-callout svg{color:var(--blue);margin-top:4px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(90vw,600px);background:var(--text);color:var(--surface);border-radius:10px;padding:12px 19px;font-size:13px;box-shadow:0 5px 25px #0002;z-index:100;line-height:1.5;text-align:center}[hidden]{display:none!important}
body.dark{--bg:#111b29;--surface:#182638;--text:#edf3fc;--muted:#afbed1;--border:#314257;--subtle:#213249;--blue:#80b5ff;--blue-soft:#223e60;--shadow:none;color-scheme:dark}.dark .primary{background:#176ddb;color:#fff}.dark .primary:hover{background:#2679e4}.dark .section-button.active{border-color:#375c87}.dark .chord{color:#80b5ff}.dark .brand{color:#80b5ff}.dark .warning{background:#493b23;color:#ffe2a1;border-color:#77603b}
@media(min-width:1100px){body{height:100dvh;overflow:hidden}.workspace{height:calc(100dvh - 85px);min-height:0}.sidebar{overflow-y:auto}main{height:100%;padding-top:26px}.stage{min-height:0}.lyric-card{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent}}
@media(max-width:1250px){.app-header{padding-inline:22px;gap:18px}.brand{font-size:28px}.app-name{font-size:14px;padding-left:18px}.workspace{grid-template-columns:195px minmax(0,1fr)}main{padding-inline:24px}.song-tools{gap:17px}.tool-group{gap:8px}.help-button span{display:none}.lyric-card{padding-inline:20px}.transport{gap:12px;padding:14px 12px}.timing{padding-left:10px}.timing label>span{display:none}.play-button{min-width:140px}.play-controls{gap:4px}.play-controls .icon-only{width:34px;min-width:34px}.lyrics{font-size:calc(var(--lyric-size)*.92)}.song-heading h1{font-size:26px}}
@media(max-width:1000px){.app-name .beta{display:none}.app-header{gap:14px}.app-name{font-size:13px;padding-left:14px}.header-actions button>span{display:none}.header-actions button{padding:9px;width:38px}.workspace{grid-template-columns:175px minmax(0,1fr)}main{padding:22px 18px 14px}.sidebar{padding-inline:8px}.section-button{padding-inline:8px;gap:8px}.sidebar-label{padding-inline:8px;font-size:9px}.song-actions button>span{display:none}.song-actions button{padding:10px}.song-tools{gap:14px;flex-wrap:wrap}.tool-group{gap:7px}.tool-label{font-size:10px}.font-control{margin-left:auto}.help-button{display:none}.transport{flex-wrap:wrap}.countdown{flex-basis:calc(100% - 130px);order:3;padding:5px 0 0}.play-controls{flex:1}.timing{border:0}.lyrics{font-size:calc(var(--lyric-size)*.84)}.stage{gap:14px}.lyric-card{padding:18px 17px 24px}.lyric-card.current{padding-top:16px}.card-top{margin-bottom:20px}.lyric-card h2{margin-bottom:21px}.source-side{padding:20px}.analysis-side{padding:20px}.editor-grid{grid-template-columns:1fr 1fr}.footer-note{display:none}.sidebar-foot{padding-inline:6px}.sidebar-foot p{font-size:9px}}
@media(max-width:740px){.app-header{flex-wrap:wrap;gap:9px;padding:14px 16px;min-height:78px}.brand{font-size:27px}.app-name{font-size:11px;border:0;padding:0;order:3;width:100%;margin-top:-7px}.header-actions{gap:0}.header-actions button{min-width:32px;width:32px;min-height:34px;padding:6px}.header-actions svg{width:18px;height:18px}.workspace{display:block;position:relative}.sidebar{display:none;position:absolute;z-index:4;top:0;left:0;bottom:0;width:215px;box-shadow:10px 0 30px #14264218}.mobile-sidebar-open .sidebar{display:flex}.sidebar-hidden.mobile-sidebar-open .sidebar{display:none}.sidebar-foot{margin-top:20px}.song-top{margin-bottom:17px}.song-heading h1{font-size:26px}.song-heading>p{font-size:11px}.song-tools{gap:12px;margin-bottom:16px;padding-block:11px}.tool-group:first-child{gap:6px}.tool-label{display:none}.font-control{margin-left:auto}.stepper button{width:28px;min-width:28px}.stepper output{min-width:26px}.reset-transpose{display:none}#displayMode{font-size:11px;max-width:150px}main{padding:22px 14px 12px}.stage{grid-template-columns:1fr;gap:16px}.lyric-card{min-height:300px;padding:22px 23px 27px}.lyric-card.current{padding-top:20px}.lyrics{font-size:var(--lyric-size)}.lyric-card h2{font-size:18px}.card-top{margin-bottom:20px}.transport{position:sticky;bottom:8px;z-index:3;gap:13px;box-shadow:0 5px 25px #152c4412}.play-controls{justify-content:flex-start;gap:5px}.play-button{flex:1;min-width:130px}.play-controls .icon-only{min-width:32px;width:32px}.timing{padding-left:0}.timing input{width:45px}.timing small{display:none}.timing button{display:none}.countdown{flex-basis:100%;padding:0}.bottom-hint>span:first-child{display:none}.bottom-hint{justify-content:flex-end}.editor-grid{grid-template-columns:1fr}.source-side{border-right:0;border-bottom:1px solid var(--border)}.source-side textarea{height:260px}.analysis-side{padding:20px}.analysis-empty{padding:25px 0}.dialog-header{padding:19px 20px}.dialog-header h2{font-size:21px}.dialog-footer{padding:16px 20px;gap:8px}.dialog-footer button{font-size:12px;padding-inline:10px}.settings-section{padding:19px 20px}.mapping-rows{grid-template-columns:repeat(4,minmax(0,1fr))}.library-dialog .dialog-footer{flex-wrap:wrap}.field-row{gap:8px}.field-row button{font-size:11px;padding-inline:10px}.help-content{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.dark .chord span[style]{color:color-mix(in srgb,var(--chord-ink) 62%,white)!important}
@media(min-width:1100px) and (max-height:800px){.app-header{min-height:69px;padding-block:11px}.workspace{height:calc(100dvh - 69px)}main{padding-top:18px}.song-top{margin-bottom:16px}.song-tools{margin-bottom:16px;padding-block:10px}.lyric-card{padding-top:17px;padding-bottom:18px}.lyric-card.current{padding-top:15px}.card-top{margin-bottom:14px}.lyric-card h2{margin-bottom:15px}.lyric-line{margin-bottom:.65em}.transport{margin-top:16px;padding-block:13px}.bottom-hint{padding-top:9px}}
