:root{--bg:#f6f7f9;--surface:#ffffff;--text:#1c2430;--muted:#667085;--border:#e3e7ee;--primary:#2563eb;--primary-dark:#1d4ed8;--ok:#16a34a;--full:#dc2626;--closed:#94a3b8;--warn:#d97706;--radius:12px;--nav-h:56px;font-family:system-ui,-apple-system,Segoe UI,Sarabun,Noto Sans Thai,sans-serif;color:var(--text)}*{box-sizing:border-box}body,html{margin:0;padding:0;background:var(--bg)}body{font-size:16px;line-height:1.5}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{line-height:1.25;margin:0 0 8px}h1{font-size:1.6rem}h2{font-size:1.2rem}h3{font-size:1.05rem}p{margin:0 0 12px}.muted{color:var(--muted)}.small{font-size:.85rem}.stack{display:grid;grid-gap:8px;gap:8px;margin-top:12px}.navbar{height:var(--nav-h);display:flex;align-items:center;gap:12px;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--border);position:-webkit-sticky;position:sticky;top:0;z-index:2000}.navbar .brand{font-weight:800;font-size:1.1rem;color:var(--text);white-space:nowrap}.navbar .brand:hover{text-decoration:none}.navbar .spacer{flex:1 1}.navbar .right{display:flex;gap:8px;align-items:center}.menu{position:relative}.avatar-btn{width:36px;height:36px;border-radius:50%;border:none;cursor:pointer;background:var(--primary);color:#fff;font:inherit;font-weight:700;display:flex;align-items:center;justify-content:center}.dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.15);padding:8px;z-index:2100}.dropdown .who{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:6px}.dropdown a,.dropdown button{display:block;width:100%;text-align:left;padding:9px 10px;border-radius:8px;color:var(--text);background:none;border:none;font:inherit;cursor:pointer}.dropdown a:hover,.dropdown button:hover{background:#f1f4f9;text-decoration:none}label{display:block;font-weight:600;font-size:.9rem;margin-bottom:4px}input,select,textarea{width:100%;padding:10px 12px;font:inherit;color:inherit;border:1px solid var(--border);border-radius:8px;background:#fff}input:focus,select:focus,textarea:focus{outline:2px solid #bfd4ff;border-color:var(--primary)}input:disabled,select:disabled{background:#f3f5f8;color:var(--muted)}textarea{min-height:90px;resize:vertical}.field{margin-bottom:14px}.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:12px;gap:12px}.hint{font-size:.8rem;color:var(--muted);margin-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;font:inherit;font-weight:600;cursor:pointer;border-radius:8px;border:1px solid transparent;background:var(--primary);color:#fff;white-space:nowrap}.btn:hover{background:var(--primary-dark);text-decoration:none}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.secondary{background:#fff;color:var(--text);border-color:var(--border)}.btn.secondary:hover{background:#f1f4f9}.btn.danger{background:var(--full)}.btn.small{padding:6px 10px;font-size:.85rem}.btn.block{width:100%}.alert{padding:10px 12px;border-radius:8px;margin-bottom:12px;font-size:.92rem}.alert.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert.success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}.alert.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.page{max-width:820px;margin:0 auto;padding:24px 16px 48px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:14px}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.78rem;font-weight:700;background:#eef2f7;color:var(--muted)}.badge.pending{background:#fef3c7;color:#92400e}.badge.approved,.badge.confirmed{background:#dcfce7;color:#166534}.badge.cancelled,.badge.rejected{background:#fee2e2;color:#991b1b}.spread{justify-content:space-between;gap:12px;align-items:flex-start}.spread,.thumbs{display:flex;flex-wrap:wrap}.thumbs{gap:8px;margin:8px 0}.photos-layout{display:grid;grid-template-columns:1fr 260px;grid-gap:16px;gap:16px;align-items:start}.ai-example{margin:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#f8fafc}.ai-example img{display:block;width:100%;height:auto}.ai-example figcaption{display:grid;grid-gap:2px;gap:2px;padding:8px 10px;font-size:.8rem;color:var(--muted)}.ai-example figcaption strong{color:inherit;font-size:.85rem}@media (max-width:700px){.photos-layout{grid-template-columns:1fr}.ai-example{max-width:320px}}.thumbs img{width:96px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.section-title{display:flex;align-items:center;gap:10px;font-size:1.05rem;margin-bottom:14px}.section-title .num{width:26px;height:26px;border-radius:50%;background:var(--primary);color:#fff;font-size:.85rem;flex:none}.modal-backdrop,.section-title .num{display:flex;align-items:center;justify-content:center}.modal-backdrop{position:fixed;inset:0;z-index:3000;padding:16px;background:rgba(15,23,42,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fade-in .15s ease-out}.modal{position:relative;width:100%;max-width:400px;max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(15,23,42,.3);animation:pop-in .18s ease-out}.modal-close{position:absolute;top:8px;right:10px;width:32px;height:32px;border:none;background:none;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer;border-radius:8px}.modal-close:hover{background:#f1f4f9}.tabs{display:flex;gap:4px;background:#eef2f7;padding:4px;border-radius:10px;margin:6px 28px 16px 0}.tabs button{flex:1 1;padding:8px;border:none;background:transparent;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;color:var(--muted)}.tabs button.on{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.1)}.demo{margin-top:16px;padding-top:14px;border-top:1px dashed var(--border)}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:#f8fafc;font:inherit;font-size:.82rem;cursor:pointer}.chip:hover{background:#eef4ff;border-color:#bcd0ff}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes pop-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.map-shell{display:grid;grid-template-columns:380px 1fr;height:calc(100dvh - var(--nav-h))}.map-side{display:flex;flex-direction:column;min-height:0;background:var(--surface);border-right:1px solid var(--border)}.side-head{flex:none;padding:14px 16px 10px;border-bottom:1px solid var(--border)}.side-body{flex:1 1;min-height:0;overflow-y:auto;padding:14px 16px 20px}.search{padding:11px 14px;border-radius:999px;background:#f3f5f8}.filters-row{display:grid;grid-template-columns:1.4fr 1fr 1fr;grid-gap:8px;gap:8px;margin-top:10px}.filters-row>div{min-width:0}.filters-row label{font-size:.75rem;color:var(--muted);margin-bottom:2px}.filters-row input,.filters-row select{padding:8px;font-size:.9rem}.seg{display:flex;gap:6px}.seg button{flex:1 1;padding:8px;font:inherit;font-weight:600;cursor:pointer;border:1px solid var(--border);border-radius:8px;background:#fff}.seg button.on{background:var(--primary);color:#fff;border-color:var(--primary)}.legend{display:flex;gap:12px;font-size:.8rem;color:var(--muted);margin:10px 0 0;flex-wrap:wrap}.legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}.list-item{display:flex;gap:12px;width:100%;text-align:left;padding:10px;margin-bottom:10px;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:inherit}.list-item:hover{border-color:#bcd0ff;background:#f8fbff}.list-item .thumb{flex:none;width:72px;height:72px;border-radius:10px;overflow:hidden;background:#e9eef5;display:flex;align-items:center;justify-content:center;font-size:1.6rem}.list-item .thumb img{width:100%;height:100%;object-fit:cover;display:block}.list-item .info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1}.list-item .addr,.list-item .info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.back-link{background:none;border:none;padding:0;margin-bottom:10px;font:inherit;font-weight:600;color:var(--primary);cursor:pointer}.photo-strip{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:6px;gap:6px;margin-bottom:12px}.photo-strip img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#e9eef5}.no-photo{grid-column:1/-1;height:110px;background:#eef2f7;color:var(--muted);display:flex;align-items:center;justify-content:center}.facts,.no-photo{border-radius:10px}.facts{display:grid;grid-gap:10px;gap:10px;margin:14px 0;padding:12px;background:#f8fafc}.facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.avail{font-weight:700}.avail.ok{color:var(--ok)}.avail.full{color:var(--full)}.avail.closed{color:var(--closed)}.steps{list-style:none;margin:18px 0;padding:0}.steps li{display:flex;gap:12px;align-items:flex-start;position:relative;padding-bottom:22px}.steps li:last-child{padding-bottom:0}.steps li:not(:last-child):before{content:"";position:absolute;left:15px;top:34px;bottom:2px;width:2px;background:var(--border)}.steps .dot{flex:none;width:32px;height:32px;border-radius:50%;background:#e5e7eb;color:var(--muted);display:flex;align-items:center;justify-content:center;font-weight:700}.steps li.done .dot{background:var(--ok);color:#fff}.steps li.current .dot{background:var(--warn);color:#fff}.steps li>strong{padding-top:4px}.map-stage{position:relative;min-height:300px}.map-loading,.map-stage .leaflet-container{width:100%;height:100%}.map-loading{background:#e9eef5}.map-locate{position:absolute;right:12px;bottom:34px;z-index:1000;width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer;font-size:1.1rem}.map-locate:hover{background:#f1f4f9}.pin-wrap{background:transparent;border:none}.pin{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:.95rem;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.35)}.pin.ok{background:var(--ok)}.pin.full{background:var(--full)}.pin.closed{background:var(--closed)}.pin.selected{outline:3px solid var(--primary);transform:scale(1.15)}.pin.draft{background:var(--primary)}.picker{height:280px;border-radius:10px;overflow:hidden;border:1px solid var(--border)}.picker .leaflet-container{height:100%}.sched-row{display:grid;grid-template-columns:130px 1fr 1fr;grid-gap:8px;gap:8px;align-items:center;margin-bottom:6px}.sched-row .check{display:flex;align-items:center;gap:8px;margin:0}.sched-row .check input{width:auto}@media (max-width:760px){.map-shell{grid-template-columns:1fr;grid-template-rows:48dvh auto;height:auto}.map-stage{order:-1;height:48dvh}.map-side{border-right:none;border-top:1px solid var(--border)}.side-body{overflow:visible}.navbar{gap:8px;padding:0 10px}.hide-sm{display:none}.sched-row{grid-template-columns:1fr 1fr}.sched-row .check{grid-column:1/-1}}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:10px;gap:10px}.stat{display:grid;grid-gap:2px;gap:2px;padding:10px 12px;background:var(--bg);border-radius:10px}.stat strong{font-size:1.35rem;line-height:1.2}.bars{display:grid;grid-gap:8px;gap:8px}.bar-row{display:grid;grid-template-columns:72px 1fr;grid-gap:4px 10px;gap:4px 10px;align-items:center}.bar-row.today .bar-label{font-weight:700;color:var(--primary)}.bar-label{font-size:.9rem}.bar-track{height:10px;background:var(--bg);border-radius:999px;overflow:hidden}.bar-fill{display:block;height:100%;background:var(--primary);border-radius:999px}.bar-value{grid-column:2;font-size:.85rem;color:var(--muted)}.mini-table{width:100%;border-collapse:collapse;font-size:.92rem}.mini-table td,.mini-table th{text-align:left;padding:6px 8px;border-top:1px solid var(--border)}.mini-table thead th{border-top:0;color:var(--muted);font-weight:500}.count-pill{background:#fff;color:var(--primary);border-radius:999px;padding:0 8px;margin-left:8px;font-size:.8rem;font-weight:700}.inline-field{display:flex;align-items:center;gap:8px}.hchart{display:grid;grid-template-columns:repeat(24,1fr);grid-gap:3px;gap:3px;height:180px;align-items:end;margin:12px 0 8px}.hcol{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}.hnum{font-size:.7rem;color:var(--muted);height:1.1em}.hstack{display:flex;flex-direction:column;width:100%;min-height:0;border-radius:4px 4px 0 0;overflow:hidden}.hlabel{font-size:.7rem;color:var(--muted);height:1.2em;margin-top:2px}@media (max-width:600px){.hchart{gap:2px}.bar-row{grid-template-columns:64px 1fr}}