/* Give the question the first screen. Summary pages retain their roomy layout. */
.question-choice-media{min-width:0}
.question-choice-media.has-figure{display:grid;gap:16px;align-items:start}
.question-choice-media.figure-right{grid-template-columns:minmax(0,1fr) minmax(150px,34%);column-gap:20px;align-items:center}
.question-choice-media.figure-right>.option-list{grid-column:1;grid-row:1;min-width:0}
.question-choice-media.figure-right>.question-figure{grid-column:2;grid-row:1}
.study-screen .question-choice-media>.question-figure{min-width:0;margin:0;padding:12px}
.question-figure img+img{margin-top:12px}
.question-choice-media.figure-right .figure-caption{flex-wrap:wrap;line-height:1.6}
@media(max-width:640px){
  .question-choice-media.figure-right{grid-template-columns:minmax(0,1fr)}
  .question-choice-media.figure-right>.question-figure{grid-column:1;grid-row:1}
  .question-choice-media.figure-right>.option-list{grid-column:1;grid-row:2}
}
.main.study-screen{padding-top:14px;padding-bottom:28px}
.study-screen .topbar{margin-bottom:8px;gap:8px;min-height:28px}
.study-screen .avatar{display:none}
.study-heading{display:flex;align-items:baseline;gap:12px;min-width:0;margin:0 0 8px}
.study-heading h1{margin:0;flex-shrink:0;font-size:18px;line-height:1.5;letter-spacing:-.6px}
.study-bank-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#7b8c79}
.study-screen .stats-strip{gap:0;padding:6px 0;margin-bottom:10px;border:1px solid var(--line);background:#fff;border-radius:10px}
.study-screen .stat-card{min-width:0;padding:1px 12px;border:0;border-right:1px solid var(--line);border-radius:0;background:none;gap:0}
.study-screen .stat-card:last-child{border-right:0}
.study-screen .stat-icon{display:none}
.study-screen .stat-card>div:last-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px}
.study-screen .stat-card small{font-size:11px;line-height:1.5;margin:0}
.study-screen .stat-card strong{font-size:16px;line-height:1.5;letter-spacing:0}
.study-screen .stat-card em{font-size:10px}
.study-screen .question-card{overflow:visible}
.study-screen .question-toolbar{padding:8px 18px;border-radius:var(--radius) var(--radius) 0 0;min-height:38px}
.study-screen .mode-label{font-size:11px}
.study-screen .question-content{padding:12px 20px 14px}
.study-screen .solve-timer{padding:5px 10px;gap:12px;margin:0 0 9px;border-radius:8px;min-height:38px}
.study-screen .solve-timer>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.study-screen .solve-timer strong{font-size:21px;line-height:1.3}
.study-screen .timer-label{font-size:10px}
.study-screen .timer-history{display:flex;gap:10px;flex-wrap:wrap;font-size:10px;line-height:1.5}
.study-screen .timer-pause{font-size:10px;padding:4px 9px;min-height:28px}
.study-screen .question-meta{margin-bottom:5px}
.study-screen .q-type{padding:1px 6px}
.study-screen .question-heading{font-size:20px;line-height:1.55;margin-bottom:8px}
.study-screen .question-hint{margin-bottom:9px;font-size:11px}
.study-screen .option-list{gap:7px}
.study-screen .option{padding:9px 12px;gap:10px;border-radius:9px;min-height:44px;line-height:1.65}
.study-screen .option-text{font-size:15px;line-height:1.65}
.study-screen .option-number{width:25px;height:25px;flex-basis:25px;margin:0}
.study-screen .question-footer{position:sticky;bottom:10px;z-index:15;padding:10px 18px;background:#fffffff7;border-radius:0 0 var(--radius) var(--radius);box-shadow:0 -3px 12px #223b3609;backdrop-filter:blur(8px);gap:10px}
.study-screen .question-footer .primary,.study-screen .question-footer .secondary{padding:8px 14px;min-height:38px}
.study-screen .question-next-actions{gap:14px}
.study-screen .confidence-check{font-size:13px}
.study-screen .footer-center{display:flex}
.study-screen .passage-card{padding:14px 16px;margin:12px 0 16px}
.study-screen .passage-heading{padding-bottom:8px;margin-bottom:10px}
.study-screen .figure-button{margin-bottom:12px}
.study-screen .feedback{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 13px;margin-top:10px}
.study-screen .feedback-title{font-size:13px;line-height:1.6}
.study-screen .feedback-subtitle{grid-column:1/-1;margin:0;font-size:11px;line-height:1.6}
.study-screen .time-result{grid-column:2;grid-row:1;margin:0;font-size:11px;line-height:1.9}
.study-screen .correct-answer,.study-screen .explanation,.study-screen .no-explanation{grid-column:1/-1;margin-top:4px}
.study-screen .explanation{padding-top:6px}
.study-screen .rail-card{padding:14px 15px;margin-bottom:12px}
.study-screen .rail-card h3{margin-bottom:10px}
.study-screen .rail-rule{margin:10px 0}
.study-screen .encouragement{display:none}
.study-screen .main-footer{margin-top:14px}
@container workspace (max-width:980px){
  .study-screen .footer-center{display:none}
}
@container workspace (max-width:540px){
  .study-screen .stat-card{padding:3px 10px;border:0}
  .study-screen .stat-card:nth-child(odd){border-right:1px solid var(--line)}
  .study-screen .question-heading{font-size:18px}
  .study-screen .question-content{padding:12px 15px 14px}
  .study-screen .question-toolbar,.study-screen .question-footer{padding-left:15px;padding-right:15px}
  .study-screen .solve-timer{gap:7px 12px}
  .study-screen .timer-history{font-size:9px;gap:8px}
  .study-screen .option-text{font-size:14px}
  .study-screen .question-next-actions{gap:10px}
  .study-screen .confidence-check{font-size:12px}
  .study-screen .feedback{grid-template-columns:minmax(0,1fr)}
  .study-screen .time-result{grid-column:1;grid-row:auto}
}
@media(max-width:900px){
  .main.study-screen{padding-bottom:calc(106px + env(safe-area-inset-bottom))}
  .study-screen .question-footer{bottom:calc(82px + env(safe-area-inset-bottom))}
  .study-screen .topbar .mobile-brand{flex-basis:auto}
  .study-screen .topbar .top-status{flex:1 1 auto;width:auto;justify-content:flex-end}
}
@media(max-width:600px){
  .main.study-screen{padding-top:10px}
  .study-screen .topbar .top-status{font-size:0;flex:0 1 auto;gap:4px;max-width:50%}
  .study-screen .top-status .offline-mini{font-size:10px;padding:5px 6px}
  .study-screen .mobile-brand{font-size:15px;gap:5px}
  .study-screen .mobile-brand .brand-logo{width:25px;height:25px;font-size:18px}
  .study-heading{gap:9px}
  .study-heading h1{font-size:16px}
  .study-bank-name{font-size:11px}
  .study-screen .question-toolbar{gap:4px;padding-top:7px;padding-bottom:7px}
  .study-screen .question-footer{gap:8px}
  .study-screen .question-footer .primary,.study-screen .question-footer .secondary{font-size:11px;padding:8px 10px}
}
@media(max-width:420px){
  .study-screen .question-footer{gap:6px;padding:9px 10px}
  .study-screen .question-footer>button[data-action="prev"]{font-size:0;min-width:34px;padding:8px}
  .study-screen .question-next-actions{gap:8px}
  .study-screen .confidence-check{font-size:11px;gap:5px}
}
