.psac-shell{min-height:calc(100vh - 160px);display:flex;align-items:center;justify-content:center;padding:32px 16px;background:linear-gradient(135deg,#eff6ff 0%,#faf5ff 52%,#fdf2f8 100%)}
.psac-panel{width:min(100%,520px);background:#fff;border:1px solid #e5e7eb;border-radius:28px;box-shadow:0 24px 70px rgba(15,23,42,.12);padding:28px;text-align:center;color:#0f172a}
.psac-brand{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eef2ff;color:#4f46e5;font-weight:900;padding:8px 14px;margin-bottom:12px}
.psac-panel h1{font-size:32px;line-height:1.12;margin:0 0 8px;font-weight:900;color:#0f172a}
.psac-subtitle{margin:0 auto 20px;color:#475569;font-size:15px;line-height:1.5;max-width:42ch}
.psac-form{display:grid;gap:13px;text-align:left}
.psac-form label{display:grid;gap:6px;font-weight:800;color:#334155;font-size:14px}
.psac-form label small{font-weight:600;color:#64748b}
.psac-form input[type="email"],.psac-form input[type="password"],.psac-form input[type="text"]{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:14px;padding:12px 13px;font:inherit;background:#fff;color:#0f172a;outline:none}
.psac-form input:focus{border-color:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.12)}
.psac-form button,.psac-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:linear-gradient(135deg,#6366f1,#ec4899);color:#fff;text-decoration:none;font-weight:900;padding:12px 16px;cursor:pointer;min-height:44px;font:inherit}
.psac-form button:hover,.psac-button:hover{filter:brightness(.97);color:#fff}
.psac-button.is-light{background:#f8fafc;color:#0f172a;border:1px solid #e2e8f0}
.psac-button.is-danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.psac-links{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:2px;text-align:center}
.psac-links a,.psac-links button{background:transparent;border:0;color:#4f46e5;font-weight:900;text-decoration:none;padding:0;cursor:pointer;min-height:auto}
.psac-message{border-radius:14px;padding:11px 12px;font-size:14px;font-weight:700;text-align:center;line-height:1.35}
.psac-message.is-muted{background:#f8fafc;color:#475569;border:1px solid #e2e8f0}.psac-message.is-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.psac-message.is-success{background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0}
.psac-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px;font-weight:700!important}.psac-check input{width:18px;height:18px}.psac-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.psac-forgot[hidden]{display:none!important}.psac-account-card{display:grid;gap:10px;margin:18px 0;text-align:left}.psac-account-card div{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.psac-account-card span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:900}.psac-account-card strong{text-align:right;color:#0f172a;word-break:break-word}.psac-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}
@media(max-width:560px){.psac-shell{padding:20px 12px;align-items:flex-start}.psac-panel{padding:22px;border-radius:22px}.psac-panel h1{font-size:26px}.psac-account-card div{align-items:flex-start;flex-direction:column}.psac-account-card strong{text-align:left}.psac-actions .psac-button{width:100%}}
.psac-header-auth{display:inline-flex;align-items:center;gap:10px;margin-left:8px}.psac-header-link,.psac-header-logout{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border-radius:12px;padding:9px 14px;font-weight:900;text-decoration:none;font-size:14px;line-height:1}.psac-header-link{background:#eef2ff;color:#4f46e5;border:1px solid #c7d2fe}.psac-header-link:hover{color:#4338ca}.psac-header-logout{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;cursor:pointer}.psac-header-logout:hover{filter:brightness(.98)}@media(max-width:720px){.psac-header-auth{gap:6px}.psac-header-link,.psac-header-logout{min-height:36px;padding:8px 10px;font-size:13px}}
.psac-shell.is-dashboard{align-items:flex-start;padding-top:34px}.psac-shell.is-dashboard .psac-panel{width:min(100%,980px);text-align:left}.psac-shell.is-dashboard .psac-brand,.psac-shell.is-dashboard h1,.psac-shell.is-dashboard .psac-subtitle{display:block;text-align:center}.psac-dashboard{display:grid;gap:16px;margin-top:18px}.psac-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.psac-dashboard-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(15,23,42,.06)}.psac-dashboard-card h2{font-size:18px;margin:0 0 10px;color:#0f172a;font-weight:900}.psac-dashboard-card p{margin:0 0 12px;color:#475569;line-height:1.5}.psac-reset-row{display:grid;gap:10px;margin-top:12px}.psac-empty-state{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:14px;margin-bottom:16px}.psac-empty-state strong{display:block;color:#0f172a;margin-bottom:4px}.psac-empty-state p{margin:0;color:#64748b}.psac-safety-note{background:#fffbeb;border:1px solid #fde68a;border-radius:16px;padding:13px;color:#92400e!important}.psac-form input[readonly]{background:#f8fafc;color:#64748b}@media(max-width:820px){.psac-dashboard-grid{grid-template-columns:1fr}.psac-shell.is-dashboard{padding-top:20px}.psac-shell.is-dashboard .psac-panel{text-align:center}.psac-dashboard-card{text-align:left}}
.psac-parent-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,#eef2ff,#fdf2f8);border:1px solid #e5e7eb;border-radius:22px;padding:16px 18px}.psac-parent-hero strong{display:block;font-size:15px;color:#3730a3}.psac-parent-hero p{margin:4px 0 0;color:#475569;font-weight:700}.psac-parent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.psac-parent-action{display:block;text-decoration:none;background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:20px;color:#0f172a;box-shadow:0 14px 35px rgba(15,23,42,.07);transition:transform .15s ease,box-shadow .15s ease}.psac-parent-action:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.11);color:#0f172a}.psac-parent-action span{display:inline-flex;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:12px;font-weight:900;padding:5px 9px}.psac-parent-action strong{display:block;margin:12px 0 5px;font-size:23px}.psac-parent-action small{display:block;color:#64748b;line-height:1.45;font-weight:700}.psac-pref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.psac-preferences-form select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:14px;padding:12px 13px;font:inherit;background:#fff;color:#0f172a;outline:none}.psac-subjects{display:grid;gap:9px}.psac-subjects>strong{color:#334155;font-size:14px}.psac-subjects>div{display:flex;flex-wrap:wrap;gap:8px}.psac-pref-chip{display:inline-flex!important;grid-template-columns:none!important;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:8px 10px;font-weight:900!important;color:#334155!important;cursor:pointer}.psac-pref-chip input{width:16px;height:16px}.psac-pref-chip:has(input:checked){background:#eef2ff;border-color:#c7d2fe;color:#3730a3!important}.psac-account-mini{background:#fbfdff}.psac-filter-notice{margin:18px auto 10px;width:min(calc(100% - 32px),1120px);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:18px;padding:12px 14px;box-shadow:0 10px 28px rgba(15,23,42,.06);color:#312e81}.psac-filter-notice strong{font-weight:900}.psac-filter-notice span{flex:1;color:#4338ca;font-weight:700}.psac-filter-notice a{font-weight:900;color:#4f46e5;text-decoration:none;background:#fff;border:1px solid #c7d2fe;border-radius:999px;padding:8px 10px}.psac-filter-hidden{display:none!important}@media(max-width:820px){.psac-parent-hero{align-items:flex-start;flex-direction:column}.psac-parent-actions,.psac-pref-grid{grid-template-columns:1fr}.psac-filter-notice{align-items:flex-start;flex-direction:column}.psac-filter-notice a{width:100%;text-align:center}.psac-subjects>div{gap:6px}}
.psac-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.psac-filter-actions button{font-weight:900;color:#4f46e5;text-decoration:none;background:#fff;border:1px solid #c7d2fe;border-radius:999px;padding:8px 10px;cursor:pointer;font:inherit}.psac-filter-actions button:hover,.psac-filter-notice a:hover{background:#f8fafc}@media(max-width:820px){.psac-filter-actions{width:100%;display:grid;grid-template-columns:1fr}.psac-filter-actions button,.psac-filter-actions a{width:100%;text-align:center}}
.psac-shell.is-parent-dashboard .psac-panel{width:min(100%,900px);text-align:center}.psac-parent-dashboard{display:grid;gap:18px;margin-top:18px}.psac-parent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.psac-learning-card{display:grid;gap:7px;text-align:left;text-decoration:none;background:linear-gradient(135deg,#eef2ff,#fdf2f8);border:1px solid #ddd6fe;border-radius:24px;padding:22px;min-height:150px;box-shadow:0 16px 38px rgba(79,70,229,.12);transition:transform .18s ease,box-shadow .18s ease}.psac-learning-card:hover{transform:translateY(-2px);box-shadow:0 20px 46px rgba(79,70,229,.16)}.psac-learning-card span{color:#4f46e5;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.psac-learning-card strong{font-size:24px;line-height:1.15;color:#0f172a}.psac-learning-card p{margin:0;color:#475569;line-height:1.45}.psac-parent-note{background:#fffbeb;border:1px solid #fde68a;border-radius:18px;padding:14px 16px;text-align:left;color:#92400e}.psac-parent-note strong{display:block;margin-bottom:4px;color:#78350f}.psac-parent-note p{margin:0;line-height:1.45}.psac-parent-filter-note{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:18px;padding:13px 15px;text-align:left;color:#312e81}.psac-parent-filter-note strong{display:block;color:#3730a3}.psac-parent-filter-note p{margin:4px 0 0;color:#4338ca;font-weight:700}.psac-account-details{background:#fff;border:1px solid #e5e7eb;border-radius:20px;text-align:left;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.06)}.psac-account-details summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:900;color:#0f172a;display:flex;justify-content:space-between;align-items:center}.psac-account-details summary::-webkit-details-marker{display:none}.psac-account-details summary:after{content:'+';font-size:20px;color:#4f46e5}.psac-account-details[open] summary:after{content:'–'}.psac-account-details-inner{border-top:1px solid #e5e7eb;padding:18px;display:grid;gap:14px}.psac-account-details .psac-reset-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.psac-account-details .psac-reset-row .psac-message{flex:1 1 240px}@media(max-width:760px){.psac-parent-actions{grid-template-columns:1fr}.psac-learning-card{text-align:center}.psac-parent-filter-note{align-items:flex-start;flex-direction:column}.psac-parent-filter-note button{width:100%}.psac-account-details .psac-reset-row{display:grid}.psac-account-details .psac-reset-row .psac-message{flex:auto}}

body.logged-in header a[href$="/login"],body.logged-in header a[href$="/login/"],body.logged-in header a[href$="/signup"],body.logged-in header a[href$="/signup/"]{display:none!important}

/* v1.0.12 dashboard privacy and cleaner header */
.psac-shell.is-parent-dashboard{padding-top:26px;padding-bottom:42px}
.psac-shell.is-parent-dashboard .psac-panel{width:min(100%,980px);padding:30px;text-align:center}
.psac-parent-dashboard-enhanced{gap:16px;margin-top:16px}
.psac-dashboard-hero-card{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;background:linear-gradient(135deg,#eef2ff 0%,#f8fafc 48%,#fff7ed 100%);border:1px solid #dbe4ff;border-radius:26px;padding:22px;box-shadow:0 16px 42px rgba(79,70,229,.1)}
.psac-dashboard-hero-card h2{font-size:28px;line-height:1.05;margin:5px 0 8px;color:#0f172a;font-weight:950;letter-spacing:-.03em}
.psac-dashboard-hero-card p{margin:0;color:#475569;line-height:1.5;font-weight:700;max-width:54ch}
.psac-kicker{display:inline-flex;align-items:center;border-radius:999px;background:#fff;color:#4f46e5;border:1px solid #c7d2fe;padding:6px 10px;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.psac-hero-badges{display:flex;align-items:flex-end;justify-content:center;flex-direction:column;gap:8px;min-width:150px}
.psac-hero-badges span{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#334155;font-weight:950;padding:9px 12px;box-shadow:0 10px 22px rgba(15,23,42,.06)}
.psac-dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.psac-dashboard-metric{text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.055)}
.psac-dashboard-metric span{display:block;color:#64748b;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.psac-dashboard-metric strong{display:block;margin:6px 0 3px;font-size:28px;line-height:1;color:#0f172a;font-weight:950}
.psac-dashboard-metric small{display:block;color:#64748b;font-weight:750;line-height:1.35}
.psac-dashboard-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.psac-dashboard-start-grid .psac-learning-card{min-height:170px;position:relative;overflow:hidden;border-radius:26px;padding:24px}
.psac-dashboard-start-grid .psac-learning-card:after{content:'';position:absolute;right:-34px;bottom:-44px;width:130px;height:130px;border-radius:999px;background:rgba(255,255,255,.55);pointer-events:none}
.psac-dashboard-start-grid .psac-learning-card strong{font-size:27px;letter-spacing:-.02em}
.psac-dashboard-start-grid .psac-learning-card em{display:inline-flex;margin-top:8px;font-style:normal;color:#4f46e5;background:#fff;border:1px solid #ddd6fe;border-radius:999px;padding:8px 11px;font-weight:950;width:max-content}
.psac-parent-note-enhanced{display:flex;align-items:flex-start;gap:12px;border-radius:20px;padding:15px 17px}
.psac-parent-note-enhanced:before{content:'!';display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;border-radius:999px;background:#fef3c7;color:#92400e;font-weight:950}
.psac-account-details summary span{font-weight:950}
.psac-account-details summary small{display:block;color:#64748b;font-size:12px;font-weight:800;margin-top:2px}
@media(max-width:820px){.psac-shell.is-parent-dashboard .psac-panel{padding:22px}.psac-dashboard-hero-card{align-items:flex-start;flex-direction:column}.psac-hero-badges{align-items:flex-start;flex-direction:row;flex-wrap:wrap;min-width:0}.psac-dashboard-metrics,.psac-dashboard-start-grid{grid-template-columns:1fr}.psac-dashboard-start-grid .psac-learning-card{text-align:left}.psac-dashboard-hero-card h2{font-size:24px}}

/* v1.0.14 recommendations, activity, and favorites */
.psac-age-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);gap:18px;align-items:center;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:20px;box-shadow:0 12px 32px rgba(15,23,42,.055)}
.psac-age-card h3{font-size:26px;line-height:1.1;margin:8px 0 6px;color:#0f172a;font-weight:950;letter-spacing:-.025em}.psac-age-card p{margin:0;color:#475569;font-weight:700;line-height:1.45}.psac-age-form{display:grid;gap:10px}.psac-age-form label{display:grid;gap:6px;color:#334155;font-weight:950}.psac-age-form select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:15px;padding:12px 13px;font:inherit;background:#fff;color:#0f172a;outline:none}.psac-age-form button{border:0;border-radius:999px;background:#4f46e5;color:#fff;padding:11px 14px;font-weight:950;cursor:pointer;box-shadow:0 10px 24px rgba(79,70,229,.18)}.psac-age-form button.is-light,.psac-age-form .psac-button.is-light{background:#fff;color:#4f46e5;border:1px solid #c7d2fe;box-shadow:none}.psac-dashboard-section{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:18px;text-align:left;box-shadow:0 12px 32px rgba(15,23,42,.055)}.psac-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.psac-section-title span{display:block;color:#4f46e5;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.psac-section-title h3{margin:3px 0 0;color:#0f172a;font-size:20px;line-height:1.1;font-weight:950}.psac-section-title a{display:inline-flex;text-decoration:none;color:#4f46e5;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:8px 11px;font-weight:950;font-size:13px}.psac-dashboard-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.psac-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.psac-mini-list{display:grid;gap:10px}.psac-mini-item{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e7eb;border-radius:18px;background:#fbfdff;overflow:hidden}.psac-mini-item a{display:flex;align-items:center;gap:12px;min-width:0;flex:1;text-decoration:none;color:#0f172a;padding:11px 12px}.psac-mini-item strong{display:block;color:#0f172a;font-weight:950;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.psac-mini-item small{display:block;color:#64748b;font-weight:750;line-height:1.35;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.psac-mini-icon{width:46px;height:46px;min-width:46px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#4f46e5;font-weight:950;overflow:hidden}.psac-mini-icon img{width:100%;height:100%;object-fit:cover;display:block}.psac-mini-item button{margin-right:10px;border:1px solid #fecaca;background:#fff;color:#991b1b;border-radius:999px;padding:7px 9px;font-weight:950;cursor:pointer}.psac-empty{grid-column:1/-1;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b;font-weight:800;padding:15px;text-align:center}.psac-favorite-button{position:relative;z-index:5;margin:10px auto 0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #ddd6fe;background:#fff;color:#4f46e5;border-radius:999px;padding:8px 11px;font:inherit;font-size:13px;font-weight:950;cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.08)}.psac-favorite-button.is-favorited{background:#fff1f2;border-color:#fecdd3;color:#be123c}.psac-favorite-button:disabled{opacity:.7;cursor:wait}@media(max-width:820px){.psac-age-card,.psac-dashboard-two-col,.psac-mini-grid{grid-template-columns:1fr}.psac-section-title{align-items:flex-start;flex-direction:column}.psac-section-title a{width:100%;justify-content:center}.psac-mini-item a{min-width:0}.psac-mini-item strong,.psac-mini-item small{white-space:normal}.psac-mini-item{align-items:stretch}.psac-mini-item button{align-self:center}}

/* v1.0.17 streamlined Dashboard and stable loading state. */
.psac-dashboard-skeleton{display:grid;gap:16px;margin-top:18px;text-align:left}.psac-dashboard-skeleton-wide,.psac-dashboard-skeleton-grid span{display:block;border-radius:24px;background:linear-gradient(100deg,#eef2ff 30%,#f8fafc 45%,#eef2ff 60%);background-size:220% 100%;animation:psac-skeleton-shift 1.15s ease-in-out infinite}.psac-dashboard-skeleton-wide{height:150px}.psac-dashboard-skeleton-wide.is-short{height:110px}.psac-dashboard-skeleton-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.psac-dashboard-skeleton-grid span{height:170px}@keyframes psac-skeleton-shift{to{background-position:-220% 0}}.psac-dashboard-continue{background:linear-gradient(135deg,#fff,#f5f3ff);border-color:#ddd6fe}.psac-preference-details-inner{grid-template-columns:minmax(0,1fr) minmax(280px,360px);align-items:center}.psac-preference-details-inner h3{font-size:24px;line-height:1.1;margin:8px 0 6px;color:#0f172a;font-weight:950;letter-spacing:-.02em}.psac-preference-details-inner p{margin:0;color:#475569;font-weight:700;line-height:1.45}.psac-shell a:focus-visible,.psac-shell button:focus-visible,.psac-shell summary:focus-visible,.psac-shell input:focus-visible,.psac-shell select:focus-visible{outline:3px solid rgba(79,70,229,.35);outline-offset:3px}.psac-account-details summary small[data-psac-age-label]{border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;color:#4f46e5;padding:6px 9px}.psac-mini-list[data-psac-continue] .psac-mini-item{background:#fff;border-color:#ddd6fe}@media(max-width:820px){.psac-dashboard-skeleton-grid,.psac-preference-details-inner{grid-template-columns:1fr}.psac-dashboard-skeleton-wide{height:120px}.psac-dashboard-skeleton-grid span{height:135px}.psac-dashboard-start-grid .psac-learning-card{min-height:145px}.psac-account-details summary{align-items:flex-start;gap:10px}.psac-account-details summary small[data-psac-age-label]{white-space:nowrap}}@media(prefers-reduced-motion:reduce){.psac-dashboard-skeleton-wide,.psac-dashboard-skeleton-grid span{animation:none}}
