:root{--ui-font:"Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;--bg:#e8ebef;--panel:#fff;--line:#d7dce3;--text:#1f2430;--muted:#6b7482;--sel:#2563eb;--err:#dc2626;--play:#059669;--accent:#2563eb;--accent-weak:#e8f0fe;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--ui-font);color:var(--text);background:var(--bg);font-size:14px}button{font:inherit;color:inherit;border:1px solid var(--line);cursor:pointer;white-space:nowrap;background:#fff;border-radius:7px;padding:5px 10px}button:hover:not(:disabled){background:#f6f8fa;border-color:#b9c2ce}button:disabled{opacity:.45;cursor:default}button.on{background:var(--accent-weak);color:#1d4ed8;border-color:#9bb8f5}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover:not(:disabled){background:#1d4ed8}button.danger{color:var(--err)}button.primary-outline{color:#1d4ed8;border-color:#9bb8f5}button.primary-outline:hover:not(:disabled){background:var(--accent-weak)}a.button{font:inherit;color:inherit;border:1px solid var(--line);white-space:nowrap;background:#fff;border-radius:7px;padding:5px 10px;text-decoration:none;display:inline-block}a.button:hover{background:#f6f8fa;border-color:#b9c2ce}select.lang-select{cursor:pointer;border-radius:7px;padding:5px 6px}button.dotbtn b{vertical-align:-1px;margin-left:2px;font-size:20px;line-height:0}input,select{font:inherit;color:inherit;border:1px solid var(--line);background:#fff;border-radius:7px;padding:6px 8px}input:focus,select:focus{outline-offset:0;border-color:var(--accent);outline:2px solid #93b4f6}.mt-banner{color:#e2e8f0;background:linear-gradient(90deg,#0f172a,#1e293b 55%,#1e3a8a);align-items:center;gap:14px;min-height:42px;padding:6px 12px;font-size:13px;display:flex}.mt-banner .mt-app{color:#fff;flex:none;align-items:center;gap:8px;text-decoration:none;display:flex}.mt-banner .mt-app img{border-radius:7px;display:block}.mt-banner .mt-app b{font-size:14px}.mt-banner .mt-copy{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;margin:0;overflow:hidden}.mt-banner .mt-sub{color:#93c5fd;margin-left:10px}.mt-banner .mt-get{color:#0f172a;background:#fff;border-radius:999px;flex:none;padding:5px 13px;font-weight:600;text-decoration:none}.mt-banner .mt-get:hover{background:#dbeafe}.mt-banner .mt-more{color:#cbd5e1;flex:none;text-decoration:none}.mt-banner .mt-more:hover{color:#fff;text-decoration:underline}.mt-banner .mt-close{color:#94a3b8;background:0 0;border:none;flex:none;padding:0 6px;font-size:20px;line-height:1.2}.mt-banner .mt-close:hover:not(:disabled){color:#fff;background:#ffffff1f}@media (width<=720px){.mt-banner .mt-sub,.mt-banner .mt-more{display:none}}.welcome{padding:48px 24px 64px;position:absolute;inset:0;overflow:auto}.welcome>*{max-width:680px;margin-left:auto;margin-right:auto}.welcome h1{letter-spacing:-.5px;margin-top:0;margin-bottom:12px;font-size:30px;line-height:1.2}.welcome .lead{color:#374151;margin-top:0;margin-bottom:18px;font-size:17px;line-height:1.55}.welcome ul{color:#374151;margin-top:0;margin-bottom:22px;padding-left:20px;font-size:15px;line-height:1.6}.welcome li{margin-bottom:6px}.welcome li b{color:var(--text)}.welcome .links{flex-wrap:wrap;gap:8px 18px;display:flex}.welcome .links a{color:var(--accent);font-weight:600;text-decoration:none}.welcome .links a:hover{text-decoration:underline}.app{flex-direction:column;height:100%;display:flex}.toolbar{background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:10px;padding:8px 12px;display:flex}.brand{letter-spacing:-.2px;font-size:16px;font-weight:600}.brand b{color:var(--accent);font-weight:800}.group{align-items:center;gap:4px;display:flex}.group.right{margin-left:auto}.zoom{text-align:center;min-width:44px;color:var(--muted);font-variant-numeric:tabular-nums}.modes{background:#eef1f5;border-radius:9px;gap:2px;padding:3px;display:flex}.modes button{background:0 0;border:none;border-radius:7px;padding:5px 10px}.modes button.on{color:#1d4ed8;background:#fff;box-shadow:0 1px 3px #0000001f}.modes .step{color:var(--muted);margin-right:5px;font-size:11px;display:inline-block}.modes button.on .step{color:var(--accent)}button.play{min-width:78px}.settings{position:relative}.settings-menu{border:1px solid var(--line);z-index:30;background:#fff;border-radius:10px;gap:8px;width:330px;padding:10px 12px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #0f172a24}.settings-menu label{cursor:pointer;align-items:flex-start;gap:8px;line-height:1.35;display:flex}.settings-menu label.select-row{flex-direction:column;gap:4px}.settings-menu label.select-row select{width:100%}.modebar{border-bottom:1px solid var(--line);background:#f8fafc;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:44px;padding:6px 12px;display:flex}.modebar .hint{color:var(--muted);flex:320px;min-width:0;font-size:13px}.modebar .actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.modebar .sep{background:var(--line);width:1px;height:22px;margin:0 2px}.mrows{flex-direction:column;gap:5px;display:flex}.mrow{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.mlabel{color:var(--muted);font-size:12.5px}.wbars{pointer-events:none}.wbar rect{fill:#2563eb14;stroke:#2563eb73;stroke-width:1px}.wbar rect.grip{fill:#fff}.wbar path{fill:#2563eba6}.wbar.hover rect{fill:#2563eb33}.wbar.hover rect.grip{fill:#eef4ff}.wbar.on rect{fill:#2563eb42;stroke:var(--sel);stroke-width:1.5px}.wbar.on rect.grip{fill:var(--sel)}.wbar.on path{fill:#fff}.modebar .count{color:var(--muted);align-items:center;gap:4px;font-size:13px;display:inline-flex}.modebar .count input{width:54px;padding:4px 6px}.verses{gap:4px;display:flex}.chip{border-radius:999px;padding:3px 10px;font-size:13px}.problems{color:var(--err);background:#fff5f5;border-color:#f3b4b4}.problems.ok{color:var(--play);background:#f1fbf6;border-color:#b7e3cf}.problems.todo{color:#0369a1;background:#f0f9ff;border-color:#a5d8f3}.main{flex:1;min-height:0;position:relative}.canvas-wrap{position:absolute;inset:0;overflow:auto}.page{background:#fff;border-radius:2px;margin:20px auto 60px;position:relative;box-shadow:0 1px 3px #0f172a1f,0 8px 30px #0f172a14}.empty{text-align:center;color:var(--muted);padding:60px}.statusbar{background:var(--panel);border-top:1px solid var(--line);color:var(--muted);align-items:center;gap:16px;min-height:30px;padding:5px 12px;font-size:12.5px;display:flex}.statusbar .order{color:#0369a1;white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.statusbar .warn{color:var(--err);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.statusbar .playfrom{color:var(--play);white-space:nowrap}.statusbar .file{white-space:nowrap;margin-left:auto}.statusbar .site{color:var(--muted);white-space:nowrap;text-decoration:none}.statusbar .site:hover{color:var(--accent);text-decoration:underline}.score{color:#1a1a1a;-webkit-user-select:none;user-select:none;touch-action:none;display:block}.score text{fill:currentColor;font-family:var(--ui-font)}.score .m{font-family:Bravura}.artics{gap:2px;display:inline-flex}.artics button{min-width:34px;padding:2px 6px}.artics .glyph{height:18px;font-family:Bravura;font-size:22px;line-height:1;display:inline-block}.score text.tempo-text{font-style:italic;font-weight:700}.score line{stroke:currentColor}.score circle,.score polygon,.score rect.bar,.score path.curve{fill:currentColor}.score .paper{fill:#fff}.score .err{color:var(--err)}.score .sel{color:var(--sel)}.score .play,.score .playhead{color:var(--play)}.score .playhead path{fill:currentColor}.score .tint{fill:#dc262612}.score .empty-tint{fill:#0ea5e917}.score .playline{stroke:var(--play);stroke-linecap:round;opacity:.9}.score text.badge{fill:var(--err);font-weight:700}.score .hint{fill:#8a94a3}.score path.volta{fill:none;stroke:currentColor}.score .section rect{fill:#fff;stroke:currentColor}.score .section text{font-weight:700}.score .chord{font-weight:600}.score .chord.hot{fill:var(--sel)}.score .cdot{fill:#a3adbb}.score .cdot.hot{fill:var(--sel)}.score .cdot.ghost{fill:none;stroke:var(--sel);stroke-width:1.2px;stroke-dasharray:2 2}.score .ctarget{fill:#2563eb26;stroke:var(--sel);pointer-events:none}.score .mnum{fill:#8a94a3}.score .title{font-weight:700}.score .form{fill:var(--muted)}.score .navtext{font-style:italic;font-weight:700}.score .vlabel,.score .tuplet{font-weight:700}.score .tuplet{font-style:italic}.score .hl{fill:#2563eb17}.score .msel{fill:#2563eb1f;stroke:#2563eb80;stroke-width:1px}.score .hl-bar{fill:#2563eb47}.score .ghost{color:#2563eb80}.score .marquee{fill:#2563eb14;stroke:var(--sel);stroke-dasharray:4 3}.score .caret{stroke:var(--sel)}.score .dest{fill:#2563eb1a;stroke:#2563eb8c;stroke-dasharray:5 3}.score .caretbox{fill:#2563eb24;stroke:var(--sel)}.score .band{stroke:var(--sel);stroke-dasharray:5 4}.score .pitch-tip rect{fill:#111827}.score .pitch-tip text{fill:#fff;font-weight:600}.popup{z-index:20;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px;font-size:13.5px;position:absolute;box-shadow:0 10px 28px #0f172a2e}.popup input{width:220px}.chord-pop input{width:180px;font-size:15px;font-weight:600}.chord-where{color:var(--muted);justify-content:space-between;align-items:center;gap:6px;margin-bottom:6px;font-size:12.5px;display:flex}.chord-where b{color:var(--sel);font-weight:700}.chord-where button{padding:1px 8px;font-size:11px;line-height:1.6}.pop-hint{color:var(--muted);max-width:330px;margin-top:6px;font-size:11.5px;line-height:1.35}.menu{flex-direction:column;gap:2px;min-width:200px;display:flex}.menu>button,.menu-grid button{text-align:left;border:none;align-items:center;gap:8px;padding:6px 8px;display:flex}.menu>button.on,.menu-grid button.on{background:var(--accent-weak);color:#1d4ed8}.menu-title{color:var(--muted);padding:2px 6px 6px;font-size:12px;font-weight:600}.menu.wide{width:350px}.export-menu{width:380px;left:0;right:auto}.export-menu button{text-align:left;white-space:normal;border:none;width:100%;padding:7px 8px;line-height:1.35;display:block}.export-menu button:hover{background:var(--accent-weak)}.menu-col{flex-direction:column;gap:8px;padding:2px 6px 6px;display:flex}label.check{align-items:flex-start;gap:6px;font-size:13px;line-height:1.4;display:flex}label.check input{margin-top:2px}.transpose .now{color:var(--muted);margin:0 0 10px}.transpose .dirs{flex-wrap:wrap;gap:12px;display:flex}.transpose .result{color:#1d4ed8;margin:10px 0 0;font-weight:600}.menu-row{flex-wrap:wrap;align-items:center;gap:6px;padding:4px 6px;display:flex}.menu-row input{flex:1;width:auto;min-width:120px}.menu-row .chip{border:1px solid var(--line)}.menu-label{color:var(--muted);margin-right:4px;font-size:12px}.menu-grid{grid-template-columns:1fr 1fr;gap:2px;padding:2px;display:grid}.glyph{justify-content:center;align-items:center;width:34px;height:30px;font-family:Bravura;font-size:26px;line-height:1;display:inline-flex}.glyph.small{width:22px;font-size:18px}.count-pop{width:300px}.count-grid{grid-template-columns:repeat(8,1fr);gap:4px;padding:2px 4px 6px;display:grid}.count-grid button{text-align:center;font-variant-numeric:tabular-nums;padding:7px 0;font-weight:600}.kind-tabs{gap:4px;padding:0 4px 6px;display:flex}.kind-tabs button{flex:1;justify-content:center;align-items:center;gap:6px;font-weight:600;display:inline-flex}.kind-icon{background:currentColor;border-radius:50%;display:inline-block}.kind-icon.note{width:11px;height:8px;transform:rotate(-20deg)}.kind-icon.rest{width:6px;height:6px}.score .restdot{fill:currentColor}.count-pop .fill-one{text-align:center;flex:1;font-weight:600}button.writemode{min-width:128px}button.writemode.on{color:#92400e;background:#fff7e6;border-color:#f0b44c}.dialog.confirm{width:min(420px,100%)}.dialog.confirm p{margin:0;line-height:1.5}button.primary.warn{background:var(--err);border-color:var(--err)}button.primary.warn:hover:not(:disabled){background:#b91c1c}.dur-pop{padding:6px}.dur-row{align-items:stretch;gap:4px;display:flex}.dur-row button{flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;width:54px;height:66px;padding:4px 2px;display:flex}.dur-row .glyph.note{width:auto;height:38px;font-size:30px}.dur-row .big{font-size:26px;font-weight:700;line-height:38px}.dur-row .cap{color:var(--muted);font-size:11px}.dur-row button.on .cap{color:#1d4ed8}.dur-row .sep{background:var(--line);width:1px;margin:4px 2px}.dialog-backdrop{z-index:50;background:#0f172a61;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog{background:#fff;border-radius:14px;flex-direction:column;gap:12px;width:min(580px,100%);max-height:calc(100vh - 32px);padding:22px 24px;display:flex;overflow:auto;box-shadow:0 20px 50px #0f172a4d}.dialog h2{margin:0 0 4px;font-size:19px}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:12.5px;display:flex}.field input,.field select{color:var(--text);font-size:14px}.row{flex-wrap:wrap;gap:12px;display:flex}.field-note{color:var(--err);font-size:11.5px;font-style:normal}.row .field{flex:1;min-width:110px}.row .field.grow{flex:2}.ts{align-items:center;gap:6px;display:flex}.ts input{width:64px}.presets{flex-wrap:wrap;gap:6px;display:flex}.buttons{justify-content:flex-end;gap:8px;margin-top:6px;display:flex}.note{color:#b45309;margin:0;font-size:12.5px}.dialog.help{width:min(740px,100%)}.dialog .guide{color:var(--muted);margin:0;font-size:13px}.dialog .note.guide{color:var(--muted)}.dialog .guide a{color:var(--accent);font-weight:600;text-decoration:none}.dialog .guide a:hover{text-decoration:underline}.help h3{color:var(--accent);margin:10px 0 4px;font-size:14px}.help table{border-collapse:collapse;width:100%;font-size:13px}.help th{text-align:left;vertical-align:top;width:38%;padding:5px 8px 5px 0;font-weight:600}.help td{color:#374151;padding:5px 0}.help tr+tr{border-top:1px solid #eef1f5}.toast{color:#fff;z-index:60;background:#111827;border-radius:10px;max-width:calc(100vw - 32px);padding:9px 16px;font-size:13.5px;animation:.18s ease-out toast-in;position:fixed;bottom:46px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #00000040}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%)}}.print-view{background:var(--bg);min-height:100%}.print-bar{border-bottom:1px solid var(--line);z-index:2;background:#fff;align-items:center;gap:8px;padding:10px 14px;display:flex;position:sticky;top:0}.print-bar span{color:var(--muted);font-size:13px}.print-pages{background:#fff;max-width:900px;margin:20px auto;padding:24px}.score.print .ui{display:none}.score.print .err,.score.print .sel,.score.print .play{color:inherit}@media print{@page{size:A4;margin:12mm}body{background:#fff}.print-bar{display:none}.print-view{background:#fff}.print-pages{max-width:none;margin:0;padding:0}.print-system{break-inside:avoid}.print-pages>svg:first-child{break-after:avoid}}
