/* Shared saved-practice popup for Reading and Listening Lab. */
body.lab-practice-dialog-open { overflow: hidden; }
.lab-practice-choice-dialog { position: fixed; inset: 0; margin: auto; width: min(540px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; overflow-y: auto; border: 1px solid var(--lab-border); border-radius: 24px; color: var(--lab-text); background: var(--lab-surface); box-shadow: 0 28px 90px #0005; }
.lab-practice-choice-dialog::backdrop { background: #081524a8; backdrop-filter: blur(8px); }
.lab-practice-choice-dialog[open] { animation: lab-practice-choice-enter 180ms ease-out; }
.lab-practice-choice-card { display: grid; gap: 22px; padding: clamp(24px, 5vw, 34px); }
.lab-practice-choice-top { display: flex; align-items: center; justify-content: space-between; }
.lab-practice-choice-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #85dfbd; }
.lab-practice-choice-icon img { width: 25px; height: 25px; filter: brightness(0) saturate(100%); }
.lab-practice-choice-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--lab-border); border-radius: 11px; background: transparent; color: var(--lab-muted); font: inherit; font-size: 1.5rem; cursor: pointer; }
.lab-practice-choice-copy .eyebrow { margin: 0 0 8px; color: var(--lab-accent); }
.lab-practice-choice-copy h2 { margin: 0 0 12px; color: var(--lab-text); font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.2; }
.lab-practice-choice-copy > p:last-child { margin: 0; color: var(--lab-muted); font-size: .95rem; line-height: 1.7; }
.lab-practice-choice-summary { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--lab-border); border-radius: 16px; background: var(--lab-soft); }
.lab-practice-choice-level { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 13px; color: #073a2c; background: #85dfbd; font-weight: 850; font-size: .9rem; }
.lab-practice-choice-summary > div { min-width: 0; }
.lab-practice-choice-summary strong { display: block; color: var(--lab-text); font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.lab-practice-choice-summary p { margin: 5px 0 0; color: var(--lab-muted); font-size: .8rem; line-height: 1.6; }
.lab-practice-choice-actions { display: grid; gap: 10px; }
.lab-practice-choice-actions .btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; font-size: .9rem; }
.lab-practice-choice-actions .lab-practice-choice-new { border-color: #c9707e; color: #a93e52; background: transparent; box-shadow: none; }
html.dark-mode .lab-practice-choice-actions .lab-practice-choice-new { color: #ffb0bf; border-color: #9a5668; }
.lab-practice-choice-note { margin: 0; color: var(--lab-muted); font-size: .8rem; line-height: 1.7; }
.lab-practice-choice-note strong { font-weight: 650; color: var(--lab-text); }
.lab-practice-choice-cancel { justify-self: center; border: 0; padding: 3px 12px; color: var(--lab-muted); background: transparent; font: inherit; font-size: .85rem; cursor: pointer; }
.lab-practice-choice-dialog button:focus-visible { outline: 2px solid var(--lab-accent); outline-offset: 4px; }
@keyframes lab-practice-choice-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .lab-practice-choice-dialog[open] { animation: none; } }
