/* ธีมขาวฟ้า — เปลี่ยน 4 ต.ค. 2026 จากชุดครีมส้มเดิม สีทั้งหน้าอยู่ในสองบล็อกนี้เท่านั้น อยากเปลี่ยนธีมอีกครั้งแก้แค่ตรงนี้ ค่าทุกคู่ที่เป็นตัวอักษรผ่าน WCAG AA (4.5:1) ทั้งโหมดสว่างและมืด คู่ที่คับที่สุดคือตัวอักษรรองบนพื้นหน้า 5.50:1 และตัวอักษรในฟองผู้ใช้โหมดมืด 4.84:1 ถ้าจะปรับสีเอง ระวังสองคู่นี้ก่อน เพราะ .brand p · .fine · .empty · .muted ใช้ --ink-2 ทั้งหมด */ :root { --bg: #f2f6fb; /* พื้นหลังทั้งหน้า ขาวอมฟ้าจาง */ --panel: #ffffff; /* ฟองคำตอบของบอท · กล่องพิมพ์ · ชิปตัวอย่างคำถาม */ --ink: #13202e; /* ตัวอักษรหลัก กรมท่า ไม่ใช่ดำสนิท */ --ink-2: #54657a; /* ตัวอักษรรอง บรรทัดใต้ชื่อ · ข้อความกำกับ · จุดกำลังพิมพ์ */ --line: #c9d8e9; /* เส้นขอบทุกเส้น เข้มกว่าชุดเดิมเล็กน้อยให้เห็นบนโปรเจกเตอร์ */ --user: #1565c0; /* ฟองข้อความของผู้ใช้ */ --user-ink: #ffffff; --accent: #0b5cc4; /* ปุ่มส่ง · ขีดกลางของสัญลักษณ์ · ขอบชิปตอนชี้ */ --accent-ink: #ffffff; --notice: #e8f1fb; /* กล่องหมายเหตุ เช่น ตอนกู้บทสนทนา หรือแจ้งข้อผิดพลาด */ --notice-line: #bcd6f0; --radius: 14px; color-scheme: light; } @media (prefers-color-scheme: dark) { :root { --bg: #0e151d; --panel: #18212c; --ink: #e9eff6; --ink-2: #95a7bb; --line: #2e3c4a; --user: #2f6fb5; --user-ink: #f4f8fc; --accent: #4d9bf0; --accent-ink: #06162a; --notice: #16222f; --notice-line: #2b3f54; color-scheme: dark; } } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; } button { font: inherit; cursor: pointer; } button:disabled { cursor: default; opacity: 0.5; } .shell { height: 100dvh; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; } /* ── header ── */ .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 12px; } .brand h1 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; } .brand p { font-size: 13px; color: var(--ink-2); margin: 0; } /* สัญลักษณ์: แผ่นโซ่สามข้อ */ .mark { display: flex; gap: 3px; } .mark i { width: 10px; height: 22px; border-radius: 3px; background: var(--ink); display: block; } .mark i:nth-child(2) { background: var(--accent); } .ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; } .ghost:hover:not(:disabled) { border-color: var(--ink-2); } /* ── messages ── */ .list { flex: 1; overflow-y: auto; padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 10px; } .row { display: flex; } .row.me { justify-content: flex-end; } .bubble { max-width: min(640px, 88%); padding: 10px 14px; border-radius: var(--radius); overflow-wrap: anywhere; } .bubble.user { background: var(--user); color: var(--user-ink); border-bottom-right-radius: 4px; } .bubble.bot { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; } .plain { white-space: pre-wrap; } .thumb { display: block; max-width: 220px; max-height: 220px; border-radius: 8px; margin-bottom: 6px; } .drawing { padding: 6px; } .drawing img { display: block; max-width: 100%; max-height: 420px; border-radius: 8px; } .muted { color: var(--ink-2); } .md p { margin: 0 0 0.5em; } .md p:last-child { margin-bottom: 0; } .md ul, .md ol { margin: 0.2em 0 0.5em; padding-left: 1.3em; } .md strong { font-weight: 600; } .md code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9em; } .md a { color: inherit; } .notice { align-self: center; max-width: 92%; background: var(--notice); border: 1px solid var(--notice-line); border-radius: 10px; padding: 8px 12px; font-size: 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; } .typing { display: flex; gap: 5px; align-items: center; padding: 14px; } .typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: blink 1.2s infinite ease-in-out; } .typing span:nth-child(2) { animation-delay: 0.15s; } .typing span:nth-child(3) { animation-delay: 0.3s; } @keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: 0.6; } } .empty { margin: auto 0; padding: 24px 4px; text-align: center; color: var(--ink-2); } .empty p { margin: 0 0 14px; } .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .chips button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; } .chips button:hover { border-color: var(--accent); } /* ── composer ── */ .composer { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); } .attach { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; } .attach img { height: 56px; width: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); } .bar { display: flex; align-items: flex-end; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px; } .bar:focus-within { border-color: var(--ink-2); } .bar textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding: 7px 4px; max-height: 160px; } .icon { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; } .icon:hover:not(:disabled) { color: var(--ink); background: var(--bg); } .send { flex: none; height: 38px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; } .fine { margin: 6px 4px 0; font-size: 12px; color: var(--ink-2); text-align: center; } @media (max-width: 480px) { .brand p { display: none; } .bubble { max-width: 92%; } }