.portal-nav{display:flex;justify-content:center;gap:6px;padding:10px 18px;background:#fff;border-bottom:1px solid var(--blue-100);overflow-x:auto}.portal-nav a{display:flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border-radius:14px;color:var(--blue-700);font-weight:900;text-decoration:none;white-space:nowrap}.portal-nav a:hover{background:var(--blue-50)}.child-picker{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.child-picker h2{margin:0}.child-tabs{display:flex;flex-wrap:wrap;gap:8px}.child-tab{display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border:2px solid var(--blue-100);border-radius:99px;color:var(--blue-700);background:#fff;font-weight:900;text-decoration:none}.child-tab.active{color:#fff;background:var(--blue-600);border-color:var(--blue-600)}.portal-hero{display:flex;justify-content:space-between;align-items:center;min-height:220px;padding:34px;margin-bottom:20px;border-radius:32px;overflow:hidden}.parent-hero{background:linear-gradient(135deg,#fff,var(--blue-100));border:1px solid var(--blue-200)}.student-hero{background:linear-gradient(135deg,#dff4ff,#7ad5ff);border:1px solid var(--blue-300)}.portal-hero h1{margin:0;font-size:clamp(34px,6vw,58px);line-height:1.05}.portal-hero p{color:var(--muted);font-weight:800}.portal-illustration{display:grid;place-items:center;width:130px;height:130px;border-radius:38px;background:#fff9;color:var(--blue-600);font-size:54px;transform:rotate(7deg)}.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:230px;padding:24px;border-radius:26px;border:1px solid #fff8;box-shadow:var(--shadow)}.portal-card h2{margin:3px 0 8px;font-size:26px}.portal-card p{margin:4px 0;color:var(--muted)}.portal-card .big-value{font-size:30px;color:var(--text);font-weight:900}.accent-sky{background:linear-gradient(145deg,#fff,#dff4ff)}.accent-yellow{background:linear-gradient(145deg,#fff,#fff3c7)}.accent-green{background:linear-gradient(145deg,#fff,#dcf8eb)}.accent-purple{background:linear-gradient(145deg,#fff,#eee5ff)}.portal-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:14px;border-radius:16px;background:#fff;color:var(--blue-700);font-size:24px}.portal-link{align-self:flex-start;margin-top:auto;padding-top:15px;color:var(--blue-700);font-weight:900}.friendly-status{display:inline-flex;align-self:flex-start;padding:8px 12px;border-radius:99px;font-weight:900}.friendly-status.active{background:#dff4ff;color:#0872ae}.friendly-status.low_balance{background:#fff0b5;color:#795d00}.friendly-status.package_exhausted{background:#ffe1e7;color:#a12840}.mini-progress{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.mini-progress span{display:grid;padding:11px;border-radius:14px;background:#fff9}.mini-progress small{color:var(--muted)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.section-heading h1{font-size:clamp(32px,5vw,48px);margin:0}.section-heading p{margin:4px 0;color:var(--muted)}.child-tabs.compact{justify-content:flex-end}.portal-list{display:grid;gap:14px}.portal-row{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:center}.portal-row time{display:grid;place-items:center;min-height:82px;padding:10px;border-radius:18px;background:var(--blue-100);color:var(--blue-700);text-align:center}.portal-row time strong{font-size:20px}.portal-row h2{margin:0 0 4px}.portal-row p{margin:3px 0;color:var(--muted)}.friendly-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.friendly-badges span{padding:7px 11px;border-radius:99px;background:var(--blue-50);color:var(--blue-700);font-size:12px;font-weight:900}.soft-note{padding:12px 14px!important;border-radius:14px;background:var(--blue-50);color:var(--text)!important}.friendly-empty{padding:38px;text-align:center;color:var(--muted);font-weight:800}.spr-portal-card header{display:flex;justify-content:space-between;gap:12px}.spr-portal-card h2{margin:3px 0}.portal-progress{margin-bottom:16px}.package-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.package-overview .portal-card{min-height:160px}.package-history{margin-top:24px}.package-cycle{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:12px}.package-cycle p{margin:4px 0;color:var(--muted)}.package-cycle>div:last-child{display:grid;text-align:right}.profile-card{display:flex;align-items:center;gap:22px}.profile-avatar{display:grid;place-items:center;width:90px;height:90px;border-radius:28px;background:linear-gradient(135deg,var(--blue-400),var(--blue-700));color:#fff;font-size:40px;font-weight:900}.profile-card h2{margin:4px 0}.profile-card p{color:var(--muted)}
@media(max-width:760px){body{padding-bottom:78px}.portal-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;justify-content:flex-start;padding:8px 10px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -10px 28px #0872ae1a}.portal-nav a{flex:1;min-width:68px;min-height:56px;flex-direction:column;justify-content:center;gap:1px;padding:4px 8px;font-size:11px}.portal-nav a span{font-size:18px}.child-picker{align-items:flex-start;flex-direction:column}.portal-hero{min-height:180px;padding:24px}.portal-illustration{width:82px;height:82px;border-radius:25px;font-size:34px}.portal-grid{grid-template-columns:1fr}.portal-card{min-height:210px}.section-heading{align-items:flex-start;flex-direction:column}.child-tabs.compact{justify-content:flex-start}.portal-row{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:16px}.portal-row time{min-height:70px}.spr-portal-card{padding:18px}.spr-portal-card header{align-items:flex-start}.package-overview{grid-template-columns:1fr 1fr}.package-overview .portal-card{min-height:140px;padding:18px}.package-cycle{align-items:flex-start}.profile-card{align-items:flex-start;padding:20px}}
@media(max-width:390px){.page{width:calc(100% - 18px)}.topbar{padding:10px 12px}.brand-mark{width:42px;height:42px}.portal-hero{padding:20px}.portal-hero h1{font-size:34px}.portal-illustration{width:68px;height:68px}.package-overview{grid-template-columns:1fr}.package-cycle{display:grid}.package-cycle>div:last-child{text-align:left}.mini-progress{grid-template-columns:1fr}.portal-progress div{display:grid}}
