:root{--ink:#183c33;--paper:#f6f3ea;--font:52px}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--paper);color:var(--ink)}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:1px solid #cbd3c7;background:#fffcf5;border-radius:16px;padding:16px 20px;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #bd8535;outline-offset:3px}button:disabled{opacity:.4}a{color:inherit}h1,p{margin:0}h1{font-size:clamp(28px,4.4vw,46px);line-height:1.12;letter-spacing:-.035em}p{line-height:1.5}.app{height:100dvh;max-width:none;margin:auto;padding:max(16px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:20px}header{display:flex;justify-content:space-between;align-items:center;flex:none}header button{border:0;background:none;padding:8px 0;font-weight:700}#settingsButton{padding:8px 16px;border:1px solid #cbd3c7}main{flex:1;min-height:0;display:flex;flex-direction:column;gap:20px}[hidden]{display:none!important}#home{justify-content:space-evenly}#home h1{font-size:clamp(35px,7vw,66px);margin:12px 0}#categories{display:grid;grid-template-columns:1fr 1fr;gap:12px}#categories button{text-align:left;font-size:clamp(20px,3.2vw,30px);font-weight:700;min-height:80px}#categories small{display:block;font-size:14px;font-weight:400;margin-top:8px}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:700;color:#6a7969}.muted{color:#647567}.plain{border:0;background:none;font-size:14px}.primary{background:#204f40;color:#fff;border-color:#204f40;font-weight:700}#variants{display:grid;gap:12px}#variants button{text-align:left;font-size:23px}#variants small{display:block;font-size:15px;margin-top:6px}.meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.meta button{padding:8px 12px;font-size:13px}.track{height:3px;background:#dce0d4;flex:none}.track div{height:100%;background:#547764;transition:width .2s}.heading{display:flex;align-items:center;gap:12px;min-height:52px}.heading h1{flex:1;font-size:clamp(26px,4vw,38px)}#pose{width:100px;height:118px;object-fit:contain;mix-blend-mode:multiply}#reader{gap:12px}#pagebox{flex:1;min-height:0;overflow:hidden}#pagebox p,.measure p{font-size:var(--font);font-weight:650;line-height:1.28;letter-spacing:-.018em;overflow-wrap:anywhere;margin:0 0 18px}#pagebox p.note,.measure p.note{font-size:22px;font-weight:400;line-height:1.45;letter-spacing:0;color:#596b5f}#pagebox p:last-child,.measure p:last-child{margin-bottom:0}.measure{position:fixed;visibility:hidden;left:-10000px;top:0;pointer-events:none}footer{display:flex;gap:12px;flex:none}footer button{min-height:64px}#next{flex:1;display:flex;justify-content:space-between;font-size:25px}#next span{font-size:17px;align-self:center}#status{font-size:12px;line-height:1.3;min-height:16px}#counter{display:flex;gap:8px}#counter button{padding:8px 16px}#count{flex:1}#settings{gap:25px;justify-content:center}#settings label{font-size:23px}#settings input[type=range]{width:100%;height:40px}#settings input[type=checkbox]{width:24px;height:24px}#infoText{font-size:clamp(20px,3vw,27px);line-height:1.5;flex:1}#info footer{margin-top:auto}#done{justify-content:center}#done button{font-size:22px}@media(max-height:740px){.app{gap:10px;padding:12px 18px}main{gap:12px}#home h1{font-size:36px;margin:6px 0}#categories{gap:8px}#categories button{min-height:62px;padding:12px}#categories small{margin-top:4px}#reader{gap:8px}.heading{min-height:34px}.heading h1{font-size:26px}#pose{height:70px;width:60px}footer button{min-height:52px;padding:12px}#pagebox p.note,.measure p.note{font-size:18px}#settings{gap:16px}#variants button{padding:12px;font-size:20px}}@media(max-height:480px){#home{display:grid;grid-template-columns:1fr 1fr}#categories{grid-row:span 3}#home h1{font-size:28px}#categories button{font-size:18px}#categories small{display:none}#reader{gap:4px}.meta{font-size:12px}.heading h1{font-size:22px}#status{min-height:0}header{font-size:13px}#settings{gap:6px}#infoText{font-size:17px}#variants{grid-template-columns:1fr 1fr}}

/* Full-width reading with a compact, always-visible pace controller. */
.app{width:100%;padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}.heading{position:relative}#reader:has(#pose:not([hidden])) .heading{padding-right:116px;min-height:72px}#pose{position:absolute;right:0;top:0;z-index:1}#pagebox{padding-top:4px}#reader:has(#pose:not([hidden])) #pagebox p:first-child{padding-right:112px}.measure p:first-child{padding-right:var(--image-inset,0px)}
.pacing{display:flex;align-items:center;gap:12px;flex:none;min-height:40px}.pacing button{padding:9px 12px;font-size:14px}.pace-meter{height:6px;background:#dce0d4;border-radius:8px;overflow:hidden;flex:1;min-width:35px}.pace-meter>div{height:100%;width:0;background:#b38434}.pacing>span{font-size:13px;min-width:74px}.pacing #tempoSettings{padding:8px 12px}.read-unit{border-radius:4px}.read-unit.active{background:#edce86;box-shadow:0 2px 0 #bd8535;color:#173d31}.read-unit.read{color:#547969}.reading-word{white-space:nowrap}#settings{max-width:850px;width:100%;margin:auto;gap:14px;justify-content:flex-start}#settings section{display:flex;flex-direction:column;gap:12px;min-height:0}.settings-tabs{display:flex;gap:10px}.settings-tabs button{flex:1;padding:12px}.settings-tabs button[aria-selected=true]{background:#204f40;color:white}#settings h1{font-size:32px;margin:4px 0}#settings label{font-size:18px}#settings input[type=range]{height:26px;margin:0;accent-color:#204f40}#settings input[type=checkbox]{vertical-align:middle;width:20px;height:20px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:15px}.setting-row select{font:inherit;padding:8px;border:1px solid #cbd3c7;border-radius:8px;background:#fffcf5;color:#183c33}.demo{padding:16px;border:1px solid #cbd3c7;border-radius:18px;display:flex;flex-direction:column;gap:12px;background:#fffcf5}#demoText{font-size:28px;line-height:1.45;font-weight:650}#demoText p{margin:0}.demo button{padding:8px 16px}.tempo-hint{font-size:13px;color:#647567}.auto-label{font-size:16px!important}#settingsClose{margin-top:auto;flex:none}#appearancePanel{gap:24px!important}#home{max-width:1200px;width:100%;margin:auto}
@media(max-height:740px){#settings{gap:8px}#settings section{gap:6px}#settings h1{font-size:25px}#settings label{font-size:16px}.demo{padding:10px;gap:6px}#demoText{font-size:24px}.tempo-hint{font-size:11px}.settings-tabs button{padding:8px}#reader:has(#pose:not([hidden])) .heading{min-height:42px;padding-right:80px}#reader:has(#pose:not([hidden])) #pagebox p:first-child{padding-right:76px}.measure p:first-child{padding-right:var(--image-inset,0px)}}
@media(max-width:550px){.app{padding-left:16px;padding-right:16px}.pacing{gap:6px}.pacing button{font-size:12px;padding:8px}.pacing>span{font-size:11px;min-width:60px}#reader:has(#pose:not([hidden])) .heading{padding-right:72px;min-height:40px}#pose{width:60px;height:76px}#reader:has(#pose:not([hidden])) #pagebox p:first-child{padding-right:68px}}
@media(max-height:480px){#tempoPanel{display:grid!important;grid-template-columns:1fr 1fr;gap:5px 18px!important}#tempoPanel[hidden]{display:none!important}#tempoPanel h1{display:none}.demo{grid-column:2;grid-row:1/7}#demoText{font-size:20px}.tempo-hint{display:none}.settings-tabs button{padding:5px}#settingsClose{padding:8px}#appearancePanel{gap:8px!important}.pacing{min-height:30px}.pacing button{padding:4px 8px}#pose{height:50px;width:44px}}
.reading-word{white-space:normal;overflow-wrap:anywhere}

#counter{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e7ecdf;border-radius:12px;padding:10px 16px;font-size:17px}#repeatRound{font-size:14px;color:#526b58}#explanationLanguage{font-size:17px}#appearancePanel .setting-row{flex-wrap:wrap}#pagebox [data-spoken=false]{color:#596b5f}

/* The reading stage reserves real space for both recitation and posture. */
.app{gap:12px;padding:18px 24px}header{min-height:34px}#reader{gap:10px}.meta{font-size:13px}.meta button{padding:7px 12px}.reading-stage{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:20px}#reader.has-pose .reading-stage{grid-template-columns:minmax(0,1fr) clamp(200px,27vw,390px)}.reading-copy{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fffcf5;border:1px solid #e0e4d8;border-radius:24px;padding:24px 28px;gap:14px}#reader .heading,#reader:has(#pose:not([hidden])) .heading{padding:0;min-height:0;flex:none}#reader .heading h1{font-size:clamp(22px,2.4vw,32px);font-weight:600;color:#5e7565;letter-spacing:-.02em}#reader #pagebox{padding:0;display:flex;flex-direction:column;justify-content:center;min-width:0}#reader #pagebox p{flex:none}#reader:has(#pose:not([hidden])) #pagebox p:first-child,.measure p:first-child{padding-right:0}#pagebox p.note,.measure p.note{font-size:clamp(17px,1.7vw,22px);line-height:1.4;margin-top:14px;color:#627466;font-weight:400}#posePanel{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;padding:22px;background:#e9eddf;border:1px solid #d9e0ce;border-radius:24px}#pose{position:static!important;display:block;width:100%!important;height:100%!important;max-height:490px;object-fit:contain;mix-blend-mode:multiply}#status:empty{display:none}#reader footer{justify-content:space-between}#reader footer #next{flex:0 1 65%;max-width:650px}#reader footer #back{min-width:120px}#reader footer button{min-height:56px}#reader .pacing{padding:0 3px;min-height:38px}#counter{padding:8px 14px;font-size:15px}.track{height:3px}
@media(orientation:portrait){#reader.has-pose .reading-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) clamp(150px,23dvh,270px);gap:12px}#posePanel{padding:12px 30px}#pose{max-height:none}.reading-copy{padding:20px 24px;gap:12px}#reader .heading h1{font-size:26px}#reader footer #next{flex:1;max-width:none}}
@media(max-width:550px){.app{padding:12px;gap:8px}#reader{gap:7px}.reading-copy{padding:14px 16px;border-radius:18px;gap:8px}#posePanel{border-radius:18px}#reader .heading h1{font-size:21px}#reader.has-pose .reading-stage{grid-template-rows:minmax(0,1fr) clamp(105px,17dvh,170px);gap:8px}#reader footer #back{min-width:85px}#reader footer button{padding:12px;min-height:48px}.meta{font-size:11px}#reader .pacing{gap:6px}#pagebox p.note,.measure p.note{font-size:16px;margin-top:8px}}
@media(orientation:landscape) and (max-height:650px){.app{padding:10px 18px;gap:6px}#reader{gap:6px}#reader.has-pose .reading-stage{grid-template-columns:minmax(0,1fr) clamp(140px,25vw,280px);gap:12px}.reading-copy{padding:14px 20px;gap:8px}#posePanel{padding:14px}#reader .heading h1{font-size:21px}#reader footer button{min-height:44px;padding:10px 16px}#reader .pacing{min-height:32px}.meta button{padding:5px 9px}#pagebox p.note,.measure p.note{font-size:16px;margin-top:8px}#counter{padding:5px 12px}header{min-height:28px}header button{padding:4px 0}#settingsButton{padding:5px 12px}}
.language-row{flex:none;font-weight:650}.settings-tabs{flex:none}.settings-tabs button{font-size:15px;padding:10px 6px}.language-row select{min-width:130px}#memoryList{display:grid;grid-template-columns:1fr 1fr;gap:10px}#memoryList label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #cbd3c7;border-radius:12px;min-height:62px}#memoryList input{flex:none}#memoryPanel button{padding:8px 12px}#memoryPanel{gap:14px!important}.reduced{align-items:center;text-align:center;gap:18px}#pagebox .hidden-time{font-size:clamp(58px,9vw,120px);font-variant-numeric:tabular-nums;line-height:1.15;margin:0}#pagebox .hidden-caption{font-size:18px;font-weight:500;margin:0}#pagebox .hidden-hint{font-size:16px;line-height:1.4;font-weight:400;max-width:30em;margin:0}.headings-only .heading h1{font-size:clamp(28px,3vw,46px)}#settings section{flex:0 1 auto}#settingsClose{margin-top:auto}#appearancePanel{gap:18px!important}#settingsButton{font-size:14px}#pagebox p{overflow-wrap:anywhere}
@media(max-height:740px){#settings .language-row{font-size:14px}#settings section{gap:5px}.settings-tabs button{padding:7px 5px;font-size:13px}.demo{padding:8px}#demoText{font-size:22px}#settings input[type=range]{height:20px}#settings h1{font-size:23px}#memoryPanel{gap:8px!important}#memoryList label{padding:8px;min-height:48px;font-size:16px}#appearancePanel{gap:12px!important}#settingsClose{padding:10px}}
@media(max-width:550px){#memoryList{grid-template-columns:1fr}#memoryList label{min-height:42px;padding:8px}.settings-tabs button{font-size:12px}#settings h1{font-size:23px}#pagebox .hidden-time{font-size:58px}#pagebox .hidden-caption{font-size:14px}#pagebox .hidden-hint{font-size:13px}.pacing>span{min-width:64px}}
@media(orientation:landscape) and (max-height:480px){#memoryPanel{display:grid!important;grid-template-columns:1fr 1fr}#memoryPanel[hidden]{display:none!important}#memoryList{grid-column:2;grid-row:1/5}#memoryPanel h1{font-size:18px}#memoryPanel .tempo-hint{display:none}#appearancePanel{display:grid!important;grid-template-columns:1fr 1fr}#appearancePanel[hidden]{display:none!important}#appearancePanel h1,#appearancePanel .muted{display:none}}
/* Hiding text does not change the available layout or the pagination clock. */
#reader.headings-only .heading h1{font-size:clamp(22px,2.4vw,32px)}
@media(orientation:portrait){#reader.headings-only .heading h1{font-size:26px}}
@media(max-width:550px){#reader.headings-only .heading h1{font-size:21px}}
@media(orientation:landscape) and (max-height:650px){#reader.headings-only .heading h1{font-size:21px}}
.section-tempo{font-size:12px;padding:8px 10px;max-width:210px;flex:none}.tempo-badge{font-size:11px;color:#617563;white-space:nowrap}.heading{flex-wrap:wrap}#reader .heading h1{min-width:180px}#tempoPanel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 24px!important;min-height:0;flex:1!important}#tempoPanel[hidden]{display:none!important}.tempo-editor-controls{display:flex;flex-direction:column;gap:10px;min-width:0}.scope-row{align-items:flex-start;flex-direction:column;gap:5px}.scope-row select{width:100%;max-width:100%}.scope-status{font-size:13px;line-height:1.3;color:#63745e}#resetSectionTempo{font-size:12px;padding:6px 0;text-align:left}#tempoPanel .demo{min-height:0;justify-content:space-between;gap:10px}#demoTitle{font-size:16px;font-weight:650}#demoText{height:170px;flex:1;min-height:90px;overflow:hidden}#demoText p,.demo-measure p{font-size:26px;line-height:1.4;font-weight:650;overflow-wrap:anywhere;margin:0 0 8px}.demo-measure p:last-child{margin-bottom:0}.demo-measure{position:fixed;left:-10000px;top:0;visibility:hidden}.demo .setting-row button{padding:6px 9px;font-size:13px}#demoPage{font-size:11px;text-align:center}#tempoPanel>.tempo-hint{grid-column:1/-1}.meaning-label{font-size:16px!important;font-weight:650!important;color:#5b705d;margin-top:14px!important;margin-bottom:8px!important}#pagebox p.meaning,.measure p.meaning{font-size:18px;font-weight:400;line-height:1.45;letter-spacing:0;color:#617260;margin-bottom:8px}
@media(orientation:portrait){#tempoPanel{grid-template-columns:1fr!important;grid-template-rows:auto minmax(180px,1fr) auto;gap:12px!important}.tempo-editor-controls{gap:7px}#tempoPanel .demo{min-height:180px}#demoText{min-height:80px;height:120px}#demoText p,.demo-measure p{font-size:24px}}
@media(max-height:800px) and (orientation:landscape){#tempoPanel .tempo-editor-controls{gap:6px}#tempoPanel .demo{padding:12px}#tempoPanel .scope-row select{padding:6px;font-size:14px}#tempoPanel .scope-row label{font-size:14px}#tempoPanel>.tempo-hint{font-size:11px}#demoText p,.demo-measure p{font-size:23px}#tempoPanel .setting-row label{font-size:15px}}
@media(max-width:550px){.pacing{flex-wrap:wrap}.tempo-badge{flex-basis:100%;text-align:center}#tempoPanel{gap:7px!important}#tempoPanel .demo{min-height:160px}#demoText{height:90px;min-height:70px}#demoText p,.demo-measure p{font-size:21px}.section-tempo{font-size:11px;padding:5px 8px}#pagebox p.meaning,.measure p.meaning{font-size:16px}.tempo-editor-controls{gap:5px}.scope-row{gap:2px}#tempoPanel .tempo-hint{font-size:11px}}
.demo .pace-meter{flex:none;height:6px;min-height:6px}#tempoPanel .demo{overflow:hidden}#demoText p:last-child{margin-bottom:0}
@media(orientation:portrait){
 #tempoPanel .tempo-editor-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 16px;align-items:center}
 .tempo-editor-controls>.scope-row{grid-column:1/-1;grid-row:1}
 .tempo-editor-controls>.scope-status{grid-column:1;grid-row:2}
 .tempo-editor-controls>#resetSectionTempo{grid-column:2;grid-row:2}
 .tempo-editor-controls>:nth-child(4){grid-column:1;grid-row:3}
 .tempo-editor-controls>#speed{grid-column:1;grid-row:4}
 .tempo-editor-controls>:nth-child(6){grid-column:1;grid-row:5}
 .tempo-editor-controls>:nth-child(7){grid-column:2;grid-row:3/6;flex-direction:column;align-items:flex-start}
 .tempo-editor-controls>:nth-child(8){grid-column:1;grid-row:6}
 .tempo-editor-controls>#pause{grid-column:1;grid-row:7}
 .tempo-editor-controls>.auto-label{grid-column:2;grid-row:6/8;font-size:14px!important}
 #tempoPanel{grid-template-rows:auto minmax(260px,1fr) auto}
 #tempoPanel .demo{min-height:260px;padding:12px;gap:6px;overflow:visible}
 #demoText{height:95px;min-height:80px}
 #tempoPanel .demo>*{flex-shrink:0}#tempoPanel .demo>#demoText{flex-shrink:1}
}
/* Match the reader's flex layout when measuring mixed recitation/meaning pages. */
.measure{display:flex;flex-direction:column}.measure p{flex:none}
/* Start screen: date-aware Diyanet board, then the two ways into a prayer. */
#home{max-width:none;justify-content:flex-start;gap:14px}#home .times-board{display:flex;flex-direction:column;gap:10px;border:1px solid #d9e1d2;border-radius:22px;background:#e9eddf;padding:16px 20px}.times-board .setting-row{font-size:15px}.times-board #timesDate{font-size:13px;color:#617361;margin-top:4px}#refreshTimes{padding:7px 14px;font-size:23px}#timesGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.time-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#fffcf5;padding:13px 8px;border:1px solid #d1dac9;border-radius:13px;min-width:0}.time-cell span{font-size:16px}.time-cell strong{font-size:clamp(22px,3vw,35px);font-variant-numeric:tabular-nums}.time-cell.current-time{background:#204f40;color:white;border-color:#204f40}div.time-cell{opacity:.72}.time-details{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#5c705e}.time-details #timesStatus{flex:1}#nextPrayer{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}.home-tabs{max-width:700px;width:100%;align-self:center}#prayerChoices,#categories{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-content:center}#prayerChoices button{font-size:clamp(20px,2.5vw,30px);font-weight:650;padding:22px 12px}#prayerChoices button.small-choice{font-size:17px;background:transparent}#categories button{min-height:75px}#resume{padding:12px;font-size:15px}.home-links{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}.home-links button{padding:10px 16px;font-size:14px}#surahChoices{display:flex;flex-direction:column;gap:12px;flex:1;justify-content:center}.surah-choice{display:grid;grid-template-columns:90px minmax(140px,1fr) minmax(180px,1.4fr);align-items:center;gap:16px;padding:16px 20px;background:#fffcf5;border:1px solid #d9e1d2;border-radius:16px}.surah-choice strong{font-size:22px}.surah-choice span{font-size:16px;color:#617361}.surah-choice select,.learn-top select{font:inherit;background:#f6f3ea;color:#183c33;padding:12px;border:1px solid #cbd3c7;border-radius:10px;min-width:0}.surah-choice select:disabled{opacity:.65}#plan footer{justify-content:space-between}#plan footer .primary{flex:1;max-width:650px}#plan h1{font-size:clamp(25px,3vw,38px)}
/* Local-only calibration. */
#learn{gap:10px}#learn h1{font-size:clamp(23px,3vw,35px)}#learnBack{padding:9px 16px;font-size:15px}.learn-top{display:flex;align-items:center;gap:12px;flex:none}.learn-top label{font-size:15px}.learn-top select{flex:1;padding:8px 12px;font-size:16px}.learn-text-area{flex:1;min-height:130px;display:flex;flex-direction:column;background:#fffcf5;border:1px solid #d9e1d2;border-radius:20px;padding:16px 22px;gap:10px}#learnText{flex:1;min-height:70px;overflow:hidden;display:flex;flex-direction:column;justify-content:center}#learnText p,.learn-measure p{font-size:clamp(27px,3.5vw,42px);line-height:1.35;font-weight:650;letter-spacing:-.018em;overflow-wrap:anywhere;margin:0 0 12px;flex:none}#learnText p:last-child,.learn-measure p:last-child{margin-bottom:0}.learn-measure{position:fixed;visibility:hidden;left:-10000px;top:0;display:flex;flex-direction:column}.learn-text-area .setting-row{font-size:12px}.learn-text-area button{padding:6px 12px;font-size:13px}.learn-record-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;flex:none}.learn-record-controls>label{font-size:14px}.silence-control select{font:inherit;padding:5px;background:#fffcf5;border:1px solid #cbd3c7;border-radius:8px}.learn-record-controls>.setting-row{width:100%}.learn-record-controls button{padding:11px 16px;font-size:16px}#recordElapsed{font-size:22px;font-variant-numeric:tabular-nums}.voice-level{width:100%;height:5px;background:#d9e1d2;border-radius:4px;overflow:hidden}#voiceLevel{height:100%;width:0;background:#698b54}#recordStatus{width:100%;font-size:13px;line-height:1.4;min-height:18px}.learn-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none}.learn-result audio{height:36px;max-width:100%;flex-basis:100%}.learn-result label{font-size:14px}.learn-result input{font:inherit;width:100px;border:1px solid #cbd3c7;border-radius:9px;padding:9px;color:#183c33;background:#fffcf5}.learn-result button{font-size:15px;padding:11px 16px;flex:1}.learn-privacy{font-size:11px;line-height:1.35;color:#617361;flex:none}#learnSectionTempo{padding:7px 10px;font-size:13px;text-align:left}#appearancePanel{gap:15px!important}
@media(orientation:portrait){#prayerChoices,#categories{grid-template-columns:repeat(2,minmax(0,1fr))}#prayerChoices button{padding:16px 10px}#timesGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.surah-choice{grid-template-columns:80px 1fr;gap:8px 12px;padding:12px 16px}.surah-choice select{grid-column:1/-1;padding:9px}.time-cell{padding:9px 8px}.time-cell span{font-size:14px}.time-cell strong{font-size:27px}.tempo-editor-controls>*{grid-column:auto!important;grid-row:auto!important}.tempo-editor-controls>.scope-row{grid-column:1/-1!important;grid-row:1!important}.tempo-editor-controls>.scope-status{grid-column:1!important;grid-row:2!important}.tempo-editor-controls>#resetSectionTempo{grid-column:2!important;grid-row:2!important}.tempo-editor-controls>#learnSectionTempo{grid-column:1/-1!important;grid-row:3!important}.tempo-editor-controls>:nth-child(5){grid-column:1!important;grid-row:4!important}.tempo-editor-controls>#speed{grid-column:1!important;grid-row:5!important}.tempo-editor-controls>:nth-child(7){grid-column:1!important;grid-row:6!important}.tempo-editor-controls>:nth-child(8){grid-column:2!important;grid-row:4/7!important;flex-direction:column;align-items:flex-start}.tempo-editor-controls>:nth-child(9){grid-column:1!important;grid-row:7!important}.tempo-editor-controls>#pause{grid-column:1!important;grid-row:8!important}.tempo-editor-controls>.auto-label{grid-column:2!important;grid-row:7/9!important}.learn-top{flex-wrap:wrap}.learn-top label{width:100%}}
@media(max-height:800px){#home{gap:9px}#home .times-board{padding:10px 15px;gap:7px}.time-cell{padding:8px 5px}.time-cell span{font-size:13px}.time-cell strong{font-size:25px}#prayerChoices,#categories{gap:8px}#prayerChoices button{padding:12px 8px;font-size:23px}#prayerChoices button.small-choice{font-size:15px}#categories button{padding:12px;min-height:60px;font-size:24px}.home-links button{padding:6px 10px;font-size:13px}#resume{padding:8px;font-size:13px}.surah-choice{padding:10px 14px;gap:8px}.surah-choice strong{font-size:19px}.surah-choice select{padding:8px;font-size:15px}#learn{gap:7px}.learn-text-area{padding:12px 18px;min-height:100px}.learn-record-controls{gap:6px 12px}.learn-record-controls button{padding:8px 12px;font-size:14px}.learn-result button{padding:8px 12px}.learn-privacy{font-size:10px}.learn-top select{padding:6px 9px}#learn h1{font-size:25px}#recordElapsed{font-size:19px}}
@media(max-width:550px){#home{gap:7px}.times-board .setting-row{font-size:13px}#timesGrid{gap:5px}.time-cell{padding:7px 4px}.time-cell strong{font-size:22px}.time-cell span{font-size:12px}.time-details{font-size:9px}#nextPrayer{font-size:12px}#prayerChoices button{font-size:20px;padding:10px 6px}#prayerChoices button.small-choice{font-size:13px}.home-links{gap:6px}.home-links button{font-size:12px;padding:6px}.surah-choice span{font-size:14px}.learn-top{gap:5px}.learn-top label{display:none}.learn-top select{font-size:13px}.learn-result{gap:7px}.learn-result label{font-size:12px}.learn-result input{width:75px}.learn-result button{font-size:12px}.learn-record-controls>label{font-size:12px}#learnText p,.learn-measure p{font-size:27px}.learn-text-area .setting-row{font-size:10px}.learn-record-controls button{font-size:12px;padding:8px}#learn .tempo-hint{font-size:11px}#learn h1{font-size:22px}}
#prayerChoices,#categories{align-content:stretch;grid-auto-rows:minmax(45px,1fr)}

#variants button.farz-choice{border:2px solid #204f40;background:#e3ebda;box-shadow:inset 5px 0 #204f40;font-weight:750}.farz-badge{display:inline-block;margin-left:16px;padding:5px 10px;border-radius:9px;background:#204f40;color:white;font-size:14px;vertical-align:middle}.time-cell.current-time{opacity:1;box-shadow:0 0 0 2px #204f40}

#prayerChoices .prayer-window{display:flex;flex-direction:column;gap:5px;margin-top:10px;font-size:clamp(12px,1.3vw,16px);line-height:1.35;font-weight:400;color:#536953}.prayer-window .window-hours{font-weight:650;font-variant-numeric:tabular-nums}.prayer-window-banner{padding:12px 16px;background:#e9eddf;border-radius:13px;font-size:16px;line-height:1.45;flex:none}#appearancePanel label:has(#showPrayerWindows){font-size:18px}@media(max-height:800px){#prayerChoices .prayer-window{font-size:12px;margin-top:7px;gap:3px}.prayer-window-banner{font-size:14px;padding:9px 12px}}@media(max-width:550px){#prayerChoices .prayer-window{font-size:11px;margin-top:6px;gap:2px}#appearancePanel label:has(#showPrayerWindows){font-size:16px}}
/* Primary names follow the selected language; traditional names stay secondary. */
#prayerChoices button[data-prayer-name]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0}#prayerChoices .prayer-primary{font-size:clamp(19px,2.3vw,29px);line-height:1.15;overflow-wrap:anywhere}#prayerChoices .prayer-traditional,.prayer-traditional{font-size:13px;font-weight:400;color:#6c7b6c;line-height:1.2}#prayerChoices .day-icon{font-size:26px;line-height:1;color:#b98333;margin-bottom:6px}.time-cell .time-primary{font-size:clamp(11px,1.25vw,15px);font-weight:650;line-height:1.15;overflow-wrap:anywhere}.time-cell .time-traditional{font-size:10px;line-height:1.15;opacity:.7;font-weight:400}.time-cell .time-icon{font-size:21px;color:#b98333;line-height:1}.time-cell.current-time .time-icon{color:#f6d088}.time-cell{gap:4px}.time-cell.current-time .time-traditional{color:#e4eddd}#chooseTraditional{margin-top:-10px}#prayerChoices .prayer-window{font-size:clamp(11px,1.2vw,15px);margin-top:7px}
/* Preparation and paginated purity explanations. */
#preparation{gap:16px}#preparation h1,#purityInfo h1{font-size:clamp(26px,3.8vw,40px)}#preparationRoute{font-size:16px}.preparation-intro{font-size:clamp(19px,2.2vw,26px);line-height:1.45;max-width:1100px}.preparation-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1;min-height:100px}.preparation-choices button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;text-align:left;padding:22px 28px;background:#e9eddf}.preparation-choices strong{font-size:clamp(25px,3vw,38px)}.preparation-choices span{font-size:18px;color:#617361}.purity-links{display:flex;gap:12px}.purity-links button{flex:1;font-size:17px;padding:12px 16px}.preparation-basis{font-size:13px;line-height:1.4;color:#617361}#preparation footer{align-items:center;justify-content:space-between;gap:20px}#preparation footer label{display:flex;align-items:center;gap:10px;font-size:16px}#preparation input{width:24px;height:24px;flex:none}#preparationReady{font-size:20px;min-width:35%}#preparationBack,#purityBack{font-size:15px;padding:9px 14px}#purityText{flex:1;min-height:110px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:24px}#purityText p,.purity-measure p{font-size:clamp(24px,3.4vw,35px);line-height:1.4;margin:0;overflow-wrap:anywhere;flex:none}.purity-measure{position:fixed;left:-10000px;top:0;visibility:hidden;display:flex;flex-direction:column;gap:24px}#puritySources{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;flex:none}#purityInfo footer{align-items:center;justify-content:space-between}#purityCount{font-size:14px}#washReturnBar{flex:none}#washReturn{font-size:14px;padding:8px 14px;background:#e9eddf;width:100%;text-align:left}#appearancePanel label:has(#showPreparation){font-size:18px}
@media(max-height:800px){#prayerChoices .prayer-primary{font-size:22px}#prayerChoices .day-icon{font-size:21px;margin-bottom:3px}#prayerChoices .prayer-traditional{font-size:11px}#prayerChoices .prayer-window{font-size:11px;margin-top:5px}#preparation{gap:10px}.preparation-intro{font-size:20px}.preparation-choices button{padding:16px 22px}.preparation-basis{font-size:12px}#preparation footer label{font-size:14px}.purity-links button{font-size:15px;padding:10px}#preparationReady{font-size:17px}#preparation h1,#purityInfo h1{font-size:28px}}
@media(max-width:550px){#prayerChoices .prayer-primary{font-size:18px}#prayerChoices .day-icon{display:none}#prayerChoices .prayer-traditional{font-size:10px}#prayerChoices .prayer-window{font-size:10px}#timesGrid .time-primary{font-size:11px}#timesGrid .time-traditional{font-size:9px}#timesGrid .time-icon{font-size:17px}.preparation-intro{font-size:17px}.preparation-choices{gap:10px}.preparation-choices button{padding:14px}.preparation-choices strong{font-size:23px}.preparation-choices span{font-size:14px}.purity-links{flex-direction:column;gap:6px}#preparation footer{flex-direction:column;align-items:stretch;gap:12px}#preparation footer button{min-height:48px}#preparationRoute{font-size:13px}#preparation h1,#purityInfo h1{font-size:25px}#purityText p,.purity-measure p{font-size:24px}#appearancePanel label:has(#showPreparation){font-size:16px}}
#homeShortcuts{display:flex;gap:10px;flex:none}#homeShortcuts button{flex:1;padding:10px 12px;font-size:14px;background:transparent;min-width:0}#prayerChoices{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
@media(orientation:portrait){#prayerChoices{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}#prayerChoices [data-prayer-name="Yatsı"]{grid-column:1/-1}#prayerChoices button[data-prayer-name]{position:relative;padding:10px 18px;gap:3px}#prayerChoices .day-icon{position:absolute;right:12px;top:9px;font-size:19px;margin:0}#prayerChoices .prayer-primary{font-size:23px}#prayerChoices .prayer-traditional{font-size:12px}#prayerChoices .prayer-window{font-size:12px;margin-top:4px;gap:3px}#timesGrid .time-icon{display:none}#timesGrid .time-primary{font-size:12px}#timesGrid .time-traditional{font-size:9px}#timesGrid .time-cell{gap:2px;padding:7px 5px}#timesGrid .time-cell strong{font-size:25px}}
@media(max-width:550px){#prayerChoices .prayer-primary{font-size:18px}#prayerChoices .prayer-traditional{font-size:10px}#prayerChoices .prayer-window{font-size:10px}#prayerChoices button[data-prayer-name]{padding:6px 8px}#homeShortcuts{gap:6px}#homeShortcuts button{font-size:11px;padding:8px 5px}}
@media(orientation:landscape){#prayerChoices{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}#prayerChoices button[data-prayer-name]{grid-column:span 2;padding:14px 12px}#prayerChoices [data-prayer-name="Akşam"],#prayerChoices [data-prayer-name="Yatsı"]{grid-column:span 3}}

#prayerChoices button.current-prayer{background:#e4ecdc;border:2px solid #7d9a72;box-shadow:inset 0 0 0 1px #d4e1c9}#prayerChoices button.current-prayer .prayer-primary{color:#204f40}

#startCountdown{border:1px solid #ccd7c2;background:#f6f3ea;color:#183c33;border-radius:26px;padding:34px;max-width:min(90vw,480px);width:100%;box-shadow:0 18px 80px #102c3340}#startCountdown::backdrop{background:#183c3399;backdrop-filter:blur(4px)}.countdown-content{display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}#countdownTitle{font-size:24px;line-height:1.3;margin:0}#countdownValue{font-size:clamp(100px,20vw,180px);font-weight:750;line-height:1.1;font-variant-numeric:tabular-nums}#cancelCountdown{padding:12px 24px;font-size:18px}#exactPrayer{justify-content:center}#exactPrayer>p{font-size:20px;max-width:45em}#exactPrayerChoices{display:grid;gap:14px}#exactPrayerChoices button{font-size:22px;font-weight:650;text-align:left;background:#e9eddf}#exactPrayerBack{align-self:flex-start}#reader:has(#pagebox [data-spoken=true]) #pacePlay:enabled{border-color:#69866a}

#refreshTimes{font-size:13px;padding:9px 12px;max-width:155px;line-height:1.3}#tempoSettings{font-size:12px;line-height:1.2}
.ort-dialog{border:1px solid #ccd7c2;background:#f6f3ea;color:#183c33;border-radius:24px;padding:24px;width:min(92vw,440px);box-shadow:0 18px 80px #102c3340}
.ort-dialog::backdrop{background:#183c3399;backdrop-filter:blur(4px)}
.ort-dialog h2{margin:0 0 16px;font-size:22px}
.ort-dialog label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-weight:600;font-size:14px;color:#617361}
.ort-dialog select{font:inherit;font-size:17px;color:#183c33;padding:12px;border-radius:14px;border:1px solid #cbd3c7;background:#fffcf5}
.ort-dialog .primary{width:100%;max-width:none;padding:14px;border-radius:16px;border:1px solid #204f40;font-size:17px}
.bald{display:flex;gap:6px;flex:none}
.bald-kachel{flex:1;min-width:0;border:1px dashed #cbd3c7;border-radius:14px;padding:7px 10px;display:flex;align-items:center;justify-content:center;gap:8px;color:#617361;background:#fffcf580}
.bald-kachel strong{color:#183c33;font-size:14px}
.bald-kachel small{display:none}
.bald-marke{order:1;font-size:10px;font-weight:700;letter-spacing:.3px;color:#204f40;background:#e9eddf;border-radius:999px;padding:2px 7px;white-space:nowrap}
/* Fokus beim Beten (fokus.js) */
.fokus-leiste{display:none}
body.fokus .fokus-leiste{display:flex;align-items:center;gap:10px;flex:none;min-height:36px}
.fokus-raus{width:36px;height:36px;border-radius:12px;border:1px solid #cbd3c7;background:#fffcf5;font-size:22px;line-height:1;color:#183c33;padding:0}
.fokus-stand{flex:1;font-size:13px;color:#617361}
.fokus-mehr{border:1px solid #cbd3c7;background:#fffcf5;border-radius:999px;padding:6px 12px;font-size:13px;color:#183c33}
body.fokus:not(.fokus-mehr-offen) header,
body.fokus:not(.fokus-mehr-offen) #reader>.meta,
body.fokus:not(.fokus-mehr-offen) .section-tempo,
body.fokus:not(.fokus-mehr-offen) #activeTempo,
body.fokus:not(.fokus-mehr-offen) #tempoSettings,
body.fokus:not(.fokus-mehr-offen) #paceLabel{display:none!important}
body.fokus:not(.fokus-mehr-offen) .app{gap:6px;padding-top:max(8px,env(safe-area-inset-top))}
body.fokus:not(.fokus-mehr-offen) .pacing{min-height:0}
body.fokus:not(.fokus-mehr-offen) #pacePlay{padding:4px 10px;font-size:12px}
body.fokus.fokus-mehr-offen .fokus-stand{visibility:hidden}
/* Kurzanleitung (guide.js) */
.g-rahmen{position:fixed;z-index:60;border-radius:24px;box-shadow:0 0 0 200vmax #102c33b3;transition:all .35s ease;pointer-events:none}
.g-karte{position:fixed;z-index:61;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92vw,460px);background:#f6f3ea;color:#183c33;border-radius:24px;padding:20px 20px 16px;box-shadow:0 18px 60px #102c3366}
.g-karte.oben{bottom:auto;top:max(16px,env(safe-area-inset-top))}
.g-karte h2{margin:0 0 6px;font-size:22px}
.g-karte>p{margin:0 0 14px;line-height:1.45;font-size:16px;color:#36574c}
.g-sprachen{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.g-sprachen button,.g-felder select{font:inherit;font-size:16px;padding:11px 12px;border-radius:14px;border:1px solid #cbd3c7;background:#fffcf5;color:#183c33}
.g-sprachen button.aktiv{background:#204f40;color:#fff;border-color:#204f40;font-weight:700}
.g-felder{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.g-schrift{margin-bottom:14px}
.g-probe{margin:0 0 8px;font-weight:800;line-height:1.15;overflow-wrap:anywhere;max-height:30vh;overflow:hidden}
.g-schrift input{width:100%;accent-color:#204f40}
.g-hinweis{background:#e9eddf;border-radius:14px;padding:10px 14px;margin-bottom:14px;font-size:15px}
.g-hinweis p{margin:4px 0}
.g-fuss{display:flex;align-items:center;gap:10px}
.g-fuss .primary{flex:none;padding:12px 20px;border-radius:16px;border:1px solid #204f40;font-size:16px}
.g-skip{background:none;border:0;color:#617361;font-size:15px;padding:8px 4px}
.g-punkte{flex:1;display:flex;justify-content:center;gap:6px}
.g-punkte i{width:7px;height:7px;border-radius:50%;background:#cbd3c7}
.g-punkte i.an{background:#204f40;width:18px;border-radius:4px}
[dir=rtl] .fokus-raus{transform:scaleX(-1)}
.legal-link{margin-top:auto;align-self:center;font-size:13px;color:#647567;text-decoration:none;padding:4px 8px}.legal-link+#settingsClose{margin-top:0}
/* Große Schrift / kleines Handy: Startseite scrollt, statt die Gebetskacheln auf 0 zu quetschen */
@media(orientation:portrait){#home{overflow-y:auto;scrollbar-width:none}#home::-webkit-scrollbar{display:none}#home>*{flex-shrink:0}#prayerChoices{flex:1 0 auto;grid-template-rows:repeat(3,auto);align-content:stretch}}
#prayerChoices .prayer-primary,.time-cell .time-primary{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
#homeShortcuts button{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
/* Kleine Handys / Querformat / große Schrift: Ansichten (außer Leseansicht) scrollen, statt Inhalte zu quetschen oder zu überdecken */
#choose,#info,#settings,#exactPrayer,#plan,#preparation,#purityInfo,#done{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
#choose::-webkit-scrollbar,#info::-webkit-scrollbar,#settings::-webkit-scrollbar,#exactPrayer::-webkit-scrollbar,#plan::-webkit-scrollbar,#preparation::-webkit-scrollbar,#purityInfo::-webkit-scrollbar,#done::-webkit-scrollbar{display:none}
#choose>*,#info>*,#settings>*,#exactPrayer>*,#plan>*,#preparation>*,#purityInfo>*,#done>*{flex-shrink:0!important}
#settingsClose{position:sticky;bottom:0;z-index:2;box-shadow:0 -10px 14px var(--paper)}
#home{overflow-y:auto}
@media(orientation:landscape) and (max-height:500px){#home{display:flex!important;flex-direction:column;scrollbar-width:none}#home::-webkit-scrollbar{display:none}#home>*{flex-shrink:0}#prayerChoices{flex:1 0 auto;grid-auto-rows:auto}#timesGrid .time-cell{padding:6px 4px;gap:2px}#timesGrid .time-cell strong{font-size:22px}#timesGrid .time-primary{font-size:12px}#timesGrid .time-traditional{font-size:10px}#prayerChoices button{padding:8px 6px}}
@media(max-width:550px){#tempoPanel .tempo-editor-controls{display:flex!important;flex-direction:column;gap:6px}#tempoPanel .tempo-editor-controls>*{grid-column:auto!important;grid-row:auto!important}#tempoPanel .tempo-editor-controls{align-items:stretch!important}#tempoPanel .tempo-editor-controls>.setting-row:not(.scope-row){flex-direction:row!important;align-items:center!important;justify-content:space-between!important}#tempoPanel .scope-row{align-items:stretch!important}#tempoPanel #learnSectionTempo{align-self:flex-start}#tempoPanel{flex:none!important;grid-template-rows:auto!important}#tempoPanel .demo{min-height:240px}}
.preparation-choices button{min-width:0}.preparation-choices strong,.preparation-choices span{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;max-width:100%}
#preparation .preparation-choices{flex:1 0 auto}
@media(max-width:400px){.preparation-choices{grid-template-columns:minmax(0,1fr)}.preparation-choices button{padding:12px 14px;gap:4px}}
/* Leseansicht: großer Start-Button über Zurück/Weiter, „Weiter“ ohne „Ja“ */
#next{justify-content:center}
#reader .pacing{flex-wrap:wrap;row-gap:8px}
#reader #pacePlay{flex:1 0 100%;order:-1;min-height:60px;padding:12px 20px;font-size:20px;font-weight:800;text-align:center;border-radius:18px;border:2px solid #7d9a72;background:#e4ecdc;color:#183c33}
#reader #pacePlay::before{content:'▶  '}
#reader #pacePlay[aria-pressed=true]{background:#fffcf5;border-color:#cbd3c7}
#reader #pacePlay[aria-pressed=true]::before{content:'❚❚  '}
#reader #pacePlay:disabled{opacity:.4}
body.fokus:not(.fokus-mehr-offen) #reader #pacePlay{padding:10px 16px;font-size:19px}
@media(max-width:550px){#reader #pacePlay,body.fokus:not(.fokus-mehr-offen) #reader #pacePlay{min-height:52px;font-size:18px}}
@media(orientation:landscape) and (max-height:650px){#reader #pacePlay,body.fokus:not(.fokus-mehr-offen) #reader #pacePlay{min-height:44px;font-size:16px;padding:6px 14px}}
/* Kurzanleitung: Tempo-Beispiel und Stimm-Probe */
.g-tempo{margin-bottom:14px}
.g-tempo-text{background:#fffcf5;border:1px solid #e0e4d8;border-radius:16px;padding:12px 14px;font-size:24px;font-weight:650;line-height:1.4;min-height:3.2em;margin-bottom:10px;overflow-wrap:anywhere}
.g-tempo input{width:100%;accent-color:#204f40}
.g-tempo-skala{display:flex;justify-content:space-between;font-size:13px;color:#617361}
.g-tempo-wert{text-align:center;font-size:14px;font-weight:700;margin:2px 0 8px}
.g-wahl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.g-wahl button{font-size:15px;padding:9px 10px;border-radius:12px;text-align:center}
.g-wahl button.aktiv{background:#204f40;color:#fff;border-color:#204f40}
.g-stimme{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:14px}
.g-mic{width:84px;height:84px;border-radius:50%;padding:0;font-size:34px;border:2px solid #cbd3c7;background:#fffcf5;display:flex;align-items:center;justify-content:center}
.g-mic.hoert{border-color:#7d9a72;background:#e4ecdc;animation:g-puls 1.4s ease-in-out infinite}
.g-mic.ok{border-color:#204f40;background:#204f40;color:#fff;animation:none}
@keyframes g-puls{50%{box-shadow:0 0 0 10px #7d9a7233}}
.g-stimme-status{font-size:15px;color:#36574c;text-align:center;min-height:1.4em;margin:0}
.g-stimme-hinweis{font-size:13px;color:#617361;text-align:center;margin:0}
@media(max-height:700px){.g-tempo-text{font-size:20px}.g-mic{width:64px;height:64px;font-size:26px}}
.g-punkte{min-width:0}
@media(max-width:360px){.g-fuss{gap:6px}.g-punkte{gap:4px}.g-punkte i{width:5px;height:5px}.g-punkte i.an{width:12px}.g-skip{font-size:14px}.g-fuss .primary{padding:11px 14px}}
/* Kaza-Zähler: ruhige Karten, große Zahl, alles auf einem Bildschirm */
#kaza{gap:12px}
.kaza-top{display:flex;align-items:center;justify-content:space-between;flex:none}
.kaza-top h1{font-size:32px}
.kaza-icon,.kaza-btn{width:44px;height:44px;padding:0;display:grid;place-items:center;flex:none;transition:transform .15s,background .2s,opacity .2s}
.kaza-icon{border-radius:50%;background:#fffdf8;border:1px solid rgb(32 61 52/10%)}
.kaza-icon svg,.kaza-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.kaza-hero{flex:none;background:linear-gradient(155deg,#e6eedf,#f2eee1);border-radius:24px;padding:18px 20px}
#kazaStats{display:grid;gap:10px}
.kaza-big{display:flex;align-items:baseline;gap:10px}
.kaza-big strong{font-size:52px;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.kaza-big span{font-size:17px;color:#476253}
.kaza-bar{height:6px;border-radius:99px;background:rgb(32 61 52/10%);overflow:hidden}
.kaza-bar div{height:100%;border-radius:inherit;background:#315c49;transition:width .6s cubic-bezier(.2,.8,.2,1)}
#kazaSub,.kaza-hint{font-size:14px;color:#5f6f62}
#kazaEmpty{display:grid;gap:8px}
#kazaEmpty strong{font-size:21px;line-height:1.25}
#kazaEmpty p{font-size:14px;color:#5f6f62}
.kaza-empty-actions{display:flex;gap:8px;margin-top:4px}
.kaza-empty-actions button{flex:1;padding:12px 10px;font-size:15px;border-radius:14px}
#kazaList{list-style:none;margin:0;padding:0;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;max-height:450px}
.kaza-row{flex:1 1 0;min-height:46px;max-height:68px;display:flex;align-items:center;gap:10px;padding:0 8px 0 16px;background:#fffdf8;border:1px solid rgb(32 61 52/6%);border-radius:18px;box-shadow:0 4px 18px rgb(32 61 52/5%)}
.kaza-name{flex:1;min-width:0}
.kaza-name strong{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kaza-name small{font-size:12px;color:#6a7969}
.kaza-count{text-align:end;font-variant-numeric:tabular-nums;min-width:52px}
.kaza-count strong{display:block;font-size:22px;line-height:1.1}
.kaza-count small{font-size:11px;color:#6a7969}
.kaza-btn{border:0;border-radius:14px;background:#e9efe3;color:#204f40}
.kaza-btn.check{background:#204f40;color:#fff}
.kaza-btn:active{transform:scale(.92)}
.kaza-btn:disabled{opacity:.25}
.kaza-row input{width:84px;padding:10px 6px;text-align:center;font:inherit;font-size:20px;font-variant-numeric:tabular-nums;border:1px solid rgb(32 61 52/15%);border-radius:12px;background:#fff;color:inherit}
.kaza-row.is-zero .kaza-name,.kaza-row.is-zero .kaza-count{opacity:.45}
.kaza-row.pop .kaza-count strong{animation:kzpop .5s cubic-bezier(.2,.8,.2,1)}
.kaza-row.pop{animation:kzglow .7s}
@keyframes kzpop{35%{transform:translateY(-4px) scale(1.08);color:#315c49}}
@keyframes kzglow{30%{background:#eef4e8}}
.kaza-foot{flex:none;display:flex;justify-content:space-between;gap:6px}
.kaza-foot button{padding:8px 4px;color:#315c49;font-weight:600}
.kaza-foot button.active{color:#fff;background:#204f40;padding:8px 14px;border-radius:12px}
.kaza-local{flex:none;text-align:center;font-size:12px;color:#7a877b;margin-top:-6px}
.kaza-toast{position:fixed;left:50%;width:max-content;bottom:max(20px,env(safe-area-inset-bottom));z-index:9;display:flex;align-items:center;gap:14px;max-width:calc(100% - 32px);padding:10px 10px 10px 18px;border-radius:18px;background:#183c33;color:#fff;font-size:15px;box-shadow:0 10px 30px rgb(24 60 51/25%);opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .25s,transform .35s cubic-bezier(.2,.8,.2,1)}
.kaza-toast.show{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.kaza-toast button{padding:8px 12px;border:0;border-radius:12px;background:rgb(255 255 255/14%);color:#fff;font-size:14px;font-weight:700;white-space:nowrap}
.kaza-sheet{border:0;border-radius:24px;padding:22px 20px 18px;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);background:#fffdf8;color:var(--ink);box-shadow:0 20px 60px rgb(24 60 51/25%)}
.kaza-sheet::backdrop{background:rgb(24 60 51/35%)}
.kaza-sheet[open]{display:flex;flex-direction:column;gap:12px}
.kaza-sheet h2{margin:0;font-size:22px}
.kaza-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kaza-fields label{display:grid;gap:4px;font-size:13px;color:#5f6f62}
.kaza-sheet input[type=number]{width:100%;padding:10px 12px;font:inherit;font-size:20px;border:1px solid rgb(32 61 52/15%);border-radius:12px;background:#fff;color:inherit;font-variant-numeric:tabular-nums}
.kaza-label{font-size:14px;font-weight:600}
.kaza-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.kaza-chips button{padding:10px 2px;font-size:13px;border-radius:12px}
.kaza-chips button[aria-pressed=true]{background:#204f40;border-color:#204f40;color:#fff}
.kaza-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.kaza-line input[type=number]{width:72px;flex:none}
.kaza-line input[type=checkbox]{width:22px;height:22px;accent-color:#204f40}
.kaza-preview{padding:12px 14px;border-radius:14px;background:#eef3e8;font-weight:700;font-variant-numeric:tabular-nums}
.kaza-sheet-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.kaza-sheet-actions button{padding:11px 16px;border-radius:14px;font-size:15px}
#kazaInfoList{margin:0;padding-inline-start:20px;display:grid;gap:8px;font-size:15px;line-height:1.45}
#kazaSource{font-size:13px;color:#5f6f62}
#kazaCode{width:100%;font:13px ui-monospace,monospace;padding:10px;border-radius:12px;border:1px solid rgb(32 61 52/15%);resize:none;word-break:break-all}
.kaza-kachel{cursor:pointer;border-style:solid;background:#fffdf8;color:#183c33}
@media(max-height:700px){.kaza-top h1{font-size:26px}.kaza-hero{padding:14px 16px}.kaza-big strong{font-size:40px}#kazaList{gap:6px}.kaza-local{display:none}}
@media(prefers-reduced-motion:reduce){.kaza-row.pop,.kaza-row.pop .kaza-count strong{animation:none}.kaza-toast,.kaza-bar div{transition:none}}

#formatButton{margin-left:auto;margin-right:8px;padding:8px 16px;border:1px solid #cbd3c7;border-radius:16px;font-size:14px;font-weight:700;text-decoration:none}.app:has(#home[hidden]) #formatButton{display:none}@media(orientation:landscape) and (max-height:650px){#formatButton{padding:5px 12px}}
#formatButton.neu{display:inline-flex;align-items:center;gap:8px;background:#204f40;color:#fff;border-color:#204f40;box-shadow:0 0 0 4px rgba(189,133,53,.22)}#formatButton .neu-marke{font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:#bd8535;color:#fff;border-radius:8px;padding:2px 6px}
