:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #edf0f4;
  --ink: #20242a;
  --muted: #69717d;
  --line: #e1e5ea;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-2: #eaf1ff;
  --cyan: #22d3ee;
  --signal: #16b8a6;
  --accent: #f05a47;
  --accent-bg: #fff0ed;
  --danger: #d64545;
  --danger-bg: #fff0f0;
  --warn: #a86708;
  --warn-bg: #fff4d8;
  --ok: #2563eb;
  --sidebar: #0b1630;
  --shadow: 0 18px 48px rgba(28, 34, 44, 0.1);
  --shadow-soft: 0 8px 24px rgba(28, 34, 44, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-shell {
  min-height: 100vh;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(320px, 1fr);
}

.login-panel {
  background: var(--panel);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 1;
}

.login-aside {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #07142d;
  background-image: linear-gradient(90deg, rgba(4, 13, 31, 0.34), rgba(4, 13, 31, 0.08) 58%, rgba(4, 13, 31, 0.22)), url("./assets/login-radar-background.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.login-loading {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 30px;
  padding: 72px 24px 48px;
  color: #f7fbfc;
  background-color: #07151a;
  background-image:
    linear-gradient(rgba(74, 212, 208, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 212, 208, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
}

.login-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0, rgba(34, 211, 238, 0.08) 50%, transparent 100%);
  transform: translateY(-100%);
  animation: loading-scan 2.2s ease-in-out infinite;
}

.login-loading-brand {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: #f7fbfc;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
}

.login-loading-brand .radar-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  box-shadow: none;
}

.login-loading-brand .radar-mark::before {
  inset: 6px;
}

.login-loading-brand .radar-mark-ring {
  inset: 12px;
}

.login-loading-brand .radar-mark::after {
  top: 16px;
}

.login-loading-brand .radar-mark-sweep {
  left: 16px;
  top: 15px;
  width: 14px;
}

.login-loading-brand .radar-mark-signal {
  left: 22px;
  top: 8px;
}

.login-loading-radar {
  width: min(58vw, 226px);
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(104, 229, 222, 0.7);
  border-radius: 50%;
  background: #0a2026;
  box-shadow: inset 0 0 44px rgba(34, 211, 238, 0.12), 0 0 0 9px rgba(10, 37, 43, 0.72), 0 22px 60px rgba(0, 0, 0, 0.34);
  animation: loading-radar-enter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.loading-ring,
.loading-axis,
.loading-sweep,
.loading-core,
.loading-blip {
  position: absolute;
}

.loading-ring {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(99, 231, 223, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.loading-ring-outer { width: 76%; height: 76%; }
.loading-ring-middle { width: 51%; height: 51%; }
.loading-ring-inner { width: 25%; height: 25%; }

.loading-axis {
  background: rgba(99, 231, 223, 0.15);
}

.loading-axis-horizontal {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
}

.loading-axis-vertical {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
}

.loading-sweep {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 270deg, transparent 0deg, transparent 292deg, rgba(69, 222, 212, 0.08) 322deg, rgba(69, 222, 212, 0.44) 358deg, transparent 360deg);
  animation: loading-radar-sweep 1.35s linear infinite;
}

.loading-sweep::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45%;
  height: 2px;
  border-radius: 2px;
  background: #68e5de;
  box-shadow: 0 0 12px rgba(104, 229, 222, 0.9);
  transform-origin: left center;
}

.loading-core {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #d9fffb;
  border-radius: 50%;
  background: #0a2026;
  box-shadow: 0 0 0 5px rgba(104, 229, 222, 0.13), 0 0 16px rgba(104, 229, 222, 0.65);
  transform: translate(-50%, -50%);
}

.loading-blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff715e;
  box-shadow: 0 0 0 5px rgba(255, 113, 94, 0.12), 0 0 14px rgba(255, 113, 94, 0.72);
  animation: loading-blip 1.1s ease-in-out infinite alternate;
}

.loading-blip-one { left: 64%; top: 25%; }
.loading-blip-two { left: 27%; top: 58%; animation-delay: 280ms; background: #f5c451; box-shadow: 0 0 0 5px rgba(245, 196, 81, 0.11), 0 0 14px rgba(245, 196, 81, 0.7); }
.loading-blip-three { left: 70%; top: 69%; animation-delay: 520ms; }

.login-loading-copy {
  z-index: 1;
  text-align: center;
  animation: loading-copy-enter 500ms 180ms ease both;
}

.login-loading-copy > span {
  display: block;
  margin-bottom: 8px;
  color: #68e5de;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-loading-copy h1 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 27px;
}

.login-loading-copy p {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  margin: 0;
  color: rgba(231, 245, 245, 0.72);
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 7px;
}

.loading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #68e5de;
  animation: loading-dot 900ms ease-in-out infinite alternate;
}

.loading-dots i:nth-child(2) { animation-delay: 160ms; }
.loading-dots i:nth-child(3) { animation-delay: 320ms; }

@keyframes loading-radar-sweep {
  to { transform: rotate(360deg); }
}

@keyframes loading-radar-enter {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes loading-copy-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loading-blip {
  from { opacity: 0.35; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1.12); }
}

@keyframes loading-dot {
  from { opacity: 0.3; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(-2px); }
}

@keyframes loading-scan {
  0%, 20% { transform: translateY(-100%); }
  80%, 100% { transform: translateY(100%); }
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}

.brand-copy {
  min-width: 0;
}

.release-center-button {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #bae6fd;
  cursor: pointer;
}

.release-center-button:hover,
.release-center-button:focus-visible {
  border-color: rgba(125, 211, 252, 0.6);
  background: rgba(14, 165, 233, 0.2);
  outline: none;
}

.release-center-button svg {
  width: 19px;
  height: 19px;
}

.release-notification {
  display: none;
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid #071126;
  border-radius: 50%;
  background: #ef4444;
}

.release-center-button.has-update .release-notification {
  display: block;
}

.release-center-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(7, 17, 38, 0.46);
  backdrop-filter: blur(2px);
}

.release-center {
  width: min(460px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f8fafc;
  border-left: 1px solid #cbd5e1;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.2);
}

.release-center-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  color: #fff;
  background: #0b1f3f;
  border-bottom: 3px solid #06b6d4;
}

.release-center-header h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 21px;
}

.release-center-header .eyebrow {
  color: #a5f3fc;
}

.release-center-header .action-btn {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.release-center-signal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 243, 252, 0.32);
  border-radius: 50%;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
}

.release-center-feed {
  overflow: auto;
  padding: 22px 20px 32px;
}

.release-entry-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #cbd5e1;
}

.release-entry-meta strong {
  color: #0f172a;
  font-size: 14px;
}

.release-entry-meta time {
  color: #64748b;
  font-size: 12px;
}

.release-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
}

.release-item > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0369a1;
  background: #e0f2fe;
}

.release-item h3 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 14px;
}

.release-item p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

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

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.login-aside .brand-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 7px;
  font-weight: 800;
}

h2 {
  font-size: 19px;
  margin-bottom: 16px;
  font-weight: 750;
}

h3 {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #4c5562;
  font-size: 12px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}

.btn:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.btn.secondary {
  background: var(--panel-2);
  color: var(--ink);
  box-shadow: none;
}

.btn.secondary:hover:not(:disabled) {
  background: #e2e6ec;
}

.btn.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: 4px;
}

.btn.ghost:hover:not(:disabled) {
  background: var(--brand-2);
  color: var(--brand-hover);
  box-shadow: none;
  transform: none;
}

.msg {
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
}

.msg.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.msg.ok {
  background: var(--brand-2);
  color: var(--ok);
}

.msg.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.demo-card {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  max-width: 560px;
}

.dashboard {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  background: linear-gradient(160deg, #071126 0%, #0d1d3e 58%, #102750 100%);
  color: #fff;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -145px;
  bottom: 90px;
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(34, 211, 238, 0.035), 0 0 0 96px rgba(34, 211, 238, 0.025);
}

.sidebar .brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
}

.nav {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.nav button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  padding: 0 13px;
  font-weight: 550;
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav button span {
  min-width: 0;
  flex: 1;
}

.nav-badge,
.team-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.nav .ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: rgba(157, 222, 255, 0.72);
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav button.active .ui-icon,
.nav button:hover .ui-icon {
  color: var(--cyan);
}

.nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.sidebar-footer {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.current-user-card {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.current-user-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.current-user-copy {
  min-width: 0;
}

.current-user-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-user-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.profile-photo-control {
  position: relative;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.profile-photo-control input {
  display: none;
}

.profile-photo-control > span:last-child {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px #0b1630;
}

.profile-photo-control .ui-icon {
  width: 11px;
  height: 11px;
}

.self-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.self-photo-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(157, 222, 255, 0.92);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.self-photo-actions button:hover {
  color: #fff;
}

.status-switch {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.status-switch label {
  color: rgba(255, 255, 255, 0.72);
}

.status-switch label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.presence-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #536174;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.presence-status > i {
  width: 9px;
  height: 9px;
  position: relative;
  display: inline-block;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.presence-available > i {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  animation: presence-online-pulse 1.8s ease-out infinite;
}

.presence-busy > i {
  background: #ef5d4d;
  box-shadow: 0 0 0 3px rgba(239, 93, 77, 0.13);
  animation: presence-busy-pulse 2.2s ease-in-out infinite;
}

.presence-away > i {
  background: #f5b94c;
  box-shadow: 0 0 0 3px rgba(245, 185, 76, 0.14);
  animation: presence-away-breathe 2.4s ease-in-out infinite;
}

.presence-offline > i {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

@keyframes presence-online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.48); }
  72%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

@keyframes presence-busy-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes presence-away-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.team-target small .presence-status,
.team-header .presence-status,
.agent-workload-head .presence-status {
  margin-left: 8px;
}

.team-target small .presence-status span,
.agent-workload-head .presence-status span {
  font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .presence-status > i {
    animation: none;
  }
}

.status-switch select {
  min-height: 36px;
  padding: 7px 9px;
}

.content {
  padding: 30px 32px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.content-team,
.content-inbox {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-team > .topbar,
.content-inbox > .inbox-toolbar {
  flex: 0 0 auto;
}

.content-inbox > .inbox-layout {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

.content-inbox {
  padding: 12px 20px 18px;
}

.inbox-toolbar {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.inbox-toolbar h1 {
  align-self: center;
  margin: 0;
  font-size: 24px;
  white-space: nowrap;
}

.inbox-toolbar h1::after {
  display: none;
}

.inbox-toolbar .inbox-filters {
  grid-template-columns: repeat(2, minmax(170px, 260px));
  margin: 0;
}

.inbox-toolbar .field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.inbox-toolbar .field select {
  min-height: 38px;
}

.inbox-toolbar > .button-row {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h1::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 17px;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.metric:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(28, 34, 44, 0.09);
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 25px;
  color: var(--brand);
}

.metric-detail {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cards .metric:nth-child(4n + 2) strong {
  color: var(--accent);
}

.cards .metric:nth-child(4n + 3) strong {
  color: var(--warn);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.panel + .panel {
  margin-top: 16px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #596473;
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
  background: var(--panel-2);
  color: #354252;
}

.pill.ok {
  background: var(--brand-2);
  color: var(--ok);
}

.pill.blocked {
  background: var(--danger-bg);
  color: var(--danger);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

td .pill + .pill {
  margin-top: 4px;
}

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

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
}

.check-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  font-weight: 600;
}

.check-item input {
  width: auto;
}

.action-btn {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 9px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.action-btn:hover {
  background: #dfe4ea;
  color: var(--brand-hover);
}

.action-btn.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  border-left: 3px solid var(--brand);
  padding: 8px 0 8px 12px;
  background: var(--brand-2);
}

.timeline-item p {
  margin: 6px 0 0;
}

.hidden {
  display: none !important;
}

.inbox-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  margin-bottom: 14px;
}

.queue-summary {
  min-width: 96px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.queue-summary strong,
.queue-summary span {
  display: block;
}

.queue-summary strong {
  font-size: 22px;
}

.queue-summary span {
  color: var(--muted);
  font-size: 12px;
}

.inbox-layout {
  width: 100%;
  min-width: 0;
  min-height: 520px;
  height: calc(100vh - 210px);
  max-height: 780px;
  display: grid;
  grid-template-columns: minmax(210px, 290px) minmax(0, 1fr) minmax(320px, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  position: relative;
}

.conversation-list,
.conversation-context {
  background: #f8f9fb;
  overflow: auto;
  min-width: 0;
}

.conversation-list {
  border-right: 1px solid var(--line);
}

.conversation-context {
  border-left: 1px solid var(--line);
  padding: 0;
}

.conversation-context input,
.conversation-context select,
.conversation-context textarea,
.conversation-context button {
  max-width: 100%;
}

.conversation-context section + section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.conversation-context label {
  display: block;
  margin: 12px 0 6px;
}

.conversation-item {
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}

.conversation-item:hover,
.conversation-item.active {
  background: #eef4ff;
  box-shadow: inset 4px 0 0 var(--brand);
}

.conversation-item:hover {
  transform: translateX(2px);
}

.conversation-item-head,
.conversation-badges,
.message-meta,
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-item-head span,
.message-meta span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.conversation-head-signals {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.conversation-unread-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.26);
}

.app-notices {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.app-notice {
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  background: #fff;
  color: #7f1d1d;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-notice.success {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #166534;
}

.message-sender {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.message-meta > span {
  flex: 0 0 auto;
}

.message-sender small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.conversation-preview {
  margin: 9px 0;
  color: #596473;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-badges {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.conversation-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.conversation-context-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.conversation-context-menu button:hover {
  background: #eef4ff;
  color: var(--brand);
}

.conversation-context-menu .ui-icon,
.conversation-context-menu svg {
  width: 16px;
  height: 16px;
}

.conversation-workspace {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.conversation-workspace.search-open {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
}

.conversation-search-bar {
  min-width: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 18px minmax(120px, 1fr) auto 34px 34px 34px;
  align-items: center;
  gap: 6px;
  background: #fff;
}

.conversation-search-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.conversation-search-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.message.search-match .message-body {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.message.search-current .message-body {
  box-shadow: 0 0 0 3px #2563eb;
}

mark[data-conversation-search-mark] {
  padding: 0 2px;
  border-radius: 2px;
  background: #fde68a;
  color: inherit;
}

.conversation-header,
.ownership-bar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.conversation-header > :first-child {
  min-width: 0;
  flex: 1 1 240px;
}

.conversation-header > .button-row {
  flex: 0 1 auto;
}

.conversation-close-btn {
  flex: 0 0 auto;
}

.conversation-header {
  box-shadow: 0 5px 16px rgba(28, 34, 44, 0.04);
  z-index: 1;
}

.conversation-header h2,
.conversation-header p {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.ownership-bar {
  background: #f8f9fb;
  flex-wrap: wrap;
}

.ownership-bar > div span,
.ownership-bar > div strong {
  display: block;
}

.message-thread {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  background-color: #e7edf5;
  background-image:
    linear-gradient(rgba(233, 238, 245, 0.34), rgba(233, 238, 245, 0.34)),
    url("./assets/chat-radar-background.svg");
  background-size: auto, 180px 180px;
  background-position: center, 0 0;
  background-repeat: repeat, repeat;
}

.message {
  position: relative;
  width: fit-content;
  max-width: min(78%, 620px);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  animation: message-enter 180ms ease both;
}

.message.message-stable {
  animation: none;
}

.message-body {
  position: relative;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(28, 34, 44, 0.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-actions {
  position: absolute;
  top: 4px;
  right: 6px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 4px 12px rgba(28, 34, 44, 0.1);
  opacity: 0.58;
  transform: none;
  pointer-events: auto;
  transition: opacity 140ms ease, transform 140ms ease;
}

.message.inbound .message-actions {
  right: 6px;
  left: auto;
}

.message:hover .message-actions,
.message:focus-within .message-actions {
  opacity: 1;
  pointer-events: auto;
}

.message-meta {
  padding-right: 62px;
}

.message:has([data-edit-message]) .message-meta {
  padding-right: 88px;
}

.message:has([data-delete-message-for-everyone]) .message-meta {
  padding-right: 88px;
}

.message:has([data-toggle-message-reactions]) .message-meta {
  padding-right: 88px;
}

.message-reaction-picker {
  position: absolute;
  z-index: 8;
  top: 38px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 44, 0.16);
}

.message-reaction-picker.hidden {
  display: none;
}

.message-reaction-picker button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
}

.message-reaction-picker button:hover,
.message-reaction-picker button.selected {
  background: #edf4ff;
  transform: translateY(-1px);
}

.message-reaction-picker .remove-reaction {
  color: var(--muted);
}

.message-reaction-picker .remove-reaction svg {
  width: 15px;
  height: 15px;
}

.message-reaction-badge {
  min-height: 25px;
  max-width: 150px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 7px;
  border: 1px solid #cddcf4;
  border-radius: 12px;
  background: #f5f8fd;
  color: #42516a;
  cursor: pointer;
}

.message-reaction-badge:disabled {
  cursor: default;
}

.message-reaction-badge span {
  font-size: 14px;
}

.message-reaction-badge small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
}

.message-actions button,
.message-actions summary,
.composer-picker button {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.message-actions button:hover,
.message-actions summary:hover,
.composer-picker button:hover {
  background: #edf2fb;
  color: var(--brand);
}

.message-more-menu {
  position: relative;
}

.message-more-menu summary {
  list-style: none;
}

.message-more-menu summary::-webkit-details-marker {
  display: none;
}

.message-more-dropdown {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  width: 176px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 34, 44, 0.18);
}

.message-actions .message-more-dropdown button {
  width: 100%;
  height: 34px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 9px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.message-actions .message-more-dropdown button:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.deleted-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 3px;
  color: var(--muted);
  font-style: italic;
}

.deleted-message svg {
  width: 15px;
  height: 15px;
}

.message-quote,
.composer-context,
.forward-preview {
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.66);
}

.message-quote {
  display: grid;
  gap: 2px;
  margin: 7px 0;
  padding: 7px 9px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}

.message-quote span,
.composer-context span,
.forward-preview {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forwarded-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.forwarded-label .ui-icon {
  width: 13px;
  height: 13px;
}

.sticker-message {
  display: block;
  width: min(230px, 100%);
  max-height: 230px;
  object-fit: contain;
}

.sticker-emoji {
  padding: 5px 2px;
  font-size: 58px;
  line-height: 1;
}

@keyframes message-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.outbound {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message.outbound .message-body {
  background: var(--brand-2);
  border-color: #c9d8fb;
}

.message p {
  margin: 8px 0;
  line-height: 1.45;
}

.message-status {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.message-status.delivery {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.delivery-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #596579;
}

.delivery-mark i {
  position: absolute;
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.delivery-mark.single i {
  right: 4px;
}

.delivery-mark.double i:first-child {
  right: 8px;
}

.delivery-mark.double i:last-child {
  right: 3px;
}

.message-status.read .delivery-mark,
.message-status.status-read .delivery-mark {
  color: #0b84f3;
}

.message-status.failed {
  color: var(--danger);
}

.composer {
  position: relative;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  background: var(--panel);
}

.composer > * {
  min-width: 0;
  max-width: 100%;
}

.composer-input-row {
  display: grid;
  grid-template-columns: repeat(5, 36px) minmax(0, 1fr) 42px;
  align-items: end;
  gap: 5px;
}

.composer textarea {
  height: 46px;
  min-height: 46px;
  max-height: 144px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 21px;
  overflow-y: hidden;
  resize: none;
}

.composer-actions {
  min-height: 34px;
  justify-content: space-between;
  gap: 10px;
}

.composer-actions select {
  width: min(320px, 52%);
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.composer-tool,
.send-button {
  width: 36px;
  height: 46px;
  min-width: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.composer-tool:hover {
  color: var(--brand);
  border-color: #b8caf5;
  background: #f4f7fe;
}

.composer-tool.recording {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

.audio-recording-status {
  min-height: 38px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff7f7;
  color: #991b1b;
  font-size: 12px;
}

.audio-recording-status time {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}

.recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  animation: recording-pulse 1.1s ease-in-out infinite;
}

@keyframes recording-pulse {
  50% { opacity: 0.35; }
}

.composer-tool input {
  display: none;
}

.send-button {
  width: 42px;
  min-width: 42px;
  color: #fff;
  background: var(--brand);
}

.composer-picker {
  position: absolute;
  z-index: 4;
  left: 10px;
  bottom: calc(100% - 2px);
  width: min(360px, calc(100% - 20px));
  max-height: min(440px, calc(100vh - 190px));
  padding: 8px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(28, 34, 44, 0.16);
}

.composer-picker button {
  width: 36px;
  height: 36px;
  color: var(--ink);
  font-size: 20px;
}

.emoji-picker-shell {
  width: min(380px, calc(100% - 20px));
  padding: 0;
  overflow: hidden;
}

emoji-picker {
  width: 100%;
  height: min(390px, calc(100vh - 210px));
  --border-radius: 8px;
  --border-size: 0;
  --num-columns: 8;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.sticker-grid button {
  width: 100%;
  height: 104px;
  padding: 4px;
}

.sticker-grid img,
.gif-results img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.add-sticker {
  min-height: 38px;
  margin-top: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.add-sticker input {
  display: none;
}

.gif-picker {
  width: min(440px, calc(100% - 20px));
  overflow-y: auto;
}

.local-gif-library {
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.local-gif-heading {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.add-local-gif {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
}

.add-local-gif input {
  display: none;
}

.local-gif-results {
  max-height: 150px;
}

.picker-message.compact {
  padding: 10px;
}

.gif-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
}

.gif-search-row input {
  min-height: 38px;
}

.gif-search-row button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.gif-results {
  max-height: min(300px, calc(100vh - 300px));
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  overflow-y: auto;
}

.gif-results button {
  width: 100%;
  height: 90px;
  padding: 0;
  overflow: hidden;
  background: #eef1f5;
}

.gif-results img {
  object-fit: cover;
}

.picker-message {
  grid-column: 1 / -1;
  padding: 24px 10px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.picker-message.error {
  color: var(--danger);
}

.giphy-credit {
  padding-top: 7px;
  color: #111;
  text-align: right;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.gif-network-note {
  padding-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.composer-context {
  min-height: 42px;
  padding: 6px 8px 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.composer-context > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.message-modal-backdrop {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 31, 58, 0.32);
}

.attachment-image-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.responsible-contact-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.responsible-contact-row span {
  display: grid;
  min-width: 0;
}

.responsible-contact-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
}

.media-viewer-backdrop {
  z-index: 1200;
  background: rgba(5, 10, 18, 0.88);
}

.media-viewer {
  position: relative;
  display: grid;
  place-items: center;
  width: min(94vw, 1280px);
  height: min(92vh, 900px);
}

.media-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.media-viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  color: white;
  background: rgba(0, 0, 0, 0.58);
}

.start-conversation-backdrop {
  position: fixed;
}

.start-conversation-modal {
  width: min(620px, 100%);
  max-height: min(680px, calc(100vh - 36px));
}

.search-input {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.search-input input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.start-conversation-results {
  min-height: 120px;
  max-height: 390px;
  overflow-y: auto;
  border-block: 1px solid var(--line);
}

.start-contact-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.start-contact-row:last-child {
  border-bottom: 0;
}

.start-contact-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.start-contact-row > div > span:not(.pill) {
  color: var(--muted);
  font-size: 13px;
}

.start-contact-row .btn {
  flex: 0 0 auto;
}

.contact-assignee strong {
  color: var(--ink);
}

.message-modal {
  width: min(430px, 100%);
  padding: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(15, 31, 58, 0.24);
}

.message-modal .modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.message-modal h3 {
  margin: 0;
}

.message-modal .button-row {
  justify-content: flex-end;
}

.forward-preview {
  padding: 10px 12px;
}

.context-toggle,
.context-close {
  display: none;
}

.file-button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.attachment-preview,
.document-preview {
  display: block;
  width: min(100%, 420px);
  max-height: 300px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.document-preview {
  height: 260px;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 700;
}

.message-attachment {
  margin-top: 8px;
}

.message-attachment .attachment-preview,
.message-attachment .document-preview {
  margin-top: 0;
}

.attachment-file-meta,
.selected-attachment {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.attachment-file-meta {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(112, 128, 151, 0.22);
}

.attachment-file-meta > span,
.selected-attachment > span {
  min-width: 0;
  flex: 1;
}

.attachment-file-meta strong,
.attachment-file-meta small,
.selected-attachment strong,
.selected-attachment small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-file-meta small,
.selected-attachment small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.selected-attachment {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #b8d2ff;
  border-radius: 6px;
  background: #eef5ff;
  color: var(--ink);
}

.selected-attachment > .ui-icon {
  color: var(--brand);
}

.selected-attachment .action-btn {
  flex: 0 0 auto;
}

.composer-locked {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5d49a;
  border-radius: 6px;
  background: #fff8df;
  color: #705500;
  font-size: 12px;
  font-weight: 600;
}

.composer-tool.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.full-button {
  width: 100%;
  margin-top: 8px;
}

.internal-note,
.mini-timeline > div {
  margin-top: 10px;
  padding: 9px;
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  font-size: 12px;
}

.mini-timeline > div {
  border-color: var(--brand);
  background: var(--brand-2);
}

.internal-note span,
.mini-timeline span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.internal-note p,
.mini-timeline p {
  margin: 6px 0 0;
}

.team-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.team-list {
  border-right: 1px solid var(--line);
  background: #f8f9fb;
  overflow: auto;
}

.team-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fb;
}

.team-search input {
  margin-top: 6px;
  min-height: 38px;
}

.team-target {
  width: 100%;
  min-height: 82px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.team-target.unread strong {
  color: var(--brand);
}

.team-target:hover,
.team-target.active {
  background: #eef4ff;
  box-shadow: inset 4px 0 0 var(--brand);
}

.team-target-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-2);
  color: var(--brand);
}

.team-target strong,
.team-target small,
.team-target em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-target strong .team-target-position {
  display: inline;
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.team-target small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.team-target em {
  margin-top: 5px;
  color: #596473;
  font-size: 12px;
  font-style: normal;
}

.team-thread {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #eef1f5;
}

.team-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.team-header h2,
.team-header p {
  margin-bottom: 4px;
}

.team-header h2 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.team-messages {
  padding: 18px;
  min-height: 0;
  overflow: auto;
  background-color: #e7edf5;
  background-image:
    linear-gradient(rgba(233, 238, 245, 0.34), rgba(233, 238, 245, 0.34)),
    url("./assets/chat-radar-background.svg");
  background-size: auto, 180px 180px;
  background-position: center, 0 0;
  background-repeat: repeat, repeat;
}

.team-message {
  position: relative;
  width: fit-content;
  max-width: min(78%, 680px);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow-wrap: anywhere;
}

.team-message-body {
  position: relative;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(28, 34, 44, 0.06);
  overflow-wrap: anywhere;
}

.team-message:hover .message-actions,
.team-message:focus-within .message-actions {
  opacity: 1;
  pointer-events: auto;
}

.team-message:has([data-team-edit]) .message-meta {
  padding-right: 88px;
}

.team-message.outbound {
  margin-left: auto;
  flex-direction: row-reverse;
}

.team-message.outbound .team-message-body {
  background: var(--brand-2);
  border-color: #c9d8fb;
}

.team-message p {
  margin: 8px 0;
}

.team-message-link {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(105, 113, 125, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.team-composer {
  position: relative;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.team-composer .composer-input-row {
  grid-template-columns: repeat(4, 36px) minmax(0, 1fr) 42px;
}

.team-composer textarea {
  height: 46px;
  min-height: 46px;
  max-height: 140px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 21px;
  overflow-y: hidden;
  resize: none;
}

.team-composer .composer-actions {
  min-height: 24px;
  justify-content: flex-end;
}

.reply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.reply-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reply-card h3 {
  margin: 14px 0 6px;
}

.supervision-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(400px, 1.3fr);
  gap: 16px;
  align-items: start;
}

.supervision-panel-title,
.agent-workload-head,
.agent-workload-head > div,
.agent-conversations button,
.agent-conversation-meta {
  display: flex;
  align-items: center;
}

.supervision-panel-title,
.agent-workload-head,
.agent-conversations button {
  justify-content: space-between;
}

.supervision-panel-title {
  gap: 12px;
  margin-bottom: 6px;
}

.supervision-panel-title h2 {
  margin: 0;
}

.agent-workload {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.agent-workload-head {
  gap: 12px;
}

.agent-workload-head > div {
  min-width: 0;
  gap: 10px;
}

.agent-workload-head span,
.agent-workload-head strong,
.agent-workload-head small,
.agent-conversations span,
.agent-conversations strong,
.agent-conversations small {
  display: block;
  min-width: 0;
}

.agent-workload-head small,
.agent-conversations small {
  color: var(--muted);
}

.agent-workload-head > b {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-2);
  color: var(--brand);
}

.agent-conversations {
  margin-top: 9px;
  display: grid;
  gap: 5px;
}

.agent-conversations button {
  width: 100%;
  min-height: 52px;
  gap: 12px;
  padding: 8px 10px 8px 46px;
  border: 0;
  border-radius: 6px;
  background: #f8f9fb;
  color: var(--ink);
  text-align: left;
}

.agent-conversations button:hover {
  background: var(--brand-2);
}

.agent-conversations button > span:first-child {
  min-width: 0;
  overflow: hidden;
}

.agent-conversations button > span:first-child small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-meta {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 7px;
}

.agent-conversation-meta .pill {
  font-style: normal;
}

.agent-empty {
  padding: 8px 10px 8px 46px;
  color: var(--muted);
  font-size: 12px;
}

.sector-queue {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.sector-queue:hover {
  background: var(--brand-2);
}

.integration-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.integration-flow span {
  min-height: 64px;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  text-align: center;
  font-weight: 700;
}

.panel-title-row {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title-row h2 {
  margin: 0;
}

.history-recovery-panel {
  border-left: 3px solid var(--signal);
  background-image: radial-gradient(circle at 100% 0, transparent 0 42px, rgba(22, 184, 166, 0.06) 43px 44px, transparent 45px 66px, rgba(37, 99, 235, 0.05) 67px 68px, transparent 69px);
}

.history-recovery-panel .btn svg {
  width: 17px;
  height: 17px;
}

.whatsapp-web-box {
  display: grid;
  gap: 14px;
}

.qr-panel {
  width: fit-content;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-panel img {
  width: 220px;
  height: 220px;
  display: block;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state.large {
  align-self: center;
}

.status-waiting {
  background: var(--warn-bg);
  color: var(--warn);
}

.status-active {
  background: var(--brand-2);
  color: var(--ok);
}

.status-pending {
  background: var(--accent-bg);
  color: #a83f32;
}

.status-finished {
  background: var(--panel-2);
  color: var(--muted);
}

.ui-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

.radar-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(116, 212, 255, 0.46);
  border-radius: 50%;
  background: #0c1c3a;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.12), 0 9px 22px rgba(5, 12, 30, 0.28);
}

.radar-mark::before,
.radar-mark-ring {
  content: "";
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 50%;
}

.radar-mark::before {
  inset: 8px;
}

.radar-mark-ring {
  inset: 15px;
}

.radar-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 21px;
  height: 1px;
  background: rgba(34, 211, 238, 0.2);
}

.radar-mark-sweep {
  position: absolute;
  width: 18px;
  height: 2px;
  left: 21px;
  top: 20px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
  transform-origin: left center;
  animation: radar-sweep 3.2s linear infinite;
}

.radar-mark-signal {
  position: absolute;
  width: 5px;
  height: 5px;
  left: 28px;
  top: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 90, 71, 0.13), 0 0 10px rgba(240, 90, 71, 0.75);
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

.client-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.client-avatar.medium {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.client-avatar.small {
  width: 28px;
  height: 28px;
  margin-top: 3px;
  font-size: 10px;
}

.client-avatar.large {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.client-avatar.has-photo {
  overflow: hidden;
  background: #dfe4ea;
}

.client-avatar.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-blue { background: #315fca; }
.avatar-cyan { background: #168a9b; }
.avatar-coral { background: #d95646; }
.avatar-amber { background: #b7791f; }

.user-cell,
.user-avatar-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-field {
  flex-wrap: wrap;
}

.user-avatar-field input[type="file"] {
  max-width: 210px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sector-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #596473;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.sector-badge .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.sector-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sector-name .ui-icon {
  color: var(--brand);
}

.conversation-person,
.context-client {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.conversation-person-copy {
  min-width: 0;
  flex: 1;
}

.header-person {
  gap: 12px;
}

.header-person p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.client-name-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.client-name-trigger span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
}

.client-name-trigger .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted);
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease;
}

.client-name-trigger:hover .ui-icon,
.client-name-trigger:focus-visible .ui-icon {
  opacity: 1;
  color: var(--brand);
}

@media (hover: none) {
  .client-name-trigger .ui-icon {
    opacity: 1;
  }
}

.client-name-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 6px;
  width: min(100%, 480px);
}

.client-name-inline input {
  min-width: 0;
  height: 36px;
  padding: 6px 9px;
  font-size: 18px;
  font-weight: 700;
}

.client-name-inline .action-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.context-client {
  align-items: flex-start;
}

.context-client p {
  margin: 3px 0 0;
}

.conversation-signals {
  padding-left: 48px;
}

.wait-time {
  color: var(--warn) !important;
  font-weight: 750;
}

.new-message-dot,
.signal-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 7px;
  border-radius: 50%;
}

.new-message-dot {
  margin-right: 6px;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(22, 184, 166, 0.13);
  animation: signal-pulse 1.8s ease-in-out infinite;
}

.pill.status-waiting::before,
.pill.status-active::before,
.pill.status-pending::before,
.pill.status-finished::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  background: #e4f8f6;
  color: #087f73;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

.radar-overview {
  min-height: 330px;
  margin-bottom: 18px;
  padding: 24px 34px;
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #07142d 0%, #0d2550 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(7, 20, 45, 0.2);
}

.radar-stage {
  width: min(100%, 290px);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
  background: rgba(8, 28, 61, 0.72);
  box-shadow: inset 0 0 44px rgba(34, 211, 238, 0.05), 0 0 0 28px rgba(34, 211, 238, 0.025);
}

.radar-stage::before,
.radar-stage::after,
.radar-grid span {
  content: "";
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 50%;
}

.radar-stage::before { inset: 18%; }
.radar-stage::after { inset: 36%; }
.radar-grid span { inset: 9%; }

.radar-grid::before,
.radar-grid::after {
  content: "";
  position: absolute;
  background: rgba(34, 211, 238, 0.13);
}

.radar-grid::before {
  left: 50%;
  top: 4%;
  bottom: 4%;
  width: 1px;
}

.radar-grid::after {
  top: 50%;
  left: 4%;
  right: 4%;
  height: 1px;
}

.radar-grid i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.18), transparent 23%, transparent 100%);
  animation: radar-sweep 6s linear infinite;
}

.radar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.52);
  border-radius: 50%;
  background: #0c2b58;
  color: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.radar-point {
  width: 16px;
  height: 16px;
  position: absolute;
  z-index: 2;
  left: var(--point-x);
  top: var(--point-y);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.radar-point span {
  width: 7px;
  height: 7px;
  display: block;
  margin: auto;
  border-radius: 50%;
  background: currentColor;
  animation: radar-status-breathe 2.4s ease-in-out infinite;
}

.radar-point.point-waiting { color: #fb923c; }
.radar-point.point-active { color: #2dd4bf; }
.radar-point.point-pending { color: #a78bfa; }
.radar-point.point-finished { color: #9ca3af; }

.radar-point:hover {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 18px currentColor;
}

.radar-point.is-new {
  border-color: rgba(240, 90, 71, 0.72);
}

.radar-point.is-new span {
  animation: radar-new-dot 3.2s ease-out 1 both;
}

.radar-point.is-new::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: radar-point-pulse 1.05s ease-out 3;
}

.radar-point.needs-reply {
  border-color: rgba(240, 90, 71, 0.85);
}

.radar-point.needs-reply span {
  background: currentColor;
  animation: radar-reply-dot 1.5s ease-in-out infinite;
}

.radar-point.needs-reply::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: radar-point-pulse 1.35s ease-out infinite;
}

@keyframes radar-point-pulse {
  0% { opacity: 0.95; transform: scale(0.8); }
  75%, 100% { opacity: 0; transform: scale(2.35); }
}

@keyframes radar-new-dot {
  0%, 72% { background-color: var(--accent); }
  100% { background-color: currentColor; }
}

@keyframes radar-reply-dot {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px rgba(240, 90, 71, 0.7); }
}

@keyframes radar-status-breathe {
  0%, 100% { opacity: 0.62; transform: scale(0.82); box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 5px transparent; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .content-inbox {
    padding: 14px 18px;
  }

  .inbox-topbar {
    align-items: center;
    margin-bottom: 8px;
  }

  .inbox-topbar h1 {
    margin-bottom: 0;
    font-size: 24px;
  }

  .inbox-topbar h1::after,
  .inbox-topbar p {
    display: none;
  }

  .inbox-topbar .button-row {
    flex-wrap: nowrap;
  }

  .inbox-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .inbox-filters .field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .inbox-filters .field label {
    flex: 0 0 auto;
  }

  .inbox-filters select {
    min-height: 36px;
    padding: 7px 9px;
  }
}

.radar-overview-copy {
  max-width: 520px;
}

.radar-overview-copy .eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.radar-overview-copy h2 {
  margin: 7px 0 9px;
  font-size: 25px;
}

.radar-overview-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.signal-legend {
  margin: 20px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.signal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signal-dot.waiting { background: #fb923c; }
.signal-dot.active { background: #2dd4bf; }
.signal-dot.pending { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16); }
.signal-dot.new { background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 90, 71, 0.12); animation: signal-pulse 1.35s ease-in-out infinite; }

.radar-overview .btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.radar-overview .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.17);
}

.overview-operations {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.overview-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.overview-section > header {
  min-height: 76px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.overview-section > header .eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-section > header h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.overview-section > header > small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.overview-priority-list,
.overview-sector-list {
  display: grid;
}

.overview-priority-list > button,
.overview-sector-list > button {
  width: 100%;
  min-width: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.overview-priority-list > button:last-child,
.overview-sector-list > button:last-child {
  border-bottom: 0;
}

.overview-priority-list > button:hover,
.overview-sector-list > button:hover {
  background: #f7f9fc;
}

.overview-priority-list > button {
  min-height: 68px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.overview-priority-list > button > span:not(.client-avatar) {
  min-width: 0;
}

.overview-priority-list strong {
  display: flex;
  align-items: center;
  gap: 7px;
}

.overview-priority-list button > span > small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-urgent {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.priority-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.priority-meta time {
  color: var(--warn);
  font-size: 11px;
  font-weight: 750;
}

.priority-meta .sector-badge {
  max-width: 150px;
}

.overview-sector-list > button {
  min-height: 62px;
  padding: 9px 13px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(48px, auto)) 18px;
  align-items: center;
  gap: 10px;
}

.overview-sector-list > button > span:not(.sector-badge) {
  display: grid;
  justify-items: center;
}

.overview-sector-list > button > span > strong {
  font-size: 15px;
}

.overview-sector-list > button > span > small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.overview-sector-list > button > svg {
  width: 15px;
  color: var(--muted);
}

.overview-clear-state {
  min-height: 92px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.overview-clear-state svg {
  width: 17px;
  color: var(--signal);
}

.message-thread {
  position: relative;
  isolation: isolate;
  contain: paint;
}

.message-thread .message,
.message-thread .empty-state {
  position: relative;
  z-index: 1;
}

.radar-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
}

.radar-empty > strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.mini-radar {
  width: 74px;
  height: 74px;
  position: relative;
  margin-bottom: 8px;
  border: 1px solid #cbd8ea;
  border-radius: 50%;
  box-shadow: inset 0 0 0 17px rgba(37, 99, 235, 0.035);
}

.mini-radar span {
  position: absolute;
  inset: 21px;
  border: 1px solid #cbd8ea;
  border-radius: 50%;
}

.mini-radar i {
  width: 29px;
  height: 2px;
  position: absolute;
  left: 36px;
  top: 35px;
  background: var(--brand);
  transform-origin: left;
  animation: radar-sweep 4s linear infinite;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c5ccd6 transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #c5ccd6;
  background-clip: padding-box;
}

/* Inbox command surface */
.inbox-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 420px;
}

.inbox-title h1 {
  flex: 0 0 auto;
}

.inbox-search {
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 260px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.inbox-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.inbox-title-radar,
.queue-radar {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid #b8c8e8;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, #b8c8e8 49%, #b8c8e8 51%, transparent 52%),
    linear-gradient(transparent 48%, #b8c8e8 49%, #b8c8e8 51%, transparent 52%),
    radial-gradient(circle, transparent 32%, #cbd7ed 33%, #cbd7ed 36%, transparent 37%),
    #edf3ff;
}

.inbox-title-radar::after,
.queue-radar::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(from 12deg, rgba(37, 99, 235, 0.55), transparent 24%);
  animation: inbox-radar-sweep 3.2s linear infinite;
}

.inbox-title-radar i,
.queue-radar::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(22, 184, 166, 0.13);
}

@keyframes inbox-radar-sweep {
  to { transform: rotate(360deg); }
}

.inbox-toolbar .inbox-filters {
  width: fit-content;
  padding: 5px;
  gap: 4px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #eef2f7;
}

.inbox-toolbar .field {
  min-width: 220px;
  grid-template-columns: auto minmax(135px, 1fr);
  gap: 8px;
  padding-left: 10px;
}

.inbox-toolbar .field label {
  min-width: 54px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4f5d70;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inbox-toolbar .field label svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.inbox-toolbar .field select {
  min-height: 40px;
  border-color: #d6dde8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 34, 44, 0.04);
}

.queue-summary {
  min-width: 102px;
  min-height: 48px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 8px;
  text-align: left;
  background: #f8fafc;
}

.queue-summary .queue-radar {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
}

.queue-summary strong,
.queue-summary span:not(.queue-radar) {
  line-height: 1;
}

.queue-summary strong {
  align-self: end;
  font-size: 18px;
}

.queue-summary span:not(.queue-radar) {
  align-self: start;
  margin-top: 3px;
}

.conversation-context {
  position: relative;
  padding: 0;
  background: #fff;
  box-shadow: inset 1px 0 0 #e7edf5;
}

.conversation-context .context-close {
  z-index: 2;
  top: 10px;
  right: 10px;
}

.conversation-context .context-section {
  margin: 0;
  padding: 20px 18px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.conversation-context .context-section + .context-section {
  margin-top: 0;
  padding-top: 20px;
  border-top: 0;
}

.conversation-context .context-heading {
  min-height: 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conversation-context .context-heading > svg {
  width: 16px;
  height: 16px;
  color: #2563eb;
}

.conversation-context .context-heading h3 {
  margin: 0;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-client {
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.context-client > div:last-child {
  min-width: 0;
}

.context-client strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.context-client p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.client-responsible-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dcebea;
  border-radius: 8px;
  background: #f4fbfa;
}

.client-responsible-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.client-responsible-label svg {
  width: 15px;
  height: 15px;
  color: #168a9b;
}

.client-responsible-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  margin-bottom: 12px;
}

.client-responsible-editor select {
  min-width: 0;
  min-height: 38px;
  border-color: #cfe4e2;
  font-size: 11px;
}

.client-responsible-editor .context-action-button {
  color: #087b73;
  border-color: #b9deda;
  background: #e5f4f3;
}

.client-responsible-editor .context-action-button:hover:not(:disabled) {
  background: #d3eeeb;
}

.client-responsible-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #dcebea;
  border-radius: 8px;
  background: transparent;
}

.client-responsible-copy {
  min-width: 0;
}

.client-responsible-copy > strong,
.client-responsible-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-responsible-copy > strong {
  color: #111827;
  font-size: 13px;
}

.client-responsible-copy > span {
  margin: 2px 0 5px;
  color: var(--muted);
  font-size: 10px;
}

.client-responsible-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.client-responsible-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.client-responsible-actions .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.client-responsible-actions .action-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-responsible-actions .action-btn svg {
  width: 14px;
  height: 14px;
}

.client-responsible-actions .action-btn.primary {
  background: #e5f4f3;
  color: #087b73;
}

.client-responsible-actions .action-btn.primary:hover:not(:disabled) {
  background: #d3eeeb;
}

.conversation-context .context-control-group + .context-control-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}

.conversation-context .context-control-group label {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.conversation-context select,
.conversation-context textarea {
  min-height: 42px;
  border-color: #d8e1ee;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.context-inline-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}

.context-inline-action select {
  min-width: 0;
}

.context-transfer-menu {
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #f8fafc;
}

.context-transfer-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.context-transfer-menu summary .ui-icon:first-child {
  color: #2563eb;
}

.context-transfer-menu summary::-webkit-details-marker {
  display: none;
}

.context-transfer-menu summary .transfer-chevron {
  margin-left: auto;
  transition: transform 160ms ease;
}

.context-transfer-menu[open] summary .transfer-chevron {
  transform: rotate(180deg);
}

.context-transfer-menu.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.context-transfer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 0 10px;
  min-height: 38px;
  border: 1px solid #d8e1ee;
  border-radius: 7px;
  background: #fff;
}

.context-transfer-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.search-field-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  color: var(--brand);
  pointer-events: none;
}

.search-field-icon .ui-icon,
.search-field-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  color: inherit;
}

.context-transfer-options {
  max-height: 255px;
  overflow-y: auto;
  border-top: 1px solid #e3e8ef;
  padding: 7px;
  background: #fff;
}

.context-transfer-options button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.context-transfer-options button:last-child {
  border-bottom: 0;
}

.context-transfer-options button:hover:not(:disabled) {
  background: #eef5ff;
}

.context-transfer-options button > span:first-child {
  min-width: 0;
}

.context-transfer-options strong,
.context-transfer-options small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-transfer-options strong {
  color: #111827;
  font-size: 13px;
}

.context-transfer-options small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
}

.context-transfer-options .presence-status {
  gap: 5px;
}

.context-transfer-options .presence-status span {
  font-size: 10px;
}

.context-transfer-empty {
  display: block;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
}

.context-action-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd8ee;
  border-radius: 6px;
  background: #eef3fb;
  color: #24406f;
  cursor: pointer;
}

.context-action-button:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.context-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.conversation-context .full-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: #d8e2f5;
  background: #eef3fb;
  color: #24406f;
}

.conversation-context .full-button svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.conversation-context .full-button:hover:not(:disabled) {
  border-color: #b9c9e8;
  background: #e4ecfa;
}

.context-note-section form {
  display: grid;
  gap: 8px;
}

.context-note-section textarea {
  min-height: 84px;
  resize: vertical;
}

@media (max-width: 1180px) {
  .inbox-title { min-width: 0; }
  .inbox-title h1 { min-width: 0; }
  .inbox-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .inbox-toolbar .inbox-filters { width: 100%; }
  .inbox-toolbar .field { min-width: 0; }
}

@media (max-width: 620px) {
  .inbox-toolbar .field {
    grid-template-columns: 1fr;
    padding: 7px;
  }
  .inbox-toolbar .field label { min-width: 0; }
  .inbox-toolbar > .button-row { gap: 8px; }
  .queue-summary { min-width: 96px; }
}

@media (max-width: 1180px) {
  .inbox-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .inbox-toolbar .inbox-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .inbox-toolbar > .button-row {
    grid-column: 2;
    grid-row: 1;
  }

  .inbox-layout {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .conversation-workspace {
    min-height: 0;
  }

  .conversation-header .button-row.compact {
    width: auto;
    flex-wrap: nowrap;
  }

  .conversation-header .button-row.compact .action-btn {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
  }

  .conversation-header .responsive-action-label {
    display: none;
  }

  .conversation-context {
    position: absolute;
    z-index: 5;
    inset: 0 0 0 auto;
    width: min(360px, 100%);
    max-height: none;
    border-left: 1px solid var(--line);
    border-top: 0;
    box-shadow: -16px 0 32px rgba(28, 34, 44, 0.16);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .conversation-context.open {
    transform: translateX(0);
    visibility: visible;
  }

  .context-toggle,
  .context-close {
    display: inline-flex;
  }

  .context-close {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 0 10px auto;
    background: var(--panel);
  }
}

@media (max-width: 900px) {
  .login-page,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .login-aside {
    min-height: 260px;
    order: -1;
    background-position: 62% center;
  }

  .sidebar {
    position: static;
  }

  .sidebar .brand-lockup {
    margin-bottom: 4px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding: 22px 16px;
    overflow: visible;
  }

  .content-team,
  .content-inbox {
    display: block;
  }

  .inbox-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .inbox-toolbar .inbox-filters,
  .inbox-toolbar > .button-row {
    grid-column: 1;
    grid-row: auto;
  }

  .inbox-toolbar .inbox-filters {
    grid-template-columns: 1fr;
  }

  .inbox-toolbar > .button-row {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .radar-overview {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .overview-operations {
    grid-template-columns: 1fr;
  }

  .radar-stage {
    width: min(100%, 230px);
  }

  .radar-overview-copy {
    text-align: center;
  }

  .signal-legend {
    justify-content: center;
  }

  .conversation-signals {
    padding-left: 48px;
  }

  .inbox-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .conversation-list,
  .conversation-context {
    max-height: 340px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .conversation-context {
    max-height: none;
    border-top: 0;
    grid-column: auto;
  }

  .conversation-workspace {
    min-height: 560px;
  }

  .conversation-header,
  .ownership-bar {
    align-items: flex-start;
  }

  .conversation-header > .button-row {
    width: 100%;
  }

  .supervision-grid,
  .integration-flow,
  .inbox-filters {
    grid-template-columns: 1fr;
  }

  .team-layout {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .team-list {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .team-thread {
    min-height: 560px;
  }
}

@media (max-width: 420px) {
  .composer-input-row {
    grid-template-columns: repeat(5, 32px) minmax(80px, 1fr) 40px;
    gap: 3px;
  }

  .composer-tool {
    width: 32px;
    min-width: 32px;
  }

  .composer-actions .muted {
    display: none;
  }

  .composer-actions select {
    width: 100%;
  }
}
.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid #b9dfd4;
  border-radius: 6px;
  background: #effbf7;
  color: #116653;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
