@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#0b1020;--panel:#111a2e;--panel2:#151f35;--line:#26324b;--text:#f4f6ff;--muted:#8f9bb3;--accent:#8b75ff;--accent2:#5d45e8;--green:#37d6a0;--red:#ff7185;--shadow:0 24px 70px #03071266}
*{box-sizing:border-box}body{margin:0;background:#0b1020;color:var(--text);font-family:Inter,'IBM Plex Sans Thai',sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input{font:inherit}.muted{color:var(--muted)}.tiny{font-size:11px}.eyebrow{color:#a99cff;font-size:10px;font-weight:700;letter-spacing:2px;margin:0 0 9px}.brand{display:flex;align-items:center;gap:12px;padding:25px 22px 30px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#a18cff,#6247ed);font-weight:800;box-shadow:0 8px 24px #7657ff55}.brand b{display:block;letter-spacing:1.5px;font-size:13px}.brand small{display:block;color:#8793ac;font-size:9px;letter-spacing:2px;margin-top:4px}.shell{min-height:100vh}.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:#0e1628;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.side-label{font-size:9px;letter-spacing:2px;color:#68758e;padding:0 23px 12px;font-weight:700}.sidebar nav{padding:0 12px;display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:10px;color:#9eabc3;font-size:13px;transition:.2s}.nav-link>span{width:20px;text-align:center;font-size:17px}.nav-link:hover,.nav-link.active{background:#252044;color:#fff}.nav-link.active{box-shadow:inset 3px 0 #9b88ff}.sidebar-bottom{margin-top:auto;padding:15px 12px 20px;border-top:1px solid var(--line)}.secure-note{display:flex;align-items:center;gap:10px;padding:12px;margin-bottom:10px;background:#142338;border-radius:10px}.secure-note b,.secure-note small{display:block}.secure-note b{font-size:11px}.secure-note small{font-size:10px;color:var(--muted);margin-top:4px}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px #37d6a0}.logout{width:100%;border:0;background:transparent;cursor:pointer}.main{margin-left:250px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#0d1526cc;position:sticky;top:0;z-index:3;backdrop-filter:blur(16px)}.breadcrumb{color:#7886a0}.top-actions{display:flex;align-items:center;gap:16px}.online-pill{font-size:11px;color:#aab6cb;border:1px solid var(--line);border-radius:30px;padding:7px 11px}.online-pill i{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}.avatar{border:0;border-radius:50%;width:33px;height:33px;color:white;background:linear-gradient(135deg,#927cff,#5b45d9);font-weight:700}.content{padding:34px;flex:1;max-width:1500px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.page-heading h1{font-size:27px;margin:0 0 7px;letter-spacing:-.7px}.page-heading p{margin-top:0}.btn{border:1px solid transparent;border-radius:9px;padding:11px 16px;cursor:pointer;font-weight:600;transition:.2s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#927cff,#654de8);color:white;box-shadow:0 8px 24px #7657ff35}.btn-primary:hover{transform:translateY(-1px);filter:brightness(1.1)}.btn-secondary{background:#202b42;color:#e7ebf5;border-color:var(--line)}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card,.panel{background:linear-gradient(145deg,#121d32,#10192b);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat-card{padding:20px}.stat-top{display:flex;justify-content:space-between;color:#aab6cb;font-size:12px}.stat-top i{font-style:normal;font-size:19px;color:#a99aff}.stat-card strong{display:block;font-size:30px;margin:17px 0 4px}.stat-card small{color:#74829c;font-size:10px}.panel{padding:23px;margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel h2{font-size:16px;margin:0 0 6px}.panel-head p{font-size:12px;margin:0}.tag{font-size:10px;color:#b9adff;background:#2b2450;border:1px solid #473b7e;padding:6px 9px;border-radius:20px}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.quick-link{border:1px solid var(--line);background:#141f34;padding:16px 13px;border-radius:10px;display:flex;flex-direction:column;gap:12px;transition:.2s}.quick-link:hover{border-color:#7665d7;transform:translateY(-2px)}.quick-link span{font-size:20px;color:#a99aff}.quick-link b{font-size:12px}.quick-link i{font-style:normal;color:#7986a0;align-self:flex-end}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:560px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);font-size:12px}th{color:#8e9bb4;font-weight:600;background:#141e32}td{color:#d8deeb}tr:last-child td{border-bottom:0}.empty{text-align:center;padding:50px 15px;color:var(--muted)}.empty-icon{font-size:28px;color:#8372e8;margin-bottom:10px}.empty b{display:block;color:#e7eaf3}.empty p{font-size:12px}.hint{background:#151f34;padding:12px;border-radius:8px;color:#9eabc3;font-size:12px}.hint code,code{color:#b9adff}.json-view{white-space:pre-wrap;overflow:auto;background:#0b1324;padding:16px;border-radius:10px;color:#b9c7df;font-size:12px}.notice{padding:12px 15px;border:1px solid #315f56;background:#102c2a;color:#9ce9d3;border-radius:9px;margin-bottom:16px}.notice.error{border-color:#68404a;background:#2d1b29;color:#ffabb8}.hidden{display:none}.loading{padding:50px;text-align:center;color:var(--muted)}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #4b5570;border-top-color:#a99aff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.footer{padding:18px 34px;border-top:1px solid var(--line);color:#68758e;font-size:10px}.footer span{float:right}.mobile-menu{display:none}.login-body{min-height:100vh;background:radial-gradient(ellipse at 50% 0%,#29204d 0%,#0b1020 55%);display:grid;place-items:center;padding:24px}.login-wrap{width:100%;max-width:430px}.login-card{background:#111a2e;border:1px solid #303a56;border-radius:20px;padding:34px;box-shadow:0 30px 100px #0008}.brand-center{justify-content:center;padding:0 0 30px}.login-heading{text-align:center;margin-bottom:25px}.login-heading h1{font-size:25px;margin:0 0 8px}.login-heading>p:last-child{font-size:12px}.login-card form>label{display:block;font-size:12px;color:#c4cce0;margin:17px 0}.login-card input:not([type=checkbox]){display:block;width:100%;margin-top:8px;padding:13px 14px;border:1px solid #34405c;border-radius:9px;background:#0c1425;color:white;outline:none}.login-card input:focus{border-color:#917cff;box-shadow:0 0 0 3px #8b75ff22}.login-options{display:flex;justify-content:space-between;align-items:center;margin:18px 0 20px}.check{display:flex;align-items:center;gap:7px;color:#9eabc3;font-size:11px}.btn-block{width:100%;display:flex;justify-content:center;gap:12px}.form-message{min-height:18px;font-size:12px;color:#a9e8d3;text-align:center}.form-message.error{color:#ff9eae}.login-foot{text-align:center;color:#697690;font-size:10px;margin:25px 0 0}.copyright{text-align:center;color:#65718a;font-size:10px;margin-top:18px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.25s;box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.topbar{padding:0 17px;height:62px}.mobile-menu{display:block;background:transparent;border:0;color:white;font-size:20px;margin-right:10px}.topbar>div:first-of-type{margin-right:auto;font-size:12px}.online-pill{display:none}.content{padding:24px 17px}.page-heading{align-items:flex-start;gap:14px}.page-heading h1{font-size:23px}.page-heading>.btn{white-space:nowrap;padding:10px;font-size:11px}.stat-grid{gap:10px}.stat-card{padding:15px}.stat-card strong{font-size:25px}.quick-grid{grid-template-columns:repeat(2,1fr)}.panel{padding:16px}.footer{padding:16px 18px}.login-card{padding:25px 21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}