.chord-maker{--ui-bg:var(--card);--ui-soft:var(--muted);--ui-line:var(--border);--ui-line2:var(--border);--ui-text:var(--foreground);--ui-dim:var(--muted-foreground);--mint:#21b3a0;--mint-soft:#e6f7f4;--ink:#111;--paper:#fff;--sec-color:#8a8a8a;--chord-color:#1f7ae0;--chord-bg:transparent;--lyric-color:#111;--lyric-weight:400;--ko-ls:4px;& .tool{border:1px solid var(--border);background:var(--card);border-radius:12px;overflow:hidden}& .cm-narrow-note{display:none}& .cols{grid-template-columns:1fr 1fr;height:calc(100vh - 150px);min-height:760px;display:grid}& .pane-edit{border-right:1px solid var(--border);background:var(--ui-bg);flex-direction:column;min-height:0;display:flex}& .pane-view{flex-direction:column;min-height:0;display:flex}& .scroll-wrap{background:color-mix(in oklab, var(--muted) 55%, transparent);flex:1;min-height:0;padding:20px;overflow:auto}& .songbar .field.f-title,& .songbar .field.f-artist{flex:120px}& .songbar .field.f-title input,& .songbar .field.f-artist input{width:100%;min-width:0}& .songbar{background:var(--ui-bg);border-bottom:1px solid var(--ui-line);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 16px;display:flex}& .field{align-items:center;gap:6px;display:flex}& .field>label{color:var(--ui-dim);white-space:nowrap;font-size:12px;font-weight:700}& .field input,& .field select{border:1.5px solid var(--ui-line2);background:var(--ui-bg);color:var(--ui-text);border-radius:8px;outline:none;padding:7px 10px;font-size:14px}& .field input:focus,& .field select:focus{border-color:var(--mint)}& .field.f-title input{font-weight:700}& .req{color:#e05252}& .btn{border:1px solid var(--ui-line2);background:var(--ui-bg);color:var(--ui-text);cursor:pointer;white-space:nowrap;border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:600}& .btn:hover{border-color:var(--mint);color:var(--mint)}& .btn.pri{background:var(--mint);border-color:var(--mint);color:#111;font-weight:700}& .btn.pri:hover{color:#111;filter:brightness(.94)}& .chk{color:var(--ui-dim);cursor:pointer;white-space:nowrap;align-items:center;gap:5px;font-size:12.5px;display:flex}& .sep{background:var(--ui-line2);width:1px;height:20px}& .spacer{flex:1}& .palette{border-bottom:1px solid var(--ui-line2);background:var(--ui-soft);align-items:flex-start;gap:10px;padding:8px 14px;display:flex}& .palette>.lbl{color:#f5a623;white-space:nowrap;cursor:default;padding-top:4px;font-size:17px;line-height:1}& .chips{flex-wrap:wrap;flex:1;gap:5px;display:flex}& .chip{border:1.5px solid var(--ui-line2);background:var(--ui-bg);color:var(--ui-text);cursor:grab;user-select:none;border-radius:8px;padding:3px 10px;font-size:13.5px;font-weight:800;line-height:1.5}& .chip:hover{border-color:var(--mint);background:var(--mint-soft);color:#111}& .chip.add{color:var(--ui-dim);border-style:dashed;font-weight:600}& .chip-op{color:#e8730c;cursor:pointer;border-color:#f0c9a0;min-width:30px}& .chip-op:hover{color:#e8730c;background:#fff4ea;border-color:#e8730c}& .editor{flex:1;min-height:0;position:relative;overflow:hidden}& .editor>pre,& .editor>textarea{white-space:pre-wrap;word-break:break-all;tab-size:2;border:0;margin:0;padding:16px 18px;font:14px/2 SFMono-Regular,Menlo,Consolas,monospace;position:absolute;inset:0;overflow:auto}& .editor>pre{pointer-events:none;color:var(--ui-text)}& .editor>textarea{resize:none;color:#0000;caret-color:var(--ui-text);background:0 0;outline:none}& .editor>textarea::selection{background:#5a78ff40}& .hl-chord{color:var(--chord-color);background:var(--chord-bg);border-radius:3px;font-weight:700}& .hl-bar{color:#e8730c;font-weight:700}& .hl-sec{color:var(--sec-color)}& .hl-brk{color:#7c47cc;font-weight:700}& .hl-err{color:#d63a35;text-underline-offset:3px;font-weight:700;text-decoration:underline wavy #d63a35}& .hint{border-top:1px solid var(--ui-line2);color:var(--ui-dim);background:var(--ui-soft);padding:8px 18px;font-size:11.5px;line-height:1.9}& .hint code{background:var(--ui-line2);color:var(--ui-text);border-radius:4px;padding:1px 5px;font-size:11px}& .hint b{color:var(--mint)}& .viewbar{background:var(--ui-bg);border-bottom:1px solid var(--ui-line);flex-wrap:wrap;align-items:center;gap:10px;padding:8px 14px;display:flex}& .sheet{margin:0 auto;box-shadow:0 3px 16px #00000021}& .clr{align-items:center;gap:4px;display:inline-flex}& .clr-lb{color:var(--ui-dim);white-space:nowrap;font-size:12px;font-weight:700}& .cm-modal{z-index:100;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}& .modal-box{background:var(--ui-bg);border-radius:14px;flex-direction:column;width:620px;max-width:92vw;max-height:76vh;display:flex;overflow:hidden}& .modal-box header{border-bottom:1px solid var(--ui-line2);align-items:center;gap:10px;padding:14px 16px;display:flex}& .modal-box input{border:1.5px solid var(--ui-line2);background:var(--ui-bg);color:var(--ui-text);border-radius:8px;outline:none;flex:1;padding:9px 12px;font-size:14px}& .modal-box input:focus{border-color:var(--mint)}& .cm-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding:14px;display:grid;overflow:auto}& .cm-grid button{border:1.5px solid var(--ui-line2);cursor:pointer;background:#fff;border-radius:10px;padding:6px 2px}& .cm-grid button:hover{border-color:var(--mint);background:var(--mint-soft)}& .cm-grid .cs-dia{margin:0 auto}& .cm-grid p{color:#999;padding:20px}& .cs-tip{z-index:90;pointer-events:none;border:1.5px solid var(--mint);background:#fff;border-radius:10px;padding:4px 6px 2px;position:fixed;box-shadow:0 4px 14px #00000029}& .toast{color:#fff;z-index:200;opacity:0;pointer-events:none;background:#222;border-radius:20px;padding:9px 18px;font-size:13px;transition:opacity .18s;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}& .toast.on{opacity:1}@media (width>=1700px){& .cols{grid-template-columns:720px 1fr}}@media (width<=900px){& .cols{grid-template-columns:1fr;height:auto;min-height:0}& .pane-edit,& .pane-view{min-width:0}& .pane-edit{border-right:0;border-bottom:1px solid var(--border);height:auto}& .editor{min-height:72vh}& .editor>pre,& .editor>textarea{font-size:16px}& .pane-view{height:90vh}& .scroll-wrap{padding:8px}& .cm-narrow-note{background:color-mix(in oklab, var(--muted) 40%, transparent);border:1px solid var(--border);color:var(--muted-foreground);border-radius:8px;margin:0 0 12px;padding:9px 13px;font-size:12.5px;line-height:1.5;display:block}}}.chord-maker .sheet,.pp-page{--sheet-fs:13px;--row-unit:18px;font-family:iTool Sans,system-ui,sans-serif}.chord-maker .sheet{background:var(--paper);box-sizing:border-box;width:210mm;min-height:297mm;color:var(--ink);padding:14mm 12mm;position:relative}@media (width<=900px){.chord-maker .sheet{width:100%;min-height:0;padding:16px 12px 72px}}.chord-maker .cs-qr{opacity:.8;flex-direction:column;align-items:center;gap:2px;display:flex;position:absolute;bottom:8mm;right:11mm}.chord-maker .cs-qr img{width:54px;height:54px;display:block}.chord-maker .cs-qr span{color:#888;letter-spacing:-.2px;white-space:nowrap;font-size:7px}.chord-maker .cs-title{text-align:center;letter-spacing:-1px;margin:0 0 2px;font-size:30px;font-weight:900}.chord-maker .cs-artist{text-align:center;color:var(--ink);margin:0 0 16px;font-size:18px;font-weight:800}.chord-maker .cs-legend{text-align:right;color:#444;margin-bottom:6px;font-size:10px}.chord-maker .cs-chordbox{border:2px solid var(--ink);border-radius:14px;flex-wrap:wrap;justify-content:flex-start;gap:4px 10px;margin-bottom:26px;padding:14px 14px 10px;display:flex;position:relative}.chord-maker .cs-chordbox:before{content:"코드표";background:var(--paper);color:var(--ink);letter-spacing:.5px;padding:0 7px;font-size:11.5px;font-weight:800;position:absolute;top:-9px;left:16px}.chord-maker .cs-dia{display:block;overflow:visible}.chord-maker .cs-dia .dn{text-anchor:middle;fill:var(--chord-color);font:900 17px/1 system-ui,sans-serif}.chord-maker .cs-dia .fn{text-anchor:end;fill:var(--ink);font:700 9px/1 system-ui,sans-serif}.chord-maker .cs-dia .dq{text-anchor:middle;fill:#bbb;font:700 14px/1 system-ui,sans-serif}.chord-maker .cs-dia .gl{stroke:var(--ink);stroke-width:1.1px}.chord-maker .cs-dia .nut{fill:var(--ink)}.chord-maker .cs-dia .br{stroke:var(--ink);stroke-width:7px;stroke-linecap:round}.chord-maker .cs-dia .dot{fill:var(--ink)}.chord-maker .cs-dia .op{fill:none;stroke:var(--ink);stroke-width:1.2px}.chord-maker .cs-dia .mk{text-anchor:middle;fill:var(--ink);font:700 8px/1 system-ui,sans-serif}.chord-maker .cs-dia .fo{text-anchor:start;fill:var(--ink);font-family:system-ui,sans-serif;font-weight:700}.chord-maker .cs-line{font-size:var(--sheet-fs);line-height:calc(var(--row-unit) * 2);color:var(--lyric-color);margin:0}.chord-maker .cs-gap{height:var(--row-unit)}.chord-maker .cs-section{font-size:var(--sheet-fs);color:var(--sec-color);font-weight:700;line-height:var(--row-unit);margin:0;padding:0}.chord-maker .cs-break{break-after:column;height:0}.chord-maker .cs-meta{letter-spacing:-.01em;margin-bottom:10px;font-size:15px;font-weight:800}.chord-maker .cs-seg{vertical-align:top;grid-template-rows:15px 21px;justify-items:start;display:inline-grid}.chord-maker .cs-seg:before{content:"";grid-area:1/1}.chord-maker .cs-chord{white-space:nowrap;cursor:help;color:var(--chord-color);background:var(--chord-bg);border-radius:3px;grid-area:1/1;margin:0 .4em 0 -2px;padding:0 2px;font-weight:700;line-height:15px;position:relative}.chord-maker .cs-t{white-space:pre;line-height:21px;font-weight:var(--lyric-weight);grid-area:2/1}.chord-maker .cs-ko{letter-spacing:var(--ko-ls);font-style:normal}.chord-maker .cs-chord.bad{color:#d63a35;text-underline-offset:2px;background:0 0;text-decoration:underline wavy #d63a35}.chord-maker .cs-hasdia{padding-top:72px}.chord-maker .cs-inline-dia{z-index:2;pointer-events:none;background:var(--paper);box-shadow:-3px 0 0 var(--paper);margin-bottom:2px;position:absolute;bottom:100%;left:0}.chord-maker .cs-inline-dia .cs-dia{display:block}.chord-maker .cs-body{column-gap:10mm}.chord-maker .cs-line,.chord-maker .cs-section{break-inside:avoid}.chord-maker .cs-section{break-after:avoid}@media print{body *{visibility:hidden!important}.chord-maker .cm-print,.chord-maker .cm-print *{visibility:visible!important}.chord-maker .cm-print{position:absolute;inset:0}.chord-maker .cm-print .sheet{width:210mm;min-height:297mm;margin:0 auto;zoom:1!important;box-shadow:none!important;border:0!important}.chord-maker .cs-line{break-inside:avoid}}
