/* Citizen web app: same SPA as citizen.html/mobile.css, laid out for a desktop tab instead of a phone canvas. Loads after style.css (desktop base primitives: .btn/.row/.panel/.chip/.cards/.two-col/.split/.stats/.chat/.fund-hero, all already desktop-sized) and brand.css (logo lockup). app.js only ever queries `.mobile-app`, `.bottomnav a` and `header .brand` — this file never needs those selectors renamed, so the SPA logic in app.js/ai.js stays untouched. */
img.avatar{object-fit:cover;display:inline-block;vertical-align:middle;border-radius:50%;flex-shrink:0;background:#EDF3F7;width:32px;height:32px}
.mobile-app{background:transparent}
.mobile-app>header{padding:0 40px;background:#fff}
.bottomnav{display:flex;position:static;flex-wrap:wrap;transform:none;width:auto;height:auto;left:auto;right:auto;bottom:auto;align-items:center;justify-content:center;gap:33px;padding:0 40px;background:#fff;border-top:0;border-bottom:1px solid var(--line);box-shadow:none;z-index:auto}
.bottomnav a{flex-direction:row;gap:0;font-size:14px;color:#64748B;min-width:0;padding:33px 0;border-radius:0;border-bottom:2px solid transparent}
.bottomnav a span{font-size:14px;margin:0;font-weight:600}
.bottomnav a:hover{background:none;color:#0069C4}
.bottomnav a.active{background:none;color:#0069C4;font-weight:700;border-bottom-color:#0069C4}
.bottomnav a.active span{border:0;padding:0}
.bottomnav svg{display:none}
.bottomnav .ai-nav{margin-top:0;min-width:0;padding:11px 22px;border-radius:30px;background:#fff;color:#0D4F98;border:1px solid #0D4F98}
.bottomnav .ai-nav:hover{background:#F7F8F9}
.bottomnav .ai-nav.active{background:#0D4F98;color:#fff;border-color:#0D4F98}
.bottomnav .ai-nav b{background:none;border:0;width:auto;height:auto;color:inherit;font-size:16px;box-shadow:none;border-radius:0;display:inline}
.account:hover{border-color:#0069C4}
.mobile-app .brand[hidden]{display:flex!important}
.app-back,.mobile-app .subpage-title{display:none}
footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 32px}
footer>a:last-child{position:static}
.mobile-app[data-page=home] main,.mobile-app[data-page=detail] main,.mobile-app[data-page=wallet] main,.mobile-app[data-page=ai] main,.mobile-app[data-page=success] main,.mobile-app[data-page=join] main{max-width:1120px}
.mobile-app[data-page=success] main{text-align:center}

/* Home: style.css never styled these — app.js grew them straight into mobile.css instead of the (unused) .hero-grid/.wallet-mini/.shortcuts/.impact classes above. */
.greeting{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
.greeting h1{font-size:34px}
.location-pill{font-size:13px;background:#F7F8F9;border-radius:30px;padding:8px 14px;color:#64748B;white-space:nowrap}
.family-picker{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.family-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:40px;padding:8px 16px 8px 8px;font-size:14px;min-height:44px}
.family-pill .avatar{width:30px;height:30px}
.family-pill.active{background:#EDF3F7;border-color:#0069C4;color:#0069C4;font-weight:700}
.family-pill.active .avatar{background:#DCEBFA}
.app-wallet{background:#0D4F98;color:#fff;padding:32px 36px;border-radius:24px;position:relative}
.app-wallet .wallet-top{display:flex;justify-content:space-between;font-size:13px;color:#DCEBFA;margin-bottom:16px}
.app-wallet .wallet-top span:last-child{border:1px solid #ffffff50;border-radius:5px;padding:2px 8px;font-size:10px;letter-spacing:1px}
.app-wallet .balance{font-size:44px;font-weight:700;letter-spacing:-1px;margin:0 0 20px}
.app-wallet .balance span{font-size:24px;margin-left:6px}
.app-wallet .wallet-link{position:absolute;right:36px;top:32px;width:44px;height:44px;border:1px solid #ffffff50;border-radius:50%;display:grid;place-items:center;color:#fff}
.app-wallet .wallet-bottom{display:flex;gap:32px;border-top:1px solid #ffffff30;padding-top:18px;font-size:14px;color:#DCEBFA}
.app-wallet .wallet-bottom b{color:#fff;margin-left:6px}
.recommend-label{display:inline-flex;align-items:center;font-size:11px;background:#EDF3F7;color:#0069C4;border-radius:6px;padding:3px 8px;margin-left:8px;letter-spacing:.4px;vertical-align:middle}
.home-recommendations{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.home-recommendations+.ai-entry{margin-top:28px}
.ai-entry{display:flex;align-items:center;gap:16px;padding:20px 24px;border:1px solid var(--line);border-radius:18px;background:#F7F8F9;margin:24px 0}
.ai-entry:hover{border-color:#0069C4}
.ai-spark{width:48px;height:48px;border-radius:16px;background:#DCEBFA;color:#0069C4;font-size:28px;display:grid;place-items:center;flex-shrink:0}
.ai-entry b{font-size:16px}
.ai-entry p{font-size:13px;color:#64748B;margin-top:4px}
.ai-entry>span:last-child{margin-left:auto;color:#64748B;font-size:20px}
.home-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}
.home-categories a{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13px;font-weight:700;padding:22px 10px;border:1px solid var(--line);border-radius:16px}
.home-categories a:hover{border-color:#0069C4;background:#F7F8F9}
.home-categories i{font-style:normal;background:#F7F8F9;color:#0069C4;width:52px;height:52px;border-radius:18px;display:grid;place-items:center;font-size:26px;font-weight:400}
.home-categories svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mobile-hero{display:block;position:relative;height:260px;overflow:hidden;border-radius:24px;margin:28px 0 0;background:#64748B}
.mobile-hero img{width:100%;height:100%;object-fit:cover;object-position:center 55%}
.mobile-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#002664bd,#00266400)}
.mobile-hero-copy{position:absolute;left:40px;top:40px;z-index:1;color:#fff;max-width:70%}
.mobile-hero-copy small{color:#D2D9E5;font-size:11px;letter-spacing:2px}
.mobile-hero-copy h2{font-size:32px;line-height:1.35;margin:10px 0 14px}
.mobile-hero-copy span{font-size:14px}
.mini-impact{margin-top:32px;padding:28px 32px;background:#F7F8F9;border-radius:20px}
.mini-impact .impact-top{display:flex;justify-content:space-between;align-items:center}
.mini-impact h3{font-size:19px}
.mini-impact p{font-size:13px;color:#64748B;margin:8px 0 20px}
.mini-impact .impact-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:380px}
.impact-stats small{font-size:12px;color:#64748B}
.impact-stats strong{font-size:28px;display:block;margin-top:4px}

/* Program detail · checkout: also mobile.css-only classes, plus the fixed purchase bar becomes a static summary card. */
.program-detail h1{font-size:38px;margin:16px 0 8px}
.price-summary{margin:24px 0;padding:24px 28px;background:#EDF3F7;border-radius:20px}
.price-summary .field{margin:0}
.price-summary .row{margin-top:10px}
.eligibility-note{color:#B42318;font-size:13px;margin-top:10px}
.detail-section{padding:28px 0;border-bottom:1px solid var(--line)}
.detail-section h2{margin-bottom:16px}
.schedule-details summary{cursor:pointer;font-size:15px;font-weight:700;padding:16px 0;min-height:44px}
.purchase-bar{position:static;margin-top:28px;padding:20px 28px;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:none;width:auto;max-width:none}
.purchase-bar strong{font-size:26px}
.purchase-bar .btn{min-width:160px}
.mobile-app[data-page=checkout] main{max-width:1040px}
.mobile-app[data-page=checkout] .purchase-bar{max-width:none}

/* Wallet */
.wallet-person{margin:12px 0 28px}
.profile-select{display:flex;align-items:center;gap:14px}
.wallet-person .profile-face{width:56px;height:56px}
.wallet-orders{padding:28px 0;border-bottom:1px solid var(--line);margin-bottom:24px}
.wallet-orders h2{margin-bottom:16px}
.wallet-empty{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 0}
.wallet-ai-link{display:flex;align-items:center;gap:14px;background:#F7F8F9;border:1px solid var(--line);border-radius:18px;padding:20px 24px;margin-bottom:24px}
.wallet-ai-link:hover{border-color:#0069C4}
.wallet-details{border-bottom:1px solid var(--line);padding:8px 0}
.wallet-details summary{cursor:pointer;font-size:15px;font-weight:700;padding:16px 0}
.wallet-details summary span{float:right;font-weight:400;color:#64748B}
.details-body{padding:0 0 24px}
.family-section{padding-top:28px}
.family-section h2{margin-bottom:16px}
.family-row{display:flex;align-items:center;gap:14px;padding:14px 16px;width:100%;text-align:left;border-radius:12px;border-bottom:1px solid #EDF3F7;font-size:14px}
.family-row:hover{background:#F7F8F9}
.family-row.active{background:#EDF3F7}
.family-row img.avatar{width:44px;height:44px}
.family-row>span:last-child{margin-left:auto;color:#0069C4;font-size:13px;white-space:nowrap}

/* AI assistant: ai.js injects its own <style> per render, this only widens the chat column and un-does the mobile-only sticky offset. */
.ai-chat{max-width:none}
.mobile-app[data-page=ai] .ai-prompts{grid-template-columns:repeat(4,1fr)}
.ai-message{max-width:640px}
.ai-message.ai-user{margin-left:auto!important}
.ai-composer{bottom:20px}

/* Fund · community: style.css's .fund-hero/.split/.panel/.two-col already fit a desktop width, only the reading column needed trimming for balance. */
.mobile-app[data-page=fund] main,.mobile-app[data-page=community] main{max-width:1080px}

/* Inje Blue reused from mobile.css's own color pass — kept identical so the mobile app and web app read as one product. */
:focus-visible{outline-color:#0069C4}
