/* Mobile v4 presentation; the existing saved-practice engine owns all learning state. */
#mobilePractice[hidden], #mobilePractice [hidden] { display:none !important; }
body[data-mobile-interface="on"] { margin:0!important; padding:0!important; height:auto!important; min-height:100dvh; overflow:auto!important; background:var(--prep-canvas); }
body[data-mobile-interface="on"] > .app-shell { display:none!important; }
.practice-origin-back { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; color:#205b42; }
.practice-origin-back[hidden] { display:none; }
#mobilePractice { --rm-ink:var(--prep-ink); --rm-muted:var(--prep-muted); --rm-paper:#fff; --rm-soft:var(--prep-soft); --rm-green:var(--prep-accent); color:var(--rm-ink); font:16px/1.5 var(--prep-font); background:var(--prep-canvas); }
#mobilePractice * { box-sizing:border-box; }
#mobilePractice .rnm-phone { height:100dvh; min-height:320px; max-width:430px; margin:auto; display:flex; flex-direction:column; position:relative; }
#mobilePractice .rnm-header { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:calc(env(safe-area-inset-top) + 8px) 16px 8px; flex:none; border-bottom:1px solid var(--prep-surface-line); background:var(--rm-paper); }
#mobilePractice .rnm-header a { text-decoration:none; }
#mobilePractice .rnm-progress {
  display:grid;
  flex:none;
  gap:7px;
  margin:8px 16px 0;
  padding:7px 12px 8px;
  border-radius:var(--prep-panel-radius);
  background:var(--rm-soft);
}
#mobilePractice .rnm-brand { display:flex; align-items:center; gap:8px; margin-right:auto; color:var(--rm-ink); font-size:14px; font-weight:700; }
#mobilePractice #rnm-origin { color:var(--rm-green); font-size:12px; min-height:44px; display:flex; align-items:center; padding:4px; max-width:100px; }
#mobilePractice .rnm-exit { min-width:44px; min-height:44px; border:0; background:none; color:var(--rm-muted); font:inherit; font-size:13px; }
#mobilePractice .rnm-screen { flex:1; min-height:0; padding:24px 20px; overflow:auto; overscroll-behavior:contain; display:flex; flex-direction:column; align-items:stretch; gap:16px; scroll-padding:16px; }
#mobilePractice .rnm-screen:has(.rnm-options) { padding-block:14px; gap:10px; }
#mobilePractice .rnm-screen > * { flex-shrink:0; }
#mobilePractice :is(h1,h2,p) { margin:0; }
#mobilePractice h1 { font-size:clamp(27px,8vw,34px); line-height:1.15; letter-spacing:-1px; font-weight:650; color:var(--rm-ink); }
#mobilePractice h2 { font-size:21px; line-height:1.4; font-weight:600; color:var(--rm-ink); }
#mobilePractice p { font-size:14px; line-height:1.55; }
#mobilePractice :is(button,a) { touch-action:manipulation; }
#mobilePractice a { color:var(--rm-green); overflow-wrap:anywhere; }
#mobilePractice button { font-family:inherit; cursor:pointer; }
#mobilePractice button:disabled { opacity:.55; cursor:wait; }
#mobilePractice :is(button,a):focus-visible { outline:3px solid #205b42; outline-offset:3px; }
#mobilePractice h1:focus, #mobilePractice h2:focus { outline:none; }
#mobilePractice .rnm-eyebrow { font-size:11px; font-weight:700; letter-spacing:1.3px; text-transform:uppercase; color:var(--rm-green); }
#mobilePractice .rnm-muted { color:var(--rm-muted); }
#mobilePractice .rnm-note { color:var(--rm-muted); font-size:12px; }
#mobilePractice .rnm-row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; }
#mobilePractice progress { appearance:none; border:0; background:#dce4da; width:100%; height:4px; border-radius:4px; }
#mobilePractice progress::-webkit-progress-bar { background:#dce4da; border-radius:4px; }
#mobilePractice progress::-webkit-progress-value { background:var(--rm-green); border-radius:4px; }
#mobilePractice progress::-moz-progress-bar { background:var(--rm-green); }
#mobilePractice .rnm-topic { align-self:flex-start; border-radius:7px; padding:5px 9px; font-size:12px; color:var(--rm-green); background:var(--rm-soft); }
#mobilePractice .rnm-button { width:100%; min-height:48px; border:1px solid transparent; border-radius:var(--prep-control-radius); padding:12px 14px; background:var(--rm-green); color:white; font-size:14px; line-height:1.4; font-weight:650; display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none; }
#mobilePractice .rnm-button.rnm-secondary { background:var(--rm-paper); border-color:var(--prep-surface-line); color:var(--rm-green); }
#mobilePractice .rnm-options { display:flex; flex-direction:column; gap:7px; }
#mobilePractice .rnm-option { min-height:48px; display:flex; align-items:center; gap:10px; padding:9px 11px; border:1px solid var(--prep-surface-line); border-radius:var(--prep-control-radius); background:var(--rm-paper); color:var(--rm-ink); text-align:left; font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
#mobilePractice .rnm-option[aria-pressed="true"] { border-color:var(--rm-green); box-shadow:inset 0 0 0 1px var(--rm-green); background:var(--rm-soft); }
#mobilePractice .rnm-letter { width:28px; height:28px; flex:none; display:grid; place-items:center; background:var(--rm-soft); border-radius:50%; color:var(--rm-green); font-size:12px; }
#mobilePractice .rnm-callout { padding:18px; border-radius:var(--prep-panel-radius); background:var(--rm-soft); display:flex; flex-direction:column; gap:10px; }
#mobilePractice .rnm-wrong { border-left:2px solid #dce4da; padding-left:14px; display:grid; gap:8px; }
#mobilePractice .rnm-outcome { font-weight:650; }
#mobilePractice .rnm-detail { gap:10px; }
#mobilePractice .rnm-actions { flex:none; padding:12px 20px calc(env(safe-area-inset-bottom) + 12px); display:flex; flex-direction:column; gap:8px; border-top:1px solid var(--prep-surface-line); background:var(--prep-canvas); }
#mobilePractice .rnm-save { font-size:12px; color:var(--rm-muted); margin:0; overflow-wrap:anywhere; }
#mobilePractice .rnm-links { display:flex; flex-direction:column; gap:12px; }
#mobilePractice .rnm-message { color:#954d32; }
#mobilePractice .rnm-storage-warning { margin:0; padding:8px 16px; background:#fcf0e8; color:#733b27; font-size:12px; flex:none; }
#mobilePractice .rnm-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-height:600px) { #mobilePractice .rnm-screen { padding:16px; gap:12px; } #mobilePractice .rnm-actions { padding:8px 16px calc(env(safe-area-inset-bottom) + 8px); } }
@media(min-width:561px) { body[data-mobile-interface="on"] { background:#eaf0e8; } #mobilePractice { max-width:430px; margin:auto; box-shadow:0 0 50px #163b2e12; } }

#mobilePractice details summary{cursor:pointer;min-height:40px;display:flex;align-items:center;color:var(--rm-green);font-size:14px;font-weight:600}
#mobilePractice .rnm-row>span:last-child{font-size:12px;text-align:right}


#mobilePractice details>summary::after{content:'⌄';margin-left:auto;padding-left:8px}#mobilePractice details[open]>summary::after{content:'⌃'}

@media (max-width: 350px) {
  #mobilePractice h2 { font-size: 19px; line-height: 1.34; }
  #mobilePractice .rnm-option { font-size: 14px; }
}
