.study-strip{background:#1b3033;border-bottom:1px solid #526965}
.study-strip-inner{display:flex;align-items:center;gap:10px;min-height:56px;padding-block:7px;flex-wrap:wrap}
.study-strip .secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px}
#open-review{color:#cbe9dd;border-color:#6c9286}
#due-count{min-width:2ch;text-align:center;color:#ffd09b;font-variant-numeric:tabular-nums}
#study-summary{margin-right:auto}
#pause-status{font-size:12px;color:var(--amber)}
body[data-paused=true] .cell-corners{animation-play-state:paused}
body[data-paused=true] #field{pointer-events:none}
#review-dialog,#backup-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.study-body{display:grid;gap:15px;overflow-wrap:anywhere}
.study-body h3{font-size:18px}
.study-settings{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:10px}
.study-settings label{display:grid;gap:5px;font-size:12px;color:var(--dim);min-width:0}
.study-settings select{width:100%;min-height:44px;border:1px solid var(--edge);border-radius:4px;background:#223839;color:var(--text);font:inherit;padding:7px}
select:focus-visible,input[type=file]:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.study-body :is(.cta,.secondary){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;white-space:normal}
#review-idle{display:grid;justify-items:start;gap:14px}
.review-progress{display:flex;gap:15px;align-items:center;font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
.review-progress progress{flex:1;min-width:50px;height:8px;accent-color:var(--mint)}
.review-question-head{display:flex;justify-content:space-between;align-items:center;margin-top:14px;min-height:42px}
#review-question{font:700 32px/1.2 var(--press),"Segoe UI",sans-serif;min-height:40px;margin:8px 0 18px;overflow-wrap:anywhere}
#review-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
#review-choices .choice{min-height:60px;align-items:center}
#review-feedback{min-height:44px;margin-top:12px;font-size:14px;color:var(--mint)}
#review-feedback[data-correct=false]{color:var(--red)}
#review-result-stats{justify-content:flex-start;gap:32px;padding-block:16px;margin-bottom:12px}
#review-result-note{min-height:20px}
#review-error,#backup-status[data-error=true]{color:var(--red);font-size:13px}
.backup-export{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--edge);flex-wrap:wrap}
.backup-import{display:grid;gap:8px}
.backup-import>label{font-size:14px;font-weight:700}
.backup-import input{max-width:100%;min-height:44px;font:inherit;font-size:13px}
.backup-import input::file-selector-button{min-height:40px;padding:7px 12px;margin-right:10px;background:#29453f;color:var(--text);border:1px solid var(--edge);border-radius:4px;cursor:pointer}
#backup-preview{border-top:1px solid var(--edge);padding-top:15px}
#backup-preview h3{margin-bottom:8px}
.backup-strategy{display:flex;gap:18px;flex-wrap:wrap;border:0;padding:12px 0;margin:0;font-size:13px}
.backup-strategy legend{padding:0;font-weight:700}
.backup-strategy label{display:flex;align-items:center;gap:6px;min-height:38px}
.backup-strategy input{accent-color:var(--mint);width:18px;height:18px}
#backup-preview-stats{padding-block:12px;gap:12px;flex-wrap:wrap}
#backup-conflicts,#backup-status{font-size:13px;min-height:20px;margin-top:10px}
#backup-conflicts{color:var(--amber)}
#backup-match-notice{margin-top:12px}
#backup-before:disabled,#backup-commit:disabled,#review-start:disabled{opacity:.5}
#review-round .dialog-actions,#backup-preview .dialog-actions{flex-wrap:wrap}
#backup-resume{justify-self:end}
@media(max-width:680px){
  .study-strip-inner{gap:6px;min-height:52px}
  #study-summary{order:4;flex-basis:100%;font-size:11px}
  .study-strip .secondary{font-size:12px;padding-inline:9px}
  .study-settings{grid-template-columns:1fr 1fr}
  .study-settings label:last-child{grid-column:1/-1}
  .study-body{padding:13px 15px 18px;gap:12px}
  #review-question{font-size:29px}
  #review-choices .choice{font-size:13px}
  .study-body .dialog-actions{margin-top:12px;gap:6px}
  #backup-preview-stats{gap:20px}
}
@media(max-width:360px){
  .study-strip .secondary{padding-inline:6px}
  #review-choices{grid-template-columns:1fr}
}
