:root{--primary:#0b6b5f;--primary-dark:#07534a;--primary-soft:#e0f1ed;--bg:#f5f7f6;--surface:#fff;--text:#152522;--muted:#6d7b78;--line:#e2e8e6;--accent:#ffb45c;--danger:#d65f55;--shadow:0 8px 30px rgba(18,48,43,.07);--r:18px}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font-family:"DM Sans",system-ui,sans-serif;-webkit-font-smoothing:antialiased}.app-main{min-height:calc(100vh - 68px)}.app-header{position:sticky;top:0;z-index:100;height:68px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.app-header-inner{width:min(1180px,calc(100% - 32px));height:100%;margin:auto;display:flex;align-items:center;gap:35px}.app-brand{display:flex;align-items:center;gap:9px;color:var(--text);text-decoration:none;font-size:1.08rem}.app-brand>span:last-child b{color:var(--primary)}.app-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--primary);color:white;font-size:1.3rem}.app-tabs{display:flex;align-items:center;gap:5px}.app-tabs a{padding:9px 14px;border-radius:10px;color:var(--muted);font-size:.84rem;font-weight:700;text-decoration:none}.app-tabs a.active{background:var(--primary-soft);color:var(--primary)}.app-new{margin-left:auto;display:flex;align-items:center;gap:7px;padding:10px 15px;border-radius:11px;background:var(--primary);color:#fff;text-decoration:none;font-size:.83rem}.app-new span{font-size:1.15rem}.app-toast{position:fixed;z-index:200;top:78px;left:50%;width:min(520px,calc(100% - 24px));transform:translateX(-50%)}.app-toast .alert{box-shadow:var(--shadow);border:0;border-radius:14px}.bottom-nav{display:none}.app-dashboard{width:min(1120px,calc(100% - 32px));margin:auto;padding:38px 0 80px}.dashboard-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.today-label,.app-section-title>div>span{display:block;color:var(--primary);font-size:.65rem;font-weight:800;letter-spacing:.16em;margin-bottom:5px}.dashboard-head h1{margin:0;font-size:2.2rem;letter-spacing:-.055em}.dashboard-head p{margin:7px 0 0;color:var(--muted)}.round-action{display:none}.app-search{display:flex;align-items:center;gap:10px;height:58px;padding:7px 8px 7px 18px;background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.app-search svg,.nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app-search svg{color:var(--muted)}.app-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:.95rem}.app-search button{height:42px;padding:0 20px;border:0;border-radius:12px;background:var(--primary);color:white;font-weight:700}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0 36px}.quick-grid>a{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:16px;color:var(--text);text-decoration:none}.quick-grid>a>span:last-child{margin-left:auto;color:#9aa5a2;font-size:1.5rem}.quick-grid div{display:flex;flex-direction:column}.quick-grid b{font-size:.88rem}.quick-grid small{color:var(--muted);font-size:.7rem;margin-top:2px}.quick-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;font-size:1.2rem}.quick-icon.coral{background:#ffe6df;color:#bc5549}.quick-icon.mint{background:var(--primary-soft);color:var(--primary)}.quick-icon.amber{background:#fff0d8;color:#a36a17}.app-section{margin-top:32px}.app-section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.app-section-title h2{margin:0;font-size:1.38rem;letter-spacing:-.04em}.app-section-title>a{color:var(--primary);font-size:.78rem;font-weight:800;text-decoration:none;padding:7px 10px;border-radius:9px;background:var(--primary-soft)}.event-carousel{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.mobile-event{min-height:175px;display:flex;flex-direction:column;padding:18px;border-radius:18px;background:var(--surface);border:1px solid var(--line);color:var(--text);text-decoration:none;box-shadow:0 4px 15px rgba(18,48,43,.035)}.mobile-event.featured{background:linear-gradient(145deg,#0b6b5f,#084e47);color:white;border:0}.event-top,.event-bottom{display:flex;align-items:center;justify-content:space-between}.event-type{font-size:.63rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;opacity:.75}.event-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f0f4f2;color:var(--primary)}.featured .event-arrow{background:#ffffff20;color:white}.mobile-event h3{font-size:1.08rem;margin:22px 0 5px}.mobile-event p{font-size:.75rem;opacity:.7;margin:0}.event-bottom{margin-top:auto;padding-top:13px;border-top:1px solid #dfe6e3;font-size:.7rem;opacity:.75}.featured .event-bottom{border-color:#ffffff2b}.category-scroll{display:flex;gap:8px;overflow:auto;padding-bottom:12px;scrollbar-width:none}.category-scroll a{white-space:nowrap;padding:8px 13px;border-radius:99px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:.76rem;font-weight:700;text-decoration:none}.category-scroll a.active{background:var(--primary);border-color:var(--primary);color:white}.app-song-list{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:18px}.app-song{display:flex;align-items:center;gap:13px;padding:13px 15px;border-bottom:1px solid #edf1f0;color:var(--text);text-decoration:none}.app-song:last-child{border-bottom:0}.app-song:hover{background:#f8faf9}.song-cover{display:grid;place-items:center;width:45px;height:45px;flex:0 0 auto;border-radius:13px;background:var(--primary-soft);color:var(--primary);font-weight:800}.app-song>div{min-width:0;flex:1}.app-song h3{font-size:.9rem;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-song p{font-size:.72rem;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.song-key{padding:6px 9px;border-radius:9px;background:#fff0d8;color:#8b5a16;font-size:.72rem;font-weight:800}.song-more{color:#a5afac;font-size:1.4rem}.app-empty{text-align:center;padding:50px 20px}.app-empty>span{font-size:2rem;color:var(--primary)}.app-empty h3{font-size:1.05rem}.app-empty p{color:var(--muted);font-size:.8rem}.app-empty a{display:inline-flex;padding:10px 14px;border-radius:10px;background:var(--primary);color:white;text-decoration:none;font-size:.8rem;font-weight:700}
/* Shared internal pages */.container-wide{width:min(1120px,calc(100% - 32px));margin:auto}.container-narrow{width:min(760px,calc(100% - 32px));margin:auto}.page-space{padding-top:32px;padding-bottom:90px}.back-link,.mb-4>a{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;margin-bottom:18px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--primary)!important;font-size:.78rem;font-weight:800;text-decoration:none!important}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.page-title h1,.mb-4 h1{font-size:2rem;letter-spacing:-.055em;margin:0}.page-title p,.mb-4 p{color:var(--muted);font-size:.88rem;margin:7px 0 0}.kicker{display:block;color:var(--primary);font-size:.64rem;font-weight:800;letter-spacing:.15em;margin-bottom:5px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border:0;border-radius:11px;font-size:.8rem;font-weight:800;text-decoration:none;cursor:pointer}.button-primary,.btn-primary{background:var(--primary)!important;border-color:var(--primary)!important;color:white}.button-light{background:white;color:var(--primary);border:1px solid var(--line)}.form-card,.editor-card,.add-panel{padding:24px;background:white;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow)}label,.form-label{display:block;font-size:.76rem;font-weight:800;margin-bottom:6px}.form-control,.form-select{min-height:45px;border-color:var(--line);border-radius:11px}.form-control:focus,.form-select:focus{border-color:var(--primary);box-shadow:0 0 0 .2rem #0b6b5f16}.form-actions{display:flex;justify-content:flex-end;gap:8px}.chord-editor{font:500 .9rem/1.6 "Cascadia Mono",Consolas,monospace}.chord-preview{min-height:400px;max-height:600px;overflow:auto;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fafcfb}.field-link{font-size:.7rem;color:var(--primary);font-weight:800;text-decoration:none}
/* Repertoires */.repertoire-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.repertoire-card{min-height:190px;display:flex;flex-direction:column;padding:18px;background:white;border:1px solid var(--line);border-radius:18px;color:var(--text);text-decoration:none}.card-top,.card-foot{display:flex;justify-content:space-between;align-items:center}.type-pill{padding:5px 9px;border-radius:99px;background:var(--primary-soft);color:var(--primary);font-size:.62rem;font-weight:800}.status-dot{width:9px;height:9px;border-radius:50%;background:#aab3b1}.status-dot.confirmed{background:#3eaa70}.repertoire-card h2{font-size:1.08rem;margin:22px 0 5px}.repertoire-card p{color:var(--muted);font-size:.75rem}.card-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:.72rem}.card-foot b{color:var(--primary)}.repertoire-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:26px;margin-bottom:22px;border-radius:20px;background:linear-gradient(145deg,#0b6b5f,#084e47);color:white}.type-pill.inverse{background:#ffffff20;color:white}.repertoire-hero h1{font-size:2rem;margin:10px 0 5px}.repertoire-hero p{opacity:.72;margin:0;font-size:.8rem}.hero-actions{display:flex;gap:8px}.button-gold{background:var(--accent);color:#36230b}.button-ghost{background:#ffffff15;color:white;border:1px solid #ffffff44}.repertoire-layout{display:grid;grid-template-columns:1fr 350px;gap:18px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:13px}.section-heading h2{font-size:1.2rem;margin:0}.setlist{display:flex;flex-direction:column;gap:8px}.setlist-item{display:flex;align-items:center;gap:12px;padding:12px;background:white;border:1px solid var(--line);border-radius:14px}.order-number{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--primary-soft);color:var(--primary);font-weight:800}.setlist-copy{min-width:0;flex:1}.setlist-copy small{color:var(--primary);font-size:.6rem;font-weight:800}.setlist-copy h3{font-size:.87rem;margin:2px 0}.setlist-copy p{font-size:.7rem;color:var(--muted);margin:0}.key-tag{padding:6px 9px;border-radius:8px;background:#fff0d8;color:#8b5a16;font-size:.7rem;font-weight:800}.item-actions{display:flex}.item-actions form{display:flex}.item-actions button{border:0;background:transparent;padding:6px;color:var(--muted)}.item-actions .danger{color:var(--danger)}.add-panel{position:sticky;top:88px;height:max-content;box-shadow:none}.add-panel h2{font-size:1.15rem}.add-panel label{margin-top:14px}.add-panel>.button,.add-panel form>.button{margin-top:18px}.empty-state,.empty-search{text-align:center;padding:45px;color:var(--muted)}
/* Chords/categories */.chord-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:11px}.chord-card{padding:14px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--text)}.chord-card strong{font-size:1.25rem}.mini-diagram{height:140px}.chord-svg{width:100%;height:100%}.compact-search{display:flex;align-items:center;width:240px;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:white}.compact-search input{width:100%;border:0;outline:0}.chord-card[hidden]{display:none}.category-create{margin-bottom:15px}.category-list{overflow:hidden;background:white;border:1px solid var(--line);border-radius:17px}.category-list article{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--line)}.category-list article:last-child{border:0}.category-color{width:12px;height:42px;border-radius:5px;background:var(--category-color)}.category-list article>div{flex:1}.category-list h2{font-size:.88rem;margin:0}.category-list p{font-size:.7rem;color:var(--muted);margin:2px 0 0}.category-delete{border:0;background:#fff0ee;color:var(--danger);border-radius:8px;padding:7px 9px;font-size:.7rem}.category-used{font-size:.68rem;color:var(--muted)}
/* Player */.player{min-height:100vh;background:var(--bg)}.play-progress{background:var(--primary);color:white;padding:8px}.play-progress .container-fluid{display:flex;justify-content:space-between}.play-progress a{color:white;text-decoration:none;font-size:.75rem;font-weight:700}.player-head{position:sticky;top:68px;z-index:40;padding:8px 0;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.player-head .container-fluid{max-width:1120px}.player-back,.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 11px;border:0;border-radius:11px;background:var(--primary-soft);color:var(--primary);text-decoration:none;font-size:.75rem;font-weight:800}.player-back{font-size:0}.player-back:after{content:"←";font-size:1rem}.player-head h1{font-size:1.08rem}.player-head .text-secondary{font-size:.72rem}.player-head .icon-btn{font-size:0;width:40px;padding:0}.player-head .icon-btn[data-action=qr]:after{content:"QR";font-size:.66rem}.player-head .icon-btn[data-action=fullscreen]:after{content:"⛶";font-size:1rem}.player-toolbar{position:sticky;top:125px;z-index:39;padding:7px 0;background:#f2f5f3;border-bottom:1px solid var(--line)}.player-toolbar .container-fluid{max-width:1120px}.version-select{width:auto;min-width:145px}.tone-control{height:40px;display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:white;white-space:nowrap}.tone-control button{width:36px;height:100%;border:0;background:transparent}.tone-control span{font-size:.75rem}.tool-btn{height:40px;border:1px solid var(--line);border-radius:10px;background:white;padding:0 11px;font-size:.75rem;font-weight:800;white-space:nowrap}.tool-btn.active{background:var(--primary);color:white}.speed-wrap{font-size:.7rem;white-space:nowrap}.song-commandbar{max-width:960px;margin:12px auto;padding:0 14px;display:flex;justify-content:space-between}.song-commandbar>div{display:flex;gap:7px}.command{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--primary);font-size:.7rem;font-weight:800;text-decoration:none}.command.primary{background:var(--primary);color:white}.version-count{font-size:.68rem;color:var(--muted)}.player-body{max-width:960px;margin:auto;padding:15px 14px 45vh}.song-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.song-meta span{padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:white;font-size:.67rem;font-weight:700}.chord-sheet{padding:22px;background:white;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);font:600 1.05rem/1.8 "Cascadia Mono",Consolas,monospace;white-space:pre-wrap;color:#263532}.chord-sheet .chord{cursor:pointer}.rhythm-card{margin-bottom:12px}.qr-dialog,.chord-dialog{padding:22px;border:0;border-radius:20px;text-align:center}.diagram-large{height:280px}.share-link{display:flex;gap:7px}.copy-feedback{display:block;min-height:18px;color:var(--primary);font-size:.72rem}.site-footer{display:none}
@media(max-width:780px){body{padding-bottom:76px}.app-header{height:58px}.app-header-inner{width:calc(100% - 24px)}.app-tabs,.app-new b{display:none}.app-new{width:38px;height:38px;padding:0;justify-content:center;border-radius:12px}.app-brand{font-size:1rem}.app-logo{width:34px;height:34px}.app-main{min-height:calc(100vh - 134px)}.bottom-nav{position:fixed;z-index:150;left:0;right:0;bottom:0;height:70px;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;padding:6px 4px calc(5px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -8px 30px rgba(18,48,43,.07);backdrop-filter:blur(16px)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:#89938f;text-decoration:none;font-size:.62rem}.bottom-nav a.active{color:var(--primary)}.nav-icon{height:25px;display:grid;place-items:center}.nav-icon svg{width:20px;height:20px}.nav-add{align-self:center;transform:translateY(-13px)}.nav-add>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--primary);color:white;font-size:1.65rem;box-shadow:0 8px 20px #0b6b5f3d}.nav-add small{color:var(--primary);font-weight:800}.app-dashboard{width:calc(100% - 24px);padding:24px 0 30px}.dashboard-head{align-items:flex-start;margin-bottom:17px}.dashboard-head h1{font-size:1.62rem}.dashboard-head p{font-size:.78rem;line-height:1.45;max-width:300px}.round-action{display:none}.app-search{height:52px;padding-left:14px}.app-search button{display:none}.quick-grid{display:flex;overflow-x:auto;gap:10px;margin:15px -12px 27px;padding:0 12px;scrollbar-width:none}.quick-grid>a{min-width:220px}.app-section{margin-top:26px}.app-section-title h2{font-size:1.2rem}.event-carousel{display:flex;overflow-x:auto;margin:0 -12px;padding:0 12px;gap:10px;scroll-snap-type:x mandatory;scrollbar-width:none}.mobile-event{min-width:82%;scroll-snap-align:start}.category-scroll{margin-right:-12px}.app-song-list{border-radius:16px}.app-song{padding:12px}.page-space{padding-top:20px;padding-bottom:30px}.page-title{align-items:flex-start;flex-direction:column}.page-title h1,.mb-4 h1{font-size:1.65rem}.page-title .button{width:100%}.form-card,.editor-card,.add-panel{padding:16px;border-radius:16px}.repertoire-grid{grid-template-columns:1fr}.repertoire-hero{align-items:flex-start;flex-direction:column;padding:19px}.repertoire-hero h1{font-size:1.55rem}.hero-actions{width:100%;flex-wrap:wrap}.hero-actions .button{flex:1}.repertoire-layout{grid-template-columns:1fr}.add-panel{position:static}.chord-library{grid-template-columns:repeat(2,1fr)}.compact-search{width:100%}.player-head{top:58px}.player-toolbar{top:115px}.player-toolbar .container-fluid{padding-left:10px!important;padding-right:10px!important}.speed-wrap{display:none}.song-commandbar{flex-direction:column}.song-commandbar>div{display:grid;grid-template-columns:1fr 1fr}.command{justify-content:center}.command:first-child{grid-column:1/-1}.version-count{display:none}.player-body{padding:12px 8px 38vh}.chord-sheet{padding:16px 10px;border-radius:13px;font-size:.94rem}.share-link{flex-direction:column}.share-link .button{width:100%}.qr-stage img,.qr-stage canvas{max-width:200px!important;max-height:200px!important}}
