/* Fonts: Google Fonts' own subsets of Noto Sans Thai v29 and Noto Sans v42, served from here so no visitor
   request reaches Google. Licenses: fonts/OFL-*.txt */
@font-face{font-family:"Noto Sans Thai";font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/fonts/noto-sans-thai-thai.woff2) format("woff2");unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:"Noto Sans Thai";font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/fonts/noto-sans-thai-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Noto Sans Thai";font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/fonts/noto-sans-thai-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Noto Sans";font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/fonts/noto-sans-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root{--primary:#2563EB;--primary-dark:#1D4ED8;--primary-soft:#EFF6FF;--text:#111827;--text-2:#4B5563;
--canvas:#F8FAFC;--surface:#FFFFFF;--line:#E2E8F0;--border:#CBD5E1;--sky:#BFDBFE;--input:#64748B;--ink:#111827;
--chip:#F1F5F9;--chip-text:#334155;--ok:#15803D;--ok-bg:#F0FDF4;--warn:#B45309;--warn-bg:#FFFBEB;--warn-text:#78350F;
--bad:#B91C1C;--bad-bg:#FEF2F2;--bad-line:#FECACA;color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
/* Names and messages come from users and Facebook; one unbroken 100-character name must never widen the page,
   so every element may break inside a word that does not fit. Normal break points still come first. */
body{margin:0;background:var(--canvas);color:var(--text);font:16px/1.6 "Noto Sans Thai","Noto Sans",system-ui,sans-serif;overflow-wrap:anywhere}
a{color:var(--primary)}a:hover{color:var(--primary-dark)}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
h1,h2,h3,p,ul,ol,pre{margin:0}
h1{font-size:32px;line-height:1.3;font-weight:600;text-wrap:balance}
h2{font-size:20px;line-height:1.4;font-weight:600}
h3{font-size:17px;line-height:1.4;font-weight:600}
code,pre{font-family:ui-monospace,Menlo,monospace}
.shell{display:flex;min-height:100vh}
.rail{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;width:88px;flex:0 0 88px;position:sticky;top:0;height:100vh}
.brand{flex:none;display:block;margin-bottom:10px;border-radius:12px}
.brand img{display:block}
.rail-item{width:72px;min-height:44px;padding:8px 0 6px;border-radius:12px;border:1px solid transparent;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--text-2);text-decoration:none;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.rail-item:hover{background:var(--surface);color:var(--text)}
.rail-item[aria-current=page]{background:var(--surface);border-color:var(--line);color:var(--text);font-weight:500}
.rail-end{margin-top:auto}
.panel{flex:1 1 auto;min-width:0;margin:8px 8px 8px 0;padding:32px 40px;background:var(--surface);border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;gap:24px}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.lede{max-width:640px;margin-top:4px;color:var(--text-2)}
.sub{font-size:14px;color:var(--text-2)}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.between{justify-content:space-between}
.grow{flex:1 1 200px;min-width:0}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:24px;align-items:start}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:9999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:15px;font-weight:500;text-decoration:none;white-space:nowrap;cursor:pointer}
.btn:hover{border-color:var(--input);color:var(--text)}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}
.btn-warn{border-color:var(--warn);color:var(--warn-text)}
.btn-danger{color:var(--bad)}.btn-danger:hover{color:var(--bad);border-color:var(--bad)}
.btn-danger.solid{background:var(--bad);border-color:var(--bad);color:#fff}.btn-danger.solid:hover{background:#991B1B;border-color:#991B1B;color:#fff}
.confirm{text-align:end}.row>.confirm{margin-left:auto}
.confirm>summary{list-style:none}.confirm>summary::-webkit-details-marker{display:none}
.confirm[open]>summary{background:var(--chip)}
.confirm-box{display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:320px;margin:8px 0 0 auto;padding:12px 14px;border:1px solid var(--bad-line);border-radius:14px;background:var(--bad-bg);color:#7F1D1D;font-size:14px;text-align:start}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.chip{display:inline-flex;align-items:center;max-width:100%;padding:2px 10px;border-radius:9999px;background:var(--chip);color:var(--chip-text);font-size:13px;line-height:1.6}
.chip.ok{background:var(--ok-bg);color:var(--ok)}.chip.warn{background:var(--warn-bg);color:var(--warn)}
.chip.bad{background:var(--bad-bg);color:var(--bad)}.chip.info{background:var(--primary-soft);color:var(--primary-dark);font-size:14px}
.pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:9999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:14px;text-decoration:none}
.pill:hover{border-color:var(--input);color:var(--text)}
.pill[aria-current]{background:var(--ink);border-color:var(--ink);color:#fff}
.count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:9999px;background:var(--chip);color:var(--chip-text);font-size:12px;font-weight:600;line-height:1}
.pill[aria-current] .count{background:rgba(255,255,255,.2);color:#fff}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);overflow-x:auto}
.tabs a{display:inline-flex;align-items:flex-end;min-height:44px;padding-bottom:10px;border-bottom:2px solid transparent;color:var(--text-2);text-decoration:none;white-space:nowrap}
.tabs a[aria-current]{border-color:var(--text);color:var(--text);font-weight:500}
.card{padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:var(--surface);display:flex;flex-direction:column;gap:10px}
.card.off{background:var(--canvas)}
.rule-head{flex-wrap:nowrap;align-items:flex-start}
.notice{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 18px;border-radius:16px;background:var(--warn-bg);border:1px solid #FCD34D;color:var(--warn-text)}
.notice>svg{flex:none}.notice>span{flex:1 1 260px}
.notice>ul{flex:1 1 0;list-style:none;padding:0;display:flex;flex-direction:column;gap:4px}
.notice.bad{background:var(--bad-bg);border-color:var(--bad-line);color:#7F1D1D}
.notice.ok{background:var(--ok-bg);border-color:#BBF7D0;color:#14532D}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.stat{padding:18px;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.stat .dot{margin-bottom:10px}
.stat b{font-size:28px;line-height:1.3;font-weight:600}
.stat.bad b{color:var(--bad)}
.feed{list-style:none;padding:0}
.feed li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.feed li:last-child{border-bottom:0}
.pages{list-style:none;padding:0}
.pages li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.pages li:has(>.confirm){flex-wrap:wrap}.pages li>.confirm{margin-left:auto}.pages li>.confirm[open]{flex-basis:100%}
.pages li:first-child{border-top:0;padding-top:0}.pages .chip{flex:none}
.dot,.tile{flex:none;width:36px;height:36px;border-radius:9999px;display:grid;place-items:center;background:var(--chip);color:var(--chip-text)}
.tile{width:44px;height:44px;border-radius:12px;background:var(--primary-soft);color:var(--primary-dark)}
.dot.ok{background:var(--ok-bg);color:var(--ok)}.dot.warn{background:var(--warn-bg);color:var(--warn)}
.dot.bad{background:var(--bad-bg);color:var(--bad)}.dot.info{background:var(--primary-soft);color:var(--primary-dark)}
.next{padding:20px;border-radius:20px;background:var(--ink);color:#fff;display:flex;gap:16px;align-items:center}
.next .date{flex:0 0 56px;height:60px;border-radius:14px;background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2;font-size:12px}
.next .date b{font-size:20px;font-weight:600}
.next .sub{color:#CBD5E1}.next a{color:#BFDBFE}
.form{display:flex;flex-direction:column;gap:14px}.form>.btn{align-self:flex-start}
.foot{padding-top:16px;border-top:1px solid var(--line)}
label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}
fieldset{margin:0;padding:0;border:0;min-width:0}
legend{padding:0;margin-bottom:12px;font-size:17px;font-weight:600}
.hint{font-size:13px;font-weight:400;color:var(--text-2)}
::placeholder{color:var(--input);opacity:1}
input,textarea,select{width:100%;min-height:48px;padding:10px 16px;border:1px solid var(--input);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:16px;font-weight:400}
textarea{resize:vertical}
[aria-invalid=true]{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}
.switch{flex:none;display:grid;place-items:center;min-width:56px;min-height:44px;padding:0;border:0;border-radius:9999px;background:none;cursor:pointer}
.track{display:flex;width:52px;height:32px;padding:3px;border-radius:9999px;background:var(--input)}
.switch[aria-checked=true] .track{background:var(--primary);justify-content:flex-end}
.knob{width:26px;height:26px;border-radius:9999px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.3)}
.tester{padding:24px;border-radius:24px;background:var(--canvas);border:1px solid var(--line);display:flex;flex-direction:column;gap:16px}
.result{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.bubble{align-self:flex-start;max-width:85%;padding:10px 14px;border-radius:18px 18px 18px 4px;background:var(--chip)}
.bubble.page{align-self:flex-end;border-radius:18px 18px 4px 18px;background:var(--primary);color:#fff}
.dm{display:flex;gap:10px;padding:12px;border-radius:14px;border:1px dashed var(--input)}
.ok-text{color:var(--ok)}.warn-text{color:var(--warn)}.bad-text{color:var(--bad)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{padding:10px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
th{background:var(--canvas);color:var(--text-2);font-weight:600;white-space:nowrap}
tr:last-child td{border-bottom:0}
td.text{min-width:220px}td.page{min-width:140px}.nowrap{white-space:nowrap}
.week{list-style:none;padding:0;display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:6px;overflow-x:auto}
.day{padding:10px 0;border-radius:16px;background:var(--chip);color:var(--text-2);text-align:center;line-height:1.3;font-size:12px}
.day b{display:block;font-size:22px;font-weight:600;color:var(--text)}
.day.has{background:var(--primary-soft);color:var(--primary-dark);box-shadow:inset 0 0 0 1px #BFDBFE}.day.has b{color:var(--primary-dark)}
.day.today{background:var(--ink);color:#fff;box-shadow:none}.day.today b{color:#fff}
.post{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:20px}
.post.failed{border-color:var(--bad-line);background:var(--bad-bg)}
.post .grow{display:flex;flex-direction:column;gap:4px}
.post>.confirm,.post>.btn{grid-column:3}
.meta{gap:4px 10px}
.thumb{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:var(--chip);color:var(--chip-text)}
.post.failed .thumb,.post.failed .chip{background:var(--surface);color:var(--bad)}
.title{font-weight:600}
.end{justify-content:flex-end}
.replies{display:flex;flex-direction:column;gap:8px}
.reply{display:flex;gap:10px;padding:10px 14px;border-radius:14px;background:var(--canvas)}
.reply>svg{flex:none;margin-top:4px;color:var(--text-2)}
.reply ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:4px}
.reply p{white-space:pre-line}
.card.off .reply{background:var(--surface)}
.can-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.can{padding:18px;border-radius:16px;background:var(--canvas)}
.can ul{list-style:none;padding:0;font-size:14px;color:var(--chip-text);display:flex;flex-direction:column;gap:6px;margin-top:10px}
.can li{display:flex;gap:8px;align-items:flex-start}.can li svg{flex:none;margin-top:3px;color:var(--text-2)}
.can.yes li svg{color:var(--ok)}
.step{display:flex;gap:14px}.step>.stack{flex:1 1 auto;min-width:0;gap:8px}
.num{flex:none;width:28px;height:28px;border-radius:9999px;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:600}
.num.todo{background:var(--border);color:var(--ink)}
pre.code{padding:14px 16px;border-radius:16px;background:var(--ink);color:#E5E7EB;font-size:13px;line-height:1.7;white-space:pre-wrap;word-break:break-all}
.copy{display:flex;flex-direction:column;gap:8px}.copy>.btn{align-self:flex-start}
.btn[hidden]{display:none}
.guide{border-top:1px solid var(--line);padding-top:4px;display:flex;flex-direction:column;gap:10px}
.guide>summary{cursor:pointer;font-weight:500;min-height:44px;display:flex;align-items:center}
.guide>summary::after{content:"";flex:none;margin-left:auto;width:9px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.guide[open]>summary::after{transform:rotate(-135deg)}
.guide>:not(summary)+*{margin-top:10px}
.guide-steps{padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.guide code{overflow-wrap:anywhere}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,11fr) minmax(0,9fr);background:var(--surface)}
.auth-brand{display:flex;flex-direction:column;justify-content:center;gap:20px;padding:48px 56px;background:var(--primary-soft);border-right:1px solid var(--sky)}
.lockup{display:flex;align-items:center;gap:12px}
.wordmark{font:700 28px/1.2 "Noto Sans",sans-serif;letter-spacing:-.01em}.wordmark span{color:var(--primary)}
.tagline{max-width:14em;font-size:44px;line-height:1.35;font-weight:600;letter-spacing:-.01em;margin-top:12px;text-wrap:balance}
.auth-brand .lede{max-width:34em;font-size:17px}
.auth-art{display:block;width:100%;max-width:560px;height:auto;border:1px solid var(--sky);border-radius:28px;background:var(--surface)}
.points{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px;max-width:34em}
.points li{display:flex;gap:12px;align-items:flex-start}
.points svg{flex:none;margin-top:2px;color:var(--primary)}
.auth-main{display:grid;place-items:center;padding:48px 24px}
.auth-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:24px}
.auth-card .form>.btn{align-self:stretch}
.text-page{max-width:760px;margin:0 auto;padding:40px 20px 64px;display:flex;flex-direction:column;gap:14px}
.text-page>.lockup{color:var(--text);text-decoration:none;margin-bottom:12px;align-self:flex-start}
.text-page h2{margin-top:20px}
.text-page ul{padding-left:1.4em;display:flex;flex-direction:column;gap:6px}
.empty{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;padding:20px 24px;border:1px dashed var(--border);border-radius:20px}
.empty img{flex:none;width:136px;height:136px}
.empty .stack{flex:1 1 220px;gap:8px;align-items:flex-start}
.empty .title{font-size:17px;line-height:1.4}
.setup ol{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px}
.setup li{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.setup li .grow{min-width:120px}
.post-restriction summary{cursor:pointer;font-weight:500;padding:8px 0;min-height:44px}
.post-restriction label{margin-top:8px}
@media (max-width:960px){
.auth{grid-template-columns:1fr;align-content:start}
.auth-brand{gap:8px;padding:20px 20px 24px;border-right:0;border-bottom:1px solid var(--sky)}
.tagline{font-size:28px;margin-top:8px}
.auth-brand .lede{font-size:15px}
.auth-art,.points{display:none}
.auth-main{padding:28px 20px 48px;place-items:start}
}
@media (max-width:720px){
.shell{flex-direction:column}
.rail{flex-direction:row;width:auto;height:auto;position:static;flex:none;gap:2px;padding:8px;overflow-x:auto}
.brand{margin:0 4px 0 0;align-self:center}.brand img{width:32px;height:32px}
.rail-item{width:auto;flex:1 1 0;padding:6px 0;font-size:12px;white-space:nowrap}
.rail-end{margin-top:0;display:flex;flex:1.3 1 0}.rail-end .rail-item{flex:1}
.panel{margin:0 8px 8px;padding:20px 16px}
.stat{padding:12px}
.empty{padding:16px;gap:12px;flex-wrap:nowrap;align-items:flex-start}
.empty img{width:64px;height:64px}
.empty .stack{flex:1 1 0;min-width:0}
h1{font-size:26px}
.week{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.day b{font-size:18px}
.unit{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.post{align-items:start}
.post>.confirm,.post>.btn{grid-column:2;justify-self:start}
.post>.confirm{text-align:start}.post .confirm-box{margin-left:0}
.post .meta{flex-direction:column;align-items:flex-start}
.table-wrap.log{overflow:visible;border:0;border-radius:0}
.log thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.log table,.log tbody{display:block}
.log tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who status" "msg msg" "page when" "inbox inbox" "note note";gap:4px 12px;padding:14px 16px;border:1px solid var(--line);border-radius:16px}
.log tr+tr{margin-top:10px}
.log td{display:block;min-width:0;padding:0;border:0}
.log .who{grid-area:who;font-weight:600}.log .status{grid-area:status;justify-self:end}.log .msg{grid-area:msg;font-size:15px}
.log .page{grid-area:page}.log .when{grid-area:when;justify-self:end}.log .inbox{grid-area:inbox}.log .note{grid-area:note}
.log .page,.log .when,.log .inbox,.log .note{font-size:13px;color:var(--text-2)}
.log .inbox::before{content:attr(data-label) ": "}.log .note:empty{display:none}
.thumb{width:44px;height:44px;border-radius:12px}
}
/* The smallest phones: the ภาพรวม tab already links home, so the logo gives its width to the labels. */
@media (max-width:360px){.brand{display:none}}
/* Pending state (app.js): the three nodes of the Y mark light up in turn along their line, and a bar runs
   along the top. Only opacity and transforms animate; reduced motion slows the nodes, drops the hop and
   pulses the bar in place. */
.nodes{position:relative;display:inline-flex;align-items:center;gap:5px}
.nodes::before{content:"";position:absolute;inset:50% 3px auto;height:2px;margin-top:-1px;border-radius:1px;background:currentColor;opacity:.35}
.nodes i{position:relative;width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.4;animation:node 1.2s ease-in-out infinite}
.nodes i:nth-child(2){animation-delay:.2s}.nodes i:nth-child(3){animation-delay:.4s}
@keyframes node{0%,60%,100%{opacity:.4;scale:1}30%{opacity:1;scale:1.45}}
@keyframes node-soft{0%,60%,100%{opacity:.4}30%{opacity:1}}
[aria-disabled=true]{cursor:progress}
html.loading body::before{content:"";position:fixed;z-index:100;top:0;left:0;width:40%;height:3px;border-radius:0 2px 2px 0;background:var(--primary);animation:bar 1.1s ease-in-out .15s infinite both}
@keyframes bar{from{translate:-100% 0}to{translate:250% 0}}
@media (prefers-reduced-motion:reduce){.nodes i{animation:node-soft 3.6s ease-in-out infinite}.nodes i:nth-child(2){animation-delay:.6s}.nodes i:nth-child(3){animation-delay:1.2s}html.loading body::before{width:100%;animation:bar-soft 2s ease-in-out .15s infinite both}}
@keyframes bar-soft{0%,100%{opacity:.2}50%{opacity:1}}
.check{flex-direction:row;align-items:center;gap:10px;font-weight:400}
.check input{width:22px;min-height:22px;margin:0}
.deliveries{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.thread{gap:8px}
.bubble .who{display:block;font-size:12px;opacity:.8;margin-bottom:2px}
.bubble.failed{outline:2px solid var(--bad)}
