/* Tanpura homepage: elegant, functional Tabla replacement for the old oversized string illustration. */
.tabla-stage{padding:26px;background:linear-gradient(165deg,#fffaf1,#f6eadb);border:1px solid #e4d5c5;color:#4a2d2a;overflow:hidden}
.tabla-stage-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tabla-stage-top h2{font:600 clamp(24px,2.5vw,30px)/1.16 var(--font-display);letter-spacing:-.02em;color:#532c2a;margin:7px 0 8px}
.tabla-stage-top p{font-size:13px;line-height:1.65;color:#79665b;margin:0}
.tabla-stage-tag{flex:none;border:1px solid #dec6a3;background:#fbf0df;color:#935837;padding:7px 10px;font-size:11px;border-radius:30px;font-weight:800;margin-top:3px}
.tabla-stage-art{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;height:140px;margin:8px 0 12px}
.tabla-drum{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;aspect-ratio:1;border:7px ridge #aa7755;box-shadow:0 9px 0 #805842,0 14px 22px #4a31252c, inset 0 0 0 5px #e3c6a5;background:radial-gradient(circle,#3c3336 0 15%,#665857 16% 20%,#e8cfac 21% 61%,#a96b4f 62% 66%,#f8deba 67%);transform:rotate(-9deg)}
.tabla-drum>span{position:absolute;width:18%;height:18%;border-radius:50%;background:#363133}
.tabla-bayan{width:114px;height:114px}
.tabla-dayan{width:98px;height:98px;transform:rotate(10deg)}
.tabla-stage-art-line{position:absolute;bottom:3px;left:13%;right:13%;height:2px;background:linear-gradient(90deg,transparent,#c39c77,transparent)}
.tabla-stage-primary{border:1px solid #e6ccac;border-radius:13px;background:#fff9ef;padding:13px 15px;margin:8px 0 19px}
.tabla-stage .tc-toggle{display:flex;align-items:center;gap:11px;cursor:pointer;margin:0;font-size:13px;color:#54362e}
.tabla-stage .tc-toggle input{width:20px;height:20px;accent-color:#734338;flex:none}
.tabla-stage .tc-toggle-copy{display:grid;gap:4px;flex:1}
.tabla-stage .tc-toggle-copy strong{font-weight:800;font-size:14px}
.tabla-stage .tc-toggle-copy small{font-size:11px;color:#8b786a;line-height:1.4}
.tabla-stage .tc-switch{width:32px;height:20px;border-radius:20px;background:#d4c3ae;box-shadow:inset 0 0 0 1px #bda993;position:relative;flex:none;pointer-events:none}
.tabla-stage .tc-switch::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;background:white;border-radius:100%;box-shadow:0 1px 4px #55413255;transition:transform .18s}
.tabla-stage .tc-toggle:has(input:checked) .tc-switch{background:#6f4134}
.tabla-stage .tc-toggle:has(input:checked) .tc-switch::after{transform:translateX(12px)}
.tabla-stage-body{display:grid;gap:15px}
.tabla-stage .tc-field{display:grid;gap:8px;font-size:12px;font-weight:750;color:#684b41;min-width:0}
.tabla-stage .tc-field select{width:100%;min-height:45px;font-size:14px;border-radius:11px;border:1px solid #dcc6b2;padding:9px 12px;background:#fffdf8;color:#3d2a24}
.tabla-stage .tc-ranges{display:grid;gap:16px}
.tabla-stage .tc-field-head{display:flex;align-items:center;justify-content:space-between}
.tabla-stage output{color:#9a542f;font-weight:800;font-size:13px;font-variant-numeric:tabular-nums}
.tabla-stage input[type=range]{accent-color:#8e533e;width:100%;margin:0;min-height:25px}
.tabla-stage .tc-cycle-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}
.tabla-stage .tc-cycle-head strong{font-size:13px}
.tabla-stage .tc-cycle-head span{font-size:10px;color:#897668}
.tabla-stage .tc-beat-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.tabla-stage .tc-beat{min-height:31px;border-radius:7px;background:#eee2d4;color:#8f7464;font-size:11px;font-weight:760;display:grid;place-items:center;border:1px solid #e7d4c0;transition:background .11s,transform .11s}
.tabla-stage .tc-beat-sam{background:#e4c9bc;color:#693c38;border-color:#cb9f8b}
.tabla-stage .tc-beat-clap{background:#f6dfb7;color:#875e36}
.tabla-stage .tc-beat-khali{background:#e7eddf;color:#5e805b}
.tabla-stage .tc-beat-current{background:#743f36;color:#fffaf0;border-color:#743f36;transform:scale(1.12);box-shadow:0 2px 9px #5b2e2636}
.tabla-stage .tc-current{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:#7a4537;font-variant-numeric:tabular-nums;min-height:20px}
.tabla-stage .tc-status{color:#735e54;font-size:12px;margin:0;line-height:1.55}
.tabla-stage .tc-full-link{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:45px;padding:10px 14px;background:#714338;border-radius:11px;color:#fff8ec;font-size:13px;font-weight:800;text-decoration:none}
.tabla-stage .tc-full-link:hover{color:#fff;background:#8d5748}
.tabla-stage .tc-credit{font-size:10px;color:#8e7869;line-height:1.55;margin:16px 0 0}
.tabla-stage .tc-credit a{color:#785246}
.tabla-stage :is(select,input,a):focus-visible,.string-reference-compact summary:focus-visible{outline:3px solid #d0a373;outline-offset:3px}
.string-reference-compact{margin-top:16px;margin-bottom:8px}
.string-reference-compact details{border:1px solid #e4d5c4;border-radius:15px;background:#fffcf7;box-shadow:0 5px 22px #5e3e2a0a;overflow:hidden}
.string-reference-compact summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:16px 22px}
.string-reference-compact summary::-webkit-details-marker{display:none}
.string-reference-compact .sr-summary-main{display:grid;gap:4px;min-width:0}
.string-reference-compact .sr-summary-main strong{font:600 19px/1.3 var(--font-display);color:#5e3930}
.string-reference-compact .note-chip{background:#f5e8d5;color:#744938;border:1px solid #e2cdb3;padding:8px 12px;border-radius:11px;flex:none}
.string-reference-compact .note-chip :is(strong,small){color:#744938}
.string-reference-compact .sr-chevron{color:#754a3a;font-size:24px;transition:transform .18s}
.string-reference-compact details[open] .sr-chevron{transform:rotate(180deg)}
.string-reference-compact .sr-inside{padding:15px 22px 22px;border-top:1px solid #f0e4d5}
.string-reference-compact .sr-inside>p:first-child{font-size:12px;color:#766457;margin:0 0 14px}
.string-reference-compact .strings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.string-reference-compact .string-btn{background:#f9f0e7;color:#6d443b;border:1px solid #e8d8c6;padding:9px 5px;border-radius:10px;min-height:67px;text-align:center}
.string-reference-compact .string-rail{display:none}
.string-reference-compact .string-name,.string-reference-compact .string-hz{color:#67453b}
.string-reference-compact .recording-info{font-size:11px;color:#80675b;margin-top:15px}
@media(max-width:800px){.tabla-stage{padding:22px}.tabla-stage-art{height:112px}.tabla-bayan{width:90px;height:90px}.tabla-dayan{width:78px;height:78px}.tabla-stage .tc-ranges{grid-template-columns:1fr 1fr;gap:15px}}
@media(max-width:560px){.tabla-stage{padding:18px;border-radius:16px}.tabla-stage-art{height:93px;margin:4px 0 6px}.tabla-bayan{width:76px;height:76px}.tabla-dayan{width:67px;height:67px}.tabla-stage .tc-ranges{grid-template-columns:1fr;gap:12px}.tabla-stage .tc-beat-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.tabla-stage .tc-beat{min-height:29px}.string-reference-compact summary{padding:13px;gap:9px}.string-reference-compact .sr-summary-main strong{font-size:15px}.string-reference-compact .note-chip{padding:6px}.string-reference-compact .strings{grid-template-columns:repeat(2,minmax(0,1fr))}.string-reference-compact .sr-inside{padding:14px}}
@media(prefers-reduced-motion:reduce){.tabla-stage .tc-beat,.tabla-stage .tc-switch::after,.string-reference-compact .sr-chevron{transition:none}}


/* Practice-mode discovery directly under Start Tanpura: visible before scrolling. */
.practice-modes{margin-top:14px;padding:12px;border:1px solid rgba(231,201,166,.33);border-radius:13px;background:rgba(255,249,241,.065)}
.practice-mode-title{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:5px;color:#f7dcb4;font-weight:800;font-size:10px;letter-spacing:.11em}
.practice-mode-sub{font-weight:500;font-size:10px;letter-spacing:normal;color:#ead8c8;opacity:.85}
.practice-mode-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
.practice-mode-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #b58b71;border-radius:9px;background:rgba(255,249,235,.07);color:#f6e9d8;font-size:12px;font-weight:760;line-height:1.3;padding:8px}
.practice-mode-btn span{font-size:17px}
.practice-mode-btn[aria-pressed=true]{background:#f2d5a5;border-color:#f2d5a5;color:#4e302a;box-shadow:0 2px 8px #1d0b0a24}
.practice-mode-btn[aria-pressed=false]:hover{background:rgba(255,249,235,.16)}
.practice-mode-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin-top:9px;color:#ead8c8;font-size:11px}
.practice-mode-settings{color:#ffe1b8;font-weight:770;text-underline-offset:3px}
.practice-mode-btn:focus-visible,.practice-mode-settings:focus-visible{outline:3px solid #f6c47f;outline-offset:3px}
/* One actual switch input, visually represented by its large labelled track. */
.tabla-stage{scroll-margin-top:95px}
.tabla-stage-art{height:108px;margin:4px 0 10px}
.tabla-stage .tabla-bayan{width:93px;height:93px}
.tabla-stage .tabla-dayan{width:81px;height:81px}
.tabla-stage-primary{padding:0;margin:8px 0 18px;border-radius:15px;background:#fffaf3}
.tabla-stage .tc-toggle{position:relative;padding:15px;min-height:83px;border-radius:15px;gap:11px}
.tabla-stage .tc-toggle:has(input:checked){background:linear-gradient(130deg,#fff9ed,#f1e1cb)}
.tabla-stage .tc-toggle input{position:absolute;opacity:0;width:1px;height:1px;left:15px;top:14px;padding:0;margin:0}
.tabla-stage .tc-toggle:has(input:focus-visible){outline:3px solid #c48b53;outline-offset:3px}
.tabla-stage .tc-mode-icon{display:grid;place-items:center;flex:none;width:41px;height:41px;border-radius:12px;background:#f2e2d0;color:#7d4a3a;font-size:24px;font-weight:750}
.tabla-stage .tc-toggle:has(input:checked) .tc-mode-icon{background:#7b483b;color:#fff8eb}
.tabla-stage .tc-toggle-copy strong{font-size:14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tabla-stage .tc-toggle-copy small{font-size:11px}
.tabla-stage .tc-state-tag{display:inline-flex;align-items:center;padding:2px 7px;background:#eee1d1;color:#866a5b;border-radius:20px;font:800 10px/1.35 var(--font-body);letter-spacing:.03em}
.tabla-stage .tc-toggle:has(input:checked) .tc-state-tag{background:#e3efe4;color:#2e6947}
.tabla-stage .tc-switch{width:46px;height:27px;background:#d2bda4;border-radius:28px;box-shadow:inset 0 0 0 1px #bca289}
.tabla-stage .tc-switch::after{width:21px;height:21px;top:3px;left:3px}
.tabla-stage .tc-toggle:has(input:checked) .tc-switch{background:#6d925e}
.tabla-stage .tc-toggle:has(input:checked) .tc-switch::after{transform:translateX(19px)}
/* Prominent live bol; the highlight follows the same scheduled beat as the audio. */
.tabla-stage .tc-now{padding:13px 15px;border-radius:14px;background:linear-gradient(120deg,#f3e7d8,#faf0e6);border:1px solid #e0cbb8;min-height:111px;transition:background .15s,border-color .15s}
.tabla-stage .tc-now-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#80675a;font-weight:800;letter-spacing:.09em}
.tabla-stage .tc-now-indicator{display:inline-flex;align-items:center;gap:5px;letter-spacing:0;font-size:10px;padding:3px 8px;border-radius:20px;background:#e9dfd3;color:#8a7668}
.tabla-stage .tc-now-indicator::before{content:'';width:6px;height:6px;border-radius:50%;background:#b3a08b}
.tabla-stage .tc-now-row{display:flex;align-items:center;gap:18px;margin-top:7px;min-width:0}
.tabla-stage .tc-now-bol{font:600 clamp(31px,3.2vw,44px)/1.12 var(--font-display);color:#774636;letter-spacing:-.025em;min-width:96px}
.tabla-stage .tc-now-detail{display:grid;gap:3px;font-size:11px;line-height:1.35;color:#846d60;min-width:0}
.tabla-stage .tc-now-detail strong{color:#5f4338;font-size:13px;font-variant-numeric:tabular-nums}
.tabla-stage .tc-now[data-state=playing]{background:linear-gradient(115deg,#fae8c8,#fff5e5);border-color:#cda775}
.tabla-stage .tc-now[data-state=playing] .tc-now-indicator{color:#276748;background:#e3f0de}
.tabla-stage .tc-now[data-state=playing] .tc-now-indicator::before{background:#348c59;box-shadow:0 0 0 3px #348c5922}
.tabla-stage .tc-now[data-state=playing] .tc-now-bol{color:#5c312d}
.tabla-stage .tc-beat-current{box-shadow:0 0 0 2px #ad714d55;transform:scale(1.08)}
.tabla-stage .tc-status{font-size:11px}
@media(max-width:800px){
 .tabla-stage-art{height:82px}
 .tabla-stage .tabla-bayan{width:72px;height:72px}
 .tabla-stage .tabla-dayan{width:65px;height:65px}
}
@media(max-width:560px){
 .practice-modes{margin-top:11px;padding:10px}
 .practice-mode-sub{display:none}
 .practice-mode-btn{font-size:11px;gap:4px;min-height:44px;padding:7px 4px}
 .practice-mode-foot{font-size:10px}
 .tabla-stage .tc-now-bol{font-size:36px;min-width:83px}
 .tabla-stage-art{height:66px;margin:1px 0 8px}
 .tabla-stage .tabla-bayan{width:61px;height:61px}
 .tabla-stage .tabla-dayan{width:55px;height:55px}
 .tabla-stage .tc-toggle{padding:12px;min-height:78px}
 .tabla-stage .tc-mode-icon{width:36px;height:36px}
 .tabla-stage .tc-switch{width:43px}
}
@media(prefers-reduced-motion:reduce){.tabla-stage .tc-now{transition:none}}


/* Mobile: embed the actual Tabla controls directly under the practice choices. */
.practice-mode-tabla-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:2px;width:23px;height:20px;flex:none}
.practice-mode-tabla-icon i{position:relative;width:10px;height:13px;border-radius:40% 40% 36% 36%;background:linear-gradient(135deg,#ad7852,#dbb186);border:1px solid currentColor;box-shadow:inset 0 -3px 0 #84604a80}
.practice-mode-tabla-icon i::before{content:'';position:absolute;inset:1px 2px auto;height:5px;background:#423432;border:1px solid #ead3ae;border-radius:50%}
.practice-mode-tabla-icon i:first-child{transform:rotate(-9deg);height:15px;width:12px}
.practice-mode-tabla-icon i:last-child{transform:rotate(7deg)}
.practice-inline-settings[hidden],.tabla-stage[hidden]{display:none!important}
.practice-inline-settings{display:none}
@media(max-width:800px){
 .practice-inline-settings:not([hidden]){display:block;background:#fdf8ef;border:1px solid #e7d3b9;box-shadow:none;padding:13px;border-radius:12px;margin-top:12px;color:#5d3c30}
 .practice-inline-settings .tabla-stage-body{display:grid;gap:12px}
 .practice-inline-settings .tc-ranges{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .practice-inline-settings .tc-field{font-size:11px;gap:5px}
 .practice-inline-settings .tc-field select{min-height:40px}
 .practice-inline-settings .tc-now{padding:11px 12px;min-height:96px}
 .practice-inline-settings .tc-now-bol{font-size:32px;min-width:76px}
 .practice-inline-settings .tc-beat-grid{gap:4px}
 .practice-inline-settings .tc-beat{min-height:27px}
 .practice-inline-settings .tc-current{font-size:11px}
 .practice-inline-settings .tc-full-link{min-height:40px}
 .practice-inline-settings .pm-settings-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:12px;color:#673e33}
 .practice-inline-settings .pm-settings-caption span{font-size:10px;color:#897162}
 .practice-inline-settings .pm-credit{font-size:10px;line-height:1.45;color:#8c7769;margin:12px 0 0}
 .practice-mode-foot{align-items:center}
 .practice-mode-btn{font-size:12px}
}
@media(max-width:440px){
 .practice-inline-settings .tc-ranges{grid-template-columns:1fr;gap:11px}
 .practice-inline-settings{margin-inline:-1px}
 .practice-mode-btn{font-size:11px}
}

/* Pick Sa before the source and player: clear riyaz flow. */
.sa-position{margin:15px 0 18px}
.sa-position-label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-bottom:9px;color:#774b39}
.sa-position-label strong{font-size:12px;font-weight:800}
.sa-position-label span{font-size:11px;color:#8e7667}
.sa-position .pitch-quick{margin-top:0}
.sa-position .pitch-key{min-height:63px}
.sa-position + .sound-source-section{margin-top:12px}
/* Instrument images inside two legible selectable practice cards. */
.practice-mode-actions{gap:9px}
.practice-mode-btn{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:10px;min-height:66px;padding:9px 12px;border-radius:11px;background:rgba(250,231,200,.07)}
.practice-mode-btn[aria-pressed=true]{background:linear-gradient(130deg,#f3d4a3,#f7e5c6);border-color:#f2d9b3}
.practice-mode-btn .pm-card-art{width:38px;height:40px;display:grid;place-items:center;flex:none;border-radius:9px;background:#e7c6a15c;color:#f1d8b8}
.practice-mode-btn[aria-pressed=true] .pm-card-art{background:#ecd0aa;color:#6c4035}
.practice-mode-btn .pm-illustration{width:33px;height:33px;display:block;overflow:visible}
.practice-mode-btn .pm-card-label{display:grid;gap:3px;min-width:0;font-size:11px;line-height:1.2}
.practice-mode-btn .pm-card-label strong{font-size:12px;font-weight:800}
.practice-mode-btn .pm-card-label small{font-size:10px;opacity:.82}
.practice-mode-btn[aria-pressed=true] .pm-card-label small{color:#795847;opacity:1}
@media(max-width:800px){
 .practice-inline-settings:not([hidden]){display:block}
 .practice-mode-settings{display:none}
 .practice-mode-foot{margin-top:7px}
 .practice-inline-settings{margin-top:10px}
 .practice-inline-settings .pm-credit{display:none}
 .sa-position{margin:11px 0 14px}
 .sa-position .pitch-key{min-height:55px}
}
@media(max-width:560px){
 .practice-mode-actions{gap:7px}
 .practice-mode-btn{min-height:63px;gap:6px;padding:8px}
 .practice-mode-btn .pm-card-art{width:31px;height:33px}
 .practice-mode-btn .pm-illustration{width:29px;height:29px}
 .practice-mode-btn .pm-card-label strong{font-size:11px}
 .practice-mode-btn .pm-card-label small{font-size:9px}
 .play-card .play-note{display:none}
 .sa-position-label{margin-bottom:7px}
 .sa-position-label span{font-size:10px}
}

/* Core tuning: Sa and its volume on the left; Pa/Ma at the right. */
.core-setup-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:14px;margin:15px 0 18px;align-items:stretch}
.core-setup-left,.core-setup-right{min-width:0;border:1px solid #e8dacb;border-radius:13px;padding:13px;background:linear-gradient(150deg,#fffdf9,#fbf5ed)}
.core-setup-left .sa-position{margin:0}
.core-setup-left .sa-position-label{margin-bottom:8px}
.core-setup-left .pitch-quick{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0}
.core-setup-left .pitch-key{min-height:54px;padding:6px 1px;border-radius:9px;gap:3px}
.core-setup-left .pitch-key strong{font-size:16px}
.core-setup-left .pitch-key small{font-size:9px}
.core-volume{margin-top:12px;border-top:1px solid #ead9c8;padding-top:11px}
.core-volume .volume-panel{margin:0;padding:0;background:transparent;border:none;box-shadow:none}
.core-volume .volume-title{margin-bottom:5px}
.core-volume .volume-controls{gap:7px}
.core-volume .mute-button{min-height:39px;padding:7px 9px}
.core-volume .volume-help{margin:3px 0 0;font-size:10px;color:#897c70}
.core-volume .volume-slider{width:100%}
.core-setup-right{display:flex;flex-direction:column;justify-content:center;gap:12px}
.core-setup-right .mode-heading{display:grid;gap:6px;align-items:start}
.core-setup-right .mode-heading h3{white-space:normal;font-size:14px}
.core-setup-right .mode-heading span{font-size:11px;text-align:left;line-height:1.4;max-width:none}
.core-setup-right .mode-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.core-setup-right .mode-button{min-height:73px;flex-direction:column;gap:3px;padding:10px 4px}
.core-setup-right .mode-button strong{font-size:18px}
.core-setup-right .mode-button small{font-size:10px}
.core-setup-grid+.sound-source-section{margin-top:4px}
.core-setup-grid .pitch-key:focus-visible,.core-setup-grid button:focus-visible{outline:3px solid #b27b50;outline-offset:2px}
/* Locally hosted, tiny WEBP realism assets: no network dependency or icon fonts. */
.practice-mode-btn .pm-card-art{width:73px;height:62px;border-radius:10px;background:transparent;flex:none;display:grid;place-items:center;overflow:visible}
.practice-mode-btn[aria-pressed=true] .pm-card-art{background:transparent}
.practice-mode-btn .pm-photo{max-height:67px;max-width:80px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 3px 4px #30171355)}
.practice-mode-btn .pm-photo-tanpura{max-height:69px}
.practice-mode-btn .pm-photo-tabla{max-width:92px}
.practice-mode-btn .pm-card-label{gap:4px}
.practice-mode-btn .pm-card-label strong{font-size:13px}
.practice-mode-btn .pm-card-label small{font-size:11px}
.practice-mode-btn{min-height:77px}
@media(max-width:1050px) and (min-width:631px){
 .core-setup-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px}
 .core-setup-left,.core-setup-right{padding:10px}
 .core-setup-right .mode-button{min-height:65px}
}
@media(max-width:630px){
 .core-setup-grid{grid-template-columns:1fr;gap:9px;margin:12px 0}
 .core-setup-left,.core-setup-right{padding:10px 11px}
 .core-setup-left .pitch-key{min-height:52px}
 .core-setup-right{gap:9px}
 .core-setup-right .mode-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
 .core-setup-right .mode-heading h3{font-size:13px;flex:none}
 .core-setup-right .mode-heading span{font-size:10px}
 .core-setup-right .mode-button{min-height:48px;flex-direction:row;gap:8px;padding:6px}
 .core-setup-right .mode-button strong{font-size:16px}
 .core-setup-right .mode-button small{font-size:10px}
 .core-volume .volume-help{display:none}
 .practice-mode-btn .pm-card-art{width:54px;height:55px}
 .practice-mode-btn .pm-photo{max-width:59px;max-height:56px}
 .practice-mode-btn .pm-card-label strong{font-size:11px}
 .practice-mode-btn .pm-card-label small{font-size:10px}
 .practice-mode-btn{min-height:72px;gap:6px;padding:8px}
}

/* Bring both working instruments immediately below the navigation.
   The original H1 stays visible as the quiet overline inside the Tanpura panel.
   Avoid the large decorative hero/banner that pushed tools below the fold. */
main > .studio-grid{padding-top:18px}
.studio-heading .page-keyword-heading h1{margin:0;font:800 12px/1.45 var(--font-body);letter-spacing:.095em;color:var(--rust)}
html[lang="hi"] .studio-heading .page-keyword-heading h1{font-family:var(--font-hi-body);letter-spacing:0}
.studio-heading .page-keyword-heading + h2{margin-top:5px}
@media(max-width:800px){main > .studio-grid{padding-top:13px}}
@media(max-width:560px){main > .studio-grid{padding-top:11px}.studio-heading .page-keyword-heading h1{font-size:11px;line-height:1.4}}

/* Playback states distinguish initialization and failure from idle readiness. */
.tabla-stage .tc-now[data-state=loading] .tc-now-indicator{background:#f7e9cf;color:#865a1c}
.tabla-stage .tc-now[data-state=loading] .tc-now-indicator::before{background:#bd8c45}
.tabla-stage .tc-now[data-state=error]{border-color:#c27b72;background:#fff0ec}
.tabla-stage .tc-now[data-state=error] .tc-now-indicator{background:#f3d9d5;color:#9a3c35}
.tabla-stage .tc-now[data-state=error] .tc-now-indicator::before{background:#b84a42}


/* 2026-11-06 isolated practice-mode artwork — reserve text space, never overlay.
   Works on English/Hindi layouts and remains independent of playback scripts. */
.practice-mode-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.practice-mode-btn{
  display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;
  justify-content:stretch;column-gap:10px;width:100%;min-width:0;
  min-height:88px;box-sizing:border-box;padding:9px 10px;
  text-align:left;overflow:hidden;
}
.practice-mode-btn .pm-card-art,
.practice-mode-btn[aria-pressed=true] .pm-card-art{
  display:flex;align-items:center;justify-content:center;flex:none;
  width:76px;height:69px;min-width:0;overflow:hidden;
  background:transparent;
}
.practice-mode-btn .pm-photo{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;filter:drop-shadow(0 3px 3px rgba(40,19,10,.25));
}
.practice-mode-btn .pm-photo-tanpura{width:54px;height:69px;max-height:100%}
.practice-mode-btn .pm-photo-tabla{width:76px;height:60px;max-width:100%}
.practice-mode-btn .pm-card-label{
  display:flex;flex-direction:column;justify-content:center;
  min-width:0;gap:4px;overflow-wrap:break-word;word-break:normal;
}
.practice-mode-btn .pm-card-label strong{font-size:12px;line-height:1.3}
.practice-mode-btn .pm-card-label small{font-size:10.5px;line-height:1.3}
@media(max-width:630px){
  .practice-mode-actions{gap:7px}
  .practice-mode-btn{
    grid-template-columns:clamp(39px,12vw,54px) minmax(0,1fr);
    gap:6px;min-height:75px;padding:7px;overflow:hidden;
  }
  .practice-mode-btn .pm-card-art,
  .practice-mode-btn[aria-pressed=true] .pm-card-art{
    width:100%;height:56px;overflow:hidden;
  }
  .practice-mode-btn .pm-photo-tanpura{width:44px;height:56px}
  .practice-mode-btn .pm-photo-tabla{width:100%;height:49px}
  .practice-mode-btn .pm-card-label strong{font-size:11px;line-height:1.25}
  .practice-mode-btn .pm-card-label small{font-size:9.5px;line-height:1.25}
}
@media(max-width:360px){
  .practice-mode-actions{gap:5px}
  .practice-mode-btn{grid-template-columns:36px minmax(0,1fr);gap:4px;padding:5px;min-height:70px}
  .practice-mode-btn .pm-photo-tanpura{width:34px;height:50px}
  .practice-mode-btn .pm-photo-tabla{height:43px}
  .practice-mode-btn .pm-card-label strong{font-size:10px}
  .practice-mode-btn .pm-card-label small{font-size:9px}
}


/* Readable photographic practice-mode cards — 2026-11-06 v2.
   Explicit, reserved image tracks prevent thumbnails from shrinking to icons. */
.practice-mode-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:11px}
.practice-mode-btn{
 display:grid;grid-template-columns:100px minmax(0,1fr);
 align-items:center;justify-content:stretch;gap:8px;
 box-sizing:border-box;min-width:0;width:100%;min-height:108px;
 padding:8px 10px;border-radius:13px;text-align:left;overflow:hidden;
 transition:background-color .18s ease,border-color .18s ease;
}
.practice-mode-btn .pm-card-art,
.practice-mode-btn[aria-pressed=true] .pm-card-art{
 width:100px;height:92px;min-width:0;display:flex;align-items:center;
 justify-content:center;overflow:visible;background:transparent;
}
.practice-mode-btn .pm-photo{
 display:block;flex:none;object-fit:contain;
 max-width:100%;max-height:100%;
 filter:drop-shadow(0 4px 5px rgba(30,13,10,.28));
}
.practice-mode-btn .pm-photo-tanpura{width:76px;height:92px;max-width:100%;max-height:100%}
.practice-mode-btn .pm-photo-tabla{width:100px;height:83px;max-width:100%;max-height:100%}
.practice-mode-btn .pm-card-label{
 display:flex;flex-direction:column;gap:5px;min-width:0;
 align-items:flex-start;justify-content:center;overflow-wrap:break-word;
}
.practice-mode-btn .pm-card-label strong{
 font-size:13.5px;line-height:1.32;letter-spacing:-.01em;
}
.practice-mode-btn .pm-card-label small{font-size:11px;line-height:1.3}
.practice-mode-btn[aria-pressed=true]{
 background:linear-gradient(130deg,#f5d7ac 0%,#f9e7c9 100%);
}
@media(max-width:630px){
 .practice-mode-actions{gap:9px}
 .practice-mode-btn{
  grid-template-columns:75px minmax(0,1fr);gap:7px;
  min-height:94px;padding:7px 9px;
 }
 .practice-mode-btn .pm-card-art,
 .practice-mode-btn[aria-pressed=true] .pm-card-art{width:75px;height:80px}
 .practice-mode-btn .pm-photo-tanpura{width:63px;height:79px}
 .practice-mode-btn .pm-photo-tabla{width:75px;height:66px}
 .practice-mode-btn .pm-card-label strong{font-size:12.5px}
 .practice-mode-btn .pm-card-label small{font-size:10.5px}
}
@media(max-width:460px){
 .practice-mode-actions{grid-template-columns:minmax(0,1fr);gap:8px}
 .practice-mode-btn{
  grid-template-columns:95px minmax(0,1fr);
  min-height:91px;padding:7px 12px;gap:13px;
 }
 .practice-mode-btn .pm-card-art,
 .practice-mode-btn[aria-pressed=true] .pm-card-art{width:95px;height:78px}
 .practice-mode-btn .pm-photo-tanpura{width:67px;height:78px}
 .practice-mode-btn .pm-photo-tabla{width:95px;height:74px}
 .practice-mode-btn .pm-card-label strong{font-size:14px;line-height:1.3}
 .practice-mode-btn .pm-card-label small{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .practice-mode-btn{transition:none}
}

/* Matching AI-generated instrument artwork, exported locally as lightweight WebP.
   Original images requested and approved for the Tanpura and Tabla mode cards.
   Keep artwork inside the reserved image track, independent of playback state. */
.practice-mode-btn .pm-card-art,
.practice-mode-btn[aria-pressed=true] .pm-card-art{
 width:100px;height:87px;display:flex;align-items:center;justify-content:center;
 min-width:0;overflow:hidden;border-radius:9px;background:#f8e3c5;
}
.practice-mode-btn .pm-photo,
.practice-mode-btn .pm-photo-tanpura,
.practice-mode-btn .pm-photo-tabla{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:cover;filter:none;border-radius:8px;
}
.practice-mode-btn .pm-photo-tabla{object-fit:contain}
@media(max-width:630px){
 .practice-mode-btn .pm-card-art,
 .practice-mode-btn[aria-pressed=true] .pm-card-art{width:75px;height:75px}
}
@media(max-width:460px){
 .practice-mode-btn .pm-card-art,
 .practice-mode-btn[aria-pressed=true] .pm-card-art{width:95px;height:77px}
}

/* Rupak: beat 1 is both the starting Sam and the waved Khali. */
.tabla-stage .tc-beat-sam-khali{background:linear-gradient(135deg,#e7eddf 0%,#e7eddf 49%,#e4c9bc 51%,#e4c9bc 100%);color:#693c38;border-color:#b8ad91}
.tabla-stage .tc-beat-sam-khali.tc-beat-current{background:#743f36;color:#fffaf0;border-color:#743f36}

/* Replace decorative CSS circles with the locally hosted photographic Tabla pair.
   Never overlay controls or change playback behavior. */
.tabla-stage .tabla-stage-art{
  height:165px;margin:8px 0 13px;display:flex;align-items:center;justify-content:center;
}
.tabla-stage .tabla-stage-hero-photo{
  display:block;object-fit:contain;width:min(100%,330px);height:160px;
  border:0;background:transparent;filter:drop-shadow(0 7px 9px rgba(60,30,21,.16));
}
@media(max-width:800px){
 .tabla-stage .tabla-stage-art{height:150px}
 .tabla-stage .tabla-stage-hero-photo{height:145px}
}
@media(max-width:560px){
 .tabla-stage .tabla-stage-art{height:125px;margin:6px 0 10px}
 .tabla-stage .tabla-stage-hero-photo{height:120px}
}


/* Premium engraved tabla hero: independent 350x261 WebP, not the
   tiny practice-mode thumbnail. Preserve the full engraved drums. */
.tabla-stage .tabla-stage-art{
  height:242px;
  margin:8px 0 13px;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:visible;
}
.tabla-stage .tabla-stage-hero-photo{
  width:min(100%,350px);
  height:234px;
  max-width:100%;
  object-fit:contain;
  object-position:center;
  border:0;
  border-radius:0;
  background:transparent;
  filter:drop-shadow(0 7px 9px rgba(75,40,20,.13));
}
@media(max-width:800px){
 .tabla-stage .tabla-stage-art{height:225px}
 .tabla-stage .tabla-stage-hero-photo{height:219px}
}
@media(max-width:560px){
 .tabla-stage .tabla-stage-art{height:196px;margin:5px 0 12px}
 .tabla-stage .tabla-stage-hero-photo{width:min(100%,290px);height:190px}
}

/* Ratio-safe premium Tabla image and zoom-friendly spacing — 20261107 */
.tabla-stage .tabla-stage-art{
  box-sizing:border-box;
  height:auto;
  min-height:0;
  margin:9px 0 18px;
  padding:8px 12px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}
.tabla-stage .tabla-stage-hero-photo{
  display:block;
  flex:0 1 auto;
  width:min(100%,360px);
  height:auto;
  max-width:100%;
  max-height:none;
  aspect-ratio:460 / 343;
  object-fit:contain;
  object-position:center;
  background:transparent;
  border:0;
  filter:drop-shadow(0 5px 8px rgba(75,40,20,.14));
}
@media (min-width:801px) and (max-width:1100px){
 .tabla-stage .tabla-stage-art{padding-inline:9px;margin-bottom:15px}
 .tabla-stage .tabla-stage-hero-photo{width:min(100%,330px)}
}
@media(max-width:800px){
 .tabla-stage .tabla-stage-art{height:auto;min-height:0;padding:7px 9px 5px;margin:8px 0 15px}
 .tabla-stage .tabla-stage-hero-photo{width:min(100%,320px);height:auto}
}
@media(max-width:560px){
 .tabla-stage .tabla-stage-art{height:auto;min-height:0;padding:6px 8px 4px;margin:6px 0 12px}
 .tabla-stage .tabla-stage-hero-photo{width:min(100%,290px);height:auto}
}


/* Tuning-card premium tanpura illustration, 2026-11-07.
   Use existing empty top area instead of growing the card. */
.core-setup-right{position:relative;justify-content:flex-end}
.core-setup-right .tuning-tanpura-art{
  position:absolute;top:11px;left:0;right:0;height:110px;
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;z-index:0;
}
.core-setup-right .tuning-tanpura-art img{
  display:block;max-width:80%;width:auto;height:105px;
  object-fit:contain;filter:drop-shadow(0 5px 7px rgba(73,33,22,.19));
}
.core-setup-right > .mode-heading,
.core-setup-right > .mode-row{position:relative;z-index:1}
@media(max-width:1050px) and (min-width:631px){
 .core-setup-right .tuning-tanpura-art{top:7px;height:82px}
 .core-setup-right .tuning-tanpura-art img{height:79px}
}
@media(max-width:630px){
 .core-setup-right{justify-content:center}
 .core-setup-right .tuning-tanpura-art{display:none}
}

/* Tabla accompaniment clarity pass: readable now-playing feedback without
   changing or duplicating any Tanpura controls, artwork or audio resources. */
.tabla-stage .tc-now{box-shadow:inset 0 1px 0 #fff9f5;position:relative}
.tabla-stage .tc-now-row{gap:13px}
.tabla-stage .tc-now-detail{line-height:1.5}
.tabla-stage .tc-now-detail strong{font-size:14px}
.tabla-stage .tc-current{background:#fff7ec;border:1px solid #ead7c1;border-radius:9px;padding:10px 12px;gap:5px}
.tabla-stage .tc-current span{overflow-wrap:anywhere}
.tabla-stage .tc-beat{min-height:33px}
.tabla-stage .tc-beat-current{box-shadow:0 0 0 2px #71433840,0 3px 7px #4b292320}
.tabla-stage .tc-status{min-height:20px}
.tabla-stage .tc-full-link:focus-visible{outline:3px solid #d3a66c;outline-offset:3px}
@media(max-width:560px){
 .tabla-stage .tc-now{padding:12px}
 .tabla-stage .tc-now-bol{min-width:75px;font-size:clamp(27px,8vw,38px)}
 .tabla-stage .tc-now-row{gap:10px}
 .tabla-stage .tc-current{display:grid;grid-template-columns:1fr;gap:5px}
}
