:root { color-scheme:dark; --bg:#07070b;--bg2:#0c0e15;--panel:#10121a;--panel2:#151821;--line:#292b35;--line2:#3c3541;--text:#f5f4f5;--muted:#a7a7b6;--dim:#777888;--gold:#ffbd55;--gold2:#d68518;--purple:#bd71ff;--blue:#4cbeff;--green:#50dfc6;--pink:#f78bcc;--shadow:0 16px 44px rgba(0,0,0,.32);--radius:18px;--ease:180ms cubic-bezier(.2,.8,.3,1) }
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 62% -5%,#25170c 0,transparent 37%),radial-gradient(ellipse at -10% 100%,#140f2c 0,transparent 34%),var(--bg);color:var(--text);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:3px}a{color:inherit}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,3vw,39px);line-height:1.16}h2{font-size:23px}h3{font-size:16px}small,.subtle{color:var(--muted)}button{border:0}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);max-width:1760px;margin:auto;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(135deg,rgba(17,17,21,.97),rgba(8,9,15,.98));border-right:1px solid #3e2b19;padding:26px 15px 20px;display:flex;flex-direction:column;gap:24px;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:5px 10px 8px}.brand-icon{display:grid;place-items:center;width:45px;height:45px;border:1px solid var(--gold);border-radius:12px;background:linear-gradient(145deg,#402405,#121318);box-shadow:0 0 26px #ffb4453d;font-size:24px}.brand-title{font-weight:800;letter-spacing:.025em;font-size:15px}.brand-sub{display:block;font-size:9px;color:var(--gold);letter-spacing:.27em;margin-top:3px}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-item{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:12px 15px;border:1px solid transparent;background:transparent;color:#c8c7d0;border-radius:11px;font-size:14px}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:#211b18}.nav-item.active{border-color:#d99736;color:#fff4df;background:linear-gradient(90deg,#78481280,#30231888);box-shadow:inset 0 0 10px #ffa93045,0 0 15px #ffb03c35}.aside-label{font-size:10px;letter-spacing:.21em;color:#e6b779;font-weight:800;padding:0 12px}.side-stats{border-top:1px solid #403a3b;padding-top:17px;display:flex;flex-direction:column;gap:10px}.stat-line{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;border-bottom:1px solid #292a33;font-size:12px}.stat-line strong{font-size:14px}.stat-line strong.gold{color:var(--gold)}.aside-note{color:var(--dim);font-size:11px;line-height:1.5;margin-top:auto;padding:8px 9px}.main{min-width:0;padding:22px clamp(17px,2.2vw,38px) 70px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px}.topbar .kicker{font-size:11px;letter-spacing:.21em;color:#f6c780;font-weight:700}.topbar .subtitle{color:var(--muted);font-size:13px}.top-actions{display:flex;gap:9px}.round-button{display:grid;place-items:center;width:38px;height:38px;color:#fff;background:#151720;border:1px solid #3a3740;border-radius:11px}.round-button:hover{border-color:var(--gold)}.round-button svg{width:18px;height:18px}
.hero{position:relative;overflow:hidden;min-height:240px;border-radius:25px;border:1px solid #9a672a;background:#0f0b0d;box-shadow:0 18px 65px #000b,0 0 45px #ffae2815;margin-bottom:22px}.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;filter:saturate(1.04) contrast(1.07)}.hero::before{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,#050508e8 0%,#050508a3 28%,#0606081c 52%,#0505084d 100%),linear-gradient(0deg,#08080df0 0%,transparent 55%);z-index:1}.hero::after{content:"";position:absolute;right:-65px;top:-185px;width:570px;height:570px;border:2px solid #d49134b2;border-radius:50%;box-shadow:0 0 30px #ffc16366, inset 0 0 15px #ed972e40;pointer-events:none;z-index:1}.hero-content{position:relative;z-index:2;padding:47px 36px;max-width:550px}.eyebrow{font-size:10px;letter-spacing:.31em;text-transform:uppercase;font-weight:800;color:var(--gold);margin-bottom:10px}.hero h1{font-style:italic;font-weight:800;letter-spacing:.035em;text-shadow:0 3px 16px #000b}.hero h1 span{color:var(--gold)}.hero p{color:#e4d6c8;max-width:340px;margin-top:11px;font-size:14px}.hero-mini{display:inline-flex;gap:9px;align-items:center;background:#120f1099;border:1px solid #aa783c7a;border-radius:100px;padding:8px 12px;margin-top:17px;font-size:11px;color:#ffdda6}.hero-mini b{font-size:13px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:23px 0 13px}.section-head h2{font-size:19px}.section-head p{font-size:12px;color:var(--muted)}.cards3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.action-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:148px;gap:13px;border-radius:18px;padding:20px;border:1px solid #584363;position:relative;overflow:hidden;background:linear-gradient(135deg,#39234a99,#11121a 70%);transition:transform var(--ease),box-shadow var(--ease)}.action-card::after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:currentColor;opacity:.08;filter:blur(25px);right:-75px;top:-110px}.action-card:hover,.category-card:hover,.routine-card:hover,.practice-item:hover{transform:translateY(-2px)}.action-card:hover{box-shadow:0 0 28px #aa71ff2f}.action-card.practice{border-color:#805926;background:linear-gradient(135deg,#3f2d169d,#11131a 70%);color:var(--gold)}.action-card.progress{border-color:#285674;background:linear-gradient(135deg,#172f4999,#11121a 70%);color:var(--blue)}.action-card.create{color:var(--purple)}.action-card strong{color:white;font-size:19px;letter-spacing:.09em}.action-card span{display:block;color:#c7c1d0;font-size:12px}.action-card .cta-icon{width:32px;height:32px}.action-card .arrow{position:absolute;right:17px;bottom:17px;border:1px solid currentColor;border-radius:50%;padding:6px;width:27px;height:27px}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.category-card{min-height:96px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border-radius:15px;background:linear-gradient(145deg,#161923,#0d0e13);border:1px solid #2d3442;color:#e6e9f2;transition:all var(--ease);padding:15px 7px;text-align:center}.category-card svg{width:27px;height:27px}.category-card .category-title{font-weight:700;font-size:12px}.category-card .category-count{color:var(--muted);font-size:10px}.category-card[data-kind="Scales"]{--cat:var(--blue)}.category-card[data-kind="Arpeggios"]{--cat:var(--purple)}.category-card[data-kind="Chords"]{--cat:var(--gold)}.category-card[data-kind="Exercises"]{--cat:var(--green)}.category-card[data-kind="Others / Custom"]{--cat:var(--pink)}.category-card svg{color:var(--cat)}.category-card:hover{border-color:var(--cat);box-shadow:0 0 23px color-mix(in srgb,var(--cat) 20%,transparent)}
.panel{border:1px solid #32313a;border-radius:18px;background:linear-gradient(145deg,#15161d,#0f1017);box-shadow:var(--shadow);padding:21px;margin-bottom:16px}.panel.ambient-gold{border-color:#62482a;background:linear-gradient(115deg,#291c13,#10131a 38%,#101017)}.panel.ambient-purple{border-color:#573b66;background:linear-gradient(110deg,#261831,#12131c 46%,#101117)}.panel.ambient-blue{border-color:#28495c;background:linear-gradient(110deg,#142638,#11131b 49%,#101117)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.panel-head h2{font-size:21px}.panel-head p{color:var(--muted);font-size:12px;margin-top:4px}.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:100px;font-size:10px;font-weight:800;padding:4px 9px;border:1px solid #75532b;background:#422f1b;color:#f9c679;white-space:nowrap}.badge.muted{border-color:#3a3b47;background:#22242c;color:#b9bbc8}.badge.green{border-color:#276d62;background:#163a35;color:#85efcf}.badge.purple{border-color:#674478;background:#33203f;color:#dfaeff}.badge.blue{border-color:#285d7f;background:#192f45;color:#8cdeff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border-radius:10px;border:1px solid #bd8235;background:linear-gradient(135deg,#ffbe58,#bc7421);color:#160d07;font-weight:800;font-size:12px;white-space:nowrap;transition:filter var(--ease),transform var(--ease)}.btn:hover:not(:disabled){filter:brightness(1.13);transform:translateY(-1px)}.btn svg{width:16px;height:16px}.btn.secondary{background:#1b1e28;border-color:#494550;color:#ece9ef}.btn.ghost{background:transparent;border-color:transparent;color:#bdbdca}.btn.danger{background:#3e1b21;border-color:#a0444d;color:#ffdce0}.btn.small{padding:7px 10px;font-size:11px}.btn.icon-only{padding:8px;min-width:35px}.btn:disabled{opacity:.4}.row{display:flex;align-items:center;gap:10px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:13px}.muted{color:var(--muted)}.tiny{font-size:11px}.mini{font-size:12px}.right{text-align:right}.content-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.content-head h1{font-size:29px}.content-head p{color:var(--muted);font-size:13px;margin-top:5px}.divider{height:1px;background:#36323a;margin:15px 0}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;font-weight:750;color:#dddce4}.field-label{font-size:12px;font-weight:750;color:#dddce4}.field .hint{font-size:10px;color:var(--dim)}.field input,.field select,.field textarea,.search-box{width:100%;border:1px solid #3d404c;background:#10121a;color:#f6f5f8;border-radius:10px;padding:11px 12px;outline:none;min-height:44px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px #ffb84f18}.field textarea{resize:vertical;min-height:68px;line-height:1.5}.field input::placeholder,.field textarea::placeholder{color:#777885}.field select{cursor:pointer}.fields2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tag-picker{display:flex;gap:7px;flex-wrap:wrap}.tag{border-radius:100px;border:1px solid #343642;background:#191a24;color:#aeb0bb;padding:8px 11px;font-size:11px}.tag.active{border-color:#c58a40;background:#45311d;color:#fbd699}.routine-list{display:flex;flex-direction:column;gap:8px}.routine-card,.practice-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:#181b24;border:1px solid #373642;color:#f2f0f5;border-radius:13px;padding:14px 16px;text-align:left;transition:transform var(--ease),border-color var(--ease)}.routine-card:hover,.practice-item:hover{border-color:#9c763b}.routine-card .main-label,.practice-item .main-label{font-weight:780}.routine-card .desc,.practice-item .desc{font-size:11px;color:var(--muted);margin-top:3px}.routine-card .card-side{display:flex;align-items:center;gap:6px}.category-section{margin-bottom:20px}.category-section h3{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:9px}.group-heading{font-size:12px;color:#d1a45c;letter-spacing:.17em;text-transform:uppercase;font-weight:800;margin:18px 0 9px}.note-box{border-radius:12px;border:1px solid #54422d;background:#2b211a8c;padding:12px;color:#e5d1bb;font-size:12px}.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.metric{border:1px solid #373741;background:#141720;border-radius:13px;padding:15px}.metric .value{font-size:26px;font-weight:850;margin:5px 0;color:#f4e1ba}.metric .name{font-size:11px;color:var(--muted)}.progress-track{height:7px;background:#292b35;border-radius:100px;overflow:hidden;margin:8px 0}.progress-fill{height:100%;border-radius:100px;background:linear-gradient(90deg,#b86f19,#ffd07a);transition:width .2s}.progress-fill.blue{background:linear-gradient(90deg,#347ba9,#5fc8ff)}.progress-fill.green{background:linear-gradient(90deg,#218c76,#5ae7b9)}.temp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.temp-display{border:1px solid #3c3740;border-radius:14px;padding:14px;background:#12151c}.temp-display .temp-num{font-size:clamp(19px,2.5vw,28px);font-weight:850}.temp-display .temp-num.gold{color:var(--gold)}.tempo-control{display:flex;align-items:center;gap:9px}.tempo-control button{width:37px;height:41px;flex-shrink:0}.tempo-control input{min-width:0;flex:1;text-align:center;font-size:21px;font-weight:800}.detail-panels{display:flex;flex-direction:column;gap:10px}.details-box{border:1px solid #47404b;border-radius:14px;overflow:hidden;background:#15151f}.details-header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:13px 15px;background:#191922;color:white}.details-header .d-title{font-weight:780;font-size:13px}.details-header .d-caption{font-size:10px;color:#aaa5b1;margin-top:2px}.details-body{border-top:1px solid #3f3b43;padding:12px;display:flex;flex-direction:column;gap:10px}.entry-card{background:#20212a;border:1px solid #363744;border-radius:12px;padding:12px}.entry-top{display:flex;align-items:flex-start;gap:7px}.entry-top .field{flex:1}.child-entry{display:flex;align-items:center;gap:7px;margin:8px 0 0 18px}.child-entry input{flex:1;min-width:0;border:1px solid #393a45;background:#11131b;color:white;border-radius:8px;padding:8px;font-size:12px}.entry-actions{display:flex;justify-content:flex-end;margin-top:8px}.key-preview,.key-checklist{display:flex;flex-direction:column;align-items:center;gap:9px}.key-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px}.group-status{color:#6e7280;width:17px;height:17px;display:flex;align-items:center;justify-content:center}.group-status.done{color:var(--green)}.key-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #393f48;background:#1a1d25;color:#e1e1ea;border-radius:10px;padding:7px 9px;min-width:49px;font-size:12px;font-weight:700}.key-preview .key-chip{font-size:11px;min-width:39px;padding:5px 7px}.key-chip .circle{display:inline-block;width:13px;height:13px;border-radius:50%;border:1.5px solid #7c8190}.key-chip.done{color:#bdffe5;background:#14382f;border-color:#32a083}.key-chip.done .circle{background:#5de1bb;border-color:#5de1bb;box-shadow:inset 0 0 0 3px #14382f}.key-chip:not(:disabled):hover{border-color:var(--gold)}.key-preview .key-chip{cursor:default}.checklist-summary{display:flex;justify-content:space-between;color:#aaaebc;font-size:12px;margin:15px 0 3px}.subdivision{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#b7b9c6;font-size:12px}.subdivision strong{color:#f4d49b}.preview-wrapper{border:1px solid #343744;border-radius:12px;background:#11141b;padding:11px 9px}.details-read{display:flex;flex-direction:column;gap:9px}.read-section h4{color:#e8ba7f;font-size:12px;margin:0 0 5px}.read-section ul{margin:2px 0 0 14px;padding:0;color:#ddd9e0;font-size:12px;white-space:pre-wrap}.read-section li{margin-bottom:5px}.read-section li ul{margin-left:14px}.saved-alert{display:flex;gap:9px;align-items:center;color:#8ae3bd;font-size:11px}.empty-state{text-align:center;padding:34px 12px;color:var(--muted)}.empty-state svg{color:var(--gold);margin-bottom:13px;width:36px;height:36px}.empty-state h3{color:white;margin-bottom:5px}.empty-state p{font-size:12px;max-width:300px;margin:0 auto 16px}.hr-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:15px}.toast{position:fixed;right:24px;bottom:24px;z-index:100;background:#222a25;border:1px solid #468e66;color:#d4ffdf;padding:12px 17px;border-radius:11px;box-shadow:0 18px 36px #0008;opacity:0;transform:translateY(12px);pointer-events:none;transition:.24s}.toast.show{opacity:1;transform:none}.modal-overlay{position:fixed;inset:0;background:#030305c9;z-index:100;display:grid;place-items:center;padding:20px}.modal{background:linear-gradient(145deg,#1d1a1e,#0e1017);border:1px solid #875a2c;border-radius:18px;max-width:460px;width:100%;box-shadow:0 25px 85px #000; padding:26px}.modal h2{font-size:20px}.modal p{color:#c2bbc4;font-size:13px;margin:12px 0 22px}.history-bar{height:72px;display:flex;align-items:end;gap:7px;overflow:hidden;padding:4px 3px;border-bottom:1px solid #46414a}.history-bar .bar{flex:1;min-width:8px;max-width:50px;border-radius:5px 5px 0 0;background:linear-gradient(0deg,#9b651f,#ffd17b)}.history-legend{font-size:10px;color:#a9a8b2;display:flex;justify-content:space-between;margin-top:6px}.footer{text-align:center;font-size:10px;color:#6d6e78;margin:40px 0 8px}.mobile-nav{display:none}.backup-actions{display:flex;gap:9px;flex-wrap:wrap}.mobile-top-brand{display:none}.plain-link{background:transparent;border:0;color:#f9be65;text-decoration:underline;padding:5px;font-size:12px}.announce{font-size:11px;color:#b5afba}.count{color:var(--gold);font-weight:800}.practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.feature-rule{border-bottom:1px solid #302d33;padding-bottom:13px;margin-bottom:13px}.subhead{color:var(--gold);font-size:10px;letter-spacing:.15em;text-transform:uppercase;font-weight:800;margin:2px 0 9px}.callout{border-left:3px solid var(--gold);padding:9px 12px;background:#261e18;color:#dfd6cb;font-size:12px;border-radius:0 9px 9px 0}.select-zone{display:flex;align-items:center;justify-content:space-between;gap:12px}.dot{width:7px;height:7px;background:var(--gold);border-radius:50%;box-shadow:0 0 12px var(--gold)}.section-pill{border:1px solid #3d3e4c;border-radius:100px;padding:6px 10px;font-size:11px;color:#d3d2dc}.glow-gold{box-shadow:0 0 24px #e5a0371c}
@media (min-width:1400px){.main{padding-left:45px;padding-right:45px}.hero{min-height:265px}}
@media (max-width:1000px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:19px 11px}.brand{gap:8px;padding-left:4px}.brand-icon{width:39px;height:39px}.brand-title{font-size:13px}.nav-item{padding:10px 12px}.cards3{gap:9px}.action-card{padding:15px}.action-card strong{font-size:16px}.category-grid{gap:7px}.category-card{padding:11px 4px}}
@media (max-width:730px){.shell{display:block}.sidebar{display:none}.mobile-top-brand{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:850;color:#fff}.mobile-top-brand .brand-icon{width:33px;height:33px;font-size:19px;border-radius:9px}.main{padding:15px 13px calc(96px + env(safe-area-inset-bottom))}.topbar{margin-bottom:14px}.topbar .subtitle{display:none}.topbar .kicker{font-size:9px}.hero{min-height:195px;margin-bottom:16px;border-radius:17px}.hero-content{padding:29px 20px;max-width:70%}.hero h1{font-size:clamp(23px,6.8vw,34px)}.hero p{font-size:11px}.hero-mini{font-size:9px;padding:6px 9px}.hero::after{right:-130px;top:-105px;width:390px;height:390px}.section-head{margin:17px 0 10px}.section-head h2{font-size:16px}.cards3{gap:7px}.action-card{min-height:114px;padding:13px 10px;gap:8px;border-radius:12px}.action-card .cta-icon{width:23px;height:23px}.action-card strong{font-size:11px;letter-spacing:.06em}.action-card span{font-size:9px;line-height:1.3}.action-card .arrow{display:none}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.category-card{min-height:86px;padding:10px 6px}.category-card .category-title{font-size:10px}.panel{padding:15px;border-radius:14px;margin-bottom:12px}.panel-head h2{font-size:18px}.content-head h1{font-size:23px}.mobile-nav{position:fixed;z-index:50;bottom:0;left:0;right:0;background:#090b11ef;backdrop-filter:blur(18px);border-top:1px solid #665035;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.mobile-nav button{display:flex;align-items:center;flex-direction:column;gap:4px;padding:7px 4px;background:transparent;border-radius:10px;color:#aaaab4;font-size:10px}.mobile-nav button.active{color:#ffca79;background:#47311b7f}.mobile-nav svg{width:19px;height:19px}.toast{bottom:92px;right:10px;left:10px;text-align:center}.info-grid{gap:6px}.metric{padding:10px}.metric .value{font-size:21px}.metric .name{font-size:10px}.key-row{gap:5px}.key-chip{min-width:44px;padding:7px 6px;font-size:11px}.key-preview .key-chip{min-width:35px;padding:5px 5px;font-size:10px}.row.wrap-on-mobile{flex-wrap:wrap}}
@media (max-width:390px){.hero-content{max-width:83%}.hero h1{font-size:22px}.hero p{max-width:190px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fields2{gap:9px}.field label{font-size:11px}.key-chip{min-width:40px;font-size:10px}.panel{padding:12px}.btn{font-size:11px;padding:9px 10px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}}
/* Private-cloud controls; all approved practice screens retain their original layout. */
.cloud-indicator{border:1px solid #9c6a31;border-radius:100px;background:linear-gradient(120deg,#261906,#19141a);color:#f6c58c;padding:9px 12px;font-size:11px;letter-spacing:.01em;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.cloud-indicator:hover{box-shadow:0 0 18px #ffb34b33;border-color:#e6ab5f}
.cloud-settings-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:14px;border:1px solid #6d4b23;border-radius:14px;background:#291b0d55}
.cloud-settings-line strong{color:#f1c184}.cloud-settings-line span{color:#e2c5a0}.cloud-settings-line .btn{margin-left:auto}
.cloud-gate[hidden]{display:none!important}.cloud-gate{position:fixed;inset:0;z-index:400;background:rgba(2,3,7,.87);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:flex;justify-content:center;align-items:center;padding:14px;overflow-y:auto;color:#f6f2ea}
.cloud-dialog{background:radial-gradient(circle at 80% 0%,#513117 0%,transparent 38%),linear-gradient(152deg,#19151b,#0d0d13);border:1px solid #bf8a4c;border-radius:20px;box-shadow:0 22px 90px #000b,0 0 34px #ae6c1633;padding:clamp(20px,5vw,34px);max-width:475px;width:100%;max-height:calc(100dvh - 28px);overflow:auto}
.cloud-dialog h2{font-size:clamp(23px,5vw,30px);margin:8px 0 14px;background:linear-gradient(90deg,#fff5dd,#d69b54);-webkit-background-clip:text;background-clip:text;color:transparent}
.cloud-dialog p{font-size:13px;line-height:1.65;color:#d9c8b9;margin:10px 0 20px}.cloud-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.cloud-kicker{font-size:10px;letter-spacing:.17em;font-weight:800;color:#dda85c}.cloud-close{font-size:26px;line-height:1;background:transparent;color:#e9b977}.cloud-form{display:flex;flex-direction:column;gap:13px}
.cloud-form label{font-size:12px;color:#e6cdb0;display:flex;flex-direction:column;gap:6px}.cloud-form input{width:100%;padding:13px;background:#0c0e15;border:1px solid #65513e;border-radius:10px;color:#fff;outline:none;font-size:14px}.cloud-form input:focus{border-color:#eab66b;box-shadow:0 0 10px #f7b56126}
.cloud-primary,.cloud-secondary{width:100%;text-align:center;min-height:41px;padding:11px 14px;border-radius:10px;font-size:13px;font-weight:750;margin-top:7px}
.cloud-primary{color:#120b04;background:linear-gradient(120deg,#e8a343,#ffe2a0)}.cloud-primary:hover{filter:brightness(1.08)}.cloud-secondary{color:#f6c385;background:#322315;border:1px solid #b17d41}.cloud-secondary:hover{background:#483019}
.cloud-dialog .cloud-small{font-size:11px;color:#bbaaa0;line-height:1.6}.cloud-feedback{font-size:12px!important;color:#ffc093!important;min-height:12px;margin-bottom:0!important}.cloud-choice{display:flex;flex-direction:column;gap:4px}.cloud-spin{margin:25px auto;width:35px;height:35px;border-radius:50%;border:3px solid #8e642f;border-top-color:#ffda9a;animation:piano-cloud-spin .8s linear infinite}@keyframes piano-cloud-spin{to{transform:rotate(360deg)}}
@media(max-width:480px){.cloud-indicator{max-width:128px;font-size:10px;padding:8px}.cloud-settings-line .btn{margin-left:0;width:100%}}

/* Small, discrete creator attribution in the photo corner; not a feature card or center heading. */
.hero-creator{position:absolute;top:13px;right:14px;z-index:3;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#dcc09b;background:rgba(8,7,10,.74);border:1px solid rgba(226,170,95,.27);border-radius:7px;font-size:9px;letter-spacing:.015em;line-height:1.2;padding:5px 7px;font-weight:400;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.hero-creator strong{color:#efcf9f;font-weight:650}
.footer{text-align:right;font-size:9px;letter-spacing:.01em;color:#79747b;margin:32px 4px 9px}
.footer-separator{padding:0 5px;color:#a57b4a}
@media (max-width:730px){.hero-creator{top:9px;right:9px;font-size:8px;padding:4px 6px}.footer{text-align:center;font-size:8px;margin:28px 0 8px}}

/* iTracker v4: compact recent practice controls and studio overview. */
html,body{touch-action:pan-x pan-y;overscroll-behavior-x:none}
button,.btn,.nav-item,.category-card{touch-action:manipulation}
.recent-stack{display:flex;flex-direction:column;gap:9px;margin-bottom:19px}
.recent-card{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;background:linear-gradient(120deg,rgba(73,50,27,.42),rgba(19,18,23,.95));border:1px solid #644829;border-radius:13px;padding:12px 14px}
.recent-main{flex:1;min-width:160px}.recent-heading{display:flex;flex-direction:column;gap:4px}.recent-heading strong{font-size:13px;font-weight:750;line-height:1.35}.recent-heading .eyebrow{font-size:9px;margin:0}.recent-stats{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;font-size:11px;color:#aeb0b8;margin-top:7px}.recent-stats b{color:#f9cb8b}.recent-actions{display:flex;align-items:center;gap:5px}.recent-actions .btn{white-space:nowrap}.recent-card>.progress-track{width:100%;margin:0;height:4px}
.overview-intro{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 15px}.overview-intro>span{border:1px solid #4c3929;background:#2a1e1980;border-radius:20px;padding:7px 11px;display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#edc796}
.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px}.overview-routine{background:linear-gradient(155deg,#181820,#0b0d14);border:1px solid #5c442d;border-radius:15px;padding:14px;min-width:0}.overview-routine-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.overview-routine-head h3{font-size:16px;color:#f0c58d;overflow-wrap:anywhere}.overview-count{font-size:10px;color:#b6a18f;white-space:nowrap}.overview-focus{display:flex;flex-direction:column;gap:4px;border-left:2px solid #9c6e31;padding:5px 9px;margin:6px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.overview-label{display:block;color:#e3b87d;font-size:10px;font-weight:750;letter-spacing:.01em}.overview-config{border:1px solid #35323a;border-radius:12px;padding:11px 10px;margin-top:8px;background:#11131b}.overview-config-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.overview-config-top strong{font-size:12px}.overview-pct{color:#f4c080;font-size:11px;font-weight:800}.overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:9px 0}.overview-metrics>span{display:flex;flex-direction:column;gap:3px;border-radius:8px;background:#211a17;padding:7px 9px;font-size:11px;font-weight:700;min-width:0;overflow-wrap:anywhere;color:#f0e6d9}.overview-metrics small{font-size:9px;font-weight:700;letter-spacing:.09em;color:#ab9381}.overview-keyline{display:flex;flex-wrap:wrap;align-items:center;gap:5px;border-top:1px solid #302c32;padding:8px 0;font-size:10px;color:#aaa6af}.overview-keyline>span{margin-left:auto;color:#dbb278}.overview-detail{padding:7px 0;border-top:1px solid #282930}.overview-entries{display:flex;flex-direction:column;gap:4px;padding-top:5px}.overview-entry{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-size:11px;color:#ded8d5;white-space:pre-wrap;overflow-wrap:anywhere}.overview-dot{color:#e9b46d;font-size:13px}.overview-child{width:100%;padding-left:13px;color:#bcb2ac;font-size:10px}.overview-bottom{text-align:right;padding-top:6px}.overview-bottom .btn{font-size:10px;padding:7px 11px}.overview-empty{font-size:11px;color:#9c99a2;padding:6px}
@media(max-width:730px){.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-left:4px;padding-right:4px;gap:0}.mobile-nav button{font-size:9px;padding:7px 2px}.mobile-nav svg{width:18px;height:18px}.recent-card{padding:10px 11px}.recent-stats{font-size:10px;gap:5px 11px}.overview-grid{grid-template-columns:1fr}.overview-metrics{gap:5px}.overview-metrics>span{padding:6px 8px}}
/* Prevent iOS text-field focus enlargement while preserving readable controls. */
@media(hover:none) and (pointer:coarse){input,select,textarea,.field input,.field select,.field textarea,.cloud-form input{font-size:16px!important}}

@media(min-width:731px){.overview-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),500px));justify-content:center}}

/* iTracker v5: Songbook, smart practice and touch-first recent shortcut actions. */
.songbook-home-cta{display:flex;align-items:center;gap:13px;margin:17px 0 19px;border:1px solid #95622e;border-radius:14px;padding:13px 15px;background:linear-gradient(110deg,#312019,#15121d 48%,#0d1521 100%);box-shadow:0 0 19px #d7892416}
.songbook-home-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px;border:1px solid #a9783f;background:#332314;color:#ffca83}
.songbook-home-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.songbook-home-copy strong{font-size:13px;letter-spacing:.085em;color:#f3d0a4}.songbook-home-copy span{font-size:11px;color:#b9afad}
.smart-panel{border:1px solid #494056;background:#18171d;border-radius:13px;padding:10px 12px}.smart-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin-top:9px}
.smart-card{border:1px solid #413748;border-radius:11px;background:linear-gradient(130deg,#2c2134,#11141a);padding:11px;display:flex;align-items:center;text-align:left;gap:10px;color:#e8bc82}.smart-card span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.smart-card strong{font-size:11px;color:#f0ebec}.smart-card small{font-size:10px;color:#c4b8bc;line-height:1.5;white-space:normal}.smart-disabled{border:1px solid #3f3940;border-radius:11px;padding:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#c8b8b4;font-size:11px}
.song-add-box .fields2{margin-top:13px}.song-list{display:flex;flex-direction:column;gap:9px}.song-list-card{display:flex;gap:12px;justify-content:space-between;align-items:center;text-align:left;width:100%;border:1px solid #604631;border-radius:13px;padding:13px;background:linear-gradient(115deg,#221a23,#14131a);color:var(--text)}.song-list-card:hover{border-color:#bd8d56}.song-list-right{display:flex;align-items:flex-end;flex-direction:column;gap:5px;flex:none}.song-list-right small{color:var(--muted);font-size:10px}.song-main{min-width:0;flex:1}.song-compact-heading{font-size:13px;margin-bottom:6px;line-height:1.35}.song-compact-heading strong{color:#ffe0af}.song-meta-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.song-summary-chip{font-size:10px;padding:4px 7px;border:1px solid #514036;color:#d1b7a1;background:#281d1c;border-radius:7px}.song-artist{font-size:14px;font-weight:500}
.song-top-card .row h2{line-height:1.4}.song-top-card .song-meta-line{margin-top:16px}.song-meta-chip{display:inline-flex;align-items:center;gap:6px;min-height:33px;padding:7px 10px;border-radius:9px;border:1px solid #81643d;background:#291f1b;color:#f8dab4}.song-meta-chip small{font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#b9a390}.song-meta-chip strong{font-size:13px}.song-meta-chip svg{color:#d9ad73}.song-meta-chip:hover{border-color:#dfaf6e}.song-inline-editor{display:inline-flex;align-items:center;gap:5px}.song-small-input{min-width:0;width:95px;font-size:16px!important;padding:6px 8px!important;height:34px;border-radius:8px;background:#0d1015;border:1px solid #e1ae62;color:#fff}.song-edit-hint{display:flex;align-items:center;gap:6px;font-size:10px;color:#c3a78e;margin:10px 0}.song-reference{display:flex;flex-direction:column;gap:5px;border-left:2px solid #875d30;border-radius:0 8px 8px 0;background:#1b171b;padding:10px 12px;margin:14px 0}.song-reference>span{letter-spacing:.12em;font-size:9px;font-weight:750;color:#ecbf83}.song-reference small{font-size:11px;color:#aca8ab}.song-reference a{font-size:11px;color:#d8b88d;text-decoration:underline}.song-controls{gap:8px}.song-lookup-results{display:flex;flex-direction:column;gap:7px;border:1px solid #484052;padding:10px;border-radius:11px;margin:14px 0}.song-match{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;text-align:left;background:#26212c;border:1px solid #4b3b4d;border-radius:10px;padding:10px;color:#fff}.song-match strong{font-size:12px;color:#fae2bf}.song-match span{font-size:11px;color:#c7bfd0}.song-match small{width:100%;color:#ab9da7;font-size:10px}.song-match:hover{border-color:#deb577}
.song-sections-panel h2{font-size:19px}.song-section-note{font-size:11px;color:#bcaeac;line-height:1.6;margin-top:10px}.song-sections{display:flex;flex-direction:column;gap:7px;margin-top:13px}.song-section-row{display:flex;align-items:center;gap:7px;border:1px solid #3c353b;border-radius:10px;padding:6px 8px;background:#191922;min-width:0}.song-section-row:focus-within{border-color:#96642e}.song-drag-handle{color:#cfac7c;display:grid;place-items:center;flex-shrink:0;background:transparent;border:1px solid #3e3942;border-radius:7px;width:30px;height:32px;touch-action:none;cursor:grab}.song-drag-handle:active,.song-drag-handle.active-drag{cursor:grabbing;color:#ffe0aa;background:#4a321b}.song-score-check{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border:1px solid #655342;border-radius:50%;background:#22202b;color:#b8b7bf}.song-score-check.scored{background:#164438;color:#7ee0b2;border-color:#407e62}.song-section-name{flex:1;min-width:0;border:0!important;background:transparent!important;outline:0!important;font-size:16px!important;color:#f1eef4!important;padding:5px 3px!important}.song-sort-controls{display:flex;flex-direction:column;flex-shrink:0}.song-sort-controls .btn{height:20px;width:26px;padding:0}.song-section-row>.btn.icon-only{flex-shrink:0;padding:5px}.song-add-section{display:flex;gap:8px;margin-top:14px}.song-add-section input{min-width:0;flex:1;background:#0f1118;border:1px solid #58505a;border-radius:10px;padding:10px 12px;color:#f7f5f8;font-size:16px}.song-add-section .btn{flex-shrink:0}.warn-text{color:#ffbc9f}
.recent-card{position:relative;display:block!important;overflow:hidden!important;padding:0!important;isolation:isolate}.recent-swipable{display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;padding:12px 14px;position:relative;z-index:2;background:linear-gradient(120deg,#282019,#131217);transition:transform 220ms ease}.recent-swipable>.progress-track{width:100%;margin:0;height:4px}.recent-trash-reveal{position:absolute;left:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:64px;background:#4b222a;z-index:1}.recent-open .recent-swipable{transform:translateX(65px)}.recent-trash-reveal .btn{padding:11px;border:0;border-radius:10px;background:#842e37;color:#fff}.recent-actions .btn.ghost{font-size:16px;padding:5px 9px;color:#baa7a1}
@media(max-width:730px){.songbook-home-cta{padding:10px 11px;gap:8px}.songbook-home-icon{width:35px;height:35px}.songbook-home-icon svg{width:19px}.songbook-home-copy strong{font-size:11px}.songbook-home-copy span{font-size:10px}.songbook-home-cta .btn{font-size:10px;padding:7px 8px}.song-list-card{padding:10px;gap:7px}.song-list-right .badge{font-size:9px}.recent-swipable{padding:10px 11px}.song-artist{font-size:12px}.song-meta-chip{padding:6px 8px}.song-meta-chip strong{font-size:12px}.song-section-row{gap:4px;padding:6px}.song-drag-handle{width:24px}.song-sort-controls .btn{width:21px}.song-section-row>.btn.icon-only{padding:3px}}

/* iTracker v6 — bidirectional mobile gestures for Continue Practising.
   Original v7 directions (overridden by the final v12 direction rules below). Both actions remain
   available from the explicit menu for keyboard, mouse and screen readers. */
.recent-edit-reveal,.recent-trash-reveal{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:70px;z-index:1}
.recent-edit-reveal{left:0;background:#173e36}
.recent-trash-reveal{left:auto;right:0;background:#4b222a}
.recent-edit-reveal .btn{background:#23735f;color:#fff;border:0;padding:12px;border-radius:10px}
.recent-trash-reveal .btn{background:#842e37;color:#fff;border:0;padding:12px;border-radius:10px}
.recent-swipable{touch-action:pan-y}
.recent-card.recent-open-edit .recent-swipable{transform:translateX(70px)}
.recent-card.recent-open-delete .recent-swipable{transform:translateX(-70px)}
.recent-card.recent-open-menu .recent-swipable{transform:translateX(0)}
.recent-menu-options{display:none;width:100%;gap:7px;justify-content:flex-end;align-items:center}
.recent-card.recent-open-menu .recent-menu-options{display:flex}
.recent-menu-options .btn{display:flex;align-items:center;gap:5px}
@media(max-width:730px){.recent-edit-reveal,.recent-trash-reveal{width:62px}.recent-card.recent-open-edit .recent-swipable{transform:translateX(62px)}.recent-card.recent-open-delete .recent-swipable{transform:translateX(-62px)}}

/* iTracker v7 — consistent gesture lanes, with safe action reveal and desktop fallback. */
.recent-card,.swipe-list-row{overscroll-behavior-x:contain}
.recent-swipable,.swipe-list-face{touch-action:pan-y;-webkit-user-select:none;user-select:none;will-change:transform}
.recent-swipable button,.swipe-list-face button{touch-action:pan-y}
.recent-edit-reveal,.recent-trash-reveal{width:76px;align-items:center;justify-content:center}
.recent-edit-reveal{left:0;right:auto}
.recent-trash-reveal{right:0;left:auto}
.recent-card.recent-open-edit .recent-swipable{transform:translateX(76px)}
.recent-card.recent-open-delete .recent-swipable{transform:translateX(-76px)}
.recent-card.recent-open-edit .recent-edit-reveal,.recent-card.recent-open-delete .recent-trash-reveal{z-index:4}
.recent-edit-reveal .btn,.recent-trash-reveal .btn{position:relative;z-index:5}
/* Each editable list element exposes Edit to the left and Delete to the right. */
.swipe-list-row{position:relative;overflow:hidden;isolation:isolate;border:1px solid #4d3b2e;border-radius:12px;background:linear-gradient(120deg,#29211b,#15121a);margin-bottom:8px}
.swipe-list-reveal{position:absolute;top:0;bottom:0;width:76px;z-index:1;display:flex;align-items:center;justify-content:center}
.swipe-list-edit{left:0;right:auto;background:#193d35}.swipe-list-delete{right:0;left:auto;background:#4d242b}
.swipe-list-reveal .btn{padding:9px 7px;font-size:11px;width:66px;min-height:40px;display:flex;gap:3px;align-items:center;justify-content:center;position:relative;z-index:5}
.swipe-list-edit .btn{background:#226c58;border:1px solid #37977d;color:white}.swipe-list-delete .btn{background:#832e3a;border:1px solid #b64a55;color:white}
.swipe-list-face{display:flex;align-items:center;flex-wrap:wrap;position:relative;z-index:2;width:100%;padding:0 8px;background:linear-gradient(120deg,#29211b,#15121a);transition:transform .22s ease;min-height:68px}
.swipe-list-main{flex:1;min-width:0;display:flex;align-items:center}.swipe-list-main>button{display:flex;align-items:center;gap:10px;justify-content:space-between;flex:1;min-width:0}
.swipe-list-main .routine-card,.swipe-list-main .practice-item,.swipe-list-main .song-list-card{box-shadow:none;background:transparent;border:0;min-height:0;border-radius:0}
.swipe-list-row.swipe-list-open-edit .swipe-list-face{transform:translateX(76px)}
.swipe-list-row.swipe-list-open-delete .swipe-list-face{transform:translateX(-76px)}
.swipe-list-row.swipe-list-open-edit .swipe-list-edit,.swipe-list-row.swipe-list-open-delete .swipe-list-delete{z-index:4}
.swipe-list-menu{display:none;flex-basis:100%;justify-content:flex-end;align-items:center;gap:7px;padding:0 2px 8px}
.swipe-list-row.swipe-list-open-menu .swipe-list-menu{display:flex}
.swipe-list-more{font-weight:900;letter-spacing:1px;padding:9px 7px;flex-shrink:0}
.swipe-list-row:not(.swipe-list-open-menu) .swipe-list-menu{display:none}
/* Fit action lanes and retain the compact approved typography on phones. */
@media(max-width:730px){.recent-edit-reveal,.recent-trash-reveal,.swipe-list-reveal{width:68px}.recent-card.recent-open-edit .recent-swipable,.swipe-list-row.swipe-list-open-edit .swipe-list-face{transform:translateX(68px)}.recent-card.recent-open-delete .recent-swipable,.swipe-list-row.swipe-list-open-delete .swipe-list-face{transform:translateX(-68px)}.swipe-list-face{padding:0 6px}.swipe-list-reveal .btn{width:60px;font-size:10px}.swipe-list-more{padding:7px 5px}}

/* v8 — Compact online song title/artist suggestion panel (Apple catalogue). */
.song-add-box{overflow:visible}.song-auto-wrap{position:relative;z-index:3;max-width:100%}.song-autocomplete-panel{border:1px solid #805d40;background:#17151e;box-shadow:0 14px 34px #0009,0 0 0 1px #c48a3230;border-radius:11px;overflow:hidden;margin:7px 0 4px;max-width:100%}.song-auto-head{padding:7px 10px 5px;display:flex;justify-content:space-between;align-items:center;color:#f5c88e;font-size:9px;font-weight:800;letter-spacing:.12em}.song-auto-head>span{display:flex;align-items:center;gap:5px}.song-auto-dismiss{display:grid;place-items:center;background:#312934;border:1px solid #534756;border-radius:7px;color:#c9b2b1;min-height:24px;min-width:26px}.song-autocomplete-option{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 11px;background:transparent;color:#eee;text-align:left;border-bottom:1px solid #342d37}.song-autocomplete-option:hover,.song-autocomplete-option:focus-visible{background:#3b2a2b}.song-autocomplete-option:last-of-type{border-bottom:0}.song-auto-title{font-size:12px;font-weight:750;color:#ffe0b0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.song-auto-artist{font-size:11px;color:#c8bdd0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.song-auto-provider{font-size:9px;color:#c6a37e;white-space:nowrap}.song-auto-foot{padding:7px 11px;font-size:10px;color:#a697a0;background:#141218}.song-auto-help{font-size:10px;color:#a99582;display:flex;align-items:center;gap:5px;margin-top:8px;line-height:1.45}.song-auto-empty{font-size:11px;color:#c7b1a8;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.song-auto-status{display:inline-flex;align-items:center;gap:7px}.song-tempo-hint{font-size:10px;color:#d7b78b;display:flex;align-items:center;gap:7px;margin:10px 0 7px}.song-add-box .fields2{margin-bottom:0}
@media(max-width:730px){.song-autocomplete-option{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 8px;padding:8px 10px}.song-auto-provider{grid-column:2;font-size:9px}.song-auto-title{grid-row:span 2;font-size:11px}.song-auto-artist{font-size:10px}.song-auto-help{font-size:9px}}

/* v9 — true live, finger-linked swipe motion on every actionable card. */
.recent-swipable,.swipe-list-face{
  transition:transform 190ms cubic-bezier(.18,.82,.24,1);
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
  will-change:transform;
  touch-action:pan-y;
}
.recent-card.swipe-finger-active .recent-swipable,
.swipe-list-row.swipe-finger-active .swipe-list-face{transition:none!important;cursor:grabbing}
.recent-card.recent-open-edit .recent-swipable{transform:translate3d(76px,0,0)}
.recent-card.recent-open-delete .recent-swipable{transform:translate3d(-76px,0,0)}
.swipe-list-row.swipe-list-open-edit .swipe-list-face{transform:translate3d(76px,0,0)}
.swipe-list-row.swipe-list-open-delete .swipe-list-face{transform:translate3d(-76px,0,0)}
@media(max-width:730px){
  .recent-card.recent-open-edit .recent-swipable,.swipe-list-row.swipe-list-open-edit .swipe-list-face{transform:translate3d(68px,0,0)}
  .recent-card.recent-open-delete .recent-swipable,.swipe-list-row.swipe-list-open-delete .swipe-list-face{transform:translate3d(-68px,0,0)}
}


/* v10 — Ultra-compact Songbook autocomplete. A floating shortlist, not a full-width box. */
.song-add-box{overflow:visible}
.song-auto-wrap{position:relative;z-index:35;height:0;max-width:100%;pointer-events:none}
.song-autocomplete-panel{
  position:absolute;left:0;top:3px;
  box-sizing:border-box;width:min(250px,calc(100vw - 54px));max-width:100%;
  max-height:154px;overflow:hidden;margin:0;
  background:#16121c;border:1px solid #876442;border-radius:9px;
  box-shadow:0 8px 20px #000b,0 0 0 1px #c48a3222;
  pointer-events:auto
}
.song-auto-head{padding:4px 6px 3px 8px;font-size:8px;letter-spacing:.08em;line-height:15px;min-height:23px}
.song-auto-head>span{gap:4px}
.song-auto-head svg{width:10px;height:10px}
.song-auto-dismiss{min-width:19px;min-height:19px;border-radius:4px}
.song-auto-scroll{max-height:126px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.song-autocomplete-option{
  display:flex;flex-direction:column;align-items:stretch;justify-content:center;
  width:100%;min-width:0;min-height:29px;gap:1px;padding:4px 8px;
  border-bottom:1px solid #332832;line-height:1.12;grid-template-columns:none
}
.song-auto-title{display:block;font-size:10.3px;font-weight:720;line-height:13px}
.song-auto-artist{display:block;font-size:9px;line-height:11px;color:#b9a6be}
.song-auto-status-panel{padding:7px 8px}
.song-auto-status{font-size:9px;gap:5px}
.song-auto-empty{font-size:9px;padding:8px;line-height:1.25}
.song-auto-foot,.song-auto-provider{display:none}
@media(min-width:731px){.song-auto-wrap.song-auto-artist-field .song-autocomplete-panel{left:auto;right:0}}
@media(max-width:730px){
  .song-autocomplete-panel{left:0;right:auto;width:min(238px,calc(100vw - 60px));max-height:149px}
  .song-autocomplete-option{display:flex;grid-template-columns:none;min-height:28px;gap:1px;padding:3px 7px}
  .song-auto-title{font-size:10px;line-height:13px;grid-row:auto}
  .song-auto-artist{font-size:8.5px;line-height:10px}
}

/* v11 — deliberately minimal Songbook. Add/Edit share one small form. */
.song-minimal-box{max-width:700px;margin-left:auto;margin-right:auto;overflow:hidden}
.song-minimal-box h2{font-size:16px;margin:0 0 4px;font-weight:770}
.song-minimal-box .song-minimal-fields{margin-top:14px;gap:10px}
.song-entry-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px}
.song-entry-actions .tiny{margin-right:auto}
.song-done-blue{appearance:none;border:1px solid #6bb3ff;background:linear-gradient(140deg,#318ff5,#1755c4);color:#fff;display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:7px;box-shadow:0 2px 13px #146acf47;cursor:pointer;touch-action:manipulation}
.song-done-blue svg{stroke-width:3}
.song-done-blue:hover:not(:disabled){background:linear-gradient(140deg,#4fa5ff,#2870e1)}
.song-done-blue:focus-visible{outline:2px solid #b2dfff;outline-offset:3px}
.song-done-blue:disabled{opacity:.36;cursor:not-allowed;box-shadow:none}
.song-list-card{min-height:50px}
.song-list-card .song-compact-heading{display:block;margin:0;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.song-minimal-box input{font-size:16px}
@media(max-width:730px){.song-minimal-box{padding:13px 12px}.song-done-blue{width:35px;height:35px}.song-list-card{padding:11px 9px}}


/* iTracker v12 — user's latest directions: RIGHT reveals Delete/Remove, LEFT reveals Edit.
   Overlay these rules last to override historical swipe styles without changing the approved skin. */
.recent-edit-reveal{left:auto!important;right:0!important;background:#173e36}
.recent-trash-reveal{left:0!important;right:auto!important;background:#4b222a}
.swipe-list-edit{left:auto!important;right:0!important;background:#193d35}
.swipe-list-delete{left:0!important;right:auto!important;background:#4d242b}
.recent-card.recent-open-edit .recent-swipable,
.swipe-list-row.swipe-list-open-edit .swipe-list-face {transform:translate3d(-76px,0,0)}
.recent-card.recent-open-delete .recent-swipable,
.swipe-list-row.swipe-list-open-delete .swipe-list-face {transform:translate3d(76px,0,0)}
@media(max-width:730px){
  .recent-card.recent-open-edit .recent-swipable,
  .swipe-list-row.swipe-list-open-edit .swipe-list-face {transform:translate3d(-68px,0,0)}
  .recent-card.recent-open-delete .recent-swipable,
  .swipe-list-row.swipe-list-open-delete .swipe-list-face {transform:translate3d(68px,0,0)}
}


/* v15 — compact scoring notes, optional sections and one-tap completion. */
.song-brief-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.song-brief-metrics .field{min-width:0}.song-brief-metrics input{min-width:0;width:100%;height:39px;padding:8px 10px;font-size:16px}
.song-optional-toggle{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:13px;padding:9px 10px;border:1px solid #4b3948;border-radius:10px;color:#decfbc;background:#1a1720;font-size:12px;text-align:left;cursor:pointer}
.song-optional-toggle>span{display:flex;gap:7px;align-items:center}.song-optional-toggle small{font-size:10px;color:#aba0a7}
.song-extra-section-inner{padding:12px 0 2px}.song-extra-section-inner>p{margin:0 0 10px}.song-draft-section{margin-top:6px}.song-draft-section .song-section-name{font-size:16px!important}
.song-draft-add-section{margin-top:10px}.song-draft-add-section input{font-size:16px}
.song-record-row{display:flex;align-items:center;gap:7px;min-width:0;flex:1}
.song-record-row .song-list-card{min-width:0;flex:1;border:0;padding:6px 0;min-height:41px;background:transparent}
.song-record-metadata{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:5px}
.song-record-metadata small{font-size:10px;padding:2px 6px;background:#302630;border-radius:5px;color:#d2b9d0;border:1px solid #574653}
.song-completion{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #5b4e5b;border-radius:8px;background:#241e27;padding:8px 7px;color:#bdb4bc;cursor:pointer;font-size:10px;min-height:34px;touch-action:manipulation}
.song-completion.is-scored{color:#a1f0c5;border-color:#367a5d;background:#113629}.song-completion svg{height:15px;width:15px}
@media(max-width:480px){.song-minimal-box{padding:12px 10px}.song-brief-metrics{gap:6px}.song-brief-metrics input{padding:7px 6px}.song-completion{gap:3px;padding:7px 5px}.song-completion span{font-size:9px}}


/* iTracker v17 — keep cloud controls visible on iPhone/PWA; preserve approved skin. */
.main { min-width:0; }
.topbar {
  position:sticky; top:0; z-index:60;
  min-width:0; padding:9px 10px;
  margin: -9px -10px 18px;
  background:rgba(8,9,14,.95);
  border:1px solid rgba(181,122,53,.35);
  border-radius:13px;
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  isolation:isolate;
}
.top-actions { min-width:0; flex:0 1 auto; align-items:center; }
.top-actions .cloud-indicator { min-width:0; flex:0 1 auto; }
.top-actions .round-button { flex:0 0 auto; }
.sync-now-button svg { transition: transform .2s ease; }
.sync-now-button[aria-busy="true"] svg { animation:itracker-rotate .85s linear infinite; }
@keyframes itracker-rotate { to { transform:rotate(360deg); } }
@media (max-width:730px) {
  .main{padding-top:max(12px,env(safe-area-inset-top,0px));}
  .topbar{
    margin:-5px -5px 14px; padding:7px 8px; gap:7px;
    top:0; width:calc(100% + 10px); min-height:49px;
    border-color:rgba(206,167,84,.45);
    box-shadow:0 3px 22px rgba(0,0,0,.64);
  }
  .mobile-top-brand{min-width:0;flex:0 0 auto;gap:5px;font-size:10px;letter-spacing:.055em}
  .mobile-top-brand .brand-icon{width:27px;height:27px;font-size:15px;border-radius:8px}
  .top-actions{flex:1;justify-content:flex-end;gap:5px}
  .top-actions .cloud-indicator{
    max-width:none;min-width:0;flex:1 1 auto;width:0;
    font-size:10px;line-height:1.18;letter-spacing:0;
    padding:7px 7px;min-height:30px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .top-actions .round-button{width:31px;height:31px;border-radius:9px}
  .top-actions .round-button svg{width:16px;height:16px}
}
@media (max-width:360px) {
  .mobile-top-brand{font-size:9px}
  .mobile-top-brand .brand-icon{width:24px;height:24px;font-size:13px}
  .topbar{gap:5px;padding:7px 6px}
  .top-actions{gap:4px}
  .top-actions .round-button{width:29px;height:29px}
}
/* Respect safe-area insets in installed iOS Home Screen mode. */
@media (max-width:730px) and (display-mode:standalone) {.topbar{top:0}}
/* Non-blocking floating feedback for the swipe-down sync gesture. */
.pull-sync-feedback{
  position:fixed;z-index:101;top:calc(env(safe-area-inset-top,0px) + 9px);left:50%;
  transform:translate3d(-50%,-140%,0);opacity:0;pointer-events:none;
  display:flex;align-items:center;gap:8px;max-width:calc(100vw - 24px);min-height:33px;
  padding:8px 13px;color:#f7d79e;background:rgba(17,16,21,.97);
  border:1px solid #ae7b3d;border-radius:99px;
  font-size:11px;font-weight:750;white-space:nowrap;
  box-shadow:0 6px 24px #000a;
  transition:transform 170ms ease,opacity 170ms ease;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.pull-sync-feedback.show{opacity:1;transform:translate3d(-50%,0,0)}
.pull-sync-feedback.dragging{transition:none}
.pull-sync-feedback .pull-symbol{font-size:17px;line-height:1}
.pull-sync-feedback.busy .pull-symbol{animation:itracker-rotate .85s linear infinite}
.pull-sync-feedback.error{border-color:#cc7253;color:#ffd4bd}
.pull-sync-feedback.success{border-color:#387a5e;color:#aeefc9}
/* Show one brand on phones: desktop heading previously squeezed sync status. */
@media(max-width:730px){
  .topbar .desktop-topline{display:none!important}
  .top-actions{min-width:0;flex:1 1 0}
  .top-actions .cloud-indicator{flex:1 1 auto;width:auto;min-width:68px}
}

/* v18: unobtrusive click-to-edit on the configuration heading. */
.config-title-edit{display:inline-flex;align-items:center;gap:11px;text-align:left;max-width:100%;background:transparent;border:0;padding:0;color:inherit;font:inherit;line-height:inherit;letter-spacing:inherit;cursor:pointer;overflow-wrap:anywhere}
.config-title-pencil{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;border-radius:9px;border:1px solid #75562e;background:#37271977;color:#ecc48b;opacity:.78;transition:border-color .18s,opacity .18s}
.config-title-edit:hover .config-title-pencil,.config-title-edit:focus-visible .config-title-pencil{border-color:var(--gold);opacity:1}
.config-name-editor{padding:15px 17px;margin-bottom:14px;border-color:#b38545;background:linear-gradient(140deg,#271a1b,#14141d)}
.config-name-editor-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap;margin-bottom:12px}
.config-name-editor-heading strong{font-size:13px;color:#f4d5a5}
.config-name-editor-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px}
.config-name-editor-actions{display:flex;align-items:center;gap:9px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
.config-name-save{background:linear-gradient(135deg,#ecb35a,#d48a24)}
@media(max-width:730px){.config-title-edit{gap:8px}.config-title-pencil{width:29px;height:29px}.config-name-editor{padding:13px}}

/* v19: important per-configuration personal notes are visible before tempo and key checklists. */
.practice-note-reminder{background:linear-gradient(125deg,#312314,#191920 65%,#15151d);border:1px solid #b68a4e;border-radius:14px;padding:12px 14px;margin:-2px 0 14px;box-shadow:inset 3px 0 #dfae63,0 10px 24px #0003}
.practice-note-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.practice-note-title{display:flex;align-items:center;gap:9px;min-width:0;color:#f1ca91}
.practice-note-title svg{flex-shrink:0}
.practice-note-title span{display:flex;flex-direction:column;gap:1px;min-width:0}
.practice-note-title strong{font-size:12px;font-weight:850}
.practice-note-title small{font-size:10px;color:#b4a59a;overflow-wrap:anywhere}
.practice-note-count{font-size:10px;color:#ddb782;background:#3c2a1d;border:1px solid #70502f;border-radius:20px;padding:4px 9px;white-space:nowrap}
.practice-note-list{display:flex;flex-direction:column;gap:5px}
.practice-note-entry{color:#f2e9e1;background:#110f14a8;border:1px solid #584531;border-radius:9px;padding:8px 10px;font-size:12px;line-height:1.48;overflow-wrap:anywhere;white-space:normal}
.practice-note-text{white-space:pre-wrap}
.practice-note-entry ul{padding-left:19px;margin:5px 0 0;color:#e4d1b7;white-space:pre-wrap}
.practice-note-entry li{padding-top:2px}
.practice-note-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:7px}
.practice-note-actions .btn{font-size:10px;padding:6px 8px}
.practice-note-indicator{display:inline-flex;align-items:center;vertical-align:middle;gap:3px;color:#e8bd80;font-size:11px;font-weight:700}
@media(max-width:600px){.practice-note-reminder{padding:10px 11px;margin-bottom:12px}.practice-note-entry{padding:7px 9px;font-size:11.5px}}

/* iTracker v20 — compact routine-first Practice and vertical Home slideshow */
.practice-parent-list{display:flex;flex-direction:column;gap:13px;margin-bottom:16px}
.practice-parent-box{border:1px solid #584029;border-radius:17px;background:linear-gradient(110deg,#241b18,#12131b 42%,#11121a);padding:16px;min-width:0}
.practice-parent-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 1px 12px;border-bottom:1px solid #3c3330;margin-bottom:12px}
.practice-parent-title{display:flex;flex-direction:column;align-items:flex-start;gap:3px;background:none;color:#fff;text-align:left;min-width:0;padding:0;cursor:pointer}
.practice-parent-title strong{font-size:20px;letter-spacing:.01em}
.practice-parent-title .eyebrow{font-size:9px;color:#f5bb67;letter-spacing:.18em}
.practice-parent-title .tiny{display:flex;align-items:center;gap:5px;font-size:11px}
.practice-parent-mark{color:#d7a24b;display:grid;place-items:center;padding:9px;background:#342719;border:1px solid #634728;border-radius:11px}
.practice-parent-configs{display:flex;flex-direction:column;gap:8px}
.practice-parent-configs .swipe-list-row{margin:0}
.practice-parent-configs .swipe-list-face{padding:0}
.practice-parent-configs .swipe-list-main{flex:1;min-width:0}
.practice-quick-config{display:flex;align-items:center;justify-content:space-between;gap:11px;min-height:68px;padding:12px 13px}
.practice-quick-main{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.practice-quick-main strong{font-size:13px;color:#f3eff6}
.practice-quick-main .tiny{line-height:1.3;font-size:10px}
.practice-quick-main .progress-track{width:100%;height:4px;margin-top:3px}
.practice-quick-config>.btn{flex:none;font-size:12px;padding:9px 11px;white-space:nowrap}
.practice-category-compact{text-align:center;padding:12px 9px 19px;margin:8px auto 4px;max-width:700px}
.practice-category-caption{font-size:9px;font-weight:750;letter-spacing:.19em;color:#ab9c8c;margin-bottom:10px}
.practice-category-pills{display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap}
.practice-category-pill{border:1px solid #393642;background:#14151d;border-radius:100px;padding:7px 11px;color:#c4c4d0;font-size:11px;display:flex;align-items:center;gap:6px}
.practice-category-pill svg{color:#cf9b52}
.practice-category-pill:hover,.practice-parent-title:hover{color:#fcd59a}

.home-carousel{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:9px;align-items:stretch;margin-bottom:18px;min-width:0}
.home-carousel-window{position:relative;overflow:hidden;height:146px;min-width:0;border-radius:13px;touch-action:pan-x;user-select:none;-webkit-user-select:none}
.home-carousel-track{position:absolute;inset:0;display:flex;flex-direction:column;will-change:transform;transition:transform 320ms cubic-bezier(.2,.8,.25,1);height:100%}
.home-carousel-slide{width:100%;height:100%;min-height:100%;flex:0 0 100%;display:flex;min-width:0;align-items:stretch;justify-content:stretch}
.home-carousel-slide[aria-hidden="true"]{pointer-events:none}
.home-carousel-slide>.recent-card,.home-carousel-slide>.home-song-slide{width:100%;height:100%;min-width:0}
.home-carousel-slide .recent-swipable{height:100%;align-content:center;overflow:visible}
.home-carousel-slide .recent-main{min-width:0}
.home-carousel-slide .recent-heading strong{font-size:14px}
.home-carousel-slide .recent-stats{margin-top:5px}
.home-carousel-rail{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:4px;padding:1px 0}
.home-slide-arrow{display:grid;place-items:center;width:34px;height:34px;border:1px solid #5a4631;border-radius:10px;color:#e3b66d;background:#1d1a1e;touch-action:manipulation}
.home-slide-arrow:active{background:#3a2b1d}
.home-carousel-count{font-size:10px;white-space:nowrap;color:#bbad9c;font-variant-numeric:tabular-nums}
.home-carousel-dots{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;max-height:36px;overflow:hidden}
.home-carousel-dot{width:5px;height:5px;border:0;border-radius:9px;background:#69616b;padding:0;flex:none}
.home-carousel-dot.active{height:12px;background:#e2ad59}
.home-song-slide{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px;border-radius:13px;background:linear-gradient(110deg,#282017,#15151d 60%);border:1px solid #6d4a28}
.home-song-heading{display:flex;flex-direction:column;gap:5px;min-width:130px;flex:1}
.home-song-heading strong{font-size:16px;line-height:1.3}
.home-song-controls{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:none}
.home-scored-flag{font-size:11px;color:#7cdeb5;display:flex;align-items:center;gap:5px}
@media(max-width:730px){
  .home-carousel{grid-template-columns:minmax(0,1fr) 36px;gap:5px}
  .home-carousel-window{height:170px}
  .home-carousel-rail .home-slide-arrow{width:32px;height:32px}
  .home-carousel-slide .recent-swipable{padding:12px}
  .home-carousel-slide .recent-main{flex-basis:100%}
  .home-carousel-slide .recent-actions{width:100%;justify-content:flex-end}
  .home-carousel-slide .recent-stats{gap:6px}
  .home-carousel-slide .recent-menu-options{margin-top:4px}
  .home-song-slide{padding:12px;align-items:flex-start}
  .home-song-heading strong{font-size:14px}
  .home-song-controls .btn{padding:9px 10px;font-size:11px}
  .practice-parent-box{padding:12px}
  .practice-parent-title strong{font-size:17px}
  .practice-quick-config{padding:10px 7px 10px 9px;gap:6px}
  .practice-quick-config>.btn{font-size:11px;padding:9px 8px}
}


/* v21: the safe back-gesture corridor is a dedicated full-height grid column.
   iPad: expanded gap between navigation and content; mobile: slim edge handle.
   It does not cover swipeable cards, form controls, or the Home slideshow. */
@media (min-width:731px){
  .shell{grid-template-columns:224px 44px minmax(0,1fr)}
  .back-swipe-rail{grid-column:2;position:sticky;top:0;height:100vh;min-width:44px;border-right:1px solid #4e38218a;background:linear-gradient(90deg,#151217cc,#1b15137a 55%,transparent);display:flex;align-items:center;justify-content:center;touch-action:pan-y;z-index:8}
  .main{grid-column:3}
  .back-swipe-rail.is-enabled{cursor:ew-resize}
  .back-rail-button{position:sticky;top:43vh;background:#2c211b;color:#eabf86;border:1px solid #6d5038;border-radius:12px;padding:12px 4px;min-width:34px;min-height:68px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:9px;letter-spacing:.04em;box-shadow:0 6px 18px #0006}
  .back-rail-button:disabled{opacity:.20;border-color:#493a2b;box-shadow:none;cursor:default}
}
@media (min-width:731px) and (max-width:1000px){.shell{grid-template-columns:190px 42px minmax(0,1fr)}}
@media (max-width:730px){
  .back-swipe-rail{position:fixed;left:3px;top:82px;bottom:calc(93px + env(safe-area-inset-bottom));width:25px;z-index:31;display:flex;align-items:center;justify-content:center;touch-action:pan-y;pointer-events:none}
  .back-swipe-rail.is-enabled{pointer-events:auto}
  .back-rail-button{display:flex;justify-content:center;align-items:center;width:23px;height:70px;background:#392918dd;border:1px solid #c2924b;color:#f4cb8c;border-radius:0 12px 12px 0;padding:0;box-shadow:0 2px 10px #0008}
  .back-rail-button span{display:none}
  .back-rail-button svg{width:14px}
  .back-swipe-rail:not(.is-enabled){display:none}
}
@media(prefers-reduced-motion:reduce){.page-frame{transition:none!important}}
/* v21: important notes are not an accordion; they're inside Tempo Control,
   beside the rhythm/subdivision details and readable without pressing Show All. */
.practice-tempo-lower{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;margin-top:17px;align-items:start}
.practice-tempo-lower.with-notes{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}
.practice-tempo-rhythm{min-width:0;padding-top:2px}
.practice-tempo-lower .practice-note-reminder{min-width:0;margin:0;padding:12px 14px;border-color:#d29a49;box-shadow:inset 3px 0 #ffc16a,0 8px 18px #0004;background:linear-gradient(135deg,#422b17,#1d1b20 80%)}
.practice-tempo-lower .practice-note-title strong{font-size:14px;color:#ffe1aa;letter-spacing:.01em}
.practice-tempo-lower .practice-note-title small{font-size:10px;color:#d0bda8}
.practice-tempo-lower .practice-note-entry{font-weight:750;color:#fff3da;font-size:12.5px;line-height:1.5;background:#151218d9}
.practice-tempo-lower .practice-note-entry ul{color:#f4ddb9;font-weight:650}
.practice-tempo-lower .practice-note-list{max-height:230px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#986b38 #15151a;padding-right:3px}
.practice-tempo-lower .practice-note-actions{margin-top:5px}
.practice-concentration{padding:15px 18px;border-color:#4e4250;background:linear-gradient(125deg,#1e1a27,#11131a)}
.practice-concentration-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.practice-concentration-title{display:flex;align-items:center;gap:9px;min-width:0}
.practice-concentration-title svg{color:#ddae71}
.practice-concentration-title h2{font-size:17px;font-weight:800}
.concentration-entries{padding-left:21px;margin:0;display:grid;gap:7px;color:#e7dde6;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.concentration-entries .concentration-main{font-weight:650}
.concentration-entries ul{margin:5px 0 0;padding-left:18px;color:#c7bac8;font-size:11px}
.personal-notes-editor-hint{display:flex;gap:8px;align-items:flex-start;background:#34261a;color:#ffddac;border:1px solid #89653a;border-radius:10px;padding:11px;font-size:11px;line-height:1.5}
.personal-notes-editor-hint svg{flex-shrink:0;margin-top:1px}
@media(max-width:780px){
  .practice-tempo-lower.with-notes{grid-template-columns:minmax(0,1fr)}
  .practice-tempo-lower .practice-note-list{max-height:260px}
}
@media(max-width:730px){.practice-concentration{padding:12px 13px}.practice-concentration-title h2{font-size:15px}}
/* Keep Tempo controls readable on narrow phones; both BPM digits must remain visible. */
@media(max-width:440px){
  .temp-grid{gap:8px}
  .temp-display{padding:10px 8px}
  .tempo-control{gap:4px}
  .tempo-control button{width:29px;min-width:29px;height:37px;padding:5px}
  .tempo-control .field input{min-width:0;width:100%;padding:8px 2px;font-size:18px;min-height:39px}
}

/* v22 — approved Practice order and read-only information placement.
   Tempo Control + Personal Notes (side by side), Key Checklist, Concentration.
   All editing stays in Create; Practice only updates BPM and checklist. */
.practice-tempo-lower.with-notes {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;
  gap:14px;
  margin-top:17px;
}
.practice-tempo-lower .practice-tempo-rhythm {
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  padding:5px 0;
}
.practice-tempo-lower .practice-note-reminder {
  margin:0;
  min-width:0;
  border:1.5px solid #d6a34d;
  box-shadow:inset 2px 0 #ffc96e,0 8px 22px #0004;
  background:linear-gradient(155deg,#372715,#1a1619 83%);
  padding:12px 13px;
}
.practice-note-top{align-items:flex-start}
.practice-read-only {
  display:inline-flex;
  gap:4px;
  align-items:center;
  white-space:nowrap;
  flex-shrink:0;
  background:#332043;
  color:#e5b4ff;
  border:1px solid #68407b;
  font-size:10px;
  font-weight:750;
  border-radius:999px;
  padding:4px 7px;
}
.practice-read-only svg{width:12px;height:12px}
.practice-tempo-lower .practice-note-title strong{font-size:13px}
.practice-tempo-lower .practice-note-title small{font-size:10px}
.practice-tempo-lower .practice-note-entry{font-weight:700;font-size:12px}
.practice-tempo-lower .practice-note-list{
  max-height:290px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.practice-note-placeholder{font-size:11px;color:#d4bc96;line-height:1.45}
.practice-key-panel{border-color:#504065;background:linear-gradient(122deg,#24192c,#10121a 65%)}
.practice-concentration{border-color:#98713f;background:linear-gradient(124deg,#291d16,#14141b 65%)}
.practice-concentration-title svg{color:var(--gold)}
.practice-concentration .concentration-entries{font-size:12px;color:#f1e5d2}
.practice-concentration .concentration-entries ul{color:#dacfc5}
/* Force columns to stay side-by-side on iPhone as requested, overriding v21's
   @max-width:780px stacking rule. Compact but readable at 375-430px. */
@media(max-width:780px) {
  .practice-tempo-lower.with-notes {grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:10px}
  .practice-tempo-lower .practice-note-reminder{padding:10px 10px}
  .practice-tempo-lower .practice-note-list{max-height:265px}
  .practice-concentration{padding:13px}
}
@media(max-width:460px) {
  .practice-tempo-lower.with-notes{gap:8px;margin-top:14px;grid-template-columns:minmax(0,0.88fr) minmax(0,1.12fr)}
  .practice-tempo-rhythm .section-pill{font-size:10px;padding:4px 7px}
  .practice-tempo-rhythm .subdivision{font-size:10.5px;gap:4px}
  .practice-tempo-rhythm .muted.tiny{font-size:10px;line-height:1.45}
  .practice-tempo-lower .practice-note-reminder{padding:8px 8px;border-radius:11px}
  .practice-tempo-lower .practice-note-top{gap:5px;flex-wrap:wrap}
  .practice-tempo-lower .practice-note-title{gap:5px}
  .practice-tempo-lower .practice-note-title strong{font-size:12px}
  .practice-tempo-lower .practice-note-title small{font-size:9px}
  .practice-tempo-lower .practice-note-entry{padding:7px 7px;font-size:11px;line-height:1.45}
  .practice-tempo-lower .practice-note-entry ul{padding-left:14px}
  .practice-tempo-lower .practice-note-list{max-height:240px}
  .practice-read-only{font-size:9px;padding:3px 6px}
  .practice-concentration-title h2{font-size:15px}
}
