/* ============================================================
   หน้า /services-ai-chatbot · กฎหมาย AI Chatbot และ AI Agent ปิดการขาย (LINE OA / Facebook) (16 พ.ย. 2026)
   ธีม "สมุดโน้ตยามบ่าย" จากแบบอ้างอิงที่เจ้าของส่ง (styles.refero.design · ระบบดีไซน์กระดาษอุ่น)
   แปลงเป็นของเว็บเรา: พื้นกระดาษอุ่น · การ์ดขาวเส้นบาง มุม 12 ไม่มีเงา · ปุ่มทึบกรมท่าปุ่มเดียวต่อจอ
   · บล็อกสีเน้นแบบกระดาษโน้ต (ทอง · อิฐ · ฟ้า · กรมท่าเข้ม) · เงามีเฉพาะหน้าจอแชตจำลอง (ชิ้นเดียวที่เป็น "ผลิตภัณฑ์")
   ภาพเป็นของสำนักงานเอง (ตราชั่งทองเหลือง + แฟ้มคดี จาก ChatGPT โปรเจกต์ "เบสคุง") ไม่ใช้ภาพหรือตัวการ์ตูนของแบบอ้างอิง
   หน้าจอแชตเป็นแชตสมมติ ไม่มีโลโก้หรือหน้าตาของแอปจริง
   ใช้คู่กับ css/svc-notice.css (โครง dn-*) · ทุกกฎจำกัดใต้ body.aichat-page หรือคลาส ac-* จึงไม่กระทบหน้าอื่น
   ============================================================ */
body.aichat-page {
  --c-canvas: #F6F4F0;            /* กระดาษอุ่น พื้นทั้งหน้า */
  --c-card:   #FFFFFF;
  --c-hair:   rgba(20, 36, 63, .11);
  --c-hair-2: rgba(20, 36, 63, .18);
  --c-text:   #3A4150;            /* เนื้อความสีเทาอุ่น */
  --c-mute:   #636B79;
  --c-ghost:  #E9EEF5;            /* ปุ่มรอง */
  --n-gold:   #F6E3AE;            /* กระดาษโน้ตทอง */
  --n-gold-s: #D9A43A;
  --n-coral:  #F7DACF;            /* กระดาษโน้ตอิฐ (ความเสี่ยงข้อมูลหลุด) */
  --n-coral-s:#B24A31;
  --n-sky:    #DDE8F6;            /* กระดาษโน้ตฟ้า (AI Agent) */
  --n-sky-s:  #2F64A8;
  --n-mid:    #14243F;            /* กรมท่าเข้ม บล็อกข้อความใหญ่ */
  --ac-display: "Anuphan", var(--sans-th);
  background: var(--c-canvas);
  color: var(--c-text);
}
body.aichat-page .breadcrumb { background: var(--c-canvas); border-bottom-color: var(--c-hair); }
.aichat-page .section { padding-block: clamp(64px, 8vw, 112px); }
.aichat-page h1, .aichat-page h2, .aichat-page h3 { font-family: var(--ac-display); text-wrap: balance; }
.aichat-page [hidden] { display: none !important; }

/* ── ป้ายเล็กแบบแคปซูล · ตัวเน้นแบบแถบปากกาเน้นข้อความ ── */
.ac-k { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--c-hair-2); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); letter-spacing: .01em; background: var(--c-card); }
.ac-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--n-gold-s); flex: none; }
.ac-k--coral::before { background: var(--n-coral-s); }
.ac-k--sky::before { background: var(--n-sky-s); }
.ac-hl { background: linear-gradient(transparent 12%, var(--n-gold) 12%, var(--n-gold) 92%, transparent 92%); border-radius: 6px; padding: 0 .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ac-note { font-size: var(--fs-xs); color: var(--c-mute); }
.ac-law { display: inline-block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--gold-text); }

.ac-sec-head { max-width: 68ch; margin-bottom: clamp(30px, 4vw, 50px); }
.ac-sec-head.center { margin-inline: auto; text-align: center; }
.ac-sec-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); }
.ac-sec-head p:not(.ac-k) { margin-top: 16px; font-size: var(--fs-lead); line-height: 1.8; color: var(--c-text); text-wrap: pretty; }

/* ── ปุ่ม: ปุ่มทึบกรมท่าแบบเดียว · ปุ่มรองพื้นฟ้าอ่อน ── */
.ac-btn, .ac-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 1rem; line-height: 1.3; text-align: center; transition: background .2s ease, transform .2s ease, color .2s ease; }
.ac-btn { background: var(--navy); color: #fff; }
.ac-btn:hover { background: var(--navy-700); transform: translateY(-1px); }
.ac-btn svg { width: 20px; height: 20px; flex: none; color: #06C755; }
.ac-ghost { background: var(--c-ghost); color: var(--navy); }
.ac-ghost:hover { background: #DCE4EF; }
.aichat-page .btn-primary { background: var(--navy); color: #fff; box-shadow: none; border-radius: 8px; }
.aichat-page .btn-primary:hover { background: var(--navy-700); }
.aichat-page .dn-result .btn-primary { background: #fff; color: var(--navy); }
.aichat-page .dn-result .btn-primary svg { color: #06C755; }

/* ============================================================
   S1 · HERO: ภาพตราชั่งเต็มกรอบ ข้อความวางบนผนังซ้าย (ไม่มีกล่อง ไม่ทับตราชั่ง)
   ============================================================ */
.ac-hero { padding-top: clamp(12px, 2vw, 22px); }
.ac-hero-panel { position: relative; border-radius: 14px; overflow: hidden; background: #EBDDC8; isolation: isolate; min-height: clamp(560px, 46vw, 680px); display: flex; border: 1px solid var(--c-hair); }
.ac-hero-art { position: absolute; inset: 0; z-index: -1; margin: 0; }
.ac-hero-art img, .ac-hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%; }
.ac-hero-art video { opacity: 0; transition: opacity .8s ease; }
.ac-hero-art video.is-on { opacity: 1; }
/* ไล่สีอุ่นจางทางซ้าย ให้ตัวกรมท่าอ่านง่ายบนผนังที่มีแดดส่อง */
/* ภาพจอคอมเป็นภาพมุมกว้าง ตราชั่งอยู่ในขวา 40% ซ้ายเป็นผนังว่าง · ไล่สีอุ่นจาง ๆ ให้ตัวกรมท่าอ่านง่ายบนแถบแดด */
.ac-hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(246,240,230,.72) 0%, rgba(246,240,230,.45) 34%, rgba(246,240,230,0) 54%); }
.ac-hero-copy { position: relative; padding: clamp(30px, 3.6vw, 56px) clamp(26px, 4vw, 58px); width: min(50%, 640px); display: flex; flex-direction: column; justify-content: center; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chips span { padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid var(--c-hair); font-size: var(--fs-xs); font-weight: 600; color: var(--navy); }
.ac-hero h1 { margin-top: 18px; color: var(--navy); font-weight: 650; font-size: clamp(2rem, 1.1rem + 2.35vw, 3.3rem); line-height: 1.16; letter-spacing: -0.026em; }
.ac-hero h1 .ac-h1-sub { display: block; margin-top: 10px; font-size: .5em; font-weight: 500; letter-spacing: -0.01em; color: var(--gold-text); }
.ac-lead { margin-top: 20px; font-family: var(--serif-th); font-size: clamp(1.04rem, .96rem + .34vw, 1.22rem); line-height: 1.85; color: #2C3240; text-wrap: pretty; }
.ac-hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

.ac-facts { display: grid; grid-template-columns: 1fr 1fr 1.25fr; margin-top: clamp(16px, 2.4vw, 26px); background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; overflow: hidden; }
.ac-fact { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-left: 1px solid var(--c-hair); color: inherit; transition: background .2s ease; }
.ac-fact:first-child { border-left: 0; }
a.ac-fact:hover { background: #FBFAF7; }
.ac-fact-big { font-family: var(--ac-display); font-size: 1.5rem; font-weight: 650; color: var(--navy); letter-spacing: -0.02em; }
.ac-fact-t { font-size: var(--fs-sm); color: var(--c-mute); line-height: 1.6; }
.ac-chip { flex-direction: row; align-items: center; gap: 16px; }
.ac-chip img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; box-shadow: 0 0 0 1px var(--line-gold); }
.ac-chip > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-chip-k { font-size: var(--fs-xs); color: var(--gold-text); font-weight: 600; }
.ac-chip strong { font-family: var(--serif-th); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.ac-chip-sub { font-size: var(--fs-xs); color: var(--c-mute); line-height: 1.5; }

/* ============================================================
   ฟอร์มด่วน
   ============================================================ */
.ac-quick-sec { padding-block: clamp(34px, 5vw, 60px) 0; }
.ac-quick-grid { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.ac-quick-copy h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--navy); font-weight: 650; letter-spacing: -0.02em; }
.ac-quick-copy p { margin-top: 8px; color: var(--c-mute); font-size: var(--fs-sm); line-height: 1.7; }
.aichat-page .form-card { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; box-shadow: none; }
.ac-quick-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; }
.ac-quick-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ac-quick-foot .consent { flex: 1 1 320px; margin: 0; }

/* ============================================================
   S2 · คำตอบสั้น + นิยาม
   ============================================================ */
.ac-answer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.ac-answer, .ac-define { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; padding: clamp(24px, 3.4vw, 44px); }
.ac-answer h2 { margin-top: 14px; font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); font-weight: 650; color: var(--navy); line-height: 1.22; letter-spacing: -0.02em; }
.ac-answer-p { margin-top: 16px; font-family: var(--serif-th); font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); line-height: 1.9; color: #2C3240; text-wrap: pretty; }
.ac-points { margin-top: 22px; display: grid; gap: 12px; list-style: none; padding: 0; }
.ac-points li { padding: 16px 18px; border-radius: 10px; background: #FAF8F4; border: 1px solid var(--c-hair); font-size: var(--fs-sm); line-height: 1.75; color: var(--c-text); }
.ac-points li > span:first-child { display: block; }
.ac-points .dn-law { display: block; margin-top: 6px; }
.ac-define { background: var(--n-sky); border-color: transparent; }
.ac-define-h { font-size: 1.3rem; font-weight: 650; color: var(--navy); letter-spacing: -0.015em; margin-top: 14px; }
.ac-define-h + p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.8; color: #2C3240; }
.ac-define .dn-ref { margin-top: 18px; }

/* ============================================================
   S3 · สามเหตุที่เจอจริง: แชตจำลอง + คำอธิบายกฎหมาย (แท็บ)
   ============================================================ */
.ac-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ac-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 18px 9px 12px; border-radius: 999px; border: 1px solid var(--c-hair-2); background: var(--c-card); color: var(--navy); font-weight: 600; font-size: var(--fs-sm); transition: background .2s ease, border-color .2s ease; cursor: pointer; }
.ac-tab b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; background: var(--n-gold); color: var(--navy); }
.ac-tab[data-tone="coral"] b { background: var(--n-coral); }
.ac-tab[data-tone="sky"] b { background: var(--n-sky); }
.ac-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ac-tab[aria-selected="true"] b { background: var(--gold-bright); }
.ac-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ac-scen + .ac-scen { margin-top: 40px; }
.js-tabs .ac-scen + .ac-scen { margin-top: 0; }
.ac-scen-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 48px); align-items: start; }

/* หน้าจอแชตจำลอง (แชตสมมติ ไม่ใช่แอปจริง) */
.ac-phone { position: relative; background: #fff; border-radius: 28px; border: 1px solid var(--c-hair); box-shadow: 0 30px 60px -32px rgba(13,24,41,.45), 0 12px 24px -16px rgba(13,24,41,.22); overflow: hidden; }
.ac-phone-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--c-hair); background: #FCFBF9; }
.ac-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); font-weight: 700; font-family: var(--ac-display); flex: none; }
.ac-phone-top strong { display: block; font-size: .95rem; color: var(--navy); font-weight: 650; }
.ac-phone-top small { display: block; font-size: .74rem; color: var(--c-mute); }
.ac-mock { margin-left: auto; font-size: .68rem; font-weight: 600; color: var(--c-mute); border: 1px dashed var(--c-hair-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.ac-thread { list-style: none; margin: 0; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; background: linear-gradient(#fff, #FBFAF8); }
.ac-msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.6; position: relative; }
.ac-msg small { display: block; font-size: .7rem; font-weight: 600; opacity: .7; margin-bottom: 2px; }
.ac-msg--me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.ac-msg--bot { align-self: flex-start; background: #F0EEE9; color: var(--navy); border-bottom-left-radius: 6px; }
.ac-msg--admin { align-self: flex-start; background: #fff; color: var(--navy); border: 1px solid var(--c-hair-2); border-bottom-left-radius: 6px; }
.ac-msg--sys { align-self: center; max-width: 92%; background: transparent; color: var(--c-mute); font-size: .76rem; text-align: center; padding: 2px 6px; }
.ac-msg--sys code { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; background: #EFEDE8; padding: 1px 6px; border-radius: 6px; color: var(--navy); }
.ac-mark { background: linear-gradient(transparent 55%, rgba(217,164,58,.55) 55%); font-weight: 700; }
.ac-mark--coral { background: linear-gradient(transparent 55%, rgba(178,74,49,.32) 55%); }
.ac-mask { display: inline-block; background: #D7D3CB; color: transparent; border-radius: 4px; user-select: none; }
/* ป้าย "แคปหน้าจอแล้ว" กับตราหลักฐาน */
.ac-snap { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 600; }
.ac-snap svg { width: 15px; height: 15px; }
.ac-stamp { position: absolute; right: -10px; top: -14px; transform: rotate(-9deg); padding: 3px 9px; border: 2px solid var(--n-coral-s); border-radius: 6px; color: var(--n-coral-s); background: rgba(255,255,255,.92); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.ac-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ac-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: #F0EEE9; }
.ac-typing i { width: 6px; height: 6px; border-radius: 50%; background: #A4A9B3; animation: acDot 1s infinite ease-in-out; }
.ac-typing i:nth-child(2) { animation-delay: .15s; } .ac-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes acDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-3px); opacity: 1; } }
/* ลำดับเล่น: JS เติม .is-play ให้แชตเมื่อเลื่อนมาเห็น · ไม่มี JS หรือลดการเคลื่อนไหว = เห็นครบทุกข้อความ */
.ac-thread.is-anim > li { opacity: 0; transform: translateY(8px) scale(.98); }
.ac-thread.is-anim > li.is-in { opacity: 1; transform: none; transition: opacity .32s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.ac-thread.is-anim > li.ac-typing:not(.is-in) { display: none; }
.ac-flash.is-go { animation: acFlash .5s ease; }
@keyframes acFlash { 0% { opacity: 0; } 15% { opacity: .85; } 100% { opacity: 0; } }
.ac-replay { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-mute); background: none; border: 0; cursor: pointer; padding: 6px 2px; }
.ac-replay:hover { color: var(--navy); }
.ac-replay svg { width: 14px; height: 14px; }

/* คำอธิบายกฎหมายข้างแชต = กระดาษโน้ตสี */
.ac-brief { border-radius: 12px; padding: clamp(22px, 3vw, 38px); background: var(--n-gold); color: var(--navy); }
.ac-brief[data-tone="coral"] { background: var(--n-coral); }
.ac-brief[data-tone="sky"] { background: var(--n-sky); }
.ac-brief h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.ac-brief > p { margin-top: 10px; line-height: 1.8; }
.ac-brief dl { margin-top: 18px; display: grid; gap: 14px; }
.ac-brief dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; text-transform: none; color: rgba(20,36,63,.7); }
.ac-brief dd { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.66); line-height: 1.75; font-size: var(--fs-sm); }
.ac-brief dd ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ac-brief dd .dn-law { color: #5E4510; }
.ac-brief-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ac-brief-more svg { width: 16px; height: 16px; }

/* ============================================================
   S4 · ข้อความใหญ่ (บล็อกกรมท่าเข้ม)
   ============================================================ */
.ac-quote-sec { padding-block: 0; }
.ac-quote { background: var(--n-mid); color: #EEF0F4; border-radius: 14px; padding: clamp(36px, 6vw, 84px) clamp(26px, 6vw, 96px); position: relative; overflow: hidden; }
.ac-quote::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(231,203,128,.22); }
.ac-quote::after { content: ""; position: absolute; right: 30px; top: 30px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(231,203,128,.16); }
.ac-quote .ac-k { background: transparent; color: var(--gold-bright); border-color: rgba(231,203,128,.4); }
.ac-quote blockquote { margin: 22px 0 0; max-width: 30ch; font-family: var(--ac-display); font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; color: #fff; }
.ac-quote blockquote em { font-style: normal; color: var(--gold-bright); }
.ac-quote figcaption { margin-top: 22px; max-width: 70ch; font-size: var(--fs-sm); line-height: 1.75; color: #B9C0CC; }
.ac-quote figcaption b { color: #EEF0F4; font-weight: 600; }

/* ============================================================
   S5 · เมื่อเกิดเหตุแล้ว: สองแผน + ภาพแฟ้มคดี
   ============================================================ */
.ac-ev { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--c-hair); background: #E9DCC6; aspect-ratio: 16 / 7; margin: 0 0 clamp(22px, 3vw, 34px); }
.ac-ev img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.ac-ev figcaption { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); max-width: 34ch; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.9); border: 1px solid var(--c-hair); font-size: var(--fs-sm); line-height: 1.7; color: var(--navy); }
.ac-ev figcaption b { display: block; font-family: var(--ac-display); font-size: 1.1rem; font-weight: 650; margin-bottom: 4px; }
.ac-plays { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.ac-play { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; padding: clamp(22px, 3vw, 36px); }
.ac-play-h { display: flex; align-items: center; gap: 12px; }
.ac-play-h span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--n-gold); color: var(--navy); font-weight: 800; font-family: var(--ac-display); flex: none; }
.ac-play--coral .ac-play-h span { background: var(--n-coral); }
.ac-play h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.55rem); font-weight: 650; color: var(--navy); letter-spacing: -0.015em; line-height: 1.3; }
.ac-play ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.ac-play li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--c-hair); }
.ac-play li:first-child { border-top: 0; padding-top: 4px; }
.ac-when { font-size: var(--fs-xs); font-weight: 700; color: var(--gold-text); line-height: 1.5; padding-top: 2px; }
.ac-play--coral .ac-when { color: var(--n-coral-s); }
.ac-play li b { display: block; color: var(--navy); font-weight: 650; line-height: 1.5; }
.ac-play li p { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.75; }
.ac-play-foot { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--c-hair); font-size: var(--fs-sm); line-height: 1.7; }
.ac-play-foot a { font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-gold); }

/* ============================================================
   S6 · สิ่งที่ส่งมอบ (การ์ดขาว + ป้ายสีแบบกระดาษโน้ต)
   ============================================================ */
.ac-deliv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.ac-d { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; scroll-margin-top: 110px; }
.ac-d-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--n-gold); color: var(--navy); font-family: var(--serif-th); font-weight: 700; font-size: 1.25rem; }
.ac-d:nth-child(2) .ac-d-n { background: var(--n-sky); }
.ac-d:nth-child(3) .ac-d-n { background: #E8E3F3; }
.ac-d:nth-child(4) .ac-d-n { background: var(--n-coral); }
.ac-d:nth-child(5) .ac-d-n { background: #DCEBDD; }
.ac-d h3 { margin-top: 16px; font-size: 1.24rem; font-weight: 650; color: var(--navy); line-height: 1.35; letter-spacing: -0.015em; }
.ac-d h3 small { display: block; margin-top: 3px; font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--c-mute); letter-spacing: 0; }
.ac-d p { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.75; }
.ac-d ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: var(--fs-sm); line-height: 1.6; }
.ac-d ul li { position: relative; padding-left: 18px; }
.ac-d ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--n-gold-s); }
.ac-d .ac-law { margin-top: auto; padding-top: 14px; }
.ac-d--more { background: var(--n-mid); color: #E6E9EF; border-color: transparent; }
.ac-d--more h3 { color: #fff; }
.ac-d--more ul li::before { background: var(--gold-bright); }
.ac-d--more a { color: #fff; border-bottom: 1px solid rgba(231,203,128,.55); }
.ac-suite { margin-top: clamp(18px, 2.6vw, 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px; border-radius: 12px; border: 1px dashed var(--c-hair-2); font-size: var(--fs-sm); }
.ac-suite b { color: var(--navy); }
.ac-suite a { padding: 5px 12px; border-radius: 999px; background: var(--c-card); border: 1px solid var(--c-hair); color: var(--navy); font-weight: 600; }
.ac-suite a:hover { border-color: var(--c-hair-2); background: #FBFAF7; }

/* ============================================================
   S7 · ตัวอย่างข้อความแจ้งลูกค้า ก่อน/หลัง
   ============================================================ */
.ac-notice { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.ac-nbox { border-radius: 12px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--c-hair); background: var(--c-card); }
.ac-nbox--bad { background: #FBF7F5; }
.ac-nbox--good { border-color: rgba(184,144,47,.45); }
.ac-nbox-k { font-size: var(--fs-xs); font-weight: 700; color: var(--n-coral-s); }
.ac-nbox--good .ac-nbox-k { color: var(--gold-text); }
.ac-nbox blockquote { margin: 12px 0 0; padding: 16px 18px; border-radius: 10px; background: #F0EEE9; font-size: .98rem; line-height: 1.8; color: var(--navy); }
.ac-nbox--good blockquote { background: var(--n-gold); }
.ac-nbox ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: var(--fs-sm); line-height: 1.7; }
.ac-nbox ul li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.ac-nbox ul li::before { content: "✕"; color: var(--n-coral-s); font-weight: 700; }
.ac-nbox--good ul li::before { content: "✓"; color: #3C7A47; }
.ac-nbox .ac-note { margin-top: 14px; }

/* ============================================================
   S8 · ตามประเภทธุรกิจ
   ============================================================ */
.ac-ind { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ac-i { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; }
.ac-i-tag { align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy); background: var(--n-gold); }
.ac-i:nth-child(2) .ac-i-tag { background: var(--n-sky); }
.ac-i:nth-child(3) .ac-i-tag { background: #DCEBDD; }
.ac-i:nth-child(4) .ac-i-tag { background: var(--n-coral); }
.ac-i:nth-child(5) .ac-i-tag { background: #E8E3F3; }
.ac-i h3 { margin-top: 14px; font-size: 1.08rem; font-weight: 650; color: var(--navy); line-height: 1.45; letter-spacing: -0.01em; }
.ac-i p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.72; }
.ac-i p b { color: var(--navy); }

/* ============================================================
   S9 · เครื่องมือเช็ก (ใช้โครง dn-tool ของ css/svc-notice.css)
   ============================================================ */
.aichat-page .dn-tool { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 14px; box-shadow: none; }
.aichat-page .dn-opt span { border-radius: 8px; }
.ac-multi { font-size: var(--fs-xs); font-weight: 500; color: var(--c-mute); margin-left: 6px; }
.ac-opts--1 { grid-template-columns: 1fr !important; }
.ac-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ac-r-msg { margin-top: 10px; font-size: var(--fs-xs); line-height: 1.6; color: #E6E9EF; }
.ac-score { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.ac-score b { font-family: var(--ac-display); font-size: 2rem; font-weight: 700; color: var(--gold-bright); letter-spacing: -0.02em; }
.ac-score span { font-size: var(--fs-xs); color: #C9CED8; line-height: 1.5; }

/* ============================================================
   S10 · เอกสารต้นทาง
   ============================================================ */
.ac-src { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-src li { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.ac-src-short { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #F0EEE9; font-size: var(--fs-xs); font-weight: 700; color: var(--navy); }
.ac-src li[data-foreign] .ac-src-short { background: var(--n-sky); }
.ac-src-name { margin-top: 12px; font-weight: 650; color: var(--navy); line-height: 1.55; font-size: .98rem; }
.ac-src-meta { margin-top: 6px; font-size: var(--fs-xs); color: var(--c-mute); line-height: 1.6; }
.ac-src-use { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.7; }
.ac-src-a { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.ac-src-a svg { width: 15px; height: 15px; }

/* ============================================================
   ส่วนร่วม dn-* ให้เข้ากับธีม
   ============================================================ */
.aichat-page .dn-phase, .aichat-page .dn-fcol { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; box-shadow: none; }
.ac-plans { display: grid; gap: 10px; margin: 18px 0; }
.ac-plans div { padding: 14px 16px; border-radius: 10px; background: var(--c-card); border: 1px solid var(--c-hair); }
.ac-plans b { display: block; color: var(--navy); font-weight: 650; }
.ac-plans span { display: block; margin-top: 3px; font-size: var(--fs-sm); line-height: 1.7; }
.ac-plans div:nth-child(3) { background: var(--n-coral); border-color: transparent; }
.aichat-page .u-ivory-deep { background: #EFECE6; }
.aichat-page .faq-item { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; }
.aichat-page .related-card { background: var(--c-card); border: 1px solid var(--c-hair); border-radius: 12px; box-shadow: none; }

/* ============================================================
   จอเล็ก
   ============================================================ */
@media (max-width: 1180px) {
  .ac-ind { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-src { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .ac-deliv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-answer-grid { grid-template-columns: 1fr; }
  .ac-hero-copy { width: 54%; }
  .ac-hero h1 { font-size: clamp(1.9rem, 1rem + 2.4vw, 2.6rem); }
  .ac-lead { font-size: 1rem; }
}
@media (max-width: 900px) {
  .ac-scen-grid { grid-template-columns: 1fr; }
  .ac-phone { max-width: 420px; }
  .ac-plays, .ac-notice { grid-template-columns: 1fr; }
  .ac-quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  /* จอไม่เกิน 1180px: ภาพตราชั่งระยะใกล้เป็นแถบบน ข้อความต่อลงมาบนพื้นกระดาษ (กันหัวข้อทับตราชั่ง · วัดด้วย OVERLAP=1 node _shots.mjs) */
  .ac-hero-panel { min-height: 0; display: flex; flex-direction: column; background: var(--c-canvas); border: 0; border-radius: 0; overflow: visible; }
  .ac-hero-panel::after { display: none; }
  .ac-hero-art { position: relative; inset: auto; z-index: 0; aspect-ratio: 1072 / 811; max-height: 560px; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--c-hair); }
  .ac-hero-art img, .ac-hero-art video { object-position: 50% 50%; }
  .ac-hero-copy { width: auto; max-width: 760px; padding: 26px 2px 0; }
}
@media (max-width: 760px) {
  .ac-hero-copy { padding-top: 22px; }
  .ac-hero h1 { font-size: clamp(1.85rem, 1.1rem + 3.6vw, 2.4rem); }
  .ac-facts { grid-template-columns: 1fr; }
  .ac-fact { border-left: 0; border-top: 1px solid var(--c-hair); padding: 18px 18px; }
  .ac-fact:first-child { border-top: 0; }
  .ac-quick-row { grid-template-columns: 1fr; }
  .ac-deliv { grid-template-columns: 1fr; }
  .ac-ind { grid-template-columns: 1fr; }
  .ac-src { grid-template-columns: 1fr; }
  .ac-ev { aspect-ratio: auto; }
  .ac-ev img { aspect-ratio: 800 / 660; height: auto; }
  .ac-ev figcaption { position: static; max-width: none; border-radius: 0; border: 0; border-top: 1px solid var(--c-hair); }
  .ac-play li { grid-template-columns: 1fr; gap: 4px; }
  .ac-opts--3 { grid-template-columns: 1fr !important; }
  .ac-tab { flex: 1 1 100%; }
  .ac-thread { min-height: 0; }
  .ac-stamp { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-thread.is-anim > li { opacity: 1 !important; transform: none !important; }
  .ac-typing i { animation: none; }
  .ac-btn:hover { transform: none; }
}
.aichat-page .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; }

/* ── แก้หลังดูภาพตัวอย่างรอบแรก (16 พ.ย. 2026) ── */
/* ส่วนร่วม dn-* ใช้พื้นของหน้านี้ ไม่ให้เกิดรอยต่อสีขาว/งาช้างกลางหน้า */
.aichat-page .dn-steps-sec, .aichat-page .dn-fees-sec, .aichat-page .dn-lawyer-sec, .aichat-page .dn-tool-sec { background: transparent; }
/* ขั้นตอนช่วงที่สองนับต่อจากข้อ 2 */
.aichat-page .dn-steps[start="3"] { counter-reset: st 2; }
/* กล่องคำอธิบายข้างแชต: กันข้อความยาวดันกล่องล้นขอบ · ป้ายอ้างอิงตัดบรรทัดได้ */
.ac-brief dl > div { min-width: 0; }
.ac-brief .dn-law, .ac-points .dn-law { white-space: normal; display: inline-block; max-width: 100%; }
.ac-brief dd ul { list-style: none; padding-left: 0; }
.ac-brief dd ul li { position: relative; padding-left: 16px; }
.ac-brief dd ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: .55; }
/* อักษรย่อร้านในแชตใช้ตัวมีหัว (ตัว ร แบบไม่มีหัวดูเหมือน S) */
.ac-ava { font-family: var(--serif-th); font-size: 1.05rem; }
/* ตามประเภทธุรกิจ: แถวกว้างแบบทะเบียน อ่านง่ายกว่าการ์ดแคบ 5 ช่อง */
.ac-ind { grid-template-columns: 1fr; gap: 10px; }
.ac-i { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 10px clamp(18px, 3vw, 40px); align-items: start; padding: 22px clamp(20px, 2.6vw, 32px); }
.ac-i h3 { margin-top: 10px; font-size: 1.15rem; }
.ac-i p { margin-top: 0; }
.ac-i p b { display: block; font-size: var(--fs-xs); letter-spacing: .01em; color: var(--gold-text); margin-bottom: 4px; }
.ac-i-head { min-width: 0; }
@media (max-width: 900px) {
  .ac-i { grid-template-columns: 1fr; }
}
/* ป้ายอ้างอิงกฎหมายทุกจุดของหน้านี้ตัดบรรทัดได้ (ป้ายยาวดันกล่องล้นจอมือถือ 360–414px · วัดด้วย OVERFLOW=1 node _shots.mjs) */
.aichat-page .dn-law { white-space: normal; max-width: 100%; }
.ac-nbox, .ac-play, .ac-d, .ac-src li, .ac-i { min-width: 0; }
.ac-nbox ul li > span { min-width: 0; }
