:root{--ink:#193326;--muted:#718176;--green:#1f704a;--dark-green:#125838;--lime:#b9e654;--cream:#fffdf7;--surface:#fff;--line:#dce8df;--soft:#eff7f1}*{box-sizing:border-box}body{margin:0;background:#f4f7f3;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px);background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-weight:800;font-size:20px;letter-spacing:-.5px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase;margin-top:1px}.brand-icon{width:37px;height:37px;display:grid;place-items:center;background:var(--green);color:#fff;border-radius:11px;font-size:20px}.topbar-actions{display:flex;gap:8px}.button{border:0;border-radius:9px;padding:10px 15px;font:700 14px inherit;cursor:pointer;transition:.18s}.button:hover{transform:translateY(-1px);filter:brightness(.97)}.button-primary{background:var(--green);color:#fff}.button-ghost{background:var(--soft);color:var(--dark-green)}.button-small{padding:7px 10px;font-size:12px}main{max-width:1440px;margin:auto;padding:42px max(5vw,24px) 60px}.intro{margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--green)}h1{font-size:34px;letter-spacing:-1.35px;margin:7px 0 7px}h2,h3,p{margin-top:0}.intro p{color:var(--muted);margin:0}.workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:25px}.editor-card,.preview-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 5px 18px rgba(24,67,42,.045)}.editor-card{padding:23px;align-self:start;position:sticky;top:20px}.card-heading{display:flex;gap:10px;margin-bottom:20px}.card-heading.compact{margin-bottom:16px}.card-heading h2{font-size:15px;text-transform:uppercase;letter-spacing:.075em;margin:1px 0 3px}.card-heading p,.tip{font-size:12px;line-height:1.45;color:var(--muted);margin-bottom:0}.heading-number{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--lime);font-size:11px;font-weight:900}.field-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--muted);margin:15px 0 7px}.text-input,.select-input,.lyrics-input{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 11px;background:#fcfefc;color:var(--ink);font:inherit;outline:0}.text-input:focus,.select-input:focus,.lyrics-input:focus{border-color:#71af8a;box-shadow:0 0 0 3px #e5f3e9}.text-input{font-size:14px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.select-input{font-size:14px;cursor:pointer}.divider{height:1px;background:var(--line);margin:24px 0}.chord-bank{display:flex;gap:8px;flex-wrap:wrap}.chord{padding:8px 12px;border:1px solid #d0e6d7;border-radius:8px;background:var(--soft);color:var(--dark-green);font-weight:800;font-size:14px;cursor:grab;user-select:none}.chord:active{cursor:grabbing}.tip{margin-top:12px}.lyrics-input{resize:vertical;min-height:82px;line-height:1.5;font-family:Georgia,serif}.preview-card{padding:42px 6%;min-height:620px;background:var(--cream)}.preview-header{display:flex;justify-content:space-between;gap:20px}.preview-header h2{font-size:31px;letter-spacing:-1px;margin:5px 0 4px}.preview-header p{color:var(--muted);font-size:14px;margin:0}.song-meta{display:flex;gap:20px;text-align:right;font-size:10px;letter-spacing:.08em;color:var(--muted)}.song-meta b{display:block;font-size:18px;letter-spacing:0;color:var(--ink);margin-top:3px}.preview-rule{height:2px;background:var(--ink);margin:25px 0 26px}.section-preview-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}.section-preview-heading h3{font-size:15px;letter-spacing:.11em;color:var(--green);margin:4px 0 0}.bar-caption{font-size:12px;color:var(--muted)}.bar-grid{display:flex;flex-wrap:wrap;gap:0;margin:22px 0 27px;border-top:1px solid #c9d6cb;border-bottom:1px solid #c9d6cb;padding:15px 0}.bar{min-width:158px;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 10px;border-right:1px solid var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.bar:first-child{border-left:1px solid var(--ink)}.beat{width:30px;height:34px;display:grid;place-items:center;position:relative;border-radius:5px;cursor:default}.beat-dot{font-size:24px;line-height:1;color:#9eafa1;transform:translateY(-2px)}.beat.dragover{background:#e3f4e6;outline:1px dashed var(--green)}.beat .placed-chord{position:absolute;inset:0;display:grid;place-items:center;border-radius:5px;background:#dff2e4;color:var(--dark-green);font:900 14px/1 Inter,ui-sans-serif,sans-serif;cursor:pointer}.lyrics-preview{white-space:pre-line;border-top:1px dashed #cbd8ce;padding-top:17px;min-height:70px;font:17px/1.75 Georgia,serif;color:#34463a}.preview-footer{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#1e4530;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:850px){.workspace{grid-template-columns:1fr}.editor-card{position:static}.preview-card{padding:30px 6%}}@media(max-width:560px){.topbar{padding:0 18px}.button-ghost{display:none}main{padding:30px 18px}.intro h1{font-size:28px}.preview-header h2{font-size:25px}.preview-header{flex-direction:column}.song-meta{text-align:left}.preview-footer{align-items:start;flex-direction:column}.bar-grid{padding:10px 0}.bar{min-width:132px;padding:4px 6px}.beat{width:27px}}@media print{@page{size:A4;margin:15mm}body{background:#fff}.topbar,.intro,.editor-card,.preview-footer{display:none!important}main{padding:0;max-width:none}.workspace{display:block}.preview-card{box-shadow:none;border:0;border-radius:0;padding:0;min-height:0}.bar{break-inside:avoid}}
