*{box-sizing:border-box} :root{--green:#087b70;--dark:#124842;--muted:#647e79;--line:#dae7e2;--bg:#f2f6f4} body{margin:0;background:var(--bg);color:#203d37;font:16px/1.55 'Noto Sans Thai','Leelawadee UI',Tahoma,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait} button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72c9b6;outline-offset:2px}header{background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px max(20px,calc((100vw - 1180px)/2))}.brand{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;background:var(--green);color:white;width:48px;height:48px;font-size:32px;font-weight:bold;border-radius:13px;flex-shrink:0}.brand b{display:block;font-size:18px}.small,small{color:var(--muted);font-size:13px}.nav{display:flex;gap:8px;flex-wrap:wrap}.btn,button{border:1px solid #cbddd5;background:white;color:var(--dark);border-radius:9px;padding:10px 16px;min-height:42px;font-weight:600}.primary{background:var(--green);color:white;border-color:var(--green)}.danger{color:#a12424}.banner{text-align:center;background:#e1f0e8;color:#285c4c;font-size:13px;padding:7px 14px}.hero{background:linear-gradient(110deg,#075e55,#118476);color:white;padding:30px max(20px,calc((100vw - 1180px)/2))}.hero h1{font-size:32px;margin:5px 0;line-height:1.3}.hero p{margin:6px 0;color:#d9f5e9}.eyebrow{font-size:12px;letter-spacing:.08em;color:#bce4d8}.layout{max-width:1180px;margin:24px auto;padding:0 18px;display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:0 3px 12px #174d4310;margin-bottom:14px}.card h2,.card h3{margin:0 0 8px}.card h2{font-size:23px}.card h3{font-size:17px}.steps{display:flex;justify-content:space-between;gap:8px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}.step{flex:1;display:flex;gap:7px;align-items:center;font-size:13px;color:var(--muted)}.step span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eaf1ed;flex:none;font-weight:bold}.step.active{color:var(--green);font-weight:bold}.active span{background:var(--green);color:white}.done span{background:#d4efe2;color:var(--green)}.choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.choice{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;font-size:14px;min-height:43px;margin:0}.choice:has(input:checked){background:#e8f5ed;border-color:var(--green)}.choice input{accent-color:var(--green);width:17px;height:17px;flex:none}label{display:block;font-weight:600;margin:10px 0 4px}input:not([type=radio]):not([type=checkbox]),textarea,select{width:100%;padding:10px 12px;border:1px solid #c5d9d0;border-radius:8px;min-height:44px;background:white;color:#203d37}textarea{resize:vertical;min-height:94px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions{display:flex;justify-content:space-between;gap:10px;padding-top:16px;margin-top:18px;border-top:1px solid var(--line)}.notice{background:#edf6f0;border-radius:8px;padding:12px;color:#355c50;font-size:13px;margin:12px 0}.muted{color:var(--muted)}.error{color:#a22;white-space:pre-wrap}.center{max-width:540px;margin:36px auto;padding:0 15px}.admin{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:75vh}.sidebar{background:#103e3a;color:#bde0d6;padding:22px 14px}.sidebar b{display:block;color:white;margin:8px 12px 20px}.sidebar button{display:block;border:0;background:transparent;color:inherit;text-align:left;width:100%;font-size:14px;margin:3px 0}.sidebar button.active{background:#27655b;color:white}.main{padding:24px;min-width:0}.top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}.top h1{font-size:25px;margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 20px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:16px}.stat strong{display:block;font-size:34px;color:var(--green)}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}th,td{padding:12px 10px;text-align:left;border-bottom:1px solid #e1ece6}th{background:#f3f7f4;color:#57766c}.pill{display:inline-block;background:#e2f0e7;color:#24634e;font-size:12px;padding:4px 9px;border-radius:6px}.filters{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin:12px 0}.chartrow{display:grid;grid-template-columns:1fr 2fr 28px;align-items:center;gap:10px;font-size:13px;margin:10px 0}.bar{height:10px;background:#e5eee8;border-radius:10px;overflow:hidden}.bar i{display:block;background:var(--green);height:100%}.thread{display:flex;flex-direction:column;gap:10px;margin:12px 0}.bubble{max-width:85%;background:#eef3f0;padding:10px 13px;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start}.bubble.citizen{align-self:flex-end;background:#dff1e8}.bubble.internal{border:1px dashed #be9047;background:#fff4dd}.receipt{text-align:center}.receipt .number{font-size:29px;color:var(--green);font-weight:bold}.code{font-family:monospace;word-break:break-all;padding:10px;background:#edf6f0;border-radius:8px}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.foot{text-align:center;color:#668078;font-size:12px;padding:20px}.hidden{display:none!important}.checkline{display:flex;gap:8px;align-items:center;font-weight:400}.checkline input{accent-color:var(--green)}.link{border:0;color:var(--green);padding:2px;background:none}.menurow{display:flex;gap:8px;flex-wrap:wrap}.toast{position:fixed;bottom:16px;right:16px;background:#173c35;color:white;padding:12px 16px;border-radius:10px;max-width:90%;z-index:2}.section{margin:16px 0}.hr{border-top:1px solid var(--line);margin:16px 0}.filelist{font-size:14px}.filelist div{padding:7px 0}.alignright{text-align:right}@media(max-width:850px){.layout{grid-template-columns:1fr}.admin{grid-template-columns:1fr}.sidebar{display:flex;flex-wrap:wrap;padding:7px}.sidebar b{display:none}.sidebar button{width:auto}.stats{grid-template-columns:1fr 1fr}.main{padding:15px}.hero h1{font-size:27px}}@media(max-width:540px){header{flex-direction:column;align-items:flex-start;gap:9px;padding:12px}.nav{width:100%}.nav button{flex:1;padding:8px;font-size:13px}.brand b{font-size:16px}.logo{width:40px;height:40px;font-size:25px}.hero{padding:22px 15px}.hero h1{font-size:25px}.layout{padding:0 11px;margin:13px auto;gap:8px}.card{padding:16px;border-radius:12px}.steps{gap:3px}.step{flex-direction:column;text-align:center;font-size:11px;gap:3px}.step span{width:27px;height:27px}.choices,.two,.filters{grid-template-columns:1fr}.choice{font-size:15px}.actions button{flex:1}.main{padding:11px}.stat{padding:12px}.stat strong{font-size:27px}.center{margin:15px auto}.chartrow{grid-template-columns:1fr 1fr 25px}}@media print{header,.banner,.sidebar,.foot,.no-print,button{display:none!important}body{background:white}.admin,.layout{display:block}.card{border:0;box-shadow:none}.main{padding:0} .receipt{font-family:'TH SarabunPSK',Tahoma,sans-serif;font-size:16pt}}

.privacy-wrap{max-width:1000px;margin:24px auto;padding:0 16px}.privacy-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.privacy-record{border-top:1px solid var(--line);padding:12px 0}.privacy-wrap h1{font-size:25px}.nav{align-items:center}.privacy-wrap textarea{min-height:105px}@media(max-width:650px){.privacy-grid{grid-template-columns:1fr}}


/* Accessible tracking & satisfaction */
:root{--muted:#49635a}body{font-size:17px}button,.btn{min-height:48px} .choice{min-height:48px;font-size:16px} .small,small{font-size:14px} .track-wrap{max-width:820px;margin:26px auto;padding:0 16px}.track-hero h1{font-size:clamp(26px,5vw,38px)}.track-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.track-head h2{margin-top:10px;font-size:26px;overflow-wrap:anywhere}.secret-field{display:flex;gap:8px;align-items:stretch}.secret-field input{min-width:0}.secret-field button{flex:none}.track-progress ol{list-style:none;padding:0;margin:20px 0;display:grid;gap:0}.track-progress li{display:grid;grid-template-columns:42px 1fr;gap:14px;position:relative;padding:0 0 22px;color:#50655e}.track-progress li:not(:last-child):before{content:'';position:absolute;width:3px;left:19px;top:43px;bottom:0;background:#d4e3dc}.track-progress li.complete:not(:last-child):before{background:#168374}.progress-dot{width:42px;height:42px;display:grid;place-items:center;border:2px solid #a8bdb3;background:#fff;border-radius:50%;font-weight:700;font-size:19px}.complete .progress-dot,.current .progress-dot{background:#087b70;border-color:#087b70;color:white}.track-progress li.current strong{color:#065b50}.track-progress strong,.track-progress small{display:block}.step-state{display:inline-block;font-size:13px;font-weight:600;margin-top:4px;color:#4b6359}.closed-pill{background:#d5f1df;color:#125739;font-size:15px}.result-panel{background:#e9f6ee;border-left:5px solid #087b70;padding:18px;border-radius:9px;margin:12px 0 18px}.result-panel p{margin:6px 0}.rating-panel{border:1px solid #d5dfd8;background:#f8fbf8;border-radius:16px;padding:22px;text-align:center;margin:20px 0}.rating-panel h3{font-size:21px;margin-top:10px}.rating-panel p{margin:9px 0}.star-field{border:0;padding:0;margin:14px 0;min-width:0}.star-options{display:flex;gap:8px;justify-content:center;max-width:430px;margin:auto}.star-option{position:relative;flex:1;min-width:0;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 0;border:1px solid #c6d9cd;border-radius:12px;background:white;cursor:pointer;color:#79520b}.star-option input{position:absolute;opacity:0;width:100%;height:100%;margin:0;inset:0;cursor:pointer}.star-option:focus-within{outline:3px solid #087b70;outline-offset:3px}.star-option.selected{background:#fff1c5;border-color:#b68a1d}.star-icon{font-size:clamp(26px,7vw,40px);line-height:1.1;pointer-events:none}.star-num{font-size:16px;font-weight:700;pointer-events:none;color:#263c36}.rating-label{font-weight:700;min-height:28px}.submitted-stars{font-size:36px;letter-spacing:4px;color:#79520b}.track-history{border-top:1px solid #dae7e2;padding:15px 0}.track-history summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;padding-top:8px}.track-history small{display:block}.track-history li{margin:8px 0}.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}@media(max-width:540px){.track-wrap{margin:16px auto;padding:0 12px}.track-login .menurow button,.rating-panel #rate{width:100%}.rating-panel{padding:14px}.star-options{gap:5px}.star-option{min-height:64px}.track-head h2{font-size:22px}.track-hero{padding:22px 16px}.choice{font-size:15px}.small,small{font-size:14px}}
.v2hero{background:linear-gradient(120deg,#07543d,#087d58);border-radius:22px;padding:clamp(24px,5vw,52px);color:white;position:relative;overflow:hidden}.v2hero h1{font-size:clamp(30px,5vw,46px);margin:6px 0}.v2hero p,.v2hero .eyebrow{color:#e1f7eb}.v2cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.v2cards button{text-align:left;background:white;padding:22px;border-radius:17px;box-shadow:0 4px 16px #135b3920;min-height:104px;display:flex;align-items:center;gap:14px;width:100%}.v2cards b{display:block;font-size:19px}.v2cards small{display:block}.v2glyph{font-size:26px;background:#e1f4eb;color:#086a49;border-radius:14px;width:50px;height:50px;display:grid;place-items:center;flex-shrink:0}.v2line{background:#08734d!important;color:white!important;border-color:#08734d!important}.v2line small{color:#e1f7eb}.v2footer{display:flex;gap:10px;flex-wrap:wrap}.v2metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.v2metrics .stat{border-left:4px solid #168365}.v2metrics .stat strong{font-size:28px}.v2bar{height:9px;background:#e3ece7;border-radius:99px;overflow:hidden;margin:5px 0 11px}.v2bar i{display:block;height:100%;background:#168365;border-radius:99px}.v2small{font-size:13px;color:#62766c}.v2case{margin:12px 0;padding:18px;border:1px solid #dce9e1;border-radius:14px;background:#fff}.v2case h3{margin:8px 0}.v2case button{margin-top:8px}.large-text #app{font-size:20px}.large-text #app small,.large-text #app .small{font-size:16px}.v2note{background:#fff6de;border:1px solid #e7ce8e;padding:12px;border-radius:10px;color:#72531b}.sidebar{background:#07513d}.sidebar button.active{background:#17855e;color:white}.v2nav{margin:0 0 12px}.v2nav button{min-height:44px}.v2report{margin-bottom:14px}@media(max-width:620px){.v2cards{grid-template-columns:1fr}.v2cards button{min-height:84px;padding:15px}.v2metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.v2hero{border-radius:16px}.v2hero h1{font-size:32px}}@media print{.v2nav,.v2footer{display:none!important}}


/* V2.2 — responsive polish; no external assets */
:root{--green:#08684e;--dark:#164337;--bg:#f1f6f3;--line:#dce8e0} [hidden]{display:none!important} .v2hero,.v2cards,.v2note{max-width:1100px;margin-inline:auto}.v2hero{margin-top:20px;background:linear-gradient(115deg,#064b37,#087b53)}.v2cards{gap:12px;padding:0 4px}.v2cards button{box-shadow:0 2px 8px #133e2b0b;border-radius:14px}.v2glyph svg,.menu-icon svg,.nav svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.v2cards button:focus-visible{outline:3px solid #0b6652}.v2line .v2glyph{background:#ffffff28;color:white}.v2note{margin-bottom:20px}.line-page{max-width:820px;margin:18px auto}.v2case small{display:block;margin:5px 0}.pill[data-status="3"],.pill[data-status="4"]{background:#fff0cb;color:#775015}.pill[data-status="0"]{background:#e3edfc;color:#235b95}.pill[data-status="6"]{background:#d5f1df;color:#125739}.sidebar button{display:flex;gap:10px;align-items:center}.sidebar .menu-icon{display:inline-flex}.sidebar .menu-icon svg{width:19px;height:19px}.sidebar button.active{box-shadow:inset 3px 0 #a4ead3}.sidebar .sidebar-toggle{font-size:13px;background:#ffffff15;margin-bottom:12px}.admin.compact{grid-template-columns:70px minmax(0,1fr)}.admin.compact .menu-label,.admin.compact .sidebar b,.admin.compact .toggle-label{display:none}.admin.compact .sidebar{padding:12px 6px}.admin.compact .sidebar button{justify-content:center;padding:8px}.v2metrics .stat:nth-child(2){border-left-color:#3675b5}.v2metrics .stat:nth-child(3){border-left-color:#b78426}.v2metrics .stat:nth-child(5){border-left-color:#b64747}.stats .stat strong,.v2metrics .stat strong{font-variant-numeric:tabular-nums}.nav button{display:flex;align-items:center;justify-content:center;gap:6px}.nav svg{width:18px;height:18px}.donut-layout{display:flex;flex-wrap:wrap;gap:22px;align-items:center}.donut{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.donut-inner{width:100px;height:100px;background:#fff;border-radius:50%;display:grid;place-content:center;text-align:center}.trend{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;align-items:end}.trend-slot{display:flex;gap:5px;align-items:end;height:96px;justify-content:center}.trend-slot i{width:22%;background:#087653;border-radius:4px 4px 0 0;min-height:0}.trend-slot i+ i{background:#84b6a1}.trend-cell{text-align:center;font-size:12px}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}.chart-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chart-summary section{min-width:0}.chart-summary h3{margin-bottom:12px}.brand .logo{background:#08684e}.brand .logo svg{width:32px;height:32px;stroke:white;fill:none;stroke-width:1.6}.brand small{line-height:1.4}.large-text .v2cards b{font-size:22px}.large-text .v2cards small{font-size:17px} @media(max-width:850px){.admin.compact{grid-template-columns:1fr}.admin.compact .sidebar{display:flex}.sidebar .sidebar-toggle{display:none}.chart-summary{grid-template-columns:1fr}} @media(max-width:620px){.v2hero,.v2cards,.v2note{margin-inline:12px}.v2hero{margin-top:12px;padding:22px}.v2cards{padding:0}.line-page{margin:12px}.nav svg{width:21px;height:21px}body:not([data-start-page="admin"]) header .nav{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid #dce8e0;padding:5px 5px max(5px,env(safe-area-inset-bottom));z-index:10;display:flex;gap:3px}body:not([data-start-page="admin"]) header .nav button{flex-direction:column;gap:2px;min-width:0;padding:5px 2px;border:none;font-size:12px}body:not([data-start-page="admin"]){padding-bottom:74px}.toast{bottom:83px}.v2cards button{min-height:78px}.v2glyph{width:44px;height:44px}.sidebar button{font-size:13px}.chart-summary{grid-template-columns:1fr}} @media print{body{padding-bottom:0!important}.sidebar-toggle{display:none!important}} @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.security-trend{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;height:90px;padding:8px 0;border-bottom:1px solid var(--line)}.security-hour{display:flex;align-items:flex-end;gap:1px;justify-content:center}.security-hour i{width:42%;background:#b64747;border-radius:2px 2px 0 0}.security-hour i+ i{background:#087653}.sidebar-toggle svg{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}.sidebar .sidebar-toggle{min-height:44px;justify-content:flex-start}.admin.compact .sidebar-toggle{justify-content:center}
.banner{position:sticky;top:0;z-index:1000}
