/* Company chat and operator workspace. Session and delivery logic stays in the app. */
.chat-launcher,
#chat-dialog,
.inbox-body {
  --chat-bg: #0b1020;
  --chat-surface: #111a2b;
  --chat-raised: #19253b;
  --chat-line: #293650;
  --chat-ink: #f4f6fc;
  --chat-muted: #b6c1d3;
  --chat-blue: #4065df;
  --chat-blue-soft: #a7bbff;
  --chat-green: #79d9b2;
  --chat-amber: #f2c48b;
  color-scheme: dark;
}

/* Visitor chat: one invitation and a compact, readable conversation. */
.chat-launcher {
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 56px;
  padding: 13px 19px;
  gap: 11px;
  border-radius: 14px;
  border: 1px solid #648eff;
  background: #4065df;
  color: #fff;
  box-shadow: 0 12px 34px #03081566;
}
.chat-launcher > svg { color: #fff; width: 22px; height: 22px; }
.chat-launcher-label { font-weight: 600; letter-spacing: -.015em; }
.chat-launcher:hover { background: #4e6fe3; box-shadow: 0 14px 34px #03081588; }
.chat-launcher:focus-visible { outline: 3px solid #afc7ff; outline-offset: 4px; }

#chat-dialog {
  width: 458px;
  max-width: calc(100vw - 32px);
  max-height: min(780px, calc(100dvh - 48px));
  background: var(--chat-bg);
  color: var(--chat-ink);
  border: 1px solid #3b4c68;
  border-radius: 20px;
  box-shadow: 0 28px 90px #03081588;
}
#chat-dialog::backdrop { background: #03081580; backdrop-filter: blur(4px); }
#chat-dialog .chat-panel-header {
  padding: 22px 24px 19px;
  background: var(--chat-surface);
  border-color: var(--chat-line);
}
#chat-dialog .chat-panel-brand { gap: 12px; margin-bottom: 18px; }
#chat-dialog .chat-panel-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #21386a;
  border-color: #405a8e;
  color: #bacfff;
}
#chat-dialog .chat-panel-name { color: var(--chat-ink); font-weight: 600; letter-spacing: -.025em; }
#chat-dialog .chat-panel-specialty { color: var(--chat-muted); font-size: .75rem; }
#chat-dialog .dialog-close {
  top: 17px;
  right: 15px;
  background: transparent;
  color: #c3d0e5;
  border: 1px solid transparent;
}
#chat-dialog .dialog-close:hover { color: #fff; background: #24334c; border-color: #394a67; }
#chat-dialog .chat-panel-heading { gap: 6px; }
#chat-dialog #chat-title { font: 600 1.5rem/1.3 var(--sans); color: var(--chat-ink); letter-spacing: -.035em; }
#chat-dialog .chat-privacy-label { color: var(--chat-muted); font-size: .6875rem; }
#chat-dialog #chat-dialog-copy { color: var(--chat-muted); font-size: .875rem; line-height: 1.65; margin-top: 9px; }
#chat-dialog .chat-panel-body {
  padding: 21px 24px 23px;
  scrollbar-color: #4d5e7a var(--chat-bg);
}
#chat-dialog .chat-panel-footer {
  padding: 12px 16px;
  background: var(--chat-surface);
  border-color: var(--chat-line);
  color: var(--chat-muted);
  font-size: .6875rem;
  letter-spacing: 0;
}
#chat-dialog .chat-loading { color: var(--chat-muted); }
#chat-dialog .chat-welcome-icon { background: #1b2a47; border-color: #344c72; color: #b5ceff; }
#chat-dialog .chat-welcome-title { color: var(--chat-ink); font-weight: 600; }
#chat-dialog .chat-welcome-copy { color: var(--chat-muted); }
#chat-dialog .chat-platforms span { background: #19253b; color: #b9c7dd; border-color: #33415b; }
#chat-dialog #chat-setup-notice {
  color: var(--chat-amber);
  background: #29221b;
  border-color: #5c4a32;
}
#chat-dialog .chat-prepare-brief {
  color: #fff;
  background: #4065df;
  border-color: #6387ed;
}
#chat-dialog .chat-prepare-brief:hover { background: #4e6fe3; }
#chat-dialog .form-row { gap: 13px; }
#chat-dialog label { color: #c7d4e9; font-size: .8125rem; margin-bottom: 16px; }
#chat-dialog input,
#chat-dialog textarea {
  border: 1px solid #3b4c68;
  border-radius: 9px;
  background: #0e1829;
  color: var(--chat-ink);
  padding: 12px;
  min-height: 48px;
  font-size: 1rem;
}
#chat-dialog input::placeholder,
#chat-dialog textarea::placeholder { color: #9eacc2; }
#chat-dialog .optional-label { color: #9eacc2; }
#chat-dialog .chat-privacy-note {
  color: #a6b5cc !important;
  font-size: .75rem !important;
  line-height: 1.65 !important;
}
#chat-dialog .button:not(.chat-prepare-brief) {
  min-height: 48px;
  color: #fff;
  background: #4065df;
  border: 1px solid #6186ed;
  border-radius: 9px;
  font-weight: 600;
  font-size: .875rem;
}
#chat-dialog .button:hover { background: #4e6fe3; }
#chat-dialog #chat-start-form > .button[type="submit"] { width: 100%; margin-top: 9px; }
#chat-dialog [data-open-privacy] { min-height: 44px; color: var(--chat-blue-soft); }
#chat-dialog [data-open-privacy]:hover { color: #d3e1ff; }
#chat-dialog #chat-status { color: var(--chat-green); font-size: .8125rem; }
#chat-dialog #chat-start-form details {
  background: #141f32;
  border-color: #2f405d;
  border-radius: 9px;
}
#chat-dialog #chat-start-form details > summary { color: #c0d0e8; font-size: .8125rem; min-height: 48px; }
#chat-dialog #chat-start-form details > summary::marker { color: var(--chat-blue-soft); }
#chat-dialog #visitor-connection { color: #b7c7df; border-color: var(--chat-line); font-size: .75rem; }
#chat-dialog .visitor-messages { scrollbar-width: thin; scrollbar-color: #4d5e7a var(--chat-bg); }
#chat-dialog .visitor-message > p {
  color: var(--chat-ink);
  background: #19253b;
  border-color: #2b3e5c;
  border-radius: 13px 13px 13px 3px;
  font-size: .9375rem;
  line-height: 1.65;
}
#chat-dialog .visitor-message.visitor > p {
  color: #f2f6ff;
  background: #244793;
  border-color: #466bac;
  border-radius: 13px 13px 3px 13px;
}
#chat-dialog .visitor-message > small { color: #a5b5ce; font-size: .6875rem; }
#chat-dialog #visitor-reply-form { border-color: var(--chat-line); align-items: end; }
#chat-dialog #visitor-reply { min-height: 56px; max-height: 120px; }
#chat-dialog #visitor-reply-form .button { min-height: 56px; padding: 12px 16px; }
#chat-dialog :focus-visible { outline: 3px solid #afc7ff; outline-offset: 3px; }
#chat-dialog[data-chat-state="conversation"] .chat-panel-brand { margin-bottom: 12px; }
#chat-dialog[data-chat-state="conversation"] .chat-panel-body { min-height: 0; }
#chat-dialog[data-chat-state="conversation"] .visitor-messages { height: 280px; max-height: 35dvh; }

/* Owner workspace: the same company palette, with an independent design scope. */
.inbox-body {
  --bg: var(--chat-bg);
  --surface: var(--chat-surface);
  --ink: var(--chat-ink);
  --muted: var(--chat-muted);
  --line: var(--chat-line);
  --accent: var(--chat-blue-soft);
  --inbox-header-height: 80px;
  background: var(--chat-bg);
  color: var(--chat-ink);
  font-family: var(--sans);
  overflow-wrap: anywhere;
}
.inbox-body main { min-height: 100vh; min-height: 100dvh; }
.inbox-body .brand { color: #f4f6fc; font-size: 22px; letter-spacing: -.04em; gap: 0; }
.inbox-body .brand > span:not(.inbox-brand-symbol) { color: #a7bbff; }
.inbox-body .brand .inbox-brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 11px;
  color: #e6eeff;
  background: #254786;
  border: 1px solid #5674a7;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.inbox-body .login-card {
  width: calc(100% - 40px);
  max-width: 500px;
  margin: clamp(32px, 10vh, 100px) auto;
  padding: 38px;
  background: #111a2b;
  border: 1px solid #2e405d;
  border-radius: 22px;
  box-shadow: 0 22px 66px #05091444;
}
.inbox-body .login-card > .eyebrow { margin-top: 37px; color: #a7bbff; font: 500 11px/1.5 var(--sans); letter-spacing: .13em; }
.inbox-body .login-card h1 { font-size: clamp(30px, 5vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; margin: 13px 0 16px; }
.inbox-body .login-card > .login-intro { margin: 0; font-size: 15px; line-height: 1.7; color: #aebed6; }
.inbox-body .login-capabilities { display: flex; gap: 8px; flex-wrap: wrap; margin: 23px 0 0; }
.inbox-body .login-capabilities span { color: #bac9e2; font-size: 11px; padding: 5px 9px; border: 1px solid #334864; border-radius: 6px; background: #192842; }
.inbox-body .login-card form { margin-top: 30px; }
.inbox-body .login-card label { display: block; color: #cad6ea; font-size: 13px; }
.inbox-body .login-card input { width: 100%; margin: 8px 0 17px; background: #0d1728; color: #f4f6fc; border: 1px solid #3b4d6a; border-radius: 9px; min-height: 52px; padding: 13px 15px; font-size: 16px; }
.inbox-body .button { min-height: 48px; border: 1px solid #6186ed; border-radius: 9px; background: #4065df; color: #fff; font-weight: 600; }
.inbox-body .button:hover { background: #4e6fe3; }
.inbox-body .button:disabled { opacity: .65; }
.inbox-body #login-status { color: var(--chat-amber); font-size: 13px; line-height: 1.6; margin-top: 15px; }
.inbox-body #login-status:empty { display: none; }
.inbox-body .login-card .login-footnote { color: #9bacc6; font-size: 12px !important; line-height: 1.75; margin: 28px 0 0 !important; padding-top: 21px; border-top: 1px solid #2b3c57; }
.inbox-body .login-footnote a { color: #b4ccff; }
.inbox-body #inbox-view { height: 100vh; height: 100dvh; overflow: hidden; }
.inbox-body .inbox-header {
  height: var(--inbox-header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 15px max(26px, env(safe-area-inset-right)) 15px max(26px, env(safe-area-inset-left));
  background: #111b2c;
  border-bottom: 1px solid #2d3d57;
}
.inbox-body .inbox-brand-lockup { display: flex; gap: 22px; align-items: center; min-width: 0; }
.inbox-body .inbox-tag { color: #a4b6d0; font: 500 12px/1.5 var(--sans); letter-spacing: 0; border-left: 1px solid #3a4b65; padding-left: 22px; }
.inbox-body .connection { margin: 0; color: #b7c8e5; font-size: 12px; line-height: 1.5; background: #18253a; border: 1px solid #32445f; border-radius: 7px; padding: 7px 10px; }
.inbox-body .connection::before { width: 7px; height: 7px; background: #f2c48b; margin-right: 8px; }
.inbox-body .connection[data-state="live"]::before { background: #79d9b2; }
.inbox-body .connection[data-state="offline"], .inbox-body .connection[data-state="error"] { color: #f2c48b; }
.inbox-body .connection[data-state="offline"]::before, .inbox-body .connection[data-state="error"]::before { background: #f2c48b; }
.inbox-body .quiet-button { min-height: 44px; padding: 10px 14px; border: 1px solid #405572; border-radius: 8px; color: #d3e0f5; font-size: 12px; line-height: 1.5; background: transparent; }
.inbox-body .quiet-button:hover { background: #22324c; border-color: #607caa; }
.inbox-body .quiet-button[aria-pressed="true"] { color: #e5edff; background: #223c6f; border-color: #5c7db7; }
.inbox-body .quiet-button:disabled { opacity: .65; }
.inbox-body .inbox-layout { height: calc(100% - var(--inbox-header-height)); min-height: 0; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); }
.inbox-body .conversation-sidebar { min-height: 0; min-width: 0; overflow: hidden; background: #111b2c; border-right: 1px solid #2b3d58; }
.inbox-body .sidebar-controls { flex: none; }
.inbox-body .sidebar-title { padding: 25px 22px 18px; }
.inbox-body .sidebar-title h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.inbox-body .count { min-width: 25px; padding: 3px 7px; color: #f4f6fc; background: #2d4f98; border: 1px solid #5274b3; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.inbox-body .search-label { display: block; margin: 0 22px 14px; }
.inbox-body .search-label input { width: 100%; margin: 0; min-height: 46px; padding: 11px 13px; border-radius: 8px; border: 1px solid #354a6a; background: #0c1627; color: #e7efff; font-size: 14px; }
.inbox-body .search-label input::placeholder { color: #98abc8; }
.inbox-body .filter-row { display: flex; gap: 7px; padding: 0 22px 17px; }
.inbox-body .filter-row button { min-height: 44px; padding: 9px 15px; color: #afc0da; border: 1px solid #354a68; border-radius: 7px; font-size: 12px; }
.inbox-body .filter-row button[aria-pressed="true"] { color: #eef4ff; border-color: #6487c5; background: #253e6b; }
.inbox-body #list-status { color: #bdcbe1; font-size: 13px; line-height: 1.65; padding: 0 22px 18px; }
.inbox-body #conversation-list { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #405777 #111b2c; }
.inbox-body .conversation-item { padding: 19px 22px; min-height: 100px; color: #f4f6fc; border-bottom: 1px solid #283a55; }
.inbox-body .conversation-item:hover { background: #19283f; }
.inbox-body .conversation-item.selected { background: #1c3053; box-shadow: inset 3px 0 0 #80a8ff; }
.inbox-body .conversation-item-top { align-items: baseline; gap: 10px; margin-bottom: 7px; }
.inbox-body .conversation-item-top strong { font-size: 14px; font-weight: 600; }
.inbox-body .conversation-item-top time { color: #9eafc9; font-size: 10px; }
.inbox-body .conversation-item > p { color: #aabbd5; font-size: 13px; line-height: 1.65; margin-bottom: 9px; }
.inbox-body .conversation-item-bottom { color: #97adcd; font: 11px/1.4 var(--sans); text-transform: none; align-items: center; }
.inbox-body .conversation-item-bottom .count { min-width: 22px; font-size: 10px; }
.inbox-body .inbox-help { margin-top: 0; flex: none; padding: 18px 22px 15px; border-top: 1px solid #2b3d58; background: #131f33; font-size: 12px; line-height: 1.6; color: #a5b6d0; }
.inbox-body .inbox-help-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.inbox-body .inbox-help-heading h2 { font-size: 13px; font-weight: 600; color: #d5e1f4; }
.inbox-body .inbox-help-heading span { color: #9bacc6; font-size: 10px; }
.inbox-body .inbox-help .quiet-button { width: 100%; margin: 0 0 10px; }
.inbox-body #notification-status { color: #b9c9e2; font-size: 12px; }
.inbox-body .alert-details { margin-top: 8px; }
.inbox-body .alert-details summary { display: list-item; min-height: 44px; padding: 11px 0; color: #a7bbff; font-size: 12px; line-height: 1.6; cursor: pointer; }
.inbox-body .alert-details summary::marker { color: #90b5ff; }
.inbox-body .alert-details p { margin: 8px 0 0; color: #a5b6d0; font-size: 12px; line-height: 1.7; }
.inbox-body .alert-details strong { color: #cad9f0; font-weight: 500; }
.inbox-body #last-synced { margin-top: 7px; color: #9bacc6; font-size: 11px; }
.inbox-body .message-pane { min-height: 0; min-width: 0; background: #0d1524; }
.inbox-body #empty-conversation { max-width: 600px; margin: 0 auto; padding: 36px; gap: 0; }
.inbox-body .empty-icon { display: grid; place-items: center; width: 72px; height: 72px; background: #192d4d; border: 1px solid #395480; border-radius: 20px; color: #a7bbff; margin-bottom: 27px; }
.inbox-body .empty-icon svg { width: 35px; height: 35px; }
.inbox-body #empty-conversation .empty-eyebrow { margin: 0 0 13px; color: #9fb8e3; font-size: 10px; line-height: 1.5; letter-spacing: .12em; }
.inbox-body #empty-conversation h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; color: #e2ebfc; }
.inbox-body #empty-conversation > p:not(.empty-eyebrow) { color: #a6b8d4; max-width: 340px; font-size: 14px; line-height: 1.75; margin-top: 16px; }
.inbox-body .inbox-empty-hints { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.inbox-body .inbox-empty-hints span { color: #9bafcf; border: 1px solid #2e425f; background: #141f33; border-radius: 6px; padding: 8px 10px; font-size: 10px; }
.inbox-body #active-conversation { min-height: 0; }
.inbox-body .conversation-header { padding: 21px 28px; border-color: #2a3d5a; background: #111d30; }
.inbox-body .conversation-header h2 { color: #f4f6fc; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.inbox-body .conversation-header p { color: #b0c2dd; font-size: 13px; line-height: 1.6; }
.inbox-body #conversation-phone, .inbox-body #conversation-telegram { color: #b0c2dd; font-size: 13px; line-height: 1.6; }
.inbox-body .conversation-meta { padding: 13px 28px; color: #b1c7ed; background: #132137; gap: 7px; font: 12px/1.5 var(--sans); }
.inbox-body .conversation-meta span { background: #1e3150; color: #c2d5f4; border: 1px solid #365276; border-radius: 6px; padding: 4px 9px; }
.inbox-body .message-thread { min-height: 0; padding: 27px 28px; gap: 22px; scrollbar-width: thin; scrollbar-color: #405777 #0d1524; }
.inbox-body .message-row { max-width: min(80%, 640px); }
.inbox-body .message-body { color: #e8effb; background: #1b2a41; border: 1px solid #354b6a; border-radius: 13px 13px 13px 3px; padding: 13px 17px; font-size: 15px; line-height: 1.75; }
.inbox-body .message-row.operator .message-body { color: #f1f5ff; background: #244793; border-color: #466bac; border-radius: 13px 13px 3px 13px; }
.inbox-body .message-caption { color: #9fb1cd; font-size: 11px; line-height: 1.5; margin: 7px 3px 0; }
.inbox-body .reply-form { padding: 19px 28px max(22px, env(safe-area-inset-bottom)); border-color: #2d415f; background: #111d30; gap: 11px; }
.inbox-body .reply-form textarea { min-width: 0; width: 100%; min-height: 58px; max-height: 140px; margin: 0; padding: 13px 14px; color: #f4f6fc; border: 1px solid #3f5678; border-radius: 9px; background: #0d1728; font-size: 16px; line-height: 1.6; }
.inbox-body .reply-form textarea::placeholder { color: #9fb1cd; }
.inbox-body .reply-form .button { min-height: 58px; padding: 13px 19px; font-size: 13px; align-self: end; }
.inbox-body .reply-form > p { color: var(--chat-amber); font-size: 12px; line-height: 1.6; }
.inbox-body :focus-visible { outline: 3px solid #afc7ff; outline-offset: 3px; }
.inbox-body .conversation-item:focus-visible { outline-offset: -4px; }
.inbox-body input:focus-visible, .inbox-body textarea:focus-visible { outline-offset: 2px; }
.inbox-body ::selection { background: #a7bbff; color: #101b2e; }

@media (max-width: 900px) and (min-width: 761px) {
  .inbox-body .inbox-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .inbox-body .inbox-tag { display: none; }
  .inbox-body .message-thread, .inbox-body .conversation-header, .inbox-body .conversation-meta, .inbox-body .reply-form { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 760px) {
  .inbox-body { --inbox-header-height: 108px; }
  .inbox-body .inbox-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 13px max(17px, env(safe-area-inset-right)) 11px max(17px, env(safe-area-inset-left)); }
  .inbox-body .inbox-header .brand { font-size: 20px; }
  .inbox-body .inbox-header .inbox-brand-symbol { width: 30px; height: 30px; font-size: 12px; margin-right: 9px; }
  .inbox-body .inbox-tag { display: none; }
  .inbox-body .connection { grid-row: 2; grid-column: 1 / -1; width: fit-content; max-width: 100%; font-size: 11px; padding: 6px 10px; }
  .inbox-body #logout { grid-row: 1; grid-column: 2; font-size: 11px; min-height: 44px; padding: 10px 12px; }
  .inbox-body .inbox-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .inbox-body .conversation-sidebar { border: 0; }
  .inbox-body .message-pane { display: none; }
  .inbox-body .inbox-layout.conversation-open .conversation-sidebar { display: none; }
  .inbox-body .inbox-layout.conversation-open .message-pane { display: block; }
  .inbox-body .sidebar-title { padding: 20px 19px 16px; }
  .inbox-body .search-label { margin-left: 19px; margin-right: 19px; }
  .inbox-body .search-label input { font-size: 16px; }
  .inbox-body .filter-row { padding-left: 19px; padding-right: 19px; padding-bottom: 14px; }
  .inbox-body .conversation-item { padding: 17px 19px; min-height: 97px; }
  .inbox-body #list-status { padding-left: 19px; padding-right: 19px; }
  .inbox-body .inbox-help { max-height: 40dvh; overflow-y: auto; padding: 15px 19px max(14px, env(safe-area-inset-bottom)); }
  .inbox-body .conversation-header { padding: 15px 17px; gap: 10px; max-height: 30dvh; overflow-y: auto; }
  .inbox-body .mobile-back { display: block; min-height: 44px; font-size: 12px; padding: 10px 12px; }
  .inbox-body .conversation-header > div { flex-basis: calc(100% - 95px); }
  .inbox-body .conversation-header h2 { font-size: 18px; }
  .inbox-body .conversation-header p { font-size: 12px; }
  .inbox-body #close-conversation { margin-left: auto; font-size: 12px; min-height: 44px; padding: 10px 12px; }
  .inbox-body .conversation-meta { padding: 10px 17px; font-size: 11px; }
  .inbox-body .message-thread { padding: 21px 17px; gap: 18px; }
  .inbox-body .message-row { max-width: 92%; }
  .inbox-body .message-body { font-size: 15px; padding: 12px 14px; }
  .inbox-body .reply-form { padding: 13px 17px max(16px, env(safe-area-inset-bottom)); gap: 9px; }
  .inbox-body .reply-form textarea { min-height: 56px; max-height: 100px; font-size: 16px; padding: 12px; }
  .inbox-body .reply-form .button { min-height: 56px; padding: 12px 14px; font-size: 12px; }
  .inbox-body .login-card { padding: 29px 25px; margin: 35px auto; border-radius: 18px; }
  .inbox-body .login-card h1 { font-size: 32px; }
  .inbox-body .login-card > .eyebrow { margin-top: 30px; }
}
@media (max-width: 600px) {
  .chat-launcher { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 52px; padding: 12px 16px; }
  #chat-dialog { inset: auto 10px max(10px, env(safe-area-inset-bottom)) auto; width: calc(100vw - 20px); max-width: 458px; max-height: calc(100dvh - 24px); border-radius: 17px; }
  #chat-dialog .chat-panel-header { padding: 19px 19px 17px; }
  #chat-dialog .chat-panel-body { padding: 19px; }
  #chat-dialog .chat-panel-brand { margin-bottom: 14px; }
  #chat-dialog .dialog-close { top: 13px; right: 10px; }
  #chat-dialog #chat-title { font-size: 1.375rem; }
  #chat-dialog .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #chat-dialog input, #chat-dialog textarea { font-size: 16px; }
  #chat-dialog[data-chat-state="conversation"] .visitor-messages { height: 250px; max-height: 34dvh; }
}
@media (max-width: 380px) {
  #chat-dialog .chat-panel-header, #chat-dialog .chat-panel-body { padding-left: 16px; padding-right: 16px; }
  #chat-dialog .chat-privacy-label { display: none; }
  #chat-dialog .chat-panel-specialty { font-size: .6875rem; }
  .inbox-body .login-card { width: calc(100% - 28px); padding: 25px 22px; }
  .inbox-body .login-card h1 { font-size: 29px; }
  .inbox-body .sidebar-title, .inbox-body .conversation-item { padding-left: 16px; padding-right: 16px; }
  .inbox-body .search-label { margin-left: 16px; margin-right: 16px; }
  .inbox-body .filter-row { padding-left: 16px; padding-right: 16px; }
}
@media (max-height: 620px) {
  #chat-dialog .chat-panel-header { padding-top: 14px; padding-bottom: 13px; }
  #chat-dialog .chat-panel-brand { margin-bottom: 10px; }
  #chat-dialog .chat-panel-specialty, #chat-dialog .chat-panel-footer { display: none; }
  #chat-dialog .chat-panel-body { padding-top: 15px; padding-bottom: 15px; }
  .inbox-body .inbox-help { max-height: 33dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher { transition: none; transform: none; }
  #chat-dialog[open] { animation: none; }
}
@media (forced-colors: active) {
  .chat-launcher, #chat-dialog, .inbox-body .button, .inbox-body .quiet-button, .inbox-body .filter-row button { border: 1px solid ButtonText; }
  #chat-dialog .visitor-message > p, .inbox-body .message-body, .inbox-body .count { border: 1px solid CanvasText; }
}
