.practice-dice{flex:none!important;width:38px;min-width:38px;min-height:36px;padding:3px;border:0;background:#f1f8f2;border-radius:12px;font-size:25px;line-height:1;cursor:pointer}.practice-dice:active{transform:scale(.94)}.practice-dice:focus-visible{outline:3px solid #337b5a;outline-offset:2px}.home-heading .practice-dice{align-self:center}.detail-top .practice-dice{order:1}.detail-top>div{margin-left:auto;order:2}
#answerList .answer-button{max-width:none!important}.answers.word{width:100%!important;max-width:540px!important;box-sizing:border-box}.flashcard.flipped{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.flashcard.flipped .flash-art{flex:0 1 43%;width:100%;height:43%}.flashcard.flipped .flash-answer{flex:none;padding:0 8px;align-self:center}.flashcard.flipped .flash-flip{flex:none}.flashcard.flipped .flash-tools{position:absolute}
#answerList{display:flex!important;flex-direction:column;align-items:stretch;gap:8px;width:min(100%,520px);margin:8px auto!important}#answerList .answer-button{width:100%;min-height:62px;padding:7px 14px;font-size:32px!important}#answerList .answer-hanzi{font-size:38px}#answerList .answer-py{font-size:17px}.answers.word{display:flex!important;flex-direction:column;align-items:stretch;gap:9px;width:min(100%,540px);margin:auto}.answers.word .word-answer{width:100%;min-height:68px;padding:8px}.answers.word .hanzi{font-size:38px!important}.answers.word rt{font-size:17px!important}
.flashcard .chinese-line button.hanzi{font-size:clamp(34px,10vw,52px)}.flashcard .chinese-line rt{font-size:18px}.flash-answer .meaning{font-size:16px;line-height:1.35}.flashcard:not(.flipped) .flash-answer{display:none}.flashcard:not(.flipped){grid-template-rows:minmax(0,1fr) 32px}.flashcard.flipped{grid-template-rows:minmax(70px,.85fr) minmax(100px,1.15fr) 32px}.flashcard.flipped .flash-answer{align-self:center}.flash-art{min-height:0}.flash-art img{object-fit:contain;max-height:100%}.flash-answer{min-width:0}.flash-answer .word-unit{flex-wrap:wrap;justify-content:center}
#next{min-height:50px;margin-top:10px!important}#reviewView .sentence-list,#detailSentences{height:auto!important;grid-template-rows:none!important;align-content:start!important}#reviewView .sentence-card,#detail .sentence-card{height:auto!important;min-height:100px!important;align-self:start!important}.sentence-card .sentence-content{padding:10px 0}.sentence-card .sentence-gloss{margin-top:5px!important}
@media(max-width:599px) and (min-height:501px){
 #detail .detail-grid,#reviewView .review-grid{grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important;overflow:auto!important;scrollbar-width:thin}
 #detail .detail-character,#reviewView .review-character{height:auto!important;grid-template-rows:68px auto!important;gap:6px!important}
 body[data-view=detail] #detailTitle,body[data-view=detail] #detailTitle .hero-reading{height:68px!important}#reviewView .open-character .word-hanzi,#detail #detailTitle .word-hanzi{font-size:52px!important}
 #detailWords,#reviewView .word-list{height:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
 #detailWords .word-card,#reviewView .word-card{height:auto!important;min-height:66px!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 26px;grid-template-rows:auto auto;align-content:center;align-items:center;gap:0 6px!important;padding:4px 7px!important;text-align:center}
 .word-card .word-photo{grid-column:1;grid-row:1/span 2;width:54px;height:54px;padding:0!important}.word-card .word-photo img{width:54px!important;height:54px!important;object-fit:contain}.word-card .word-line{grid-column:2;grid-row:1}.word-card .word-full-audio{grid-column:3;grid-row:1/span 2}.word-card .nl-help{grid-column:2;grid-row:2;font-size:12px!important}.word-card .nl-help:empty{display:none}
 #detail .word-card .word-hanzi,#reviewView .word-card .word-hanzi{font-size:32px!important}#detailWords .word-card rt,#reviewView .word-card rt{font-size:16px!important}#detail .detail-expressions{height:auto!important}#detailSentences,#reviewView .sentence-list{gap:6px!important}#detail .sentence-card,#reviewView .sentence-card{grid-template-columns:55px minmax(0,1fr);min-height:82px!important;padding:5px!important;gap:6px}#detail .sentence-picture img,#reviewView .sentence-picture img{width:55px!important;height:55px!important}#detail .sentence-words .word-hanzi,#reviewView .sentence-words .word-hanzi{font-size:25px!important}.sentence-card .sentence-content{padding:3px 0}#detail .sentence-words rt,#reviewView .sentence-words rt{font-size:14px!important}#detail .sentence-gloss,#reviewView .sentence-gloss{font-size:12px!important}
 #reviewView{overflow:auto!important}#reviewView .review-grid{height:auto!important;overflow:visible!important}#next{flex-shrink:0;min-height:50px}#questionTitle{font-size:27px}#questionView{overflow:auto!important}#questionBody .hero-reading{max-height:140px}
}
@media(min-width:600px) and (min-height:501px){#detail .detail-grid,#reviewView .review-grid{grid-template-rows:minmax(0,1fr) auto!important}#detailSentences,#reviewView .sentence-list{max-height:360px}.sentence-card .sentence-content{padding:7px 0}}
@media(min-width:1000px){#reviewView .review-grid{grid-template-rows:1fr!important}.sentence-list{align-self:start}#reviewView .sentence-card,#detail .sentence-card{min-height:140px!important}.sentence-card .sentence-content{padding:12px 0}}
@media(max-height:500px) and (min-width:500px){.practice-dice{width:31px;min-width:31px;min-height:28px;font-size:21px}.flashcard:not(.flipped),.flashcard.flipped{grid-template-columns:1fr 1.15fr;grid-template-rows:minmax(0,1fr) 28px}.flashcard .chinese-line button.hanzi{font-size:32px}.flashcard .chinese-line rt{font-size:15px}.flash-answer .meaning{font-size:13px}#answerList{gap:4px;margin:0 auto!important}#answerList .answer-button{min-height:37px;padding:2px 9px;font-size:24px!important}#answerList .answer-hanzi{font-size:27px}#answerList .answer-py{font-size:12px}#questionView:has(#answerList:not(:empty)){display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;gap:3px 10px}#questionView:has(#answerList:not(:empty)) #questionTitle{grid-column:1/-1;margin:0;font-size:19px}#questionView:has(#answerList:not(:empty)) #questionBody{grid-column:1;grid-row:2}#questionView:has(#answerList:not(:empty)) #answerList{grid-column:2;grid-row:2}#questionFeedback:empty,#questionHint:empty{display:none}.answers.word{gap:4px}.answers.word .word-answer{min-height:38px;padding:2px}.answers.word .hanzi{font-size:27px!important}.answers.word rt{font-size:12px!important}#question:has(.answers.word){display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;align-items:center}#next{min-height:36px}#reviewView .sentence-card,#detail .sentence-card{min-height:70px!important}.sentence-card .sentence-content{padding:3px 0}}

@media(max-width:599px) and (min-height:501px){#detailWords .word-card,#reviewView .word-card{height:68px!important;min-height:68px!important;grid-template-rows:40px 16px}.word-card .word-photo{min-height:0!important}#reviewView .sentence-card,#detail .sentence-card{margin:0!important}#next{min-height:50px!important;margin-bottom:max(12px,env(safe-area-inset-bottom))!important}}
@media(max-height:500px) and (min-width:500px){.flashcard.flipped{display:grid;gap:6px;grid-template-columns:1fr 1.15fr;grid-template-rows:minmax(0,1fr) 28px}.flashcard.flipped .flash-art{height:100%;width:100%}.flashcard.flipped .flash-answer{align-self:center}}

.flashcard.flipped .flash-answer{height:auto!important;min-height:0!important}.flashcard.flipped .flash-art{min-height:0!important}

@media(min-height:501px){.flashcard .chinese-line button.hanzi{font-size:clamp(38px,13vw,54px)}}

#answerList{max-width:520px!important;width:100%!important}#answerList .answer-button{width:100%!important;flex-basis:auto!important}
@media(max-width:350px) and (min-height:501px){#preferencesDialog #preferencesContent{gap:4px}#preferencesDialog #compactPractice{gap:5px}#preferencesDialog .setting-section-label{margin:2px 0}#preferencesDialog .scope-panel{gap:5px}}

@media(max-width:350px) and (min-height:501px){#preferencesDialog{padding:10px!important}}

#questionView{width:100%!important;max-width:none!important;align-self:stretch!important}#answerList{align-self:center;flex-shrink:0}#play:has(#next:not([hidden])){padding-bottom:8px}
@media(max-width:599px) and (min-height:501px){#preferencesDialog #timerBar:not([hidden]){display:flex!important;flex-wrap:wrap;align-items:center;gap:4px;padding:4px!important;margin:0!important;min-height:0}#preferencesDialog #timerBar .timer-summary{display:none}#preferencesDialog #timerBar button{min-height:30px;padding:3px 6px;font-size:11px}#preferencesDialog #timerBar .timer-copy{font-size:11px}#preferencesDialog #liveScore{display:none!important}}

@media(max-width:350px) and (min-height:501px){#preferencesDialog>.dialog-top{height:36px;min-height:36px;margin-bottom:4px}#preferencesDialog>.dialog-top button{min-height:34px;height:34px}#preferencesDialog>.settings-page-tabs{margin:3px 0 6px}#preferencesDialog #timerBar:not([hidden]){display:grid!important;grid-template-columns:1fr 1fr 28px;gap:3px}#preferencesDialog #timerBar>span{font-size:10px;line-height:1.2}#preferencesDialog #remaining{font-size:17px}#preferencesDialog #timerBar button{font-size:10px;padding:2px;min-width:0}#preferencesDialog .scope-panel button{min-height:34px!important;padding:3px!important;font-size:10px!important}#preferencesDialog .scope-panel .setting-icon{width:18px;height:18px}#preferencesDialog .time-visibility{font-size:10px;min-height:22px}#preferencesDialog #compactPractice{gap:4px}}
