:root{font-family:system-ui,-apple-system,'Noto Sans Thai',Tahoma,sans-serif;color:#172e4a;background:#f4f8ff;font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.47}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8cc5ff;outline-offset:2px}.hidden{display:none!important}.app{min-height:100svh}.header{height:76px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 19px}.logo,.header-right{display:flex;align-items:center;gap:11px}.pt-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:22px;background:linear-gradient(135deg,#168efa,#174ccc);color:#fff;box-shadow:0 9px 21px #1265d037;font-size:26px;font-weight:900;letter-spacing:-2px}.pt-mark.small{width:42px;height:42px;border-radius:14px;font-size:18px}.brand b,.brand small{display:block}.brand b{font-weight:900;font-size:17px;line-height:1.2}.brand small{font-size:10px;font-weight:750;letter-spacing:2px;color:#92a4bb}.connection{display:flex;align-items:center;gap:6px;color:#6881a1;font-size:11px;font-weight:700;border:1px solid #e2ebf5;background:#fff;border-radius:100px;padding:8px 10px;white-space:nowrap}.connection>span:first-child{width:7px;height:7px;background:#f4b454;border-radius:50%}.connection.online>span:first-child{background:#27bd96;box-shadow:0 0 0 3px #e0f8ef}.user-chip{border:none;background:transparent;display:none;align-items:center;gap:9px;color:#6284a6;font-weight:800;font-size:12px}.avatar{height:34px;width:34px;border-radius:12px;background:#e9f4ff;color:#2681e8;display:grid;place-items:center}.sidebar{display:none}.main-wrap{min-width:0}.content{max-width:940px;margin:auto;padding:3px 17px 120px}.page{display:none}.page.active{display:block}.eyebrow{letter-spacing:2px;font-size:10px;font-weight:900;color:#3989e5}.page-head{margin:15px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.page-head h1{font-size:26px;line-height:1.25;margin:5px 0 5px;letter-spacing:-1px}.page-head p{font-size:12px;color:#8093ad;margin:0}.icon-btn{border:1px solid #deebfa;background:#fff;border-radius:13px;width:42px;height:42px;color:#2b86e3;font-size:22px}.hero{min-height:176px;position:relative;overflow:hidden;border-radius:25px;background:linear-gradient(115deg,#0d3159,#1364b6 62%,#2d8ced);color:#fff;padding:24px;box-shadow:0 16px 28px #125cb122}.hero-overline{font-size:12px;font-weight:720;color:#d1e7ff}.hero-count{display:flex;align-items:baseline;gap:10px;font-weight:900;line-height:1.3;margin:7px 0 4px}.hero-count>span:first-child{font-size:58px;letter-spacing:-3px}.hero-count>span:last-child{font-weight:650;color:#dceeff;font-size:15px}.hero-bottom{display:flex;gap:12px;justify-content:space-between;color:#daecff;font-size:11px;position:relative;z-index:1}.pulse{background:#7deddb;height:7px;width:7px;display:inline-block;border-radius:50%}.hero-circle{position:absolute;right:5%;top:25%;border:1px solid #ffffff46;border-radius:25px;color:#ffffffac;font-size:55px;font-weight:300;width:93px;height:93px;display:grid;place-items:center;transform:rotate(-18deg);background:#ffffff16}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0 18px}.stat{border:1px solid #e6eef8;background:#fff;border-radius:17px;padding:14px 11px;box-shadow:0 8px 22px #1c55910a;min-width:0}.stat-label{font-size:10px;color:#8296ad;font-weight:800;white-space:nowrap}.stat-number{font-size:25px;font-weight:900;line-height:1.3;margin-top:5px}.stat-number.sold{color:#109b7c}.surface{background:#fff;border:1px solid #e2eaf5;border-radius:22px;padding:19px 16px;margin:15px 0;box-shadow:0 6px 24px #1a59890c}.section-top,.section-title{display:flex;align-items:center;justify-content:space-between;gap:11px}.section-title{justify-content:flex-start}.section-title h2,.section-top h2{margin:0;font-size:18px}.section-title p{margin:3px 0 0;color:#90a0b1;font-size:11px}.section-icon{display:grid;place-items:center;width:41px;height:41px;background:#eaf4ff;color:#2176d4;border-radius:13px;font-size:21px}.pill{font-size:10px;font-weight:850;padding:6px 9px;border-radius:30px;color:#2685d9;background:#edf7ff;white-space:nowrap}.surface label{display:block;font-size:12px;color:#4e6781;font-weight:850;margin:17px 0 7px}.surface input:not([type=file]),.surface select,.surface textarea,.auth-card input,.modal textarea{width:100%;max-width:100%;min-height:48px;border:1px solid #dee8f4;background:#fafdff;color:#193b60;border-radius:13px;padding:12px 14px;outline:0;font-size:16px}.surface input:focus,.surface select:focus,.surface textarea:focus,.auth-card input:focus{border-color:#61abff;box-shadow:0 0 0 3px #e0efff}.quick-qty{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.quick-qty button{border:1px solid #dfebf9;background:#f8fbff;border-radius:12px;color:#5a7595;padding:11px 4px;font-weight:800}.quick-qty button.selected{background:#eaf5ff;border-color:#7ab9fc;color:#1c77db;box-shadow:inset 0 0 0 1px #7ab9fc}.qty-control{display:grid;grid-template-columns:51px minmax(0,1fr) 51px;gap:8px;margin-top:10px}.qty-control button{border:1px solid #dfeaf9;background:#f0f7ff;border-radius:13px;color:#1b6ed4;font-size:24px}.qty-control input{text-align:center;font-size:20px!important;font-weight:900}.capacity{font-size:12px;color:#149678;margin:12px 0 14px;font-weight:800}.capacity.warning{color:#cb5567}.primary{width:100%;padding:14px 17px;min-height:54px;background:linear-gradient(110deg,#2486ee,#095bd3);border:0;border-radius:14px;color:#fff;font-weight:900;box-shadow:0 10px 20px #277ee82d;display:flex;justify-content:center;align-items:center;gap:8px}.help{font-size:11px;line-height:1.65;color:#8ca0b6;margin:13px 0 0}.secondary{border:1px solid #dfeaf7;background:#fff;color:#357ab9;border-radius:13px;padding:12px 17px;min-height:43px;font-size:12px;font-weight:850;width:100%}.empty{padding:24px;color:#94a6b7;text-align:center;font-size:12px}.last-sell .secondary{margin-top:6px}.small-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #ebf1f8}.small-row>div{min-width:0}.small-row b{display:block;font-size:13px}.small-row small{display:block;color:#90a2b6;margin-top:4px;font-size:11px}.status-ok{font-size:11px;font-weight:850;color:#059b75;background:#eaf9f3;padding:6px 9px;border-radius:20px;white-space:nowrap}.filter-grid{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid input{grid-column:1/-1}.filter-grid select{font-size:13px}.inventory-caption{display:flex;justify-content:space-between;align-items:center;margin:18px 0 12px;color:#7d93a8;font-size:12px}.inventory-caption b{color:#28405e;font-size:15px}.stock-list{display:grid;gap:9px}.code-card{border:1px solid #e3ecf6;border-radius:15px;padding:14px;background:#fcfdff}.code-card.sold{background:#fafbfe}.code-card .code-line{display:flex;justify-content:space-between;align-items:center;gap:10px}.code-card strong{font:800 14px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;color:#154476}.code-card.sold strong{color:#9aaabe;text-decoration:line-through}.code-card .meta{font-size:11px;color:#9aaabc;margin-top:5px}.stock-badge{font-size:10px;font-weight:850;border-radius:18px;padding:5px 8px;background:#e9f9f2;color:#088b6f;white-space:nowrap}.stock-badge.sold{background:#eef1f5;color:#8698a8}.stock-list+.secondary{margin-top:14px}.history-item{border:1px solid #e4eef9;border-radius:15px;padding:15px;margin:9px 0}.history-item .head{display:flex;justify-content:space-between;gap:10px}.history-item .head b{font-size:14px}.history-item small{color:#91a4b6;font-size:11px}.history-item .kind{font-size:11px;color:#2280d8;font-weight:800}.history-item details{margin-top:10px;border-top:1px solid #edf1f7;padding-top:10px}.history-item summary{cursor:pointer;color:#2e76ba;font-size:12px;font-weight:800}.history-item pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#3c688c;font:700 13px/1.8 ui-monospace,monospace}.profile-detail{font-size:12px;color:#7894b0;line-height:1.9;margin:12px 0 18px;overflow-wrap:anywhere}.muted{color:#7890a8;line-height:1.7;font-size:12px}.small-warn{font-size:11px;line-height:1.6;color:#a07845}.surface input[type=file]{font-size:12px;max-width:100%;margin-bottom:12px}.surface .primary{margin-top:14px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffff5;backdrop-filter:blur(14px);border-top:1px solid #e2ecf7;padding:7px 6px calc(8px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -9px 25px #1d61820e}.bottom-nav button{border:0;background:transparent;color:#9aaec0;border-radius:12px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;min-height:57px;font-size:10px;font-weight:850}.bottom-nav i{font-style:normal;font-size:21px}.bottom-nav button.active{background:#eaf4ff;color:#186ddd}.overlay{position:fixed;inset:0;background:#122e4ca1;z-index:20;display:flex;align-items:flex-end}.modal{background:white;border-radius:26px 26px 0 0;padding:20px 20px calc(18px + env(safe-area-inset-bottom));width:100%;max-height:95svh;overflow:auto}.handle{width:46px;height:5px;background:#e1eaf5;border-radius:7px;margin:-6px auto 15px}.modal-head{display:flex;justify-content:space-between;gap:10px}.modal-head h2{font-size:19px;margin:6px 0}.modal-head p{font-size:11px;color:#8b9fb6;margin:0 0 10px}.close{border:0;background:#f2f6fb;border-radius:13px;font-size:23px;width:39px;height:39px;flex-shrink:0}.result-count{font-size:13px;font-weight:850;color:#159b76;margin:8px 0}.modal textarea{font:700 15px/1.8 ui-monospace,monospace;min-height:200px;resize:vertical}.modal .primary,.modal .secondary{margin-top:10px}.toast{position:fixed;z-index:35;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#1e426c;color:white;border-radius:15px;padding:12px 17px;display:none;width:max-content;max-width:90%;font-size:12px;font-weight:700;box-shadow:0 12px 24px #173a5d33}.toast.show{display:block}.toast.bad{background:#b6485d}.auth-screen{min-height:100svh;display:grid;align-content:center;justify-items:center;padding:23px;background:radial-gradient(circle at 15% 15%,#dcebff,#f5f9ff 52%)}.auth-art{text-align:center;margin-bottom:22px}.auth-art .pt-mark{margin:auto auto 17px}.auth-art span{font-size:10px;font-weight:900;color:#79a4d0;letter-spacing:2px}.auth-card{background:white;border:1px solid #e0eaf7;padding:29px 23px;border-radius:26px;width:100%;max-width:400px;box-shadow:0 25px 60px #185dac12}.auth-card h1{font-size:29px;margin:9px 0 5px;letter-spacing:-1px}.auth-card p{font-size:12px;color:#8298b2;margin:0 0 25px}.auth-card label{display:block;font-size:12px;color:#52718f;margin:13px 0 7px;font-weight:800}.auth-card button{margin-top:21px}.auth-caption{margin-top:21px;border-top:1px solid #edf1f7;padding-top:17px;font-size:11px;color:#95a8ba;text-align:center}.config-warning{position:fixed;inset:0;background:#f4f8ff;z-index:50;display:grid;place-items:center;padding:20px}.config-warning .notice{max-width:460px;background:#fff;border-radius:22px;padding:30px;border:1px solid #dae7f6;box-shadow:0 20px 50px #1b5e9f18}.config-warning h2{font-size:21px}.config-warning p{line-height:1.7;color:#587b9d}.config-warning strong{color:#c8505a;font-size:12px}.columns{display:grid;gap:0}.owner-only{display:none}
@media (min-width:700px){.content{padding:8px 26px 100px}.header{padding:0 29px;height:88px}.hero{min-height:202px;padding:28px}.hero-count>span:first-child{font-size:73px}.stats{gap:14px}.stat{padding:18px 21px}.stat-number{font-size:30px}.columns{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:16px;align-items:start}.columns>.surface{margin:0}.stock-list{grid-template-columns:repeat(2,minmax(0,1fr))}.modal{border-radius:26px;max-width:540px;margin:auto;padding:25px 29px;align-self:center}.overlay{padding:20px;align-items:center}.user-chip{display:flex}}
@media (min-width:1050px){.app{display:grid;grid-template-columns:242px minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;height:100svh;position:sticky;top:0;background:white;border-right:1px solid #e1ebf7;padding:27px 17px}.side-logo{display:flex;align-items:center;gap:12px;margin:0 9px 38px}.side-logo strong{font-size:16px}.side-logo small{display:block;color:#91a5ba;font-size:10px}.side-menu button{display:flex;align-items:center;gap:13px;width:100%;border:0;border-radius:13px;text-align:left;background:transparent;color:#8499b0;padding:16px 14px;font-weight:850;margin:3px 0}.side-menu button.active{background:#eaf4ff;color:#216bd5}.sidebar-foot{margin-top:auto;color:#acbccc;background:#f7fbff;padding:14px;font-size:11px;border-radius:12px}.content{padding:8px 32px 90px}.bottom-nav{display:none}.logo{display:none}.header{justify-content:flex-end}}
@media (max-width:370px){.content{padding-left:11px;padding-right:11px}.stat{padding:12px 8px}.stat-label{font-size:9px}.section-top h2,.section-title h2{font-size:16px}.surface{padding:17px 12px}.connection{font-size:10px}.hero{padding:22px}.page-head h1{font-size:24px}}
