*{box-sizing:border-box} :root{color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#e9f5ef;background:#091b20;font-size:16px;--mint:#89e8c1;--red:#ee827e;--muted:#9bb6b7}body{margin:0;background:radial-gradient(ellipse at 50% 0,#143438 0,transparent 65%);min-height:100dvh}main{max-width:1000px;margin:auto;padding:22px 28px 16px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.brand{display:flex;align-items:center;gap:12px}.brand img{border-radius:12px}h1{font-size:24px;font-weight:650;margin:0;letter-spacing:-1px}h1 span{font-weight:350;margin-left:5px;color:var(--mint)}small{font-size:12px;color:var(--muted)}nav{background:#07161b;border:1px solid #294449;border-radius:25px;display:flex;padding:4px}button{font:inherit;color:inherit;border:1px solid #38555b;background:#19363b;border-radius:10px;padding:10px 17px;cursor:pointer;transition:background .15s}button:hover{background:#2a4b4e}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button:disabled{opacity:.45;cursor:default}nav button{border:0;background:transparent;padding:8px 23px;border-radius:20px;font-size:14px}nav .selected{background:var(--mint);color:#102d2c;font-weight:650}.primary{background:var(--mint);color:#0d2b26;border-color:var(--mint);font-weight:650}.primary:hover{background:#b2f4d8}.toolbar{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #2b454b;border-bottom:1px solid #2b454b}.toolbar label{font-size:11px;letter-spacing:1.4px;color:var(--muted);flex:1}.toolbar select{display:block;width:100%;font-size:14px;background:transparent;color:#eef8f3;color-scheme:dark;border:0;padding:7px 22px 4px 0;letter-spacing:0}.toolbar select option{background-color:#102b30;color:#e9f5ef}.scaleControl{position:relative;min-width:0}.scaleButton{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:7px 8px;color:#eef8f3;background:#0b2025;border:1px solid #89e8c1;border-radius:0;text-align:left;font-size:14px;letter-spacing:0}.scaleButton span:last-child{color:#b9d4ce}.scaleMenu{position:absolute;z-index:20;top:calc(100% + 2px);left:0;width:max(100%,190px);max-height:min(52vh,360px);overflow:auto;padding:4px;background:#102b30;border:1px solid #52716e;border-radius:6px;box-shadow:0 12px 30px #0009}.scaleMenu[hidden]{display:none}.scaleMenu [role=option]{display:block;width:100%;padding:7px 9px;border:0;border-radius:3px;background:transparent;color:#e9f5ef;text-align:left;font-size:14px}.scaleMenu [role=option]:hover,.scaleMenu [role=option]:focus-visible{background:#24514f;color:#fff;outline:none}.scaleMenu [role=option][aria-selected=true]{background:#195047;color:#b9f1d7}.fine{display:flex;gap:5px;align-items:center;border:1px solid #345459;border-radius:10px;padding:3px}.fine button{padding:4px 10px;border:0;background:transparent;font-size:20px}.fine input{width:51px;border:0;background:transparent;font-size:16px;text-align:right;appearance:textfield}.fine input::-webkit-inner-spin-button{appearance:none}.fine span{color:var(--muted);font-size:12px}.icon-button{border-radius:50%;padding:3px;width:30px;height:30px}#notice{font-size:14px;color:#ffd1aa;padding:10px 0;min-height:0}#notice:empty{display:none}#micGate{display:flex;align-items:center;justify-content:space-between;background:#183a3c;border:1px solid #35645e;border-radius:12px;margin:16px 0;padding:14px 18px;gap:15px}#micGate strong{font-size:16px}p{line-height:1.55}#micGate p{font-size:13px;margin:5px 0 0;color:var(--muted)}.instrument{padding:24px 42px 18px}.readout{display:flex;justify-content:space-between;align-items:center;max-width:620px;margin:auto}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--mint)}#note{font-size:66px;line-height:1.65;min-height:100px;font-weight:450;letter-spacing:1px}#noteDetail{font-size:13px;color:var(--muted)}.numbers{text-align:right;display:grid;gap:9px}.numbers strong{font-size:30px;font-weight:350;font-variant-numeric:tabular-nums}.numbers small{font-size:15px}.numbers>span{font-size:14px;color:var(--muted)}canvas{display:block;width:100%}#meter{height:210px}.meterLegend{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);letter-spacing:1.2px}.mint{color:var(--mint)}.history{padding:18px 24px;background:#0d252b;border:1px solid #29464d;border-radius:16px}.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:15px}h2{font-size:16px;font-weight:550;margin:0}.sectionHead>span{color:var(--mint);font-size:13px}#wave{height:135px}.axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding-left:35px}footer{display:flex;justify-content:space-between;gap:12px;color:#87a7a9;font-size:11px;margin-top:17px}.sectionHead p{font-size:14px;color:var(--muted);margin:7px 0}.badge{padding:5px 12px;border:1px solid #315d57;border-radius:18px}#phrasePanel{padding-top:24px}.speed{margin:18px 0;background:#102a30;border-radius:12px;padding:15px 18px}.speed label{font-size:14px;display:flex;justify-content:space-between;gap:8px}.speed strong{font-weight:500;color:var(--mint)}input[type=range]{accent-color:var(--mint);width:100%;margin:15px 0}.speedPresets{display:flex;align-items:center;gap:8px}.speedPresets button{font-size:12px;padding:6px 11px}.speedPresets small{margin-left:auto}#phraseScroll{height:clamp(180px,30dvh,350px);overflow:auto;padding:20px 24px;background:#0b2429;border:1px solid #305056;border-radius:14px}#phraseText{font-size:27px;line-height:2.2;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.phraseBottom>span{display:block;color:var(--muted);font-size:12px;margin:12px 0}.phraseBottom>div{display:flex;justify-content:flex-end;gap:10px}dialog{max-width:520px;background:#102b30;color:inherit;border:1px solid #41675f;border-radius:18px;padding:28px}dialog::backdrop{background:#0009}dialog p{font-size:14px;color:#c3d6d3}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:600px){main{padding:12px 14px}header{margin-bottom:12px}.brand small{display:none}h1{font-size:21px}nav button{padding:8px 13px}.toolbar{gap:7px;flex-wrap:wrap;padding:10px 0}.toolbar label{min-width:75px}.toolbar .fine{order:5;justify-content:center;width:100%;height:34px}.fine input{width:60px}.instrument{padding:15px 7px}#note{font-size:53px;min-height:80px}.numbers strong{font-size:25px}#meter{height:175px}.history{padding:12px}#wave{height:105px}.meterLegend{font-size:10px;letter-spacing:.3px}footer{font-size:10px}#micGate{padding:12px;align-items:stretch;flex-direction:column;gap:10px}.speed label{font-size:13px}.speedPresets{flex-wrap:wrap}.speedPresets small{margin-left:0;width:100%}.sectionHead h2{font-size:17px}#phrasePanel{padding-top:18px}#phraseScroll{height:26dvh;min-height:150px}#phraseText{font-size:24px}.phraseBottom>span{line-height:1.7}}
@media(max-height:750px){main{padding-top:12px}header{margin-bottom:12px}.instrument{padding-top:12px;padding-bottom:12px}#note{font-size:48px;min-height:72px;line-height:1.5}#meter{height:150px}#wave{height:85px}.history{padding-top:12px;padding-bottom:12px}#micGate{margin:10px 0;padding:10px 14px}footer{margin-top:10px}}

.response{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:12px;color:var(--muted)}.response label{white-space:nowrap}.response strong{color:var(--mint);font-weight:500;margin-left:6px}.response input[type=range]{flex:1;min-width:40px;margin:0}.response>span{font-size:11px}
@media(max-width:600px){nav button{padding:8px 11px;font-size:13px}}
#breathPanel{padding-top:24px}.breathCard{display:grid;justify-items:center;gap:14px;margin:22px auto;padding:30px 20px;max-width:600px;background:#0d252b;border:1px solid #29464d;border-radius:16px;text-align:center}.breathCard>strong{font-size:58px;font-weight:350;font-variant-numeric:tabular-nums}.breathCard p{max-width:420px;margin:0;color:var(--muted);font-size:14px}.breathStats{display:grid;grid-template-columns:1fr 1fr;gap:14px}.breathStats article{padding:18px;background:#102a30;border:1px solid #29464d;border-radius:14px}.breathStats article>span{font-size:11px;letter-spacing:1.4px;color:var(--muted)}.breathStats article>strong{display:block;margin-top:14px;color:var(--mint);font-size:22px;font-weight:450}.breathStats #breathRecords{display:grid;gap:8px;margin-top:12px}.breathStats #breathRecords div{display:flex;justify-content:space-between;gap:10px;color:#c3d6d3;font-size:13px}.breathStats #breathRecords div strong{color:var(--mint);font-weight:500}.breathStats #breathRecords>span{color:var(--muted);font-size:13px}@media(max-width:600px){.breathCard{padding:24px 14px}.breathCard>strong{font-size:48px}.breathStats{grid-template-columns:1fr}#breathPanel{padding-top:18px}}

.academy-return{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;font-size:12px;color:#bca56d}.academy-return a{color:#e9f5ef;text-decoration:none}.academy-return button{padding:6px 12px;font-size:12px}@media(max-width:600px){.academy-return{flex-wrap:wrap}}
.membership-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 22px;padding:14px;border:1px solid #285057;border-radius:14px;color:#83e6c3}.membership-bar button{padding:10px 14px}#tunerMembership{max-width:480px;width:calc(100% - 40px);max-height:85vh;overflow:auto;border:1px solid #285057;border-radius:18px;background:#102b30;color:#eff7f4;padding:24px}#tunerMembership button,#tunerMembership a{display:inline-block;margin:6px;padding:10px 14px}#tunerMembership [hidden]{display:none}#tunerMembership p{line-height:1.6}#tunerConsent{width:auto}

#wave{height:330px!important;width:100%}.chromatic-legend{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px;font-size:11px;color:#bdcfce}.chromatic-legend span{padding:5px;border:1px solid #29474d;border-radius:5px}.embedded-riyaz .academy-return{display:none}.embedded-riyaz main{padding:14px;max-width:100%}.embedded-riyaz header{margin-bottom:10px}.embedded-stop{margin-left:8px}@media(max-width:600px){.chromatic-legend{grid-template-columns:repeat(3,1fr)}#wave{height:330px!important}.embedded-stop{margin-left:0}}

.history .sectionHead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;min-height:64px;gap:12px}.history .sectionHead h2{margin:0;line-height:1.35}.history #stability{display:block;line-height:1.4;height:54px;overflow:hidden;text-align:right;font-variant-numeric:tabular-nums}.embedded-riyaz body{min-height:0}.embedded-riyaz #noteDetail{min-height:36px;line-height:18px}.embedded-riyaz #pitchStatus{display:block;min-height:34px;line-height:17px}.embedded-riyaz .readout{min-height:156px}.embedded-riyaz #notice:not(:empty){min-height:40px} .history{overflow-anchor:none}

.embedded-riyaz .scaleControl,.embedded-riyaz .fine,.embedded-riyaz label:has(#notation){display:none!important}.inherited-reference{font-size:14px;color:#89e8c1;margin:0;align-self:center}

.shared-pitch-control{min-width:200px;flex:1}.shared-pitch-control select{font-size:16px;min-height:48px}.shared-pitch-control small{font-size:13px;text-transform:none;letter-spacing:0;color:#9bb6b7;font-weight:400}.embedded-riyaz .toolbar{align-items:end;gap:14px}

.embedded-riyaz .toolbar .shared-pitch-control{font-size:14px}.shared-pitch-control small{display:block}@media(max-width:600px){.embedded-riyaz .toolbar .shared-pitch-control{flex:1 0 100%;min-width:0;width:100%}.embedded-riyaz .inherited-reference{flex-basis:100%}}

/* The Alankar tuner opens directly to a full-height dial / wave pager. */
.compact-riyaz,.compact-riyaz body{height:100%;min-height:0;overflow:hidden}
.compact-riyaz main{height:100dvh;min-height:0;max-width:none;padding:8px 12px;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;position:relative}
.compact-riyaz main>header,.compact-riyaz main>.toolbar,.compact-riyaz .inherited-reference,.compact-riyaz #micGate,.compact-riyaz .embedded-stop,.compact-riyaz footer,.compact-riyaz #responseHint,.compact-riyaz #noteDetail{display:none!important}
.compact-tools{display:flex;justify-content:flex-end;flex:none;height:44px}.compact-tools button{min-width:44px;min-height:44px;padding:0;font-size:26px;line-height:1;border-radius:50%}
.compact-riyaz #tunerPanel{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;margin:0}
.compact-riyaz .readout{flex:none;min-height:108px;padding:0 4px;gap:10px;border:0}.compact-riyaz #pitchStatus{min-height:22px;line-height:20px;font-size:12px}.compact-riyaz #note{font-size:52px;min-height:72px;line-height:1.3}.compact-riyaz .numbers strong{font-size:26px}
.tuner-pages{display:flex;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain}.tuner-pages::-webkit-scrollbar{display:none}
.compact-riyaz .tuner-pages>.instrument,.compact-riyaz .tuner-pages>.history{flex:0 0 100%;min-width:0;height:100%;min-height:0;scroll-snap-align:start;box-sizing:border-box;display:flex;flex-direction:column;margin:0;padding:0 2px;border:0;background:transparent}
.compact-riyaz #meter,.compact-riyaz #wave{width:100%;height:0!important;flex:1;min-height:0;display:block}.compact-riyaz .meterLegend{flex:none;margin:8px 0 4px;font-size:11px}
.compact-riyaz .history .sectionHead{display:block;flex:none;min-height:24px;padding:0;margin:0}.compact-riyaz .history .sectionHead h2{display:none}.compact-riyaz .history #stability{height:24px;line-height:22px;text-align:center;font-size:13px}.compact-riyaz .axis{flex:none;margin:6px 0;font-size:12px}
.compact-page-tabs{display:flex;justify-content:center;gap:12px;flex:none;margin:4px 0 0}.compact-page-tabs button{min-width:88px;min-height:44px;padding:8px 18px;font-size:14px}.compact-page-tabs button[aria-pressed=true]{background:#295548;color:#d8fff0;border-color:#82dfbd}
.compact-riyaz #notice:empty{display:none}.compact-riyaz #notice:not(:empty){position:absolute;z-index:5;left:12px;right:12px;top:48px;background:#17373b;border:1px solid #56877b;border-radius:10px;padding:12px;font-size:14px;line-height:1.4;min-height:0}.compact-riyaz #retryMicrophone{position:absolute;z-index:6;bottom:62px;left:50%;transform:translateX(-50%);min-height:44px;white-space:nowrap}
#tunerSettings{width:calc(100% - 24px);max-width:540px;max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;background:#102b30;color:#e9f5ef;border:1px solid #42675d;border-radius:16px;padding:16px}#tunerSettings::backdrop{background:#0009}.compact-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.compact-settings-heading h2{margin:0;font-size:21px}.compact-settings-heading button{min-width:44px;min-height:44px;font-size:24px;padding:0}#tunerSettings .toolbar{display:flex!important;flex-wrap:wrap;gap:12px;padding:12px 0}#tunerSettings .inherited-reference{display:none!important}#tunerSettings label{font-size:14px}#tunerSettings select{font-size:16px;min-height:44px}#tunerSettings .response{display:flex!important;flex-wrap:wrap;gap:8px;font-size:14px}#tunerSettings .response label{flex-basis:100%;white-space:normal}#tunerSettings summary{cursor:pointer;font-size:16px;padding:14px 0}#tunerSettings .chromatic-legend{grid-template-columns:repeat(2,minmax(0,1fr));font-size:13px;margin:0}#tunerSettings>p{font-size:14px;line-height:1.5;color:#adc8bf}
@media(max-height:430px){.compact-tools{height:36px}.compact-tools button{min-height:36px}.compact-riyaz .readout{min-height:72px}.compact-riyaz #note{font-size:36px;min-height:42px}.compact-page-tabs button{min-height:36px;padding:4px 14px}}

.compact-tools{align-items:center;justify-content:space-between;gap:10px}.earphone-hint{margin:0;color:#c6e6d9;font-size:14px;line-height:18px}.compact-tools>button{flex:none}.compact-playback{display:flex;justify-content:center;flex:none;margin:0 0 4px}.compact-playback[hidden]{display:none!important}.compact-playback button{min-height:40px;min-width:150px;font-size:14px;padding:7px 18px}
