.sg{max-width:560px;margin:14px auto 0;text-align:left;color:var(--ink)}
.sg-card{position:relative;background:var(--paper);border:2px dashed var(--line);border-radius:var(--r);padding:20px 18px 18px;box-shadow:0 0 0 4px var(--gold-a),0 18px 40px var(--shadow);overflow:hidden}
.sg-card h2{margin:6px 0 12px;font-size:clamp(22px,5.4vw,28px);line-height:1.15;font-weight:900;color:var(--pine);letter-spacing:-.2px;overflow-wrap:anywhere}
.sg-prog{position:absolute;left:0;right:0;top:0;height:6px;background:var(--line)}
.sg-prog i{display:block;height:100%;background:var(--berry);border-radius:0 6px 6px 0;transition:width .3s}
.sg-sub{margin:-4px 0 12px;color:var(--muted);font-size:15px;line-height:1.45}
.sg-q{margin:16px 0 8px;font-weight:800;font-size:15px;color:var(--pine)}
.sg-q small{font-weight:600;color:var(--muted);margin-left:6px}
.sg-field{display:block;margin:0 0 4px}
.sg-field>span{display:flex;justify-content:space-between;font-weight:800;font-size:15px;color:var(--pine);margin-bottom:6px}
.sg-field em{font-style:normal;font-weight:600;color:var(--muted);font-size:13px}
.sg-field input,.sg-field textarea{width:100%;font:inherit;font-size:17px;color:var(--ink);background:var(--white);border:2px solid var(--line);border-radius:14px;padding:12px 14px;outline:0;resize:vertical}
.sg-field input:focus,.sg-field textarea:focus{border-color:var(--needle);box-shadow:0 0 0 3px rgba(47,154,99,.18)}
.sg-chips{display:flex;flex-wrap:wrap;gap:8px}
.sg-chip{font:inherit;font-size:15px;font-weight:700;color:var(--pine);background:var(--white);border:2px solid var(--line);border-radius:999px;padding:9px 15px;min-height:44px;cursor:pointer}
.sg-chip.sm{font-size:13px;padding:6px 11px;min-height:36px;color:var(--muted)}
.sg-chip[aria-pressed=true]{background:var(--pine);border-color:var(--pine);color:var(--cream)}
.sg-chip:disabled{opacity:.45}
.sg-hints{margin:8px 0 14px}
.sg-styles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sg-style{display:flex;align-items:center;gap:6px;background:var(--white);border:2px solid var(--line);border-radius:16px;padding:8px 8px 8px 12px;cursor:pointer;min-height:64px}
.sg-style[aria-pressed=true]{border-color:var(--berry);background:#fff1ee;box-shadow:0 0 0 2px var(--berry) inset}
.sg-st{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.sg-st b{font-size:14.5px;color:var(--pine)}
.sg-st small{font-size:12px;color:var(--muted);margin-top:2px}
.sg-sp{flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:0;background:var(--pine);color:var(--gold);font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sg-sp[aria-pressed=true]{background:var(--berry);color:var(--white)}
.sg-err{margin:10px 0 0;color:var(--berry-d);font-weight:700;font-size:15px;min-height:0}
.sg-err:empty{display:none}
.sg-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;border:0;border-radius:999px;background:var(--berry);color:var(--white);font:inherit;font-size:19px;font-weight:900;line-height:1.2;padding:14px 20px;min-height:54px;cursor:pointer;text-decoration:none;text-align:center;box-shadow:0 5px 0 var(--berry-d);transition:transform .1s}
.sg-btn:active{transform:translateY(3px);box-shadow:0 2px 0 var(--berry-d)}
.sg-btn.gold{background:var(--gold);color:var(--ink);box-shadow:0 5px 0 var(--gold-d)}
.sg-btn.dark{background:var(--pine);color:var(--cream);box-shadow:0 5px 0 var(--pine-d)}
.sg-btn.ghost{background:var(--white);color:var(--pine);border:2px solid var(--line);box-shadow:none;font-size:16px;min-height:48px;padding:10px 16px}
.sg-nav{display:flex;align-items:flex-end;gap:10px}
.sg-nav .sg-btn{flex:1}
.sg-back{flex:0 0 auto;font:inherit;font-weight:800;font-size:15px;color:var(--muted);background:none;border:0;padding:16px 6px;cursor:pointer}
.sg-fine{margin:12px 0 0;font-size:13px;line-height:1.4;color:var(--muted);text-align:center}
.sg-fine a{color:var(--muted)}
.sg-bt a{color:var(--on-dark-muted)}
/* examples and my songs under the first question */
.sg-ex,.sg-mine{margin-top:14px;background:var(--cream-a1);border:2px solid var(--cream-a2);border-radius:var(--r);padding:12px 14px}
.sg-exh{margin:0 0 8px;font-weight:800;font-size:15px;color:var(--gold)}
.sg-exrow{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.sg-exrow::-webkit-scrollbar{display:none}
.sg-pill{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:14px;font-weight:700;color:var(--cream);background:var(--cream-a1);border:2px solid var(--cream-a2);border-radius:999px;padding:8px 13px;min-height:42px;cursor:pointer;white-space:nowrap}
.sg-pill[aria-pressed=true]{background:var(--berry);border-color:var(--berry);color:var(--white)}
.sg-pp{font-size:11px;width:14px;display:inline-block;text-align:center}
.sg-minerow{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;font:inherit;font-size:15px;color:var(--cream);background:none;border:0;border-top:1px solid var(--cream-a2);padding:10px 0;cursor:pointer;text-align:left}
.sg-minerow:first-of-type{border-top:0}
.sg-minerow span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-minerow b{flex:0 0 auto;color:var(--gold);font-size:14px}
/* making the song */
.sg-gen{text-align:center}
.sg-eq{display:flex;justify-content:center;align-items:flex-end;gap:5px;height:54px;margin:6px 0 8px}
.sg-eq i{width:8px;border-radius:4px;background:var(--needle);animation:sgeq 1s ease-in-out infinite}
.sg-eq i:nth-child(2){animation-delay:.15s;background:var(--berry)}.sg-eq i:nth-child(3){animation-delay:.3s;background:var(--gold-d)}.sg-eq i:nth-child(4){animation-delay:.45s}.sg-eq i:nth-child(5){animation-delay:.6s;background:var(--berry)}.sg-eq i:nth-child(6){animation-delay:.75s;background:var(--gold-d)}.sg-eq i:nth-child(7){animation-delay:.9s}
@keyframes sgeq{0%,100%{height:12px}50%{height:52px}}
@media (prefers-reduced-motion:reduce){.sg-eq i{animation:none;height:30px}}
.sg-status{margin:0 0 12px;font-weight:700;color:var(--muted);min-height:1.5em}
.sg-bar,.sg-bar2{height:10px;border-radius:999px;background:var(--line);overflow:hidden}
.sg-bar i,.sg-bar2 i{display:block;height:100%;width:0;background:var(--needle);border-radius:999px;transition:width .5s}
.sg-tip{margin-top:14px;text-align:left;background:#fff6d9;border:2px dashed var(--gold-d);border-radius:14px;padding:10px 12px;font-size:15px;line-height:1.4}
/* the song */
.sg-head{display:flex;gap:14px;align-items:center;margin-top:4px}
.sg-cover{flex:0 0 96px;width:96px;height:96px;border-radius:16px;object-fit:cover;background:var(--pine2);border:3px solid var(--white);box-shadow:0 4px 12px var(--shadow-soft)}
.sg-for{margin:0;font-size:14px;font-weight:800;color:var(--berry-d);overflow-wrap:anywhere}
.sg-card h2.sg-title{margin:2px 0 2px;font-size:clamp(20px,5vw,25px)}
.sg-meta{margin:0;font-size:14px;color:var(--muted);font-weight:700}
.sg-vers{display:flex;gap:6px;margin:14px 0 0;background:var(--line);border-radius:999px;padding:4px}
.sg-vers button{flex:1;font:inherit;font-weight:800;font-size:15px;border:0;border-radius:999px;background:none;color:var(--muted);padding:9px 6px;min-height:42px;cursor:pointer}
.sg-vers button[aria-selected=true]{background:var(--white);color:var(--pine);box-shadow:0 1px 3px var(--shadow-soft)}
.sg-player{display:flex;align-items:center;gap:14px;margin-top:14px}
.sg-play{flex:0 0 64px;width:64px;height:64px;border-radius:50%;border:0;background:var(--berry);color:var(--white);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 5px 0 var(--berry-d);display:flex;align-items:center;justify-content:center;padding:0 0 0 2px}
.sg-play:active{transform:translateY(3px);box-shadow:0 2px 0 var(--berry-d)}
.sg-pcol{flex:1;min-width:0}
.sg-track{position:relative;height:28px;cursor:pointer;display:flex;align-items:center}
.sg-track:before{content:"";position:absolute;left:0;right:0;height:10px;border-radius:999px;background:var(--line)}
.sg-fill{position:absolute;left:0;height:10px;border-radius:999px;background:var(--needle);width:0;max-width:100%}
.sg-lock{position:absolute;top:50%;transform:translate(-50%,-50%);font-size:15px;line-height:1;background:var(--paper);border-radius:50%;padding:2px}
.sg-lock[hidden]{display:none}
.sg-time{display:block;font-size:13px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.sg-note{margin:10px 0 0;font-size:14px;color:var(--muted);line-height:1.4}
.sg-note b{color:var(--berry-d)}
.sg-unlock{margin-top:16px;background:#fff6d9;border:2px dashed var(--gold-d);border-radius:var(--r);padding:14px 14px 16px}
.sg-unlock.done{background:#eaf7ee;border-color:var(--needle)}
.sg-unlock h3{margin:0 0 4px;font-size:20px;font-weight:900;color:var(--pine)}
.sg-what{margin:0 0 10px;font-size:15px;line-height:1.4;color:var(--muted)}
.sg-way{margin:0 0 8px;font-size:16px;line-height:1.35}
.sg-way b{color:var(--pine)}
.sg-cnt{margin:6px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}
.sg-or{display:flex;align-items:center;gap:10px;margin:16px 0 0;color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.sg-or:before,.sg-or:after{content:"";flex:1;height:2px;background:var(--line)}
.sg-dl{display:flex;gap:8px}
.sg-dl .sg-btn{flex:1}
.sg-msg{margin:10px 0 0;font-size:14px;font-weight:700;color:var(--pine);text-align:center}
.sg-msg:empty{display:none}
.sg-linkrow{display:flex;gap:8px;align-items:center}
.sg-linkrow input{flex:1;min-width:0;font:inherit;font-size:14px;border:2px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--white);color:var(--ink)}
.sg-pulse{animation:sgpulse .9s ease-out 1}
@keyframes sgpulse{0%{box-shadow:0 0 0 0 rgba(216,57,75,.55)}100%{box-shadow:0 0 0 18px rgba(216,57,75,0)}}
.sg-lyrics{margin-top:16px;border-top:2px dashed var(--line);padding-top:10px}
.sg-lyrics summary{font-weight:900;font-size:17px;color:var(--pine);cursor:pointer;padding:6px 0}
.sg-stanza{margin:10px 0 14px}
.sg-stanza p{margin:0;font-size:16px;line-height:1.55}
.sg-tag{display:inline-block;margin-bottom:2px;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--gold-d)}
.sg-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:14px}
.sg-link{font:inherit;font-size:14px;font-weight:800;color:var(--berry-d);background:none;border:0;padding:8px 0;cursor:pointer;text-decoration:underline}
/* page chrome around the tool */
.sg-hero{padding:14px 0 26px}
.sg-hero h1{white-space:normal;font-size:clamp(25px,6.2vw,36px);margin:4px auto 6px;max-width:16em}
.sg-hero .lede{margin-top:0}
.sg-hero .lede[hidden]{display:none}
@media (max-width:360px){.sg-styles{grid-template-columns:1fr}.sg-card{padding:18px 14px 16px}}
/* list price, points and tasks */
.sg-price{display:flex;align-items:stretch;gap:8px;margin:2px 0 8px}
.sg-price span{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--white);border:2px solid var(--line);border-radius:14px;padding:8px 6px;line-height:1.15}
.sg-price span:last-child{border-color:var(--needle);background:#eaf7ee}
.sg-price b{font-size:22px;font-weight:900;color:var(--pine)}
.sg-price small{font-size:12px;font-weight:700;color:var(--muted);margin-top:2px;text-align:center}
.sg-price i{align-self:center;font-style:normal;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase}
.sg-pts{margin:10px 0 6px;font-size:15px;font-weight:700;color:var(--muted)}
.sg-pts b{font-size:22px;font-weight:900;color:var(--pine)}
.sg-th{margin:14px 0 6px;font-size:13px;font-weight:900;letter-spacing:.5px;text-transform:uppercase;color:var(--gold-d)}
.sg-tasks{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sg-task{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;background:var(--white);border:2px solid var(--line);border-radius:14px;padding:8px 10px}
.sg-ti{font-size:20px;line-height:1}
.sg-tl{font-size:14px;font-weight:800;line-height:1.25;color:var(--pine);min-width:0}
.sg-tl small{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-top:1px}
.sg-tp{font-size:15px;font-weight:900;color:var(--berry-d);white-space:nowrap}
.sg-tb{font:inherit;font-size:13px;font-weight:800;color:var(--white);background:var(--pine);border:0;border-radius:999px;padding:8px 12px;min-height:36px;cursor:pointer;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center}
.sg-ptscard{margin-top:14px;background:#fff6d9;border:2px dashed var(--gold-d);border-radius:var(--r);padding:12px 14px 14px;color:var(--ink)}
.sg-ptscard .sg-th{margin-top:0}
.sg-how{margin-top:10px}
.sg-how summary{font-weight:800;font-size:15px;color:var(--pine);cursor:pointer;padding:6px 0}
.sg-how .sg-tasks{margin-top:6px}
