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