@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{font-family:'IBM Plex Sans Thai','Plus Jakarta Sans',sans-serif;color:#19334f;background:#f6faff;--blue:#3b99f5;--line:#e7eef8;--muted:#7f94ac;--shadow:0 9px 30px rgba(50,105,160,.042)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{text-decoration:none;color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}svg use{fill:none}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.blue{color:var(--blue)}[hidden]{display:none!important}
.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;flex:0 0 260px;width:260px;height:100dvh;min-height:660px;background:white;border-right:1px solid var(--line);padding:29px 16px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;margin:0 10px 50px;font:800 22px 'Plus Jakarta Sans',sans-serif;letter-spacing:-.065em}.brand-mark{width:37px;height:37px;border-radius:12px;background:linear-gradient(130deg,#6ccaff,#428fea);display:grid;place-items:center;color:white;box-shadow:0 5px 18px #69b8fc66}.brand-mark svg{width:24px;height:24px;stroke:none;fill:currentColor}.sidebar-section{color:#a9b7c9;font:800 10px 'Plus Jakarta Sans',sans-serif;letter-spacing:.15em;padding:0 17px;margin-bottom:12px}.sidebar-section:not(:first-of-type){margin-top:26px}.side-links{display:grid;gap:5px}.nav-link{border:0;background:transparent;color:#73879c;text-align:left;width:100%;padding:13px 15px;border-radius:13px;display:flex;align-items:center;gap:13px;font-size:13px;font-weight:600;transition:background .2s,color .2s}.nav-link:hover{background:#f5faff;color:#318eec}.nav-link.selected{background:#e9f5ff;color:#2685e5}.nav-link svg{width:18px;height:18px}.nav-bubble{font:700 9px 'Plus Jakarta Sans',sans-serif;color:#8dabce;background:#f5faff;padding:5px 7px;border-radius:8px;margin-left:auto}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:17px}.help-card{border:1px solid #dfedf9;border-radius:17px;background:linear-gradient(140deg,#f4faff,#eaf4ff);padding:17px 15px;display:flex;gap:10px;flex-direction:column}.help-icon{width:32px;height:32px;background:white;border:1px solid #dcefff;color:#3996e8;display:grid;place-items:center;border-radius:10px}.help-card strong{font:800 12px 'Plus Jakarta Sans',sans-serif;line-height:1.6;color:#547998}.help-card span{font-size:10px;color:#8ca9c4}.logout{border-top:1px solid var(--line);border-radius:0;padding-top:18px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:83px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.4vw,55px);background:#fff;border-bottom:1px solid var(--line)}.top-left,.top-actions{display:flex;align-items:center;gap:14px}.breadcrumbs{font-size:13px;color:#9eafc1}.breadcrumbs span{margin:0 9px;color:#d1dce9}.breadcrumbs b{color:#49677f;font-weight:600}.top-actions{gap:14px}.live-indicator{display:flex;align-items:center;gap:8px;border:1px solid #e4f3ea;background:#f3fcf7;border-radius:30px;color:#69a988;padding:8px 12px;font:800 10px 'Plus Jakarta Sans',sans-serif;letter-spacing:.05em}.live-indicator span{background:#73cf9d;width:6px;height:6px;border-radius:50%}.user-avatar{width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#3e9de9,#79cefa);display:grid;place-items:center;color:white;font-weight:700}.user-meta{display:grid;gap:1px}.user-meta strong{font-size:12px;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}.user-meta small{color:#a4b4c4;font:600 10px 'Plus Jakarta Sans',sans-serif}.mobile-nav{display:none;border:0;background:#f1f8ff;color:var(--blue);padding:8px;border-radius:10px}.workspace main{width:min(100%,1500px);padding:clamp(25px,3.25vw,51px);margin:0 auto;flex:1}.page-view{animation:rise .35s ease both}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:31px}.overline{font:800 10px 'Plus Jakarta Sans',sans-serif;color:var(--blue);letter-spacing:.16em;margin:0 0 10px}.heading-row h1{font-size:clamp(26px,2.6vw,36px);font-weight:700;letter-spacing:-.045em;margin:0 0 4px}.subtext{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:13px 18px;border:0;font-size:12px;font-weight:700;white-space:nowrap;transition:transform .2s,background .2s,box-shadow .2s}.button svg{width:17px;height:17px}.button-primary{background:linear-gradient(130deg,#3c94ed,#64b9ff);color:white;box-shadow:0 9px 22px rgba(55,151,240,.18)}.button-primary:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 14px 25px rgba(55,151,240,.28)}.button-secondary{background:#ecf6ff;color:#398de1;border:1px solid #d9eafd}.button-secondary:not(:disabled):hover{background:#dff0ff}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:21px}.stats-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card,.panel{border-radius:19px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow)}.stat-card{padding:23px 22px;min-height:184px;display:flex;align-items:flex-start;flex-direction:column}.stat-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;margin-bottom:14px}.stat-icon svg{width:21px;height:21px}.sky{background:#ebf6ff;color:#469def}.violet{background:#f1efff;color:#9888e9}.mint{background:#e8faf4;color:#42b991}.peach{background:#fff3eb;color:#e7a068}.stat-caption{color:#889aae;font-size:12px}.stat-number{font:800 clamp(22px,2vw,30px) 'Plus Jakarta Sans','IBM Plex Sans Thai',sans-serif;color:#213a54;letter-spacing:-.055em;margin-top:8px;overflow-wrap:anywhere}.stat-number small{font:700 13px 'Plus Jakarta Sans',sans-serif;color:#8ea9c2;letter-spacing:0}.stat-foot{margin-top:6px;color:#aec0d1;font-size:10px}.panel{padding:24px 25px;margin-bottom:21px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.panel-head h2{font-size:16px;font-weight:700;margin:0 0 5px;color:#27445e;letter-spacing:-.02em}.panel-head p{font-size:12px;color:#9cacc0;margin:0}.segmented{background:#f5f8fd;border:1px solid #edf1f8;border-radius:10px;padding:4px;display:inline-flex;align-items:center;flex-shrink:0}.segmented button{font-size:11px;color:#8297ae;background:none;border:0;border-radius:7px;padding:8px 13px}.segmented button.active{color:#388de2;background:#fff;box-shadow:0 3px 10px #3b8bcd12;font-weight:700}.chart-total{font:800 24px 'Plus Jakarta Sans',sans-serif;letter-spacing:-.04em;margin-top:9px}.chart-total small{font-size:12px;color:#9aacbf;letter-spacing:0}.bar-chart{height:220px;display:flex;gap:clamp(3px,.9vw,13px);align-items:stretch;padding-top:22px;margin-top:8px;border-bottom:1px solid #eaf0f7}.bar-slot{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;min-width:0;gap:8px}.bar-h{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:center}.bar{background:linear-gradient(180deg,#72beff,#348ff4);border-radius:6px 6px 1px 1px;width:min(100%,32px);min-height:2px;transition:height .4s ease;opacity:.82}.bar.empty{background:#edf5fd;opacity:1}.bar:hover{opacity:1}.bar-label{height:22px;font:600 10px 'Plus Jakarta Sans',sans-serif;color:#9fb0c1;white-space:nowrap}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:21px}.two-col .panel{min-height:280px}.text-link{border:0;background:none;display:inline-flex;align-items:center;gap:5px;color:#5ca3e8;font-weight:700;font-size:11px}.text-link svg{width:13px;height:13px}.model-breakdown,.wallet-activity{display:grid;gap:15px}.model-line{display:flex;align-items:center;gap:12px}.model-label{width:100%;min-width:0}.model-label div{display:flex;justify-content:space-between;gap:10px;font:700 12px 'Plus Jakarta Sans',sans-serif;color:#58728d}.model-label small{color:#9eb0c0;font-size:10px}.meter{height:7px;width:100%;background:#edf4fb;overflow:hidden;border-radius:10px;margin-top:8px}.meter span{display:block;height:100%;background:linear-gradient(90deg,#5cabfc,#8accff);border-radius:inherit}.mini-wallet-line{display:flex;align-items:center;justify-content:space-between;gap:13px;font-size:12px}.mini-wallet-line strong{color:#2eaa81}.mini-wallet-line span{color:#7e93a8}.empty{color:#9aacc0;font-size:12px;line-height:1.8}.empty-state{border:1px dashed #e2ecf6;background:#f9fcff;border-radius:14px;padding:28px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:9px}.empty-state svg{color:#9cbedf}.empty-state strong{font-size:13px;color:#607c98}.empty-state small{font-size:11px;color:#9bb0c3}
.table-scroll{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;min-width:630px;text-align:left}th{color:#9aaabe;font-size:11px;font-weight:700;background:#f9fbff;padding:13px 16px;white-space:nowrap}th:first-child{border-radius:9px 0 0 9px}th:last-child{border-radius:0 9px 9px 0}td{padding:16px;color:#657e94;font-size:12px;border-bottom:1px solid #f1f5fa}tbody tr:last-child td{border-bottom:0}td strong{color:#2f4f6b}.table-empty{text-align:center;padding:39px;color:#99adbe}.status-pill,.role-chip{border-radius:30px;background:#e8f9f3;border:1px solid #d8f1e5;color:#379a76;font:700 10px 'Plus Jakarta Sans',sans-serif;letter-spacing:.02em;display:inline-flex;align-items:center;gap:7px;padding:8px 10px;white-space:nowrap}.role-chip svg{width:15px;height:15px}.status-pill.muted{background:#f5f7fa;border-color:#e8edf4;color:#91a1b4}.notice{display:flex;gap:15px;background:#f0f8ff;border:1px solid #dbefff;border-radius:16px;padding:18px 20px;margin-bottom:22px}.notice svg{color:#3c9ae9;flex:none;margin-top:2px}.notice b{font-size:12px;color:#366e9c}.notice p{margin:5px 0 0;font-size:12px;line-height:1.8;color:#6e94b4}.notice.compact{margin-top:25px;padding:13px 15px}.wallet-grid{display:grid;grid-template-columns:minmax(270px,.84fr) minmax(350px,1.16fr);gap:20px;align-items:stretch;margin-bottom:22px}.wallet-grid .panel{margin-bottom:0}.balance-card{min-height:334px;border-radius:22px;background:linear-gradient(140deg,#4ba7f8,#5e9ff0 45%,#7bcbff);color:white;padding:30px;position:relative;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 42px #68aefa33}.balance-card-shine{position:absolute;width:420px;height:420px;border:1px solid #ffffff55;border-radius:50%;top:-210px;right:-210px;box-shadow:0 0 0 70px #ffffff12,0 0 0 140px #ffffff12;pointer-events:none}.balance-label{display:flex;align-items:center;gap:10px;font:800 16px 'Plus Jakarta Sans',sans-serif;position:relative}.balance-label svg{width:21px;height:21px}.balance-card p{color:#ffffffdb;margin:54px 0 6px;font-size:13px}.balance-card strong{font:800 clamp(34px,3.3vw,50px) 'Plus Jakarta Sans',sans-serif;letter-spacing:-.05em}.balance-bottom{display:flex;align-items:end;justify-content:space-between;margin-top:auto;color:#ffffffd0;font:700 10px 'Plus Jakarta Sans',sans-serif;letter-spacing:.09em}.wallet-decoration{color:#ffffffaa;font:800 25px 'Plus Jakarta Sans',sans-serif;letter-spacing:-.1em}.logo-true{font:800 13px 'Plus Jakarta Sans',sans-serif;color:#f0a12f;white-space:nowrap}.logo-true span{display:block;letter-spacing:.16em;color:#ad8b55;font-size:9px;text-align:right;margin-top:4px}.topup-panel form{display:grid;gap:12px}.topup-panel label{font-size:12px;font-weight:700;color:#617c94}.voucher-input{border:1px solid #dceafa;background:#fbfdff;border-radius:12px;display:flex;gap:10px;align-items:center;padding:0 13px;min-width:0}.voucher-input:focus-within{outline:2px solid #abdbff}.voucher-input svg{color:#7eafe0;width:19px;height:19px}.voucher-input input{border:0;background:transparent;outline:0;min-width:0;width:100%;padding:15px 0;font-size:12px;color:#375876}.voucher-input input::placeholder{color:#b1c0ce}.field-hint{color:#a0afbf;font-size:11px;line-height:1.8;margin:0}.button.full{width:100%;margin-top:6px}.form-status{font-size:12px;line-height:1.8;min-height:16px;color:#418db9}.form-status.error{color:#ca5d63}.provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.provider-card{display:flex;flex-direction:column;min-height:0;align-self:stretch;overflow-wrap:anywhere}.provider-head{min-width:0}.provider-head>div{min-width:0}.connection-field strong{overflow-wrap:anywhere}.provider-head{display:flex;align-items:center;gap:12px}.provider-head h2{font-size:15px;color:#2d4765;margin:0 0 5px}.provider-head p{color:#8aa0b6;margin:0;font-size:11px;line-height:1.7}.provider-head .status-pill{margin-left:auto}.provider-logo{width:46px;height:46px;flex:none;border:1px solid #e5edf5;border-radius:15px;display:grid;place-items:center;background:white;color:#468ff0;font:800 23px 'Plus Jakarta Sans',sans-serif}.provider-logo.gemini{background:linear-gradient(135deg,#f0eaff,#eaf5ff);color:#886fe7}.provider-description{font-size:12px;line-height:1.9;color:#8196ac;margin:25px 0 20px}.connection-field{border-radius:12px;background:#f8fbfe;padding:13px 15px;display:grid;gap:4px;margin-bottom:17px}.connection-field span{color:#9caebe;font-size:11px}.connection-field strong{color:#456b91;font-size:13px;overflow-wrap:anywhere}.provider-card>.button{margin-top:auto}.dash-footer{color:#aec0d0;font:500 10px 'Plus Jakarta Sans',sans-serif;display:flex;justify-content:space-between;gap:10px;padding:24px clamp(20px,3.4vw,55px) 32px;border-top:1px solid #eaf0f7}.toast{position:fixed;bottom:20px;right:20px;max-width:390px;background:#2e526f;color:white;padding:15px 18px;border-radius:13px;box-shadow:0 18px 50px #1f4f7966;z-index:100;font-size:13px;line-height:1.7;display:none}.toast.visible{display:block}.scrim{position:fixed;inset:0;background:#123d6280;z-index:19}.mobile-nav:focus-visible,.button:focus-visible,.nav-link:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #93ceff;outline-offset:2px}
@keyframes rise{from{opacity:.7;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1120px){.sidebar{flex-basis:225px;width:225px}.workspace main{padding:26px}.topbar{padding:0 26px}.stats-grid{gap:11px}.stat-card{padding:19px 16px}.provider-head{flex-wrap:wrap}.provider-head .status-pill{margin-left:0}}
@media(max-width:900px){.sidebar{position:fixed;top:0;bottom:0;transform:translateX(-105%);transition:transform .25s;width:270px;min-height:0;height:100dvh;box-shadow:0 10px 40px #0b356b24;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.sidebar.open{transform:translateX(0)}.sidebar>.brand,.sidebar>.sidebar-section,.sidebar>.side-links,.sidebar>.sidebar-bottom{flex-shrink:0}.mobile-nav{display:grid;place-items:center}.wallet-grid{grid-template-columns:1fr 1fr}.topbar{height:74px}.sidebar-bottom{padding-bottom:calc(18px + env(safe-area-inset-bottom))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.workspace main{padding:23px 16px 35px}.topbar{padding:0 17px}.breadcrumbs{font-size:12px}.live-indicator{display:none}.user-meta{display:none}.heading-row{flex-wrap:wrap}.heading-row>.button{margin-top:7px}.stats-grid{gap:10px}.stat-card{min-height:156px;padding:17px}.stat-number{font-size:24px}.stat-foot{font-size:10px}.panel{padding:19px 16px;border-radius:16px}.panel-head{flex-wrap:wrap}.bar-chart{height:196px}.bar-label{font-size:9px}.bar-chart:has(.bar-slot:nth-child(20)) .bar-label{font-size:8px}.two-col{grid-template-columns:1fr;gap:0}.wallet-grid,.provider-grid{grid-template-columns:1fr}.balance-card{min-height:260px;padding:25px}.balance-card p{margin-top:30px}.dash-footer{padding:22px 16px;flex-wrap:wrap}.heading-row h1{font-size:27px}.heading-row .button{width:100%}}
@media(max-width:390px){.segmented button{padding:8px 9px}.stats-grid{gap:8px}.stat-card{padding:14px}.stat-number{font-size:21px}.bar-chart{gap:3px}.provider-card{min-height:0}.provider-head .status-pill{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
