:root{font-family:Trebuchet MS,Segoe UI Variable,sans-serif;color:#172f2a;background:#e9efec;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #172f2a;--muted: #58716a;--line: #cbd7d1;--paper: #fffefa;--green: #174a43;--green-light: #2e7064;--coral: #c84e3a;--gold: #f0bf48}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,.workspace:focus-visible{outline:3px solid #e3893b;outline-offset:3px}.app-shell{display:flex;flex-direction:column;height:100dvh;min-height:560px;background-color:#e9efec;background-image:repeating-linear-gradient(135deg,rgb(23 74 67 / 2%) 0 1px,transparent 1px 9px)}.app-header{z-index:2;display:flex;min-height:78px;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(16px,3vw,42px);color:#f6f7ed;background:var(--green);border-bottom:4px solid var(--gold)}.brand-lockup{display:flex;align-items:center;gap:12px;min-width:0;color:inherit;text-decoration:none}.brand-mark{display:grid;width:42px;flex:0 0 42px;aspect-ratio:1;place-items:center;border:2px solid #f0bf48;border-radius:50%;color:#f0bf48;font-family:Georgia,serif;font-size:1.4rem;font-weight:700}.brand-lockup h1,.brand-lockup .brand-name{margin:0;font-family:Georgia,serif;font-size:1.35rem}.brand-lockup p{margin:3px 0 0;color:#c7dad2;font-size:.78rem}.language-switch{display:flex;flex-wrap:wrap;align-items:center;flex-shrink:0;max-width:100%;gap:5px;font-size:.78rem}.language-switch span{margin-right:5px;color:#c7dad2}.language-switch button{min-width:44px;min-height:44px;padding:0 7px;border:1px solid #71948b;border-radius:4px;color:#edf4ef;background:transparent;white-space:nowrap}.language-switch button[aria-pressed=true]{color:#193b35;border-color:var(--gold);background:var(--gold)}.pwa-actions{display:flex;gap:6px}.pwa-actions button{min-height:40px;padding:6px 10px;border:1px solid #71948b;border-radius:4px;color:#edf4ef;background:transparent}.pwa-actions button[hidden]{display:none}.support-button{min-height:44px;padding:7px 12px;border:1px solid var(--gold);border-radius:4px;color:#193b35;background:var(--gold);font-size:.78rem;font-weight:700}.help-button{display:inline-flex;min-height:44px;flex-shrink:0;align-items:center;gap:6px;padding:0 12px 0 9px;border:1px solid #71948b;border-radius:22px;color:#edf4ef;background:transparent;font-size:.85rem;font-weight:700}.help-button:hover{background:#ffffff1f}.help-button .lucide{width:22px;height:22px}.help-dialog{width:min(640px,calc(100vw - 24px));max-height:min(88vh,780px);padding:0}.help-dialog[open]{display:flex;flex-direction:column}.help-dialog .dialog-heading{margin:0;padding:16px 16px 12px 20px;border-bottom:1px solid var(--line)}.help-dialog .dialog-heading h2{font-size:1.45rem}.app-dialog .help-close{display:inline-flex;flex-shrink:0;align-items:center;gap:4px;padding:7px 12px 7px 8px;font-size:.95rem}.help-content{min-height:0;flex:1 1 auto;overflow-y:auto;padding:4px 20px 8px;line-height:1.5}.help-section h3{margin:18px 0 6px;color:var(--green);font-size:1.05rem}.help-section ol,.help-section ul{margin:0;padding-left:1.3em}.help-section li+li{margin-top:4px}.help-section p{margin:0}.help-keys{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:8px 14px;margin:0}.help-keys dt{display:flex;align-items:center;gap:4px;white-space:nowrap}.help-keys dd{margin:0}.help-keys kbd{display:inline-block;min-width:2em;padding:2px 7px;border:1px solid #9aada4;border-bottom-width:3px;border-radius:5px;color:var(--ink);background:#fff;font-family:inherit;font-size:.9rem;font-weight:700;line-height:1.4;text-align:center}.help-colophon{margin:20px 0 4px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem}.app-dialog .help-start{min-height:52px;margin:0 20px 18px;border-color:#d9a52c;color:#193b35;background:var(--gold);font-size:1.1rem;font-weight:800}@media(max-width:420px){.help-keys{grid-template-columns:1fr;gap:2px}.help-keys dd{margin-bottom:8px}}.donate-link{display:inline-flex;min-height:44px;max-width:100%;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--gold);border-radius:4px;color:#193b35;background:var(--gold);font-size:.9rem;font-weight:700;text-align:center;text-decoration:none;overflow-wrap:anywhere}.donate-link[hidden]{display:none}.donate-link:hover{background:#f2ca65}.donate-link:focus-visible{outline:3px solid var(--green);outline-offset:3px}.file-import-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:7px 8px;border:1px solid #9aada4;border-radius:4px;color:var(--green);background:#f0f5ef;font-size:.76rem;font-weight:700;cursor:pointer}.file-import-button{position:relative}.file-import-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.file-import-button:focus-within{outline:3px solid #e3893b;outline-offset:3px}.legal-note{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);color:#73847d;font-size:.68rem}.legal-note p{margin:4px 0 0}.legal-note p a{color:var(--green-light)}.legal-links{display:flex;gap:12px;margin-top:8px}.legal-links a{color:var(--green-light);font-weight:700}.sponsor-banner{display:flex;width:min(1120px,100%);min-height:72px;align-items:center;gap:12px;margin:12px auto 0;padding:8px 12px;border:1px solid var(--line);border-left:4px solid var(--gold);color:var(--ink);background:var(--paper)}.sponsor-banner[hidden]{display:none!important}.sponsor-label{flex:0 0 auto;color:var(--muted);font-size:.68rem;font-weight:800;text-transform:uppercase}.sponsor-banner a{display:flex;min-width:0;flex:1;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.sponsor-banner img{width:120px;height:54px;flex:0 0 120px;object-fit:contain}.sponsor-name{overflow-wrap:anywhere;font-size:.84rem;font-weight:700}.sponsor-dismiss{min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:4px;color:var(--muted);background:transparent}.app-dialog{width:min(560px,calc(100vw - 24px));max-height:min(80vh,720px);padding:20px;border:1px solid var(--line);border-top:5px solid var(--coral);color:var(--ink);background:var(--paper);box-shadow:0 20px 70px #0f2c244d}.app-dialog::backdrop{background:#0f27218c}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.dialog-heading h2{margin:0;font-family:Georgia,serif;font-size:1.3rem}.app-dialog button{min-height:44px;padding:7px 8px;border:1px solid #9aada4;border-radius:4px;color:var(--green);background:#f0f5ef;font-weight:700}.songs-empty{padding:12px 0;color:var(--muted)}.app-dialog>p{color:var(--muted);font-size:.83rem}.play-button{border-color:#e7b644;color:#1c3e36;background:#e7b644}.play-button:hover{background:#f2ca65}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}button .lucide{width:20px;height:20px;flex:0 0 20px}.score-actions button,.toast{position:fixed;inset:auto;bottom:max(24px,env(safe-area-inset-bottom));left:50%;z-index:20;max-width:calc(100vw - 32px);margin:0;overflow:visible;padding:12px 22px;border:0;border-radius:999px;color:#fff;background:var(--ink);box-shadow:0 6px 24px #172f2a4d;font-size:1.1rem;font-weight:800;text-align:center;pointer-events:none;transform:translate(-50%);animation:toast-in .2s ease-out}.toast[hidden]{display:none}@keyframes toast-in{0%{opacity:0;translate:0 12px}}@media(prefers-reduced-motion:reduce){.toast{animation:none}}@media(max-width:720px){.app-shell{min-height:540px}.app-header{min-height:70px;flex-wrap:wrap;padding:9px 12px;gap:8px}.brand-lockup{gap:8px}.brand-mark{width:34px;font-size:1.15rem}.brand-lockup h1,.brand-lockup .brand-name{font-size:1.1rem}.brand-lockup p{max-width:180px;font-size:.65rem}.language-switch{gap:2px}.pwa-actions{flex-wrap:wrap}.pwa-actions button{min-height:36px;padding:5px 7px;font-size:.68rem}.support-button{min-height:40px;padding:6px 9px;font-size:.7rem}.language-switch span{display:none}.language-switch button{min-width:42px;min-height:42px;padding:0 7px}}@media print{.app-header,.player-bar,.sponsor-banner,.toast{display:none!important}}
