/* ═══════════════════════════════════════════════════════════════════
   AgingOne · หน้าแรกไอด้า — แผงคุยกับไอด้า (#aida) + footer (.aft)
   ใช้คู่กับ css/home-aida.css (หน้าตาจาก lab/home-aida) · ตัวแชท = js/home-v6.js เดิม
   สไตล์แชทยกจาก css/home-v6.css (โหมด "เริ่มคุย = แผงเต็มจอ") แต่ครอบด้วย #aida ทั้งหมด
   เพื่อไม่ให้ชนกับ .card/.photo ของหน้านี้ · ตัวอักษรทุกตัว ≥18px (คูณ --fz จากปุ่ม ก+)
   ═══════════════════════════════════════════════════════════════════ */

/* ── แผง: ซ่อนไว้ · เปิดเต็มจอเมื่อ body.chat-on (มี JS) หรือ :target (ไม่มี JS) ── */
#aida {
  --violet: #6A2CC6; --violet-d: #55219f; --violet-dd: #3d1873; --violet-l: #ece2fb; --violet-ll: #f7f2fe;
  --orange: #f4683c; --orange-d: #b23c18; --orange-l: #fde7dd; --pink: #e0327e;
  --c-ink: #2A1B4A; --c-ink6: #4a3f66; --c-ink4: #5c5378; --c-ink2: #6b6288; --line: #e7e0f2;
  --pill: 999px; --tr: .2s cubic-bezier(.22, .61, .36, 1);
  --g-soft: linear-gradient(120deg, #6A2CC6 0%, #C2338F 60%, #D93A12 120%);
  --fs: calc(18px * var(--fz));
  display: none; position: fixed; inset: 0; z-index: 130;
  font-size: var(--fs); line-height: 1.6; color: var(--c-ink4);
}
body.chat-on #aida, html:not(.js) #aida:target { display: block; }
body.chat-on { overflow: hidden; }

#aida .ac-card { height: 100%; display: flex; flex-direction: column; background: #fff; }
#aida .card-top {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 14px;
  background: var(--g-soft); color: #fff; font-weight: 500; line-height: 1.3;
}
#aida .card-top b { font-weight: 700; font-size: 1.05em; }
#aida .dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; flex: 0 0 auto; animation: acPulse 2.4s infinite; }
@keyframes acPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
#aida .card-x {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 16px 0 12px;
  margin-left: auto; border-radius: var(--pill); background: rgba(255,255,255,.22); border: 2px solid #fff; color: #fff; font-weight: 600;
}
#aida .card-x svg { width: 22px; height: 22px; }
#aida .card-x-nojs { display: none; }
html:not(.js) #aida .card-x-nojs { display: inline-flex; }
html:not(.js) #aida button.card-x { display: none; }
#aida .lm + .card-x, #aida .lm:not([hidden]) ~ .card-x { margin-left: 0; }
#aida .lm {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; margin-left: auto; border-radius: var(--pill);
  background: rgba(255,255,255,.22); border: 2px solid #fff; color: #fff; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
#aida .lm[hidden] { display: none; }
#aida .lm-s { display: inline-block; min-width: 44px; padding: 5px 10px; border-radius: var(--pill); background: #fff; color: var(--violet-dd); font-weight: 700; text-align: center; }
#aida .lm.on { background: #fff; color: var(--violet-dd); }
#aida .lm.on .lm-s { background: var(--violet-dd); color: #fff; }
#aida .card-top :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--violet-dd); }

#aida .card-b { flex: 1; min-height: 0; width: 100%; max-width: 920px; margin: 0 auto; padding: 12px 14px 14px; display: flex; flex-direction: column; }
#aida .arow { display: flex; flex: 1; min-height: 0; flex-direction: column; }
#aida .log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 6px; }
#aida .who { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 0 2px; color: var(--c-ink); font-weight: 700; font-size: 1.05em; line-height: 1.25; }
#aida .who i { display: block; font-style: normal; font-weight: 400; font-size: max(18px, .85em); color: var(--c-ink4); line-height: 1.35; margin-top: 2px; }
#aida .who-av { flex: 0 0 56px; width: 56px; aspect-ratio: 1; border-radius: 50%; padding: 3.5px; background: var(--g-soft); box-shadow: 0 4px 12px rgba(106,44,198,.24); }
#aida .who-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }

#aida .bub { max-width: 88%; margin: 0; padding: 11px 15px; font-size: 1em; line-height: 1.6; word-wrap: break-word; }
#aida .bub.ai { align-self: flex-start; background: var(--violet-ll); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; color: var(--c-ink); }
#aida .bub.me { align-self: flex-end; background: linear-gradient(120deg, var(--violet) 0%, #B0246A 100%); color: #fff; border-radius: 18px 18px 6px 18px; box-shadow: 0 6px 16px rgba(176,50,110,.24); }
#aida .bub a { color: var(--violet-d); text-decoration: underline; text-underline-offset: 3px; }
#aida .bub.me a { color: #fff; }
#aida .bub.ai b { color: var(--violet-d); font-weight: 600; }
#aida .bub.ai.urg { background: var(--orange-l); border-color: var(--orange); color: var(--orange-d); font-weight: 500; }
#aida .bub.ai.urg a { color: var(--orange-d); font-weight: 700; }
#aida .bub.ai.urg a.ref-btn { display: block; width: fit-content; margin-top: 10px; padding: 8px 16px; border: 1px solid var(--orange-d); border-radius: var(--pill); background: #fff; font-weight: 500; text-decoration: none; }
/* ลิงก์เทาเล็ก "อ่านแหล่งอ้างอิงของคำตอบนี้" ใต้คำตอบที่อิงบทความ (js/home-v6.js refsLink · ใบสั่ง cc-pm-agingone-261202-1) */
#aida .bub.ai a.refs-link { display: block; width: fit-content; margin-top: 8px; font-size: max(15px, .8em); font-weight: 400; color: #6b6288; text-decoration: underline; text-underline-offset: 3px; }
#aida .bub.ai.urg a.refs-link { color: #6b6288; font-weight: 400; }
#aida .bub.me .bub-att { display: block; opacity: .92; }
#aida .bub.me img.bub-img { display: block; max-width: 180px; max-height: 180px; border-radius: 10px; margin-bottom: 6px; }
#aida .say {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; margin-top: 8px; padding: 0 18px;
  border-radius: var(--pill); border: 2px solid var(--violet-dd); background: var(--violet-dd); color: #fff; font-weight: 600; line-height: 1; cursor: pointer;
}
#aida .say svg { width: 26px; height: 26px; flex: 0 0 auto; }
#aida .say:hover { background: var(--violet-d); }
#aida .say.on { background: #fff; color: var(--violet-dd); }
#aida .say.on svg { animation: acRec 1s infinite; }
#aida .bub.ai.urg .say { border-color: var(--orange-d); background: var(--orange-d); }
#aida .bub.ai.urg .say.on { background: #fff; color: var(--orange-d); }
#aida .typ { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
#aida .typ i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink2); animation: acBob 1.1s infinite; }
#aida .typ i:nth-child(2) { animation-delay: .16s; } #aida .typ i:nth-child(3) { animation-delay: .32s; }
@keyframes acBob { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes acRec { 50% { opacity: .35; } }

#aida .lis { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--violet-l); border: 2px solid var(--violet-dd); color: var(--violet-dd); font-weight: 600; line-height: 1.35; }
#aida .lis[hidden], #aida .lis button[hidden] { display: none; }
#aida .lis[data-mode="listen"] { background: var(--orange-l); border-color: var(--orange-d); color: var(--orange-d); }
#aida .lis-dot { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: currentColor; animation: acRec 1s infinite; }
#aida .lis-t { flex: 1 1 180px; }
#aida .lis-b { display: flex; flex-wrap: wrap; gap: 8px; }
#aida .lis button { min-height: 56px; padding: 0 20px; border-radius: var(--pill); font-weight: 700; cursor: pointer; }
#aida .lis-stop { background: var(--violet-dd); color: #fff; border: 2px solid var(--violet-dd); }
#aida .lis[data-mode="listen"] .lis-stop { background: var(--orange-d); border-color: var(--orange-d); }
#aida .lis-no { background: #fff; color: var(--c-ink); border: 2px solid var(--c-ink6); }

/* ═══ กล่องพิมพ์แบบ ChatGPT (24 พ.ย. 2569): กล่องมนเดียว — ข้อความอยู่บน · แถวล่างในกล่อง: [+] ........ [ไมค์] [ส่ง]
   #attBar ใช้ display:contents ให้ลูก (ไฟล์ที่แนบ · ปุ่ม + · ไมค์) ไปเรียงในกริดของ .ask · ทุกปุ่ม ≥48px ═══ */
#aida .ask {
  position: relative; margin-top: 10px; padding: 8px 8px 8px 10px; border-radius: 28px; background: #fff; border: 2px solid #cfc2e6;
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; column-gap: 6px;
  grid-template-areas: "pend pend pend pend pend" "ta ta ta ta ta" "plus . lm mic go";
}
#aida .ask:focus-within { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(106,44,198,.22); }
#aida .ask-in {
  grid-area: ta; display: block; width: 100%; min-height: 48px; max-height: calc(1.5em * 6 + 20px); margin: 0; padding: 10px 8px;
  border: 0; border-radius: 0; background: transparent; resize: none; overflow-y: auto;
  color: var(--c-ink); font: inherit; font-size: 1em; line-height: 1.5;
}
#aida .ask-in::placeholder { color: var(--c-ink2); }
#aida .ask-in:focus, #aida .ask-in:focus-visible { outline: none; box-shadow: none; }
#aida .ask-go {
  grid-area: go; width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; color: #fff; background: linear-gradient(120deg, var(--violet) 0%, #B0246A 80%);
  box-shadow: 0 6px 14px rgba(176,50,110,.28); cursor: pointer;
}
#aida .ask-go svg { width: 24px; height: 24px; }

#aida .att { display: contents; }
#aida .att[hidden], #aida .att-pend[hidden], #aida .att-b[hidden] { display: none; }
#aida .att-row[hidden] { display: none; }
/* เมนู + : เด้งขึ้นเหนือปุ่ม · รายการมีข้อความไทยกำกับ ปุ่มสูง ≥56px */
#aida .att-row {
  position: absolute; left: 8px; bottom: calc(100% + 8px); z-index: 5; display: flex; flex-direction: column; gap: 2px;
  min-width: 220px; padding: 6px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 12px 32px rgba(58,22,112,.22);
}
#aida .att-row .att-b { width: 100%; min-height: 56px; border: 0; border-radius: 12px; padding: 0 14px; gap: 12px; justify-content: flex-start; font-size: 1em; }
#aida .att-row .att-b svg { width: 26px; height: 26px; }
#aida .plus-b {
  grid-area: plus; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--violet-ll); border: 2px solid var(--line); color: var(--violet-d); cursor: pointer;
}
#aida .plus-b svg { width: 24px; height: 24px; transition: transform var(--tr); }
#aida .plus-b[aria-expanded="true"] { background: var(--violet-l); border-color: var(--violet); }
#aida .plus-b[aria-expanded="true"] svg { transform: rotate(45deg); }
#aida .plus-b:hover { border-color: var(--violet); }
/* ไมค์ในกล่อง: ปุ่มกลม · ตอนอัดเสียงขยายเป็นเม็ดยาวโชว์เวลา (ข้อความ #micTxt เดิมที่ js/home-v6.js อัปเดต) */
#aida .att-b.mic-b { grid-area: mic; width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; border-color: transparent; background: transparent; }
#aida .att-b.mic-b:hover { background: var(--violet-ll); }
#aida .att-b.mic-b svg { width: 26px; height: 26px; }
#aida .att-b.mic-b #micTxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#aida .att-b.mic-b[aria-pressed="true"] { width: auto; padding: 0 14px 0 12px; border-radius: var(--pill); }
#aida .att-b.mic-b[aria-pressed="true"] #micTxt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: .9em; }
#aida .att-b.mic-b[hidden] { display: none; }
#aida .att-b {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: var(--pill);
  background: #fff; border: 2px solid var(--line); color: var(--violet-d); font-weight: 500; cursor: pointer;
}
#aida .att-b svg { width: 22px; height: 22px; flex: 0 0 auto; }
#aida .att-b:hover { border-color: var(--violet); background: var(--violet-ll); }
#aida .att-b[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-l); color: var(--orange-d); }
#aida .att-b[aria-pressed="true"] svg { animation: acRec 1s infinite; }
#aida .att-b:disabled { opacity: .5; cursor: default; }
#aida .att-pend { grid-area: pend; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 6px 6px 6px 8px; border-radius: 12px; background: var(--violet-ll); border: 1.5px solid var(--violet-l); color: var(--c-ink6); }
#aida .att-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--violet-d); }
#aida .att-ic img { width: 100%; height: 100%; object-fit: cover; }
#aida .att-ic svg { width: 22px; height: 22px; }
#aida .att-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aida .att-x { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink4); }
#aida .att-x svg { width: 20px; height: 20px; }

/* แถวเดียว: ช่องติ๊กไม่ใช่หุ่นยนต์ (ซ้าย) + ปุ่มเม็ดยาว "โหมดพูดคุย" + ไอคอนคลื่นเสียง (ขวา · เปิดหน้าจอ #vm) · จอแคบตัดบรรทัดได้ */
#aida .rbt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
#aida .rbt-row .rbt { flex: 1 1 220px; margin-top: 0; }
/* ปุ่มโหมดพูดคุยอยู่ในแถบล่างของกล่องพิมพ์ (ซ้ายของไมค์) — เม็ดยาวม่วงเข้ม สูง 48px */
#aida .ask .lm { grid-area: lm; margin: 0; min-height: 48px; height: 48px; padding: 0 14px 0 10px; gap: 6px; white-space: nowrap; background: var(--violet-dd); border-color: var(--violet-dd); color: #fff; font-weight: 700; font-size: .95em; }
#aida .ask .lm:hover { background: var(--violet-d); border-color: var(--violet-d); }
#aida .lm-ic { width: 22px; height: 22px; flex: 0 0 auto; }
#aida .rbt { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 10px; padding: 0 16px; border-radius: 14px; background: var(--violet-ll); border: 2px solid var(--line); color: var(--c-ink6); cursor: pointer; }
#aida .rbt input { width: 26px; height: 26px; flex: 0 0 auto; accent-color: var(--violet); cursor: pointer; }
#aida .rbt.warn { border-color: var(--orange); background: var(--orange-l); color: var(--orange-d); font-weight: 500; }
#aida .rbt[hidden] { display: none; }
/* ใต้กล่อง = บรรทัดเดียวเล็ก ๆ กลางจอ: ข้อความเตือน + ลิงก์ 1669 (กฎความปลอดภัย: เห็นตลอด ห้ามเอาออก) */
#aida .note { margin: 6px 0 0; font-size: max(16px, .85em); line-height: 1.4; color: var(--c-ink4); text-align: center; }
#aida .note a { display: inline-block; padding: 12px 6px; margin: -12px -2px; color: var(--orange-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* ประกาศบันทึกแชต = บรรทัดเทาเล็กบนสุดของบทสนทนา (เห็นก่อนข้อความแรก) */
#aida .note.pdpa-top { margin: 0; padding: 0 2px 2px; color: var(--c-ink2); font-size: max(16px, .8em); line-height: 1.45; text-align: left; }
/* เมนูในหัวแผง: ปุ่ม ⋯ ข้างสวิตช์โหมดพูดคุย → กล่องเล็กมี "ล้างประวัติ" */
#aida .hm { position: relative; flex: 0 0 auto; margin-left: auto; }
#aida .lm:not([hidden]) + .hm { margin-left: 0; }
#aida .hm ~ .card-x { margin-left: 0; }
html:not(.js) #aida .hm { display: none; }
#aida .hm-b { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); border: 2px solid #fff; color: #fff; cursor: pointer; }
#aida .hm-b svg { width: 24px; height: 24px; }
#aida .hm-b[aria-expanded="true"] { background: #fff; color: var(--violet-dd); }
#aida .hm-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; min-width: 200px; padding: 6px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 12px 32px rgba(58,22,112,.28); }
#aida .hm-pop[hidden] { display: none; }
#aida .pdpa-clr { display: block; width: 100%; margin: 0; min-height: 56px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; color: var(--violet-d); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
#aida .pdpa-clr:hover { background: var(--violet-ll); }
#aida .pdpa-clr[disabled] { opacity: .6; cursor: wait; }
#aida :focus-visible { outline: 3px solid var(--orange-d); outline-offset: 2px; }
#aida .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#aida .card-top b, #aida .lm-t { white-space: nowrap; }
/* ลิงก์ 1669 ในประโยคใต้ปุ่มหลัก — ให้กว้าง ≥48px (ปุ่ม 1669 ใหญ่อยู่แถบบนสุดแล้ว) */
.ai-note a { display: inline-block; min-width: 48px; text-align: center; }
@media (max-width: 479px) {
  #aida .card-top { gap: 8px; padding: 6px 8px 6px 12px; }
  #aida .card-x { width: 48px; padding: 0; justify-content: center; }
  #aida .card-x-t { display: none; }
  #aida .lm { gap: 6px; padding: 0 5px 0 10px; }
  #aida .lm-s { min-width: 40px; padding: 4px 8px; }
  #aida .card-b { padding: 10px 10px 12px; }
  #aida .bub { max-width: 94%; }
  /* ข้อความเตือน + 1669 ใต้กล่อง = 60% ของเดิม (จอมือถือ) */
  #aida .note.note-disc { font-size: calc(max(16px, .85em) * .6); }
}
/* จอ 320–359: ชื่อแถบหัวซ่อนแบบอ่านด้วยโปรแกรมอ่านจอยังได้ (ใต้แถบมีชื่อ "ไอด้า" + รูปอยู่แล้ว) ให้ปุ่มโหมดพูดคุย + ปิดพอดีบรรทัดเดียว */
@media (max-width: 359px) {
  #aida .ask { column-gap: 2px; padding: 6px 6px 6px 8px; }
  #aida .ask .plus-b, #aida .ask .att-b.mic-b, #aida .ask .ask-go { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  #aida .ask .lm { height: 44px; min-height: 44px; padding: 0 10px 0 8px; gap: 4px; font-size: .85em; }
  #aida .lm-ic { width: 18px; height: 18px; }
  #aida .dot { display: none; }
  #aida #aidaTitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #aida .card-top { justify-content: flex-end; }
}
@media (min-width: 980px) {
  #aida .card-top { padding: 6px clamp(20px, calc((100vw - 920px) / 2), 500px); }
  #aida .bub { max-width: 76%; }
}

/* ═══ footer (.aft) — กะทัดรัด พื้นขาว ═══ */
.aft { background: #fff; color: #4A2A85; border-top: 1px solid #ECE6F5; }
.aft-in { max-width: 1920px; margin: 0 auto; padding: 14px 16px 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.aft ul { list-style: none; margin: 0; padding: 0; }
.aft-hot { display: flex; flex-wrap: wrap; gap: 8px; }
.aft-hot a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid #C9B8E6; color: #4A2A85; font-size: calc(14px * var(--fz)); text-decoration: none; }
.aft-hot a:hover { background: #F6F1FC; }
.aft-hot b { font-weight: 700; letter-spacing: .02em; }
.aft-hot a.sos { background: var(--sos, #C62828); border-color: var(--sos, #C62828); color: #fff; font-weight: 600; }
.aft-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.aft a { color: #5325A0; }
.aft-hot a.sos { color: #fff; }
.aft-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: calc(15px * var(--fz)); text-decoration: underline; text-decoration-color: rgba(83,37,160,.35); text-underline-offset: 4px; }
.aft-links a:hover, .aft-legal a:hover { text-decoration-color: currentColor; }
.aft-legal { max-width: 1920px; margin: 0 auto; padding: 4px 16px 14px; }
.aft-legal p { margin: 2px 0 0; font-size: calc(14px * var(--fz)); line-height: 1.55; color: #6B5F7E; }
.aft-legal a { text-decoration: underline; text-underline-offset: 3px; }
.aft :focus-visible { outline: 3px solid #FF8A3D; outline-offset: 2px; }
@media (min-width: 900px) {
  .aft-in { padding: 16px 40px 6px; }
  .aft-legal { padding: 4px 40px 16px; }
}
@media (max-width: 699px) {
  .aft-in { flex-direction: column; align-items: stretch; }
  .aft-hot a { padding: 4px 12px; }
}
html.easy .aft { background: #fff; }
html.easy #aida .dot, html.easy #aida .typ i, html.easy #aida .lis-dot { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #aida .dot, #aida .typ i, #aida .lis-dot, #aida .say.on svg, #aida .att-b[aria-pressed="true"] svg { animation: none; }
  #aida .plus-b svg { transition: none; }
}

/* ตัวอักษรใหญ่ (ก+/ก++) บนจอแคบ: หัวแผงมี 3 ปุ่ม (โหมดพูดคุย · ⋯ · ปิด) — ซ่อนจุด+ชื่อแถบหัวแบบอ่านด้วยโปรแกรมอ่านจอยังได้
   (ใต้แถบมีชื่อ "ไอด้า" + รูปอยู่แล้ว) ให้ปุ่มทั้งสามพอดีบรรทัดเดียว ไม่ตกขอบ */
@media (max-width: 479px) {
  html[data-fz="2"] #aida .dot, html[data-fz="3"] #aida .dot { display: none; }
  html[data-fz="2"] #aida #aidaTitle, html[data-fz="3"] #aida #aidaTitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html[data-fz="2"] #aida .card-top, html[data-fz="3"] #aida .card-top { justify-content: flex-end; }
}
/* จอ ≤379px (เช่น 360): ปุ่มหัวแผง 3 ปุ่มไม่พอที่ให้ชื่อแถบหัว → ซ่อนจุด+ชื่อแบบอ่านด้วยโปรแกรมอ่านจอยังได้ เหมือนกฎ ≤359px */
@media (max-width: 379px) {
  #aida .dot { display: none; }
  #aida #aidaTitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #aida .card-top { justify-content: flex-end; }
}
