:root {
  color-scheme: dark;
  --bg: #071116;
  --panel: rgba(12, 24, 31, 0.84);
  --panel-strong: rgba(15, 32, 42, 0.96);
  --glass: rgba(255, 255, 255, 0.07);
  --ink: #f4fbfb;
  --muted: #92aab2;
  --line: rgba(158, 190, 198, 0.18);
  --accent: #20d6b5;
  --accent-strong: #4df2d0;
  --cyan: #53b8ff;
  --violet: #9d7cff;
  --warn: #ffbd5a;
  --danger: #ff6b6b;
  --customer: rgba(78, 103, 116, 0.34);
  --ai: rgba(32, 214, 181, 0.13);
  --agent: rgba(83, 184, 255, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(32, 214, 181, 0.18), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(83, 184, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #071116 0%, #0d1b24 48%, #091318 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid::before,
.ambient-grid::after {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  content: "";
  filter: blur(28px);
  opacity: 0.38;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.ambient-grid::before {
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(32, 214, 181, 0.34), transparent 65%);
}

.ambient-grid::after {
  right: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(157, 124, 255, 0.28), transparent 65%);
  animation-delay: -5s;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(32, 214, 181, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #2ba8ff);
  color: #03120f;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(32, 214, 181, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

button svg,
.file-button svg,
.service-tags svg,
.chat-header svg,
.empty-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(32, 214, 181, 0.28);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.ghost-button,
.filter-row button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  box-shadow: none;
}

.ghost-button:hover,
.filter-row button:hover,
.filter-row button.active {
  border-color: rgba(32, 214, 181, 0.62);
  background: rgba(32, 214, 181, 0.12);
  color: var(--accent-strong);
}

.customer-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.chat-shell {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(380px, 740px);
  width: min(1180px, 100%);
  height: min(800px, calc(100vh - 56px));
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: riseIn 520ms ease both;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(160deg, rgba(13, 30, 39, 0.96), rgba(8, 18, 24, 0.96)),
    radial-gradient(circle at 30% 20%, rgba(32, 214, 181, 0.28), transparent 36%);
}

.brand-panel::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(32, 214, 181, 0.16);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

.brand-panel::after {
  position: absolute;
  inset: auto -20% 18% -20%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(32, 214, 181, 0.58), transparent);
  animation: scanLine 4.5s linear infinite;
}

.brand-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(32, 214, 181, 0.52);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(32, 214, 181, 0.95), rgba(83, 184, 255, 0.9)),
    #20d6b5;
  color: #03120f;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(32, 214, 181, 0.34);
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: min(250px, 58vw);
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 20px rgba(32, 214, 181, 0.22));
}

.header-logo {
  width: 120px;
  max-width: 32vw;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.9);
}

.login-logo {
  width: 210px;
  max-width: 58vw;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 18px rgba(32, 214, 181, 0.18));
}

.sidebar-logo {
  width: 92px;
  max-width: 28vw;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  padding: 3px 5px;
  background: rgba(255, 255, 255, 0.9);
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(32, 214, 181, 0.8);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(32, 214, 181, 0.28);
  border-radius: 999px;
  padding: 7px 11px;
  color: #c6fff2;
  background: rgba(32, 214, 181, 0.11);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-chip > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(32, 214, 181, 0.75);
  animation: pulseDot 1.8s ease-out infinite;
}

.live-chip > span:last-child {
  display: inline;
  width: auto;
  height: auto;
}

.brand-panel h1,
.login-card h1,
.conversation-sidebar h1 {
  margin: 0;
  letter-spacing: 0;
}

.brand-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 8em;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.02;
}

.brand-panel h1 span {
  display: block;
}

.brand-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #bdd1d8;
  line-height: 1.75;
}

.ai-orbit {
  position: relative;
  z-index: 1;
  width: min(220px, 72vw);
  aspect-ratio: 1;
  margin: 4px auto;
}

.orbit-ring {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(32, 214, 181, 0.22);
  border-radius: 50%;
}

.ring-one {
  animation: orbitSpin 16s linear infinite;
}

.ring-two {
  inset: 5%;
  border-color: rgba(83, 184, 255, 0.2);
  transform: rotateX(62deg) rotateZ(18deg);
  animation: orbitSpin 24s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 214, 181, 0.46);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 214, 181, 0.3), rgba(83, 184, 255, 0.1) 70%, transparent);
  color: #dffff7;
  box-shadow: 0 0 42px rgba(32, 214, 181, 0.26), inset 0 0 22px rgba(32, 214, 181, 0.18);
}

.orbit-core svg {
  width: 46%;
  height: 46%;
}

.orbit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(32, 214, 181, 0.9);
}

.node-one {
  top: 12%;
  left: 52%;
  animation: floatNode 3.6s ease-in-out infinite;
}

.node-two {
  right: 12%;
  bottom: 28%;
  background: var(--cyan);
  animation: floatNode 4.2s ease-in-out infinite -1.1s;
}

.node-three {
  bottom: 18%;
  left: 20%;
  background: var(--violet);
  animation: floatNode 4.8s ease-in-out infinite -1.8s;
}

.service-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: #edf5f4;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.signal-list > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 10px;
  color: #aac4ca;
  background: rgba(255, 255, 255, 0.045);
}

.signal-list > span > span {
  text-align: right;
}

.signal-list strong {
  color: #e8fffb;
}

.chat-panel,
.agent-chat {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: rgba(8, 18, 24, 0.72);
}

.chat-header,
.agent-chat-header,
.conversation-sidebar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-header strong,
.agent-chat-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-header span,
.agent-chat-header span,
.conversation-sidebar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.compact-actions {
  align-items: center;
  flex-shrink: 0;
}

.language-field {
  display: inline-grid;
  width: min(190px, 42vw);
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.language-field select {
  min-height: 38px;
  padding: 8px 32px 8px 10px;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - 12px) 52% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.06);
  appearance: none;
}

.login-language {
  width: auto;
  margin: 12px 20px 0;
}

.visitor-form,
.login-card form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(32, 214, 181, 0.7);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(32, 214, 181, 0.1);
}

textarea {
  resize: vertical;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  scrollbar-color: rgba(32, 214, 181, 0.5) rgba(255, 255, 255, 0.06);
}

.message {
  position: relative;
  max-width: 78%;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--customer);
  color: #e8f5f6;
  line-height: 1.58;
  white-space: pre-wrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  animation: messageIn 240ms ease both;
}

.message.ai,
.message.system {
  border-color: rgba(32, 214, 181, 0.18);
  background: var(--ai);
}

.message.agent {
  margin-left: auto;
  border-color: rgba(83, 184, 255, 0.22);
  background: var(--agent);
}

.message.customer.mine {
  margin-left: auto;
  border-color: rgba(32, 214, 181, 0.24);
  background: rgba(32, 214, 181, 0.18);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.message-meta::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  box-shadow: 0 0 10px rgba(32, 214, 181, 0.75);
}

.message.customer .message-meta::before {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(255, 189, 90, 0.7);
}

.message.agent .message-meta::before {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(83, 184, 255, 0.8);
}

.attachments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.attachments img {
  max-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.attachments a {
  color: var(--accent-strong);
  word-break: break-all;
}

.composer {
  border-top: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.file-button:hover {
  border-color: rgba(32, 214, 181, 0.62);
  color: var(--accent-strong);
  background: rgba(32, 214, 181, 0.1);
}

.file-button input {
  display: none;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.file-preview span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-page {
  min-height: 100vh;
  padding: 22px;
}

.login-card {
  width: min(440px, calc(100% - 32px));
  margin: 10vh auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: riseIn 520ms ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px 4px;
}

.login-brand p {
  margin: 6px 0 0;
  color: var(--muted);
}

.login-card h1 {
  font-size: 24px;
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.support-console {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  min-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.conversation-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(8, 18, 24, 0.84);
}

.conversation-sidebar h1 {
  display: flex;
  align-items: center;
  font-size: 20px;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.conversation-sidebar header {
  align-items: stretch;
  flex-direction: column;
}

.conversation-sidebar header > div {
  min-width: 0;
}

.conversation-sidebar header .compact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  align-items: end;
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.ops-strip div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.ops-strip strong {
  display: block;
  color: var(--accent-strong);
  font-size: 21px;
}

.ops-strip span {
  margin: 3px 0 0;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-row button {
  padding: 8px 6px;
  font-size: 13px;
}

.conversation-list {
  overflow-y: auto;
}

.conversation-item {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 15px;
  text-align: left;
  box-shadow: none;
}

.conversation-item:hover,
.conversation-item.active {
  background: rgba(32, 214, 181, 0.09);
  transform: none;
}

.conversation-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.badge.high,
.badge.human {
  border-color: rgba(255, 107, 107, 0.34);
  background: rgba(255, 107, 107, 0.12);
  color: #ffb4b4;
}

.badge.open,
.badge.normal {
  border-color: rgba(32, 214, 181, 0.28);
  color: #bdfbef;
}

.conversation-snippet {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.empty-card {
  display: grid;
  place-items: center;
  max-width: 340px;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-card svg {
  width: 58px;
  height: 58px;
  color: var(--accent);
  filter: drop-shadow(0 0 18px rgba(32, 214, 181, 0.35));
  animation: floatNode 4s ease-in-out infinite;
}

.empty-card strong {
  color: var(--ink);
}

.sidebar-empty {
  padding: 28px 16px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 214, 181, 0.75);
  }
  80% {
    box-shadow: 0 0 0 10px rgba(32, 214, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 214, 181, 0);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatNode {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(60px, 30px, 0) scale(1.12);
  }
}

@keyframes scanLine {
  from {
    transform: translateY(-180px);
  }
  to {
    transform: translateY(180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .customer-page,
  .admin-page {
    padding: 0;
  }

  .chat-shell,
  .support-console {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
  }

  .brand-panel {
    min-height: auto;
    padding: 28px;
  }

  .brand-logo {
    width: min(220px, 64vw);
  }

  .header-logo {
    width: 104px;
  }

  .brand-panel h1 {
    max-width: none;
    font-size: 38px;
  }

  .login-logo {
    width: 190px;
  }

  .ai-orbit {
    width: 210px;
  }

  .conversation-sidebar {
    min-height: 42vh;
    max-height: 48vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-chat {
    min-height: 58vh;
  }

  .message {
    max-width: 92%;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .signal-list {
    display: none;
  }

  .brand-panel h1 {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(32, 214, 181, 0.16), transparent 26%),
      linear-gradient(135deg, #071116 0%, #0d1b24 100%);
  }

  .chat-header,
  .agent-chat-header,
  .conversation-sidebar header,
  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-header,
  .agent-chat-header,
  .conversation-sidebar header {
    padding: 14px;
  }

  .brand-panel {
    gap: 12px;
    padding: 20px;
  }

  .brand-logo {
    width: min(190px, 70vw);
  }

  .header-logo,
  .sidebar-logo {
    width: 92px;
  }

  .login-logo {
    width: 170px;
  }

  .brand-panel::before {
    inset: 12px;
  }

  .brand-panel h1 {
    font-size: 34px;
  }

  .brand-panel p {
    line-height: 1.55;
  }

  .ai-orbit {
    width: 150px;
    margin: 0 auto;
  }

  .service-tags {
    gap: 6px;
  }

  .service-tags span {
    padding: 6px 8px;
    font-size: 12px;
  }

  .language-field {
    width: 100%;
  }

  .compact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    width: 100%;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ops-strip {
    grid-template-columns: 1fr;
  }

  .visitor-form,
  .login-card form,
  .messages,
  .composer {
    padding: 14px;
  }

  .message {
    max-width: 100%;
    padding: 12px;
  }

  .login-card {
    width: calc(100% - 24px);
    margin: 24px auto;
  }

  .support-console {
    min-height: 100vh;
  }

  .conversation-sidebar {
    max-height: 52vh;
  }

  .conversation-item {
    padding: 12px 14px;
  }
}
