:root{--bg:#05121d;--ink:#e9faff;--muted:#819aaa;--border:#214152;--muteborder:#163343;--panel:#0c1d2a;--panel2:#102634;--aqua:#50e4ea;--gold:#f3ca80;--green:#4ed6a9;--red:#ff8f98;--shadow:0 18px 55px #0003;--sky:#64c9ef;font-family:Tahoma,"Noto Sans Thai","Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-size:14px}body{background:radial-gradient(70vw 45vw at 98% -15%,#0b4b63a1,transparent 70%),radial-gradient(40vw 45vw at 5% 95%,#08344e6c,transparent 70%),var(--bg);color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:background .16s,border .16s,transform .16s;white-space:nowrap}button:hover{filter:brightness(1.13)}button:disabled{opacity:.43;cursor:not-allowed}input,select,textarea{background:#091b28;border:1px solid #2a4a5d;color:#eefcff;border-radius:11px;padding:11px 12px;outline:none;max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--aqua);box-shadow:0 0 0 3px #50e4ea19}textarea{resize:vertical;min-height:80px;line-height:1.65}label{display:grid;gap:8px;color:#a7bfca;font-weight:600;font-size:12px}h1,h2,h3,p{margin-top:0}h3{font-size:16px;margin-bottom:0}p{line-height:1.8}.muted{color:var(--muted)}.tiny{font-size:11px}.hidden{display:none!important}.error-line{color:#ffa5a9;min-height:22px;font-size:12px}.primary,.outline,.subtle,.danger{border-radius:11px;padding:11px 17px;font-weight:700}.primary{border:1px solid #73ffff;background:linear-gradient(120deg,#32d8e9,#3d96df);color:#05212d;box-shadow:0 5px 21px #28c5dd24}.outline{border:1px solid #387282;background:#11323f;color:#dcfeff}.subtle{border:1px solid #2a4555;background:#122636;color:#bfd6df}.danger{border:1px solid #763843;background:#422532;color:#ffc3c5}.small{padding:7px 11px;font-size:12px}.button-row{display:flex;gap:8px;flex-wrap:wrap}.inline{display:flex;align-items:center;gap:10px}.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overline,.eyebrow{font-size:10px;font-weight:800;letter-spacing:3px;color:#71ddea}.chip{display:inline-flex;align-items:center;border:1px solid #2d6676;border-radius:24px;background:#0a3343;color:#81eeea;padding:7px 11px;font-size:11px;letter-spacing:.2px}.badge{display:inline-flex;align-items:center;gap:4px;background:#122e3a;border:1px solid #2f5361;border-radius:24px;padding:4px 9px;color:#a6c6d3;font-size:10px;white-space:nowrap}.badge.ok{color:#8af0cd;border-color:#286352;background:#103b33}.badge.warn{color:#ffdc9a;border-color:#73582e;background:#382d21}.badge.red{color:#ffb6bc;border-color:#7b4350;background:#482832}.empty{padding:46px 15px;text-align:center;color:#93aebb}.empty .emoji{font-size:42px;display:block;margin-bottom:12px}.empty strong{color:#dceef5;font-size:16px}.empty p{max-width:550px;margin:8px auto 0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid .wide{grid-column:1/-1}.panel{background:linear-gradient(155deg,#0d2230,#0b1d2a 85%);border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.panel-title{padding:18px 21px;border-bottom:1px solid var(--muteborder);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-title h3{margin:0;font-size:15px}.panel-body{padding:20px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#90a9b7;font-weight:600;white-space:nowrap;background:#102736}td,th{padding:13px 15px;border-bottom:1px solid #193443}td{color:#d1e3eb}tbody tr:hover{background:#15415139}.row-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.wrap{white-space:normal;overflow-wrap:anywhere}.mini-input{width:110px;padding:8px}.card-glow{position:relative;overflow:hidden;background:linear-gradient(135deg,#103b4a,#0b2433 55%,#09202d);border:1px solid #297689;border-radius:18px}.card-glow:after{content:"";position:absolute;width:310px;height:310px;border-radius:50%;border:22px solid #54eef213;top:-160px;right:-75px;pointer-events:none}.section-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 14px;gap:10px}.section-head h2{font-size:19px;margin:0}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.stat-card{background:linear-gradient(155deg,#102a3a,#0b1f2d);border-radius:16px;border:1px solid #25465a;padding:19px}.stat-label{display:flex;justify-content:space-between;color:#9bb5c2;font-size:12px}.stat-icon{font-size:18px;color:var(--aqua)}.stat-val{font-size:31px;font-weight:850;display:block;margin:15px 0 5px}.stat-foot{font-size:11px;color:#78a5b5}.stat-val.blue{color:#79ecf1}.stat-val.gold{color:#f2cd8e}.stat-val.green{color:#71deb6}.stat-val.red{color:#fba1a6}.dashboard-hero{padding:28px 31px;display:flex;justify-content:space-between;gap:20px;align-items:center}.hero-caption{font-size:10px;letter-spacing:3px;color:#61d8de;font-weight:800}.dashboard-hero h2{font-size:25px;margin:9px 0;color:white}.dashboard-hero p{max-width:650px;color:#a5ccda;margin:0}.hero-number{font-size:34px;font-weight:900;color:var(--gold);position:relative;z-index:1}.hero-number small{display:block;font-size:10px;letter-spacing:2px;color:#8ec6d5;margin-top:4px;text-align:center}.dashboard-layout{display:grid;grid-template-columns:1.45fr 1fr;gap:17px;margin-top:18px}.dash-list{padding:6px 18px}.dash-row{display:flex;gap:10px;align-items:center;padding:13px 3px;border-bottom:1px solid #1a3848;cursor:pointer}.dash-row:last-child{border-bottom:0}.circle-ico{width:42px;height:42px;border-radius:13px;background:#18475a;display:flex;align-items:center;justify-content:center;color:var(--aqua);font-size:18px;flex-shrink:0}.dash-row b{font-size:12px}.dash-row p{font-size:11px;color:#849faf;margin:4px 0 0;line-height:1.4}.dash-row .time{margin-left:auto;color:#6b92a2;font-size:10px;flex-shrink:0}
.app{display:flex;min-height:100vh}.sidebar{width:256px;flex-shrink:0;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#071722e6;border-right:1px solid #1b3544;padding:22px 14px}.brand{display:flex;align-items:center;gap:11px;padding:7px 10px 24px;border-bottom:1px solid #1c3849;margin-bottom:19px}.brand img{height:47px;width:47px;border-radius:50%;border:1px solid #4cbacc;object-fit:cover;box-shadow:0 0 21px #32d3db51}.brand strong{display:block;font-size:19px;letter-spacing:.5px}.brand span{display:block;font-size:10px;color:#87b7c8;letter-spacing:2px;margin-top:4px}.sidebar-heading{padding:13px 15px 9px;color:#68899b;font-size:10px;font-weight:800;letter-spacing:2px}.nav-links{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;background:transparent;color:#96afbb;border:1px solid transparent;text-align:left;padding:12px 13px;border-radius:10px}.nav-item:hover{color:#eaffff;background:#12303e}.nav-item.active{color:#ecffff;background:linear-gradient(90deg,#134f60,#0a2b3b);border-color:#256878;box-shadow:inset 3px 0 var(--aqua)}.nav-icon{font-size:19px;width:25px;text-align:center;color:#76bfce}.nav-bubble{margin-left:auto;background:#227386;color:white;border-radius:30px;padding:3px 6px;font-size:10px;min-width:20px;text-align:center}.nav-bubble.warn{background:#695033}.sidebar-bottom{display:flex;align-items:center;gap:9px;margin-top:auto;padding:15px;background:#0d2937;border-radius:12px;border:1px solid #214959}.sidebar-bottom b{display:block;font-size:10px;letter-spacing:1.5px}.sidebar-bottom small{display:block;color:#7ea4b0;font-size:10px;margin-top:6px}.system-dot,.greenpulse{display:inline-block;width:9px;height:9px;border-radius:50%;background:#52e5b7;box-shadow:0 0 11px #52e5b7c2;flex-shrink:0}.app-main{flex:1;min-width:0}.header{height:99px;padding:21px 34px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #173647;background:#08192592}.breadcrumbs{color:#72a7b9;font-size:10px;letter-spacing:1.2px}.header h1{margin:7px 0 0;font-size:23px}.header-actions{display:flex;align-items:center;gap:18px}.live-clock{border:1px solid #245c62;background:#0d303b;border-radius:30px;padding:9px 13px;color:#b8e8e8;font-size:12px;display:flex;gap:9px;align-items:center}.user-block{display:flex;gap:10px;align-items:center}.user-avatar{width:40px;height:40px;display:grid;place-items:center;background:linear-gradient(130deg,#25b7ce,#2e6d9a);border:1px solid #69e8ef;border-radius:50%;font-size:15px;font-weight:800}.user-label b{display:block;font-size:12px}.user-label small{display:block;font-size:10px;color:#78a0b3;margin-top:4px}.icon-btn{background:#17303e;color:#9bced9;border:1px solid #284b5c;border-radius:10px;padding:9px 12px;font-size:18px}.content-area{padding:25px clamp(16px,3vw,42px) 30px;max-width:1850px;margin:auto}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:20px}.toolbar-left{display:grid;gap:6px}.toolbar-right{display:flex;gap:9px;align-items:center}.select{min-width:240px;background:#0c2735}.footer{padding:28px 0 6px;text-align:center;font-size:10px;color:#557c8a}.view{min-height:400px}
/* Inbox */
.inbox-shell{display:grid;grid-template-columns:minmax(255px,340px) 1fr;gap:16px;min-height:690px}.chatlist{display:flex;flex-direction:column}.chat-list-inner{max-height:690px;overflow:auto}.list-tools{padding:16px;border-bottom:1px solid #193b4c;display:grid;gap:10px}.list-tools input,.list-tools select{width:100%}.chat-item{width:100%;border:0;border-bottom:1px solid #1c3848;border-radius:0;background:transparent;text-align:left;padding:16px;display:flex;gap:11px;align-items:flex-start;white-space:normal}.chat-item.active{background:linear-gradient(110deg,#113e4c,#0e2936);box-shadow:inset 3px 0 var(--aqua)}.chat-item:hover{background:#15425280}.chat-name{font-weight:750;color:#e5fbff;font-size:12px}.chat-preview{color:#829eac;font-size:11px;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:200px}.chat-oa{color:#56c5d4;font-size:10px;margin-top:5px}.chat-avatar{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border-radius:13px;background:linear-gradient(145deg,#16556d,#18384d);color:#b2f3fb;font-weight:800}.chat-detail{display:flex;flex-direction:column;min-height:690px}.chat-header{padding:17px 20px;border-bottom:1px solid #1b3948;display:flex;gap:14px;justify-content:space-between;align-items:center}.chat-header h3{font-size:14px}.chat-header small{color:#8db0bf;display:block;font-size:11px;margin-top:5px}.chat-actions{display:flex;gap:7px;flex-wrap:wrap}.chat-transcript{flex:1;min-height:380px;max-height:490px;overflow-y:auto;padding:24px 25px;display:flex;flex-direction:column;gap:12px;background:radial-gradient(circle at 70% 25%,#0e324150,transparent 45%)}.bubble-row{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.bubble-row.out{align-items:flex-end}.bubble{max-width:min(80%,560px);padding:11px 14px;background:#183444;border:1px solid #2c5363;border-radius:14px 14px 14px 4px;font-size:12px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap}.bubble-row.out .bubble{background:#105368;border-color:#268da2;border-radius:14px 14px 4px 14px}.bubble-meta{font-size:10px;color:#7b9ba9}.bubble-media{display:block;max-width:250px;border-radius:8px;margin:6px 0;cursor:zoom-in}.composer{border-top:1px solid #1c4051;padding:16px 20px;background:#0e2533}.composer textarea{width:100%;height:86px}.composer-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.composer small{color:#7ca2b1;font-size:10px}.disabled-box{border:1px dashed #375767;border-radius:12px;padding:24px;text-align:center;color:#9eb9c7;background:#0e2936}.draft-box{border:1px solid #227b86;border-radius:11px;padding:9px;color:#80dce0;font-size:11px;line-height:1.7;background:#103542;margin:0 0 10px}.control-note{font-size:11px;color:#739eae;margin-top:10px}.chat-pill{font-size:10px;border:1px solid #295463;border-radius:12px;padding:4px 7px;color:#a1c5d1;flex-shrink:0}.chat-pill.held{color:#efcd89;border-color:#796135}.list-unread{font-size:10px;color:#071c28;background:#51dfdd;padding:2px 6px;border-radius:18px;display:inline-block;margin-left:5px}
/* Settings */
.setting-column{display:grid;gap:16px}.setting-hero{padding:22px 24px;display:flex;justify-content:space-between;align-items:center}.setting-hero h2{font-size:20px;margin:5px 0 6px}.setting-hero p{margin:0;color:#94bdc9;font-size:12px}.card-row{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid #183747}.card-row:last-child{border:0}.card-row .grow{flex:1;min-width:0}.card-row b{display:block;color:#ecfbff;font-size:12px}.card-row p{font-size:11px;color:#8caebd;margin:5px 0 0}.card-row code{font-family:Consolas,monospace;color:#8fe2ec;font-size:11px;overflow-wrap:anywhere}.form-help{font-size:11px;color:#79a4b4;line-height:1.75}.action-cell{min-width:130px}.market-row td input{min-width:0}.market-row td:first-child{min-width:160px}.market-row td:nth-child(2){min-width:130px}.line-chip{display:inline-flex;border:1px solid #264f5b;padding:7px 11px;border-radius:14px;color:#a7d0db;font-size:11px;background:#103343}.risk-note{border:1px solid #5f573d;background:#332e244a;padding:12px 14px;border-radius:10px;font-size:11px;color:#e3ca93;line-height:1.8}.toast{position:fixed;right:22px;bottom:22px;background:#174154;border:1px solid #40beca;border-radius:13px;padding:14px 18px;max-width:370px;box-shadow:0 14px 50px #0009;z-index:1000;font-size:12px;line-height:1.7}.toast.bad{border-color:#c47a7d;background:#462a34}.pill-check{display:flex;gap:7px;align-items:center;color:#bcd1db;font-size:12px}.pill-check input{accent-color:#39d3e3}
/* Login */
.login-screen{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(60vw 40vw at 20% 35%,#1455726d,transparent 70%),radial-gradient(40vw 40vw at 90% 88%,#0f415c7c,transparent 65%),#04121d}.login-shell{width:min(1080px,100%);display:grid;grid-template-columns:1.1fr .9fr;min-height:610px;border:1px solid #2a596c;border-radius:25px;overflow:hidden;box-shadow:0 35px 90px #0009;background:#0b1e2c}.login-art{position:relative;background:radial-gradient(circle at 50% 24%,#186a8690,#09263a 42%,#051827 79%);padding:40px 47px 30px;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;overflow:hidden}.login-art:before,.login-art:after{content:"";position:absolute;width:700px;height:210px;border-top:28px solid #3ae7f52d;border-radius:50%;transform:rotate(-12deg);bottom:-65px;left:-80px}.login-art:after{border-color:#39c4ef2a;bottom:-98px}.ambient-ring{position:absolute;width:400px;height:400px;border:1px solid #48d9ec24;border-radius:50%;top:40px}.login-logo{width:220px;height:220px;border-radius:50%;object-fit:cover;border:2px solid #80e7ec;box-shadow:0 0 0 10px #4fd4e918,0 0 65px #46d9ed49;z-index:1;margin-bottom:27px}.login-art h1{font-size:34px;line-height:1.45;margin:14px 0}.login-art em{font-style:normal;color:#6ce9ee}.login-art p{font-size:12px;color:#9dc3d2;max-width:355px;z-index:1}.login-points{display:flex;gap:10px;z-index:1;flex-wrap:wrap;justify-content:center;margin-top:18px}.login-points span{font-size:9px;letter-spacing:.8px;color:#8fe5e8;border:1px solid #337584;padding:7px 9px;border-radius:30px}.login-panel{padding:55px 48px;display:flex;flex-direction:column;justify-content:center}.login-panel h2{font-size:27px;margin:14px 0 6px}.login-panel p{margin-bottom:30px;font-size:12px}.login-panel form{display:grid;gap:20px}.login-panel input{width:100%;padding:14px 15px}.login-panel .big{width:100%;padding:14px;display:flex;justify-content:space-between;margin-top:6px}.login-note{font-size:11px;line-height:1.8;color:#678f9e;margin-top:28px;padding:16px;background:#0b2936;border:1px solid #1d4657;border-radius:12px}.mobile-brand{display:none}
@media(max-width:1160px){.sidebar{width:225px}.dashboard-layout{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.sidebar{width:76px;padding:16px 8px}.brand{padding:5px 4px 18px;justify-content:center}.brand img{width:45px;height:45px}.brand div,.sidebar-heading,.sidebar-bottom,.nav-bubble{display:none}.nav-item{justify-content:center;overflow:hidden;font-size:0;gap:0;padding:11px 5px}.nav-icon{font-size:22px}.header{padding:20px}.content-area{padding:18px 15px}.login-shell{grid-template-columns:1fr}.login-art{display:none}.login-panel{padding:45px}}
@media(max-width:660px){.app{display:block}.sidebar{width:100%;height:auto;position:relative;padding:10px;border-bottom:1px solid #1c4251;display:flex;flex-direction:row;overflow:auto;gap:10px}.sidebar>.brand,.sidebar-heading,.sidebar-bottom{display:none}.nav-links{display:flex;gap:5px;flex-shrink:0}.nav-item{font-size:11px;width:auto;gap:5px;padding:10px 12px;white-space:nowrap}.nav-icon{font-size:15px;width:auto}.header{height:auto;padding:15px 16px}.header-title h1{font-size:19px}.header-actions{gap:7px}.user-label,.live-clock{display:none}.mobile-brand{display:none}.toolbar{flex-wrap:wrap}.toolbar-right .chip{display:none}.select{min-width:190px}.stat-grid{grid-template-columns:repeat(2,1fr);gap:9px}.stat-card{padding:14px}.stat-val{font-size:25px}.dashboard-hero{padding:21px}.dashboard-hero h2{font-size:19px}.hero-number{display:none}.inbox-shell{display:flex;flex-direction:column;gap:10px}.chatlist{max-height:300px}.chat-list-inner{max-height:200px}.chat-detail{min-height:520px}.chat-transcript{min-height:250px;max-height:390px;padding:14px}.grid2,.grid3,.form-grid{grid-template-columns:1fr}.panel-body{padding:15px}.setting-hero{padding:18px}.header .user-avatar{width:33px;height:33px}.login-panel{padding:36px 24px}.footer{font-size:9px}}
