/* ============================================
   Ensemo — 文字對話（董事長 2026-10-06 選定「C 雙欄＋B 時間軸」）
   左邊深藍員工名片（大頭像、對話範圍三選一、這段對話產出的文件），右邊米白對話；
   每個回答左邊是工作步驟的時間軸。沿用辦公室 C 的深藍、米白、金色，線條圖示。
   ============================================ */

/* 桌位「文字對話」pill（與綠色語音 pill 區隔：暖色描邊） */
.desk-chat-pill {
    margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; color: var(--office-text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 185, 113, 0.45);
    border-radius: 999px; padding: 7px 15px;
    cursor: pointer; transition: filter 0.15s ease, background 0.15s ease;
    font-family: inherit;
}
.desk-chat-pill:hover { background: rgba(245, 185, 113, 0.18); filter: brightness(1.05); }

.chat-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* 外框：置中、不滿版 */
.chat-overlay {
    position: fixed; inset: 0; z-index: 320;
    background: rgba(8, 13, 24, 0.66);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.chat-modal-card {
    --agent-color: #dbb875;
    width: min(1180px, 100%); height: min(880px, 100%);
    display: grid; grid-template-columns: 300px minmax(0, 1fr);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 64px #0b1c3a66, 0 2px 8px #0b1c3a33;
}

/* ---------------------------------------------------------------- 左：員工名片 */
.chat-rail {
    --rail-dim: #c8c1b3;
    background: #14263e; color: #fff; padding: 26px 20px 18px;
    display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(219, 184, 117, 0.35) transparent;
}
.chat-id { display: grid; justify-items: center; text-align: center; gap: 4px; }
.chat-avatar {
    position: relative; width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; background: var(--agent-color);
    box-shadow: 0 0 0 3px var(--agent-color), 0 0 0 6px #14263e, 0 6px 14px #0006;
}
.chat-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat-id-text h3 { font-size: 22px; font-weight: 800; margin-top: 10px; }
.chat-subtitle { font-size: 14px; color: #e4ddd1; margin-top: 2px; }
.chat-rail .chat-close-phone, .chat-scope-now { display: none; }

/* 對話方式（2026-10-08 合併）：主要模式說明＋「對客戶」開關；查到 S2／S3 後顯示停用上網與「開新對話」 */
.chat-scope { display: grid; gap: 8px; min-width: 0; }
.chat-scope h4, .chat-rail-docs h4 { font-size: 12.5px; color: var(--rail-dim); font-weight: 600; margin-bottom: 8px; padding: 0; }
.chat-scope h4 { margin-bottom: 0; }
.chat-scope-main b, .chat-switch b { display: block; font-size: 14px; }
.chat-scope-main small, .chat-switch small { display: block; font-size: 12.5px; color: var(--rail-dim); line-height: 1.5; margin-top: 2px; }
.chat-scope-main b { color: #f1d9a6; }
.chat-switch {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
    cursor: pointer; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px;
    background: rgba(255, 255, 255, 0.03); transition: border-color 0.15s ease, background 0.15s ease;
}
.chat-switch[hidden] { display: none; }
.chat-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chat-switch-track {
    position: relative; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.2);
    transition: background 0.15s ease;
}
.chat-switch-track::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px #0005; transition: transform 0.15s ease;
}
.chat-switch:hover { border-color: rgba(219, 184, 117, 0.45); }
.chat-switch:has(input:checked) { border-color: rgba(219, 184, 117, 0.6); background: rgba(219, 184, 117, 0.12); }
.chat-switch:has(input:checked) b { color: #f1d9a6; }
.chat-switch:has(input:checked) .chat-switch-track { background: #dbb875; }
.chat-switch:has(input:checked) .chat-switch-track::after { transform: translateX(16px); }
.chat-switch:has(input:focus-visible) { outline: 2px solid #f1d9a6; outline-offset: 2px; }
.chat-scope-lock {
    display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; color: #f6e7c8;
    background: rgba(219, 184, 117, 0.1); border: 1px dashed rgba(219, 184, 117, 0.55);
}
.chat-scope-lock[hidden] { display: none; }
.chat-scope-lock button {
    justify-self: start; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(219, 184, 117, 0.6);
    background: transparent; color: #f1d9a6; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat-scope-lock button:hover { background: rgba(219, 184, 117, 0.16); }
.chat-scope-lock button:focus-visible { outline: 2px solid #f1d9a6; outline-offset: 2px; }

#officeChatDocs { list-style: none; display: grid; gap: 8px; }
.chat-rail-doc { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.chat-rail-doc-name { display: flex; gap: 7px; align-items: flex-start; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.chat-rail-doc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.chat-rail .chat-doc-state { justify-self: start; color: #f1d9a6; border-color: rgba(219, 184, 117, 0.5); background: transparent; }
.chat-rail .chat-doc-state:hover { background: rgba(219, 184, 117, 0.14); }
.chat-rail-empty { font-size: 12.5px; color: var(--rail-dim); }
.chat-rail-note { margin-top: auto; font-size: 12.5px; color: var(--rail-dim); line-height: 1.6; }
.chat-rail-note a { color: #e4ddd1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(228, 221, 209, 0.5); }

/* ---------------------------------------------------------------- 右：對話 */
.chat-main {
    /* 舊元件（查看依據、提案卡）讀這些變數：右欄是淺色，所以在這裡改成淺色版 */
    --office-text: #1f2b3f; --office-text-dim: #5d6676; --office-card-border: #e3d9c6;
    --office-bg-1: #fff; --office-bg-2: #fff; --office-warm: #8a5a12;
    background: #f6f2ea; color: #1f2b3f; display: flex; flex-direction: column; min-width: 0; min-height: 0;
}
.chat-bar { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px 8px 22px; border-bottom: 1px solid #e3d9c6; background: #faf6ed; }
.chat-bar h4 { font-size: 15px; font-weight: 700; color: #14263e; }
.chat-bar span { font-size: 13px; color: #6c6250; font-variant-numeric: tabular-nums; }
.chat-close {
    margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none;
    display: grid; place-items: center; color: #4d5b70; cursor: pointer;
}
.chat-close:hover { background: #efe7d6; }
.chat-close .chat-icon { width: 20px; height: 20px; }

.chat-log {
    flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px;
    display: flex; flex-direction: column; gap: 14px;
    scrollbar-width: thin; scrollbar-color: #d6c7a6 transparent;
}
.chat-system { align-self: center; text-align: center; max-width: 92%; font-size: 12.5px; color: #6c6250; line-height: 1.6; text-wrap: balance; }
.chat-system.is-error { align-self: stretch; max-width: 820px; display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 14px;
    color: #8f3a26; background: #fbebe6; border: 1px solid #f0c9be; border-radius: 10px; padding: 10px 14px; }
.chat-system.is-error .chat-icon { margin-top: 2px; }
.chat-note-part { display: inline-block; }
.chat-system a { color: #8a5a12; }
.chat-lock-note { align-self: stretch; max-width: 820px; text-align: left; padding: 10px 14px; border-radius: 10px;
    background: #fbf3e2; border: 1px dashed #d8b878; color: #5c4b2c; font-size: 13.5px; }
.chat-inline-btn { min-height: 32px; margin: 0 2px; padding: 0 12px; border-radius: 999px; border: 1px solid #c9a25e;
    background: #fff; color: #14263e; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chat-inline-btn:hover { background: #f6ecd8; }
.chat-inline-btn:focus-visible { outline: 2px solid #b8975a; outline-offset: 2px; }
.chat-bubble { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; min-width: 0; }
.chat-user {
    align-self: flex-end; max-width: 72%; white-space: pre-wrap;
    background: #14263e; color: #fff; padding: 11px 15px; border-radius: 14px 14px 4px 14px;
}
.chat-agent {
    width: 100%; max-width: 820px; background: #fff; border: 1px solid #e3d9c6; border-radius: 14px;
    padding: 16px 20px; color: #1f2b3f; box-shadow: 0 2px 6px #6b5b3e12;
}

/* 一則提問的回答：左邊時間軸、右邊回答 */
.chat-turn { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 18px; align-items: start; }
.chat-turn.no-trail { grid-template-columns: minmax(0, 1fr); }
.chat-answer { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.chat-pending { width: 100%; max-width: 820px; border: 1px dashed #cdbf9f; border-radius: 14px; padding: 14px 18px; color: #4d5b70; font-size: 14px; background: #fbf8f1; }
.chat-pending small { display: block; color: #6c6250; font-size: 12.5px; margin-top: 2px; }
.chat-pending small[hidden] { display: none; }

.chat-trail {
    list-style: none; position: relative; padding: 4px 0 0 20px; display: grid; gap: 12px;
    font-size: 12.5px; color: #5d6676; line-height: 1.5; min-width: 0;
}
.chat-trail::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 8px; width: 1px; background: #d6c9ae; }
.chat-trail li { position: relative; overflow-wrap: anywhere; }
.chat-trail li::before {
    content: ''; position: absolute; left: -20px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
    background: #3fa66b; box-shadow: 0 0 0 3px #f6f2ea; box-sizing: border-box;
}
.chat-trail b { display: block; color: #1f2b3f; font-size: 13px; font-weight: 650; text-wrap: pretty; }
.chat-trail-detail, .chat-trail-took, .chat-trail-now { display: block; }
.chat-trail-took { color: #6c6250; font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-trail-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.chat-trail-head::before { background: var(--agent-color) !important; }
.chat-trail-now { grid-column: 1 / -1; color: #4d5b70; }
.chat-trail-now[hidden] { display: none; }
.chat-trail-clock { font-size: 12px; color: #4d5b70; background: #ebe2cf; border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.chat-trail-step.is-running::before {
    background: #f6f2ea; border: 2px solid color-mix(in srgb, var(--agent-color) 28%, transparent); border-top-color: var(--agent-color);
    animation: chat-spin 0.9s linear infinite;
}
.chat-trail-step.is-failed::before { background: #d9826f; }
.chat-trail-step.is-failed .chat-trail-detail { color: #a1452f; }
.chat-trail-total { color: #2f7a4c; font-weight: 700; }
.chat-trail-total::before { background: #2f7a4c; }
.chat-trail-total.is-stopped { color: #a1452f; }
.chat-trail-total.is-stopped::before { background: #c4573f; }

/* 員工回覆的 markdown（mdToHtml 產出） */
.chat-agent > div { margin: 3px 0; }
.chat-agent ol, .chat-agent ul { margin: 4px 0 4px 1.4em; padding: 0; }
.chat-agent li { margin: 2px 0; }
.chat-agent strong { font-weight: 750; color: #14263e; }
.chat-agent code { background: #f3ecdc; padding: 1px 5px; border-radius: 5px; font-size: 0.92em; }
.chat-agent hr { border: 0; border-top: 1px solid #efe7d8; margin: 10px 0; }
.chat-md-h { font-size: 16.5px; font-weight: 750; color: #14263e; margin: 10px 0 4px !important; }
.chat-agent > .chat-md-h:first-child { margin-top: 0 !important; }
.chat-md-quote { background: #f8f4ea; border-radius: 8px; padding: 6px 12px; color: #4d5b70; }
.chat-agent a { color: #8a5a12; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.chat-agent a:focus-visible, .chat-rail a:focus-visible { outline: 2px solid #b8975a; outline-offset: 2px; }

.md-table-wrap { overflow-x: auto; margin: 10px 0 14px; border: 1px solid #e5dccb; border-radius: 8px; }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.md-table th, .md-table td { text-align: left; vertical-align: top; padding: 9px 12px; }
.md-table th { font-weight: 700; color: #14263e; background: #f3ecdc; border-bottom: 1px solid #e5dccb; white-space: nowrap; }
.md-table td { border-top: 1px solid #efe7d8; }
.md-table tbody tr:first-child td { border-top: 0; }
.md-table td:first-child { font-weight: 600; color: #14263e; }

/* 產檔下載膠囊與「待董事長預覽 ›」 */
.chat-agent a.chat-file {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin: 6px 6px 2px 0; padding: 0 14px 0 10px;
    font-size: 14px; font-weight: 650; text-decoration: none; word-break: normal; color: #14263e;
    background: #fdfbf6; border: 1px solid #d8cdb8; border-radius: 10px;
}
.chat-agent a.chat-file:hover { border-color: #b8975a; }
.chat-doc-state {
    display: inline-flex; align-items: center; min-height: 30px; margin: 6px 6px 2px 0; padding: 0 12px;
    border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; word-break: normal;
    color: #8a5a12; background: #fbefd9; border: 1px solid #ecd3a3;
}
.chat-agent a.chat-doc-state { color: #8a5a12; text-decoration: none; word-break: normal; }
.chat-doc-state:hover { background: #f6e3bf; }
.chat-doc-state .chat-icon { width: 14px; height: 14px; margin-left: 2px; }

/* 用過的真工具 */
.chat-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 2px; }
.chat-tool-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #4d5b70; }
.chat-tool-chip .chat-icon { width: 15px; height: 15px; }

/* 草稿卡（agentic 提案 → owner 確認） */
.chat-draft-card { width: 100%; max-width: 820px; background: #fff; border: 1px solid #e6cf9f; border-radius: 14px; padding: 14px 16px; }
.chat-draft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 750; color: #8a5a12; }
.chat-draft-tag { font-size: 11.5px; font-weight: 700; color: #3a2410; background: #dbb875; border-radius: 999px; padding: 1px 9px; }
.chat-draft-row { display: flex; gap: 10px; font-size: 14px; margin: 4px 0; }
.chat-draft-row span { color: #6c6250; min-width: 48px; flex-shrink: 0; }
.chat-draft-row b { color: #1f2b3f; overflow-wrap: anywhere; }
.chat-draft-body { margin-top: 8px; padding-top: 8px; border-top: 1px solid #efe7d8; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-draft-actions { margin-top: 12px; }
.chat-confirm-btn {
    min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 700;
    background: #14263e; color: #fff;
}
.chat-confirm-btn:hover { background: #293e57; }
.chat-confirm-btn:disabled { opacity: 0.7; cursor: wait; }
.chat-draft-note { font-size: 13px; color: #8a5a12; line-height: 1.6; }

/* 企業知識：查看依據 */
.chat-evidence { width: 100%; max-width: 820px; }
.chat-evidence p { font-size: 12.5px; line-height: 1.6; margin: 6px 0; color: #5d6676; overflow-wrap: anywhere; }
.chat-evidence button { min-height: 40px; padding: 0 14px; color: #14263e; background: #fff; border: 1px solid #d8cdb8; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; }
.chat-evidence button:hover { border-color: #b8975a; }
.chat-evidence blockquote { margin: 8px 0; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; background: #fff; border: 1px solid #efe7d8; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-evidence h4 { margin: 14px 0 4px; font-size: 14px; color: #14263e; }
/* 一般對話查過的公司資料：一個清單，每次查詢一列（來源＋機密標記＋查看依據），依據展開在那一列下面 */
.chat-lookups { padding: 10px 14px; border: 1px solid #e6dcc8; border-radius: 12px; background: #fffdf8; }
.chat-evidence .chat-lookups-head { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: #6c6250; }
.chat-lookup-list { list-style: none; display: grid; gap: 4px; }
.chat-lookup + .chat-lookup { border-top: 1px solid #f0e8d8; padding-top: 4px; }
.chat-lookup-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.chat-lookup-what { flex: 1 1 240px; min-width: 0; font-size: 13.5px; color: #14263e; overflow-wrap: anywhere; }
.chat-lookup.is-missing .chat-lookup-what { color: #6c6250; }
.chat-lookup-tag { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #8a3b12; background: #fbe9dc; }
.chat-evidence .chat-lookups-foot { margin: 8px 0 0; }

/* 輸入列 */
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; padding: 14px 28px 16px; border-top: 1px solid #e3d9c6; background: #faf6ed; }
.chat-input {
    flex: 1; resize: none; min-height: 48px; overflow-y: hidden;
    padding: 12px 14px; font-size: 15px; font-family: inherit; line-height: 1.5;
    border-radius: 12px; border: 1px solid #d3c7ae; background: #fff; color: #1f2b3f; outline: none;
    scrollbar-width: thin; scrollbar-color: #d6c7a6 transparent;
}
.chat-input::placeholder { color: #776d5b; }
.chat-input:focus { border-color: #b8975a; box-shadow: 0 0 0 3px rgba(219, 184, 117, 0.35); }
.chat-input::-webkit-scrollbar { width: 8px; }
.chat-input::-webkit-scrollbar-thumb { background: #d6c7a6; border-radius: 8px; }
.chat-send-btn {
    flex-shrink: 0; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 12px; cursor: pointer;
    background: #dbb875; color: #192638; transition: background 0.15s ease;
}
.chat-send-btn:hover { background: #d2ad70; }
.chat-send-btn:disabled { opacity: 0.6; cursor: wait; }

.chat-overlay ::selection { background: #f5d9a8; color: #182a43; }
/* 鍵盤焦點：紙面上用深金、深藍上用淺金 */
.chat-main :is(.chat-close, .chat-send-btn, .chat-confirm-btn, .chat-evidence button, a):focus-visible { outline: 2px solid #b8975a; outline-offset: 2px; box-shadow: none; }
.chat-rail :is(button, a):focus-visible { outline: 2px solid #f1d9a6; outline-offset: 2px; box-shadow: none; }
@keyframes chat-spin { to { transform: rotate(360deg); } }

/* 平板：名片欄窄一點 */
@media (max-width: 1000px) {
    .chat-modal-card { grid-template-columns: 250px minmax(0, 1fr); }
    .chat-avatar { width: 84px; height: 84px; font-size: 28px; }
    .chat-turn { grid-template-columns: 156px minmax(0, 1fr); gap: 14px; }
    .chat-log { padding: 18px 18px; }
    .chat-input-row { padding: 12px 18px 14px; }
}

/* 手機：整頁；名片縮成上方標頭，範圍按「更換」展開；時間軸移到回答上方；表格每列排成小卡 */
@media (max-width: 700px) {
    .chat-overlay { padding: 0; }
    .chat-modal-card { width: 100%; height: 100%; border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .chat-rail { padding: 10px 12px 12px; gap: 10px; overflow: visible; }
    .chat-id { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: center; gap: 0 10px; }
    .chat-avatar { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 2px var(--agent-color); }
    .chat-id-text h3 { font-size: 16px; margin: 0; }
    .chat-subtitle { font-size: 12.5px; margin: 0; }
    .chat-rail .chat-close-phone { display: grid; color: #e4ddd1; margin: 0; }
    .chat-close-phone:hover { background: rgba(255, 255, 255, 0.08); }
    .chat-scope-now {
        display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 4px 0 14px;
        border: 1px solid rgba(219, 184, 117, 0.55); border-radius: 10px; background: rgba(219, 184, 117, 0.08);
        color: #f1d9a6; font-weight: 700; font-size: 14.5px;
    }
    .chat-scope-now button { min-height: 40px; padding: 0 12px; background: none; border: 0; color: #f1d9a6; font: inherit; font-size: 13px; cursor: pointer; }
    .chat-scope { display: none; }
    .chat-rail.is-scope-open .chat-scope { display: grid; }
    .chat-scope h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .chat-rail-docs, .chat-rail-note, .chat-bar { display: none; }
    .chat-log { padding: 14px 12px; }
    .chat-user { max-width: 86%; }
    .chat-agent { padding: 14px 16px; }
    .chat-turn { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .chat-trail { gap: 8px; }
    .chat-input-row { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
    .md-table-wrap { overflow: visible; }
    .md-table thead { display: none; }
    .md-table, .md-table tbody, .md-table tr, .md-table td { display: block; width: 100%; }
    .md-table tr { padding: 10px 12px; }
    .md-table tr + tr { border-top: 1px solid #efe7d8; }
    .md-table td { padding: 1px 0; border: 0 !important; }
    .md-table td:first-child { font-size: 15px; margin-bottom: 3px; }
    .md-table td[data-label]::before { content: attr(data-label) '：'; font-weight: 650; color: #6c6250; }
}

@media (prefers-reduced-motion: reduce) {
    .chat-trail-step.is-running::before { animation: none; border-color: var(--agent-color); }
    .chat-switch, .chat-switch-track, .chat-switch-track::after, .chat-send-btn { transition: none; }
}
