/* Relay Support: dense, dark-first, violet with a mint signal colour. Built for people who live in it all day. */
:root { --bg: #f5f5fa; --surface: #fff; --surface-2: #eeeef6; --line: #dfdfec; --text: #17172b; --muted: #6a6a85; --accent: #6d4aff; --accent-soft: #ece8ff; --accent-text: #fff; --radius: 8px; --mint: #10b981; --c1: #10b981; --c2: #f59e0b; --c3: #ef4444; }
[data-theme="dark"] { --bg: #0b0b14; --surface: #12121f; --surface-2: #1b1b2e; --line: #26263d; --text: #ececf7; --muted: #8e8eaa; --accent: #8b7bff; --accent-soft: #231f4a; --accent-text: #0b0b14; --ok: #34d399; --ok-soft: #0f2f26; --warn: #fbbf24; --warn-soft: #33290d; --bad: #f87171; --bad-soft: #3a1515; --shadow: 0 0 0 1px rgb(255 255 255 / 0.04); color-scheme: dark; }
body { font-size: 13px; } h1 { font-size: 20px; } .card { box-shadow: none; padding: 16px; } #view { padding: 20px; max-width: none; }
.shell { grid-template-columns: 208px minmax(0, 1fr); } .brand i { background: linear-gradient(135deg, #8b7bff, #34d399); border-radius: 7px; }
.btn { border-radius: 6px; min-height: 32px; font-size: 13px; } .btn:hover:not(:disabled) { box-shadow: 0 0 0 3px var(--accent-soft); transform: none; }
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 280px; height: calc(100vh - 170px); min-height: 520px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.inbox > section { min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); } .inbox > section:first-child { border-left: 0; }
.inbox-head { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; } .inbox-scroll { overflow-y: auto; flex: 1; }
.conv { display: grid; gap: 3px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; } .conv:hover { background: var(--surface-2); } .conv[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); } .conv .row { gap: 6px; flex-wrap: nowrap; } .conv b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .conv p { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { overflow-y: auto; flex: 1; padding: 16px; display: grid; gap: 10px; align-content: start; } .msg { max-width: 78%; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); line-height: 1.5; } .msg.customer { justify-self: start; border-bottom-left-radius: 3px; } .msg.agent, .msg.bot { justify-self: end; background: var(--accent-soft); border-bottom-right-radius: 3px; } .msg.bot { background: color-mix(in srgb, var(--mint) 16%, var(--surface)); } .msg small { display: block; margin-bottom: 2px; font-weight: 700; } .cite { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.composer { padding: 10px 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; } .composer textarea { min-height: 70px; }
.ctx { overflow-y: auto; padding: 14px; display: grid; gap: 14px; align-content: start; } .ctx h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.chat-widget { max-width: 440px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 20px 50px rgb(0 0 0 / 0.35); } .chat-widget header { padding: 14px 16px; background: linear-gradient(135deg, #6d4aff, #8b7bff); color: #fff; } .chat-widget .thread { height: 380px; } .chat-widget .composer { grid-template-columns: 1fr auto; align-items: center; } .chat-widget .composer input { min-height: 40px; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.rule { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); } .rule:first-child { border-top: 0; } .rule code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.chunk { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12px; margin-top: 8px; }
.landing .brand i { background: linear-gradient(135deg, #8b7bff, #34d399); }
@media (max-width: 1100px) { .inbox { grid-template-columns: 260px minmax(0, 1fr); height: auto; min-height: 0; } .inbox > .ctx-wrap { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } .inbox > section { max-height: 560px; } }
@media (max-width: 860px) { #view { padding: 16px; } }
@media (max-width: 640px) { .inbox { grid-template-columns: minmax(0, 1fr); } .inbox > section { border-left: 0; border-top: 1px solid var(--line); max-height: 420px; } .inbox > section:first-child { border-top: 0; } .msg { max-width: 92%; } }
.chunk .conf { display: flex; margin-top: 6px; }
