/* Adult area: scoped styles, persistent navigation, one intentional content scroller. */
.parent-area{z-index:70;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;background:#f4f8fc;color:#203956;text-align:left;padding:0;user-select:text;-webkit-user-select:text;font-size:clamp(15px,1.45vw,20px);line-height:1.4}
.pa-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:18px clamp(18px,3vw,48px);background:#fff;border-bottom:1px solid #dce6ef}
.pa-header h1{margin:0;font-size:clamp(21px,2.25vw,32px);line-height:1.2}
.parent-area :focus-visible{outline:3px solid #2578bd;outline-offset:4px}
.pa-page-title:focus,.pa-header h1:focus{outline:none}
.pa-close,.pa-action{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:10px 16px;border:0;border-radius:12px;background:#1769a8;color:white;font-size:1em;font-weight:700;line-height:1.2;min-height:44px}
.pa-close{background:#edf4f9;color:#315575;white-space:nowrap}
.pa-icon{display:inline-flex;flex:none;width:24px;height:24px;align-items:center;justify-content:center}
.pa-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pa-layout{display:grid;grid-template-columns:clamp(180px,20vw,260px) minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.pa-nav{display:flex;flex-direction:column;gap:8px;padding:26px 14px;border-right:1px solid #dce6ef;background:#fff;overflow:auto}
.pa-nav-button{display:flex;align-items:center;gap:12px;border:0;border-radius:12px;padding:14px 12px;background:transparent;color:#5b6f83;font-size:1em;font-weight:700;text-align:left;min-height:48px}
.pa-nav-button[aria-current]{color:#125e99;background:#e7f2fc}
.pa-content{padding:clamp(20px,3vw,44px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.pa-content>*{max-width:1120px;margin-left:auto;margin-right:auto}
.pa-page-title{margin-top:0;margin-bottom:22px;font-size:clamp(23px,2.5vw,36px);line-height:1.25}
.pa-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pa-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:18px;border:1px solid #dce6ef;border-radius:16px;background:#fff;gap:4px;min-width:0}
.pa-metric>strong{font-size:clamp(27px,3.2vw,44px);line-height:1.1;color:#315575}
.pa-metric>span{font-size:.9em;color:#576d81}
.pa-metric.done>strong{color:#26816a}.pa-metric.active>strong{color:#2a70ad}.pa-metric.stars>strong{color:#bd8b16}
.pa-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:26px}
.pa-subject-card,.pa-lesson-card{display:flex;align-items:center;gap:16px;width:100%;padding:22px;border:1px solid #dce6ef;border-radius:18px;background:#fff;text-align:left;font-size:1em;color:#203956;box-shadow:0 3px 12px #233b5410}
.pa-subject-card:not(:disabled):hover,.pa-lesson-card:hover{border-color:#77afcf;background:#fcfeff}
.pa-subject-card:disabled{opacity:.62}
.pa-subject-mark{display:flex;flex:none;align-items:center;justify-content:center;width:66px;height:66px;border-radius:18px;background:#e0f2ef;color:#258474;font-size:1.6em;font-weight:800;white-space:nowrap}
.pa-subject-mark.vietnamese{background:#fff0de;color:#b06c24}.pa-subject-mark.english{background:#eee9fb;color:#7c67aa}
.pa-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.pa-card-copy>strong{font-size:1.12em;line-height:1.3}.pa-muted{color:#697d90;font-size:.9em}
.pa-completion-bar{display:block;width:100%;height:6px;background:#e9eff3;border-radius:999px;margin-top:7px;overflow:hidden}
.pa-completion-bar>span{display:block;height:100%;border-radius:inherit;background:#41a78b}
.pa-recent,.pa-empty-note{margin-top:22px;font-size:.94em;color:#61778b}
.pa-footer{flex:none;border-top:1px solid #dce6ef;padding:10px 20px;background:#fff;color:#718397;text-align:center;font-size:.8em}
.pa-footer.is-warning{color:#935b12;background:#fff6df}
.pa-breadcrumb{display:flex;align-items:center;gap:10px;margin-bottom:18px;color:#697d90;font-size:.9em}
.pa-breadcrumb button{padding:4px 0;border:0;background:transparent;color:#21699c;font:inherit;text-decoration:underline;text-underline-offset:3px}
.pa-lessons,.pa-attempts{display:flex;flex-direction:column;gap:14px}
.pa-eyebrow{text-transform:none;font-size:.8em;color:#788a9b}
.pa-badge{display:inline-flex;flex:none;align-items:center;padding:5px 10px;border-radius:999px;font-size:.8em;font-weight:700;background:#eef2f6;color:#677a8c;line-height:1.4}
.pa-badge.done{background:#e2f4ec;color:#257358}.pa-badge.active{background:#e5f1fc;color:#286da7}
.pa-lesson-summary{display:flex;align-items:center;gap:16px;margin-bottom:20px}.pa-stars{color:#b28621;font-size:1.1em;font-weight:700}
.pa-attempt{border:1px solid #dce6ef;border-radius:16px;background:#fff;overflow:hidden}
.pa-attempt>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;padding:18px 22px;list-style:none}
.pa-attempt>summary::-webkit-details-marker{display:none}
.pa-attempt>summary::after{content:'+';color:#527791;font-size:1.3em;flex:none}.pa-attempt[open]>summary::after{content:'−'}
.pa-attempt-name{display:flex;flex:1;flex-direction:column;gap:3px}.pa-attempt-name small{color:#74889b;font-size:.8em}
.pa-attempt-body{padding:0 20px 20px}.pa-attempt-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.pa-attempt-metrics .pa-metric{background:#f8fafc;padding:14px;border:0}.pa-attempt-metrics .pa-metric>strong{font-size:1.9em}
.pa-explanation{margin-top:22px;color:#6a7d8e;font-size:.85em}.pa-explanation summary{cursor:pointer}.pa-explanation p{max-width:760px;margin-top:8px}
.pa-empty-state{padding:40px;border:1px dashed #afc3d2;border-radius:18px;background:#fff;text-align:center;color:#6a7d8e}
.pa-setting-section{margin-bottom:22px;padding:24px;border:1px solid #dce6ef;border-radius:20px;background:#fff}
.pa-setting-section h3{margin:0 0 18px;font-size:1.2em}
.pa-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pa-mode{display:flex;align-items:center;gap:14px;padding:20px 16px;border:2px solid #e0e8ef;border-radius:16px;background:#fff;color:#37566e;text-align:left;font-size:1em}
.pa-mode>.pa-icon{width:34px;height:34px}.pa-mode[aria-pressed="true"]{background:#eff8ff;border-color:#4794c6;color:#1b6395}
.pa-mode-selected{visibility:hidden;color:#287e69;font-size:1.3em}.pa-mode[aria-pressed="true"] .pa-mode-selected{visibility:visible}
.pa-setting-note{margin:14px 0;color:#718397;font-size:.85em}
.pa-sound-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.pa-switch-label{display:flex;align-items:center;gap:12px;position:relative;font-weight:700;cursor:pointer}.pa-switch-label>input{position:absolute;opacity:0;width:1px;height:1px}
.pa-switch{display:inline-block;width:46px;height:26px;background:#b7c5d0;border-radius:20px;position:relative;margin-left:10px}.pa-switch::after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #182d4c33;transition:transform .15s}
.pa-switch-label>input:checked+.pa-switch{background:#328b77}.pa-switch-label>input:checked+.pa-switch::after{transform:translateX(20px)}.pa-switch-label>input:focus-visible+.pa-switch{outline:3px solid #2578bd;outline-offset:4px}
.pa-action.secondary{background:#edf4f9;color:#315575}
@media(max-width:700px){.pa-header{padding:14px;gap:10px}.pa-header h1{font-size:20px}.pa-close{font-size:14px;padding:10px}.pa-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.pa-nav{flex-direction:row;padding:8px 14px;border-right:0;border-bottom:1px solid #dce6ef;gap:8px}.pa-nav-button{flex:1;justify-content:center;padding:10px;font-size:14px}.pa-content{padding:20px 16px}.pa-metrics{gap:8px}.pa-metric{padding:12px}.pa-overview-metrics .pa-metric>span{font-size:12px}.pa-subjects{gap:12px;margin-top:20px}.pa-subject-card,.pa-lesson-card{padding:16px;gap:12px}.pa-lesson-card{flex-wrap:wrap}.pa-lesson-card .pa-card-copy{flex-basis:65%}.pa-setting-section{padding:18px}.pa-mode-options{grid-template-columns:1fr}.pa-mode{padding:14px}.pa-attempt>summary{padding:16px;gap:8px}.pa-attempt-body{padding:0 12px 14px}.pa-footer{font-size:11px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.pa-switch::after{transition:none}}
