/* Dedicated practice view: normal site navigation is intentionally absent here. */
.practice-shell{min-height:100dvh;background:var(--paper)}
.practice-topbar{position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
.practice-topbar-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;max-width:980px;min-height:64px;margin:0 auto;padding:0 24px}
.practice-back{justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 4px;border:0;background:transparent;color:var(--brand-dark);font:inherit;font-weight:700;cursor:pointer}
.practice-back:hover{color:var(--brand)}
.practice-brand{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:18px;font-weight:800;text-decoration:none}
.practice-brand .brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;font-size:13px}
.practice-mode-label{justify-self:end;color:var(--muted);font-size:13px;font-weight:700}
.practice-main{padding:28px 18px calc(106px + env(safe-area-inset-bottom))}
.practice-container{max-width:760px;margin:0 auto}
.practice-container .quiz-card{min-height:0}
.practice-actions{position:fixed;z-index:32;right:0;bottom:0;left:0;display:grid;grid-template-columns:minmax(112px,.8fr) minmax(0,1.4fr);gap:12px;padding:12px max(16px,calc((100vw - 760px)/2));padding-bottom:calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.98);box-shadow:0 -10px 26px rgba(33,61,108,.12)}
.practice-actions button{min-height:48px}
.practice-container .option{touch-action:manipulation}
.practice-container .option:disabled{cursor:default;opacity:1}
.practice-container .explanation{margin-bottom:0}
.practice-container .explanation p{margin:6px 0 0;white-space:pre-wrap}
.subjective-answer{margin-top:24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfcff}
.subjective-answer>label{display:block;margin-bottom:9px;color:var(--ink);font-size:14px;font-weight:800}
.subjective-answer textarea{display:block;width:100%;min-height:176px;resize:vertical;padding:14px;border:1px solid #d6e2f2;border-radius:10px;background:#fff;color:var(--ink);font-size:15px;line-height:1.75;outline:0}
.subjective-answer textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.subjective-answer textarea:disabled{background:#f4f7fb;color:#53647d;opacity:1}
.subjective-answer-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}
.subjective-answer-footer>span{color:var(--muted);font-size:12px}
.subjective-answer-footer .primary{min-width:112px;min-height:44px;border:0}
.subjective-reference>div+div{margin-top:14px;padding-top:12px;border-top:1px solid #dbe7f7}
.subjective-reference b{display:block;color:var(--ink);font-size:13px}
@media(max-width:700px){
  .practice-topbar-inner{min-height:60px;padding:0 16px}
  .practice-back span,.practice-mode-label{font-size:0}
  .practice-back{width:44px;padding:0;font-size:27px;line-height:1}
  .practice-brand{font-size:17px}
  .practice-main{padding:16px 12px calc(98px + env(safe-area-inset-bottom))}
  .practice-container .quiz-card{padding:20px 16px;border-radius:14px}
  .practice-container .quiz-meta{margin-bottom:19px}
  .practice-container .quiz-tools{display:none}
  .practice-container .quiz-stem{font-size:18px;line-height:1.85}
  .practice-container .option{min-height:58px;padding:13px;font-size:15px}
  .practice-actions{grid-template-columns:minmax(88px,.72fr) minmax(0,1.38fr);gap:10px;padding:11px 16px;padding-bottom:calc(11px + env(safe-area-inset-bottom))}
  .practice-actions button{min-height:48px}
  .subjective-answer{margin-top:20px;padding:14px}
  .subjective-answer textarea{min-height:160px;padding:12px;font-size:16px}
  .subjective-answer-footer{align-items:stretch;flex-direction:column}
  .subjective-answer-footer .primary{width:100%;min-height:48px}
}
@media(prefers-reduced-motion:reduce){.practice-container .option,.practice-back{transition:none}}

/* Membership value gate shown at the free-practice boundary. */
.membership-gate-backdrop{padding:18px}
.membership-gate{position:relative;width:min(520px,100%);overflow:hidden;padding:30px;border:1px solid #d9e5f7;background:linear-gradient(155deg,#fff 0%,#f7faff 62%,#eef5ff 100%);box-shadow:0 28px 70px rgba(23,50,96,.22)}
.membership-gate:before{content:"";position:absolute;right:-80px;top:-105px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.14),rgba(37,99,235,0) 70%);pointer-events:none}
.membership-gate-close{position:absolute;z-index:1;right:18px;top:18px;width:40px;height:40px}
.membership-gate-kicker{display:inline-flex;align-items:center;min-height:28px;margin-bottom:13px;padding:4px 10px;border-radius:999px;background:#e9f8f2;color:#087454;font-size:12px;font-weight:800;letter-spacing:.04em}
.membership-gate h2{max-width:400px;margin:0;padding-right:26px;color:var(--ink);font-size:27px;line-height:1.3;letter-spacing:-.035em}
.membership-gate-lead{max-width:445px;margin:11px 0 20px;color:var(--muted);font-size:14px;line-height:1.75}
.membership-gate-value{padding:16px 18px;border:1px solid #cfe0fb;border-radius:14px;background:rgba(255,255,255,.9)}
.membership-gate-price{display:flex;align-items:baseline;gap:7px;color:var(--muted);font-size:13px}
.membership-gate-price strong{color:var(--brand-dark);font-size:38px;line-height:1;font-weight:850;letter-spacing:-.05em}
.membership-gate-price strong small{margin-right:2px;font-size:17px}
.membership-gate-price em{font-style:normal}
.membership-gate-note{margin-top:7px;color:#4e6483;font-size:12px}
.membership-gate-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 18px}
.membership-gate-benefits>div{display:flex;align-items:center;min-width:0;gap:10px;padding:10px;border-radius:11px;background:rgba(255,255,255,.75)}
.membership-gate-benefits .ui-icon{flex:0 0 auto;width:21px;height:21px;color:var(--brand)}
.membership-gate-benefits span{display:grid;min-width:0;gap:2px}
.membership-gate-benefits strong{color:var(--ink);font-size:13px}
.membership-gate-benefits small{color:var(--muted);font-size:11px;line-height:1.45}
.membership-gate-action{width:100%;min-height:50px;font-size:15px}
.membership-gate-assurance{text-align:center;margin-top:10px;color:#647895;font-size:11px}
.membership-gate-later{display:block;min-height:40px;margin:6px auto -7px;padding:6px 14px;border:0;background:transparent;color:#71819a;font:inherit;font-size:12px;cursor:pointer}
.membership-gate-later:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media(max-width:520px){.membership-gate{padding:25px 20px 20px}.membership-gate-close{right:13px;top:13px}.membership-gate h2{font-size:23px}.membership-gate-benefits{grid-template-columns:1fr;gap:7px}.membership-gate-benefits>div{padding:8px 10px}.membership-gate-price strong{font-size:34px}}
