body.premiumParentPortal{background:#fcfaf7;background-image:radial-gradient(ellipse at 50% 8%,#f7f2ed,transparent 70%);color:#101a45;font-family:'Inter',system-ui,sans-serif}
body.premiumParentPortal>.bar{display:none}body.premiumParentPortal>.wrap{max-width:1536px;padding:26px 50px!important}body.premiumParentPortal #main{padding-top:0!important}
.pp-header{background:#fffcf9;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 50px;border-bottom:1px solid #eee9e6;min-height:58px}
.pp-brand{display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:16px}.pp-brand img{width:28px;height:28px}.pp-brand>b{font-size:26px;letter-spacing:-1px;font-weight:850}.pp-brand>b span{color:#7845ef}.pp-brand i{width:1px;height:26px;background:#e9e4ec}
.pp-header nav{display:flex;gap:8px}.pp-header nav button{padding:13px 22px;color:#101a45;background:transparent;border-radius:16px;font-size:14px;white-space:nowrap}.pp-header nav button[aria-pressed="true"]{background:#f0e7fd;color:#5630bc}
.pp-header-actions{display:flex;gap:14px;align-items:center}.pp-header select{border:1px solid #e8e3eb;border-radius:15px;padding:11px 15px;background:white;color:#101a45;font:inherit;max-width:240px}.pp-account-button{background:transparent;font-size:22px;color:#283455;min-height:44px;min-width:44px}
.pp-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.pp-report[hidden]{display:none!important}
.pp-title{margin:0 0 16px;display:flex}.pp-title h1{font-size:36px;font-weight:850;letter-spacing:-1.2px;line-height:1.2;margin:0 0 4px}.pp-title p{font-size:18px;color:#879bb5;margin:0}
.pp-art{position:relative;display:inline-block;overflow:hidden;width:96px;aspect-ratio:var(--crop-w)/var(--crop-h);flex-shrink:0;mix-blend-mode:multiply;pointer-events:none}.pp-art img{position:absolute;width:calc(1536 / var(--crop-w) * 100%);max-width:none!important;height:auto;left:calc(-100% * var(--crop-x) / var(--crop-w));top:calc(-100% * var(--crop-y) / var(--crop-h));user-select:none}
.pp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 18px}.pp-metric{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:124px;padding:20px 24px;border-radius:16px;overflow:hidden;border:1px solid #ede5df}.pp-metric.mint{background:linear-gradient(130deg,#e4f9ef,#daf8e9)}.pp-metric.lavender{background:linear-gradient(130deg,#f0eaff,#e5dcff)}.pp-metric.sky{background:linear-gradient(130deg,#e9f6ff,#d7eeff)}.pp-metric.cream{background:linear-gradient(130deg,#fff8e4,#fff0d1)}.pp-metric>div{position:relative;z-index:1}.pp-metric span:not(.pp-art){font-size:16px;font-weight:650;display:block;margin-bottom:8px}.pp-metric b{font-size:40px;line-height:1.1;letter-spacing:-1px}.pp-metric .pp-art{width:108px;margin:-14px -7px -14px 8px}
.pp-week-row{display:grid;grid-template-columns:1.75fr 1fr;gap:18px;margin-bottom:12px}.pp-chart{border:1px solid #eae6ed;border-radius:18px;background:linear-gradient(130deg,#fff,#fffefd);padding:14px 22px;box-shadow:0 8px 22px #3e245b05;min-width:0}.pp-chart-head{display:flex;justify-content:space-between;gap:14px;align-items:center}.pp-chart h2,.pp-section-head h2,.pp-explorer h2{font-size:23px;font-weight:800;letter-spacing:-.5px;margin:0}.pp-chart-head>span{display:flex;gap:8px;align-items:center;font-size:12px;color:#617592}.pp-chart-head i{width:12px;height:12px;border-radius:50%;background:#2ecacf}
.pp-chart-body{display:flex;gap:10px;height:149px;margin-top:12px}.pp-axis{width:22px;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:28px;font-size:12px;color:#5e7494}.pp-chart-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;flex:1;min-width:0;background:repeating-linear-gradient(to top,transparent 0 38px,#e9eef4 39px 40px);border-bottom:1px solid #dce4ee}.pp-day{display:flex;flex-direction:column;align-items:center;min-width:0}.pp-bar-space{height:120px;display:flex;align-items:flex-end;justify-content:center;width:100%}.pp-chart-bar{width:min(44px,72%);border-radius:7px 7px 0 0;background:linear-gradient(90deg,#28bbcb,#48d7dd,#20b9c9);border:1px solid #20b5c4;box-shadow:inset 0 2px 3px #ffffff7a;display:block}.pp-chart-bar.purple{background:linear-gradient(90deg,#ac75f5,#c099fa,#a873ef);border-color:#b084eb}.pp-day small{height:28px;display:flex;align-items:center;font-size:12px;color:#4e6382;flex-shrink:0;background:#fff;width:100%;justify-content:center}
.pp-coach{display:flex;align-items:center;justify-content:space-between;position:relative;background:linear-gradient(130deg,#f3edff,#ede4fc);border:1px solid #e6d9fb;border-radius:18px;padding:18px 24px;overflow:hidden;min-width:0}.pp-coach>div{flex:1;min-width:0;position:relative;z-index:1}.pp-coach-label{color:#7844f1;font-weight:650;font-size:16px}.pp-coach h3{font-size:17px;line-height:1.4;margin:10px 0 6px;font-weight:700}.pp-coach p{font-size:14px;line-height:1.5;color:#8191ad;max-width:260px}.pp-coach button{margin-top:14px;border-radius:14px;padding:10px 16px;color:white;background:linear-gradient(135deg,#9254fa,#6930e9);font-size:12px;font-weight:600;box-shadow:0 5px 12px #813fea25;min-height:40px}.pp-coach .pp-art{width:175px;position:relative;margin:8px -14px 8px 0}
.pp-report-detail{font-size:11px;color:#8190a5;line-height:1.5;margin-bottom:16px}.pp-report-detail summary{cursor:pointer;display:inline-block}.pp-report-detail p{margin-top:8px}.pp-report-detail[open]{padding:12px;background:white;border-radius:12px;border:1px solid #ede8f2;max-height:200px;overflow:auto}
.pp-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.pp-section-head button{background:none;color:#7848d3;font-size:12px;padding:8px}
.pp-areas{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.pp-areas>button{display:flex;align-items:center;gap:12px;min-width:0;min-height:108px;padding:12px 14px;background:white;border:1px solid #eee8e9;border-radius:16px;text-align:left;box-shadow:0 8px 16px #46335005}.pp-areas>button[aria-pressed="true"]{border-color:#ab86ef;background:#f7f1ff;box-shadow:0 0 0 2px #ab86ef25}.pp-areas b{display:block;font-size:14px;margin-bottom:6px;color:#101a45}.pp-areas small{display:block;font-size:12px;line-height:1.5;color:#617692}.pp-areas .pp-art{width:82px}
.pp-explorer{background:white;border:1px solid #eae5ec;border-radius:18px;padding:10px 16px 8px;box-shadow:0 8px 24px #4a304507}.pp-explorer-head{display:flex;align-items:center;gap:14px;margin-bottom:8px}.pp-explorer-head h2{margin-right:auto;font-size:21px}.pp-explorer-head input,.pp-explorer-head select{border:1px solid #e3e8ef;border-radius:13px;padding:9px 14px;font-size:12px;background:#fff;color:#4e6285;width:100%;min-height:38px}.pp-search{width:232px}.pp-explorer-head select{width:272px}.pp-skill-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:180px;align-content:start}.pp-skill{display:flex;align-items:center;gap:12px;border:1px solid #e6e8f0;border-radius:15px;padding:8px 14px;min-height:82px;background:linear-gradient(130deg,#fff,#fefefe)}.pp-skill .pp-art{width:76px}.pp-skill>div{flex:1;min-width:0}.pp-skill b{font-size:14px;display:block;line-height:1.4;overflow-wrap:anywhere}.pp-skill small{display:block;color:#66809c;font-size:11px;margin:3px 0 8px}.pp-skill strong{font-size:13px;align-self:flex-end;margin-bottom:4px}.pp-progress{height:10px;border-radius:99px;background:#e9edf3;overflow:hidden}.pp-progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--fill),var(--fill));box-shadow:inset 0 2px 3px #ffffff5a;border-radius:99px}
.pp-pagination{display:flex;justify-content:center;align-items:center;gap:22px;font-size:12px;padding:10px 0 0}.pp-pagination button{background:transparent;color:#476384;border-radius:9px;padding:5px 12px;min-height:34px;font-size:12px}.pp-pagination button:disabled{opacity:.4;cursor:default}.pp-no-results{padding:25px;font-size:14px;color:#7f8298;grid-column:1/-1}
.pp-achievements{background:white;border:1px solid #eae4ec;border-radius:16px;margin:14px 0 20px}.pp-achievements>summary{display:flex;align-items:center;gap:14px;padding:6px 22px;font-size:14px;font-weight:650;cursor:pointer;list-style:none;min-height:44px}.pp-achievements>summary::after{content:'⌄';margin-left:auto}.pp-achievements[open]>summary::after{content:'⌃'}.pp-achievements>summary .pp-art{width:32px}.pp-achievements .mastery-section{margin:0;padding:20px;max-height:360px;overflow:auto}
.pp-account{border:1px solid #eae5ef;border-radius:18px;padding:18px;background:#fff;margin-top:20px;font-size:14px;color:#64728b}.pp-account>summary{cursor:pointer}.pp-account-body{padding-top:18px}.pp-account .panel{box-shadow:none;border-width:1px}.pp-unavailable{padding:25px;background:white;border-radius:15px;margin:15px 0;color:#78859b}
body.premiumParentPortal :is(button,input,select,summary):focus-visible{outline:3px solid #a978ef;outline-offset:3px}
@media(max-width:1200px){.pp-header{padding:12px 24px;flex-wrap:wrap}.pp-brand{font-size:14px}.pp-header nav button{padding:10px 14px}body.premiumParentPortal>.wrap{padding:24px!important}.pp-areas{gap:9px}.pp-areas>button{gap:6px;padding:10px}.pp-areas .pp-art{width:60px}.pp-metric{padding:18px}.pp-metric .pp-art{width:80px}.pp-metric b{font-size:34px}.pp-metric span:not(.pp-art){font-size:13px}.pp-coach .pp-art{width:125px}}
@media(max-width:900px){.pp-header nav{order:3;width:100%;justify-content:center}.pp-week-row{grid-template-columns:1fr}.pp-coach{min-height:180px}.pp-coach p{max-width:none}.pp-coach .pp-art{width:170px}.pp-areas{grid-template-columns:repeat(3,minmax(0,1fr))}.pp-areas>button{gap:12px}.pp-areas .pp-art{width:80px}.pp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.pp-explorer-head{flex-wrap:wrap}.pp-explorer-head h2{width:100%}.pp-search{flex:1}.pp-explorer-head select{width:220px}}
@media(max-width:600px){body.premiumParentPortal>.wrap{padding:20px 14px!important}.pp-header{padding:12px 14px;gap:10px}.pp-brand>b{font-size:22px}.pp-brand{gap:7px;font-size:12px}.pp-brand img{width:23px}.pp-header-actions{width:100%;justify-content:space-between}.pp-header select{max-width:none}.pp-header nav{justify-content:space-between;gap:0}.pp-header nav button{padding:10px;font-size:12px}.pp-title h1{font-size:27px}.pp-title p{font-size:15px}.pp-metrics{gap:10px}.pp-metric{padding:14px;min-height:110px}.pp-metric .pp-art{width:65px;margin-left:0}.pp-metric b{font-size:29px}.pp-metric span:not(.pp-art){font-size:12px}.pp-areas{grid-template-columns:repeat(2,minmax(0,1fr))}.pp-areas .pp-art{width:59px}.pp-areas b{font-size:12px}.pp-areas small{font-size:11px}.pp-chart{padding:16px 12px}.pp-chart h2,.pp-section-head h2{font-size:19px}.pp-chart-head>span{font-size:10px}.pp-coach{padding:18px}.pp-coach .pp-art{width:110px;margin-right:-10px}.pp-coach h3{font-size:15px}.pp-coach p{font-size:12px}.pp-coach button{padding:10px;font-size:11px}.pp-skill-list{grid-template-columns:1fr}.pp-explorer{padding:14px 10px}.pp-explorer-head{gap:8px}.pp-explorer-head>label{width:100%;flex:auto}.pp-explorer-head select{width:100%}.pp-skill{padding:8px;gap:10px}.pp-skill b{font-size:12px}.pp-skill .pp-art{width:63px}.pp-pagination{gap:12px}.pp-section-head button{font-size:10px}.pp-achievements>summary{padding:9px 14px}}
@media(prefers-reduced-motion:reduce){.premiumParentPortal *{scroll-behavior:auto!important}}

/* The approved portal replaces the legacy two-column parent dashboard. */
body.parentDashboard.premiumParentPortal #main{display:block;max-width:none;padding:0!important}
.pp-report{min-width:0;width:100%}
.pp-metric>div{min-width:0;flex:1}
.pp-metric b{display:block;white-space:nowrap}
.pp-week-row{align-items:start;grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr)}
.pp-chart{min-height:245px}
.pp-coach{display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:12px;min-height:245px}
.pp-coach .pp-art{width:100%;margin:0}
.pp-coach p{max-width:none}
@media(max-width:1100px){
 .pp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pp-week-row{grid-template-columns:minmax(0,1fr)}
 .pp-coach{grid-template-columns:minmax(0,1fr) 150px;min-height:210px}
 .pp-areas{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 .pp-metric{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:start}
 .pp-metric .pp-art{width:60px;margin:0;justify-self:end}
 .pp-metric b{font-size:clamp(22px,6vw,29px)}
 .pp-coach{grid-template-columns:minmax(0,1fr);gap:14px}
 .pp-coach .pp-art{width:125px;justify-self:end}
 .pp-chart-head{flex-wrap:wrap}
 .pp-areas{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Compact family portal and menu-controlled account tools. */
body.premiumParentPortal>.wrap{max-width:1200px;padding:26px 28px!important}
.pp-header{padding-inline:max(24px,calc((100vw - 1144px)/2));gap:14px;flex-wrap:wrap}
.pp-header nav button{padding:11px 14px}
.pp-brand{gap:10px;font-size:14px}
.pp-brand>b{font-size:23px}
.pp-header-actions{gap:8px;margin-left:auto}
.pp-header select{max-width:180px}
.pp-account-button,.pp-sign-out{font-size:13px;padding:10px 12px;border:1px solid #e8e3eb;border-radius:12px;background:white;white-space:nowrap;min-height:44px}
.pp-account-button[aria-expanded="true"]{background:#f0e7fd;border-color:#b796ed}
.pp-account[hidden],.pp-report-detail[hidden]{display:none!important}
.pp-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-top:18px}
.pp-family-grid>.panel{min-width:0;width:100%;margin:0}
.pp-family-grid .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
.pp-family-grid .field{max-width:100%}
.pp-weekly-updates{margin-top:24px;padding:20px 24px;background:white;border:1px solid #eae5ef;border-radius:18px}
.pp-weekly-updates h2{font-size:21px;margin-bottom:12px}
.pp-weekly-updates .pp-report-detail[open]{max-height:360px;font-size:13px;margin-bottom:0}
.pp-areas>button{gap:6px;padding:10px}
.pp-areas .pp-art{width:60px}
@media(max-width:700px){
 body.premiumParentPortal>.wrap{padding:20px 16px!important}
 .pp-header{padding:12px 16px}
 .pp-family-grid{grid-template-columns:minmax(0,1fr)}
 .pp-weekly-updates{padding:18px}
 .pp-header-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}
 .pp-header-actions>label{margin-right:auto}
}

/* Narrower page; each header tab is its own view. */
/* #main is the .wrap; the older #main max-width:none rule above outranks .wrap selectors. */
body.parentDashboard.premiumParentPortal #main{max-width:1240px;margin-inline:auto;padding:26px 24px 48px!important}
@media(max-width:700px){body.parentDashboard.premiumParentPortal #main{padding:20px 16px 40px!important}}
.pp-header{padding-inline:max(24px,calc((100% - 1192px)/2))}
body[data-pp-view="overview"] .pp-explorer,
body[data-pp-view="overview"] .pp-achievements,
body[data-pp-view="overview"] .pp-weekly-updates,
body[data-pp-view="development"] [data-pp-week],
body[data-pp-view="development"] .pp-achievements,
body[data-pp-view="cards"] [data-pp-week],
body[data-pp-view="cards"] [data-parent-progress],
body[data-pp-view="cards"] .pp-weekly-updates{display:none!important}
body[data-pp-view="overview"] .pp-areas{margin-bottom:0}
body[data-pp-view="cards"] .pp-achievements{margin-top:0}
body[data-pp-view="cards"] .pp-achievements>summary{pointer-events:none}
body[data-pp-view="cards"] .pp-achievements>summary::after{content:none}
body[data-pp-view="cards"] .pp-achievements .mastery-section{max-height:none}

/* Keep the portal geometry stable while reports and account tools load. */
html{scrollbar-gutter:stable}
body.parentDashboard.premiumParentPortal .parent-welcome{display:none}
body.premiumParentPortal [data-pp-week]{min-height:405px}
body.premiumParentPortal .pp-header{width:100%;min-width:0}
.pp-weekly-updates .fpj-settings{margin-top:18px}
@media(max-width:1100px){body.premiumParentPortal [data-pp-week]{min-height:510px}}
@media(max-width:600px){body.premiumParentPortal [data-pp-week]{min-height:640px}}

/* Account actions are first-class header views. */
.pp-header nav{flex-wrap:wrap;min-width:0;gap:4px}
.pp-header nav button{padding:10px 11px;font-size:13px}
.pp-family-tab[hidden]{display:none!important}
.pp-family-tab{max-width:800px;margin-inline:auto}
.pp-family-tab>.panel{margin:0;box-shadow:none}
.pp-account>h2{font-size:24px;margin:0 0 18px;color:#101a45}
body:is([data-pp-view="account"],[data-pp-view="add-child"],[data-pp-view="invite"]) :is(.pp-report,.pp-weekly-updates){display:none!important}
@media(min-width:1101px){.pp-header nav{flex:1;justify-content:center}.pp-header-actions{flex-shrink:0}}
@media(max-width:900px){.pp-header nav{justify-content:flex-start;gap:4px}.pp-header nav button{flex:1 0 auto}}

/* Pastel navigation cards and family controls, shared by EN and TR. */
.pp-header nav{gap:7px}
.pp-header nav button{--tab-bg:#eee7ff;--tab-edge:#d8c7fa;--tab-ink:#54329b;background:linear-gradient(145deg,#fff,var(--tab-bg));color:var(--tab-ink);border:1px solid var(--tab-edge);border-radius:14px;min-height:44px;padding:11px 13px;font-weight:700;box-shadow:inset 0 1px 0 #fff,0 3px 8px #36215a08;transition:box-shadow .16s,transform .16s}
.pp-header [data-pp-tab="development"]{--tab-bg:#e0f6ef;--tab-edge:#b8e4d5;--tab-ink:#25644f}
.pp-header [data-pp-tab="cards"]{--tab-bg:#fff1d6;--tab-edge:#efd49f;--tab-ink:#80551c}
.pp-header [data-pp-tab="account"]{--tab-bg:#e4efff;--tab-edge:#c3d7f4;--tab-ink:#325b8b}
.pp-header [data-pp-tab="add-child"]{--tab-bg:#ffe9e3;--tab-edge:#f3cbbf;--tab-ink:#914f3b}
.pp-header [data-pp-tab="invite"]{--tab-bg:#f9e7f1;--tab-edge:#ebc8dc;--tab-ink:#874768}
.pp-header nav button:hover{transform:translateY(-1px);box-shadow:0 5px 12px #36215a12}
.pp-header nav button[aria-pressed="true"]{background:var(--tab-bg);color:var(--tab-ink);border-color:var(--tab-ink);box-shadow:inset 0 -3px 0 var(--tab-ink),0 3px 10px #36215a10}
.pp-header-actions>label{display:flex;align-items:center;min-width:0;border-radius:15px;background:linear-gradient(145deg,#fff,#eee8fb);border:1px solid #d9cdef;box-shadow:inset 0 1px 0 #fff,0 3px 10px #36215a08}
.pp-header-actions>label::before{content:'';width:10px;height:10px;flex-shrink:0;margin-left:14px;background:#8560d4;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 3px #e2d6f5}
.pp-header-actions select{min-height:44px;min-width:125px;max-width:190px;border:0;background:transparent;font-weight:700;font-size:13px;padding:10px 12px;color:#493764;cursor:pointer}
.pp-header .pp-sign-out{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 14px;border-radius:14px;border:1px solid #edcbd1;background:linear-gradient(145deg,#fff,#fcebef);color:#8e4055;font-weight:700;box-shadow:inset 0 1px 0 #fff,0 3px 8px #71344708}
.pp-header .pp-sign-out::before{content:'↪';font-size:19px;line-height:1}
.pp-header .pp-sign-out:hover{background:#f9dfe6;border-color:#d9a5b1;color:#793247}
@media(max-width:900px){.pp-header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pp-header nav button{white-space:normal;line-height:1.35;padding:10px 8px}}
@media(max-width:600px){.pp-header-actions{gap:10px;flex-wrap:nowrap}.pp-header-actions>label{flex:1}.pp-header-actions select{width:100%;max-width:none;min-width:0}.pp-header nav button{font-size:12px}.pp-header .pp-sign-out{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.pp-header nav button{transition:none}.pp-header nav button:hover{transform:none}}


/* Teacher tools stay in the classroom; reports use the shared portal tabs. */
body.teacherPortal:not([data-pp-view="classroom"]) [data-teacher-classroom],
body.teacherPortal[data-pp-view="classroom"] [data-teacher-reports]{display:none!important}
body.teacherPortal #main{max-width:1240px;margin-inline:auto}
body.teacherPortal .pp-header button:disabled{opacity:.5;cursor:default}
body.teacherPortal .pp-header nav{grid-template-columns:repeat(2,minmax(0,1fr))}
