/* Warm studio: shared presentation, loaded after the functional component styles. */
:root {
  --bg-top:#f7f3eb; --bg-bottom:#f7f3eb; --text:#302e29; --dim:#706b61;
  --faint:#817a6e; --rail:#d6cebf; --line:#e4ddcf; --cell:#e9e1d2;
  --light:#3b473b; --accent:#a44830; --raised:#fffdf8; --sunk:#eee8dd;
  --paper:#fffdf8; --olive:#53634d; --peach:#f1ddcc; --muted:#706b61;
  --display:Georgia,'Times New Roman',serif; --nav-h:76px;
}
html,body {background:var(--bg-top);color:var(--text);}
#root {background:radial-gradient(ellipse at 95% 0,#efe2cc88,transparent 48%),var(--bg-top);}
.topbar {max-width:1200px;width:100%;margin:auto;padding:22px 36px 16px;min-height:80px;}
.brand {gap:20px;align-items:center;}
.brand-mark {font-family:var(--display);font-size:33px;font-weight:600;letter-spacing:-1.8px;line-height:1;}
.brand-dot {color:var(--accent);}
.brand-sub {display:inline;color:var(--dim);font-size:12px;}
.tb-stat-label {text-transform:none;letter-spacing:0;font-size:11px;color:var(--dim);font-weight:400;}
.tb-ver {font-size:10px;color:var(--faint);letter-spacing:0;}
.led.green.on {background:var(--olive);}
.bottom-nav {left:50%;right:auto;transform:translateX(-50%);bottom:14px;width:min(560px,calc(100% - 28px));height:66px;padding:5px 10px;border:1px solid #e4ddcf;border-radius:24px;background:#fffdf8f5;box-shadow:0 6px 28px #56472b12;}
.bottom-nav a {gap:4px;border-radius:17px;color:#797369;}
.bottom-nav a.active {color:var(--accent);background:#f4e8df;}
.bottom-nav .bn-led {display:none;}
.bn-label {font-size:11px;letter-spacing:0;font-weight:500;}
.bn-icon {width:21px;height:21px;}
main.view {padding-bottom:24px;}
.view>.page {max-width:1128px;padding:0 24px;}
.page-head {padding:22px 0 14px;align-items:center;}
.page-title {font-family:var(--display);font-size:32px;font-weight:400;letter-spacing:-.8px;margin:0;}
.page-sub {font-size:12px;}
.page-back {padding:0 0 16px;}
.library-hero {display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;gap:28px;padding:42px 48px;background:#e9e5d6;border-radius:30px;min-height:266px;margin:12px 0 12px;}
.library-intro {position:relative;z-index:1;max-width:650px;}
.library-eyebrow {font-size:12px;color:var(--olive);font-weight:600;letter-spacing:.04em;margin:0 0 14px;}
.library-hero h2 {font-family:var(--display);font-weight:400;font-size:clamp(36px,4.8vw,60px);letter-spacing:-2px;line-height:1.08;margin:0 0 18px;max-width:480px;}
.library-hero p:not(.library-eyebrow) {font-size:14px;color:var(--dim);line-height:1.6;max-width:400px;}
.library-resume {display:inline-flex;align-items:center;gap:14px;border-radius:16px;background:var(--paper);padding:13px 18px;margin-top:8px;box-shadow:0 4px 16px #52483208;max-width:100%;font-size:13px;}
.library-resume span:last-child {font-weight:600;color:var(--accent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.studio-record {position:relative;flex:none;width:232px;height:232px;border-radius:50%;background:repeating-radial-gradient(circle,#414936 0 1px,#343d31 2px 4px);box-shadow:12px 16px 0 #cec6b055;transform:rotate(-18deg);margin-right:16px;}
.studio-record::before {content:'';position:absolute;inset:30%;background:#c87653;border:9px solid #b76646;border-radius:50%;}
.studio-record::after {content:'';position:absolute;inset:47%;background:#e9e5d6;border-radius:50%;}
.library-search {display:flex;align-items:center;gap:12px;margin:0 0 24px;}
.library-search label {flex:1;min-width:0;font-size:12px;color:var(--dim);}
.library-search input {display:block;width:100%;border:1px solid var(--line);background:var(--paper);color:var(--text);border-radius:16px;min-height:50px;padding:13px 18px;font-size:15px;margin-top:6px;}
.library-search button {min-height:44px;padding:10px 16px;color:var(--accent);font-size:13px;}
.track-list {gap:12px;}
.library-artist-group {padding:4px 12px 10px;background:var(--paper);border:1px solid var(--line);border-radius:22px;break-inside:avoid;}
.tl-artist {padding:15px 12px 10px;margin:0;text-transform:none;letter-spacing:0;font-size:16px;font-weight:600;color:var(--dim);min-height:48px;}
.tl-artist-name {color:var(--text);}
.tl-artist.closed {border:0;padding-bottom:8px;}
.tl-artist-n {font-size:12px;}
.tc {border:0;border-radius:14px;padding:12px;min-height:76px;transition:background .15s;}
.tc:hover,.tc:focus-visible {background:#f5f0e7;}
.tc-key {width:48px;height:48px;border-radius:15px;background:#e7eadf;color:#3f503a;font-size:17px;font-weight:500;}
.tc:nth-child(3n+2) .tc-key {background:#f2e3d6;color:#88452f;}
.tc:nth-child(3n) .tc-key {background:#ede5ef;color:#6a536b;}
.tc-key small {color:inherit;opacity:.8;font-size:10px;font-weight:400;}
.tc-title {font-size:15px;font-weight:500;}
.tc-meta {font-size:12px;line-height:1.5;}
.tc-chev {color:var(--accent);}
.tc-pin {color:var(--olive);}
.notice {border-radius:16px;margin:0 auto 12px;width:calc(100% - 36px);max-width:1080px;background:#eee6d5;}
.notice-btn,.empty-link,.pill {background:var(--accent);color:#fffaf4;}
.toast {background:#394333;color:#fffaf4;box-shadow:0 8px 24px #33281920;}
.empty-state {background:var(--paper);border-radius:22px;margin:8px 0 20px;padding:28px;}
.signed {padding:22px 0;}
/* Song studio */
.jam-view {--j-bg-top:var(--bg-top);--j-bg-bottom:var(--bg-bottom);--j-text:var(--text);--j-dim:var(--dim);--j-rail-dim:var(--rail);--j-cell:#9a907e;--j-cell-on:#52634c;--j-accent:var(--accent);--j-raised:var(--paper);--j-seg:var(--sunk);--j-badge:#394333;--j-line:var(--line);background:transparent;}
.jam2 {max-width:1080px;padding:0 24px 20px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-content:start;flex:initial;}
.jam-head {grid-column:1/-1;padding:22px 0 8px;gap:16px;}
.jam-artist {font-size:12px;letter-spacing:.03em;text-transform:none;margin-bottom:8px;color:var(--olive);font-weight:500;}
.jam-title {font-family:var(--display);font-size:48px;font-weight:400;letter-spacing:-1.5px;line-height:1.15;}
.jam-titles {overflow:hidden;}
.jam2 .jam-practice-launch {background:var(--accent);color:#fffaf4;border-radius:16px;padding:14px 20px;font-size:14px;min-height:48px;}
.studio-visual,.jam-mixer {background:var(--paper);border:1px solid var(--line);border-radius:24px;min-width:0;padding:22px 18px;}
.studio-section-heading {display:flex;flex-direction:column;gap:6px;margin:0 3px 20px;}
.studio-section-heading>span {font-family:var(--display);font-size:24px;letter-spacing:-.5px;line-height:1.15;}
.studio-section-heading>small {font-size:12px;color:var(--dim);}
.jam-chords {padding:2px 0 22px;}
.jam-cell {background:#eee8da;border-radius:8px;width:44px;height:42px;}
.jam-bar {gap:3px;}
.jam-cell.on {background:#dce3d2;}
.jam-cell-label {color:var(--olive);font-size:14px;}
.jam-fb {padding:8px 0 0;}
.jam-fb-head {font-size:10px;letter-spacing:.02em;color:var(--dim);min-height:40px;text-transform:none;}
.jam-fb-string {height:28px;}
.jam-fb-cell {height:28px;border-color:#ded4c3;}
.jam-fb-cell::before {top:13.5px;background:#d8cbb5;}
.jam-fb-dot {background:#cec3ae;}
.jam-fb-dot.chord-tone {background:#dbe3d0;color:#34432c;}
.jam-fb-dot.root {background:var(--accent);color:#fffaf4;}
.jam-fb-name,.jam-fb-markers,.jam-fb-marker {color:var(--dim);font-size:10px;}
.practice-legend {color:var(--dim);margin:14px 0 4px;font-size:10px;line-height:1.6;}
.jam-mixer {justify-content:start;min-height:0;gap:3px;}
.jam-mixer .studio-section-heading {margin-bottom:12px;}
.jam-row {height:46px;gap:10px;}
.jam-row-ico {width:130px;gap:9px;}
.jam-row-ico svg {width:18px;height:22px;flex:none;color:var(--olive);}
.studio-stem-name {font-size:12px;text-transform:capitalize;text-align:left;line-height:1.25;}
.jam-stem-tag {display:none;}
.jam-solo-tag {left:12px;top:0;background:var(--accent);color:#fff;}
.jam-row.dim .studio-stem-name {text-decoration:line-through;color:#8d8578;}
.jam-rail {height:4px;background:#c9bdaa;border-radius:5px;}
.jam-thumb {width:14px;height:14px;background:var(--olive);}
.jam-row.dim .jam-thumb {background:#a69a88;}
.jam-row-menu {width:28px;justify-content:center;color:var(--dim);}
.jam-row-menu svg {width:18px;}
.studio-player {grid-column:1/-1;border:1px solid var(--line);border-radius:24px;padding:10px 20px;background:var(--paper);box-shadow:0 5px 24px #56472b08;}
.jam-scrub {padding:4px 8px;}
.jam-times {font-size:12px;font-variant-numeric:tabular-nums;}
.jam-fill {background:var(--accent);}
.jam-transport {max-width:540px;width:100%;margin:4px auto;padding:0 20px;}
.jam2 .jam-play {background:var(--accent);color:#fffaf4;width:58px;height:58px;border-radius:50%;}
.jam-play svg {width:24px;height:24px;}
.jam2 .jam-speed {color:var(--accent);font-size:14px;}
.jam-count-row {min-height:36px;margin:6px 0 0;}
.jam2 .jam-count-button {font-size:11px;color:var(--dim);padding:6px 12px;min-height:36px;}
.jam2>[data-practice-root],.jam-bottom {grid-column:1/-1;}
.practice-shell {max-width:none;margin:0;border:0;padding:0;}
.practice-top {background:#e9e5d6;border-radius:18px;padding:16px 20px;}
.practice-top>span {color:var(--olive);font-size:13px;}
.jam-bottom {justify-content:center;gap:32px;padding:0 0 6px;color:var(--dim);}
.jam-blabel {font-size:11px;letter-spacing:0;}
.jam-sheet {box-shadow:0 -10px 80px #40352325;border:1px solid var(--line);border-radius:28px 28px 0 0;max-width:620px;}
.jam-sheet-title {font-family:var(--display);font-size:28px;font-weight:400;}
.jam2 .jam-seg-btn.on {background:#fffdf8;color:var(--accent);box-shadow:0 2px 6px #56472b10;}
.jam2 .jam-cta {background:var(--accent);color:#fffaf4;border-radius:16px;}
.jam2 .jam-step {background:var(--sunk);color:var(--text);}
.jam-view .toast {color:#fffaf4;}
/* Practice is a spacious song workspace, with a stable set of controls. */
.practice-workspace {top:84px;bottom:96px;left:max(20px,calc((100vw - 1080px)/2));right:max(20px,calc((100vw - 1080px)/2));background:var(--bg-top);border:1px solid var(--line);border-radius:30px;box-shadow:0 14px 100px #42382535;}
.practice-workspace-head {padding:24px 30px 12px;}
.practice-workspace-head small {color:var(--olive);font-size:11px;letter-spacing:.04em;text-transform:none;}
.practice-workspace-head strong {font-family:var(--display);font-size:36px;font-weight:400;letter-spacing:-1px;}
.practice-shell button,.practice-download {border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--text);padding:11px 16px;min-height:44px;}
.practice-top>button,.practice-shell button[type=submit],.practice-shell [data-record],.practice-shell [data-practice-play] {background:var(--accent);color:#fffaf4;border-color:transparent;}
.practice-workspace>.practice-tabs {padding:0 28px 16px;gap:8px;}
.practice-tabs button {border:0;border-radius:13px;font-size:14px;padding:12px 8px;background:transparent;color:var(--dim);}
.practice-tabs [aria-selected=true] {background:#e6eadc;color:#3e5135;}
.practice-scroll {padding:0 28px 30px;display:grid;grid-template-columns:245px minmax(0,1fr);gap:24px;align-items:start;}
.practice-sticky-controls {top:0;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:18px;}
.practice-control-row {flex-direction:column;align-items:stretch;gap:14px;}
.practice-control-row label {width:100%;}
.practice-modes {flex-direction:column;gap:7px;margin:14px 0 10px;}
.practice-modes button {font-size:13px;text-align:left;}
.practice-modes [aria-pressed=true] {color:var(--accent);background:#f3e7de;border-color:#e7c9b7;}
.practice-shell .practice-status {color:var(--dim);font-size:12px;line-height:1.65;padding:10px 0 0;}
.practice-scroll>[data-pane] {min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px;}
.practice-shell h3 {font-family:var(--display);font-size:25px;font-weight:400;letter-spacing:-.6px;color:var(--text);}
.practice-shell p {color:var(--dim);font-size:13px;line-height:1.65;}
.practice-shell label {color:#595449;font-size:12px;gap:8px;margin:12px 0;}
.practice-shell input:not([type=checkbox]),.practice-shell select,.practice-shell textarea {border-color:#d9d0c0;background:#fbf8f2;color:var(--text);border-radius:12px;font-size:14px;}
.practice-shell input[type=file] {font-size:12px;}
.practice-shell form {border-top:1px solid var(--line);padding-top:24px;margin-top:24px;}
.practice-shell form:first-child {border:0;margin:0;padding:0;}
.practice-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;}
.practice-actions {gap:8px;}
.practice-actions button {font-size:12px;}
.practice-shell input[type=checkbox] {accent-color:var(--accent);}
.practice-saved {border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f4f2e9;}
.practice-saved>button {background:transparent;border:0;}
.practice-saved small {color:var(--olive);}
.practice-saved>button:last-child {color:#8e4936;}
.practice-inline-board {background:#f6f0e4;padding:18px 10px;border:0;border-radius:14px;margin:16px 0;}
[data-next-chord] {background:#e9eddf;padding:12px 16px;border-radius:12px;color:var(--olive)!important;font-size:14px!important;}
[data-exercise-help] {padding:0 2px;font-size:14px!important;}
.practice-tab-grid .active {background:#f1dfcf;color:var(--accent);}
.practice-tab-grid button {border-radius:8px;background:var(--sunk);padding:5px;}
.practice-take {border-color:var(--line);}
.practice-recorder [data-stop] {color:#984332;}
.practice-shell button:focus-visible,.practice-shell input:focus-visible,.practice-shell select:focus-visible,.practice-shell textarea:focus-visible {outline-color:var(--accent);}
/* Secondary pages belong to the same studio. */
.up-input,.up-textarea,.up-select {background:var(--paper);border-color:var(--line);color:var(--text);border-radius:12px;}
.up-drop {background:var(--paper);border-color:var(--rail);border-radius:24px;}
.scales-table {background:var(--paper);}
.tuner {background:var(--bg-top);color:var(--text);}
.tn-head {background:var(--paper);border-bottom:1px solid var(--line);}
.tn-icon,.tn-mic.live,.tn-hz,.tn-radio,.tn-drop,.tn-val,.tn-toggle-row {color:var(--text);}
.tn-title {font-family:var(--display);font-size:28px;font-weight:400;}
.tn-sub,.tn-mic,.tn-hint,.tn-group,.tn-hz.dim {color:var(--dim);}
.tn-dome {background:#394333;border:0;border-radius:150px 150px 24px 24px;}
.tn-panel {border:1px solid var(--line);background:var(--paper);border-radius:24px;}
.tn-note.side,.tn-panel.on .tn-note.main {color:var(--accent);}
.tn-note.main,.tn-needle {color:var(--text);}
.tn-centre {background:var(--text);}
.tn-tick {background:#acb5a3;}.tn-tick.mid,.tn-tick.major,.tn-panel.on .tn-centre {background:var(--olive);}
.tuner .tn-chip {color:var(--text);border:1px solid var(--rail);background:var(--paper);}
.tuner .tn-chip.on,.tuner .tn-chip.done {border-color:var(--olive);}
.tuner .tn-chip.locked {background:#e6eadc;}
.tn-radio.on .tn-ring {border-color:var(--olive);}.tn-radio.on .tn-ring::after,.tn-toggle.on {background:var(--olive);}
.tn-stepper button {background:var(--sunk);color:var(--text);}
@media(min-width:900px){.view>.page:has(.library-hero)>.track-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}.studio-player{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:center;gap:0 24px;}.studio-player .jam-transport{padding:0;grid-column:2;grid-row:1/3;}.studio-player .jam-count-row{justify-content:flex-start;grid-column:1;}.studio-player .jam-loop-panel,.studio-player .jam-load-status:not(:empty){grid-column:1/-1;}.studio-player .jam-load-status:empty{display:none;}}
@media(max-width:760px){
 .topbar{padding:20px 22px 16px;min-height:72px;}.brand-mark{font-size:30px;}.brand-sub{display:none;}.tb-ver{display:none;}
 .view>.page{padding:0 18px;}.library-hero{padding:28px 24px;min-height:240px;border-radius:24px;margin:4px 0 8px;align-items:flex-start;}.library-hero h2{font-size:42px;max-width:230px;letter-spacing:-1.5px;}.library-intro{max-width:100%;}.library-eyebrow{font-size:11px;}.studio-record{position:absolute;width:180px;height:180px;right:-68px;top:62px;opacity:.16;margin:0;}.library-resume{font-size:12px;gap:8px;padding:12px;max-width:100%;}.library-resume span:first-child{flex:none;}.library-hero p:not(.library-eyebrow){max-width:245px;}
 .page-title{font-size:28px;}.page-head{padding:20px 2px 10px;}.library-search{margin-bottom:18px;gap:4px;}.library-search input{font-size:14px;}.library-search button{padding:8px;}.library-artist-group{padding:2px 6px 8px;border-radius:20px;}.tl-artist{font-size:15px;}.tc{padding:10px 8px;gap:12px;min-height:72px;}.tc-title{font-size:14px;}.tc-key{width:44px;height:44px;border-radius:13px;}.tc-meta{font-size:11px;}
 .jam2{display:flex;gap:14px;padding:0 16px 16px;}.jam-head{padding:12px 2px 8px;gap:12px;}.jam-title{font-size:34px;letter-spacing:-1px;}.jam-artist{font-size:11px;margin-bottom:6px;}.jam2 .jam-practice-launch{padding:11px 13px;font-size:12px;min-height:44px;}.jam-head>.jam-ico{min-width:24px;}.studio-visual,.jam-mixer{padding:18px 16px;border-radius:22px;}.studio-section-heading>span{font-size:23px;}.studio-section-heading>small{font-size:11px;}.studio-section-heading{margin-bottom:14px;}.jam-chords{padding-bottom:10px;}.jam-fb-head{font-size:9px;}.jam-mixer{gap:0;}.jam-row{height:44px;}.jam-row-ico{width:126px;}.studio-stem-name{font-size:11px;}.studio-player{padding:8px 12px;border-radius:22px;}.jam-transport{padding:0 4px;}.jam2 .jam-play{width:52px;height:52px;}.jam-count-row{margin:4px 0 0;}.practice-top{padding:14px;gap:12px;}.practice-top>span{font-size:12px;}
 .practice-workspace{top:12px;bottom:94px;left:10px;right:10px;border-radius:24px;}.practice-workspace-head{padding:20px 18px 10px;}.practice-workspace-head strong{font-size:30px;}.practice-workspace>.practice-tabs{padding:0 12px 12px;gap:2px;}.practice-tabs button{font-size:12px;padding:10px 3px;}.practice-scroll{display:block;padding:0 12px 20px;}.practice-sticky-controls{padding:12px;border-radius:16px;margin-bottom:12px;z-index:3;box-shadow:0 4px 8px #56472b08;}.practice-control-row{flex-direction:row;align-items:end;gap:10px;}.practice-control-row label{margin:0;}.practice-control-row button{font-size:12px;padding:11px;}.practice-modes{flex-direction:row;gap:5px;margin:10px 0 2px;}.practice-modes button{text-align:center;font-size:11px;padding:9px 4px;}.practice-sticky-controls .practice-status{font-size:11px;max-height:48px;padding:6px 0 0;line-height:1.4;}.practice-scroll>[data-pane]{padding:18px 14px;border-radius:16px;}.practice-shell h3{font-size:24px;}.practice-shell label{font-size:11px;}.practice-shell input:not([type=checkbox]),.practice-shell select,.practice-shell textarea{font-size:16px;padding:10px 8px;}.practice-grid{gap:0 10px;}.practice-actions{gap:6px;}.practice-actions button{padding:10px;font-size:11px;}.practice-shell p{font-size:12px;}.practice-inline-board{padding:14px 4px;}.practice-shell input[type=file]{font-size:11px;}
}
@media(max-width:360px){.jam-head{gap:8px;}.jam-title{font-size:28px;}.jam2 .jam-practice-launch{padding:10px;}.practice-control-row button{padding:10px 8px;}.library-resume{flex-direction:column;align-items:flex-start;gap:3px;}.practice-workspace{left:5px;right:5px;}.studio-stem-name{font-size:10px;}.jam-row-ico{width:114px;}}
@supports(padding:max(0px)){.bottom-nav{bottom:max(14px,env(safe-area-inset-bottom));}.practice-workspace{bottom:calc(94px + env(safe-area-inset-bottom));top:max(12px,env(safe-area-inset-top));}@media(min-width:761px){.practice-workspace{top:84px;}}#root{padding-bottom:calc(94px + env(safe-area-inset-bottom));}}
/* Search label remains available to assistive technology without duplicating the placeholder. */
.library-search>label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.library-search>input {flex:1;min-width:0;margin:0;}
.library-search>button {flex:none;}
.bottom-nav {background:#fffdf8;}
.sm-grid {padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:24px;gap:5px;margin:4px 0 24px;}
.sm-filled {background:#e6eadc;color:#3f5137;border-radius:10px;}
.sm-empty {background:#f5f1e8;border-radius:10px;color:#938979;}
.sm-head,.sm-row-head {color:var(--dim);}
.up-form {padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:24px;max-width:720px;margin:4px auto 24px;width:100%;}
.up-input {border:1px solid var(--line);background:#fbf8f2;}
.up-go {background:var(--accent);color:#fffaf4;border-radius:16px;}
.up-field-label,.up-queue-title {text-transform:none;letter-spacing:0;font-size:13px;}
.up-queue {background:var(--paper);border:1px solid var(--line);border-radius:24px;max-width:720px;margin:0 auto 24px;}
@media(max-width:760px){.jam-head{order:0;}.studio-player{order:1;position:sticky;top:8px;z-index:4;box-shadow:0 4px 20px #56472b14;}.studio-visual{order:2;}.jam-mixer{order:3;}.jam2>[data-practice-root]{order:4;}.jam-bottom{order:5;}.jam-sheet-wrap{order:6;}.up-form{padding:20px;}.practice-control-row select{font-size:14px;}}
.tn-bar {background:var(--paper);border-bottom:1px solid var(--line);}
.tn-sub {color:var(--dim);}
.tn-note.side.right {margin-right:0;}
.up-queue-head {gap:12px;flex-wrap:wrap;}
.up-queue-head .page-sub {white-space:normal;font-size:12px;}

.tb-stat:has(.led.green:not(.on)),.topbar-status:has(.led.red.on) .tb-stat:has(.led.green) {display:none;}
/* A dedicated practice surface removes the competing player behind it. */
.jam2:has([data-practice-content]:not([hidden]))::before {content:'';position:fixed;inset:80px 0 88px;background:var(--bg-top);z-index:180;}
.practice-workspace {box-shadow:none;}
@media(min-width:900px){.view>.page:has(.library-hero)>.track-list{display:block;columns:2;column-gap:16px;}.library-artist-group{margin-bottom:14px;}}
@media(max-width:760px){.jam2:has([data-practice-content]:not([hidden]))::before{top:0;}}
@media(max-height:650px){.practice-sticky-controls,.studio-player{position:static;}.practice-workspace{top:max(8px,env(safe-area-inset-top));}.practice-workspace-head{padding:10px 16px 4px;}.practice-workspace-head strong{font-size:24px;}.practice-workspace-head small{display:none;}.practice-workspace>.practice-tabs{padding-bottom:6px;}.practice-tabs button{min-height:40px;padding:8px 4px;}.practice-scroll{scroll-padding:12px;}}
.tn-sheet {background:var(--paper);border:1px solid var(--line);border-radius:24px 24px 0 0;box-shadow:0 -8px 40px #42382520;}
.tn-sheet-handle {background:var(--rail);}
.tn-sheet-title {color:var(--dim);font-size:14px;letter-spacing:0;}
.tuner .tn-sheet-row {color:var(--text);}
.tuner .tn-sheet-row.on {color:var(--accent);background:#f3e7de;}
.jam-load-status.error {color:#9b3b29;}
/* Fast access to favourite songs and phrase practice. */
.library-filters {display:flex;gap:8px;margin:0 0 16px;}
.library-filters button {padding:10px 18px;min-height:44px;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-size:13px;color:var(--dim);}
.library-filters [aria-pressed=true] {background:#e6eadc;color:var(--olive);border-color:#cbd4be;}
.library-song {display:flex;align-items:center;min-width:0;}
.library-song>.tc {flex:1;min-width:0;}
.library-favourite {flex:none;width:44px;min-height:44px;font-size:26px;line-height:1;color:#867766;border-radius:12px;}
.library-favourite:hover {background:#f4e8df;}
.library-favourite[aria-pressed=true] {color:var(--accent);}
.library-favourite:disabled {opacity:.45;cursor:default;}
.library-favourites-hint,[data-favourites-status] {font-size:12px;line-height:1.6;color:var(--dim);margin:6px 0 16px;}
[data-favourites-status]:empty {display:none;}
[data-favourites-status] {color:#9b3b29;}
.practice-playback-tools {margin:14px 0 0;}
.practice-shell .practice-timeline-label {margin:0;}
.practice-shell input[data-practice-position] {padding:0;min-height:30px;height:30px;border:0;background:transparent;accent-color:var(--accent);cursor:pointer;}
.practice-clock {display:flex;justify-content:space-between;gap:10px;font-variant-numeric:tabular-nums;font-size:11px;color:var(--dim);}
.practice-speed-row {display:flex;gap:10px;align-items:end;margin-top:10px;}
.practice-speed-row label {flex:1;margin:0;min-width:0;}
.practice-speed-row button {flex:1;font-size:11px;padding:10px 8px;}
.practice-quick-loops {background:#f4f1e5;padding:18px;border-radius:16px;margin-bottom:18px;}
.practice-quick-loops h3 {font-size:24px;}
.practice-quick-loops [data-quick-meter] {font-size:11px;}
.practice-quick-loops [data-quick-loop-status] {font-size:12px;color:var(--olive);margin-bottom:0;}
@media(max-width:760px){.practice-playback-tools{margin-top:8px;}.practice-speed-row{margin-top:6px;}.practice-speed-row select{min-height:38px;padding:7px 10px;}.practice-speed-row button{min-height:38px;flex:none;padding:9px 14px;}.practice-modes{margin-top:8px;}.practice-quick-loops{padding:14px;}.library-song>.tc{padding-right:0;}.library-song .tc-chev{display:none;}.library-favourite{width:40px;}.practice-sticky-controls{position:static;}.practice-scroll{scroll-padding-top:12px;}}

@media(max-height:900px){.practice-sticky-controls{position:static;}}
/* Phrase learning tools share the warm studio surfaces. */
.learning-details {border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:16px 0;background:var(--paper);}
.learning-details>summary {cursor:pointer;min-height:30px;color:var(--olive);font-size:14px;font-weight:600;line-height:1.6;}
.learning-details[open]>summary {margin-bottom:16px;}
.practice-shell .wave-editor {background:#f5f1e7;border:1px solid var(--line);margin-bottom:18px;}
.practice-shell .wave-toolbar {gap:6px;}
.practice-shell .wave-toolbar strong {font-family:var(--display);font-size:23px;font-weight:400;}
.practice-shell .wave-toolbar button {font-size:11px;padding:9px 11px;}
.practice-shell .wave-stage {background:#fbf8f1;}
.practice-shell .wave-handle {background:var(--accent);color:#fffaf4;border:0;padding:0;min-height:38px;}
.practice-shell .wave-help,.practice-shell .wave-summary {font-size:11px;}
.practice-shell .wave-seek-label input {padding:0;min-height:30px;border:0;background:transparent;accent-color:var(--accent);}
.coach-progress,.coach-challenges,.note-review {margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#faf7ef;}
.coach-progress h4 {font-size:13px;font-weight:600;color:var(--olive);margin-bottom:8px;}
.coach-progress li,.coach-challenges li {font-size:12px;color:var(--dim);margin:5px 0;}
.coach-progress ul,.coach-challenges ul {padding-left:18px;}
.coach-actions {gap:8px;}
.coach-actions button {font-size:12px;}
.coach-progress textarea {width:100%;}
.coach-clock {font-family:var(--display);font-size:24px!important;color:var(--olive)!important;}
.note-review [data-review-checked][aria-pressed=true] {background:#e6eadc;color:var(--olive);border-color:#bdc9ad;}
.note-review [data-review-summary] {color:var(--olive);font-weight:600;}
.note-review [data-review-title] {font-size:12px;}
.note-review [data-review-status] {color:var(--accent);font-size:12px;}
@media(max-width:760px){.learning-details{padding:12px;}.coach-progress,.coach-challenges,.note-review{padding:14px;}.practice-shell .wave-toolbar strong{width:100%;}.practice-shell .wave-toolbar button{padding:8px;font-size:10px;}.practice-shell .wave-editor{padding:12px;}.practice-shell .wave-help{font-size:10px;}.practice-shell .coach-actions button{font-size:11px;padding:10px;}}

.practice-shell .wave-handle{background:linear-gradient(var(--accent) 25px,transparent 25px);border-radius:10px 10px 0 0;color:#fff;padding:3px 0;box-shadow:none}

/* Master belongs to the existing mixer card; never add a new page grid item. */
.jam-master { display:flex; align-items:center; gap:12px; border-top:1px solid var(--line); margin-top:14px; padding-top:10px; }
.jam-master>label { flex:none; width:76px; display:flex; flex-direction:column; gap:2px; font-size:13px; font-weight:600; }
.jam-master output,.jam-eq-band output { color:var(--dim); font-weight:400; font-variant-numeric:tabular-nums; }
.jam-master-row { flex:1; min-width:0; display:flex; align-items:center; gap:12px; }
.jam-master input,.jam-eq-band input { display:block; width:100%; min-width:0; height:44px; margin:0; accent-color:var(--accent); touch-action:pan-y; cursor:pointer; }
.jam-eq-button { flex-shrink:0; min-width:44px; min-height:44px; color:var(--accent); font-size:13px; font-weight:600; }
.jam-eq-band { margin:20px 0; }
.jam-eq-band label { display:flex; justify-content:space-between; font-size:14px; }

.jam-master .jam-eq-button { min-width:64px; padding:0 14px; border:1px solid var(--accent); border-radius:12px; background:var(--accent); color:var(--paper); box-shadow:0 2px 4px #302e2914; }
.jam-master .jam-eq-button:hover { filter:brightness(.94); }
.jam-master .jam-eq-button:active { transform:translateY(1px); box-shadow:none; }
