:root{color-scheme:dark;--blue:#2560c1;--bright:#35caf0;--surface:#161f30;--edge:#293548;--ink:#f2f5fa;--muted:#a1acc0;--nav:#0d1523;--back:#101828;--accent-bg:#193450;--radius:1rem}
*{box-sizing:border-box}body{margin:0;background:var(--back);color:var(--ink);font-family:Outfit,system-ui,sans-serif;font-size:16px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:var(--bright);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--bright);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2;font-weight:600;letter-spacing:-.03em}h2{font-size:1.25rem;font-weight:600}h3{font-size:1.05rem;font-weight:500}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.875rem;text-transform:uppercase;letter-spacing:.13em;color:var(--bright);font-weight:500}.stack{display:flex;flex-direction:column;gap:1.2rem}.row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.spread{justify-content:space-between}.grow{flex:1;min-width:0}.space-top{margin-top:1.5rem}.loading{padding:10vh 5vw;text-align:center}.skip-link{position:fixed;top:-100px;left:1rem;z-index:100;background:var(--blue);color:white;padding:.75rem}.skip-link:focus{top:1rem}.icon{width:1.3rem;height:1.3rem;display:inline-block;flex-shrink:0;vertical-align:middle}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:256px;background:var(--nav);padding:2rem 1.2rem;border-right:1px solid var(--edge);display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:.7rem;color:var(--ink)}.brand:hover{text-decoration:none}.brand img{width:45px;height:45px}.brand-name{font-size:1.25rem;font-weight:600;letter-spacing:-.02em}.brand small{display:block;color:var(--bright);font-size:.75rem;letter-spacing:.19em;text-transform:uppercase}.nav-label{margin:2.5rem .75rem .75rem;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.nav-items{display:flex;flex-direction:column;gap:.4rem}.menu-item{font-size:1rem;min-height:48px;display:flex;gap:.8rem;align-items:center}.menu-item-active{background:var(--accent-bg);color:var(--bright)}.sidebar-bottom{margin-top:auto;padding-top:2rem}.side-tip{border:1px solid var(--edge);border-radius:1rem;padding:1rem;font-size:.875rem;color:var(--muted)}.side-tip strong{display:block;color:var(--ink);margin-bottom:.4rem}.layout-main{margin-left:256px}.topbar{height:80px;border-bottom:1px solid var(--edge);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 2.5rem;background:var(--nav)}.topbar .sync{font-size:.875rem;color:var(--muted);max-width:60%;text-align:right}.mobile-logo{display:none}.content{max-width:1500px;margin:auto;padding:2.5rem;min-height:calc(100vh - 80px)}.page-head{display:flex;justify-content:space-between;align-items:center;gap:1.25rem;margin-bottom:2rem;flex-wrap:wrap}.page-head p{margin-top:.7rem}.button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;border:1px solid var(--edge);background:#202c40;color:var(--ink);border-radius:.65rem;padding:.65rem 1rem;font-weight:500;line-height:1.3;font-size:.95rem;text-decoration:none}.button:hover{background:#2b3b53;text-decoration:none}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:#1d4fa5}.button.ghost{background:transparent}.button.danger{color:#fda4af}.button.icon-only{width:44px;padding:.65rem}.button.small-button{min-height:40px;padding:.5rem .8rem;font-size:.875rem}.badge{display:inline-flex;align-items:center;padding:.3rem .6rem;border-radius:.5rem;font-size:.875rem;line-height:1.3;background:var(--accent-bg);color:var(--bright);white-space:normal}.badge.green{background:#163d34;color:#87dfbe}.badge.amber{background:#42331c;color:#f5cf7a}.badge.gray{color:var(--muted);background:#253043}.panel{border:1px solid var(--edge);border-radius:var(--radius);background:var(--surface);overflow:hidden}.panel-body{padding:1.5rem}.panel-head{padding:1.25rem 1.5rem;border-bottom:1px solid var(--edge)}.hero{position:relative;background:linear-gradient(115deg,#183d65,#132a46 60%,#142238);padding:2rem;border:1px solid #2b537d;border-radius:var(--radius);display:flex;justify-content:space-between;gap:2rem;align-items:center;overflow:hidden}.hero h2{font-size:2rem;margin:.5rem 0}.hero .hero-text{max-width:650px}.hero p{color:#b8d2eb}.hero-art{width:150px;opacity:.5;flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}.stat{min-height:130px}.stat strong{font-size:2rem;font-weight:600;line-height:1.2}.stat .stat-icon{display:inline-flex;padding:.8rem;background:#253349;border-radius:.75rem;color:var(--bright)}.section-title{margin:2rem 0 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem}.playlist-card{padding:1.5rem;display:flex;flex-direction:column;gap:1rem;transition:border-color .15s}.playlist-card:hover{border-color:var(--blue)}.playlist-card h3{font-size:1.3rem}.date-tile{background:var(--accent-bg);color:var(--bright);border-radius:.8rem;min-width:60px;padding:.5rem;text-align:center;line-height:1.2}.date-tile strong{display:block;font-size:1.6rem}.date-tile span{font-size:.8rem;text-transform:uppercase}.progress{height:5px;border-radius:5px;overflow:hidden;background:var(--edge)}.progress progress{display:block;width:100%;height:5px;appearance:none}.progress progress::-webkit-progress-bar{background:var(--edge)}.progress progress::-webkit-progress-value{background:var(--blue)}.progress progress::-moz-progress-bar{background:var(--blue)}.empty{text-align:center;padding:3rem 1rem;color:var(--muted)}.song-list{display:flex;flex-direction:column}.song-row{display:flex;align-items:center;gap:1rem;padding:1.1rem 1.5rem;border-bottom:1px solid var(--edge)}.song-row:last-child{border-bottom:0}.song-number{font-variant-numeric:tabular-nums;color:var(--muted);min-width:1.7rem}.song-link{font-size:1.07rem;font-weight:500;color:var(--ink)}.song-row .meta{font-size:.875rem;color:var(--muted);margin-top:.2rem}.song-row .row-actions{display:flex;gap:.4rem;align-items:center}.song-summary{display:flex;gap:.5rem;align-items:center}.item-moment{padding:.75rem 1.5rem;font-size:.85rem;font-weight:500;letter-spacing:.07em;color:var(--bright);background:#101b2c;text-transform:uppercase}.info-banner{padding:1rem 1.25rem;border:1px solid #39516a;background:#13283d;border-radius:.8rem;color:#c0d8ec;font-size:.9rem}.song-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:1.5rem;align-items:start}.structure{position:sticky;top:1rem}.structure-list{padding:.6rem;display:flex;flex-direction:column;gap:.3rem}.section-button{display:flex;gap:.75rem;align-items:center;text-align:left;background:transparent;border:1px solid transparent;color:var(--muted);padding:.8rem;border-radius:.6rem;width:100%;min-height:58px}.section-button:hover{background:#202f43}.section-button.selected{border-color:#2d6592;background:var(--accent-bg);color:var(--ink)}.section-letter{width:1.9rem;height:1.9rem;border-radius:.5rem;background:#2a384d;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:600;flex-shrink:0}.selected .section-letter{background:var(--blue);color:white}.section-button small{display:block;font-size:.75rem;color:var(--muted)}.section-content{min-width:0}.section-title-bar{display:flex;align-items:center;gap:1rem}.tabs{display:flex;gap:.4rem;border-bottom:1px solid var(--edge);margin-top:1.5rem;overflow:auto}.tab{background:none;border:0;border-bottom:2px solid transparent;padding:.9rem .8rem;color:var(--muted);white-space:nowrap;min-height:50px}.tab.active{border-bottom-color:var(--bright);color:var(--bright)}.practice{padding-top:1.5rem}.video-shell{background:#080e18;border-radius:.75rem;overflow:hidden;min-height:220px}.video-shell iframe{display:block;width:100%;height:280px;border:0}.video-shell audio{width:100%;margin:2rem auto;display:block}.player-box{padding:1.2rem}.player-status{font-size:.875rem;color:var(--muted);margin-top:.75rem}.marker-controls{margin-top:1rem;display:flex;gap:.6rem;flex-wrap:wrap}.variant{display:inline-flex;background:#0f1829;border:1px solid var(--edge);padding:.3rem;border-radius:.7rem;gap:.2rem}.variant button{background:transparent;color:var(--muted);border:0;border-radius:.45rem;padding:.55rem .9rem;min-height:42px;font-size:.9rem}.variant .selected{background:var(--blue);color:white}.groove-grid{overflow:auto;margin-top:1.3rem}.groove-grid table{width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed;min-width:470px}.groove-grid th{font-weight:400;font-size:.8rem;color:var(--muted);padding:.2rem}.groove-grid th:first-child{width:90px;text-align:left}.groove-grid td{padding:0}.step{display:block;background:#243047;border-radius:3px;height:20px;transition:background .05s}.step.on.hat{background:#4b88ad}.step.on.kick{background:#2560c1}.step.on.snare{background:#b4a1ed}.step.on.tom{background:#55bba9}.step.on.crash{background:#e8bc78}.step.playing{box-shadow:0 0 0 2px #fff;background:#b9dcff!important}.beat-display{display:flex;gap:.5rem;align-items:center;min-height:40px}.beat-dot{width:32px;height:32px;border:1px solid #456080;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.875rem}.beat-dot.active{background:var(--blue);color:white;border-color:var(--bright)}.tempo-control{display:flex;align-items:center;gap:.5rem}.tempo-control input{width:80px!important;text-align:center;font-size:1.2rem!important;font-weight:600}.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-field{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem;color:var(--muted)}input:not([type=checkbox]):not([type=range]),select,textarea{width:100%;min-height:46px;background:#101a2b!important;border:1px solid #3c4b62!important;border-radius:.6rem;color:var(--ink)!important;padding:.65rem .8rem;font-size:1rem;box-shadow:none}textarea{resize:vertical;min-height:100px}select{padding-right:2.5rem!important;background-position:right .8rem center!important;background-size:1.1rem!important}input[type=range]{accent-color:var(--blue);width:100%;min-height:35px}input[type=checkbox]{accent-color:var(--blue);width:20px;height:20px}.check{display:flex;align-items:center;gap:.6rem;font-size:.9rem;color:var(--ink);min-height:40px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.search{max-width:390px}.source-info{font-size:.875rem;color:var(--muted);margin-top:1rem}.lyrics{white-space:pre-wrap;font-size:1.3rem;line-height:1.9}.score-frame{width:100%;height:70vh;min-height:450px;background:#f0f3f8;border:0;border-radius:.7rem}.player-dock{position:fixed;bottom:0;left:256px;right:0;z-index:25;background:#0d1523f5;backdrop-filter:blur(16px);border-top:1px solid #33435a;padding:.8rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;box-shadow:0 -8px 30px #0002}.player-dock .dock-name{max-width:35%;font-size:.95rem}.has-dock{padding-bottom:125px}.crumb{font-size:.875rem;color:var(--muted);margin-bottom:.8rem}.note-area{margin-top:1.2rem}#toast{position:fixed;bottom:6rem;left:50%;transform:translateX(-50%);z-index:200;max-width:min(500px,90vw);border:1px solid #405776;background:#20354e;color:white;border-radius:.8rem;padding:.8rem 1.2rem;display:none}#toast.visible{display:block}dialog{border:1px solid #3b4c66;border-radius:1rem;background:var(--surface);color:var(--ink);padding:1.75rem;width:min(620px,94vw);max-height:90dvh;overflow:auto;box-shadow:0 30px 80px #0008}dialog::backdrop{background:#030917c9;backdrop-filter:blur(3px)}dialog h2{margin-bottom:1.3rem}dialog .dialog-close{float:right}dialog .form-error{color:#fda4af;min-height:1.3em;margin-top:.7rem}.login{min-height:100vh;display:grid;place-items:center;padding:2rem}.login-card{width:min(440px,100%);padding:2rem}.login-card h1{margin-top:1.5rem}.login-card form{margin-top:1.8rem}.login-card .button{width:100%;margin-top:1rem}.mobile-nav{display:none}.file-input{display:none}.footer{margin-top:3rem;border-top:1px solid var(--edge);padding-top:1.2rem;color:var(--muted);font-size:.8rem}.song-library-card .library-title{font-size:1.2rem;color:var(--ink)}.archived{opacity:.7}.focus-mode .sidebar,.focus-mode .topbar,.focus-mode .page-head,.focus-mode .player-box,.focus-mode .info-banner{display:none}.focus-mode .layout-main{margin-left:0}.focus-mode .player-dock{left:0}.focus-mode .lyrics{font-size:1.7rem}.focus-mode .content{max-width:1300px}.brand-real{max-width:150px;max-height:42px;object-fit:contain}.source-selector{max-width:330px}.loop-active{border-color:var(--bright)!important;background:var(--accent-bg)!important}.practice-note{padding:1rem 0;color:var(--muted)}.divider{border:0;border-top:1px solid var(--edge);margin:1.3rem 0}.hidden{display:none!important}.issue{color:#fda4af}.flex-end{justify-content:flex-end}.song-pagination{display:flex;justify-content:space-between;gap:.7rem;margin-top:1.5rem}
@media(min-width:1450px){.media-practice{display:grid;grid-template-columns:1fr 1.15fr;gap:1.5rem;align-items:start}.media-practice .practice{padding-top:0}}
@media(max-width:1100px){.sidebar{width:220px;padding:1.4rem 1rem}.layout-main{margin-left:220px}.player-dock{left:220px}.content{padding:1.5rem}.topbar{padding:0 1.5rem}.song-layout{grid-template-columns:200px minmax(0,1fr)}.hero-art{width:110px}.player-dock .dock-name{display:none}}
@media(max-width:760px){.sidebar{display:none}.layout-main{margin-left:0}.topbar{height:68px;padding:0 1rem}.desktop-title{display:none}.mobile-logo{display:flex}.mobile-logo .brand-name{font-size:1.1rem}.mobile-logo img{width:35px;height:35px}.topbar .sync{font-size:.75rem;max-width:45%}.content{padding:1.4rem 1rem 6rem}.page-head{margin-bottom:1.5rem}.page-head .actions{width:100%}.page-head .actions .button{flex:1}.hero{padding:1.4rem}.hero h2{font-size:1.7rem}.hero-art{display:none}.stats{gap:.65rem}.stat{padding:1rem!important;min-height:110px}.stat .stat-icon{display:none}.stat strong{font-size:1.5rem}.stat .muted{font-size:.8rem}.cards{grid-template-columns:1fr}.song-row{padding:1rem;gap:.6rem;flex-wrap:wrap}.song-row .row-actions{width:100%;justify-content:flex-end;padding-top:.4rem}.song-row .song-summary{display:none}.song-layout{display:block}.structure{position:static;background:none;border:0;overflow:visible}.structure>.panel-head{display:none}.structure-list{flex-direction:row;overflow-x:auto;padding:0 0 1rem;gap:.5rem;scrollbar-width:thin}.section-button{width:auto;min-width:150px;padding:.65rem;border:1px solid var(--edge);background:var(--surface)}.section-button small{display:none}.section-letter{width:1.5rem;height:1.5rem}.section-content{margin-top:.5rem}.player-box,.panel-body{padding:1rem}.panel-head{padding:1rem}.video-shell iframe{height:220px}.media-practice{display:block}.controls-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.player-dock{left:0;bottom:65px;padding:.75rem 1rem;gap:.6rem}.player-dock .tempo-control .button{display:none}.player-dock .tempo-control input{width:64px!important;font-size:1rem!important}.player-dock .button{padding:.6rem .8rem}.player-dock .dock-label{display:none}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:65px;background:#0d1523;border-top:1px solid var(--edge);z-index:40;display:flex;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:.15rem;font-size:.75rem;color:var(--muted);min-width:65px;min-height:44px}.mobile-nav a.active{color:var(--bright)}.mobile-nav svg{width:21px;height:21px}.has-dock{padding-bottom:190px}.badge{font-size:.8rem}.score-frame{height:62vh;min-height:300px}#toast{bottom:10rem}.focus-mode .content{padding-top:1rem}.focus-mode .structure{display:none}.focus-mode .player-dock{bottom:65px}.focus-mode .lyrics{font-size:1.45rem}.section-title-bar{gap:.6rem}.section-title-bar h2{font-size:1.15rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.brand .brand-wordmark{width:120px;height:32px;object-fit:contain;object-position:left}.mobile-logo .brand-wordmark{width:90px;height:25px}
