:root{color-scheme:light;--bg:#f4f5f8;--card:#fff;--ink:#202531;--muted:#687282;--border:#e4e7ed;--accent:#a51e2d;--accent-dark:#731320;--gold:#e4bf76;--sidebar:#191c25;--radius:16px;--shadow:0 5px 22px #222a3610}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 system-ui,-apple-system,"Noto Sans Thai","Leelawadee UI",Tahoma,sans-serif;overflow-wrap:anywhere}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.35;letter-spacing:-.025em}h2{font-size:1.13rem;line-height:1.5}h3{font-size:1rem}p+p{margin-top:10px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}:focus-visible{outline:3px solid #cc9d45;outline-offset:3px}img{max-width:100%;height:auto}label{font-weight:650;display:block;margin-bottom:6px}.muted,.hint{color:var(--muted)}.hint{font-size:.83rem;margin-top:6px}.small{font-size:.8rem}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);min-width:0}.card+.card{margin-top:18px}.grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.grid>.card{margin:0}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stack{display:grid;gap:16px}.stack>.card{margin:0}.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 17px;min-height:43px;background:var(--accent);color:white;font-weight:700;text-decoration:none;cursor:pointer;line-height:1.4}.btn:hover{background:var(--accent-dark);text-decoration:none}.btn.secondary{color:var(--ink);background:#fff;border-color:#d9dde5}.btn.secondary:hover{background:#f3f4f6}.btn.danger{background:#fff;color:#a51e2d;border-color:#e6c4c7}.btn:disabled{opacity:.45;cursor:not-allowed}.full{width:100%}.field{margin:0 0 17px}.field input:not([type=checkbox]),.field select,input[type=date]{width:100%;padding:10px 12px;border:1px solid #ccd2dc;border-radius:9px;color:var(--ink);background:white;min-height:44px}.field input[type=file]{font-size:.9rem}.check{display:flex;align-items:flex-start;gap:9px;font-weight:500}.check input{width:18px;height:18px;flex:none;margin-top:4px;accent-color:var(--accent)}.row-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}.row-form>*{min-width:0}.notice{padding:13px 16px;margin:0 0 18px;border-radius:11px;border:1px solid #b5dac8;background:#f0faf5;color:#155d39;font-weight:600}.notice.error{border-color:#e5bdc4;background:#fff3f4;color:#9b1727}.notice.neutral{background:#fff7e8;border-color:#ecd7b1;color:#735013}.badge{font-size:.72rem;font-weight:700;display:inline-block;border-radius:6px;padding:3px 9px;background:#eceef2;color:#58616e;white-space:nowrap}.badge.good{color:#176242;background:#e4f4ec}.badge.gold{color:#6b4c13;background:#f8ebcd}.auth-wrap{max-width:550px;margin:42px auto;padding:0 18px}.setup-wrap{max-width:900px;margin:32px auto;padding:0 18px}.auth-brand{display:flex;gap:14px;align-items:center;margin-bottom:24px}.auth-brand img{width:70px;height:70px;object-fit:contain}.auth-brand p{color:var(--muted);font-size:.85rem}.step-line{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.step{border:1px solid var(--border);border-radius:10px;background:white;padding:8px 13px;font-size:.85rem;font-weight:650}.step.active{background:var(--accent);color:white;border-color:var(--accent)}.setup-check{display:flex;gap:10px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding:9px 0}.setup-check:last-child{border:0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);color:#dce0e7;position:sticky;top:0;height:100vh;overflow:auto;padding:24px 16px;display:flex;flex-direction:column}.side-brand{display:flex;align-items:center;gap:12px;padding:0 8px 20px;border-bottom:1px solid #ffffff16}.side-brand img{width:50px;height:50px;object-fit:contain;border-radius:10px;background:#fff}.side-brand strong{color:white;font-size:.95rem;line-height:1.35;display:block}.side-brand small{display:block;font-size:.7rem;color:var(--gold);letter-spacing:.05em}.nav-label{color:#9099ab;font-size:.73rem;letter-spacing:.09em;font-weight:700;margin:22px 9px 8px}.side-nav a,.side-nav .future{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;color:#d5dae4;font-weight:600;font-size:.88rem;margin-bottom:3px}.side-nav a:hover{background:#ffffff11;text-decoration:none}.side-nav a.current{background:var(--accent);color:white}.side-nav .future{color:#848d9f;font-weight:400}.side-nav .future small{margin-left:auto;color:#a4abba;font-size:.68rem}.side-bottom{margin-top:auto;padding:18px 8px 0;border-top:1px solid #ffffff16}.side-bottom a{color:#f0d49d}.main{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--border);padding:14px 28px;gap:12px;flex-wrap:wrap}.topbar .user{display:flex;align-items:center;gap:10px;font-weight:650}.avatar{width:35px;height:35px;background:#f5dce0;color:#a51e2d;display:grid;place-items:center;border-radius:50%;font-weight:800}.main-inner{padding:26px 28px 48px;max-width:1650px;margin:auto}.page-head{margin-bottom:22px}.page-head p{color:var(--muted);margin-top:4px}.metric{padding:19px!important}.metric-label{color:var(--muted);font-size:.83rem;font-weight:650}.metric-number{font-size:clamp(1.65rem,3.3vw,2.3rem);line-height:1.2;font-weight:790;letter-spacing:-.045em;margin:9px 0 5px;font-variant-numeric:tabular-nums}.metric .small{color:var(--muted)}.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:.86rem;min-width:420px}th,td{padding:11px 13px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}th{background:#f6f7f9;font-weight:750;color:#515d6c;white-space:nowrap}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfc}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.bar-list{display:grid;gap:13px}.bar-row{display:grid;grid-template-columns:minmax(70px,150px) minmax(70px,1fr) 55px;gap:10px;align-items:center;font-size:.86rem}.bar-bg{height:9px;background:#edf0f4;border-radius:12px;overflow:hidden}.bar-fill{height:100%;background:#a51e2d;border-radius:12px}.trend{display:flex;align-items:flex-end;height:160px;gap:3px;padding:12px 0 0;overflow:hidden;border-bottom:1px solid var(--border)}.trend-col{flex:1;display:flex;align-items:flex-end;min-width:1px;height:100%}.trend-bar{width:100%;background:linear-gradient(#c94954,#a51e2d);border-radius:4px 4px 0 0;min-height:2px}.trend-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:.78rem;margin-top:7px}.filter-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.filter-form>div{flex:1;min-width:145px}.filter-form button{flex:none}.quick-filter{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.quick-filter a{background:#f1f2f5;border:1px solid var(--border);border-radius:7px;padding:5px 11px;font-size:.84rem;font-weight:650;color:var(--ink)}.logo-preview{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.logo-preview img{width:95px;height:95px;object-fit:contain;border:1px solid var(--border);padding:6px;border-radius:12px;background:#f9fafb}.privacy{max-width:820px;margin:30px auto;padding:16px}.privacy h1{margin:15px 0}.privacy h2{margin:20px 0 8px}.privacy .muted{margin-top:14px}.list-clean{padding-left:20px}.list-clean li+li{margin-top:6px}.backup-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#f8e7e9;color:var(--accent);font-size:1.15rem;font-weight:800;margin-bottom:15px}.backup-card{display:flex;flex-direction:column;gap:13px}.backup-card form{margin-top:auto}.empty{padding:28px 10px;text-align:center;color:var(--muted)}.footer-note{margin-top:26px;font-size:.8rem;color:var(--muted)}hr{border:0;border-top:1px solid var(--border);margin:21px 0}.module{border:1px dashed #ccd2da;border-radius:12px;padding:17px;background:#fbfcfd}.module h3{margin:7px 0}.module p{color:var(--muted);font-size:.88rem}code{font-size:.87em;word-break:break-all}.mobile-nav{display:none}
@media(max-width:1050px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:220px minmax(0,1fr)}.main-inner{padding:22px}.topbar{padding:14px 22px}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;height:auto;padding:12px 14px}.side-brand{padding:0;border:0}.side-brand img{height:40px;width:40px}.side-nav,.side-bottom,.sidebar>.nav-label{display:none}.mobile-nav{display:flex;overflow-x:auto;gap:5px;margin-top:10px;padding-bottom:3px}.mobile-nav a{white-space:nowrap;font-size:.78rem;color:white;background:#ffffff10;border-radius:7px;padding:8px 10px}.mobile-nav a.current{background:var(--accent)}.topbar{padding:12px 15px}.main-inner{padding:18px 13px 32px}.grid,.grid.three{grid-template-columns:minmax(0,1fr)}.grid.four{gap:10px}.card{padding:17px}.metric{padding:13px!important}.metric-label{font-size:.76rem}.metric-number{font-size:1.65rem}.auth-wrap,.setup-wrap{margin:20px auto;padding:0 13px}.bar-row{grid-template-columns:minmax(70px,100px) minmax(50px,1fr) 46px;gap:7px}.trend{height:120px}.topbar .user span:not(.avatar){display:none}.filter-form>div{min-width:130px}.filter-form button{width:100%}.backup-card .btn{width:100%}}@media(max-width:360px){.grid.four{grid-template-columns:1fr}.auth-brand img{width:52px;height:52px}.main-inner{padding-inline:10px}.card{padding:14px}}
