*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:#0d1117}
body{color:#e6edf3;font:13px/20px 'IBM Plex Sans Thai','Noto Sans Thai','Leelawadee UI',system-ui,sans-serif;-webkit-text-size-adjust:100%}
.mono{font-family:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}
.wrap{max-width:390px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
.main{flex:1;padding:16px 16px 12px;display:flex;flex-direction:column;gap:12px}
.main-in,.g2{display:flex;flex-direction:column;gap:12px}
h1{font-size:20px;line-height:28px;font-weight:700;margin:0}
h2{font-size:16px;line-height:24px;font-weight:700;margin:0}
p{margin:0}
a{color:#58a6ff;text-decoration:none}a:hover{color:#79b8ff}
.mut{color:#9da7b3}.sm{font-size:11px;line-height:16px}.b{font-weight:600}
.pos{color:#56d364}.neg{color:#ff7b72}.amb{color:#e3b341}
.row{display:flex;align-items:center;gap:8px}.btw{justify-content:space-between}.top{align-items:flex-start}.wrapx{flex-wrap:wrap}
.right{text-align:right}.grow{flex:1;min-width:0}
.badge{font-size:11px;line-height:16px;font-weight:700;padding:2px 8px;border-radius:8px;border:1px solid #56d364;background:#12261b;color:#56d364;white-space:nowrap}
.badge.off{border-color:#30363d;background:#161b22;color:#9da7b3}
.badge.unk{border-color:#e3b341;background:#2a1f06;color:#e3b341}
.t{font-size:14px;line-height:20px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:flex;align-items:center;gap:6px;font-size:11px;line-height:16px;padding:4px 8px;border-radius:8px;background:#12261b;color:#56d364}
.chip i{width:6px;height:6px;border-radius:3px;background:currentColor;display:block}
.chip.bad{background:#3d1418;color:#ff7b72}
.chip.neu{background:#161b22;color:#9da7b3;border:1px solid #30363d;padding:3px 8px}
.stale{background:#3d1418;border:1px solid #ff7b72;border-radius:12px;padding:12px;color:#ffd7d3}
.stale b{color:#ff7b72;font-size:16px;line-height:24px;display:block}
.card{background:#161b22;border:1px solid #30363d;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.card.dash{border-style:dashed}
.big{font-size:28px;line-height:34px;font-weight:600}
.big .unit{font-size:13px;line-height:20px;font-weight:400;color:#9da7b3}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tile{background:#21262d;border-radius:8px;padding:8px}
.tile .v{font-size:14px;line-height:20px;font-weight:600;overflow-wrap:anywhere}
.know{background:#2a1f06;border:1px solid #e3b341;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px}
.know h2{color:#e3b341}
.pill{font-size:11px;line-height:16px;font-weight:600;padding:0 6px;border-radius:4px;background:#3d1418;color:#ff7b72;white-space:nowrap}
.pill.ok{background:#12261b;color:#56d364}.pill.neu{background:#21262d;color:#9da7b3}
.pill.rnd{padding:2px 8px;border-radius:8px}
.coin{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid #21262d}
.sym{font-size:14px;line-height:20px;font-weight:600;width:48px;flex:none}
.segs{display:flex;gap:3px;flex:none}
.segs i{width:18px;height:8px;border-radius:2px;background:#30363d;display:block}
.segs i.on{background:#58a6ff}
.note{flex:1;min-width:0;text-align:right;font-size:11px;line-height:16px}
svg.bar{display:block;width:100%;height:6px}
svg.pbar{display:block;width:100%;height:18px}
.trk{fill:#21262d}.fill{fill:#ff7b72}.zone{fill:#3d1418}.mk{fill:#9da7b3}.mkg{fill:#56d364}.thumb{fill:#e6edf3}
.h16{font-size:16px;line-height:24px;font-weight:600}
.hist{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;padding:8px 0;border-top:1px solid #21262d}
.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #21262d}
.kv .k{flex:1;min-width:0}.kv .v{text-align:right;flex:none;max-width:60%;overflow-wrap:anywhere}
.cmd{font-family:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;color:#58a6ff;font-size:11px;line-height:16px}
table.st{width:100%;border-collapse:collapse;font-size:11px;line-height:16px}
table.st th{color:#9da7b3;font-weight:400;text-align:right;padding:4px 2px;border-bottom:1px solid #30363d}
table.st td{text-align:right;padding:6px 2px;border-bottom:1px solid #21262d;vertical-align:top}
table.st th:first-child,table.st td:first-child{text-align:left}
nav{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #30363d;background:#161b22}
nav a{min-height:52px;display:flex;align-items:center;justify-content:center;font-size:11px;line-height:16px;color:#9da7b3;border-top:2px solid #161b22}
nav a.act{color:#e6edf3;font-weight:700;border-top-color:#58a6ff}
.foot{display:flex;justify-content:space-between;align-items:center;gap:8px}
button.lnk{background:none;border:0;padding:8px 0;color:#58a6ff;font:inherit;cursor:pointer}
form.login{display:flex;flex-direction:column;gap:12px}
form.login input{background:#0d1117;border:1px solid #30363d;border-radius:8px;color:#e6edf3;font:16px/24px inherit;padding:10px 12px;width:100%}
form.login button{background:#1f6feb;border:0;border-radius:8px;color:#fff;font:600 14px/20px inherit;padding:12px;cursor:pointer}
.err{color:#ff7b72}
@media(min-width:760px){.wrap{max-width:760px}.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}}
