/* Wali portal, one consistent spacing and typography scale across all screens. */
:root{--primary:#246cce;--primary-dark:#1957af;--ink:#20354e;--muted:#78889c;--line:#e4eaf2;--shadow-lg:0 8px 24px #19385d08;--shadow-md:none;--shadow-sm:none}html,body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:#eaf0f7;line-height:1.5}.device-wrap{padding:0}.phone-shell{max-width:640px;box-shadow:none;border-radius:0;background:#f6f8fc;overflow:clip}.main-screen{padding:0 20px calc(104px + env(safe-area-inset-bottom));background:#f6f8fc;min-height:100dvh}.home-hero{margin:0 -20px;padding:calc(25px + env(safe-area-inset-top)) 20px 30px;min-height:178px;background-image:linear-gradient(100deg,#0e3459ed,#153a6c9c),url('gapura.jpg');background-position:center 51%;background-size:cover}.home-hero-row{gap:12px;align-items:flex-start}.home-hero-row .wali-brand-logo{width:46px;height:46px;border-radius:14px;padding:4px}.home-title p{font-size:9px;letter-spacing:.045em;font-weight:500;line-height:1.6;max-width:220px;margin-bottom:7px;color:#e1edfb}.home-title h1{font-size:25px;font-weight:650;letter-spacing:-.6px;line-height:1.2}.home-title span{font-size:11px;line-height:1.65;max-width:215px;font-weight:400;letter-spacing:0;color:#e2edfb}.header-action{width:40px;height:40px;border-radius:12px;background:#ffffff1a;border:1px solid #ffffff2b}.home-content{margin-top:18px;gap:16px}.home-content>#portal-child-picker{order:0}.home-content>.balance-card{order:1}.home-content>#portal-banners{order:2}.home-content>.portal-menu{order:3}.home-content>.panel-card{order:4}.home-content>.portal-utility{order:5}#portal-child-picker{margin:0 0 18px;padding:14px 16px;border-radius:14px;border-color:#e1e8f1;box-shadow:none}#portal-child-picker label{font-size:11px;gap:6px;color:#7c8da2}#portal-child-picker select{border:0;padding:5px 0;background:transparent;font-size:15px;min-height:32px;font-weight:600;color:#365375}.balance-card{padding:20px;border-radius:18px;border:1px solid #d9e7f6;box-shadow:none;background:linear-gradient(120deg,#fff,#f0f6ff);gap:14px;align-items:center}.balance-card>div{flex:1 1 130px}.balance-card p{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#677f9d}.balance-card h2{font-size:30px;letter-spacing:-.7px;font-weight:650;line-height:1.2;margin:7px 0}.balance-card #studentNameLine{font-size:11px;line-height:1.6;color:#7c8fa5}.topup-btn{height:42px;min-height:42px;font-size:12px;gap:7px;background:#246cce;color:#fff;border-radius:11px;padding:0 13px}.topup-btn .icon{width:15px;height:15px}.portal-balance-history{font-size:11px;color:#4f739a;padding-top:13px;border-top:1px solid #dfe9f5}.portal-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px 10px;background:#fff;border:1px solid #e3e9f2;border-radius:18px}.portal-menu .menu-card{border:0;border-radius:12px;padding:10px 3px;min-height:92px;background:transparent;box-shadow:none}.portal-menu .menu-card:hover,.portal-menu .menu-card:focus-visible{background:#f3f7fd}.portal-menu .menu-icon{width:44px;height:44px;border-radius:14px;margin:0 auto 10px}.portal-menu strong{font-size:11px;font-weight:550;color:#46607d}.portal-menu .menu-icon .icon{width:21px;height:21px}.panel-card,.profile-card,.list-item,.stat-card{border:1px solid #e2e9f2;box-shadow:none;border-radius:16px;padding:18px}.panel-head{align-items:center;margin-bottom:16px}.panel-head h3{font-size:16px;font-weight:650;letter-spacing:-.2px;margin:0}.panel-head>a{font-size:11px;color:#3878c8;white-space:nowrap}.portal-banner{border-radius:16px;border-color:#e1e8f1}.portal-banner strong{font-size:14px;font-weight:600;margin:14px 16px 7px}.portal-banner p{font-size:12px;line-height:1.7;margin:0 16px 16px}.portal-post h3{font-size:16px;font-weight:600;line-height:1.5;margin:10px 0}.portal-post p{color:#6a7f96;font-size:12px;line-height:1.8;margin:10px 0}.portal-post small{font-size:10px;color:#8796a7}.portal-utility{padding:4px 0 10px;font-size:11px;color:#7b8fa5;gap:24px}.page-header{min-height:88px;margin:0 -20px;padding:calc(16px + env(safe-area-inset-top)) 20px 16px;background:#fff;border-color:#e4eaf2;gap:12px}.page-title h1{font-size:20px;line-height:1.3;font-weight:650;letter-spacing:-.4px}.page-title p{font-size:11px;color:#8491a3;line-height:1.6}.back-btn,.header-spacer{width:40px;height:40px;border-radius:12px;box-shadow:none;background:#f8fafd;border-color:#e7edf5}.header-spacer{visibility:hidden}.page-header .header-action.blue{background:#edf4ff;border:0;color:#3676c9;width:40px;height:40px}.page-body{padding-top:18px}.bottom-nav{width:min(640px,100%);bottom:0;border-radius:0;border-top:1px solid #e0e7f0;background:#fffffffa;padding:8px 8px calc(8px + env(safe-area-inset-bottom));gap:4px}.quick{height:56px;min-width:0;padding:6px 2px;gap:5px;font-size:10px;font-weight:500;border-radius:11px;color:#8593a5;letter-spacing:0}.quick.active{background:#edf4ff;color:#2a6dd0}.quick .icon{width:21px;height:21px}.portal-dialog{padding:26px;border-radius:22px;font-family:inherit}.portal-dialog h2{font-weight:650;line-height:1.3;letter-spacing:-.5px;font-size:23px}.portal-dialog form{gap:18px}.portal-dialog label{font-size:12px}.primary-btn,.ghost-btn{font-weight:600;font-size:13px;border-radius:11px;min-height:46px}.portal-form{gap:18px}.portal-form textarea{min-height:110px;resize:vertical}.portal-form input,.portal-form textarea,.portal-filter select{border-radius:11px;background:#f8fafd;min-height:46px;font-size:16px}.portal-form h3,#portal-service .panel-card h3{font-size:16px;font-weight:650;letter-spacing:-.2px;margin:0 0 12px}.portal-actions{gap:9px}.portal-log{padding:17px 0}.portal-log strong{font-size:13px;font-weight:600}.portal-log p{color:#6f8197}.portal-balance{font-size:29px;font-weight:650}.profile-card h3{font-size:16px;font-weight:650}.profile-row strong{font-size:12px;font-weight:500}.profile-row span{font-size:11px}.stat-card p{font-size:10px;text-transform:none;letter-spacing:0;font-weight:500}.stat-card strong{font-size:24px}.pill{font-size:10px;line-height:1.5;font-weight:500}.auth-screen{padding:calc(32px + env(safe-area-inset-top)) 22px 40px;background-image:linear-gradient(100deg,#123956eb,#174170a8),url('gapura.jpg');background-size:auto 300px;background-position:center top;background-repeat:no-repeat;background-color:#f6f8fc;min-height:100dvh}.auth-brand{padding-bottom:32px;max-width:480px}.auth-brand h1{font-size:28px;font-weight:650}.auth-brand p{font-weight:500;letter-spacing:.03em}.auth-brand span{font-size:12px;line-height:1.7}.auth-card{padding:25px;border-radius:20px;border-color:#e2e9f2;box-shadow:0 12px 32px #12365a0b;max-width:480px}.auth-card h2{font-size:23px;font-weight:650;letter-spacing:-.5px}.auth-card .portal-muted{font-size:12px;line-height:1.8}.auth-card .secure-note{font-size:11px;line-height:1.8;font-weight:400}.input-shell{border-radius:11px}.field-group label{font-size:12px;font-weight:550}.ai-card{height:calc(100dvh - 200px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:16px}.portal-ai-tools{padding:10px;gap:8px}.portal-ai-tools button{font-weight:500;font-size:11px}.chat-bubble{font-size:13px;line-height:1.75;border-radius:15px}.chat-form{gap:8px}.chat-form input{height:46px}.chat-list{gap:14px}.wali-network{width:min(640px,100%)}.phone-shell :focus-visible{outline:2px solid #6fa2e5;outline-offset:3px}@media(min-width:768px){.device-wrap{padding:0 18px}.phone-shell{min-height:100dvh;border-radius:0;border-left:1px solid #dfe7f1;border-right:1px solid #dfe7f1}.main-screen,.auth-screen{min-height:100dvh}.bottom-nav{bottom:0;width:640px;max-width:calc(100% - 36px);border-radius:0}.wali-network{top:0;border-radius:0}.ai-card{height:calc(100dvh - 200px)}.toast{bottom:106px}}@media(max-width:360px){.main-screen{padding-left:14px;padding-right:14px}.home-hero,.page-header{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.home-hero{min-height:174px}.home-title h1{font-size:23px}.home-title p{font-size:8px}.home-title span{display:block;font-size:10px}.home-hero-row .wali-brand-logo{width:40px;height:40px}.home-hero-row{gap:9px}.header-action{width:36px;height:36px}.balance-card{padding:18px;gap:10px}.balance-card h2{font-size:26px}.topup-btn{padding:0 11px;font-size:11px}.portal-menu{gap:4px;padding:12px 7px}.portal-menu .menu-card{padding:10px 2px}.portal-menu strong{font-size:10px}.quick{font-size:9px}.portal-dialog{padding:22px}.portal-utility{gap:18px}}
