/* หน้า LIFF ต้นแบบ AJI Reward · สี/ตัวอักษร/ระยะ ตามงานออกแบบ ajt-design (member-app · origin/loyalty-main)
   เทากลางเป็นตระกูล neutral ไม่อมฟ้า (lab a=b=0) ตามที่วัดจากหน้าออกแบบ
   สีตาม CI ชุด Branding ใน Figma (รายการ 385 · DEC-20261125-337) · ฝั่งการ์ดแชตใช้ค่าชุดเดียวกันที่ lib/theme.mjs (มีเทสกันสองฝั่งไม่ตรง) */
:root {
  --brand: #e60012;
  --brand-2: #f0242f; /* หัวไล่สี (linear-gradient to bottom right) */
  --brand-soft: #fff1f1;
  --brand-soft-2: #ffe0e1;
  --brand-text: #e60012;
  --ink: #111111;
  --ink-2: #404040;
  --ink-3: #525252;
  --ink-4: #737373;
  --line: #e5e5e5;
  --line-2: #f2f2f2;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f2f2f2;
  --track: #dedede;
  --success: #008236;
  --success-soft: #f0fdf4;
  --warn: #bb4d00;
  --warn-soft: #fffbeb;
  --error: #e7000b;
  --error-soft: #fef2f2;
  --accent: #fbbe02; /* เหลืองแซมของ CI · ยังไม่มีปุ่มใช้ (รูปแบบปุ่มรอล็อกดีไซน์) */
  --accent-soft: #fffaeb;
  --accent-text: #8a5a05;
  /* ฟอนต์ยังเป็นชุดเดิมทั้งคู่ · เปลี่ยนค่าที่นี่เมื่อคอนเฟิร์มฟอนต์ใหม่ */
  --font-heading: "Noto Sans Thai", "NSThai metric fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-heading);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --nav-h: 84px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

/* ---------- ฟอนต์สำรองที่กินที่เท่าฟอนต์จริง ----------
   Noto Sans Thai มาจากอินเทอร์เน็ต (fonts.gstatic.com) · ระหว่างรอ เบราว์เซอร์วาดด้วยฟอนต์ระบบก่อน
   แล้วค่อยสลับ (font-display: swap) · ฟอนต์ระบบกว้างไม่เท่ากัน ย่อหน้าจึงตัดบรรทัดใหม่ตอนสลับ
   = เนื้อทั้งหน้าเลื่อนขึ้นลงให้เห็น (อาการ "กระตุก")

   วัดจริง 2026-11-04 (เทียบความกว้างข้อความเดียวกันที่ 16px):
     ละติน  Noto Sans Thai / ฟอนต์ระบบ = 1.035-1.054  (ฟอนต์จริง "กว้างกว่า")
     ไทย    Noto Sans Thai / ฟอนต์ระบบ = 0.950-0.957  (ฟอนต์จริง "แคบกว่า")
   ที่จอกว้าง 360 ภาษาอังกฤษ ส่วนต่างฝั่งละตินพอดีกับจุดตัดบรรทัด → เลื่อนแรงกว่าที่อื่น ~10 เท่า
   (วัด layout-shift หน้าแคมเปญ ตอนหน่วงฟอนต์ 1.5 วิ: 360/en = 0.0120 · 360/th = 0.0012 · 390/en = 0.0015)

   ย่อ/ขยายฟอนต์สำรองให้กว้างเท่าฟอนต์จริงแยกตามภาษา จุดตัดบรรทัดจึงไม่เปลี่ยนตอนสลับ
   ⚠️ ถ้าเครื่องไม่มีฟอนต์ที่ local() ระบุเลย ชุดนี้ถูกข้ามทั้งก้อน → กลับไปเหมือนเดิม ไม่พังเพิ่ม */
@font-face {
  font-family: "NSThai metric fallback";
  src: local("Helvetica Neue"), local("Roboto"), local("Arial"), local("Segoe UI");
  font-weight: 100 900;
  font-style: normal;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; /* ไทย */
  size-adjust: 95.5%;
  ascent-override: 106%;
  descent-override: 44%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "NSThai metric fallback";
  src: local("Helvetica Neue"), local("Roboto"), local("Arial"), local("Segoe UI");
  font-weight: 100 900;
  font-style: normal;
  unicode-range: U+0000-02FF, U+2000-206F, U+20A0-20BF, U+2122, U+2190-2193, U+2212, U+2215; /* ละติน เครื่องหมาย สกุลเงิน */
  size-adjust: 104%;
  ascent-override: 106%;
  descent-override: 44%;
  line-gap-override: 0%;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-2);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; } /* .nav/.toast ตั้ง display ไว้ จึงต้องทับ UA style */
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ไอคอนชุดแอปสมาชิก = Iconly Curved เส้น 2 ปลายมน (member-icons.tsx `memberIcon` · ข674) */
svg.ic { width: 24px; height: 24px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10; }

/* ---------- โครงหน้าจอ ---------- */
#screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}

/* แถบหัวสีแดง · แถว 64 + แผ่นขาวมุม 24 สูง 24 ใต้แถว (ScreenBar · member-app-g7.tsx:1219-1335) */
.hdr {
  position: relative;
  flex: none;
  background: linear-gradient(to bottom right, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 24px;
  overflow: hidden;
}
.hdr::after { /* แสงขาวนุ่มมุมขวาบน · วงรีเบลอ เอียง -20 องศา */
  content: "";
  position: absolute;
  top: -96px; right: -64px;
  width: 320px; height: 224px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-20deg);
  filter: blur(40px);
  pointer-events: none;
}
.hdr-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 8px;
}
.hdr-bar h1 {
  flex: 1;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.hdr-bar.start h1 { text-align: left; margin-left: -4px; }
.hdr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  border: 0;
  background: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.hdr-side { width: 44px; flex: none; }
.pts-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  margin-right: 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.pts-pill small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.pts-pill img { width: 20px; height: 20px; }

/* เนื้อหา — แผ่นขาวมุม 24 วางพอดีใต้แถวหัว */
.body {
  position: relative;
  z-index: 2;
  flex: 1;
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -24px;
  padding: 8px 20px calc(24px + var(--nav-h) + var(--safe-b));
}
.body.flat { border-radius: 0; margin-top: 0; padding: 0 0 calc(24px + var(--nav-h) + var(--safe-b)); }
#screen.no-nav .body { padding-bottom: calc(24px + var(--safe-b)); }
/* จอที่ขึ้นต้นด้วยภาพเต็มกว้าง (รายละเอียดของรางวัล · กิจกรรม) · แบบใช้ ScreenBar sheet="clear"
   แถบแดงจบที่ 64 แล้วภาพชิดขึ้นมาเลย ไม่มีแผ่นขาวมุมโค้งคาบขอบบนภาพ (REVIEW-2 N1) */
#screen.pic-top .hdr { padding-bottom: 0; }
#screen.pic-top .body { margin-top: 0; border-radius: 0; padding-top: 0; }

/* แสงวงแหวนจางมุมขวาบนของหัวหน้าของรางวัล (catalogue/page.tsx:539 · ข1318)
   วง 216 ขอบหนา 44 ขาวโปร่ง 40% จางจากขวาบนลงซ้ายล่าง */
.hdr.ring::before {
  content: "";
  position: absolute;
  top: -88px; right: -72px;
  width: 216px; height: 216px;
  box-sizing: border-box;
  border: 44px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 95%);
  mask-image: linear-gradient(200deg, #000 35%, transparent 95%);
  pointer-events: none;
}

/* ---------- แถบเมนูล่าง (bottom-tab-bar.tsx · ข674 ข706 ข1369) ---------- */
.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 30;
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 4px calc(20px + var(--safe-b));
  background: none;
}
.nav .sil { /* เงาตามรูปทรงทั้งแถบรวมส่วนโค้งนูน · ไม่มีเส้นขอบบน */
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 -4px 14px rgba(0, 0, 0, 0.08));
}
.nav .sil i { position: absolute; inset: 0; background: #fff; display: block; }
.nav .sil svg { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); width: 168px; height: 36px; fill: #fff; }
.nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  justify-self: center;
  padding: 6px 12px;
  border-radius: var(--r-lg);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav a svg { width: 24px; height: 24px; flex: none; }
.nav a.fab {
  margin-top: -28px;
  gap: 4px;
  padding: 0;
  background: none;
  color: var(--ink-3);
  font-weight: 500;
}
.nav a.fab.on { background: none; color: var(--brand); }
.nav a.fab .fab-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px -2px color-mix(in srgb, var(--brand) 45%, transparent), 0 2px 6px color-mix(in srgb, var(--brand) 25%, transparent);
}
.nav a.fab .fab-circle svg { width: 32px; height: 32px; }
/* รายการ 516 · ธงภารกิจปิด (ค่าเริ่ม) เหลือ 4 ปุ่ม · ปุ่มท้าย (โปรไฟล์) กินสองช่องขวา ปุ่มสแกนจึงยังตรงกลางส่วนโค้งนูน */
.nav.no-mis a:last-child { grid-column: span 2; }

/* ---------- ชิ้นส่วนร่วม ---------- */
.muted { color: var(--ink-4); }
.small { font-size: 13px; line-height: 20px; }
.sec { font-size: 15px; line-height: 22px; color: var(--ink-3); }
.center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
h2.sec-title { font-size: 18px; line-height: 28px; font-weight: 700; margin: 20px 0 8px; }
h2.sec-title.sm { font-size: 15px; line-height: 22px; margin: 18px 0 4px; }
h2.sec-title.first { margin-top: 2px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.dashed { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn.sm { min-height: 40px; font-size: 14px; padding: 8px 16px; width: auto; }
.btn.tiny { min-height: 24px; height: 24px; padding: 0 14px; font-size: 12px; line-height: 16px; width: auto; border-radius: 999px; }
.btn.pill { border-radius: 999px; }
.btn.link { border: 0; background: none; color: var(--brand); width: auto; min-height: 32px; padding: 0; font-weight: 600; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.ico { width: 32px; padding: 0; justify-content: center; color: var(--ink-3); }
.chip.ico svg { width: 18px; height: 18px; }
.chips { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* แท็บขีดใต้ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 0 -20px 16px;
  padding: 0 20px;
}
.tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-4);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-3);
  color: var(--ink-2);
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.red { background: var(--brand-soft); color: var(--brand-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

.cat { font-size: 11px; line-height: 16px; font-weight: 600; color: var(--brand-text); }

.coin { width: 20px; height: 20px; vertical-align: -4px; }
.coin.sm { width: 16px; height: 16px; vertical-align: -3px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}
.empty { padding: 48px 16px; text-align: center; }
.empty img { width: 150px; margin-bottom: 8px; }
.empty h3 { font-size: 20px; line-height: 30px; font-weight: 700; color: var(--ink); }
.empty p { font-size: 15px; line-height: 22px; color: var(--ink-4); margin-top: 2px; }

/* ---------- หน้าหลัก (Figma 86:8076 · ข1371) ---------- */
.hero { position: relative; display: flex; flex-direction: column; }
.hero .hero-bg { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 140px; object-fit: cover; object-position: right top; pointer-events: none; }
.hero .hero-in { position: relative; height: 112px; }
.hero h1 { position: absolute; top: 36px; left: 20px; width: 230px; font-size: 16px; line-height: 24px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ชื่อยาวห้ามตกบรรทัดไปทับคำโปรย (อลเจอ 5 พ.ย.) */
.hero p { position: absolute; top: 62px; left: 20px; width: 230px; font-size: 12px; line-height: 18px; font-weight: 500; color: #fff; white-space: nowrap; }
.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 20px;
  padding: 13px 14px 14px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.home-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 20px; }
.home-card .who { display: flex; align-items: center; gap: 6px; }
.home-card .who .lbl { font-size: 11px; line-height: 15px; font-weight: 500; color: var(--ink); }
.tier-chip {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background-image: linear-gradient(to right, #f5f5f5, #a3a3a3);
  color: #737373;
  font-size: 10px; line-height: 14px; font-weight: 500;
}
.tier-chip.gold { border-color: #fcd34d; background-image: linear-gradient(to right, #fef08a, #fbbf24); color: #d97706; }
.tier-chip.plat { border-color: #a5b4fc; background-image: linear-gradient(to right, #e0e7ff, #818cf8); color: #6366f1; }
.home-card .pts { display: flex; align-items: center; gap: 8px; }
.home-card .pv { display: flex; align-items: center; gap: 4px; font-size: 10px; line-height: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-card .pv img { width: 16px; height: 16px; }
.home-card .info { display: flex; color: #d5d7da; }
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.home-card .goal { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 18px; }
.home-card .goal .amt { font-size: 10px; line-height: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-card .goal .amt b { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink); }

/* ช่องระดับสมาชิกช่วงที่ยังไม่เปิดใช้ (A15 · ถ้อยคำทาง 3 · app.js `tierOn`)
   เทากลางของชุดสีเดิม ไม่ใช่สีเตือน · ไม่มีตัวเลข ไม่มีไอคอนเหรียญ/ดาว
   ความเปรียบต่าง #525252 บน #f5f5f5 ≈ 7:1 (คำนวณ ยังไม่ได้วัดด้วยเครื่องมือ) */
.tier-off { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg-3); }
.tier-off .lb { font-size: 10px; line-height: 14px; font-weight: 500; color: var(--ink-3); }
.tier-off .val { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
.tier-off .hint { font-size: 10px; line-height: 14px; color: var(--ink-3); }
.tier-off.ctr { align-items: center; text-align: center; padding: 10px 16px; }
.tier-off.ctr .lb { font-size: 11px; line-height: 16px; }
.tier-off.ctr .val { font-size: 15px; line-height: 22px; }
.tier-off.ctr .hint { font-size: 11px; line-height: 16px; }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 4px; }
.brand-grid a, .brand-grid span.t { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 66px; min-width: 0; }
.brand-grid img { width: 44px; height: 44px; object-fit: contain; }
.brand-grid .nm { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.brand-grid .ph { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-size: 18px; font-weight: 700; }

.swipe { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.banners a { flex: none; width: 100%; scroll-snap-align: center; border-radius: 4px; overflow: hidden; }
.banners img { display: block; width: 100%; aspect-ratio: 350 / 131; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.dots i { display: block; height: 6px; width: 6px; border-radius: 999px; background: #d4d4d4; transition: width .2s; }
.dots i.on { width: 16px; background: var(--brand); }

.pop {
  position: relative;
  margin: 0;
  padding: 24px 0 20px 20px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--brand-soft-2), var(--brand-soft) 40%);
}
.pop .decor { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 111px; object-fit: cover; object-position: right top; pointer-events: none; }
.pop .hd { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 28px; padding-right: 20px; margin-bottom: 12px; }
.pop .hd h2 { font-size: 18px; line-height: 28px; font-weight: 700; }
.pop .hd a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pop .hd a svg { width: 16px; height: 16px; }
.pop .swipe { position: relative; margin: 0; padding: 0 20px 4px 0; }
.rw-card { flex: none; width: 156px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r-sm); background: #fff; overflow: hidden; border: 0; padding: 0; text-align: left; cursor: pointer; }
.rw-card .art { width: 156px; height: 156px; object-fit: cover; background: var(--brand-soft); }
.rw-card .in { display: flex; flex-direction: column; gap: 6px; padding: 0 8px 8px; }
.rw-card .nm { height: 40px; overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.rw-card .pt { display: flex; align-items: center; gap: 5px; height: 16px; font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rw-card .pt img { width: 16px; height: 16px; }

.promo-card { flex: none; width: 156px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 9px; }
.promo-card img { width: 156px; height: 156px; border-radius: 5.5px; object-fit: cover; }
.promo-card .nm { height: 42px; overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 20px;
}
.notice.amber { background: var(--warn-soft); color: var(--warn); }
.notice b { color: var(--ink); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- ของรางวัล ---------- */
.rw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.rw { display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; border: 0; background: none; padding: 0; }
.rw .pic {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  background: var(--brand-soft);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rw .pic img { width: 100%; height: 100%; object-fit: cover; }
.rw .nm { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rw .pt { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 700; }
.rw .pt .was { font-size: 13px; font-weight: 400; color: var(--ink-4); text-decoration: line-through; }
.rw .out {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 4px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff; font-size: 13px; font-weight: 600;
}
/* ป้าย "ใกล้หมด" · มุมซ้ายล่างของรูป — คนละแถวกับป้ายนับถอยหลังที่ขวาบน เพราะของชิ้นเดียว
   ขึ้นได้ทั้งสองป้าย และคำอังกฤษ "Nearly gone" ยาวกว่าคำไทยจนชนกันถ้าอยู่แถวเดียวกัน
   สีอำพันเพื่อบอกว่าเป็นคำเตือน ไม่ใช่สีแบรนด์ที่ใช้กับของที่ยังพร้อมแลก
   max-width กันไว้อีกชั้น เผื่อภาษาอื่นที่คำยาวกว่านี้ */
.rw .low {
  position: absolute; bottom: 0; left: 0;
  display: inline-flex; align-items: center;
  max-width: 100%;
  height: 24px; padding: 0 10px;
  border-radius: 0 12px 0 12px;
  background: var(--warn); color: #fff;
  font-size: 13px; line-height: 18px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rw .flash {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  border-radius: 0 12px 0 12px;
  background: #171717; color: #fff;
  font-size: 13px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rw .flash svg { width: 14px; height: 14px; fill: #fff; stroke: none; }

/* กล่องค้นหาแบบหน้าแคตตาล็อกของงานออกแบบ */
.search {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  margin-bottom: 12px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--ink-4);
}
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.sum-card {
  position: relative;
  z-index: 1;
  display: flex; align-items: center;
  margin: 0 20px;
  padding: 10px 16px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.hdr .sum-card { color: var(--ink); }
.sum-card .l { flex: 1; min-width: 0; }
.sum-card .k { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.sum-card .vals { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.sum-card .v { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-card .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 14px; }
.sum-card a { display: flex; align-items: center; gap: 8px; color: inherit; }

.detail-pic { margin: 0 -20px; background: var(--brand-soft); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.detail-pic img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: flex; background: var(--bg-3); border-radius: var(--r); padding: 12px; }
.kv > div { flex: 1; text-align: center; }
.kv > div + div { border-left: 1px solid var(--line); }
.kv .k { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.kv .v { font-size: 16px; line-height: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.terms p { font-size: 15px; color: var(--ink-2); line-height: 24px; margin-bottom: 14px; }
.terms ol { margin: 0; padding-left: 22px; }
/* T-LO20 · หัวส่วนข้อกำหนดการใช้ในแท็บเงื่อนไข */
.terms .tou-h { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.terms ol li { font-size: 15px; color: var(--ink-2); line-height: 24px; margin-bottom: 12px; }
/* T-LO20 · ประโยควันแลกใต้ชื่อ มีไอคอนปฏิทิน ตัวเข้มพอให้อ่านง่าย (แบบ A8 ข764) */
.rw-period { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.rw-period svg { flex: none; color: var(--ink-4); }
/* AJI #383 · บรรทัด "เฉพาะสมาชิกระดับ …" ชิดใต้ประโยควันแลก (ดีไซน์ ข3303 ไอคอนรูปคน) */
.rw-period + .rw-audience { margin-top: -10px; }

.footbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0; z-index: 25;
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: #fff;
  border-top: 1px solid var(--line);
}
.footbar .cost { flex: none; }
.footbar .cost .k { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.footbar .cost .v { display: flex; align-items: center; gap: 6px; font-size: 20px; line-height: 28px; font-weight: 700; }
.footbar .btn { flex: 1; }
.footbar.two .btn { flex: 1 1 0; width: 0; }
/* AJI #383 · ของรางวัลที่เงื่อนไขผู้แลกกั้นอยู่: บรรทัดเหตุผลเต็มความกว้างเหนือแต้มกับปุ่ม · ปุ่มเทา (ไม่ใช่แดงจาง) ตามดีไซน์ */
/* #427 · แถบเตือน "ไม่สามารถแลกรางวัลนี้ได้" ใต้หัวแถบ (ธง LINE_REWARD_REASONS) · ใช้ตัวแปรสีกลาง */
.rw-why { margin: 0 -20px; padding: 10px 20px; display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); font-size: 13px; line-height: 19px; color: var(--ink-2); }
.rw-why svg { flex: none; color: var(--warn); margin-top: 1px; }
.rw-why #rw-reset { display: block; margin-top: 4px; color: var(--ink); }
.rw-why b { display: block; color: var(--ink); font-weight: 600; }
.footbar.has-why { flex-wrap: wrap; row-gap: 8px; }
.footbar .why { flex: 0 0 100%; margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.footbar .btn.off:disabled { opacity: 1; background: var(--track); border-color: var(--track); color: var(--ink-4); }
#screen.has-foot .body { padding-bottom: 104px; }

/* ---------- คูปอง (ขอบตั๋วหยัก · globals.css @utility coupon-ticket) ---------- */
.tw { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06)); margin-bottom: 14px; }
.ticket {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--r-sm);
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  --bump: 4px;
  --pitch: 11px;
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--bump)) 100% no-repeat,
    radial-gradient(circle at 50% 50%, #000 var(--bump), transparent calc(var(--bump) + 0.5px)) left / calc(2 * var(--bump)) var(--pitch) no-repeat round,
    radial-gradient(circle at 50% 50%, #000 var(--bump), transparent calc(var(--bump) + 0.5px)) right / calc(2 * var(--bump)) var(--pitch) no-repeat round;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--bump)) 100% no-repeat,
    radial-gradient(circle at 50% 50%, #000 var(--bump), transparent calc(var(--bump) + 0.5px)) left / calc(2 * var(--bump)) var(--pitch) no-repeat round,
    radial-gradient(circle at 50% 50%, #000 var(--bump), transparent calc(var(--bump) + 0.5px)) right / calc(2 * var(--bump)) var(--pitch) no-repeat round;
}
.ticket .pic { width: 88px; height: 88px; flex: none; border-radius: var(--r-sm); background: var(--brand-soft); object-fit: cover; }
.ticket .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ticket .nm { font-size: 15px; font-weight: 600; line-height: 22px; display: block; }
.ticket .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.ticket .foot .small { color: var(--ink-4); }
/* รายการ 671 · การ์ดจัดส่ง: ป้าย/ปุ่มยาวกว่าการ์ดคูปอง → ลงบรรทัดใหม่ทั้งปุ่ม ไม่ตัดคำในปุ่ม */
.ticket .foot.ship { flex-wrap: wrap; }
.ticket .foot.ship > :last-child { white-space: nowrap; margin-left: auto; }
.day-head { margin: 0 -20px; padding: 8px 20px; background: var(--bg-3); font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink-3); }

/* บัตรรหัสในแผ่นแดง */
.code-sheet {
  background: var(--brand);
  color: #fff;
  min-height: 100dvh;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 20px calc(24px + var(--safe-b));
  overflow: auto;
}
.code-sheet .st { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; }
.code-sheet .st h2 { font-size: 18px; line-height: 28px; font-weight: 600; }
.code-sheet .st button { position: absolute; right: -8px; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.code-card { position: relative; margin-top: 12px; background: #fff; color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.code-card .head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
.code-card .head img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--brand-soft); flex: none; }
.code-card .head .nm { font-size: 16px; font-weight: 700; line-height: 24px; }
.perf { position: relative; display: flex; align-items: center; height: 24px; }
.perf .hole { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); }
.perf .hole.l { left: -12px; } .perf .hole.r { right: -12px; }
.perf .dots { flex: 1; height: 3px; margin: 0 22px; background-image: radial-gradient(circle, #d4d4d4 1.5px, transparent 1.6px); background-size: 9px 3px; background-repeat: repeat-x; }
.code-body { padding: 8px 20px 20px; }
.code-stage { position: relative; min-height: 256px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.code-stage .qrbox { width: 240px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.code-stage .qrbox svg { width: 100%; height: auto; display: block; }
.barbox { width: 100%; max-width: 288px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.barbox svg { display: block; width: 100%; height: 80px; }
.code-text { font-size: 26px; font-weight: 700; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.code-cap { font-size: 12px; line-height: 18px; letter-spacing: 1px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.dim { opacity: 0.15; filter: grayscale(1); }

/* ตรายางหมดอายุ (ExpiredStamp · use-coupon/page.tsx) */
.stamp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.stamp .ring {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 144px; height: 144px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--ink-4);
  opacity: 0.8;
  transform: rotate(-18deg);
}
.stamp .ring::before { content: ""; position: absolute; inset: 6px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.6; }
.stamp .stars { position: absolute; display: flex; gap: 6px; }
.stamp .stars.t { top: 20px; align-items: flex-start; }
.stamp .stars.b { bottom: 20px; align-items: flex-end; }
.stamp .stars svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.stamp .stars.t svg:nth-child(1), .stamp .stars.t svg:nth-child(3) { margin-top: 4px; }
.stamp .stars.b svg:nth-child(1), .stamp .stars.b svg:nth-child(3) { margin-bottom: 4px; }
.stamp .band {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 176px; height: 40px; flex: none;
  border-top: 2px solid currentColor; border-bottom: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.85);
}
.stamp .band span { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 1px; color: var(--ink-3); }

.clock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 15px; line-height: 20px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.clock-pill svg { width: 18px; height: 18px; }
.clock-pill.hot { background: var(--error-soft); color: var(--error); }
.timeout-note { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.timeout-note i { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #414651; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; flex: none; }
.copy-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--ink-3); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.helpline { font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, 0.9); text-align: center; margin-top: 6px; }
.helpline a { font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.helpline svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* ---------- แผ่นล่าง (bottom sheet) ---------- */
.sheet-bg {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(23, 23, 23, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.18s ease;
}
.sheet {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 20px calc(20px + var(--safe-b));
  animation: up 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  max-height: 92dvh; overflow: auto;
}
.sheet.full { height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 0; background: var(--brand); animation: none; }
.sheet-bg.plain { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet .grip { width: 44px; height: 4px; border-radius: 999px; background: var(--line); margin: 2px auto 18px; }
.sheet .ico { display: flex; justify-content: center; margin-bottom: 12px; color: var(--brand); }
.sheet .ico svg { width: 44px; height: 44px; }
.sheet h2 { font-size: 17px; line-height: 26px; font-weight: 600; text-align: center; }
.sheet > p { text-align: center; color: var(--ink-2); font-size: 15px; line-height: 24px; margin-top: 6px; }
.sheet .acts { display: flex; gap: 12px; margin-top: 20px; }
.sheet .acts .btn { flex: 1 1 0; width: 0; }
/* แผ่นแจ้งผิดพลาดหลังกดยืนยัน (#400 · errorSheet) · แบบ g8-state.tsx AlertPopup: ฉากหลังเข้ม 64% · วงแดงสองชั้นไอคอนขาว · ✕ มุมขวาบน · ปุ่มเดียวเต็มกว้าง */
.sheet-bg.alert-bg { background: rgba(10, 13, 18, 0.64); }
.sheet.alert { position: relative; text-align: center; }
/* ไอคอนวงแดงสองชั้นตามแบบ SheetIcon: วงนอก 72px แดงอ่อน (เงาวง 10px) · วงใน 52px แดงทึบ · ไอคอนขาว 26px */
.sheet.alert .ico { width: 52px; height: 52px; margin: 10px auto 22px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 10px var(--brand-soft-2); color: #fff; align-items: center; }
.sheet.alert .ico svg { width: 26px; height: 26px; stroke-width: 2.4; }
.sheet.alert h2 { font-size: 18px; line-height: 28px; font-weight: 700; }
.sheet.alert > p { white-space: pre-line; }
.sheet.alert .acts { margin-top: 24px; }
.sheet-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@keyframes up { from { transform: translateY(18px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-bg { animation: none; } }

/* ---------- ฟอร์ม ---------- */
label.f { display: block; margin-bottom: 14px; font-size: 14px; line-height: 20px; color: var(--ink-2); font-weight: 500; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } /* ชื่อ-นามสกุลแถวเดียวตามแบบ */
.f-pair > label.f { min-width: 0; }
.fin { position: relative; display: flex; align-items: center; }
label.f .fin { margin-top: 6px; }
.fin svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--ink-4); pointer-events: none; }
.fin svg.tail { left: auto; right: 14px; }
.fin.ico input, .fin.ico select { padding-left: 44px; }
.fin input, .fin select, label.f > input, label.f > select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-weight: 400;
  color: var(--ink);
}
label.f > input, label.f > select { margin-top: 6px; }
input::placeholder { color: var(--ink-4); }
.fin input:disabled, .fin input[readonly], label.f input:disabled, label.f input[readonly] { background: var(--bg-3); color: var(--ink-3); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--ink-2); margin: 4px 0 14px; }
label.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.req { color: var(--brand); }
.seg { display: flex; gap: 10px; margin-top: 6px; }
.seg button { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 15px; cursor: pointer; }
.seg button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.drop {
  display: flex; align-items: center; gap: 16px;
  min-height: 96px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  margin-bottom: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.drop .plus { display: flex; align-items: center; justify-content: center; width: 80px; height: 72px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand); flex: none; }
.drop .plus svg { width: 28px; height: 28px; }
.drop img.shot { width: 80px; height: 72px; border-radius: var(--r); object-fit: cover; flex: none; }

/* ช่องกรอก OTP */
.otp { display: flex; justify-content: space-between; gap: 8px; }
.otp input {
  flex: 1 1 0; min-width: 0; max-width: 56px; aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  text-align: center; font-size: 24px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: #fff;
}
.otp input:focus { border-color: var(--brand); outline: none; }

/* สลับภาษา */
/* ปุ่มสลับภาษา (language-switch.tsx) · บนแดง สูง 32 ตัว 12 เรียง EN ก่อน ไทย
   บนพื้นขาว สูง 36 ตัว 14 เรียง ไทย ก่อน EN */
.lang { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); }
.lang button { min-width: 44px; height: 100%; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 600; cursor: pointer; }
.lang button.on { background: #fff; color: var(--brand-text, var(--brand)); }
.lang.ink { height: 36px; background: var(--bg-3); }
.lang.ink button { min-width: 52px; font-size: 14px; color: var(--ink-4); }
.lang.ink button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- แถว/ประวัติ/โปรไฟล์ ---------- */
.row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.row:last-child { border-bottom: 0; }
.row .ic { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--ink); flex: none; margin-top: 2px; }
.row .ic img { width: 24px; height: 24px; object-fit: contain; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 15px; line-height: 22px; font-weight: 600; }
.row .sub { font-size: 13px; line-height: 20px; color: var(--ink-4); }
.plus-pt { color: var(--success); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.minus-pt { color: var(--brand-text); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

.prof-head { position: relative; background: linear-gradient(to bottom right, var(--brand-2), var(--brand)); height: 104px; }
.prof-sheet { position: relative; margin-top: -40px; background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 0 20px; text-align: center; }
.prof-avatar { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.prof-avatar svg { width: 36px; height: 36px; }
.prof-sheet h2.who { padding-top: 50px; font-size: 20px; line-height: 28px; font-weight: 700; }
.menu-row { display: flex; align-items: center; gap: 14px; min-height: 48px; width: 100%; border: 0; background: none; padding: 4px 0; font-size: 16px; line-height: 24px; font-weight: 500; cursor: pointer; text-align: left; }
.menu-row .ic { color: var(--ink); display: flex; width: 24px; justify-content: center; flex: none; }
.menu-row .ic svg { width: 24px; height: 24px; }
.menu-row .grow { flex: 1; }
.menu-row .ch { color: var(--ink-4); display: flex; }
.menu-row .ch svg { width: 20px; height: 20px; }

/* ---------- ผลสำเร็จ ---------- */
.ok-ico { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; margin: 8px auto 16px; box-shadow: 0 0 0 10px var(--success-soft); }
.ok-ico svg { width: 30px; height: 30px; stroke-width: 3; }
.kv-list { margin-top: 10px; }
.kv-list .r { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; line-height: 24px; }
.kv-list .r .k { color: var(--ink-3); }
.kv-list .r .v { font-weight: 600; text-align: right; display: flex; align-items: center; gap: 6px; }
/* ข้อมูลสมาชิกบนหน้าโปรไฟล์ (m1·7·5) · ใช้ dl/dt/dd เพื่อให้โปรแกรมอ่านจอจับคู่ป้ายกับค่าได้
   หน้าโปรไฟล์จัดกึ่งกลางทั้งแผ่น ส่วนนี้จึงต้องดึงกลับมาชิดซ้าย และล้าง margin ปริยายของ dd */
.kv-list.facts { text-align: left; margin-top: 4px; }
.kv-list.facts .r { margin: 0; border-bottom: 1px solid var(--line-2); }
.kv-list.facts .r:last-child { border-bottom: 0; }
.kv-list.facts dt, .kv-list.facts dd { margin: 0; }
.proto-note.facts-note { text-align: left; margin-top: 6px; }

/* ---------- หน้าแคมเปญ ---------- */
.camp-banner { margin: 0 -20px 16px; }
.camp-banner img { display: block; width: 100%; }
.camp h1 { font-size: 20px; line-height: 30px; font-weight: 700; }
.camp .by { font-size: 15px; line-height: 22px; color: var(--ink-3); margin-top: 6px; }
.camp .when { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; color: var(--ink-2); margin-top: 8px; }
.camp .when svg { width: 20px; height: 20px; color: var(--ink-3); }
.camp h2 { font-size: 17px; line-height: 26px; font-weight: 700; margin: 22px 0 8px; }
.camp p, .camp li { font-size: 15px; line-height: 26px; color: var(--ink-2); }
.camp ol { margin: 0; padding-left: 22px; }
.camp ol li { margin-bottom: 10px; }

/* ---------- toast / loading / error ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(var(--nav-h) + 20px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 80;
  max-width: 88%;
  padding: 12px 18px;
  border-radius: var(--r);
  background: rgba(23, 23, 23, 0.92);
  color: #fff;
  font-size: 15px;
  text-align: center;
}
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 0; color: var(--ink-4); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { padding: 48px 16px; text-align: center; }
.err p { margin-bottom: 16px; color: var(--ink-2); }
.proto-note { font-size: 12px; line-height: 18px; color: var(--ink-4); text-align: center; margin-top: 22px; }

/* ---------- ส่วนที่เพิ่มตามแบบ (ภารกิจ · สมัคร 4 ขั้น · ข้อมูลส่วนตัว · ความยินยอม) ---------- */

/* ไอคอนของแท็บที่เลือกเป็นแบบทึบ 2 น้ำหนัก (ข1369 · ข1383) — ส่วนหลักทึบ ส่วนรองจาง */
.nav a.on > svg { fill: currentColor; fill-opacity: 0.2; }
.nav a.on > svg.fill { fill-opacity: 1; } /* แท็บที่มีไอคอนแบบทึบในแบบ (หน้าแรก · ของรางวัล) */

.ticket .nm { display: block; }
.btn.tiny.ghost { background: #fff; }
.rw .pt { gap: 5px; }

/* หัวภาพของหน้าสมัครสมาชิก (get-started/welcome) */
.hero.reg {
  position: relative;
  display: block;
  min-height: 236px;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom right, var(--brand-2), var(--brand));
  overflow: hidden;
}
.hero.reg::after {
  content: "";
  position: absolute;
  top: -96px; right: -64px;
  width: 320px; height: 224px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-20deg);
  filter: blur(40px);
}
/* สูง 211 ตามซอร์ส (verify-phone-step.tsx:357) · ไม่มีแสงนุ่ม ภาพ HeroArt คลุมทั้งแถบแล้ว */
.hero.reg { min-height: 211px; height: 211px; background: var(--brand); }
.hero.reg::after { content: none; }
/* ชั้นภาพ · กลับข้างทั้งชั้น แล้วกลับแพนด้า ถุง เหรียญคืน ตัวอักษรบนเหรียญจึงไม่กลับด้าน (ข1270) */
.hero.reg .art { position: absolute; inset: 0; transform: translateY(-32px) scaleX(-1); pointer-events: none; }
.hero.reg .art > img, .hero.reg .art .tk > img { transform-origin: center; }
.hero.reg .base { position: absolute; left: 0; right: 0; top: 0; height: 191px; background: var(--brand); }
.hero.reg .curve {
  position: absolute; left: 0; right: 0; top: 0; height: 243px;
  -webkit-mask-image: url(/assets/member/hero-curve.svg); mask-image: url(/assets/member/hero-curve.svg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero.reg .curve-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero.reg .ring { position: absolute; top: 31px; right: -103px; width: 348px; height: 348px; max-width: none; }
.hero.reg .tote { position: absolute; top: 134px; right: -16px; width: 117px; height: 117px; max-width: none; object-fit: cover; transform: scaleX(-1); }
.hero.reg .panda { position: absolute; top: 65px; right: 24px; width: 170px; height: 170px; max-width: none; object-fit: cover; transform: scaleX(-1); }
.hero.reg .tk { position: absolute; display: flex; align-items: center; justify-content: center; }
.hero.reg .tk img { max-width: none; object-fit: cover; transform: scaleX(-1); }
.hero.reg .lang-slot { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 20px; z-index: 3; }
.reg-body {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 32px 20px calc(24px + var(--safe-b));
}
/* หัวจอ 24 ตัวหนา · คำรองเป็นตัวเนื้อหา 16 (member-app-typography.md · ตารางบทบาท) */
.reg-body h1 { font-size: 24px; line-height: 32px; font-weight: 700; text-align: center; }
.reg-sub { font-size: 16px; line-height: 24px; color: var(--ink-4); text-align: center; margin: 4px 0 24px; }
/* ช่องกรอกกับปุ่มสูง 44 เท่ากัน (ข552 · วัดจากภาพแบบ D01 = 44/44 ห่างกัน 16) */
.reg-body .fin input { min-height: 44px; border-color: #d4d4d4; }
.reg-body .btn { min-height: 44px; }
.reg-note { font-size: 13px; line-height: 20px; color: var(--ink-4); text-align: center; margin-top: 14px; }
.reg-note b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 1px; }

/* ---------- หัวข้อย่อยและช่องใหม่ของขั้นกรอกข้อมูล (เพิ่ม 2026-11-04 ให้ครบตามแบบ) ----------
   แบบแบ่งเป็นสามส่วน ข้อมูลทั่วไป · ข้อมูลการติดต่อ · ที่อยู่ (sign-up-step.tsx:916-945 `G6Section size="lg"`) */
.reg-sec {
  margin: 24px 0 14px;
  font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink);
}
.reg-sec:first-child { margin-top: 0; }
/* ป้ายของช่องที่อยู่ในกลุ่ม (.fgrp) ให้หน้าตาเท่าป้ายของ label.f */
.fgrp > label { display: block; font: inherit; color: inherit; }
/* คำอธิบายใต้ช่อง (เช่น วิธีใช้รหัสไปรษณีย์) และข้อความผิดพลาด */
.fhint { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-4); font-weight: 400; }
.ferr { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--brand-text); font-weight: 400; }
.reg-body input.bad, .reg-body select.bad, input.bad, select.bad { border-color: var(--brand); }
/* ช่องเลือกตำบล/อำเภอ สูงเท่าช่องกรอกอื่นในจอสมัคร และมีลูกศรของเบราว์เซอร์ตามปกติ */
.reg-body .fin select { min-height: 44px; border-color: #d4d4d4; }
.reg-body .fin select:disabled { background: var(--bg-3); color: var(--ink-3); }

/* กรอบสแกน QR ในหน้าสะสมแต้ม */
.scan-frame {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 220px;
  margin: 0 auto;
  border: 2px dashed var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-3);
  color: var(--ink-4);
}

/* เม็ดระดับสมาชิกในโปรไฟล์ (รูปบัตรเล็ก + ชื่อระดับภาษาไทย) */
.tier-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 15px; line-height: 22px; font-weight: 600;
}
.tier-pill img { width: 26px; height: 17px; border-radius: 3px; object-fit: cover; }

.avatar-lg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
  color: var(--brand);
}

/* สวิตช์ความยินยอม */
.toggle {
  position: relative;
  width: 44px; height: 24px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #d4d4d4;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.toggle.on { background: var(--brand); }
.toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.toggle i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.15s; box-shadow: var(--shadow); }
.toggle.on i { left: 22px; }

/* โปรไฟล์: ไอคอนเมนูเป็นสีแดงตามภาพแบบ D08-profile-hub · หัวแดงสูงพอให้รูปวงคร่อมรอยต่อ */
.prof-head { height: 140px; }
.menu-row .ic { color: var(--brand); }
.menu-row .ch { color: var(--ink-3); }

/* ---------- รอบแก้ที่ 2 · ตามผลตรวจภาพคู่ REVIEW-2 ---------- */

/* 06-2 · ไอคอนสำเร็จ: วงนอก 56 เขียวอ่อน วงใน 40 เขียว (ขนาดวัดจาก D06 · สีตามตัวแปรสถานะของ CI) */
.ok-ico {
  width: 56px; height: 56px;
  background: var(--success-soft);
  color: var(--success);
  box-shadow: none;
  margin: 8px auto 16px;
}
.ok-ico::before { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%; background: currentColor; }
.ok-ico svg { position: relative; width: 22px; height: 22px; stroke-width: 2.5; color: #fff; }

/* S5 · ลูกศรท้ายแถวเมนูเป็นสีเข้มตามแบบ (profile-hub.tsx:71 text-primary) ไอคอนหน้าแถวยังแดง */
/* S5 · ลูกศรท้ายแถวเป็นสีเข้มตามแบบ (ChevronRight `text-primary` ใน profile-hub.tsx)
   ต้องระบุถึงตัว svg ด้วย เพราะ svg มีคลาส `ic` จึงโดน `.menu-row .ic { color: var(--brand) }` ทับสีที่สืบทอดมา */
.menu-row .ch, .menu-row .ch svg { color: var(--ink); }

/* N5 · ปุ่มตัวกรองของรายการแลกเป็นเม็ดพื้นเทา ไม่มีขอบ (หน้าของรางวัลยังเป็นเม็ดขาวมีขอบตามแบบ D03) */
#flt.chip:not(.ico) { background: var(--bg-3); border-color: transparent; color: var(--ink); }

/* N6 · ประวัติแต้ม: ชื่อรายการเป็นตัวกลาง ไอคอนช่องทางเส้นบาง */
.row .t { font-weight: 500; }
.row .ic svg { stroke-width: 1.75; }

/* N12 · รูปโปรไฟล์หน้าข้อมูลส่วนตัว 88 เท่าแบบ (profile-hub size-22) */
/* ข้อ 12 · รูปโปรไฟล์หน้าข้อมูลส่วนตัว วัดจาก D15 ได้ 80px */
.avatar-lg { width: 80px; height: 80px; }
.avatar-lg svg { width: 36px; height: 36px; }

/* 12-1 · แผ่นรหัสไม่เต็มจอ มีมุมบนโค้งและเห็นขอบหน้าเดิมด้านบน (วัดจาก D12) */
.sheet.full { height: calc(100dvh - 6px); max-height: calc(100dvh - 6px); border-radius: 16px 16px 0 0; overflow: hidden; }
.code-sheet { border-radius: 16px 16px 0 0; min-height: 100%; }

/* N8 · แท็บในแผ่นรหัสกว้างเท่าตัวการ์ด ขีดใต้จึงยาว 101 เท่าแบบ */
.code-body .tabs { margin: 0 0 12px; padding: 0; }

/* N3 · บาร์โค้ดไม่มีกรอบ กว้าง 208 สูง 80 ตามที่วัดจาก D12 · เลขใต้บาร์โค้ดตัวหนาโมโนสเปซสีเข้ม
   หมายเหตุ: ห้ามตั้งชื่อคลาสว่า `bar` เพราะชนกับหลอดแต้ม `.bar` (บรรทัด 387) แล้วตัวอักษรจะหาย */
.barbox { border: 0; padding: 0; max-width: 208px; }
.barbox svg { height: 80px; }
.code-cap.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink);
}
/* 13-2 · หมดเวลาแล้วคำใต้โค้ดจางลงทั้งสองแท็บ */
.code-cap.out, .code-cap.mono.out { color: #d4d4d4; }

/* N7 · ช่องใส่รูปใบเสร็จ: กล่องชมพูมุมโค้งกว่า ชื่อช่องเป็นตัวกลาง (วัดจาก D16) */
/* S1 · วงแหวนจางมุมขวาบนของหัวหน้าโปรไฟล์ (profile-hub.tsx บรรทัด 108 · ข1318) ตำแหน่ง -80/-72 */
.prof-head { overflow: hidden; }
.prof-head::after {
  content: ""; position: absolute; top: -80px; right: -72px;
  width: 216px; height: 216px; box-sizing: border-box;
  border: 44px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
  -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 95%);
  mask-image: linear-gradient(200deg, #000 35%, transparent 95%);
  pointer-events: none;
}

.drop { font-weight: 500; }
.drop .plus, .drop img.shot { border-radius: 18px; }

/* ---------- รอบเก็บรายละเอียด 2026-11-04 (DEC-20261104-008) ---------- */

/* ปุ่มอธิบายแต้มบนการ์ดหน้าหลัก · เดิมเป็น span จึงต้องล้างสไตล์ปุ่มให้หน้าตาเท่าเดิม */
.home-card .info { border: 0; background: none; padding: 0; cursor: pointer; align-items: center; }

/* ชิปในแผ่นตัวกรอง ขึ้นบรรทัดใหม่ได้ ไม่ต้องเลื่อนซ้ายขวา */
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 0 4px; row-gap: 8px; }
.flt-h { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-3); margin: 16px 0 8px; }
.flt-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; }
.flt-sw .toggle { margin-top: 0; }
/* จำนวนตัวกรองที่เปิดอยู่ บนปุ่มรูปกรวย */
.chip.ico.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.flt-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.chip.ico { position: relative; overflow: visible; }

/* ปุ่มลบรูปใบเสร็จ มุมขวาบนของช่อง */
.drop-wrap { position: relative; }
.drop-x {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink-3); cursor: pointer;
}
.drop-x svg { width: 18px; height: 18px; }

/* แถวร้านออนไลน์: ป้ายเชื่อมแล้ว + ปุ่มยกเลิกการเชื่อม */
.shop-act { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.btn.link.sm-link { font-size: 13px; min-height: 24px; color: var(--ink-4); }

/* ภาษาอังกฤษตัวยาวกว่าไทย · ลดขนาดเฉพาะจุดที่ความกว้างตายตัว ไม่แตะหน้าตาฝั่งไทย */
html[lang="en"] .brand-grid .nm { font-size: 11px; }
html[lang="en"] .nav a span { font-size: 10px; }
html[lang="en"] .hero p { font-size: 11px; }

/* รอบเก็บรายละเอียด 2 — 2026-11-04 (ผลตรวจอิสระ GLITCH) */
/* ข้อความแจ้งเตือนย้ายขึ้นบนเมื่อหน้านั้นไม่มีเมนูล่าง (กันทับปุ่มหลักที่ติดขอบล่าง) */
/* 62px = ใต้แถวปุ่มย้อนกลับ/สลับภาษา · ข้อความยาวจะได้ไม่บังปุ่มทั้งสอง */
.toast.top { top: calc(62px + env(safe-area-inset-top, 0px)); bottom: auto; }
/* ปุ่มย้อนกลับบนแถบแดงของจอสมัคร */
.reg-back {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer;
}
.reg-back svg { width: 26px; height: 26px; }
.reg-back:active { background: rgba(255, 255, 255, .35); }
/* วันที่บนใบเสร็จ (ส่งย้อนหลังได้ไม่เกิน 7 วัน) */
.rc-date { margin-bottom: 16px; }
.rc-date .hint { display: block; margin-top: 6px; font-size: 12px; line-height: 18px; font-weight: 400; color: var(--ink-4); }
.rc-date input[type="date"] { -webkit-appearance: none; appearance: none; }

/* ---------- รอบแก้ตามแบบ 2026-11-04 (DEC-20261104-031) ---------- */

/* ช่องวันเดือนปีเกิด วว / ดด / ปปปป · กรอบเดียวแบ่งสามช่อง (แบบ: date-field.tsx `typing`) */
.fgrp { display: block; margin-bottom: 14px; font-size: 14px; line-height: 20px; color: var(--ink-2); font-weight: 500; }
.fgrp .fin { margin-top: 6px; }
.birth-segs {
  display: flex; align-items: center; gap: 2px;
  width: 100%; min-height: 48px;
  padding: 10px 14px 10px 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
/* กรอบโฟกัสชั้นเดียว (แก้ 2026-11-04)
   สามช่อง วว/ดด/ปปปป อยู่ในกรอบเดียวกัน · เดิมช่องย่อยขึ้นกรอบโฟกัสของตัวเอง (`:focus-visible` ส่วนกลาง
   outline 2px offset 2px) ซ้อนอยู่ข้างในกรอบแดงของกล่องนอก และล้นไปทับขีดคั่น "/" = เห็นเป็นกรอบสองชั้น
   ตอนนี้: กล่องนอกเป็นตัวบอกว่ากำลังกรอกช่องวันเกิด (ขอบแดง + วงแสงด้านนอก ไม่ซ้อนกับอะไร)
          ช่องย่อยบอกว่ากำลังอยู่ช่องไหนด้วยพื้นแดงอ่อน ยังเห็นชัดด้วยตาและไม่ใช่สีอย่างเดียว (มีเคอร์เซอร์กะพริบด้วย) */
.birth-segs:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.fin.ico .birth-segs input {
  width: 2.2em; min-height: 24px;
  padding: 0; border: 0; border-radius: 6px; background: none;
  text-align: center; font-weight: 400; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fin.ico .birth-segs input:focus,
.fin.ico .birth-segs input:focus-visible { outline: none; background: var(--brand-soft); }
.fin.ico .birth-segs input.y { width: 3.6em; }
.birth-segs i { font-style: normal; color: var(--ink-4); }

/* อธิบายแต้ม 3 แถว ชิดซ้าย (หน้าหลัก › ปุ่ม i) */
.pt-info { list-style: none; margin: 4px 0 0; padding: 0; text-align: left; }
.pt-info li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.pt-info li:first-child { border-top: 0; }
.pt-info .pi-art { display: flex; align-items: center; justify-content: center; width: 28px; flex: none; color: var(--brand-text); }
.pt-info .pi-art img { width: 28px; height: 28px; }
.pt-info .pi-art svg { width: 24px; height: 24px; }
.pt-info .pi-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-info b { font-size: 15px; line-height: 24px; font-weight: 700; color: var(--ink); }
.pt-info .pi-d { font-size: 14px; line-height: 22px; color: var(--ink-2); }

/* บรรทัดบอกว่าทำไมปุ่มสมัครยังกดไม่ได้ (ขึ้นเฉพาะตอนยังติ๊กข้อบังคับไม่ครบ) */
.reg-hint { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--ink-4); text-align: center; }

/* ---------- เปลี่ยนหน้าให้ลื่น ---------- */
/* เนื้อหน้าใหม่เข้าฉากสั้น ๆ · หัวแดงกับแถบเมนูล่างอยู่กับที่ ไม่ขยับและไม่กะพริบ
   เส้นโค้งเดียวกับงานออกแบบ (globals.css · `--ease-settle`)

   🔴 ห้ามใส่ opacity ลงในคีย์เฟรมชุดนี้
   เนื้อหน้าเดิมหายไปทันทีที่ใส่เนื้อหน้าใหม่ · ถ้าหน้าใหม่เริ่มที่ opacity 0 จอจะว่างขาว
   (เห็นแต่หัวแดงกับแถบล่าง) ยาวเท่าความยาวภาพเคลื่อนไหว = อาการ "วูบ" ที่ผู้ใช้เห็น
   วัดจากเฟรมจริง 2026-11-04: จอว่างขาว ~160ms ทุกครั้งที่เปลี่ยนหน้า
   ขยับตำแหน่งอย่างเดียวจึงไม่มีเฟรมว่างเลย */
.body.pg-tab, .body.pg-fwd, .body.pg-back { animation: 0.2s cubic-bezier(0.23, 1, 0.32, 1) both; }
.body.pg-tab { animation-name: pg-rise; animation-duration: 0.16s; }
.body.pg-fwd { animation-name: pg-fwd; }
.body.pg-back { animation-name: pg-back; }
@keyframes pg-rise { from { transform: translate3d(0, 6px, 0); } }
@keyframes pg-fwd { from { transform: translate3d(16px, 0, 0); } }
@keyframes pg-back { from { transform: translate3d(-16px, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .body.pg-tab, .body.pg-fwd, .body.pg-back { animation: none; }
}

/* รอข้อมูลนานเกิน 300ms จึงขึ้นตัวโหลด · จอเดิมยังอ่านได้ ไม่กะพริบเป็นจอเปล่า */
#screen.waiting .body { opacity: 0.5; }
#screen.waiting::after {
  content: "";
  position: fixed; top: 50%; left: 50%; z-index: 50;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%;
  animation: spin 0.9s linear infinite;
  pointer-events: none;
}

/* รูปแบนเนอร์หน้ากิจกรรมจองที่ไว้ก่อนโหลด (สัดส่วนจริงของรูปชนะเมื่อโหลดเสร็จ) · เนื้อข้างใต้จึงไม่กระโดด */
.camp-banner img { aspect-ratio: auto 350 / 131; object-fit: cover; }

/* ---------- ขั้นความยินยอมของจอสมัคร (แบบ consent-step.tsx:429-531) ---------- */
/* ข้อความนำยาว · ชิดซ้าย ตัวเนื้อหา 16 สีรอง เหมือน Lead ของแบบ (g6-kit.tsx:427-429 `text-md text-secondary`) */
.reg-sub.reg-lead { text-align: left; color: var(--ink-2); margin-bottom: 20px; }
/* ต่อข้อ: กรอบมุมโค้ง · ช่องติ๊ก "ชื่อ · จำเป็น/ไม่จำเป็น" + คำอธิบาย · แถวล่าง "ฉบับ N" กับปุ่ม "อ่านเพิ่มเติม" (consent-step.tsx:496-511) */
.rc-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.rc-item label.check { margin: 0; }
.rc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-left: 30px; }
.rc-meta .btn.link { min-height: 44px; font-size: 14px; }

/* ---------- หน้าขอบคุณหลังสมัคร (แบบ rewards/g8-state.tsx WelcomeSheet) ---------- */
.reg-thanks { display: flex; flex-direction: column; min-height: calc(100dvh - 24px - var(--safe-b)); text-align: center; }
.thx-band { position: relative; display: block; flex: none; height: 88px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.thx-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: #fff; border-radius: 24px 24px 0 0; }
.thx-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 24px 0; }
.thx-ok { width: 80px; height: 80px; flex: none; margin-top: 16px; }
.thx-ok circle:first-child { fill: var(--success-soft); }
.thx-ok circle + circle { fill: var(--success); }
.thx-ok path { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.reg-thanks h2 { margin-top: 20px; font-size: 20px; line-height: 30px; font-weight: 600; }
.reg-thanks p { display: flex; flex-direction: column; margin-top: 8px; font-size: 16px; line-height: 24px; }
.thx-bonus { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.thx-bonus .coin { width: 22px; height: 22px; vertical-align: 0; }
.thx-bonus b { font-size: 16px; font-weight: 700; }
.reg-thanks > .btn { flex: none; width: auto; margin: 16px 24px 0; }

/* ═════════ หน้าแบรนด์ (home/brand-page M-011 · ข1028 ข1472 ข1486 · DEC-20261106-025) ═════════
   ชุดสีตั้งบน <html data-brand> จึงคลุมทั้งจอรวมแถบล่าง (BrandPhoneFrame ของงานออกแบบ) · หน้าอื่นลบออกทุกครั้งที่เปลี่ยนหน้า
   ค่าสีจาก theme-ajt.css ของงานออกแบบ (origin/loyalty-main) · ไม่มีค่าสีใหม่
   yellow  = [data-brand="yellow"] · 600 #ffc20e · ตัวอักษรบนพื้นทึบชี้ไปขั้น 950 #3b2800 · ไอคอน/แท็บที่เลือก = ผสม 500 กับ 700 (ข1285 ข1444)
   khu-ran = บันไดแดง AJT + ทับ 50 #fff3f1 · 300 #ffa496 · 600/700 #d42c25 (ข1475) · ไอคอนเมนูลัด = 600
   แบรนด์ที่ยังไม่มีดีไซน์ไม่ตั้ง data-brand → แดงตั้งต้นของ OA */
:root { --brand-icon: var(--brand); --on-brand: #fff; }
html[data-brand="yellow"] {
  --brand: #ffc20e;
  --brand-2: #ffc700;
  --brand-soft: #fffbe8;
  --brand-soft-2: #ffe88a;
  --brand-text: #9a6a00;
  --brand-icon: color-mix(in oklab, #ffc700, #9a6a00 50%);
  --on-brand: #3b2800;
}
html[data-brand="khu-ran"] {
  --brand: #d42c25;
  --brand-2: #d42c25;
  --brand-soft: #fff3f1;
  --brand-soft-2: #fac5be;
  --brand-text: #d42c25;
  --brand-icon: #d42c25;
}
/* ตัวอักษร/ไอคอนบนพื้นสีแบรนด์ · เหลืองแบกตัวขาวไม่ได้ (1.6:1) จึงเป็นน้ำตาลเข้ม */
html[data-brand] .btn:not(.ghost):not(.link), html[data-brand] .nav a.fab .fab-circle, html[data-brand] .chip.on { color: var(--on-brand); }
html[data-brand] .nav a.on, html[data-brand] .nav a.fab.on { color: var(--brand-icon); }
html[data-brand] .nav a.fab .fab-circle { box-shadow: 0 8px 18px -2px color-mix(in srgb, var(--brand) 45%, transparent), 0 2px 6px color-mix(in srgb, var(--brand) 25%, transparent); }

/* หัว · ภาพเต็มกว้าง · ยำยำสูง 148 (ข1486 · Figma 188:6456) · คู่ร้านวางแบบภาพหัวหน้าแรกสูง 140 (homeLayout) */
.bp-hero .hero-bg { height: 148px; object-position: center top; }
.bp-hero.home-layout .hero-bg, .bp-hero:not(.home-layout):has(.has-logo) .hero-bg { height: 140px; object-position: right top; }
/* ปุ่มกลับ · วงขาว 28 ที่ 19,16 ลูกศร 14 · กรอบกด 44 (ข1472 ข1486 · Figma 838:35819 251:24083) */
.bp-back { position: absolute; z-index: 2; top: 8px; left: 11px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.bp-back span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 7px rgba(0, 0, 0, 0.06); transition: transform .12s; }
.bp-back:active span { transform: scale(.95); }
.bp-back svg { width: 14px; height: 14px; stroke-width: 2.25; }
/* คำทัก 18/28 ตัวหนาที่ 47 · คำโปรแกรม 14/22 ตัวกลาง (Figma 188:6464 · ข1481) */
.bp-hero .bp-title { position: absolute; top: 47px; left: 20px; width: 230px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.bp-hero .bp-title h1, .bp-hero .bp-title p { position: static; width: auto; color: inherit; }
.bp-hero .bp-title h1 { margin-bottom: -4px; font-size: 18px; line-height: 28px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-hero .bp-title p { font-size: 14px; line-height: 22px; font-weight: 500; white-space: nowrap; }
html[data-brand="yellow"] .bp-hero .bp-title { color: #3b2800; }
/* แบรนด์ที่ยังไม่มีดีไซน์ · โลโก้วงขาวหน้าชื่อแบรนด์ */
.bp-hero .bp-title.has-logo { top: 50px; width: auto; right: 150px; flex-direction: row; align-items: center; gap: 10px; }
.bp-hero .bp-title.has-logo > span { display: flex; flex-direction: column; min-width: 0; }
.bp-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }

/* เนื้อ · เซคชันห่างกัน 16 (ข899) */
.bp-body { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px 0; }
.bp-sec { display: flex; flex-direction: column; gap: 8px; }
.bp-sec.roomy { gap: 12px; }
.bp-h { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.bp-h.lg { font-size: 18px; line-height: 28px; }

/* เมนูลัด 4 คอลัมน์ 2 แถว · วง 44 พื้นสีแบรนด์อ่อน ไอคอน 26 ป้าย 12/18 (Figma 194:6853 · home-sheets MenuTileFace) */
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 4px; }
.mt { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 66px; min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; border-radius: var(--r-sm); }
.mt-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-icon); transition: transform .12s; }
.mt:active .mt-ic { transform: scale(.95); }
.mt-ic svg { width: 26px; height: 26px; }
.mt-nm { font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.sheet .mgrid.sheet-grid { margin-top: 16px; row-gap: 12px; }

/* สไลด์กิจกรรม · ยำยำมุม 8 (roomy · ข1486) · คู่ร้านใบเดียวมุม 4 (ข1472 · Figma 878:49870) */
.bp-slides .bp-slide { flex: none; width: 100%; scroll-snap-align: center; border-radius: 8px; overflow: hidden; }
.bp-slides .bp-slide img { display: block; width: 100%; aspect-ratio: 350 / 131; object-fit: cover; }
.bp-sec:not(.roomy) .bp-slides .bp-slide { border-radius: 4px; }
.bp-sec .dots { margin-top: 0; }

/* รางวัลยอดนิยม · ยำยำ = มนทั้งสี่มุม ไล่ 200→50 ที่ 40% · คู่ร้าน (homeLayout) = มนเฉพาะบน พื้นแดงโปร่ง 22%→9% (38%)→8% ของขั้น 500 (ข1474) */
.bp-pop { margin: 0 -20px; border-radius: var(--r-lg); }
.bp-pop.home-layout { border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(to bottom, rgba(232, 59, 54, 0.22), rgba(232, 59, 54, 0.09) 38%, rgba(232, 59, 54, 0.08)); }
.bp-pop .rw-card { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); }
.bp-pop .swipe { padding-top: 4px; margin-top: -4px; padding-bottom: 24px; margin-bottom: -20px; }

/* โปรโมชัน · การ์ด 156 ชื่อสองบรรทัด ขึ้นบรรทัดตามชื่อแบนเนอร์ (whitespace-pre-line · clamp) */
.bp-promos .promo-card .nm { height: 40px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* แบรนด์ที่ยังไม่มีดีไซน์ */
.bp-empty { padding: 24px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bp-empty img { border-radius: 50%; object-fit: contain; }
.bp-empty h2 { font-size: 17px; line-height: 26px; font-weight: 600; color: var(--ink); }
.bp-empty p { margin: 0 0 8px; }
/* T-M8.7 · แบรนด์ที่ไม่มีโลโก้ (ค่าตั้ง) = อักษรแรกบนวงกลม · ปุ่มไป LINE OA ของแบรนด์ */
.bp-title .ph.bp-logo { display: flex; align-items: center; justify-content: center; color: var(--brand-text); font-size: 18px; font-weight: 700; }
.bp-empty .ph.lg { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-size: 24px; font-weight: 700; }

/* โหมด api (DATA_SOURCE=api) · ป้าย "ยังไม่ต่อระบบจริง" ต้องเห็นชัด ไม่กลืนกับเนื้อหา */
.nw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; border: 1.5px dashed var(--warn); background: var(--warn-soft); color: var(--warn); font-size: 12px; line-height: 18px; font-weight: 700; white-space: normal; }
.notice.nw { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.nw-pane { text-align: center; }

/* จอยินยอมแบบเลื่อนอ่านจนจบ (T-LO05B · ธง LINE_CONSENT_FLOW) */
.rd-tail { margin: 16px 0 0; display: grid; gap: 8px; }
.rd-confirm { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.rd-end { text-align: center; color: var(--ink-4); font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; }
.rd-end.read { color: var(--success); border-top-color: var(--success); }
.rd-status { min-height: 20px; margin: 0; color: var(--success); }
.rd-skip { position: absolute; left: -9999px; }
.rd-skip:focus { position: static; display: inline-block; margin-bottom: 8px; }
.cs-row { align-items: center; gap: 12px; }
.cs-badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f1f1f1; color: #555; }
.cs-badge.on { background: var(--success-soft); color: var(--success); }
.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; }
/* ---------- ความยินยอมรายแบรนด์ (T-M7.6 · consent-step.tsx reconsent/signup) ---------- */
.bc-body { padding: 16px 0 calc(24px + var(--safe-b, 0px)); display: flex; flex-direction: column; gap: 12px; }
.bc-body form { display: flex; flex-direction: column; }
.bc-title { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.bc-lead { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.bc-err { background: var(--error-soft); color: var(--error); }
.rc-item.lack { border-color: var(--brand); }
.bc-miss { margin: 6px 0 0 30px; font-size: 14px; line-height: 20px; color: var(--error); }
.bc-later { margin-top: 10px; text-align: center; }
.bc-full { white-space: pre-line; }
.bc-done { display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; padding: 40px 0; }
.bc-done h2 { font-size: 20px; line-height: 28px; font-weight: 700; }

/* ---------- จัดส่งของรางวัล (T-M5.12 · แบบ M-044 ขั้นที่อยู่ · M-049 ติดตามการจัดส่ง) ---------- */
.ship-rw { display: flex; gap: 12px; align-items: center; }
.ship-rw img, .ship-rw .pic { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); flex: none; }
.ship-rw .nm { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ship-rw .pts { display: flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ship-to { margin-top: 12px; }
.ship-to h3 { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ship-rowp { display: flex; gap: 8px; align-items: flex-start; }
.ship-rowp > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.ship-to .nm { font-size: 15px; line-height: 22px; font-weight: 400; color: var(--ink-2); }
.ship-to .nm b { font-weight: 600; color: var(--ink); }
.ship-to .sec { font-size: 14px; line-height: 20px; margin-top: 2px; }
.sheet .ship-to { text-align: left; margin: 12px 0 16px; }
.ship-form { margin-top: 16px; }
.ship-form h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 4px 0 12px; color: var(--ink); }
.ship-form label.f + h3 { margin-top: 8px; }
.ship-form .bad { border-color: var(--brand); }
#ship-saved { width: 100%; }
.trk-card + .trk-card, .trk-card + .notice, .notice + .ship-to, .trk-card + .ship-to { margin-top: 12px; }
.trk-rw { display: flex; gap: 12px; align-items: center; }
.trk-rw img, .trk-rw .pic { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); flex: none; }
.trk-rw h2 { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink-3); min-width: 0; }
.trk-code { user-select: all; overflow-wrap: anywhere; }
#trk-no .v { margin: -10px -12px -10px 0; gap: 2px; }
.trk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trk-top h3 { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.trk-cancel { background: var(--error-soft); color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 25%, var(--bg)); margin-top: 12px; }
.trk-cancel b { color: var(--error); }

/* ---------- ระดับของฉัน (T-M4.3 · แบบ M-060 tier-tab) · ใช้สีแบรนด์ของ deployment ไม่มีสี/ชื่อระดับตายตัว ---------- */
.tr-card { border-radius: var(--r-lg); padding: 20px; color: var(--on-brand); background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); }
.tr-lb { font-size: 12px; line-height: 16px; opacity: 0.85; }
.tr-name { font-size: 28px; line-height: 36px; font-weight: 700; margin-top: 2px; word-break: break-word; }
.tr-until { font-size: 13px; line-height: 18px; margin-top: 4px; opacity: 0.9; }
.tr-card .bar.tr-white { margin-top: 14px; background: color-mix(in oklab, var(--on-brand) 30%, transparent); }
.tr-card .bar.tr-white i { background: var(--on-brand); }
.tr-sum { font-size: 13px; line-height: 18px; font-weight: 600; margin-top: 8px; }
.tr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-cond, .tr-group { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.tr-cond.met { border-color: var(--success); background: var(--success-soft); }
.tr-cond.met .bar i { background: var(--success); }
.tr-cl { font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
.tr-cs { font-size: 12px; line-height: 16px; color: var(--ink-3); margin-top: 6px; }
.tr-gh { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.tr-group .tr-cond { border-style: dashed; }
.tr-off { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--bg-3); text-align: center; }
.tr-off .val { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-2); }
.tr-off .hint { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* ---------- ระดับบนบัตร + หน้าระดับส่วนเพิ่ม (T-M4.3 เฟส 3 · ธง LINE_TIER_PROGRESS) · ใช้ตัวแปรสีกลาง ไม่มีค่าสีใหม่ ---------- */
.home-card .goal .tc-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 18px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
/* ข้อความเดียวไม่มีตัวเลข (หลายเกณฑ์ · สูงสุด · ครบแล้ว) = ตัดบรรทัดได้ ห้ามตัดท้ายด้วย … เพราะชื่อระดับถัดไปอยู่ท้ายประโยค */
.home-card .goal.solo { height: auto; justify-content: flex-end; }
.home-card .goal.solo .tc-link { white-space: normal; overflow: visible; text-align: right; }
a.tier-pill { color: inherit; text-decoration: none; }
.tr-lead { font-size: 14px; line-height: 21px; color: var(--ink-2); margin: 14px 0 0; }
.tr-lead + .btn { margin-top: 12px; }
.tr-how { font-size: 14px; line-height: 21px; color: var(--ink-2); margin: 0; }
.notice + .tr-card { margin-top: 12px; }
/* รายการ 308 · ยอดค้างหัก (ธง LINE_POINTS_DEBT) · บรรทัดอธิบายใต้ยอดบนบัตร + บรรทัดย่อยแถวยกเลิกในประวัติ */
.home-card .debt-line { margin: 6px 0 0; font-size: 12px; line-height: 18px; color: var(--warn); }
.row .sub.h-debt { color: var(--warn); }

/* ---------- รายการ 223 ฟอร์มเลขคำสั่งซื้อ (/liff/earn-online · ธง LINE_ORDER_EARN) ---------- */
.oe-lead { margin: 12px 0 16px; }
.oe-quota { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg-3); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.oe-quota.full { background: var(--warn-soft); color: var(--warn); }
.oe-quota svg { flex: none; }
.oe-form .hint { display: block; margin-top: 6px; font-size: 12px; line-height: 18px; font-weight: 400; color: var(--ink-4); }
.oe-form .hint:empty, .oe-form .ferr:empty { display: none; }
.oe-form .opt { color: var(--ink-4); font-weight: 400; }
.oe-form input.bad, .oe-form select.bad { border-color: var(--brand); }
.oe-form input[type="date"] { -webkit-appearance: none; appearance: none; }
.oe-err { margin-top: 4px; }
.oe-got { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 18px; line-height: 28px; color: var(--brand-text); }

/* ---------- แก้ข้อมูลส่วนตัว + ที่อยู่ของฉัน (T-LO06 · แบบ M-101 / M-102) · สีจากตัวแปรกลางเท่านั้น ---------- */
.f-hint { margin: -8px 0 14px; font-size: 12px; line-height: 18px; color: var(--ink-4); }
label.f input.bad { border-color: var(--brand); }
/* หน้าแก้ข้อมูลส่วนตัว (T-LO06 รอบ C): อีเมล + วันเกิดที่ไม่ผ่าน · ช่องวันเกิดสามช่องอยู่ในกรอบเดียว จึงแดงที่กรอบนอก */
.fgrp input.bad, .birth-segs.bad { border-color: var(--brand); }
/* ข้อความผิดของวันเกิดอยู่ในกรอบเดียวกับช่อง (ไม่ไปชิดหัวข้อถัดไป) */
#me-birthDate { margin-bottom: 14px; }
#me-birthDate > .fgrp { margin-bottom: 0; }
.me-addr { align-items: flex-start; }
.me-addr .sub { display: block; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.notice.ok { background: var(--success-soft); color: var(--ink-2); }
.notice.ok svg { color: var(--success); }
.notice + .notice, .notice + .sec-title { margin-top: 12px; }
.ab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ab-row .ship-rowp { align-items: flex-start; }
.ab-row .ship-rowp > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.ab-row .grow { flex: 1; min-width: 0; }
.ab-row .nm { font-size: 15px; line-height: 22px; color: var(--ink-2); overflow-wrap: anywhere; }
.ab-row .nm b { font-weight: 600; color: var(--ink); }
.ab-row .sec { font-size: 14px; line-height: 20px; margin-top: 2px; overflow-wrap: anywhere; }
.ab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ab-tags .badge { height: 24px; padding: 2px 10px; font-size: 12px; line-height: 18px; }
.ab-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--warn); }
.ab-warn svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.ab-edit { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -8px 0 0; border-radius: 50%; color: var(--ink-3); }
.ab-edit:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ab-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--ink-4); }
.ab-empty b { color: var(--ink); }
.ab-sw { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink); }
.ab-sw .grow { flex: 1; }
.ab-sw .toggle { margin-top: 0; }
.ab-del { width: 100%; margin-top: 8px; color: var(--brand-text); }
#ab-add svg { width: 20px; height: 20px; }
