:root { --bg: #f4f6f5; --paper: #ffffff; --ink: #14201d; --muted: #5d6b67; --line: #dfe5e2; --teal: #0f766e; --teal-soft: #e0f2ef; --buyer: #eef2ff; --buyer-ink: #3730a3; --warn: #b45309; --warn-soft: #fef3c7; --sans: 'DM Sans', system-ui, sans-serif; --mono: 'DM Mono', ui-monospace, Menlo, monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.5; height: 100%; }
a { color: var(--teal); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); flex: none; box-shadow: inset 0 0 0 3px #fff3, 0 1px 2px #0002; }
.name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 12.5px; max-width: 720px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.pill.ok .dot { background: #16a34a; box-shadow: 0 0 8px #16a34a88; }
.pill.bad .dot { background: #dc2626; }
.grid { display: grid; grid-template-columns: 300px 1fr 340px; gap: 16px; padding: 16px 22px; height: calc(100dvh - 66px); }
.col { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.col h2 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 14px 16px 10px; }
.count { font-family: var(--mono); color: var(--teal); }
#conversations { list-style: none; margin: 0; padding: 0 8px 8px; overflow: auto; }
#conversations li { padding: 10px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
#conversations li:hover { background: var(--bg); }
#conversations li.active { background: var(--teal-soft); border-color: #b7e1da; }
#conversations li .who { font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
#conversations li .who time { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 11px; }
#conversations li .last { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#conversations li .flag { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); margin-left: 6px; }
.empty { color: var(--muted); padding: 10px 16px; font-size: 13px; }
.transcript-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.transcript-head h2 { padding: 0; }
.meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.turns { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.turn { display: flex; }
.turn.buyer { justify-content: flex-start; }
.turn.seller { justify-content: flex-end; }
.turn .b { max-width: 72%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.turn.buyer .b { background: var(--buyer); color: var(--buyer-ink); border-top-left-radius: 4px; }
.turn.seller .b { background: var(--teal-soft); color: #134e4a; border-top-right-radius: 4px; }
.turn .b .who { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 3px; }
.turn.action { justify-content: center; }
.turn.action .b { background: var(--warn-soft); color: var(--warn); font-family: var(--mono); font-size: 12px; max-width: 90%; text-align: center; border-radius: 10px; }
.turn.action .b a { color: var(--warn); }
.staff { padding-bottom: 8px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 16px 8px; }
.staff-thread { flex: 1; overflow: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.staff-thread .q { align-self: flex-end; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 12px; border-bottom-right-radius: 4px; max-width: 90%; }
.staff-thread .a { align-self: flex-start; background: var(--bg); padding: 8px 12px; border-radius: 12px; border-bottom-left-radius: 4px; max-width: 95%; white-space: pre-wrap; }
.staff-thread .a.wait { color: var(--muted); font-style: italic; }
.staff-form { display: flex; gap: 8px; padding: 10px 16px; }
.staff-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; }
.staff-form input:focus { outline: none; border-color: var(--teal); }
.staff-form button { background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.staff-form button:disabled { opacity: 0.5; }
.policy { border-top: 1px solid var(--line); padding: 10px 16px 6px; }
.policy h3 { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.policy ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: #3b4844; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr; height: auto; } .col { min-height: 260px; max-height: 60dvh; } }
