.chat-shell { width: min(100%, 730px); min-height: 100dvh; margin: auto; padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 16px; }
.chat-head, .chat-heading, .chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-head { min-height: 44px; }
.route-link, .quiet-button { min-height: 44px; align-items: center; justify-content: center; display: inline-flex; gap: 7px; padding: 5px 12px; border: 1px solid var(--edge); border-radius: 11px; background: #192a24; color: #d8eee2; text-decoration: none; font-size: .875rem; white-space: nowrap; }
.route-link:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.call-route { grid-column: 2; grid-row: 1; justify-self: center; }
.head:has(.timer:not([hidden])) .call-route { visibility: hidden; }
.routing-consent { display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.routing-consent input { flex: none; width: 22px; height: 22px; accent-color: var(--mint); }
.chat-config { display: grid; gap: 10px; padding: 16px; background: #162720; border: 1px solid var(--edge); border-radius: 17px; }
.chat-heading h1 { font-size: 1.56rem; }
.chat-selects { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 9px; }
.chat-selects label { min-width: 0; display: grid; gap: 4px; color: #bdd4c6; font-size: .8rem; }
.chat-selects select { width: 100%; min-height: 44px; border: 1px solid #496759; border-radius: 9px; background: #112119; color: #eef8ef; padding: 0 6px; font: inherit; font-size: .88rem; text-overflow: ellipsis; }
.route-note { margin: 0; min-height: 1.25em; color: var(--soft); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-conversation { display: flex; flex: 1; min-height: 270px; flex-direction: column; gap: 8px; }
.chat-log { display: flex; flex: 1; flex-direction: column; gap: 11px; min-height: clamp(100px, 25dvh, 240px); max-height: 54dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px; }
.chat-log article { align-self: flex-start; max-width: 95%; min-width: 86px; padding: 9px 13px; border: 1px solid #3a5547; border-radius: 13px 13px 13px 3px; background: #1b3027; }
.chat-log article[data-role="user"] { align-self: flex-end; border-radius: 13px 13px 3px 13px; background: #264537; }
.chat-log small { color: #b4d5c0; font-size: .75rem; }
.chat-log p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 4px 0 0; }
.chat-compose { padding-top: 0; }
.chat-actions { justify-content: flex-start; flex-wrap: wrap; }
.chat-actions .ico { width: 17px; height: 17px; }
.chat-actions [aria-pressed="true"] { border-color: #a1d1a8; color: #e8ffdc; }
.chat-help { padding: 7px 10px; border-top: 1px solid var(--edge); color: var(--soft); font-size: .875rem; }
.chat-help summary { cursor: pointer; min-height: 36px; line-height: 36px; }
.chat-help p { margin: 4px 0; overflow-wrap: anywhere; }
@media (min-width: 700px) { .chat-shell { padding: 24px 20px; } }
