
:root{--ink:#0f172a;--mut:#475569;--line:#e2e8f0;--bg:#f1f5f9;--panel:#fff;--acc:#0369a1;--acc-h:#075985;--acc-soft:#e0f2fe;--danger:#b91c1c;--ok:#047857;--ok-soft:#d1fae5;--warn:#92400e;--warn-soft:#fef3c7;--navy:#0f172a;--line-green:#06c755;--r:12px;--sh:0 1px 2px rgba(15,23,42,.05),0 6px 20px -6px rgba(15,23,42,.10)}
*{box-sizing:border-box;margin:0}
html,body{min-height:100%}
body{font-family:"IBM Plex Sans Thai",system-ui,sans-serif;font-size:15px;line-height:1.65;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--acc)}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
.logo{width:12px;height:12px;background:var(--acc);border-radius:3px;box-shadow:5px 5px 0 -1px #7dd3fc;flex:none}
.ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.row{display:flex;gap:10px;align-items:center}
.btn{min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--line);background:#fff;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--ink);transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.btn:hover:not(:disabled){background:#f8fafc;border-color:#cbd5e1}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.pri{background:var(--acc);border-color:var(--acc);color:#fff;font-weight:600}
.btn.pri:hover:not(:disabled){background:var(--acc-h);border-color:var(--acc-h)}
.btn.lg{min-height:52px;padding:0 24px;font-size:16px;border-radius:10px}
.btn.sm{min-width:44px;padding:0 10px}
.btn.danger:hover:not(:disabled){color:var(--danger);border-color:#fca5a5;background:#fef2f2}
.btn.dangerfill{background:var(--danger);border-color:var(--danger);color:#fff;font-weight:600}
.btn.dangerfill:hover:not(:disabled){background:#991b1b;border-color:#991b1b}
.btn.line{background:var(--line-green);border-color:var(--line-green);color:#fff;font-weight:700;font-size:16px}
.btn.line:hover:not(:disabled){background:#05b34c;border-color:#05b34c}
.btn.block{width:100%}
.chip{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;color:var(--mut);transition:all .15s}
.chip:hover{border-color:var(--acc);color:var(--acc);background:var(--acc-soft)}
.chips{display:flex;flex-direction:column;gap:8px}
.chips .chip{text-align:left;border-radius:10px;min-height:44px;padding:8px 14px;line-height:1.4}
.chips.wrap{flex-direction:row;flex-wrap:wrap}
.chips.wrap .chip{border-radius:999px;min-height:40px;padding:0 14px}
.ib{width:40px;height:44px;display:inline-grid;place-items:center;border:0;background:none;border-radius:8px;color:var(--mut);transition:background-color .15s,color .15s}
.ib:hover:not(:disabled){background:#f1f5f9;color:var(--ink)}
.ib.danger:hover:not(:disabled){background:#fef2f2;color:var(--danger)}
.ib:disabled{opacity:.3;cursor:not-allowed}
.vseg{display:flex;gap:4px;padding:4px;background:#f1f5f9;border-radius:10px}
.vseg button{flex:1;min-height:40px;padding:0 12px;border:0;border-radius:7px;background:none;font-size:13px;font-weight:500;color:var(--mut);transition:background-color .15s,color .15s,box-shadow .15s}
.vseg button:hover{color:var(--ink)}
.vseg button[aria-checked=true]{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(15,23,42,.14)}
.pcard{display:flex;gap:12px;align-items:center;text-align:left;padding:12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;min-height:64px;transition:border-color .15s,box-shadow .15s;position:relative}
.pcard:hover{border-color:#94a3b8}
.pcard[aria-pressed=true],.pcard[aria-checked=true]{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}
.pcard b{display:block;font-size:14px}.pcard span{font-size:12.5px;color:var(--mut)}
.pcard .ck{position:absolute;top:6px;right:6px;width:18px;height:18px;border-radius:50%;background:var(--acc);color:#fff;display:grid;place-items:center}
.pcard .ck .ic{width:12px;height:12px;stroke-width:3}
.sw{display:flex;flex:none}.sw i{width:22px;height:40px;display:block}.sw i:first-child{border-radius:6px 0 0 6px}.sw i:last-child{border-radius:0 6px 6px 0;border:1px solid var(--line)}
.auto-ic{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--acc-soft);color:var(--acc);flex:none}
label.l{display:grid;gap:4px;font-size:13px;font-weight:600;color:var(--mut)}
.in{width:100%;min-height:44px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}
textarea.in{resize:vertical;line-height:1.7}
.in:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 4px #bae6fd}
.in[aria-invalid=true]{border-color:var(--danger);box-shadow:0 0 0 3px #fee2e2}
.hint{font-size:12.5px;font-weight:400;color:var(--mut)}
.hint.bad{color:var(--danger)}.hint.good{color:var(--ok)}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:sp .7s linear infinite;flex:none}
.spin.dk{border-color:#cbd5e1;border-top-color:var(--acc)}
@keyframes sp{to{transform:rotate(360deg)}}
.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:14px}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:grid;place-items:center;z-index:20;padding:20px}
.modal>div{background:#fff;border-radius:12px;width:min(860px,100%);max-height:86vh;display:flex;flex-direction:column}
.modal>.dlg{width:min(520px,100%);padding:24px;gap:16px;overflow:auto;border-radius:16px;box-shadow:0 24px 60px -12px rgba(15,23,42,.45)}
.dlg h2{font-size:20px;line-height:1.4}
.dlg .acts{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.badge{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap;background:#e2e8f0;color:#334155}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.new{background:var(--acc-soft);color:var(--acc-h)}.badge.bad{background:#fee2e2;color:#b91c1c}.badge.warn{background:var(--warn-soft);color:var(--warn)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}
.card.pad{padding:22px}
.card h2{font-size:17px;line-height:1.4}
.muted{color:var(--mut)}
.stack{display:grid;gap:14px}
.sp{flex:1}
.skel{background:linear-gradient(90deg,#e2e8f0,#f1f5f9,#e2e8f0);background-size:200% 100%;animation:sk 1.2s linear infinite;border-radius:8px}
@keyframes sk{to{background-position:-200% 0}}
.sw2{min-width:52px;height:44px;border:0;background:none;position:relative;flex:none}
.sw2::before{content:"";position:absolute;left:2px;top:8px;width:48px;height:28px;border-radius:999px;background:#94a3b8;transition:background-color .15s}
.sw2::after{content:"";position:absolute;left:6px;top:12px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.sw2[aria-checked=true]::before{background:var(--acc)}.sw2[aria-checked=true]::after{transform:translateX(20px)}
.trow{display:flex;align-items:center;gap:14px;min-height:56px}
.trow b{display:block;font-weight:600}.trow small{color:var(--mut);font-size:13px}
.thumb{position:relative;overflow:hidden;background:#e2e8f0;aspect-ratio:16/10;display:block}
.thumb iframe{position:absolute;left:0;top:0;width:1280px;height:800px;border:0;transform-origin:0 0;transform:scale(.25);pointer-events:none;background:#fff}
.emptyst{display:grid;justify-items:center;text-align:center;gap:10px;padding:56px 20px}
.emptyst .eic{width:64px;height:64px;border-radius:18px;background:var(--acc-soft);color:var(--acc);display:grid;place-items:center;margin-bottom:6px}
.emptyst .eic .ic{width:28px;height:28px}
.emptyst h3{font-size:19px}.emptyst p{color:var(--mut);max-width:380px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 12px 30px -8px rgba(15,23,42,.5);z-index:40;display:flex;gap:10px;align-items:center;max-width:calc(100vw - 32px);animation:up .2s ease-out}
.toast .ic{color:#6ee7b7}
@keyframes up{from{opacity:0;transform:translate(-50%,8px)}}
.shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}
.side{background:var(--navy);color:#cbd5e1;padding:18px 14px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}
.side .brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:17px;padding:6px 10px 18px;text-decoration:none}
.side .ni{min-height:44px;display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:10px;color:#cbd5e1;text-decoration:none;font-weight:500;transition:background-color .15s,color .15s}
.side .ni:hover{background:rgba(255,255,255,.08);color:#fff}
.side .ni[aria-current=page]{background:rgba(125,211,252,.16);color:#fff}
.side .me{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:12px;display:grid;gap:2px}
.main{padding:32px clamp(16px,4vw,48px) 64px;max-width:1240px;width:100%}
.pagehead{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.pagehead h1{font-size:26px;line-height:1.35}.pagehead p{color:var(--mut)}
.steps{display:flex;gap:8px;list-style:none;padding:0;align-items:center}
.steps li{display:flex;align-items:center;gap:10px;color:var(--mut);font-weight:500;font-size:14px}
.steps li+li::before{content:"";width:36px;height:2px;background:var(--line);margin-right:2px}
.steps .n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#334155;font-weight:700;font-size:13px}
.steps .on{color:var(--ink);font-weight:600}.steps .on .n{background:var(--acc);color:#fff}
.steps .done .n{background:var(--ok);color:#fff}.steps .done::before,.steps .on::before{background:var(--acc)}
@media(max-width:900px){
.shell{grid-template-columns:1fr}
.side{position:static;height:auto;flex-direction:row;align-items:center;overflow-x:auto;padding:8px 10px;gap:2px}
.side .brand{padding:0 10px 0 4px;white-space:nowrap}.side .ni{white-space:nowrap;padding:0 12px}.side .me{margin:0 0 0 auto;border:0;padding:0;display:flex}
.side .ni span.t{display:none}.side .ni[aria-current=page] span.t{display:inline}
.steps li+li::before{width:16px}.steps li span.t{display:none}.steps .on span.t{display:inline}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
