/* ฟอนต์หัวข้อ = Anantason ซึ่งเป็นฟอนต์ CI ของ CAMPHUB (พี่บอสสั่ง 15 ก.ย. 69)
 *
 * ประกาศเองตรงนี้ ไม่ดึง /files/font/anantason-web/stylesheet.css ของเว็บหลัก
 * เพราะไฟล์นั้นหนัก 177KB และประกาศไว้ 22 หน้าตัด (เอียง/ย่อ/ขยาย + sarabun + uiddeepsea)
 * ฟอร์มใช้จริงแค่ 4 น้ำหนัก ดึงทั้งไฟล์มาก็เปลืองเปล่าๆ
 *
 * ฟอร์มนี้เป็นหน้า HTML เดี่ยว ไม่ได้ใช้ธีม WordPress จึงไม่ได้ฟอนต์ที่ธีมโหลดให้
 * ต้องประกาศเองเท่านั้น (ต่างจากหน้าข่าวค่ายที่ได้จากธีมอยู่แล้ว)
 *
 * เส้นทางเป็น absolute จาก root ของโดเมน ฟอร์มอยู่โดเมนเดียวกันจึงเรียกได้ตรงๆ
 * woff2 มาก่อน woff เพราะเล็กกว่าราวครึ่ง (~32KB ต่อน้ำหนัก)
 * font-display:swap ให้ตัวหนังสือขึ้นก่อนด้วยฟอนต์สำรอง ดีกว่าหน้าว่างรอฟอนต์
 *
 * Sarabun (ตัวเนื้อความ มีหัว) ยังดึงจาก Google เหมือนเดิม — ชุดที่เว็บโฮสต์เองมีแค่
 * 400/500/800 แต่ฟอร์มใช้ 600/700 ด้วย ถ้าสลับมาจะได้ตัวหนาปลอมที่เบราว์เซอร์ปั้นเอง
 */
@font-face { font-family: 'AnantasonWeb'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/files/font/anantason-web/Anantason-Regular.woff2') format('woff2'),
       url('/files/font/anantason-web/Anantason-Regular.woff') format('woff'); }
@font-face { font-family: 'AnantasonWeb'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/files/font/anantason-web/Anantason-Medium.woff2') format('woff2'),
       url('/files/font/anantason-web/Anantason-Medium.woff') format('woff'); }
@font-face { font-family: 'AnantasonWeb'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/files/font/anantason-web/Anantason-SemiBold.woff2') format('woff2'),
       url('/files/font/anantason-web/Anantason-SemiBold.woff') format('woff'); }
@font-face { font-family: 'AnantasonWeb'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/files/font/anantason-web/Anantason-Bold.woff2') format('woff2'),
       url('/files/font/anantason-web/Anantason-Bold.woff') format('woff'); }

:root {
  --paper: #fbf7f2; --board: #f2e9de; --card: #ffffff;
  --line: #e5d9cb; --line-2: #d2c1ad;
  --ink: #2b2622; --ink-2: #574f47; --muted: #7a7167; --faint: #a89e92;
  --orange: #f15a29; --orange-deep: #c94720; --orange-tint: #fde7dc; --orange-flash: rgba(241,90,41,.16);
  --amber: #f7951e; --amber-tint: #fdf0dc;
  --ok: #2f7a4a; --ok-tint: #e6f2ea;
  --err: #c0362b; --err-tint: #fbeae7;
  --sh-1: 0 1px 2px rgba(43,38,34,.05), 0 3px 10px rgba(43,38,34,.05);
  --sh-2: 0 2px 4px rgba(43,38,34,.06), 0 14px 34px rgba(43,38,34,.10);
  --sh-lift: 0 4px 8px rgba(43,38,34,.07), 0 22px 48px rgba(43,38,34,.14);
  color-scheme: light;
  --r-s: 9px; --r: 15px;
  --disp: 'AnantasonWeb', 'Sukhumvit Set', 'Noto Sans Thai', system-ui, sans-serif;
  --body: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #201c18; --board: #2a241e; --card: #2e2721;
    --line: #453b30; --line-2: #6b5c48;
    --ink: #f7f3ec; --ink-2: #ded6cb; --muted: #b8ada0; --faint: #9a9082;
    --orange: #ff8757; --orange-deep: #ff9c75; --orange-tint: #48281a; --orange-flash: rgba(255,122,71,.2);
    --amber: #ffab4d; --amber-tint: #3a2a10;
    --ok: #6fc38c; --ok-tint: #1b3122;
    --err: #ff7d70; --err-tint: #351a16;
    --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 3px 10px rgba(0,0,0,.3);
    --sh-2: 0 2px 4px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.5);
    --sh-lift: 0 4px 8px rgba(0,0,0,.5), 0 22px 48px rgba(0,0,0,.6);
  }
}
/* ⚠️ ปรับ 19 ก.ย. 69 — คุณ Yosita (ผู้จัด) แจ้งว่าโหมดมืดอ่านยาก
 * "น่าจะสว่างมองเห็นชัดมากขึ้น แอบมืดไปนิดนึง ตัวอักษรสีส้มๆ กะพื้นหลังดำ สีค่อนข้างกลืนกัน"
 * วัดค่าคอนทราสต์แล้วเธอพูดถูก: --faint อยู่ที่ 3.4:1 (เกณฑ์ขั้นต่ำ 4.5) และเส้นประ --line-2 แค่ 1.94:1
 * ส่วนสีส้มผ่านเกณฑ์ (6.9:1) แต่ฟุ้งตาเพราะพื้นหลังมืดเกือบดำสนิท จึงยกพื้นหลังขึ้นแทนที่จะแก้สีส้ม
 * หลังปรับ: --faint 4.7 · --muted 6.7 · --orange 6.2 · เส้นประ 2.6 (เดิม 1.94)
 * 22 ก.ย. 69 — ใส่ปุ่มสลับธีมแล้ว (.themebtn มุมขวาของแถวโลโก้)
 * ที่มา: ใบ CH690921TTMZ แจ้งว่า "ui darkmode เห็นไม่ชัด แบบขาวแบบเก่าดีกว่า"
 * เป็นผู้จัดรายที่สองติดกันที่บ่นเรื่องโหมดมืด ซึ่งเป็นเงื่อนไขที่ตั้งไว้ตั้งแต่ 19 ก.ย. ว่าถ้ามีคนบ่นอีกค่อยใส่
 * ค่าเริ่มต้นยังตามการตั้งค่าเครื่องเหมือนเดิม ปุ่มแค่ให้สิทธิ์ผู้จัดเลือกทับได้ทั้งสองทาง
 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #201c18; --board: #2a241e; --card: #2e2721;
  --line: #453b30; --line-2: #6b5c48;
  --ink: #f7f3ec; --ink-2: #ded6cb; --muted: #b8ada0; --faint: #9a9082;
  --orange: #ff8757; --orange-deep: #ff9c75; --orange-tint: #48281a; --orange-flash: rgba(255,122,71,.2);
  --amber: #ffab4d; --amber-tint: #3a2a10;
  --ok: #6fc38c; --ok-tint: #1b3122;
  --err: #ff7d70; --err-tint: #351a16;
  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 3px 10px rgba(0,0,0,.3);
  --sh-2: 0 2px 4px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.5);
  --sh-lift: 0 4px 8px rgba(0,0,0,.5), 0 22px 48px rgba(0,0,0,.6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: var(--disp); font-weight: 600; margin: 0; text-wrap: balance; line-height: 1.4; }
button { font-family: inherit; }
input, select, textarea { max-width: 100%; min-width: 0; }
input[type="date"], input[type="month"], input[type="time"] { -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-datetime-edit, input[type="month"]::-webkit-datetime-edit { line-height: 1.45; padding: 0; }
.row2 > *, .field { min-width: 0; }

.rev { background: var(--ink); color: var(--paper); padding: 9px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.rev[hidden] { display: none; }
.rev b { font-family: var(--disp); font-weight: 600; }
.rev .sp { flex: 1; }
.rev-note { opacity: .72; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tr { width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.22); position: relative; transition: background .2s ease; flex-shrink: 0; }
.tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,.9,.4,1.2); }
.toggle input:checked + .tr { background: var(--orange); }
.toggle input:checked + .tr::after { transform: translateX(16px); }
.toggle input:focus-visible + .tr { outline: 2px solid var(--amber); outline-offset: 2px; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brandrow { max-width: 1240px; margin: 0 auto; padding: 13px 20px 11px; display: flex; align-items: center; gap: 12px; }
.logo { height: 26px; width: auto; display: block; }
.logoplate { display: inline-flex; border-radius: 7px; padding: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logoplate { background: #f6f1e9; padding: 5px 9px; } }
:root[data-theme="dark"] .logoplate { background: #f6f1e9; padding: 5px 9px; }
.brandrow .t { font-family: var(--disp); font-weight: 600; font-size: 14.5px; padding-left: 13px; margin-left: 2px; border-left: 1px solid var(--line-2); color: var(--ink-2); }
.themebtn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--board); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px; font-family: var(--body); font-size: 12.5px; font-weight: 500; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s; }
.themebtn:hover { border-color: var(--line-2); color: var(--ink); }
.themebtn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.themebtn svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 560px) { .themebtn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .themebtn { padding: 7px; } }
.railwrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 12px; }
.railwrap[hidden] { display: none; }
.rail { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.stamp { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; gap: 5px; min-width: 40px; }
.dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px dashed var(--line-2); color: var(--faint); transition: all .28s cubic-bezier(.3,.9,.4,1.15); }
.dot svg { width: 17px; height: 17px; }
.stamp.done .dot { background: var(--orange); border: 1.5px solid var(--orange); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.42); transform: rotate(-7deg); }
.stamp.now .dot { border: 2px solid var(--orange); color: var(--orange); background: var(--card); box-shadow: 0 0 0 4px var(--orange-tint); }
.stamp .lb { font-family: var(--disp); font-size: 10.5px; font-weight: 500; color: var(--faint); white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s ease, opacity .25s ease; }
.stamp.now .lb { max-width: 150px; opacity: 1; color: var(--orange-deep); font-weight: 600; }
.perf { flex: 1 1 auto; min-width: 12px; height: 36px; display: flex; align-items: center; }
.perf i { display: block; width: 100%; height: 0; border-top: 2px dotted var(--line-2); }
.perf.done i { border-top-color: var(--orange); }
.railmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.railmeta b { font-family: var(--disp); color: var(--ink-2); font-weight: 600; }

.stage { max-width: 1240px; margin: 0 auto; padding: 26px 20px 140px; display: grid; gap: 26px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 1000px) { .stage { grid-template-columns: minmax(0,1fr) 330px; gap: 38px; padding-top: 34px; } }
.stage > * { min-width: 0; }
.stage.solo { grid-template-columns: minmax(0,1fr) !important; max-width: 780px; }

.screen { display: none; }
.screen.on { display: block; animation: slideIn .34s cubic-bezier(.24,.9,.3,1) both; }
.screen.on.back { animation-name: slideInBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes slideInBack { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.kicker { font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--orange); margin-bottom: 9px; min-height: 18px; }
.h2row { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.h2ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--amber-tint); color: var(--orange-deep); }
.h2ico svg { width: 23px; height: 23px; }
.screen h2 { font-size: clamp(21px, 3.4vw, 28px); letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; max-width: 58ch; }
.secttl { font-family: var(--disp); font-weight: 600; font-size: 16px; margin: 30px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.secttl .si { color: var(--orange); display: grid; place-items: center; }
.secttl .si svg { width: 17px; height: 17px; }
.pill-ok { font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--ok); background: var(--ok-tint); padding: 2px 9px; border-radius: 999px; }
.pill-web { font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--orange-deep); background: var(--orange-tint); padding: 2px 9px; border-radius: 999px; }
/* รายการเงื่อนไขถูกก๊อปมาทั้งก้อนจากหน้าแรก ในกล่องลอยไม่ต้องมีระยะบนของหน้าเต็ม */
#termsBody .terms { margin-top: 0; }

/* กล่องข้อความถึงทีมงาน — ต้องดูไม่เหมือนช่องอื่นตั้งแต่ยังไม่ทันอ่านป้าย
   เพราะทุกช่องรอบๆ มันขึ้นหน้าเว็บหมด ถ้าหน้าตาเหมือนกันเป๊ะ คนจะเผลอคิดว่าอันนี้ก็ขึ้นด้วย
   ใช้พื้น --board (สีเดียวกับฉากหลังฟอร์ม) + เส้นประ สื่อว่า "อยู่นอกตัวประกาศ"
   ช่องพิมพ์ข้างในยังเป็นพื้นขาวเหมือนเดิม จะได้รู้ว่าพิมพ์ตรงนี้ได้ */
.teamnote { background: var(--board); border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 15px 16px 16px; }
/* 🔴 ต้องมี .field นำหน้า ไม่งั้นแพ้ `.field > label { display:block }` ที่อยู่ล่างกว่า
   (ความจำเพาะเท่ากัน 0-1-1 ตัวที่มาทีหลังชนะ) ผลคือ display:flex ไม่ติด
   ไอคอนที่เป็น display:grid เลยกลายเป็นบล็อกเต็มบรรทัด แล้ว place-items:center
   ดันมันไปลอยกลางจอเหนือ label — พี่บอสเจอ 26 ก.ย. 69 ว่า "ลูกโลกลอยไม่มีที่มา"
   เป็นบั๊กเก่า มีมาก่อนบล็อกคำเสนอหมวดหมู่ ไม่เกี่ยวกัน */
.field.teamnote > label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.teamnote .tn-ico { color: var(--ok); display: grid; place-items: center; }
.teamnote .tn-ico svg { width: 16px; height: 16px; }
.teamnote .hint { margin-bottom: 0; }
.field.fldweb > label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }   /* .field นำหน้า — เหตุผลเดียวกับ .teamnote ข้างบน */
.fldweb .tn-ico { color: var(--orange); display: grid; place-items: center; }
.fldweb .tn-ico svg { width: 16px; height: 16px; }

.tickets { display: grid; gap: 15px; margin-bottom: 30px; }
@media (min-width: 620px) { .tickets { grid-template-columns: 1fr 1fr; } }
.ticket { position: relative; display: block; cursor: pointer; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); transition: transform .22s cubic-bezier(.3,.9,.4,1.1), box-shadow .22s ease, border-color .2s ease, background .2s ease; }
.ticket input { position: absolute; opacity: 0; pointer-events: none; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; margin-top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); transition: border-color .2s ease; }
.ticket::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.ticket:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.ticket:active { transform: translateY(-1px) scale(.995); background: var(--orange-flash); }
.ticket.sel { border-color: var(--orange); box-shadow: var(--sh-lift); background: linear-gradient(180deg, var(--orange-tint) 0%, var(--card) 46%); }
.ticket.sel::before, .ticket.sel::after { border-color: var(--orange); }
.ticket:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.tk-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tk-ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--amber-tint); color: var(--orange-deep); }
.ticket.sel .tk-ico { background: var(--orange); color: #fff; }
.tk-ico svg { width: 21px; height: 21px; }
.tk-name { font-family: var(--disp); font-weight: 600; font-size: 17px; line-height: 1.35; }
.tk-tear { margin: 13px -20px 12px; border-top: 1.5px dashed var(--line); }
.ticket.sel .tk-tear { border-top-color: var(--orange); opacity: .5; }
.tk-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.tk-list li { padding-left: 15px; position: relative; }
.tk-list li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; color: var(--line-2); }
.tk-mark { position: absolute; top: 13px; right: 15px; font-family: var(--disp); font-weight: 700; font-size: 10.5px; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 5px; padding: 2px 7px; transform: rotate(-9deg) scale(.6); opacity: 0; transition: transform .3s cubic-bezier(.2,1.3,.4,1), opacity .22s ease; }
.ticket.sel .tk-mark { transform: rotate(-9deg) scale(1); opacity: 1; }

.field { margin-bottom: 19px; }
.field[hidden] { display: none; }
.field > label, .flabel { display: block; font-family: var(--disp); font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--orange); }
.optl { font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--faint); }
input[type="text"], input[type="date"], input[type="month"], input[type="url"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: var(--body); font-size: 15px; padding: 11px 13px;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-s);
  transition: border-color .16s ease, box-shadow .16s ease;
  min-height: 46px; line-height: 1.45;
  box-shadow: inset 0 1px 2px rgba(43,38,34,.07);
}
input[type="date"], input[type="month"], input[type="time"] { padding-top: 10px; padding-bottom: 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: inset 0 1px 2px rgba(43,38,34,.07), 0 0 0 3px var(--orange-tint); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 84px; display: block; }
input:disabled { background: var(--board); color: var(--faint); }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.62; }
/* กล่องถามความเห็นบนหน้าเสร็จสิ้น — เรียบที่สุดเท่าที่จะทำได้
   ไม่ใช้สีเด่นแข่งกับเลขอ้างอิง เพราะเลขอ้างอิงสำคัญกว่าสำหรับผู้จัด */
/* แถบถามความเห็นเกาะขอบล่างจอ (16 ก.ย. 69)
   เดิมเป็นกรอบเส้นประกลางหน้า คนเลื่อนผ่านโดยไม่ทันสังเกต
   จังหวะนี้มีค่าที่สุดเพราะเขาเพิ่งกรอกเสร็จ ยังจำได้ว่าสะดุดตรงไหน
   แต่หน้านี้มีของสำคัญที่ห้ามโดนบัง — เลขอ้างอิง และกล่อง "อยากแก้ข้อมูล"
   จึงต้องดันพื้นที่ท้ายหน้าเพิ่มให้เท่าความสูงแถบ (body.has-fbbar ข้างล่าง) */
.fbbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
         background: var(--card); border-top: 1px solid var(--line);
         box-shadow: 0 -2px 16px rgba(43,38,34,.10);
         padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
         animation: fbUp .28s cubic-bezier(.24,.9,.3,1) both; }
@keyframes fbUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fbbar { animation: none; } }
.fbbar-in { max-width: 470px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fbbar-q { font-family: var(--disp); font-weight: 600; font-size: 13.5px; }
.fbbar .fb-b { padding: 7px 15px; font-size: 13.5px; }
.fbbar-x { margin-left: auto; border: 0; background: none; color: var(--faint);
           font-size: 15px; line-height: 1; padding: 8px; cursor: pointer; }
.fbbar-x:hover { color: var(--ink-2); }
@media (max-width: 560px) {
  .fbbar-in { gap: 8px; }
  .fbbar-q { width: 100%; padding-right: 28px; }
  .fbbar-x { position: absolute; top: 6px; right: 8px; margin-left: 0; }
}
/* เว้นที่ท้ายหน้าให้เนื้อหาเลื่อนพ้นแถบได้จริง ไม่ใช่ลอยทับ */
body.has-fbbar .stage { padding-bottom: 110px; }
.fb-lead { font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
.fb-q { font-family: var(--disp); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.fb-q2 { font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--muted); margin: 14px 0 7px; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-b { font-family: var(--disp); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 999px;
        border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; }
.fb-b:hover { border-color: var(--orange); }
.fb-b.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.fb-s { font-family: var(--disp); font-size: 13px; padding: 7px 13px; border-radius: 999px;
        border: 1px solid var(--line-2); background: var(--card); color: var(--muted); cursor: pointer; }
.fb-s.on { background: var(--board); border-color: var(--orange); color: var(--orange-deep); font-weight: 600; }
#fbMore #fbText { width: 100%; margin: 0; }
.fb-send { margin-top: 12px; }
.fb-thx { margin: 10px 0 0; color: var(--ok, #16794a); font-family: var(--disp); font-weight: 600; font-size: 14px; }

.counter { font-family: var(--disp); font-weight: 600; font-size: 11.5px; color: var(--faint); text-align: right; margin-top: 5px; font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--orange-deep); }
.counter.over { color: var(--err); }
.overbox { margin-top: 9px; background: var(--err-tint); border: 1.5px solid var(--err); border-radius: var(--r-s); padding: 13px 15px; }
.overbox[hidden] { display: none; }
.overbox .ob-t { display: flex; align-items: center; gap: 7px; font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--err); }
.overbox .ob-t svg { width: 17px; height: 17px; flex-shrink: 0; }
.overbox .ob-d { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 7px 0 11px; }
.overbox .btn { width: 100%; padding: 10px; font-size: 13.5px; }
.overbox.moved { background: var(--ok-tint); border-color: var(--ok); }
.overbox.moved .ob-t { color: var(--ok); }
.hint b { font-family: var(--disp); color: var(--ink-2); }
.row2 { display: grid; gap: 15px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); background: var(--err-tint); }
/* กล่องเขียนเนื้อหาเป็น div (contenteditable) ไม่ใช่ textarea กฎบรรทัดบนจึงไม่โดน
   ผลคือกรอกไม่ครบแล้วได้แค่บรรทัดเล็กๆ ใต้กล่อง หาไม่เจอว่าทำไมกดถัดไปไม่ผ่าน
   (พี่บอสทัก 15 ก.ย. 69) แถบเครื่องมือกับกล่องเป็นกรอบเดียวกัน ต้องแดงพร้อมกันทั้งคู่ */
.field.bad .etoolbar { border-color: var(--err); }
.field.bad .earea { border-color: var(--err); background: var(--err-tint); }
/* ช่องทางติดต่อมีหลายแถวในกล่องเดียว ถ้าปล่อยตามกฎบนจะแดงยกกล่องทั้งที่ผิดแถวเดียว
   จึงคืนค่าปกติให้ทุกแถว แล้วค่อยแดงเฉพาะแถวที่ถูกมาร์ก .bad */
#fldContacts.bad .crow input { border-color: var(--line-2); background: var(--card); }
#fldContacts .crow input.bad, #fldContacts.bad .crow input.bad { border-color: var(--err); background: var(--err-tint); }
#staleModal .msheet { max-width: 460px; }
#staleModal .mbody p { margin: 0 0 12px; line-height: 1.65; }
#staleModal .stale-ver { font-size: 12px; color: var(--faint); font-family: ui-monospace, monospace; }
#staleModal #staleReload { width: 100%; margin-top: 4px; }
/* กล่องบอกว่าใบนี้ใช้แพ็กเกจเหมา — ขึ้นเฉพาะฟอร์มฝั่งลูกค้าแพ็กเกจ */
.pkgowned { border: 1.5px solid var(--ok); background: var(--ok-tint, rgba(22,163,74,.07)); border-radius: var(--r); padding: 15px 17px; margin: 4px 0 20px; }
.pkgowned .po-h { display: flex; align-items: center; gap: 8px; font-family: var(--disp); font-weight: 600; font-size: 15.5px; color: var(--ok); margin-bottom: 7px; }
.pkgowned .po-i { width: 19px; height: 19px; flex-shrink: 0; }
.pkgowned .po-i svg { width: 100%; height: 100%; }
.pkgowned .po-b { margin: 0; font-size: 14px; line-height: 1.7; }
.pkgowned .po-n { margin: 9px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 9px; }
.errmsg { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--err); margin-top: 6px; font-family: var(--disp); font-weight: 500; }
.field.bad .errmsg { display: flex; animation: shakeIn .3s ease both; }
.errmsg svg { width: 14px; height: 14px; flex-shrink: 0; }
/* ข้อความบอกว่าระบบปรับปี พ.ศ. เป็น ค.ศ. ให้ — ไม่ใช่ error สีเลยเป็นส้มอ่อน ไม่ใช่แดง
   ผู้จัดไม่ได้ทำผิด แค่กรอกคนละระบบปีกับที่ช่องนี้ใช้ */
/* กล่องเตือนว่าข้อความในช่องค้นหาสถานที่ยังมีส่วนที่ไม่ได้บันทึก (29 ก.ย. 69)
   ไม่ใช่ error — ผู้จัดไม่ได้ทำผิด แค่พิมพ์ลงช่องที่ระบบเก็บได้แค่ชื่อเดียว */
.plcleft { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--orange-tint); border: 1.5px solid var(--orange); font-size: 12.5px; line-height: 1.65; }
.plcleft-t { color: var(--orange-deep); font-family: var(--disp); font-weight: 600; }
.plcleft-q { display: block; margin: 5px 0 8px; color: var(--ink); font-weight: 600; }
.plcleft-act { display: flex; flex-wrap: wrap; gap: 14px; }
.beconv { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--orange-deep); margin: 6px 0 0; line-height: 1.6; font-family: var(--disp); font-weight: 500; }
/* กล่องแจ้งเตือนตอนส่งไม่สำเร็จ (หน้า 8/8)
   เดิมเขียน display:block ไว้ในบรรทัดของ tag เอง เพื่อชนะ .errmsg { display:none }
   แต่ style ในบรรทัดชนะแอตทริบิวต์ hidden ด้วย กล่องเลยโผล่ตลอดเวลาทั้งที่ยังไม่มี error
   (พี่บอสเจอ 13 ก.ย. 69) — ย้ายมาไว้ที่นี่ แล้วผูกกับ :not([hidden]) ให้ hidden ทำงานได้จริง */
#sendErr:not([hidden]) { display: block; }
@keyframes shakeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices[hidden] { display: none; }
.choice { position: relative; cursor: pointer; font-family: var(--disp); font-size: 13.5px; font-weight: 600; padding: 9px 15px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink-2); box-shadow: var(--sh-1); transition: all .17s ease; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { background: var(--board); }
.choice:active { background: var(--orange-flash); transform: scale(.96); }
.choice.sel { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 2px 9px rgba(241,90,41,.3); }
.choice:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }

.optcards { display: grid; gap: 10px; }

/* ── คำเสนอหมวดหมู่ (26 ก.ย. 69) ──────────────────────────────────────
   ใช้ .optcard / .choice ของเดิม เพิ่มแค่การจัดคอลัมน์ สถานะ "ตัน" และกรอบก้อน
   ⚠️ ตอนตัน ใช้ opacity + pointer-events:none บน label แต่ input ต้อง disabled
      ด้วย ไม่งั้นคนที่ใช้คีย์บอร์ดจะกดเลือกทะลุเพดานได้ */
.optcards.sugg2 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .optcards.sugg2 { grid-template-columns: 1fr 1fr; } }
.optcard.tan, .choice.tan { opacity: .4; pointer-events: none; }
.choices.sugg-chips { margin-top: 10px; }
.choice[hidden] { display: none; }
#fFieldFilter { margin-top: 14px; }   /* เว้นจากบรรทัดสีเทาเท่ากับกล่องตัวเลือกอื่น — ต้องใช้ id เพราะ id ชนะ .suggsec .hint + input */
.counter.over { color: var(--amber); font-weight: 700; }

/* ก้อนของตัวเอง — "เล่าเรื่องให้คนอ่าน" กับ "ช่วยทีมงานจัดของ" คนละโหมดความคิด
   แยกด้วยกรอบ ไม่ได้แยกด้วย step เพื่อไม่ให้แถบขั้นยาวขึ้น (พี่บอสสั่ง 26 ก.ย.) */
.suggsec { margin: 26px 0 0; padding: 18px 17px 4px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); }
.suggsec-hd { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.suggsec-ico { color: var(--orange); display: grid; place-items: center; flex: none; }
.suggsec-ico svg { width: 17px; height: 17px; }
.suggsec-t { font-family: var(--disp); font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
/* บรรทัดคำอธิบายสีเทาแนบปุ่มตัวเลือกเกินไป อ่านแล้วเป็นก้อนเดียวกัน (พี่บอสเจอ 26 ก.ย.)
   ดันเฉพาะ .hint ที่อยู่ก่อนกลุ่มตัวเลือก ไม่แตะ .hint ทั่วฟอร์ม */
.suggsec .hint + .optcards, .suggsec .hint + .choices, .suggsec .hint + select { margin-top: 14px; }
.suggsec .field:last-of-type { margin-bottom: 0; }
.suggnote { margin: 4px 0 14px; padding: 10px 13px; border-left: 3px solid var(--orange); background: var(--board); border-radius: 0 var(--r-s) var(--r-s) 0; }
/* กล่อง "อยากบอกทีมงาน" เคยแนบชิดก้อนบนจนไอคอนกุญแจทับขอบ (พี่บอสเจอ 26 ก.ย.) */
.field.teamnote { margin-top: 22px; }

/* ตัวเลือก "ตกลงกับฝ่ายขายไว้แล้ว" — แยกก้อนจากการ์ดราคา ไม่ให้อ่านเป็น "ช่องฟรี" */
.prepaid { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.prepaid-row { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
/* ⚠️ วงกลมวาดเอง ห้ามกลับไปใช้ radio ของเบราว์เซอร์
 * ของเบราว์เซอร์เป็นสีฟ้าของระบบ ซึ่งไม่มีสีนี้อยู่ที่อื่นในหน้าเลย
 * แถวนี้จึงดูเหมือนหลุดมาจากเว็บอื่น (พี่บอสทักเอง 21 ก.ย. 69)
 * ใช้ชุดเดียวกับวงกลมในกล่อง "เริ่มจากกิจกรรมเดิม" (.ru-rd) ให้เป็นภาษาเดียวกัน */
.prepaid-row input { position: absolute; opacity: 0; pointer-events: none; }
.prepaid-row .pp-rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2);
  flex: none; margin-top: 2px; position: relative; transition: border-color .12s; }
.prepaid-row:hover .pp-rd { border-color: var(--orange); }
.prepaid-row.sel .pp-rd { border-color: var(--orange); }
.prepaid-row.sel .pp-rd::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.prepaid-row input:focus-visible + .pp-rd { outline: 2px solid var(--orange); outline-offset: 2px; }
.prepaid-row.sel .pp-t { color: var(--orange); }
.prepaid-row .pp-t { display: block; font-weight: 600; }
.prepaid-row .pp-d { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.prepaid #blkPrepaid { margin-top: 10px; }

@media (min-width: 640px) { .optcards { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
  /* จองที่ให้ชื่อแพ็ก 2 บรรทัดเท่ากันทุกใบ แถวราคา/แถว "รวม" จะได้ตรงกันตอนวางเรียงข้างกัน
     เฉพาะจอกว้างที่การ์ดอยู่ข้างกันจริง จอแคบการ์ดเรียงลงมาอยู่แล้ว ไม่ต้องจองที่ให้เสียเปล่า */
  .optcard > .oc-t { min-height: 2.84em; } }
.optcard { position: relative; cursor: pointer; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 13px 15px 14px; transition: all .18s ease; }
/* ⚠️ เดิมเป็น display:block และป้ายราคาไหลต่อท้ายชื่อแพ็กในกล่องเดียวกัน
   ใบที่ชื่อยาวกว่า (เว็บไซต์ + FB & IG + LINE) ชื่อจึงขึ้น 2 บรรทัด ดันป้ายราคาตกลงไปอีกแถว
   ส่วนหัวสองใบสูงไม่เท่ากัน ทุกแถวที่อยู่ล่างลงมาเลยเลื่อนตามกันไปหมด เทียบกันไม่ได้สักแถว
   (พี่บอสแจ้ง 18 ก.ย. 69) — flex column + margin-top:auto ที่ .sla ดันแถวล่างชิดก้นกล่องทุกใบ */
.optcard[hidden] { display: none; }
.optcard input { position: absolute; opacity: 0; pointer-events: none; }
.optcard:hover { background: var(--board); }
.optcard:active { background: var(--orange-flash); transform: scale(.985); }
.optcard.sel { border-color: var(--orange); background: var(--orange-tint); box-shadow: 0 2px 12px rgba(241,90,41,.16); }
.optcard:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
/* การ์ดตัวเลือกเป็น <label> ไม่ใช่ <input> กฎ .field.bad input จึงไม่โดน ต้องเขียนแยก */
.field.bad .optcard { border-color: var(--err); background: var(--err-tint); }
.oc-t { font-family: var(--disp); font-weight: 600; font-size: 14.5px; line-height: 1.42; color: var(--ink); }
.optcard.sel .oc-t { color: var(--orange-deep); }
.oc-d { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

.reveal[hidden] { display: none; }
.reveal.in { animation: revealIn .34s cubic-bezier(.24,.9,.3,1) both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.revealbox { background: var(--board); border-radius: var(--r); padding: 17px; margin-bottom: 19px; position: relative; }
/* กล่อง reveal เดิมใช้ padding-bottom 3px แล้วพึ่ง margin ของ .field ตัวสุดท้ายเป็นระยะห่างล่าง
   แต่หลายกล่องปิดท้ายด้วย .field ที่ถูกสั่ง margin-bottom:0 ไว้ในบรรทัด → เหลือ 3px ช่องสุดท้ายชนขอบ
   (พี่บอสเจอที่กล่องปฐมนิเทศ 13 ก.ย. 69 — จริงๆ เป็นเหมือนกัน 5 กล่อง)
   แก้เป็น padding เท่ากันทุกด้าน แล้วตัด margin ของลูกตัวสุดท้ายทิ้ง กล่องจึงถูกเสมอไม่ว่าข้างในเป็นอะไร */
.revealbox > *:last-child { margin-bottom: 0 !important; }
.revealbox::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; box-shadow: inset 0 0 0 2px var(--orange); opacity: 0; }
.revealbox.flash::before { animation: flash 1.1s ease forwards; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }
.pkglink { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--disp); font-weight: 600; font-size: 13px; color: var(--orange-deep); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pkglink svg { width: 15px; height: 15px; }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(43,38,34,.5); animation: mfade .18s ease both; }
.modal[hidden] { display: none; }
@keyframes mfade { from { opacity: 0; } }
.msheet { background: var(--paper); width: 100%; max-width: 620px; max-height: 88vh; border-radius: var(--r) var(--r) 0 0; display: flex; flex-direction: column; box-shadow: var(--sh-lift); animation: mup .26s cubic-bezier(.24,.9,.3,1) both; }
@keyframes mup { from { transform: translateY(22px); } }
@media (min-width: 620px) { .modal { align-items: center; } .msheet { border-radius: var(--r); max-height: 84vh; } }
.mhead { display: flex; align-items: center; gap: 12px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }
.mhead h3 { flex: 1; font-family: var(--disp); font-weight: 600; font-size: 16px; margin: 0; }
.mx { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.mx:active { transform: scale(.92); }
.mbody { overflow-y: auto; padding: 16px 18px 22px; -webkit-overflow-scrolling: touch; }
.mgrp { font-family: var(--disp); font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--muted); margin: 18px 0 9px; }
.mgrp:first-child { margin-top: 0; }
.pk { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 15px; margin-bottom: 9px; }
.pk-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pk-n { font-family: var(--disp); font-weight: 600; font-size: 14.5px; flex: 1; min-width: 120px; }
.pk-p { font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.pk-was { font-size: 12px; color: var(--faint); text-decoration: line-through; }
.pk-best { font-family: var(--disp); font-weight: 700; font-size: 10.5px; color: #fff; background: var(--ok); padding: 2px 8px; border-radius: 999px; }
.pk ul { margin: 9px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.pk .pk-sla { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line); font-family: var(--disp); font-weight: 600; font-size: 12px; color: var(--muted); }
.pk .pk-sla.fast { color: var(--ok); }
.mnote { background: var(--amber-tint); border-radius: var(--r-s); padding: 12px 14px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin-top: 4px; }
.mnote b { font-family: var(--disp); }
/* ทักทายหน่วยงานที่มาจากลิงก์เฉพาะเจ้า */

/* เริ่มจากใบเดิม */
.reuse { border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--r); padding: 17px 18px 16px; margin: 0 0 22px; }
.reuse .ru-h { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.reuse .ru-i { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.reuse .ru-i svg { width: 100%; height: 100%; }
.reuse h3 { font-family: var(--disp); font-weight: 600; font-size: 16px; margin: 0 0 3px; }
.reuse .ru-h p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.reuse .ru-list { border: 1.5px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.reuse .ru-op { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; cursor: pointer; border-bottom: 1px solid var(--line); }
.reuse .ru-op:last-child { border-bottom: 0; background: var(--board); align-items: center; }
.reuse .ru-op input { position: absolute; opacity: 0; pointer-events: none; }
.reuse .ru-rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; margin-top: 2px; position: relative; }
.reuse .ru-op:last-child .ru-rd { margin-top: 0; }
.reuse .ru-op.sel .ru-rd { border-color: var(--orange); }
.reuse .ru-op.sel .ru-rd::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.reuse .ru-t { display: block; font-family: var(--disp); font-weight: 600; font-size: 15px; }
.reuse .ru-s { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
/* คำอธิบายว่าอะไรถูกก๊อป อะไรต้องกรอกใหม่
   ⚠️ ห้ามใส่กรอบ+พื้นหลังให้สองก้อนนี้ — เคยทำแล้วมันไปเหมือนการ์ดตัวเลือกที่อยู่เหนือมัน
   คนอ่านนึกว่ากดเลือกได้ (พี่บอสทัก 20 ก.ย. 69) เป็นข้อความล้วน + เส้นคั่นซ้ายเท่านั้น
   สัญลักษณ์ ✓ / ✕ ทำหน้าที่แทนสีที่ถอดออกไป เผื่อคนแยกสีไม่ออกด้วย */
.reuse .ru-note { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 16px 0 0;
  padding-top: 14px; border-top: 1px solid var(--line); }
.reuse .ru-note > div { padding: 0 0 0 11px; border-left: 2px solid var(--line-2); }
.reuse .ru-note b { display: block; font-family: var(--disp); font-weight: 600; font-size: 12.5px;
  letter-spacing: .01em; margin-bottom: 4px; }
.reuse .ru-note b::before { display: inline-block; width: 15px; font-weight: 700; }
.reuse .ru-note p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.reuse .ru-keep b { color: var(--ok); }
.reuse .ru-keep b::before { content: '\2713'; }
.reuse .ru-new b { color: var(--ink-2); }
.reuse .ru-new b::before { content: '\2715'; }
.reuse .ru-f { margin: 13px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--faint); }
@media (max-width: 560px) { .reuse .ru-note { grid-template-columns: 1fr; } }
.draftbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--ink); color: #fff; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 -6px 24px rgba(43,38,34,.22); animation: dbUp .3s cubic-bezier(.24,.9,.3,1) both; }
@keyframes dbUp { from { transform: translateY(100%); } }
.draftbar[hidden] { display: none; }
.draftbar .db-t { flex: 1; min-width: 160px; font-size: 13px; line-height: 1.55; }
.draftbar .db-t b { font-family: var(--disp); font-weight: 600; }
.draftbar button { font-family: var(--disp); font-weight: 600; font-size: 13px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: none; color: #fff; cursor: pointer; }
.draftbar button.pri { background: var(--orange); border-color: var(--orange); }
.draftbar button:active { transform: scale(.96); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.divider[hidden] { display: none; }

.switchrow { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 19px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.switchrow[hidden] { display: none; }
.switchrow:active { background: var(--orange-flash); }
.switchrow.on { border-color: var(--orange); background: var(--orange-tint); }
.switchrow .sr-b { flex: 1; }
.switchrow .sr-t { font-family: var(--disp); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.switchrow .sr-d { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.switchrow input { position: absolute; opacity: 0; pointer-events: none; }
.switchrow .tr { background: var(--line-2); }
.switchrow input:checked + .tr { background: var(--orange); }
.switchrow input:checked + .tr::after { transform: translateX(16px); }

.money { position: relative; }
.money .cur { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-family: var(--disp); font-weight: 600; color: var(--faint); pointer-events: none; display: grid; place-items: center; }
.money input { padding-left: 34px; }

.placewrap { position: relative; }
.placebox { position: relative; }
.placebox[hidden] { display: none; }
.placebox .pin { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; display: grid; place-items: center; }
.placebox .pin svg { width: 17px; height: 17px; }
#fPlaceSearch { padding-left: 37px; }
.plist { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-2); overflow: hidden; max-height: 270px; overflow-y: auto; }
.plist[hidden] { display: none; }
.pitem { display: flex; gap: 11px; padding: 11px 14px; cursor: pointer; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); }
.pitem:last-of-type { border-bottom: 0; }
.pitem:hover, .pitem:focus-visible { background: var(--board); outline: none; }
.pitem:active { background: var(--orange-flash); }
.pi-ico { color: var(--orange); flex-shrink: 0; margin-top: 3px; display: grid; place-items: center; }
.pi-ico svg { width: 16px; height: 16px; }
.pi-n { font-family: var(--disp); font-weight: 600; font-size: 14px; line-height: 1.42; color: var(--ink); }
.pi-a { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.plist-foot { padding: 9px 14px; font-size: 12px; color: var(--faint); background: var(--board); border-top: 1px solid var(--line); line-height: 1.55; }
.plist-act { margin-top: 7px; }
.plist-act .linkbtn { font-size: 13px; }
.picked { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-tint); border-radius: var(--r); padding: 13px 15px; }
.picked[hidden] { display: none; }
.pk-ico { color: var(--ok); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.pk-ico svg { width: 19px; height: 19px; }
.pk-body { flex: 1; min-width: 0; }
.pk-n { font-family: var(--disp); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.pk-a { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--orange-deep); font-family: var(--disp); font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--orange); }
/* .linkbtn ใช้กับ <a> ได้ด้วยตั้งแต่ 29 ก.ย. 69 (ลิงก์นโยบายความเป็นส่วนตัว)
   ต้องรีเซ็ต display/line-height เอง ไม่งั้น <a> จะไม่เรียงกับตัวหนังสือรอบข้าง */
a.linkbtn { display: inline; line-height: inherit; }
.fallback { margin-top: 11px; font-size: 12.5px; color: var(--muted); }
.fallback[hidden] { display: none; }

.drop { border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--card); padding: 26px 20px; text-align: center; cursor: pointer; transition: all .2s ease; }
.drop:hover { border-color: var(--orange); background: var(--orange-tint); }
.drop:active { transform: scale(.99); }
.drop[hidden] { display: none; }
.drop .di { color: var(--orange); display: grid; place-items: center; margin: 0 auto 10px; }
.drop .di svg { width: 30px; height: 30px; }
.drop-t { font-family: var(--disp); font-weight: 600; font-size: 15px; }
.drop-d { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.cropwrap { border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line-2); }
.cropwrap[hidden] { display: none; }
.cropstage { position: relative; aspect-ratio: 1200/630; overflow: hidden; background: #2b2622; }
/* รูปในกรอบครอปวางแบบ absolute แล้วเลื่อน/ย่อ-ขยายด้วย JS
   (ของเดิมใช้ object-fit: cover ซึ่งครอปกลางตายตัว ขยับไม่ได้) */
.cropstage img { position: absolute; left: 0; top: 0; width: auto; height: auto; max-width: none; display: block;
  user-select: none; -webkit-user-drag: none; }
.cropstage { cursor: grab; touch-action: none; }
.cropstage.dragging { cursor: grabbing; }
/* สถานะ "รูปนี้อัปโหลดไว้แล้ว" — กู้ร่างกลับมาแล้วไม่มีไฟล์ต้นฉบับให้ลากต่อ */
.cropstage.locked { cursor: default; }
.cropstage.locked img { position: static; width: 100%; height: 100%; object-fit: cover; }
.cropbar2 { display: flex; align-items: center; gap: 11px; padding: 9px 13px;
  border-top: 1px solid var(--line-2); background: var(--board); }
.cropbar2 .zl { font-family: var(--disp); font-weight: 600; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.cropbar2 input[type="range"] { flex: 1; min-width: 0; accent-color: var(--orange); }
.cropbar2[hidden] { display: none; }
.cropgrid { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.cropgrid i { position: absolute; background: rgba(255,255,255,.3); }
.cropgrid i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.cropgrid i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.cropgrid i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.cropgrid i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.cropbadge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--disp); font-weight: 600; font-size: 11.5px; padding: 4px 9px; border-radius: 6px; }
.cropsoft { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; background: var(--amber-tint); border-top: 1.5px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.cropsoft[hidden] { display: none; }
.cropsoft svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--amber); }
.cropbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-top: 1.5px solid var(--line); flex-wrap: wrap; }
.cropbar .cb-t { flex: 1; min-width: 180px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.etoolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; background: var(--board); border: 1.5px solid var(--line-2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.etoolbar button { font-family: var(--disp); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .16s ease; }
.etoolbar button:hover { border-color: var(--orange); color: var(--orange-deep); }
.etoolbar button:active { background: var(--orange-flash); transform: scale(.95); }
/* ปุ่มที่ตรงกับตำแหน่งเคอร์เซอร์ตอนนี้ — ของเดิมไม่มีอะไรบอกเลยว่ากำลังพิมพ์อยู่ในหัวข้อแบบไหน */
.etoolbar button.on { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); font-weight: 700; }
.earea { border: 1.5px solid var(--line-2); border-radius: 0 0 var(--r) var(--r); background: var(--card); padding: 15px 16px; min-height: 190px; font-family: var(--body); font-size: 15px; line-height: 1.8; }
.earea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.earea:empty::before { content: attr(data-ph); color: var(--faint); }
.earea h3 { font-size: 16.5px; margin: 16px 0 7px; }
.earea h4 { font-size: 15px; margin: 14px 0 6px; }
.earea p { margin: 0 0 10px; }
/* บรรทัดฟ้องตอนอัปไฟล์ไม่ผ่าน — เดิมกลืน error เงียบ ผู้จัดเดินต่อจนถึงหน้าส่งแล้วค่อยเด้ง */
.uperr { margin: 8px 0 0; padding: 9px 12px; border-radius: var(--r-s); background: #fdeceb; color: #a4231f; font-size: 13px; line-height: 1.55; }

.timechips { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0 0; align-items: center; }
.timechips .tchip { border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 5px 13px; font-family: var(--body); font-size: 13px; font-weight: 600; cursor: pointer; }
.timechips .tchip.on { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); }
/* ⚠️ ช่องเวลาตัวนี้ยืนอยู่ในแถวเดียวกับชิปเวลา ต้องหน้าตาเป็นชิปด้วย
 * ของเดิมเป็นกรอบสี่เหลี่ยมมุมมน เส้นหนา ดูเป็นช่องกรอกที่หลุดมาอยู่ในแถวปุ่ม
 * (พี่บอสทักเอง 21 ก.ย. 69) — ทรงเดียวกับ .tchip ทุกอย่าง ต่างแค่ยังพิมพ์ได้ */
.timechips input[type="time"] {
  width: auto; padding: 5px 13px; font-family: var(--body); font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2);
  transition: border-color .12s, background .12s, color .12s;
}
.timechips input[type="time"]:hover { border-color: var(--orange); }
/* กรอกเวลาแล้ว = ตัวเลือกที่ใช้อยู่ ต้องไฮไลต์เหมือนชิปที่ถูกเลือก
 * :not(:placeholder-shown) ใช้กับ input[type=time] ไม่ได้ทุกเบราว์เซอร์ จึงติดคลาสจาก JS แทน */
.timechips input[type="time"].on,
.timechips input[type="time"]:focus {
  border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); outline: none;
}
.timechips input[type="time"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.timechips input[type="time"].on::-webkit-calendar-picker-indicator { opacity: .9; }

.eimg { position: relative; margin: 12px 0; }
.eimg img { display: block; width: 100%; border-radius: var(--r-s); }
.earea .eimg-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: rgba(43,38,34,.72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.earea .eimg-x:active { transform: scale(.92); }
.etoolbar button:disabled { opacity: .45; cursor: default; }
/* ปุ่มสองตัวนี้แสดงผลของตัวเองบนตัวอักษรในปุ่ม ผู้จัดจะเดาหน้าที่ได้ทันทีโดยไม่ต้องอ่าน */
.etoolbar button[data-cmd="b"] { font-weight: 800; }
.etoolbar button[data-cmd="u"] { text-decoration: underline; text-underline-offset: 2px; }
.linkbar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 9px; background: var(--board); border: 1.5px solid var(--line-2); border-top: 0; }
.linkbar[hidden] { display: none; }
.linkbar input { flex: 1 1 190px; min-height: 40px; padding: 8px 11px; font-size: 14px; }
.linkbar button { font-family: var(--disp); font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; }
.linkbar button.pri { background: var(--orange); border-color: var(--orange); color: #fff; }
.earea ul { margin: 0 0 10px; padding-left: 22px; }

.crow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin-bottom: 16px; align-items: start; }
.cpick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.cp { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--muted); cursor: pointer; box-shadow: var(--sh-1); transition: all .16s ease; }
.cp svg { width: 20px; height: 20px; }
.cp:active { transform: scale(.92); }
.cp.on { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 2px 9px rgba(241,90,41,.3); }
.cp:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.crm { border: 1.5px solid var(--line-2); background: var(--card); color: var(--muted); border-radius: var(--r-s); min-height: 46px; padding: 0 13px; cursor: pointer; font-family: var(--disp); font-size: 13px; font-weight: 500; transition: all .17s ease; }
.crm:hover:not(:disabled) { border-color: var(--err); color: var(--err); background: var(--err-tint); }
.crm:disabled { opacity: .4; cursor: default; }
.minicheck, .field > label.minicheck { display: inline-flex; align-items: center; gap: 9px; margin-top: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.minicheck input { position: absolute; opacity: 0; pointer-events: none; }
.field > label.minicheck { font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--ink-2); margin-bottom: 0; }
.minicheck .mb { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; flex-shrink: 0; transition: background .17s ease, border-color .17s ease; }
.minicheck .mb svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .15s ease; }
.minicheck input:checked + .mb { background: var(--orange); border-color: var(--orange); }
.minicheck input:checked + .mb svg { opacity: 1; }
.minicheck input:focus-visible + .mb { outline: 2px solid var(--amber); outline-offset: 2px; }
.vrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: start; margin-bottom: 9px; }
.vrow .vr-f { display: grid; gap: 7px; }
.arow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: start; margin-bottom: 9px; }
.addbtn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--disp); font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: 999px; border: 1.5px dashed var(--line-2); background: none; color: var(--orange-deep); cursor: pointer; transition: all .18s ease; }
.addbtn:hover { border-color: var(--orange); background: var(--orange-tint); }
.addbtn:active { transform: scale(.96); }
.addbtn[hidden] { display: none; }
.addbtn svg { width: 15px; height: 15px; }

.gatewrap { max-width: 720px; margin: 0 auto; }
.terms { counter-reset: t; list-style: none; margin: 0 0 22px; padding: 0; }
.terms li { counter-increment: t; position: relative; padding: 13px 0 13px 40px; border-bottom: 1px dashed var(--line); font-size: 14.5px; line-height: 1.7; }
.terms li:last-child { border-bottom: 0; }
.terms li::before { content: counter(t); position: absolute; left: 0; top: 15px; width: 25px; height: 25px; border-radius: 50%; background: var(--board); color: var(--muted); font-family: var(--disp); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.terms li.key::before { background: var(--orange); color: #fff; }
.terms li b { font-family: var(--disp); color: var(--ink); }
.tipbox { background: var(--amber-tint); border-radius: var(--r); padding: 17px 19px 18px; margin-bottom: 24px; }
.tipbox h3 { font-size: 14.5px; margin-bottom: 9px; }
.tipbox ul { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.prep { background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 20px 21px; margin-bottom: 22px; }
.prep-h { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 17px; }
.prep-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--amber-tint); color: var(--orange-deep); display: grid; place-items: center; flex-shrink: 0; }
.prep-ico svg { width: 18px; height: 18px; }
.prep-h h3 { font-family: var(--disp); font-weight: 700; font-size: 16.5px; margin: 0 0 3px; line-height: 1.4; }
.prep-h p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.prep-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .prep-grid { grid-template-columns: 1.35fr 1fr; gap: 26px; } }
.prep-k { font-family: var(--disp); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; color: var(--orange-deep); text-transform: uppercase; margin-bottom: 9px; }
.prep-k.opt { color: var(--faint); }
.prep-l { list-style: none; margin: 0; padding: 0; }
.prep-l li { position: relative; padding: 0 0 10px 26px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.prep-l li:last-child { padding-bottom: 0; }
.prep-l li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--orange-tint); border: 1.5px solid var(--orange); }
.prep-l li::after { content: ""; position: absolute; left: 4.5px; top: 10px; width: 6px; height: 3px; border-left: 1.6px solid var(--orange-deep); border-bottom: 1.6px solid var(--orange-deep); transform: rotate(-45deg); }
.prep-l.opt li::before { background: transparent; border: 1.5px dashed var(--line-2); }
.prep-l.opt li::after { display: none; }
.prep-l b { font-family: var(--disp); font-weight: 600; color: var(--ink); }
.prep-foot { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 17px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.prep-foot b { font-family: var(--disp); font-weight: 600; color: var(--ink-2); }
.gatecheck { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 15px 17px; cursor: pointer; transition: all .18s ease; }
.gatecheck:hover { border-color: var(--orange); }
.gatecheck:active { background: var(--orange-flash); }
.gatecheck.on { border-color: var(--orange); background: var(--orange-tint); }
.gatecheck input { position: absolute; opacity: 0; pointer-events: none; }
.gbox { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; transition: all .18s ease; }
.gatecheck.on .gbox { background: var(--orange); border-color: var(--orange); }
.gbox svg { width: 13px; height: 13px; opacity: 0; transition: opacity .18s ease; }
.gatecheck.on .gbox svg { opacity: 1; }
.gatecheck span.gt { font-family: var(--disp); font-weight: 600; font-size: 14.5px; }

.cardpane { position: relative; }
.cardpane[hidden] { display: none; }
@media (min-width: 1000px) { .cardpane { position: sticky; top: 136px; align-self: start; } }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--disp); font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.cp-pct { color: var(--orange-deep); }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); }
.mini-img { aspect-ratio: 1200 / 630; background: var(--board); display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-img span { font-family: var(--disp); font-size: 12px; color: var(--faint); border: 1.5px dashed var(--line-2); border-radius: var(--r-s); padding: 7px 13px; background: var(--card); }
.mini-body { padding: 14px 15px 16px; }
.mini-org { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.mini-title { font-family: var(--disp); font-weight: 600; font-size: 15.5px; line-height: 1.42; margin-bottom: 10px; color: var(--ink); min-height: 22px; }
.mini-title.empty { color: var(--faint); font-weight: 500; }
/* คำโปรยในมินิการ์ด — ระยะบนได้จาก margin-bottom ของ .mini-title (10px) อยู่แล้ว
   ถ้าใส่ margin-top ซ้ำจะกลายเป็นห่างบน 16px ห่างล่าง 0 แล้วไปชิดแคปซูลข้างล่าง
   (พี่บอสทัก 15 ก.ย. 69) เว้นล่าง 11px ให้สมดุลกับระยะบนแทน */
.mini-desc { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0 0 11px; overflow-wrap: anywhere; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--board); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.mchip.on { background: var(--amber-tint); color: var(--orange-deep); font-weight: 600; }
.mini-cta.off { background: var(--board) !important; color: var(--faint) !important; }
.minictas { display: grid; gap: 6px; margin-top: 13px; }
.mini-cta { margin-top: 0; text-align: center; font-family: var(--disp); font-weight: 600; font-size: 13px; background: var(--orange); color: #fff; border-radius: var(--r-s); padding: 9px; }
.cp-foot { font-size: 12px; color: var(--muted); margin: 11px 2px 0; line-height: 1.65; }
.cp-foot b { font-family: var(--disp); color: var(--ink-2); }
.cardtoggle { display: flex; width: 100%; align-items: center; gap: 11px; background: var(--card); border: 0; border-radius: 999px; padding: 8px 10px 8px 8px; cursor: pointer; font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--ink-2); box-shadow: 0 6px 20px -6px rgba(60,45,30,.28), 0 0 0 1px var(--line-2); transition: box-shadow .2s ease, transform .12s ease; }
.cardtoggle:active { transform: scale(.985); }
.cardtoggle .ct-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cardtoggle .ct-ico svg { width: 16px; height: 16px; }
.cardtoggle .arw { width: 26px; height: 26px; border-radius: 50%; background: var(--board); }
.cardtoggle .sp { flex: 1; text-align: left; }
.cardtoggle .pct { color: var(--orange-deep); font-size: 12.5px; }
.cardtoggle .arw { transition: transform .25s ease; color: var(--faint); display: grid; place-items: center; }
.cardpane.open .cardtoggle .arw { transform: rotate(180deg); }
@media (min-width: 1000px) { .cardtoggle { display: none; } }
@media (max-width: 999px) {
  .cp-head { display: none; }
  .cardbody { display: none; margin-top: 13px; }
  .cardpane.open .cardbody { display: block; animation: revealIn .3s ease both; }
}

.bigcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); margin-bottom: 22px; }
.bigcard-img { aspect-ratio: 1200/630; background: var(--board); display: grid; place-items: center; overflow: hidden; }
.bigcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bigcard-img span { font-family: var(--disp); font-size: 13px; color: var(--faint); }
.bigcard-b { padding: 20px 22px 22px; }
.bc-org { font-size: 12.5px; color: var(--muted); }
.bc-title { font-family: var(--disp); font-weight: 600; font-size: clamp(18px,2.6vw,22px); line-height: 1.4; margin: 3px 0 16px; }
.bc-facts { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 560px) { .bc-facts { grid-template-columns: 1fr 1fr; } }
.bc-fact { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.bc-fact .bi { color: var(--orange); flex-shrink: 0; margin-top: 3px; display: grid; place-items: center; }
.bc-fact .bi svg { width: 16px; height: 16px; }
.bc-fk { color: var(--muted); font-size: 12px; }
.bc-fv { font-family: var(--disp); font-weight: 600; line-height: 1.45; }
.bc-desc { border-top: 1px dashed var(--line); padding-top: 15px; font-size: 14px; line-height: 1.78; color: var(--ink-2); }
.bc-desc h3 { font-size: 15.5px; margin: 13px 0 6px; }
.bc-desc ul { padding-left: 20px; margin: 0 0 10px; }
.warnbox { display: flex; gap: 10px; align-items: flex-start; background: var(--amber-tint); border-radius: var(--r-s); padding: 12px 14px; margin-top: 13px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.warnbox .wi { color: var(--orange-deep); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.warnbox .wi svg { width: 16px; height: 16px; }
.warnbox b { font-family: var(--disp); color: var(--ink); }
.grow { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 9px; margin-bottom: 9px; align-items: start; }
@media (max-width: 560px) { .grow { grid-template-columns: minmax(0,1fr) auto; } .grow .gname { grid-column: 1 / -1; } }
.ctabtns { display: grid; gap: 8px; margin-top: 18px; }
.bc-cta { text-align: center; font-family: var(--disp); font-weight: 600; font-size: 14.5px; background: var(--orange); color: #fff; border-radius: var(--r-s); padding: 12px; }
.bc-cta.off { background: var(--board); color: var(--faint); border: 1.5px dashed var(--line-2); }
.checkrow { display: flex; gap: 11px; align-items: flex-start; background: var(--ok-tint); border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; line-height: 1.65; }
.checkrow .ci { color: var(--ok); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.checkrow .ci svg { width: 18px; height: 18px; }

.inc-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inc-k { font-family: var(--disp); font-weight: 600; font-size: 11.5px; color: var(--ok); margin-right: 1px; }
.incb { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--ok-tint); color: var(--ok); border: 1px solid rgba(47,122,74,.28); }
.incb svg { width: 15px; height: 15px; }
.optcard.sel .incb { background: var(--card); }
.choice.inc { background: var(--board); border-color: var(--line); color: var(--faint); cursor: default; }
.choice.inc:hover, .choice.inc:active { background: var(--board); transform: none; }
.choice .inctag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--ok); background: var(--ok-tint); border-radius: 999px; padding: 1px 7px; }
.sla { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-family: var(--disp); font-weight: 600; font-size: 12px; color: var(--muted); }
.sla-i { display: grid; place-items: center; flex-shrink: 0; }
.sla-i svg { width: 14px; height: 14px; }
.sla.fast { color: var(--ok); }
.optcard.sel .sla { border-top-color: var(--orange-tint); }
.pricetag { font-family: var(--disp); font-weight: 700; font-size: 12.5px; color: var(--orange-deep); background: var(--amber-tint); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.oc-price { margin-top: 0; }   /* ป้ายราคายืนแถวของตัวเอง ไม่ไหลตามความยาวชื่อแพ็ก */
.optcard > *:not(.sla) { margin-bottom: 9px; }
.optcard > *:not(.sla):last-child { margin-bottom: 0; }
.optcard > .oc-t { margin-bottom: 5px; }   /* ชื่อแพ็กกับป้ายราคาอยู่ชิดกัน อ่านเป็นก้อนเดียว */
.optcard.sel .pricetag { background: var(--card); }
.paybox { background: var(--board); border-radius: var(--r); padding: 18px 19px 19px; margin-bottom: 19px; }
.pay-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.pay-k { font-family: var(--disp); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.pay-v { font-family: var(--disp); font-weight: 700; font-size: clamp(20px,3vw,25px); color: var(--orange-deep); }
.pay-items { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.pay-items li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.pay-items b { font-family: var(--disp); font-weight: 500; color: var(--ink-2); }
.pay-break { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.pay-break[hidden] { display: none; }
.pay-break div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); }
.pay-break div b { font-family: var(--disp); font-weight: 500; color: var(--ink-2); }
.pay-break .wht b, .pay-break .wht span { color: var(--orange-deep); }
.taxrow { margin-top: 16px; margin-bottom: 0; }
.taxpane { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 15px 16px 4px; }
.taxpane[hidden] { display: none; }
.taxpane .field { margin-bottom: 14px; }
.taxnote { font-size: 12px; line-height: 1.6; color: var(--muted); background: var(--board); border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 13px; margin: 0 0 14px; }
.taxnote b { font-family: var(--disp); font-weight: 600; color: var(--ink-2); }
.whtrow { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 14px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.whtrow.on { border-color: var(--orange); background: var(--orange-tint); }
.whtrow.off { opacity: .55; cursor: not-allowed; }
.whtrow input { position: absolute; opacity: 0; pointer-events: none; }
.whtpick { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.whtpick.off { opacity: .5; pointer-events: none; }
.whtrow .sr-b { flex: 1; }
.whtrow .sr-t { font-family: var(--disp); font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.whtrow .sr-d { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.whtrow .tr { background: var(--line-2); }
.whtrow input:checked + .tr { background: var(--orange); }
.whtrow input:checked + .tr::after { transform: translateX(16px); }
.billname { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; font-size: 13px; }
.billname[hidden] { display: none; }
.billname .bn-k { color: var(--muted); }
.billname .bn-v { font-family: var(--disp); font-weight: 600; color: var(--ink); flex: 1; min-width: 0; word-break: break-word; }
.refchip { display: inline-flex; align-items: center; gap: 10px; background: var(--board); border: 1.5px dashed var(--line-2); border-radius: var(--r-s); padding: 10px 16px; margin: 0 auto 22px; }
.refchip .rc-k { font-size: 12px; color: var(--muted); }
.refchip .rc-v { font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--orange-deep); }
.donebill { font-size: 13px; color: var(--muted); line-height: 1.65; background: var(--board); border-radius: var(--r-s); padding: 13px 15px; margin: 0 auto 24px; max-width: 46ch; text-align: left; }
.donebill[hidden] { display: none; }
.donebill b { font-family: var(--disp); font-weight: 600; color: var(--ink-2); }
.pb-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.pb-hint[hidden] { display: none; }
.pb-calm { display:flex; gap:8px; align-items:flex-start; text-align:left; margin-top:12px;
  padding:10px 12px; background:var(--ok-tint); border-radius:var(--r-s);
  font-size:12.5px; line-height:1.6; color:var(--ink-2); }
.pb-calm svg { flex:0 0 auto; width:16px; height:16px; margin-top:2px; color:var(--ok); }
.pb-calm b { font-family:var(--disp); font-weight:700; color:var(--ok); }
.pb-hint b { font-family: var(--disp); font-weight: 700; color: var(--orange-deep); }
.pay-bank { margin-top: 16px; background: var(--card); border-radius: var(--r-s); padding: 14px 16px; text-align: center; }
.qrcard { margin: 0 auto 16px; max-width: 268px; border-radius: var(--r-s); overflow: hidden; border: 1.5px solid var(--line); background: #fff; }
.qrcard[hidden] { display: none; }
.qr-top { background: #123a6b; color: #fff; font-family: var(--disp); font-weight: 600; font-size: 11.5px; letter-spacing: .09em; padding: 8px 10px; }
.qr-img { padding: 12px 12px 6px; }
.qr-img img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-amt { font-family: var(--disp); font-weight: 700; font-size: 19px; color: #123a6b; padding: 0 10px 2px; font-variant-numeric: tabular-nums; }
.qr-who { font-size: 11.5px; color: var(--muted); padding: 0 10px 11px; line-height: 1.5; }
.qr-tip { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
.qr-tip b { font-family: var(--disp); color: var(--ink-2); }
.pb-or { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--faint); font-family: var(--disp); font-weight: 600; font-size: 11.5px; }
.pb-or::before, .pb-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pb-t { font-size: 12.5px; color: var(--muted); }
.pb-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.pb-no { font-family: var(--disp); font-weight: 700; font-size: clamp(18px,2.6vw,22px); letter-spacing: .01em; }
.pb-name { font-family: var(--disp); font-weight: 600; font-size: 13.5px; }
.copybtn { font-family: var(--disp); font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--orange-deep); cursor: pointer; transition: all .17s ease; }
.copybtn:hover { border-color: var(--orange); background: var(--orange-tint); }
.copybtn:active { transform: scale(.95); }
.copybtn.done { border-color: var(--ok); color: var(--ok); background: var(--ok-tint); }
.revlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; margin-bottom: 20px; }
.revrow { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.revrow:last-child { border-bottom: 0; }
.revk { width: 112px; flex-shrink: 0; color: var(--muted); font-size: 13px; }
.revv { flex: 1; font-family: var(--disp); font-weight: 600; line-height: 1.5; word-break: break-word; }
.termsrecap { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.done-wrap { text-align: center; padding: 8px 0 0; }
.bigstamp { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: inset 0 0 0 4px rgba(255,255,255,.42), 0 10px 30px rgba(241,90,41,.34); transform: rotate(-8deg); animation: thunk .5s cubic-bezier(.2,1.5,.4,1) both; }
.bigstamp svg { width: 42px; height: 42px; }
@keyframes thunk { 0% { transform: rotate(-24deg) scale(1.8); opacity: 0; } 60% { transform: rotate(-5deg) scale(.94); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
.done-wrap h2 { font-size: clamp(23px, 4vw, 31px); margin-bottom: 10px; }
.done-lead { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.steps-next { text-align: left; max-width: 470px; margin: 0 auto 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 20px; }
/* ⚠️ ข้อความไทยล้นออกนอกกล่อง — flex item มี min-width:auto มาโดยปริยาย
   แปลว่า "ห้ามหดเล็กกว่าคำที่ยาวที่สุดข้างใน" ซึ่งกับภาษาอังกฤษไม่มีปัญหาเพราะเว้นวรรคทุกคำ
   แต่ภาษาไทยเขียนติดกันยาวๆ ทั้งประโยคนับเป็นก้อนเดียว กล่องจึงหดไม่ได้แล้วข้อความทะลุขอบ
   (ล้นขวา 101px บนจอคอม · 181px บนมือถือ — วัดจริง 16 ก.ย. 69)
   min-width:0 คือบอกว่าหดได้ แล้วเบราว์เซอร์จะตัดบรรทัดภาษาไทยให้เอง */
/* ⚠️ ข้อความไทยล้นออกนอกกล่อง — flex item มี min-width:auto มาโดยปริยาย
   แปลว่า "ห้ามหดเล็กกว่าคำที่ยาวที่สุดข้างใน" ภาษาอังกฤษไม่มีปัญหาเพราะเว้นวรรคทุกคำ
   แต่ภาษาไทยเขียนติดกันยาวๆ ทั้งประโยคนับเป็นก้อนเดียว กล่องจึงหดไม่ได้แล้วข้อความทะลุขอบ
   (วัดจริง 16 ก.ย. 69 — ล้นขวา 101px บนจอคอม · 181px บนมือถือ) */
.sn { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.sn > div { min-width: 0; overflow-wrap: anywhere; }
.sn > div { min-width: 0; overflow-wrap: anywhere; }
.sn:last-child { border-bottom: 0; }
.sn-n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 600; font-size: 12px; background: var(--board); color: var(--muted); }
.sn.now .sn-n { background: var(--orange); color: #fff; }
.sn-t { font-family: var(--disp); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.sn-d { font-size: 13px; color: var(--muted); line-height: 1.62; }
.sn-d b { font-family: var(--disp); color: var(--ink-2); }
/* เว้นระยะบนเท่ากับที่กล่องความเห็นเว้นจากกล่องขั้นตอน — เดิมไม่มีเลย สองกล่องติดกันสนิท */
.rulebox { text-align: left; max-width: 470px; margin: 20px auto 0; background: var(--amber-tint); border-radius: var(--r); padding: 16px 19px 18px; }
.rulebox h3 { font-size: 14.5px; margin-bottom: 10px; }
.rulebox dl { margin: 0; font-size: 13.5px; line-height: 1.65; }
.rulebox dt { font-family: var(--disp); font-weight: 600; color: var(--orange-deep); margin-top: 12px; }
.rulebox dt:first-of-type { margin-top: 0; }
.rulebox dd { margin: 0; color: var(--ink-2); }
.rulebox dd b { font-family: var(--disp); color: var(--ink); }

.navbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.navinner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.navprog { position: absolute; top: -1px; left: 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--orange)); transition: width .4s cubic-bezier(.3,.9,.4,1); border-radius: 0 3px 3px 0; }
.btn { font-family: var(--disp); font-weight: 600; font-size: 14.5px; border-radius: var(--r-s); padding: 11px 20px; cursor: pointer; border: 1.5px solid transparent; transition: all .18s ease; }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.btn[hidden] { display: none; }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 2px 10px rgba(241,90,41,.3); }
.btn-primary:hover:not(:disabled) { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(.97); box-shadow: 0 1px 4px rgba(241,90,41,.35); }
.btn-primary:disabled { opacity: .4; cursor: default; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-ghost:active { background: var(--orange-flash); transform: scale(.97); }
.navsp { flex: 1; }
.navhint { font-size: 12.5px; color: var(--faint); display: none; }
@media (min-width: 760px) { .navhint { display: block; } }
.savepill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); background: var(--ok-tint); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.savepill svg { width: 13px; height: 13px; color: var(--ok); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }