@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap");:root{--porcelain:#f5f8fb;--ink:#172034;--muted:#667085;--line:#dce4ee;--blue:#176bff;--teal:#28b7a0;--coral:#ff6b5e;--shadow:0 14px 34px rgba(23,32,52,0.08)}*{box-sizing:border-box}html{background:var(--porcelain)}body{margin:0;color:var(--ink);background:linear-gradient(rgba(23,107,255,.035) 1px,transparent 1px),var(--porcelain);background-size:100% 32px;font-family:Leelawadee UI,Noto Sans Thai,system-ui,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}a,button,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}:focus-visible{outline:3px solid rgba(23,107,255,.35);outline-offset:3px}.app-shell{width:min(100%,520px);min-height:100dvh;margin:0 auto;background:rgba(245,248,251,.94);position:relative}.legal-footer{display:flex;justify-content:center;gap:8px;padding:12px 16px 22px;color:var(--muted);font-size:.72rem}.legal-footer a:hover,.legal-page .text-link:hover{color:var(--blue)}.legal-page h1{margin:18px 0 4px;font-size:1.55rem}.legal-card{margin-top:20px;padding:20px}.legal-card h2{margin:0 0 6px;font-size:1rem}.legal-card p{margin:0 0 20px;color:var(--muted);font-size:.9rem}.legal-card p:last-child{margin-bottom:0}.page{min-height:100dvh;padding:20px 18px 104px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.page-title{margin:0;font-size:1.42rem;letter-spacing:-.025em}.eyebrow{margin:0 0 3px;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.eyebrow,.muted{color:var(--muted)}.small{font-size:.82rem}.card{background:var(--paper);border:1px solid rgba(220,228,238,.9);border-radius:20px}.section{margin-top:22px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.section-heading h2{margin:0;font-size:1rem}.text-link{color:var(--blue);font-weight:700;font-size:.85rem}.door-card{position:relative;overflow:hidden;background:var(--ink);color:white;border-radius:24px;padding:21px 20px 22px;box-shadow:0 18px 42px rgba(23,32,52,.22)}.door-card:after{content:"";position:absolute;width:118px;height:142px;right:-20px;top:18px;border:2px solid rgba(255,255,255,.14);border-bottom:0;border-radius:70px 70px 0 0}.door-card:before{content:"";position:absolute;width:7px;height:7px;right:29px;top:91px;border:3px solid var(--teal);border-radius:50%;z-index:1}.door-top{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-start}.brand-mark{display:flex;align-items:center;gap:9px;font-weight:800}.brand-dot{width:12px;height:12px;border-radius:3px 3px 7px 3px;background:var(--teal)}.room-number{margin:29px 0 2px;font-size:2.15rem;line-height:1;letter-spacing:-.045em}.room-meta,.room-number{position:relative;z-index:2}.room-meta{margin:0;color:#c5cedd;font-size:.86rem}.balance-card{margin-top:-7px;position:relative;z-index:3;padding:18px;border-radius:0 0 21px 21px}.balance-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.amount{margin:3px 0 0;font-size:1.9rem;line-height:1.1;font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;letter-spacing:-.04em}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:.74rem;font-weight:800;white-space:nowrap}.status-pill.pending{color:#9a5d05;background:#fff4dd}.status-pill.paid{color:#087765;background:#dff8f3}.status-pill.overdue{color:#bb3327;background:#ffebe8}.primary-button,.secondary-button{min-height:50px;border:0;border-radius:15px;padding:0 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .15s ease,filter .15s ease}.primary-button{color:white;background:var(--blue);box-shadow:0 10px 22px rgba(23,107,255,.23)}.secondary-button{color:var(--ink);background:#eaf0f7}.primary-button:active,.secondary-button:active{transform:scale(.98)}.primary-button:disabled{opacity:.55;cursor:not-allowed}.full-width{width:100%}.ledger{overflow:hidden}.ledger-head{display:flex;justify-content:space-between}.ledger-head,.ledger-row{padding:14px 16px;align-items:center;border-bottom:1px dashed var(--line)}.ledger-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:14px;gap:14px}.ledger-row:last-child{border-bottom:0}.ledger-label{display:flex;align-items:center;gap:10px;min-width:0}.icon-box{flex:0 0 auto;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--blue);background:#eaf1ff}.icon-box.teal{color:#087765;background:#e2f7f3}.ledger-row p{margin:0}.ledger-value{font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-align:right}.history-list{display:grid;grid-gap:10px;gap:10px}.history-item{padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-item p{margin:0}.month-box{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#eaf1ff;color:var(--blue);font-size:.75rem;font-weight:900;line-height:1.05;text-align:center}.history-main{flex:1 1;min-width:0;display:flex;gap:11px;align-items:center}.history-amount{text-align:right;font-weight:800}.bottom-nav{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);padding:8px 18px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);grid-gap:6px;gap:6px;background:rgba(255,255,255,.94);border-top:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.nav-item{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7a8698;font-size:.7rem;font-weight:800;border-radius:14px}.nav-item.active{color:var(--blue);background:#edf3ff}.back-link{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;background:white}.invoice-hero{padding:18px}.invoice-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.invoice-hero h2{margin:3px 0;font-size:1.3rem}.invoice-total{margin-top:22px;padding-top:16px;border-top:1px dashed var(--line);display:flex;align-items:flex-end;justify-content:space-between}.invoice-total strong{font-size:1.75rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.meter-table{width:100%;border-collapse:collapse;font-size:.83rem}.meter-table td,.meter-table th{padding:10px 4px;text-align:right;border-bottom:1px dashed var(--line);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.meter-table td:first-child,.meter-table th:first-child{text-align:left}.meter-table th{color:var(--muted);font-weight:700}.meter-wrap{padding:10px 14px 14px}.qr-card{padding:20px;text-align:center}.qr-frame{margin:16px auto;width:min(100%,264px);padding:14px;background:white;border:1px solid var(--line);border-radius:20px}.qr-frame img{display:block;width:100%;height:auto}.payee{padding:12px 14px;background:#f0f4f8;border-radius:13px;text-align:left}.payee p{margin:0}.notice{border-left:4px solid var(--amber);padding:12px 14px;border-radius:6px 14px 14px 6px;background:#fff8e9;color:#765217;font-size:.84rem}.upload-box{position:relative;border:1.5px dashed #afbdcf;border-radius:18px;min-height:150px;display:grid;place-items:center;overflow:hidden;background:#f8fafc}.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-prompt{text-align:center;padding:24px;color:var(--muted)}.upload-preview{width:100%;max-height:320px;object-fit:contain}.form-field{display:grid;grid-gap:7px;gap:7px;margin-top:14px}.form-field label{font-size:.84rem;font-weight:800}.input{width:100%;min-height:49px;border:1px solid var(--line);background:white;border-radius:13px;padding:0 13px;color:var(--ink)}.success-panel{text-align:center;padding:30px 20px}.success-icon{width:66px;height:66px;margin:0 auto 13px;border-radius:50%;display:grid;place-items:center;color:#087765;background:#dff8f3}.claim-page{display:flex;flex-direction:column;justify-content:center;padding-bottom:32px}.claim-door{width:112px;height:146px;margin:0 auto 22px;border:solid var(--ink);border-width:7px 7px 10px;border-radius:58px 58px 8px 8px;position:relative;background:white;box-shadow:inset -15px 0 #eaf1ff}.claim-door:after{content:"";width:9px;height:9px;position:absolute;right:15px;top:77px;border-radius:50%;background:var(--teal)}.claim-content{text-align:center}.claim-content h1{font-size:1.65rem;line-height:1.3;margin:0 0 8px}.claim-details{margin:22px 0;overflow:hidden;text-align:left}.claim-detail{display:flex;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px dashed var(--line)}.claim-detail:last-child{border-bottom:0}.error-text{margin:9px 0 0;color:#bd3025;font-size:.82rem;font-weight:700}.skeleton{border-radius:12px;background:linear-gradient(90deg,#e7edf4 25%,#f4f7fa 50%,#e7edf4 75%);background-size:200% 100%;animation:shimmer 1.4s infinite}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes shimmer{to{background-position:-200% 0}}@media (min-width:520px){body{padding:18px 0}.app-shell{border-radius:28px;overflow:hidden;min-height:calc(100dvh - 36px);box-shadow:0 20px 70px rgba(23,32,52,.16)}.bottom-nav{bottom:18px;border-radius:0 0 28px 28px}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}:root{--porcelain:#f4f7fc;--paper:#ffffff;--ink:#17233f;--muted:#71809a;--line:#e4eaf3;--blue:#4f46e5;--teal:#0ea99a;--coral:#ef6a67;--amber:#e6a23c;--shadow:0 16px 42px rgba(29,44,78,.085)}body{font-family:Noto Sans Thai,Leelawadee UI,Tahoma,system-ui,sans-serif;background:radial-gradient(circle at 85% -5%,rgba(79,70,229,.14),transparent 22rem),var(--porcelain)}.app-shell{background:rgba(244,247,252,.92)}.card{border-radius:22px;border-color:#e3e9f3;box-shadow:var(--shadow)}.door-card{background:radial-gradient(circle at 90% 10%,rgba(133,125,255,.42),transparent 12rem),linear-gradient(145deg,#131d3b,#243b78);border-radius:28px;box-shadow:0 20px 46px rgba(23,35,63,.24)}.door-card:after{border-color:rgba(255,255,255,.19)}.balance-card{border-radius:0 0 23px 23px}.primary-button{background:linear-gradient(135deg,#5b55ed,#356ee8);box-shadow:0 12px 25px rgba(79,70,229,.25)}.secondary-button{background:#edf1f8}.primary-button,.secondary-button{border-radius:16px;transition:transform .2s ease,box-shadow .2s ease}.primary-button:hover{box-shadow:0 16px 30px rgba(79,70,229,.3);transform:translateY(-1px)}.history-item,.invoice-hero,.ledger,.qr-card,.success-panel{border-radius:22px}.ledger-head{padding:16px 18px}.ledger-row{padding:15px 18px}.icon-box{border-radius:13px}.icon-box,.month-box{background:#eef0ff;color:#5148d8}.status-pill.pending{background:#fff5df}.status-pill.paid{background:#def8f3}.status-pill.overdue{background:#ffeded}.back-link{background:rgba(255,255,255,.86);border-radius:14px}.qr-frame{border-radius:22px;box-shadow:0 10px 30px rgba(29,44,78,.07)}.payee{background:#f3f5fb;border-radius:15px}.notice{border-radius:12px 18px 18px 12px}.upload-box{border-radius:20px;background:#f8faff;border-color:#c7d1e2}.input{min-height:42px;height:42px;border-radius:10px;border-color:#dbe3ef;padding:0 12px;font-size:.9rem;outline:none;transition:border-color .16s ease,box-shadow .16s ease}.input:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.13)}.bottom-nav{background:rgba(255,255,255,.9);border:1px solid rgba(228,234,243,.9);border-bottom:0;box-shadow:0 -10px 28px rgba(29,44,78,.06)}.nav-item.active{color:#5148d8;background:#eef0ff}