:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #10141c;
  --panel-2: #151b25;
  --panel-3: #1b2330;
  --ink: #f5f7fb;
  --muted: #8f9baa;
  --placeholder: rgba(143, 155, 170, 0.72);
  --soft: #b9c2cf;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --green: #7dffb2;
  --green-2: #29d17d;
  --purple: #a88cff;
  --blue: #5bc8ff;
  --amber: #ffc95e;
  --red: #ff5f72;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --content-title-size: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(125, 255, 178, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(168, 140, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(91, 200, 255, 0.08), transparent 34rem),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--ink);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 440px);
}

.login-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(16, 20, 28, 0.96), rgba(11, 14, 20, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 26px;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
}

.login-brand {
  margin-bottom: 28px;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.1rem);
  line-height: 1.04;
}

.login-copy h1 span {
  display: block;
  overflow-wrap: anywhere;
}

.login-copy p:last-child {
  margin: 14px 0 0;
  color: var(--soft);
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.login-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  padding: 0 13px;
}

.login-form input:hover,
.login-form input:focus {
  border-color: rgba(125, 255, 178, 0.42);
}

.login-button {
  min-height: 48px;
  margin-top: 4px;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-forgot-link {
  justify-self: center;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.login-forgot-link:hover {
  color: var(--soft);
  text-decoration: underline;
}

.login-error {
  margin: 0;
  border: 1px solid rgba(255, 95, 114, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 95, 114, 0.1);
  color: #ffc3cb;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

#confirmSuccess {
  border-color: rgba(125, 255, 178, 0.32);
  background: rgba(125, 255, 178, 0.1);
  color: var(--green);
}

.login-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.setup-shell {
  width: min(100%, 620px);
}

.setup-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.setup-step {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.setup-step.active {
  border-color: rgba(125, 255, 178, 0.5);
  color: var(--ink);
  background: rgba(125, 255, 178, 0.1);
}

.setup-step.done {
  border-color: rgba(125, 255, 178, 0.28);
  color: var(--green);
}

.field-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.phone-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-weight: 700;
  white-space: nowrap;
}

.phone-input-group input {
  flex: 1;
  min-width: 0;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}

.setup-config-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.setup-schedule {
  display: grid;
  gap: 8px;
}

.setup-schedule-row {
  display: grid;
  grid-template-columns: 1.3fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.setup-schedule-day {
  margin: 0;
  font-size: 0.85rem;
}

.setup-schedule-row input[type="time"] {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  padding: 0 8px;
}

.setup-schedule-row input[type="time"]:disabled {
  opacity: 0.4;
}

.setup-schedule-sep {
  color: var(--muted);
  font-size: 0.8rem;
}

.setup-summary {
  display: grid;
  gap: 10px;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.setup-summary strong {
  color: var(--ink);
}

.setup-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.setup-actions .primary-button {
  flex: 1;
}

button,
input,
select {
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-copy p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-collapse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.sidebar-collapse-button:hover {
  border-color: rgba(125, 255, 178, 0.32);
  color: var(--ink);
}

.sidebar-collapse-button .svg-icon {
  width: 16px;
  height: 16px;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar.collapsed {
  padding-left: 16px;
  padding-right: 16px;
}

.sidebar.collapsed .brand {
  justify-content: center;
}

.sidebar.collapsed .brand-copy {
  display: none;
}

.sidebar.collapsed .sidebar-collapse-button {
  margin-left: 0;
}

.sidebar.collapsed .nav-item {
  display: flex;
  justify-content: center;
  padding: 11px;
}

.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-detail {
  display: none;
}

.sidebar.collapsed .sidebar-status {
  justify-content: center;
}

.sidebar.collapsed .session-card {
  justify-items: center;
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(125, 255, 178, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.18), rgba(168, 140, 255, 0.16));
  color: var(--green);
  font-weight: 900;
}

.brand p,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  transition: 160ms var(--ease);
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(125, 255, 178, 0.28);
  background: rgba(125, 255, 178, 0.08);
  color: var(--ink);
}

.nav-tree {
  display: grid;
  gap: 6px;
}

.nav-subtree {
  display: grid;
  gap: 4px;
  padding-left: 22px;
}

.nav-subitem {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav-subitem:hover,
.nav-subitem.active {
  border-color: rgba(125, 255, 178, 0.22);
  background: rgba(125, 255, 178, 0.07);
  color: var(--ink);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.sidebar-sound-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 13px;
  color: var(--soft);
}

.sound-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sound-test-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 255, 178, 0.34);
  border-radius: 6px;
  background: rgba(125, 255, 178, 0.09);
  color: #8dffac;
  font-size: 10px;
}

.sound-test-button:hover {
  border-color: rgba(125, 255, 178, 0.58);
  background: rgba(125, 255, 178, 0.14);
}

.sidebar-status small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.session-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.session-card span,
.session-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session-card strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
}

.session-card .ghost-button {
  width: 100%;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 18px rgba(125, 255, 178, 0.42);
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.danger {
  background: var(--red);
}

.main {
  width: min(1500px, 100%);
  min-width: 0;
  padding: 24px;
}

.view {
  display: grid;
  gap: 18px;
}

.global-alert-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
  max-height: 42px;
  margin-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(18px);
}

.global-alert-bar.is-empty {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.global-alert-item {
  display: inline-grid;
  grid-template-columns: auto auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--soft);
  font-size: 13px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
  flex: 0 0 auto;
}

.global-alert-item strong {
  font-weight: 680;
}

.global-alert-item > span:not(.global-alert-pulse):not(.global-alert-countdown) {
  color: color-mix(in srgb, currentColor 78%, var(--muted));
  font-weight: 500;
}

.global-alert-item strong,
.global-alert-item span {
  white-space: nowrap;
}

.global-alert-item.warning {
  border-color: rgba(255, 199, 95, 0.22);
  background: rgba(255, 199, 95, 0.045);
  color: #f4d28a;
  animation: global-alert-item-flash-warning 2.4s ease-in-out infinite;
}

.global-alert-item.urgent,
.global-alert-item.danger {
  border-color: rgba(255, 93, 93, 0.26);
  background: rgba(255, 93, 93, 0.055);
  color: #f3aaa9;
  animation: global-alert-item-flash-danger 1.6s ease-in-out infinite;
}

.global-alert-item.developer {
  border-color: rgba(90, 151, 255, 0.24);
  background: rgba(90, 151, 255, 0.052);
  color: #b9cdf0;
  animation: global-alert-item-flash-developer 2.8s ease-in-out infinite;
}

.global-alert-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.86;
}

.global-alert-item.warning .global-alert-pulse,
.global-alert-item.urgent .global-alert-pulse,
.global-alert-item.danger .global-alert-pulse {
  box-shadow: 0 0 0 0 currentColor;
  animation: global-alert-pulse 1.8s ease-out infinite;
}

.global-alert-countdown {
  justify-self: end;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, currentColor 48%, transparent);
  border-radius: 999px;
  color: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 760;
  opacity: 0.82;
}

.global-alert-countdown.urgent {
  color: #ffd0d0;
}

@keyframes global-alert-pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
    opacity: 0.66;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 1;
  }
}

@keyframes global-alert-item-flash-warning {
  0%, 100% {
    border-color: rgba(255, 199, 95, 0.22);
    background: rgba(255, 199, 95, 0.045);
  }
  50% {
    border-color: rgba(255, 199, 95, 0.55);
    background: rgba(255, 199, 95, 0.14);
  }
}

@keyframes global-alert-item-flash-danger {
  0%, 100% {
    border-color: rgba(255, 93, 93, 0.26);
    background: rgba(255, 93, 93, 0.055);
  }
  50% {
    border-color: rgba(255, 93, 93, 0.62);
    background: rgba(255, 93, 93, 0.16);
  }
}

@keyframes global-alert-item-flash-developer {
  0%, 100% {
    border-color: rgba(90, 151, 255, 0.24);
    background: rgba(90, 151, 255, 0.052);
  }
  50% {
    border-color: rgba(90, 151, 255, 0.5);
    background: rgba(90, 151, 255, 0.13);
  }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.page-header.compact {
  padding: 6px 0 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: var(--content-title-size);
}

h3 {
  margin-bottom: 0;
  font-size: 15px;
}

.view:not(.conversations-view) .panel-header h2,
.view:not(.conversations-view) .panel > h2,
.view:not(.conversations-view) .module-title h1,
.view:not(.conversations-view) .client-detail h2,
.view:not(.conversations-view) .task-title h3,
.view:not(.conversations-view) .settings-details summary,
.view:not(.conversations-view) .users-section-header h2 {
  font-size: var(--content-title-size) !important;
}

.panel,
.kpi-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 28, 0.94);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.system-pill,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.tag.green {
  border-color: rgba(125, 255, 178, 0.28);
  color: var(--green);
}

.tag.blue {
  border-color: rgba(91, 200, 255, 0.34);
  color: var(--blue);
}

.tag.red {
  border-color: rgba(255, 95, 114, 0.32);
  color: var(--red);
}

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

.tag.purple {
  border-color: rgba(168, 140, 255, 0.34);
  color: var(--purple);
}

.tag.amber {
  border-color: rgba(255, 201, 94, 0.36);
  color: var(--amber);
}

.tag.white {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

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

.kpi-card {
  padding: 18px;
  overflow: hidden;
}

.kpi-card span,
.kpi-card small {
  color: var(--muted);
}

.kpi-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--green);
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(125, 255, 178, 0.18);
}

.kpi-card.accent strong {
  color: var(--purple);
}

.daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 18px;
}

.work-column,
.right-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.task-stack {
  display: grid;
  gap: 18px;
}

.task-section {
  display: grid;
  gap: 10px;
}

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

.task-title span {
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(125, 255, 178, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.task-list,
.alert-list {
  display: grid;
  gap: 9px;
}

.task-row,
.alert-row,
.appointment-row,
.price-row,
.chat-row,
.client-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
}

.task-row strong,
.alert-row strong,
.appointment-row strong,
.client-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.task-name-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  overflow: visible;
}

.task-name-line strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.client-display-name {
  display: inline;
  white-space: nowrap;
}

.client-name-source {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.client-display-name .client-name-source {
  display: inline;
  margin-top: 0;
}

.task-meta {
  color: var(--muted);
  font-size: 14px;
}

.task-meta-strong {
  color: var(--ink);
  font-size: 14px;
}

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

.task-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.assignment-offer {
  border-color: rgba(92, 179, 255, 0.34);
  background: rgba(92, 179, 255, 0.055);
}

.assignment-offer.priority-urgente,
.assignment-offer.priority-alta {
  border-color: rgba(255, 191, 87, 0.42);
  background: rgba(255, 191, 87, 0.06);
}

.assignment-offer.is-processing {
  opacity: 0.62;
  pointer-events: none;
}

.assignment-offer.is-processing .task-actions button,
.assignment-offer.is-processing .task-actions select {
  cursor: wait;
}

.assignment-actions {
  align-items: flex-start;
  padding-top: 34px;
}

.assignment-actions button {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.assignment-actions .assignment-reject,
.assignment-actions .assignment-accept,
.assignment-actions .assignment-followup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
}

.compact-select {
  min-height: 44px;
  max-width: 170px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.compact-select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--green);
}

.compact-select.online {
  color: #5fe08f;
}

.compact-select.offline {
  color: #8d98aa;
}

.assignment-accept {
  border-color: rgba(92, 179, 255, 0.55);
  background: rgba(92, 179, 255, 0.14);
  color: #9fd1ff;
}

.assignment-accept:hover:not(:disabled) {
  border-color: rgba(92, 179, 255, 0.82);
  background: rgba(92, 179, 255, 0.22);
}

.assignment-reject {
  min-height: 44px;
}

.primary-button,
.ghost-button,
.danger-button,
.caution-button,
.text-button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    color 160ms var(--ease);
}

.primary-button {
  border: 1px solid rgba(125, 255, 178, 0.38);
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.18), rgba(41, 209, 125, 0.26));
  color: var(--ink);
}

.primary-button:hover {
  border-color: rgba(125, 255, 178, 0.64);
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.26), rgba(41, 209, 125, 0.36));
  box-shadow: 0 0 0 1px rgba(125, 255, 178, 0.14), 0 12px 26px rgba(41, 209, 125, 0.13);
}

.reactivate-action {
  border-color: rgba(141, 255, 172, 0.7);
  background:
    linear-gradient(135deg, rgba(141, 255, 172, 0.35), rgba(41, 209, 125, 0.5)),
    rgba(82, 223, 101, 0.16);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(141, 255, 172, 0.18),
    0 0 24px rgba(82, 223, 101, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: reactivateBreathe 2s ease-in-out infinite alternate;
}

.reactivate-action:hover {
  border-color: rgba(141, 255, 172, 0.92);
  background:
    linear-gradient(135deg, rgba(141, 255, 172, 0.44), rgba(41, 209, 125, 0.62)),
    rgba(82, 223, 101, 0.22);
  box-shadow:
    0 0 0 1px rgba(141, 255, 172, 0.26),
    0 0 32px rgba(82, 223, 101, 0.34),
    0 12px 28px rgba(41, 209, 125, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@keyframes reactivateBreathe {
  from {
    border-color: rgba(141, 255, 172, 0.46);
    box-shadow:
      0 0 0 1px rgba(141, 255, 172, 0.08),
      0 0 10px rgba(82, 223, 101, 0.1),
      0 0 22px rgba(82, 223, 101, 0.035),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  to {
    border-color: rgba(141, 255, 172, 1);
    box-shadow:
      0 0 0 1px rgba(141, 255, 172, 0.36),
      0 0 34px rgba(82, 223, 101, 0.48),
      0 0 58px rgba(82, 223, 101, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reactivate-action {
    animation: none;
  }

  .recording-dot,
  .recording-wave i {
    animation: none;
  }
}

.primary-button:disabled:hover {
  border-color: rgba(125, 255, 178, 0.38);
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.18), rgba(41, 209, 125, 0.26));
  box-shadow: none;
}

.ghost-button,
.text-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.ghost-button:hover,
.text-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.ghost-button:disabled:hover,
.text-button:disabled:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  box-shadow: none;
}

.danger-button {
  border: 1px solid rgba(255, 95, 114, 0.42);
  background: rgba(255, 95, 114, 0.14);
  color: #ffdce2;
}

.caution-button {
  border: 1px solid rgba(255, 138, 45, 0.72);
  background: linear-gradient(135deg, rgba(255, 166, 45, 0.34), rgba(255, 83, 36, 0.46));
  color: #ffe6d6;
}

.danger-button:hover {
  border-color: rgba(255, 95, 114, 0.68);
  background: rgba(255, 95, 114, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 95, 114, 0.11), 0 12px 26px rgba(255, 95, 114, 0.11);
}

.caution-button:hover {
  border-color: rgba(255, 148, 45, 0.96);
  background: linear-gradient(135deg, rgba(255, 176, 45, 0.46), rgba(255, 74, 32, 0.6));
  box-shadow: 0 0 0 1px rgba(255, 138, 45, 0.24), 0 12px 28px rgba(255, 74, 32, 0.2);
}

.danger-button:disabled:hover {
  border-color: rgba(255, 95, 114, 0.42);
  background: rgba(255, 95, 114, 0.14);
  box-shadow: none;
}

.caution-button:disabled:hover {
  border-color: rgba(255, 138, 45, 0.72);
  background: linear-gradient(135deg, rgba(255, 166, 45, 0.34), rgba(255, 83, 36, 0.46));
  box-shadow: none;
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.caution-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.alert-row {
  padding: 12px;
  border-color: rgba(255, 95, 114, 0.26);
}

.alert-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.text-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mini-chat-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.mini-chat-list {
  display: grid;
  gap: 7px;
}

.mini-chat-list button,
.chat-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.mini-chat-list button:hover,
.chat-row:hover {
  border-color: rgba(125, 255, 178, 0.32);
  background: rgba(125, 255, 178, 0.07);
  box-shadow: inset 3px 0 0 rgba(125, 255, 178, 0.58);
}

.mini-chat-list button {
  padding: 9px;
}

.mini-chat-preview {
  min-height: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}

.conversation-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 240px;
  gap: 14px;
  min-height: calc(100vh - 126px);
}

.chat-list-panel,
.chat-panel,
.context-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 28, 0.94);
  box-shadow: var(--shadow);
}

.chat-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 12px;
}

.chat-tabs,
.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.chat-tabs button,
.segmented button {
  flex: 1;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.chat-tabs button.active,
.segmented button.active {
  background: rgba(125, 255, 178, 0.12);
  color: var(--green);
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-row {
  padding: 11px;
}

.chat-row.active {
  border-color: rgba(125, 255, 178, 0.38);
  background: rgba(125, 255, 178, 0.08);
}

.chat-row-top,
.chat-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.chat-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}

.message {
  max-width: min(78%, 720px);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.message.ai {
  align-self: flex-end;
  border-color: rgba(91, 200, 255, 0.24);
  background: rgba(91, 200, 255, 0.11);
}

.message.human {
  align-self: flex-start;
  border-color: rgba(125, 255, 178, 0.18);
}

.message small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.context-panel {
  padding: 16px;
  overflow-y: auto;
}

.context-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.context-item {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.context-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.context-item strong {
  display: block;
  margin-top: 4px;
}

.search-field {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
}

.search-field.wide {
  min-width: min(520px, 100%);
}

.search-field span,
label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 8px 10px;
}

select option {
  background: #111827;
}

.appointments-layout,
.prices-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.prices-layout {
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.capacity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.capacity-strip article,
.stats-stack article,
.monitor-metrics article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.capacity-strip strong,
.stats-stack strong,
.monitor-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.appointment-list,
.price-list,
.monitor-alerts {
  display: grid;
  gap: 9px;
}

.appointment-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.time-box {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.pipeline-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  height: calc(100vh - 190px);
  min-height: 720px;
  container-type: inline-size;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

@container (min-width: 2150px) {
  .pipeline-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }
}

.stage-column {
  --stage-accent: var(--green);
  --stage-accent-soft: rgba(125, 255, 178, 0.1);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--stage-accent-soft), transparent 96px),
    rgba(16, 20, 28, 0.86);
}

.stage-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.095);
}

.stage-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.stage-title strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.stage-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.stage-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 46%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--stage-accent) 13%, transparent);
  color: var(--stage-accent);
}

.stage-icon .svg-icon {
  width: 21px;
  height: 21px;
}

.stage-count {
  border-color: color-mix(in srgb, var(--stage-accent) 34%, transparent);
  background: color-mix(in srgb, var(--stage-accent) 10%, transparent);
  color: var(--stage-accent);
  font-size: 18px;
}

.stage-nuevo {
  --stage-accent: #5bc8ff;
  --stage-accent-soft: rgba(91, 200, 255, 0.11);
}

.stage-en_conversacion {
  --stage-accent: #7fdcff;
  --stage-accent-soft: rgba(127, 220, 255, 0.1);
}

.stage-lead_frio {
  --stage-accent: #9bb3d9;
  --stage-accent-soft: rgba(155, 179, 217, 0.1);
}

.stage-cotizado_sin_cita {
  --stage-accent: #ffc95e;
  --stage-accent-soft: rgba(255, 201, 94, 0.1);
}

.stage-cita_agendada {
  --stage-accent: #7dffb2;
  --stage-accent-soft: rgba(125, 255, 178, 0.1);
}

.stage-convertido {
  --stage-accent: #a88cff;
  --stage-accent-soft: rgba(168, 140, 255, 0.11);
}

.stage-descartado {
  --stage-accent: #8a94a6;
  --stage-accent-soft: rgba(138, 148, 166, 0.1);
}

.stage-sin_avance {
  --stage-accent: #ff8fa0;
  --stage-accent-soft: rgba(255, 95, 114, 0.1);
}

.stage-scroll {
  grid-row: 3;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.stage-quote-filter {
  grid-row: 2;
  display: grid;
  gap: 8px;
  padding: 8px 10px 10px;
  margin: 0 10px 2px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: var(--soft);
}

.stage-quote-filter-slider {
  display: grid;
  gap: 5px;
}

.stage-quote-filter-slider > span {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-quote-filter-slider input[type="range"] {
  width: 100%;
  min-height: 0;
  height: 14px;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--green);
  cursor: pointer;
}

.stage-quote-filter-slider input[type="range"]:disabled {
  accent-color: rgba(255, 255, 255, 0.18);
  cursor: not-allowed;
  opacity: 0.5;
}

.stage-quote-filter-toggle:first-child {
  padding-top: 0;
  border-top: none;
}

.stage-quote-filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
}

.stage-quote-filter-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--green);
  cursor: pointer;
}

.stage-quote-filter-toggle span {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-card {
  padding: 10px;
  text-align: left;
  color: var(--ink);
}

.client-card.active {
  border-color: rgba(168, 140, 255, 0.5);
  background: rgba(168, 140, 255, 0.1);
}

.client-card > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.client-card strong {
  color: rgba(255, 255, 255, 0.94);
}

.client-card .client-phone {
  color: rgba(125, 255, 178, 0.86);
}

.client-card .client-vehicle {
  color: rgba(255, 255, 255, 0.82);
}

.client-card .client-contact {
  color: rgba(143, 155, 170, 0.82);
}

.client-card .client-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.client-card-tags .tag {
  margin: 0;
  padding: 3px 8px;
  font-size: 11px;
}

.client-detail {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 28, 0.94);
  box-shadow: var(--shadow);
}

.client-detail h2 {
  font-weight: 600;
}

.client-detail .context-block h3 {
  font-weight: 600;
}

.client-detail .context-line-item > span {
  font-size: 13px;
  font-weight: 400;
}

.client-detail .context-line-item > strong {
  font-size: 15px;
  font-weight: 500;
}

.context-block-next-action {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.context-next-action-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.4;
}

.client-detail-chat-button {
  width: 100%;
  margin-top: 2px;
}

.appointment-chat-button.client-detail-chat-button {
  border-color: rgba(125, 255, 178, 0.28);
  background: rgba(125, 255, 178, 0.1);
  color: var(--green);
}

.appointment-chat-button.client-detail-chat-button:hover {
  border-color: rgba(125, 255, 178, 0.48);
  background: rgba(125, 255, 178, 0.16);
  box-shadow: 0 0 18px rgba(125, 255, 178, 0.14);
}

.client-create-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px);
  align-items: start;
}

.client-create-form {
  display: grid;
  gap: 16px;
}

.client-create-form .form-grid {
  grid-template-columns: 1fr;
}

.client-create-button {
  margin-top: 12px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.price-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.price-form .primary-button {
  margin-top: 24px;
}

.price-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.price-form .form-grid {
  align-content: start;
}

.price-toolbar > select {
  height: 40px;
  min-height: 40px;
  align-self: end;
  padding: 8px 34px 8px 12px;
  border-radius: 8px;
}

.price-table-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.price-table-panel .price-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 170px 120px 48px 72px;
  align-items: center;
  gap: 10px;
  padding: 11px;
}

.price-row strong {
  text-transform: uppercase;
}

.price-year-range {
  font-size: 14px;
}

.price-system-flow {
  grid-template-columns: 78px 16px 48px;
  column-gap: 6px;
  margin-right: 0;
}

.price-status-toggle {
  justify-self: start;
}

.price-edit-button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  border-color: rgba(90, 151, 255, 0.36);
  background: rgba(90, 151, 255, 0.14);
  color: #b8d2ff;
  font-size: 14px;
  font-weight: 700;
}

.price-edit-button:hover:not(:disabled) {
  border-color: rgba(90, 151, 255, 0.5);
  background: rgba(90, 151, 255, 0.2);
  color: #d4e3ff;
}

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

.operation-settings-card {
  align-self: start;
}

.settings-basic-grid {
  grid-template-columns: 1fr;
}

.settings-advanced-grid {
  grid-template-columns: 1fr;
}

.assignment-engine-toggle {
  margin-top: 22px;
}

.dev-tool-panel {
  border-color: rgba(168, 140, 255, 0.32);
  background: rgba(168, 140, 255, 0.05);
}

.reactivation-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.reactivation-mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
}

.reactivation-mode-option.active {
  border-color: rgba(168, 140, 255, 0.5);
  background: rgba(168, 140, 255, 0.12);
  color: var(--ink);
}

.assignment-timers-form {
  margin-top: 12px;
}

.assignment-save-button {
  margin-top: 14px;
}

.system-settings-card {
  max-width: 920px;
}

.system-settings-card h2,
.commercial-settings-card h2 {
  margin-bottom: 8px;
}

.commercial-section-header {
  margin-top: 18px;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.user-form {
  display: grid;
  gap: 14px;
  font-size: 15px;
}

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

.user-form label span,
.user-form .checkbox-line span,
.user-form input,
.user-form select,
.user-form summary,
.user-form .primary-button,
.user-form .ghost-button {
  font-size: 15px;
}

.user-form label > span {
  font-size: 13px;
}

.users-table-panel {
  font-size: 15px;
  min-width: 0;
}

.users-list {
  display: grid;
  gap: 8px;
}

.users-list-sections {
  gap: 16px;
}

.users-status-section {
  display: grid;
  gap: 8px;
}

.users-status-section + .users-status-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.users-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 2px;
}

.users-status-header h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
}

.users-status-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.users-status-list {
  display: grid;
  gap: 8px;
}

.empty-state.compact {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.9fr) 122px 48px 72px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.user-row-advanced {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 6px;
}

.user-row-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.user-row-advanced-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 10px;
  margin-top: 8px;
}

.user-row-advanced-grid span {
  color: var(--muted);
  font-size: 14px;
}

.user-row-advanced-grid strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.user-row strong,
.user-row > span,
.user-row > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row strong {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
}

.user-row .muted {
  font-size: 14px;
}

.user-row > .tag {
  font-size: 14px;
}

.user-status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 46px;
  min-height: 28px;
  padding: 4px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.user-status-toggle:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}

.user-status-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.user-status-toggle.active {
  background: transparent;
  color: #35f06f;
}

.user-status-toggle.inactive {
  background: transparent;
  color: rgba(210, 218, 229, 0.7);
}

.user-status-track {
  position: relative;
  width: 38px;
  height: 20px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.user-status-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.user-status-toggle.active .user-status-track {
  background: rgba(25, 230, 95, 0.62);
  box-shadow: inset 0 0 0 1px rgba(75, 255, 135, 0.46), 0 0 10px rgba(25, 230, 95, 0.22);
}

.user-status-toggle.active .user-status-thumb {
  transform: translateX(18px);
  background: #ffffff;
}

.user-row > span {
  font-size: 14px;
}

.user-row.inactive {
  border-color: rgba(255, 93, 93, 0.28);
  background: rgba(255, 93, 93, 0.11);
  opacity: 0.84;
}

.user-row.inactive strong,
.user-row.inactive .muted {
  color: rgba(255, 215, 215, 0.78);
}

.user-role {
  justify-self: stretch;
  text-align: center;
}

.user-row .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 26px;
  padding: 4px 8px;
  line-height: 1;
}

.user-alert-inline {
  color: #ffb3b3;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.user-actions .ghost-button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
}

.user-actions .ghost-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.17);
}

.user-actions .edit-user-button {
  border-color: rgba(90, 151, 255, 0.36);
  background: rgba(90, 151, 255, 0.14);
  color: #b8d2ff;
}

.user-actions .edit-user-button:hover:not(:disabled) {
  border-color: rgba(90, 151, 255, 0.5);
  background: rgba(90, 151, 255, 0.2);
  color: #d4e3ff;
}

.danger-link {
  border-color: rgba(255, 93, 93, 0.36) !important;
  background: rgba(255, 93, 93, 0.13) !important;
  color: #ff8f8f;
}

.danger-link:hover:not(:disabled) {
  border-color: rgba(255, 93, 93, 0.45);
  background: rgba(255, 93, 93, 0.12);
  color: #ffb3b3;
}

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

.users-section-header .eyebrow {
  font-size: 13px;
}

.users-section-header h2 {
  font-size: var(--content-title-size);
}

.user-advanced {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.user-advanced summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.user-advanced-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.settings-summary,
.schedule-list,
.exception-list,
.health-list,
.monitor-metrics {
  display: grid;
  gap: 10px;
}

.settings-details summary {
  cursor: pointer;
  font-weight: 900;
}

.instances-panel {
  display: grid;
  gap: 14px;
}

.main-instance-compact-header {
  display: block;
}

.main-instance-compact-header > div {
  min-width: 0;
}

.main-instance-title-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-instance-title-row h2 {
  margin: 0;
}

.main-instance-name-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 18px;
  font-weight: 800;
}

.main-instance-form {
  padding-top: 4px;
}

.main-instance-edit-button {
  min-height: 46px;
  min-width: 78px;
  padding: 10px 16px;
  border-radius: 8px;
  border-color: rgba(90, 151, 255, 0.42);
  background: rgba(90, 151, 255, 0.16);
  color: #c3d9ff;
  font-size: 16px;
  font-weight: 800;
}

.main-instance-edit-button:hover:not(:disabled) {
  border-color: rgba(90, 151, 255, 0.6);
  background: rgba(90, 151, 255, 0.24);
  color: #e1ecff;
}

.instance-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.instance-list-section {
  margin-top: 4px;
}

.instance-section-header {
  display: grid;
  gap: 2px;
}

.instance-section-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.instance-form {
  display: grid;
  gap: 12px;
}

.instance-form label > span {
  font-size: 15px;
}

.instance-form .readonly-field {
  display: grid;
  gap: 6px;
}

.instance-form .readonly-value {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--placeholder);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  word-break: break-all;
}

.instance-form .primary-button {
  width: auto;
  min-width: 120px;
  justify-self: start;
  padding-inline: 18px;
}

.settings-warning-text {
  margin: 0 0 12px 0;
  padding: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.system-config-form .form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.system-config-field {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.system-config-field input {
  max-width: 220px;
}

.system-config-field .field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.permissions-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.permissions-reset-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  white-space: nowrap;
  padding-inline: 16px;
}

.permissions-reset-button .svg-icon {
  width: 16px;
  height: 16px;
  background-color: currentColor;
}

.permissions-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.permissions-table th,
.permissions-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.permissions-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
}

.permissions-table th:first-child,
.permissions-table td.permissions-row-label {
  text-align: left;
}

.permissions-row-label {
  display: table-cell;
  min-width: 220px;
}

.permissions-row-label strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.permissions-row-label small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.permissions-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.permissions-cell input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.permissions-table tbody tr:last-child td {
  border-bottom: none;
}

.permissions-fixed-rules {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.permissions-fixed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.permissions-fixed-list li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.permissions-fixed-list strong {
  color: var(--ink);
  font-size: 14px;
}

.permissions-fixed-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.instances-list {
  display: grid;
  gap: 14px;
}

.instance-user-group {
  display: grid;
  gap: 8px;
}

.instance-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.instance-group-title strong {
  font-size: 16px;
}

.instance-group-title span {
  color: var(--muted);
  font-size: 14px;
}

.empty-state.compact {
  padding: 10px;
  margin: 0;
}

.instance-row-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.instance-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(110px, 0.7fr) minmax(88px, 0.55fr) minmax(210px, 1.55fr) minmax(150px, 1fr) minmax(130px, 0.85fr) minmax(190px, 1.15fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  overflow-x: auto;
}

.instance-row-shell.inactive {
  border-color: rgba(255, 95, 114, 0.46);
  background:
    linear-gradient(90deg, rgba(107, 26, 38, 0.72), rgba(74, 20, 29, 0.54)),
    rgba(255, 95, 114, 0.1);
  box-shadow: inset 3px 0 0 rgba(255, 95, 114, 0.9);
}

.instance-row-shell.inactive .instance-row {
  background: rgba(255, 95, 114, 0.08);
}

.instance-row-shell.inactive .instance-user-name strong,
.instance-row-shell.inactive .instance-value,
.instance-row-shell.inactive .muted {
  color: #c4cad3;
}

.instance-row-shell.inactive .tag,
.instance-row-shell.inactive .tag.green,
.instance-row-shell.inactive .tag.blue,
.instance-row-shell.inactive .tag.red,
.instance-row-shell.inactive .tag.gray {
  border-color: rgba(196, 202, 211, 0.22);
  background: rgba(196, 202, 211, 0.1);
  color: #c4cad3;
}

.instance-row-shell.inactive .instance-text-cell {
  color: #c4cad3;
}

.instance-row-shell.inactive .ghost-button,
.instance-row-shell.inactive .primary-button,
.instance-row-shell.inactive .icon-button {
  border-color: rgba(196, 202, 211, 0.2);
  background: rgba(196, 202, 211, 0.08);
  color: #aab2bd;
}

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

.instance-user-name strong,
.instance-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instance-user-name strong,
.instance-value {
  font-size: 16px;
  color: var(--ink);
}

.instance-user-name .muted {
  font-size: 14px;
}

.instance-row .instance-text-cell {
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(226, 232, 240, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.instance-row .instance-kind-text.independent {
  color: rgba(185, 201, 255, 0.9);
}

.instance-row .instance-kind-text.principal {
  color: #67dfff;
  text-shadow: 0 0 10px rgba(103, 223, 255, 0.18);
}

.instance-row .instance-status-tag {
  justify-content: center;
  justify-self: start;
  min-width: 150px;
  width: 150px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.assignment-receive-spacer {
  min-width: 1px;
}

.instance-row .assignment-receive-text.enabled {
  color: #f0c96c;
}

.instance-row .assignment-receive-text.disabled {
  color: rgba(196, 202, 211, 0.72);
}

.instance-row .instance-name-value,
.instance-row .instance-phone-value {
  min-width: 0;
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instance-row .edit-user-button {
  justify-self: end;
  border-color: rgba(90, 151, 255, 0.42);
  background: rgba(90, 151, 255, 0.16);
  color: #c3d9ff;
}

.instance-row .edit-user-button:hover:not(:disabled) {
  border-color: rgba(90, 151, 255, 0.6);
  background: rgba(90, 151, 255, 0.24);
  color: #e1ecff;
}

.instance-inline-form {
  position: relative;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.32);
}

.instance-inline-sections {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 12px;
}

.instance-config-block {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.evolution-config-block {
  border-color: rgba(91, 200, 255, 0.18);
  background: rgba(91, 200, 255, 0.045);
}

.instance-config-title {
  display: grid;
  gap: 2px;
}

.instance-config-title h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.instance-config-title h4 span {
  font-weight: 500;
  color: var(--soft);
}

.instance-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.instance-permissions,
.instance-advanced-options {
  display: grid;
  gap: 8px;
}

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

.instance-save-button {
  justify-self: end !important;
  margin-top: 12px;
  min-width: 170px !important;
}

@media (max-width: 900px) {
  .instance-inline-sections,
  .instance-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .instance-save-button {
    justify-self: stretch !important;
  }
}

.instance-generated-name {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.instance-generated-name strong {
  font-size: 15px;
  color: var(--text);
}

.instance-connection-panel {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 0;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.instance-connection-info,
.instance-pairing-code {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.instance-connection-info {
  display: grid;
  align-items: start;
  gap: 6px;
}

.instance-status-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 4px;
  color: var(--soft);
  font-size: 14px;
}

.instance-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.instance-status-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9fdcff;
  box-shadow: 0 0 10px rgba(91, 200, 255, 0.36);
}

.instance-status-line.connected {
  color: #8dffac;
}

.instance-status-line.connected::before {
  background: #5bd58a;
  box-shadow: 0 0 10px rgba(91, 213, 138, 0.42);
}

.instance-status-line.error {
  color: #ffb8c0;
}

.instance-status-line.error::before {
  background: #ff5f72;
  box-shadow: 0 0 10px rgba(255, 95, 114, 0.42);
}

.instance-connection-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.instance-qr-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instance-qr-box img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
}

.instance-qr-notice {
  margin: 0;
  font-size: 13px;
}

.instance-qr-action-button {
  border-color: rgba(125, 255, 178, 0.48);
  background: rgba(41, 209, 125, 0.14);
  color: #9fffc0;
}

.instance-qr-action-button:hover:not(:disabled) {
  border-color: rgba(125, 255, 178, 0.72);
  background: rgba(41, 209, 125, 0.22);
  color: #d8ffe4;
}

.instance-sync-icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 7px;
  border-color: rgba(91, 200, 255, 0.52);
  background: rgba(91, 200, 255, 0.13);
  color: #9fdcff;
  font-size: 15px;
  line-height: 1;
}

.instance-sync-icon:hover:not(:disabled) {
  border-color: rgba(91, 200, 255, 0.78);
  background: rgba(91, 200, 255, 0.2);
}

.instance-disconnect-button {
  border-color: rgba(255, 95, 114, 0.54);
  background: rgba(255, 95, 114, 0.14);
  color: #ffb8c0;
}

.instance-disconnect-button:hover:not(:disabled) {
  border-color: rgba(255, 95, 114, 0.82);
  background: rgba(255, 95, 114, 0.22);
  color: #ffdce2;
}

.instance-recreate-button {
  border-color: rgba(255, 184, 76, 0.42);
  background: rgba(255, 184, 76, 0.12);
  color: #ffd795;
}

.instance-recreate-button:hover:not(:disabled) {
  border-color: rgba(255, 184, 76, 0.78);
  background: rgba(255, 184, 76, 0.2);
  color: #fff0c4;
}

.instance-recreate-button:disabled {
  opacity: 0.72;
}

.qr-modal {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid rgba(91, 200, 255, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(23, 50, 67, 0.98), rgba(14, 31, 45, 0.99)),
    #142b3e;
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.qr-modal-header h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.qr-modal-header .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.qr-modal-image-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
}

.qr-modal-image-wrap img {
  width: min(340px, calc(100vw - 96px));
  height: min(340px, calc(100vw - 96px));
  object-fit: contain;
}

.qr-modal-code {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.qr-modal-code strong {
  font-size: 24px;
  letter-spacing: 2px;
}

.qr-modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
}

.qr-modal-date {
  margin: 12px 0 0;
  text-align: center;
}

.danger-text {
  color: #ff9aa2;
}

.schedule-row,
.exception-row,
.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.schedule-edit-list {
  gap: 8px;
}

.settings-form-button {
  justify-self: start;
  width: auto;
  min-width: 156px;
}

.schedule-editor-row {
  display: grid;
  grid-template-columns: minmax(82px, 112px) minmax(300px, 1fr) minmax(300px, 1fr);
  align-items: center;
  gap: 10px;
}

.schedule-day {
  min-width: 0;
  color: var(--soft);
}

.schedule-shift {
  display: grid;
  grid-template-columns: minmax(76px, 92px) minmax(120px, 1fr) minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.schedule-shift-afternoon {
  grid-template-columns: minmax(64px, 76px) minmax(120px, 1fr) minmax(120px, 1fr);
  margin-left: 22px;
}

.schedule-shift-toggle {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.schedule-shift input[type="time"] {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.exception-form .form-grid {
  grid-template-columns: minmax(160px, 190px) minmax(240px, 1fr);
  align-items: end;
}

.exceptions-list {
  margin-top: 12px;
}

.exception-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(220px, 1fr) 48px 72px 86px;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
}

.exception-status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 46px;
  min-height: 28px;
  padding: 4px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.exception-status-toggle:hover:not(:disabled) {
  transform: translateY(-1px);
}

.exception-status-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.exception-status-track {
  position: relative;
  width: 38px;
  height: 20px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: rgba(142, 153, 168, 0.28);
  box-shadow: inset 0 0 0 1px rgba(142, 153, 168, 0.34);
}

.exception-status-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.exception-status-toggle.active .exception-status-track {
  background: rgba(25, 230, 95, 0.62);
  box-shadow: inset 0 0 0 1px rgba(75, 255, 135, 0.46), 0 0 10px rgba(25, 230, 95, 0.22);
}

.exception-status-toggle.active .exception-status-thumb {
  transform: translateX(18px);
  background: #ffffff;
}

.exception-edit-button,
.exception-delete-button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.exception-edit-button {
  border-color: rgba(90, 151, 255, 0.36);
  background: rgba(90, 151, 255, 0.14);
  color: #b8d2ff;
}

.exception-edit-button:hover:not(:disabled) {
  border-color: rgba(90, 151, 255, 0.5);
  background: rgba(90, 151, 255, 0.2);
  color: #d4e3ff;
}

.exception-reason {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(var(--font-size, 14px) + 2px);
}

@media (max-width: 980px) {
  .schedule-editor-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .schedule-shift {
    grid-template-columns: minmax(82px, 110px) minmax(110px, 1fr) minmax(110px, 1fr);
  }

  .schedule-shift-afternoon {
    margin-left: 0;
  }

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

  .exception-reason {
    white-space: normal;
  }
}

.monitor-grid {
  grid-template-columns: 300px minmax(0, 1fr);
}

.monitor-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 255, 178, 0.36);
  border-radius: var(--radius);
  background: rgba(16, 20, 28, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: 160ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .daily-grid,
  .conversation-shell,
  .appointments-layout,
  .prices-layout,
  .pipeline-shell,
  .settings-grid,
  .users-layout,
  .monitor-grid {
    grid-template-columns: 1fr;
  }

  .conversation-shell {
    min-height: auto;
  }

  .pipeline-shell {
    height: auto;
    min-height: auto;
  }

  body[data-active-view="prices"] {
    overflow: auto;
  }

  body[data-active-view="prices"] .main {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .prices-view {
    height: auto;
    overflow: visible;
  }

  .prices-layout {
    height: auto;
  }

  .price-form,
  .price-table-panel {
    height: auto;
  }

  .price-table-panel .price-list {
    max-height: min(620px, 62vh);
  }

  .chat-list,
  .chat-messages,
  .context-panel {
    max-height: 520px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .kpi-grid,
  .capacity-strip,
  .monitor-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header,
  .chat-header,
  .task-row,
  .appointment-row,
  .price-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Control panel composition */
.app-shell {
  grid-template-columns: 294px minmax(0, 1fr);
}

.sidebar {
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(9, 13, 20, 0.98), rgba(7, 10, 16, 0.96));
}

.brand {
  gap: 14px;
  margin-bottom: 48px;
}

.brand strong {
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1;
}

.brand strong em {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  font-weight: 500;
}

.brand p {
  margin-top: 5px;
  color: #52df65;
  font-size: 20px;
  font-weight: 900;
  text-transform: none;
}

.brand-mark {
  border: 0;
  background: transparent;
}

.leaf-mark {
  position: relative;
  width: 52px;
  height: 64px;
}

.leaf-mark span {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 46px;
  border: 4px solid #54e166;
  border-right: 0;
  border-bottom: 0;
  border-radius: 28px 0 0 0;
  transform: rotate(34deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 0 12px rgba(84, 225, 102, 0.38));
}

.leaf-mark span:nth-child(2) {
  top: 9px;
  left: 20px;
  height: 40px;
  opacity: 0.86;
}

.leaf-mark span:nth-child(3) {
  top: 18px;
  left: 26px;
  height: 34px;
  opacity: 0.72;
}

.nav-list {
  gap: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 850;
}

.nav-item::before {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: currentColor;
  font-size: 24px;
  line-height: 1;
}

.nav-item[href="#overview"]::before {
  content: "⌂";
}

.nav-item[href="#conversations"]::before {
  content: "▣";
}

.nav-item[href="#appointments"]::before {
  content: "▤";
}

.nav-item[href="#clients"]::before {
  content: "♙";
}

.nav-item[href="#prices"]::before {
  content: "◇";
}

.nav-item[href="#settings-basic"]::before {
  content: "⚙";
}

.nav-item[href="#monitoring"]::before {
  content: "▧";
}

.nav-item.active {
  border-color: rgba(82, 223, 101, 0.48);
  background: linear-gradient(90deg, rgba(82, 223, 101, 0.26), rgba(82, 223, 101, 0.1));
  box-shadow:
    inset 4px 0 0 #52df65,
    0 0 28px rgba(82, 223, 101, 0.2);
}

.nav-subtree {
  margin-top: 6px;
  padding-left: 58px;
}

.nav-subitem {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 15px;
}

.nav-subitem.active {
  border-color: rgba(82, 223, 101, 0.35);
  background: rgba(82, 223, 101, 0.13);
  color: var(--ink);
}

.sidebar-status {
  display: none;
}

.main {
  width: 100%;
  max-width: none;
  padding: 20px 26px 28px 38px;
}

body[data-active-view="conversations"] .main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  padding: 10px 20px 4px 20px;
  overflow: hidden;
}

body[data-active-view="conversations"] {
  overflow: hidden;
}

body[data-active-view="conversations"] .global-alert-bar {
  flex-wrap: nowrap;
  min-height: 42px;
  max-height: 42px;
  margin-bottom: 6px;
}

body[data-active-view="prices"] {
  overflow: hidden;
}

body[data-active-view="prices"] .main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body[data-active-view="appointments"] {
  overflow: hidden;
}

body[data-active-view="appointments"] .main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body[data-active-view="appointments"] .global-alert-bar {
  flex-wrap: nowrap;
  min-height: 42px;
  max-height: 42px;
  margin-bottom: 6px;
}

.prices-view {
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.control-view {
  gap: 14px;
}

.control-header {
  min-height: 58px;
}

.control-header .eyebrow {
  margin-bottom: 6px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  text-transform: none;
}

.control-header h1 {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.2;
}

.page-header .eyebrow {
  margin-bottom: 6px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  text-transform: none;
}

.page-header h1 {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.2;
}

.control-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.date-pill {
  white-space: nowrap;
}

.system-pill {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(82, 223, 101, 0.28);
  background: rgba(82, 223, 101, 0.13);
  color: #eaffef;
  font-size: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, 0.105);
  background:
    radial-gradient(circle at 14px 14px, color-mix(in srgb, currentColor 14%, transparent), transparent 60px),
    linear-gradient(180deg, rgba(22, 29, 40, 0.92), rgba(12, 17, 25, 0.94)),
    #0d131d;
  box-shadow: none;
}

.kpi-card-clickable {
  cursor: pointer;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}

.kpi-card-clickable:hover,
.kpi-card-clickable:focus-visible {
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  transform: translateY(-2px);
}

.kpi-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: currentColor;
  font-size: 20px;
  font-weight: 900;
}

.kpi-icon .line-icon {
  width: 25px;
  height: 25px;
}

.metric-green {
  color: #75f082;
}

.metric-purple {
  color: #a46bff;
}

.metric-blue {
  color: #55d8ff;
}

.metric-amber {
  color: #ffc85f;
}

.metric-green .kpi-icon {
  background: rgba(82, 223, 101, 0.16);
}

.metric-purple .kpi-icon {
  background: rgba(164, 107, 255, 0.2);
}

.metric-blue .kpi-icon {
  background: rgba(85, 216, 255, 0.16);
}

.metric-amber .kpi-icon {
  background: rgba(255, 200, 95, 0.17);
}

.kpi-copy span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 900;
}

.kpi-card strong {
  margin: 4px 0 6px;
  color: currentColor;
  font-size: 28px;
  text-shadow: 0 0 24px color-mix(in srgb, currentColor 35%, transparent);
}

.kpi-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  box-shadow: 0 0 16px color-mix(in srgb, currentColor 45%, transparent);
}

.daily-grid {
  grid-template-columns: minmax(600px, 1fr) minmax(600px, 1fr);
  gap: 14px;
  align-items: start;
}

.daily-panel,
.sos-panel,
.mini-conversations {
  border-color: rgba(255, 255, 255, 0.105);
  background: rgba(12, 17, 25, 0.88);
  box-shadow: none;
}

.daily-panel {
  padding: 13px 10px 15px;
}

.daily-panel > .panel-header {
  margin: 0 10px 44px;
}

.daily-panel-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.daily-title-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(85, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(85, 216, 255, 0.12);
  color: #78e1ff;
}

.daily-title-icon .line-icon {
  width: 20px;
  height: 20px;
}

.daily-panel h2,
.sos-panel h2,
.mini-conversations h2 {
  font-size: var(--content-title-size);
}

.mini-conversations h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-stack {
  gap: 14px;
}

.table-section {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(18, 25, 35, 0.45);
}

.table-section .task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  overflow-y: auto;
  scrollbar-color: rgba(125, 255, 178, 0.34) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.confirm-section .task-list {
  max-height: 230px;
}

.gold-section .task-list,
.revive-section .task-list {
  max-height: 205px;
}

.task-title {
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 23, 0.42);
}

.task-title h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f4f7fb;
  font-size: 20px;
}

.view:not(.conversations-view) .daily-panel .task-title h3 {
  font-size: 20px !important;
}

.task-title small {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.task-title-copy {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.task-title-copy small {
  margin-right: 0;
  margin-bottom: 3px;
  font-weight: 600;
}

.task-title > span,
.mini-conversations h2 span {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid rgba(82, 223, 101, 0.36);
  border-radius: 999px;
  background: rgba(82, 223, 101, 0.13);
  color: #54e166;
  font-size: 14px;
  line-height: 1;
}

.section-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 15px;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.section-icon .line-icon {
  width: 18px;
  height: 18px;
}

.section-icon.green {
  color: #54e166;
}

.section-icon.gold,
.section-icon.amber {
  color: #ffc85f;
}

.section-icon.blue {
  color: #55c8ff;
}

.section-icon.purple {
  color: #a88cff;
}

.section-icon.red {
  color: #ff7c8a;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.data-table {
  display: grid;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1.45fr 1.25fr 1.42fr;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
}

.gold-table .table-head,
.gold-table .table-row,
.revive-table .table-head,
.revive-table .table-row {
  grid-template-columns: 1.18fr 1.45fr 1.18fr 0.95fr 1fr;
}

.table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: #151c27;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.49);
  font-size: 13px;
  font-weight: 900;
}

.table-row {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.table-row strong {
  color: rgba(255, 255, 255, 0.86);
}

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

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.action-button.call {
  border: 1px solid rgba(95, 185, 255, 0.24);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.84);
}

.action-button.whatsapp {
  border: 1px solid rgba(82, 223, 101, 0.42);
  background: rgba(82, 223, 101, 0.16);
  color: #dfffe4;
}

.action-button.contact {
  border: 1px solid rgba(164, 107, 255, 0.52);
  background: rgba(164, 107, 255, 0.12);
  color: #d8c6ff;
}

.action-button.follow {
  border: 1px solid rgba(85, 200, 255, 0.4);
  background: rgba(85, 200, 255, 0.1);
  color: #bfeeff;
}

.interest-chip {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(241, 200, 77, 0.55);
  border-radius: 6px;
  background: rgba(241, 200, 77, 0.1);
  color: #f1c84d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.sos-panel {
  padding: 14px 14px 12px;
  border-color: rgba(255, 95, 114, 0.4);
  background:
    linear-gradient(180deg, rgba(80, 15, 22, 0.5), rgba(39, 13, 16, 0.42)),
    rgba(12, 17, 25, 0.92);
}

.sos-panel .panel-header {
  padding: 0 2px 12px;
  margin-bottom: 0;
}

.sos-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ff8080;
  font-size: 16px;
}

.sos-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 rgba(255, 95, 114, 0.6);
  animation: sosLivePulse 1.8s ease-out infinite;
}

@keyframes sosLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 95, 114, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 95, 114, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 114, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sos-live-dot {
    animation: none;
  }
}

.sos-count-chip {
  padding: 4px 10px;
  border: 1px solid rgba(255, 95, 114, 0.4);
  border-radius: 999px;
  color: #ff8080;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.alert-list {
  gap: 8px;
}

.sos-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: start;
  gap: 14px;
  padding: 12px 13px 12px 15px;
  border: 1px solid rgba(255, 95, 114, 0.28);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: rgba(15, 12, 19, 0.4);
}

.sos-row.is-bot-error {
  border-left-color: var(--amber);
}

.sos-row-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.sos-row-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.sos-row-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

@media (max-width: 860px) {
  .sos-row {
    grid-template-columns: 1fr;
  }

  .sos-row-side {
    justify-items: stretch;
    text-align: left;
  }
}

.sos-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 95, 114, 0.16);
  color: #ff8080;
  font-size: 13px;
  font-weight: 900;
}

.is-bot-error .sos-avatar {
  background: rgba(255, 201, 94, 0.16);
  color: var(--amber);
}

.sos-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sos-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sos-reason {
  color: #ff8080;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.is-bot-error .sos-reason {
  color: var(--amber);
}

.sos-elapsed {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.sos-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.sos-row .sos-action {
  width: 100%;
  min-height: 36px;
}

.sos-action {
  min-height: 34px;
  border: 1px solid rgba(255, 66, 66, 0.6);
  border-radius: 7px;
  background: rgba(255, 66, 66, 0.08);
  color: #ff706e;
  font-size: 13px;
  font-weight: 900;
}

.sos-action.assignment-accept {
  border-color: rgba(40, 231, 255, 0.92);
  background: linear-gradient(135deg, rgba(58, 238, 255, 0.22), rgba(25, 177, 255, 0.34));
  color: #8df6ff;
  box-shadow:
    inset 0 0 0 1px rgba(181, 250, 255, 0.14),
    0 0 18px rgba(40, 231, 255, 0.2);
}

.sos-action.assignment-accept:hover:not(:disabled) {
  border-color: rgba(118, 249, 255, 1);
  background: linear-gradient(135deg, rgba(84, 244, 255, 0.34), rgba(21, 190, 255, 0.5));
  color: #c8fbff;
  box-shadow:
    0 0 0 1px rgba(84, 244, 255, 0.3),
    0 0 26px rgba(40, 231, 255, 0.3),
    0 12px 28px rgba(21, 190, 255, 0.16);
}

.sos-action.assignment-reject {
  border-color: rgba(255, 82, 82, 0.92);
  background: linear-gradient(135deg, rgba(255, 110, 110, 0.22), rgba(255, 45, 45, 0.34));
  color: #ffb3b0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 181, 178, 0.14),
    0 0 18px rgba(255, 82, 82, 0.2);
}

.sos-action.assignment-reject:hover:not(:disabled) {
  border-color: rgba(255, 130, 130, 1);
  background: linear-gradient(135deg, rgba(255, 140, 140, 0.34), rgba(255, 60, 60, 0.5));
  color: #ffd6d4;
  box-shadow:
    0 0 0 1px rgba(255, 140, 140, 0.3),
    0 0 26px rgba(255, 82, 82, 0.3),
    0 12px 28px rgba(255, 60, 60, 0.16);
}

.sos-action.assignment-followup-button {
  gap: 8px;
  min-width: 180px;
  white-space: nowrap;
  margin-inline: 4px;
  border-color: rgba(255, 187, 58, 0.82);
  background: linear-gradient(135deg, rgba(255, 205, 72, 0.2), rgba(255, 152, 38, 0.34));
  color: #ffd478;
  box-shadow: inset 0 0 0 1px rgba(255, 222, 145, 0.09);
}

.sos-action.assignment-followup-button:hover:not(:disabled) {
  border-color: rgba(255, 198, 70, 0.98);
  background: linear-gradient(135deg, rgba(255, 216, 83, 0.3), rgba(255, 151, 32, 0.46));
  color: #ffe3a0;
  box-shadow:
    0 0 0 1px rgba(255, 191, 61, 0.26),
    0 10px 24px rgba(255, 151, 32, 0.16);
}

.sos-action.assignment-followup-button .svg-icon {
  width: 20px;
  height: 20px;
}

.mini-conversations {
  padding: 12px;
}

.mini-conversations .panel-header {
  margin-bottom: 10px;
}

.mini-search input {
  min-height: 38px;
  margin-bottom: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.mini-chat-grid {
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 274px;
  gap: 11px;
}

.mini-chat-list {
  gap: 6px;
}

.mini-chat-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 7px 9px;
}

.mini-chat-list button.client-needs-attention,
.chat-row.client-needs-attention {
  border-color: rgba(82, 223, 101, 0.72);
  background: rgba(82, 223, 101, 0.13);
  box-shadow: inset 3px 0 0 #52df65;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 900;
}

.mini-chat-copy {
  min-width: 0;
}

.mini-chat-copy strong,
.mini-chat-copy small,
.mini-chat-right small {
  display: block;
}

.mini-chat-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.mini-chat-copy small,
.mini-chat-right small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.mini-chat-right {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.mini-chat-right .tag {
  padding: 3px 6px;
  font-size: 11px;
}

.mini-chat-right .chat-row-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-chat-preview {
  padding: 0;
  background: transparent;
  border: 0;
}

.mini-chat-live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  height: 100%;
}

.mini-chat-live section,
.mini-chat-live aside {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.58);
}

.mini-chat-live header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.mini-chat-live header small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.58);
}

.bubble {
  max-width: 82%;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.bubble.client {
  background: rgba(255, 255, 255, 0.08);
}

.mini-chat-live aside h3 {
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.context-line {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.context-line span,
.context-line strong {
  display: block;
}

.context-line span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 850;
}

.context-line strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

@media (max-width: 1480px) {
  .daily-grid {
    grid-template-columns: 1fr;
  }
}

/* Appointments control view */
.appointments-view {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.appointments-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 24, 35, 0.96), rgba(8, 13, 20, 0.94)),
    var(--panel);
  box-shadow: none;
}

.appointments-card-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 0 10px;
}

.appointments-card-header .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.appointments-card-header .primary-button .svg-icon {
  width: 18px;
  height: 18px;
}

.module-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-title h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.05;
}

.appointments-toolbar {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: minmax(320px, auto) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px 8px 0 0;
  background: rgba(9, 14, 22, 0.54);
}

.appointment-tabs {
  width: max-content;
}

.appointment-tabs button {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 0 12px;
  white-space: nowrap;
}

.date-navigator {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
}

.date-navigator button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

.date-navigator strong {
  min-width: 230px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  text-align: center;
  text-transform: capitalize;
}

.block-button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(164, 107, 255, 0.52);
  border-radius: 7px;
  background: rgba(164, 107, 255, 0.12);
  color: #d8c6ff;
  font-weight: 900;
}

.day-capacity {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 60px;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.085);
  border-left: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(10, 15, 23, 0.42);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 800;
}

.capacity-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.capacity-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #52df65;
  box-shadow: 0 0 18px rgba(82, 223, 101, 0.35);
}

.appointments-table-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.appointments-table {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: rgba(125, 255, 178, 0.34) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.appointments-head,
.appointments-row {
  display: grid;
  grid-template-columns: 136px 360px 250px 210px 178px minmax(166px, 1fr);
  column-gap: 28px;
  row-gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
}

.appointments-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #151c27;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.appointments-row {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
}

.appointment-item.expanded {
  background:
    linear-gradient(90deg, rgba(91, 200, 255, 0.055), rgba(125, 255, 178, 0.035)),
    rgba(255, 255, 255, 0.018);
}

.appointment-item.pending-optimistic {
  opacity: 0.6;
}

.appointment-item.pending-optimistic .appointments-row {
  pointer-events: none;
}

.appointments-row.expanded {
  border-top-color: rgba(91, 200, 255, 0.18);
}

.appointment-day-group {
  border-top: 1px solid rgba(125, 255, 178, 0.1);
}

.appointment-day-group:first-child {
  border-top: 0;
}

.appointment-day-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 14px;
  border-top: 1px solid rgba(125, 255, 178, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(90deg, rgba(125, 255, 178, 0.1), rgba(91, 200, 255, 0.055)),
    rgba(14, 20, 30, 0.96);
}

.appointment-day-header strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
}

.appointment-day-header span {
  color: rgba(185, 255, 208, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.appointment-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  line-height: 1;
}

.appointment-time span {
  display: inline-flex;
  align-items: center;
  color: rgba(185, 255, 208, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.appointment-time em {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.appointment-vehicle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.appointment-vehicle > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-system-flow {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: 84px 18px 52px;
  align-items: center;
  column-gap: 7px;
  min-width: 0;
  justify-self: start;
  margin-right: 36px;
}

.appointment-system-arrow {
  justify-self: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.appointment-system-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.appointment-system-pill.gasolina {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.075));
  color: #f8fbff;
}

.appointment-system-pill.diesel {
  border: 1px solid rgba(148, 163, 184, 0.46);
  background:
    linear-gradient(180deg, rgba(71, 85, 105, 0.66), rgba(30, 41, 59, 0.58));
  color: #f1f5f9;
}

.appointment-system-pill.glp {
  border: 1px solid rgba(91, 200, 255, 0.42);
  background: rgba(91, 200, 255, 0.2);
  color: #bdeeff;
}

.appointment-system-pill.gnv {
  border: 1px solid rgba(82, 223, 101, 0.44);
  background: rgba(82, 223, 101, 0.19);
  color: #b4ffc0;
}

.appointment-system-pill.other {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
}

.quote-system-flow {
  grid-template-columns: 84px 18px 52px;
  margin-right: 0;
}

.quote-system-flow .appointment-system-pill {
  min-height: 22px;
  font-size: 14px;
}

.quote-system-flow .appointment-system-arrow {
  font-size: 15px;
}

.context-icon-button,
.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 255, 178, 0.34);
  border-radius: 8px;
  background: rgba(125, 255, 178, 0.09);
  color: #8dffac;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.context-icon-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  border-color: rgba(125, 255, 178, 0.58);
  background: rgba(125, 255, 178, 0.14);
  box-shadow: 0 0 0 1px rgba(125, 255, 178, 0.12);
}

.appointment-cancel-button {
  border-color: rgba(255, 95, 114, 0.36);
  background: rgba(255, 95, 114, 0.1);
  color: #ff9aa7;
}

.appointment-cancel-button:hover:not(:disabled) {
  border-color: rgba(255, 95, 114, 0.58);
  background: rgba(255, 95, 114, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 95, 114, 0.14);
}

.context-block-appointment .appointment-create-button,
.context-block-appointment .appointment-confirm-button,
.context-block-appointment .appointment-reschedule-button {
  border-color: rgba(91, 200, 255, 0.4);
  background: rgba(91, 200, 255, 0.1);
  color: #8edbff;
}

.context-block-appointment .appointment-create-button:hover:not(:disabled),
.context-block-appointment .appointment-confirm-button:hover:not(:disabled),
.context-block-appointment .appointment-reschedule-button:hover:not(:disabled) {
  border-color: rgba(91, 200, 255, 0.64);
  background: rgba(91, 200, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(91, 200, 255, 0.14);
}

.stage-quote-filter-toggle-button.active {
  border-color: rgba(125, 255, 178, 0.7);
  background: rgba(125, 255, 178, 0.2);
  box-shadow: 0 0 0 1px rgba(125, 255, 178, 0.16);
}

.context-icon-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.context-icon-button .svg-icon,
.icon-button .svg-icon {
  width: 18px;
  height: 18px;
}

.appointment-status {
  display: inline-flex;
  justify-content: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.appointment-status.confirmed {
  color: #70e77e;
}

.status-count.confirmed {
  border: 1px solid rgba(82, 223, 101, 0.38);
  background: rgba(82, 223, 101, 0.12);
  color: #70e77e;
}

.appointment-status.pending {
  color: #ffc95e;
}

.status-count.pending {
  border: 1px solid rgba(255, 201, 94, 0.42);
  background: rgba(255, 201, 94, 0.12);
  color: #ffc95e;
}

.appointment-status.rescheduled {
  color: #77a8ff;
}

.status-count.rescheduled {
  border: 1px solid rgba(91, 157, 255, 0.42);
  background: rgba(91, 157, 255, 0.12);
  color: #77a8ff;
}

.appointment-status.cancelled {
  color: #ff6c6c;
}

.status-count.cancelled {
  border: 1px solid rgba(255, 95, 114, 0.42);
  background: rgba(255, 95, 114, 0.12);
  color: #ff6c6c;
}

.appointment-actions {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 7px;
}

.appointment-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease);
}

.appointment-detail-button:hover,
.appointment-detail-button.active {
  border-color: rgba(125, 255, 178, 0.34);
  background: rgba(125, 255, 178, 0.1);
  color: #b9ffd0;
}

.appointment-detail-button .svg-icon {
  width: 18px;
  height: 18px;
}

.appointment-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(91, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(91, 200, 255, 0.1);
  color: #9ee7ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    color 160ms var(--ease);
}

.appointment-chat-button:hover {
  border-color: rgba(91, 200, 255, 0.48);
  background: rgba(91, 200, 255, 0.16);
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.14);
}

.appointment-chat-button .svg-icon {
  width: 18px;
  height: 18px;
}

.appointment-detail-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px 14px 148px;
  border-top: 1px solid rgba(91, 200, 255, 0.1);
}

.appointment-responsible {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(4, 9, 16, 0.34);
}

.appointment-responsible-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(91, 200, 255, 0.11);
  color: #9ee7ff;
}

.appointment-responsible-icon .svg-icon {
  width: 18px;
  height: 18px;
}

.appointment-responsible-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.appointment-responsible-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.appointment-responsible-copy strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-responsible-copy em {
  min-width: 0;
  overflow: hidden;
  color: rgba(185, 255, 208, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointments-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 0;
}

.appointment-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.status-count strong {
  font-size: 13px;
}

.export-button {
  min-width: 150px;
}

@media (max-width: 1180px) {
  .appointments-toolbar,
  .day-capacity {
    grid-template-columns: 1fr;
  }

  .date-navigator {
    justify-content: start;
  }

  .appointments-head,
  .appointments-row {
    grid-template-columns: 136px minmax(180px, 1fr) minmax(150px, 0.8fr) 138px;
  }

  .appointments-head span:nth-child(4),
  .appointments-head span:nth-child(5),
  .appointments-head span:nth-child(6),
  .appointments-row > span:nth-child(4),
  .appointments-row > span:nth-child(5) {
    display: none;
  }

  .appointment-detail-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 14px;
  }
}

@media (max-width: 760px) {
  .appointments-row {
    grid-template-columns: 136px minmax(0, 1fr) 132px;
  }

  .appointments-row .appointment-vehicle {
    display: none;
  }

  .appointment-detail-panel {
    grid-template-columns: 1fr;
  }
}

/* Conversations desk */
.nav-item::before {
  content: none !important;
  display: none !important;
}

.nav-item svg,
.message small svg,
.ghost-button svg,
.primary-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.line-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: currentColor;
  overflow: visible;
}

.icon-home {
  mask-image: url("./assets/icons/home.svg");
  -webkit-mask-image: url("./assets/icons/home.svg");
}

.icon-panel-left {
  mask-image: url("./assets/icons/panel-left.svg");
  -webkit-mask-image: url("./assets/icons/panel-left.svg");
}

.icon-message-square {
  mask-image: url("./assets/icons/message-square.svg");
  -webkit-mask-image: url("./assets/icons/message-square.svg");
}

.icon-calendar-days {
  mask-image: url("./assets/icons/calendar-days.svg");
  -webkit-mask-image: url("./assets/icons/calendar-days.svg");
}

.icon-users {
  mask-image: url("./assets/icons/users.svg");
  -webkit-mask-image: url("./assets/icons/users.svg");
}

.icon-tag {
  mask-image: url("./assets/icons/tag.svg");
  -webkit-mask-image: url("./assets/icons/tag.svg");
}

.icon-settings {
  mask-image: url("./assets/icons/settings.svg");
  -webkit-mask-image: url("./assets/icons/settings.svg");
}

.icon-monitor {
  mask-image: url("./assets/icons/monitor.svg");
  -webkit-mask-image: url("./assets/icons/monitor.svg");
}

.icon-bot {
  mask-image: url("./assets/icons/bot.svg");
  -webkit-mask-image: url("./assets/icons/bot.svg");
}

.icon-copy {
  mask-image: url("./assets/icons/copy.svg");
  -webkit-mask-image: url("./assets/icons/copy.svg");
}

.icon-send {
  mask-image: url("./assets/icons/send.svg");
  -webkit-mask-image: url("./assets/icons/send.svg");
}

.icon-check {
  mask-image: url("./assets/icons/check.svg");
  -webkit-mask-image: url("./assets/icons/check.svg");
}

.icon-calendar-plus {
  mask-image: url("./assets/icons/calendar-plus.svg");
  -webkit-mask-image: url("./assets/icons/calendar-plus.svg");
}

.icon-plus {
  mask-image: url("./assets/icons/plus.svg");
  -webkit-mask-image: url("./assets/icons/plus.svg");
}

.icon-chevron-down {
  mask-image: url("./assets/icons/chevron-down.svg");
  -webkit-mask-image: url("./assets/icons/chevron-down.svg");
}

.icon-chevron-up {
  mask-image: url("./assets/icons/chevron-up.svg");
  -webkit-mask-image: url("./assets/icons/chevron-up.svg");
}

.icon-clock {
  mask-image: url("./assets/icons/clock.svg");
  -webkit-mask-image: url("./assets/icons/clock.svg");
}

.icon-triangle-alert {
  mask-image: url("./assets/icons/triangle-alert.svg");
  -webkit-mask-image: url("./assets/icons/triangle-alert.svg");
}

.icon-message-circle {
  mask-image: url("./assets/icons/message-circle.svg");
  -webkit-mask-image: url("./assets/icons/message-circle.svg");
}

.icon-mic {
  mask-image: url("./assets/icons/mic.svg");
  -webkit-mask-image: url("./assets/icons/mic.svg");
}

.icon-paperclip {
  mask-image: url("./assets/icons/paperclip.svg");
  -webkit-mask-image: url("./assets/icons/paperclip.svg");
}

.icon-file-text {
  mask-image: url("./assets/icons/file-text.svg");
  -webkit-mask-image: url("./assets/icons/file-text.svg");
}

.icon-x {
  mask-image: url("./assets/icons/x.svg");
  -webkit-mask-image: url("./assets/icons/x.svg");
}

.icon-user-round {
  mask-image: url("./assets/icons/user-round.svg");
  -webkit-mask-image: url("./assets/icons/user-round.svg");
}

.icon-user-check {
  mask-image: url("./assets/icons/user-check.svg");
  -webkit-mask-image: url("./assets/icons/user-check.svg");
}

.icon-phone {
  mask-image: url("./assets/icons/phone.svg");
  -webkit-mask-image: url("./assets/icons/phone.svg");
}

.icon-car-front {
  mask-image: url("./assets/icons/car-front.svg");
  -webkit-mask-image: url("./assets/icons/car-front.svg");
}

.icon-badge-dollar-sign {
  mask-image: url("./assets/icons/badge-dollar-sign.svg");
  -webkit-mask-image: url("./assets/icons/badge-dollar-sign.svg");
}

.icon-calendar-check {
  mask-image: url("./assets/icons/calendar-check.svg");
  -webkit-mask-image: url("./assets/icons/calendar-check.svg");
}

.icon-target {
  mask-image: url("./assets/icons/target.svg");
  -webkit-mask-image: url("./assets/icons/target.svg");
}

.icon-clipboard-list {
  mask-image: url("./assets/icons/clipboard-list.svg");
  -webkit-mask-image: url("./assets/icons/clipboard-list.svg");
}

.icon-map-pin {
  mask-image: url("./assets/icons/map-pin.svg");
  -webkit-mask-image: url("./assets/icons/map-pin.svg");
}

.icon-pause {
  mask-image: url("./assets/icons/pause.svg");
  -webkit-mask-image: url("./assets/icons/pause.svg");
}

.icon-rotate-ccw {
  mask-image: url("./assets/icons/rotate-ccw.svg");
  -webkit-mask-image: url("./assets/icons/rotate-ccw.svg");
}

.icon-trash-2 {
  mask-image: url("./assets/icons/trash-2.svg");
  -webkit-mask-image: url("./assets/icons/trash-2.svg");
}

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

.conversations-view {
  gap: 4px;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.conversations-header {
  align-items: start;
  min-height: 38px;
  margin-bottom: 0;
}

.conversations-header h1 {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.conversations-header .eyebrow {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-transform: none;
}

.conversations-header .control-meta {
  gap: 10px;
}

.conversations-header .system-pill {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.conversations-header .date-pill {
  font-size: 12px;
}

.conversation-actors {
  display: flex;
  gap: 8px;
  min-height: 58px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 8px;
}

.conversation-actor-card {
  display: inline-grid;
  grid-template-columns: 30px minmax(92px, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 168px;
  max-width: 230px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  text-align: left;
}

.conversation-actor-card:hover {
  border-color: rgba(91, 200, 255, 0.36);
  background: rgba(91, 200, 255, 0.08);
}

.conversation-actor-card.active {
  border-color: rgba(125, 255, 178, 0.44);
  background: rgba(125, 255, 178, 0.11);
  color: var(--ink);
  box-shadow: inset 3px 0 0 rgba(125, 255, 178, 0.72);
}

.conversation-actor-card.bot.active {
  border-color: rgba(91, 200, 255, 0.5);
  background: rgba(91, 200, 255, 0.12);
  box-shadow: inset 3px 0 0 rgba(91, 200, 255, 0.72);
}

.conversation-actor-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--green);
}

.conversation-actor-card.bot .conversation-actor-icon {
  color: #5bc8ff;
}

.conversation-actor-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.conversation-actor-copy strong,
.conversation-actor-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-actor-copy strong {
  font-size: 14px;
  line-height: 1.1;
}

.conversation-actor-copy small {
  color: var(--muted);
  font-size: 12px;
}

.conversation-actor-count {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.conversation-actor-caption {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.conversation-shell {
  width: 100%;
  max-width: 100%;
  grid-template-columns: clamp(310px, 27%, 420px) minmax(0, 1fr) clamp(260px, 20%, 330px);
  justify-content: stretch;
  gap: 10px;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.chat-list-panel,
.chat-panel,
.context-panel {
  min-width: 0;
  max-width: 100%;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(91, 200, 255, 0.035), transparent 34%),
    rgba(10, 15, 23, 0.9);
}

.chat-list-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 10px;
  font-size: 14px;
}

.conversation-search input {
  min-height: 38px;
  margin-bottom: 8px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.22);
  font-size: 14px;
}

.chat-tabs {
  gap: 5px;
  padding: 4px;
  min-width: 0;
  overflow: hidden;
}

.chat-tabs button {
  display: inline-flex;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 560;
  overflow: hidden;
}

.chat-tab-label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-tab-count {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.chat-tabs button.active .chat-tab-count {
  background: rgba(125, 255, 178, 0.22);
  color: var(--green);
}

.chat-list {
  gap: 7px;
}

.chat-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 5px 8px;
}

.chat-row.active {
  border-color: rgba(82, 223, 101, 0.62);
  background: rgba(82, 223, 101, 0.14);
  box-shadow: inset 3px 0 0 #52df65;
}

.chat-row-copy {
  min-width: 0;
}

.chat-row-top strong,
.chat-row-meta span,
.chat-row-vehicle,
.chat-row p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-row-top strong {
  font-size: 13px;
}

.chat-row-top small {
  color: #ffe6a3;
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 230, 163, 0.2);
}

.chat-row-time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.client-attention-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #52df65;
  box-shadow: 0 0 0 3px rgba(82, 223, 101, 0.15), 0 0 12px rgba(82, 223, 101, 0.55);
}

.chat-row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  min-width: 0;
}

.chat-row-meta span {
  display: block;
  max-width: 100%;
  min-width: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.chat-row-meta .tag {
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 4px 7px;
  font-size: 13px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-row p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1.25;
}

.chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
}

.chat-header {
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
}

.chat-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-header h2 {
  margin-top: 3px;
  font-size: var(--content-title-size);
}

.chat-header small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
}

.chat-control .primary-button,
.chat-control .danger-button,
.chat-control .caution-button {
  font-size: 14px;
  white-space: nowrap;
}

.chat-control .primary-button .svg-icon,
.chat-control .caution-button .svg-icon,
.context-actions .primary-button .svg-icon,
.context-actions .caution-button .svg-icon {
  width: 25px;
  height: 25px;
}

.chat-messages {
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
}

.message-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.message-line.ai,
.message-line.advisor,
.message-line.system {
  justify-content: flex-end;
}

.message-line.human {
  justify-content: flex-start;
}

.message-line.ai .message-avatar,
.message-line.advisor .message-avatar,
.message-line.system .message-avatar {
  order: 2;
}

.message-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.message-line.human .message-avatar {
  border: 1px solid rgba(255, 95, 114, 0.28);
  background: linear-gradient(135deg, rgba(150, 28, 45, 0.92), rgba(86, 18, 32, 0.92));
  color: #fff;
}

.message-line.ai .message-avatar {
  border: 1px solid rgba(91, 200, 255, 0.32);
  background: radial-gradient(circle at 45% 35%, rgba(91, 200, 255, 0.34), rgba(19, 64, 104, 0.95));
  color: #a9e7ff;
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.18);
}

.message-line.advisor .message-avatar {
  border: 1px solid rgba(244, 178, 91, 0.34);
  background: radial-gradient(circle at 45% 35%, rgba(244, 178, 91, 0.28), rgba(86, 49, 21, 0.96));
  color: #ffe7c4;
  box-shadow: 0 0 18px rgba(244, 136, 58, 0.16);
}

.message-line.system .message-avatar {
  border: 1px solid rgba(242, 190, 98, 0.34);
  background: radial-gradient(circle at 45% 35%, rgba(242, 190, 98, 0.26), rgba(80, 58, 20, 0.96));
  color: #ffe8ae;
  box-shadow: 0 0 18px rgba(242, 190, 98, 0.13);
}

.message-line.quote-resolved-line .message-avatar {
  border-color: rgba(89, 205, 132, 0.34);
  background: radial-gradient(circle at 45% 35%, rgba(89, 205, 132, 0.28), rgba(20, 76, 49, 0.96));
  color: #d6ffe4;
  box-shadow: 0 0 18px rgba(89, 205, 132, 0.13);
}

.message-line.quote-sending-line .message-avatar {
  border-color: rgba(91, 200, 255, 0.34);
  background: radial-gradient(circle at 45% 35%, rgba(91, 200, 255, 0.28), rgba(20, 62, 92, 0.96));
  color: #d7f3ff;
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.13);
}

.message-avatar .svg-icon {
  width: 24px;
  height: 24px;
}

.message {
  max-width: min(72%, 760px);
  min-width: 170px;
  padding: 10px 12px 7px;
  border-radius: 9px;
  position: relative;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.message.ai {
  border-color: rgba(82, 223, 101, 0.32);
  background: linear-gradient(180deg, rgba(19, 115, 66, 0.68), rgba(9, 84, 48, 0.86));
  color: #d9ffe8;
}

.message.advisor {
  border-color: rgba(255, 201, 94, 0.32);
  background: linear-gradient(180deg, rgba(255, 201, 94, 0.12), rgba(255, 201, 94, 0.026));
  color: #ffffff;
}

.message.advisor.document-message {
  border-color: rgba(255, 201, 94, 0.38);
  background: linear-gradient(180deg, rgba(255, 201, 94, 0.14), rgba(255, 201, 94, 0.035));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 225, 150, 0.08);
}

.message.system {
  border: 1px solid rgba(242, 190, 98, 0.3);
  background: linear-gradient(180deg, rgba(66, 51, 24, 0.88), rgba(43, 35, 23, 0.96));
  color: #fff0ce;
}

.message.human {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(42, 50, 60, 0.86), rgba(24, 30, 39, 0.94));
  color: rgba(255, 255, 255, 0.88);
}

.message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.audio-message {
  width: min(360px, 100%);
}

.image-message {
  width: min(460px, 72%);
}

.image-message-body {
  display: grid;
  gap: 8px;
}

.image-message-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.image-message-button:focus-visible {
  outline: 2px solid rgba(158, 231, 255, 0.9);
  outline-offset: 2px;
}

.image-message-preview,
.image-message-placeholder {
  width: 100%;
  max-height: 320px;
  border-radius: 7px;
}

.image-message-preview {
  display: block;
  object-fit: cover;
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}

.image-message-button:hover .image-message-preview {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.image-message-placeholder {
  display: grid;
  min-height: 160px;
  place-items: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.76);
}

.document-message {
  width: min(460px, 72%);
}

.document-message-card,
.location-message-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

.document-message-icon,
.location-message-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.message.advisor.document-message .document-message-icon {
  background: rgba(255, 179, 98, 0.16);
  color: #ffe2bd;
}

.document-message-icon .svg-icon,
.location-message-icon .svg-icon {
  width: 20px;
  height: 20px;
}

.document-message-card strong,
.document-message-card small,
.location-message-card strong,
.location-message-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-message-card strong,
.location-message-card strong {
  font-weight: 650;
}

.document-message-card small,
.location-message-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.document-message-card a,
.location-message-card a {
  color: #9ee7ff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.message.advisor.document-message .document-message-card a {
  color: #aeeeff;
}

.location-message {
  width: min(480px, 72%);
}

.quote-delivery-message.pending {
  border-color: rgba(238, 186, 91, 0.42);
  background: linear-gradient(180deg, rgba(67, 50, 23, 0.93), rgba(41, 34, 23, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 221, 153, 0.07);
}

.quote-delivery-message.resolved {
  border-color: rgba(89, 205, 132, 0.38);
  background: linear-gradient(180deg, rgba(26, 69, 47, 0.9), rgba(18, 43, 34, 0.98));
  color: #e6ffed;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(144, 255, 181, 0.07);
}

.quote-sending-message {
  border-color: rgba(91, 200, 255, 0.38);
  background: linear-gradient(180deg, rgba(22, 58, 84, 0.92), rgba(17, 36, 54, 0.98));
  color: #e7f8ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(139, 221, 255, 0.07);
}

.quote-delivery-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: min(360px, 100%);
}

.quote-delivery-alert strong {
  display: block;
  font-weight: 650;
}

.quote-delivery-alert p {
  margin-top: 3px;
}

.quote-retry-button,
.quote-delivery-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.quote-retry-button {
  border: 1px solid rgba(242, 190, 98, 0.42);
  background: rgba(242, 190, 98, 0.13);
  color: #fff0c2;
  cursor: pointer;
}

.quote-retry-button:hover:not(:disabled) {
  border-color: rgba(242, 190, 98, 0.68);
  background: rgba(242, 190, 98, 0.2);
}

.quote-retry-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.quote-delivery-status {
  border: 1px solid rgba(89, 205, 132, 0.42);
  background: rgba(89, 205, 132, 0.16);
  color: #dcffe7;
}

.quote-delivery-status.sending {
  border-color: rgba(91, 200, 255, 0.42);
  background: rgba(91, 200, 255, 0.14);
  color: #d9f5ff;
}

.sending-dots {
  display: inline-flex;
  margin-left: 2px;
  min-width: 14px;
}

.quote-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(217, 245, 255, 0.28);
  border-top-color: #d9f5ff;
  border-radius: 50%;
  animation: quote-spin 0.85s linear infinite;
}

.sending-dots span {
  animation: quote-dot 1.2s infinite ease-in-out;
  opacity: 0.28;
}

.sending-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.sending-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes quote-dot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes quote-spin {
  to {
    transform: rotate(360deg);
  }
}

.quote-retry-button .svg-icon,
.quote-delivery-status .svg-icon {
  width: 15px;
  height: 15px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
}

.image-lightbox-frame {
  display: grid;
  gap: 12px;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  margin: 0;
}

.image-lightbox-frame img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: calc(92vh - 48px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.image-lightbox-frame figcaption {
  max-width: min(96vw, 900px);
  justify-self: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  white-space: pre-wrap;
}

.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
}

.image-lightbox-close:hover {
  border-color: rgba(125, 255, 178, 0.42);
  background: rgba(125, 255, 178, 0.14);
}

.image-lightbox-close .svg-icon {
  width: 20px;
  height: 20px;
}

.audio-player {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: min(280px, 100%);
}

.audio-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.audio-icon .svg-icon {
  width: 17px;
  height: 17px;
}

.audio-player audio {
  width: 100%;
  min-width: 0;
  height: 38px;
}

.audio-record-button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.audio-record-button .svg-icon {
  width: 20px;
  height: 20px;
}

.audio-record-button.recording {
  border-color: rgba(255, 95, 114, 0.45);
  background: rgba(255, 95, 114, 0.16);
  color: #ffd5da;
}

.message-emoji {
  display: inline-block;
  font-size: 1.45em;
  line-height: 1;
  vertical-align: -0.1em;
}

.message footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 0;
}

.message footer time {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

.message.ai footer {
  color: rgba(205, 255, 225, 0.74);
}

.message.advisor footer {
  color: rgba(255, 229, 194, 0.72);
}

.dashboard-message-signature {
  display: inline-block;
  margin-right: 3px;
  color: rgba(255, 229, 194, 0.68);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.message-checks {
  color: #9ee7ff;
  font-size: 11px;
  letter-spacing: -2px;
}

.message-date {
  align-self: center;
  margin: 4px 0;
  padding: 6px 12px;
  border: 1px solid rgba(125, 255, 178, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(185, 255, 208, 0.75);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.2);
}

.chat-composer label,
.chat-composer .composer-input {
  display: grid;
  gap: 7px;
}

.composer-input {
  position: relative;
}

.composer-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

textarea {
  width: 100%;
  min-height: 58px;
  max-height: 152px;
  resize: none;
  overflow-y: hidden;
  border: 1px solid rgba(125, 255, 178, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 13px 12px;
  font: inherit;
  line-height: 1.35;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.composer-input textarea {
  min-height: 50px;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 96px;
  padding-right: 56px;
}

.composer-attach-button {
  position: absolute;
  left: 10px;
  bottom: 7px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.composer-attach-button:hover:not(:disabled) {
  border-color: rgba(125, 255, 178, 0.34);
  background: rgba(125, 255, 178, 0.12);
  color: var(--green);
}

.composer-attach-button:active:not(:disabled) {
  transform: scale(0.96);
}

.composer-attach-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.composer-attach-button .svg-icon {
  width: 18px;
  height: 18px;
}

.composer-location-button {
  position: absolute;
  left: 52px;
  bottom: 7px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.composer-location-button:hover:not(:disabled) {
  border-color: rgba(158, 231, 255, 0.42);
  background: rgba(158, 231, 255, 0.12);
  color: #9ee7ff;
}

.composer-location-button:active:not(:disabled) {
  transform: scale(0.96);
}

.composer-location-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.composer-location-button .svg-icon {
  width: 18px;
  height: 18px;
}

.composer-inline-action {
  position: absolute;
  right: 10px;
  bottom: 7px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(125, 255, 178, 0.26);
  border-radius: 50%;
  background: rgba(125, 255, 178, 0.12);
  color: var(--green);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.composer-inline-action:hover:not(:disabled) {
  border-color: rgba(125, 255, 178, 0.5);
  background: rgba(125, 255, 178, 0.2);
}

.composer-inline-action:active:not(:disabled) {
  transform: scale(0.96);
}

.composer-inline-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.composer-inline-action .svg-icon {
  width: 18px;
  height: 18px;
}

.composer-inline-action.recording {
  border-color: rgba(255, 95, 114, 0.5);
  background: rgba(255, 95, 114, 0.16);
  color: #ffd5da;
}

.recording-strip {
  display: grid;
  grid-template-columns: 34px 10px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 58px 10px 10px;
  border: 1px solid rgba(255, 95, 114, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 95, 114, 0.1), rgba(125, 255, 178, 0.055)),
    rgba(255, 255, 255, 0.055);
}

.recording-cancel {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

.recording-cancel:hover {
  border-color: rgba(255, 95, 114, 0.42);
  color: #ffd5da;
}

.recording-cancel .svg-icon {
  width: 17px;
  height: 17px;
}

.recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 95, 114, 0.45);
  animation: recordingPulse 1.15s ease-in-out infinite;
}

.recording-time {
  color: #ffd5da;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.recording-wave {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  gap: 3px;
  overflow: hidden;
}

.recording-wave i {
  display: block;
  width: 3px;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(125, 255, 178, 0.95), rgba(91, 200, 255, 0.72));
  transform-origin: center;
  animation: recordingWave 760ms ease-in-out infinite alternate;
  animation-delay: var(--bar-delay);
}

@keyframes recordingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 114, 0.36);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 95, 114, 0);
    transform: scale(0.88);
  }
}

@keyframes recordingWave {
  from {
    transform: scaleY(0.42);
    opacity: 0.62;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

textarea:hover,
textarea:focus {
  border-color: rgba(125, 255, 178, 0.46);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 1px rgba(125, 255, 178, 0.1);
  outline: 0;
}

textarea:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 201, 94, 0.24);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 8px,
      rgba(0, 0, 0, 0.08) 8px,
      rgba(0, 0, 0, 0.08) 16px
    ),
    rgba(255, 201, 94, 0.055);
  color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

textarea:disabled:hover,
textarea:disabled:focus {
  border-color: rgba(255, 201, 94, 0.24);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 8px,
      rgba(0, 0, 0, 0.08) 8px,
      rgba(0, 0, 0, 0.08) 16px
    ),
    rgba(255, 201, 94, 0.055);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
  outline: 0;
}

.composer-actions,
.context-actions {
  display: grid;
  gap: 8px;
}

.composer-actions {
  align-content: end;
  min-width: 190px;
}

.composer-actions .ghost-button,
.composer-actions .primary-button,
.context-actions .ghost-button,
.context-actions .primary-button,
.context-actions .danger-button,
.context-actions .caution-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.composer-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: rgba(255, 201, 94, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.context-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 10px;
  overflow: hidden;
}

.context-panel h2 {
  margin-top: 3px;
  font-size: var(--content-title-size);
}

.context-card {
  align-content: start;
  display: grid;
  gap: 8px;
  margin-top: 9px;
  min-height: 0;
  overflow-y: auto;
}

.context-item {
  padding: 10px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.context-item strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.3;
}

.context-actions {
  margin-top: 4px;
}

.conversation-state-card {
  padding: 10px;
  border: 1px solid rgba(82, 223, 101, 0.28);
  border-radius: 8px;
  background: rgba(82, 223, 101, 0.09);
}

.conversation-state-card.red {
  border-color: rgba(255, 95, 114, 0.32);
  background: rgba(255, 95, 114, 0.09);
}

.conversation-state-card.purple {
  border-color: rgba(168, 140, 255, 0.32);
  background: rgba(168, 140, 255, 0.09);
}

.conversation-state-card.amber {
  border-color: rgba(255, 201, 94, 0.32);
  background: rgba(255, 201, 94, 0.09);
}

.conversation-state-card.white {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.conversation-state-card.gray {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.conversation-state-card > span:first-child {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.state-status-pill {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin-top: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 520;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.state-status-pill.green {
  border-color: rgba(125, 255, 178, 0.38);
  background: rgba(125, 255, 178, 0.08);
  color: #8dffac;
}

.state-status-pill.red {
  border-color: rgba(255, 95, 114, 0.4);
  background: rgba(255, 95, 114, 0.08);
  color: #ff8fa0;
}

.state-status-pill.purple {
  border-color: rgba(168, 140, 255, 0.42);
  background: rgba(168, 140, 255, 0.09);
  color: #c8b5ff;
}

.state-status-pill.amber {
  border-color: rgba(255, 201, 94, 0.42);
  background: rgba(255, 201, 94, 0.1);
  color: #ffd77d;
}

.state-status-pill.white {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.state-status-pill.gray {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.conversation-state-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
}

.context-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(82, 223, 101, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 223, 101, 0.13), rgba(168, 140, 255, 0.07)),
    rgba(255, 255, 255, 0.035);
}

.context-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(82, 223, 101, 0.35);
  border-radius: 50%;
  background: rgba(82, 223, 101, 0.13);
  color: #8dffac;
  font-weight: 700;
}

.context-hero strong,
.context-hero small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-hero strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.context-hero small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.context-block {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.context-block.highlight {
  border-color: rgba(168, 140, 255, 0.28);
  background: linear-gradient(180deg, rgba(168, 140, 255, 0.1), rgba(255, 255, 255, 0.025));
}

.context-block-data {
  border-color: rgba(255, 201, 94, 0.32);
  background: linear-gradient(180deg, rgba(255, 201, 94, 0.12), rgba(255, 201, 94, 0.026));
}

.context-block-vehicle {
  border-color: rgba(82, 223, 101, 0.3);
  background: linear-gradient(180deg, rgba(82, 223, 101, 0.115), rgba(82, 223, 101, 0.026));
}

.context-block-quote {
  border-color: rgba(82, 223, 101, 0.32);
  background: linear-gradient(180deg, rgba(82, 223, 101, 0.12), rgba(82, 223, 101, 0.026));
}

.context-block-appointment {
  --appointment-accent: #5bc8ff;
  --appointment-accent-rgb: 91, 200, 255;
  border-color: rgba(var(--appointment-accent-rgb), 0.32);
  background: linear-gradient(180deg, rgba(var(--appointment-accent-rgb), 0.12), rgba(var(--appointment-accent-rgb), 0.026));
}

.context-block-appointment.appointment-state-confirmed {
  --appointment-accent: #5bc8ff;
  --appointment-accent-rgb: 91, 200, 255;
}

.context-block-appointment.appointment-state-pending {
  --appointment-accent: #5bc8ff;
  --appointment-accent-rgb: 91, 200, 255;
}

.context-block-appointment.appointment-state-rescheduled {
  --appointment-accent: #5bc8ff;
  --appointment-accent-rgb: 91, 200, 255;
}

.context-block-appointment.appointment-state-cancelled {
  --appointment-accent: #ff5f72;
  --appointment-accent-rgb: 255, 95, 114;
}

.context-block-appointment.appointment-state-empty {
  --appointment-accent: #5bc8ff;
  --appointment-accent-rgb: 91, 200, 255;
}

.context-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
  min-width: 0;
}

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

.context-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.chat-row-vehicle {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.context-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
}

.context-block h3 span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-block h3 .svg-icon {
  width: 30px;
  height: 30px;
  color: #8dffac;
}

.context-block-data h3 .svg-icon {
  color: #ffc95e;
}

.context-block-vehicle h3 .svg-icon {
  color: #8dffac;
}

.context-block.highlight h3 .svg-icon,
.context-block-quote h3 .svg-icon {
  color: #52df65;
}

.context-block-appointment h3 .svg-icon {
  color: var(--appointment-accent);
}

.context-line-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.context-line-item:first-of-type {
  border-top: 0;
}

.context-line-item > span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 500;
}

.context-line-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.18;
}

.editable-client-name-button {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.editable-client-name-button:not(:disabled):hover {
  border-color: rgba(255, 201, 94, 0.28);
  background: rgba(255, 201, 94, 0.08);
  color: #fff0c2;
}

.editable-client-name-button:disabled {
  cursor: not-allowed;
}

.editable-client-name-input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 201, 94, 0.42);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.editable-client-name-input:focus {
  border-color: rgba(255, 201, 94, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 201, 94, 0.14);
}

.contact-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 9px;
}

.contact-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease);
}

.contact-switch-button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-switch-button .svg-icon {
  width: 15px;
  height: 15px;
}

.contact-switch-button.allowed.active {
  border-color: rgba(82, 223, 101, 0.34);
  background: rgba(82, 223, 101, 0.13);
  color: #8dffac;
}

.contact-switch-button.blocked.active {
  border-color: rgba(255, 95, 114, 0.38);
  background: rgba(255, 95, 114, 0.14);
  color: #ff9aa7;
}

.contact-switch-button:not(:disabled):hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
}

.contact-switch-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.appointment-date-time {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(10px);
}

.quote-modal {
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(91, 200, 255, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(23, 50, 67, 0.98), rgba(14, 31, 45, 0.99)),
    #142b3e;
  box-shadow: var(--shadow);
}

.floating-window {
  position: fixed;
  top: var(--window-y, 72px);
  left: var(--window-x, 320px);
  z-index: 82;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(91, 200, 255, 0.18),
    0 0 34px rgba(91, 200, 255, 0.16);
}

.floating-window .quote-modal-form {
  max-height: calc(100vh - 116px);
  overflow: auto;
}

.appointment-cancel-window {
  width: min(520px, calc(100vw - 24px));
}

.appointment-cancel-reason {
  grid-column: 1 / -1;
}

.floating-window-header {
  cursor: move;
  user-select: none;
  touch-action: none;
}

.floating-window-header .icon-button {
  cursor: pointer;
}

.floating-window .eyebrow {
  color: rgba(142, 219, 255, 0.78);
}

.floating-window .icon-button {
  border-color: rgba(142, 219, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #d9f2ff;
}

.floating-window .icon-button:hover {
  border-color: rgba(142, 219, 255, 0.32);
  background: rgba(91, 200, 255, 0.14);
  color: #ffffff;
}

body.dragging-window {
  user-select: none;
}

.quote-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(91, 200, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(29, 66, 88, 0.98), rgba(18, 43, 61, 0.98)),
    rgba(91, 200, 255, 0.08);
}

.quote-modal-header h2 {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--content-title-size);
}

.floating-window-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-window-title > .svg-icon {
  width: 34px;
  height: 34px;
  color: #8edbff;
}

.quote-window {
  border-color: rgba(210, 218, 226, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.88);
}

.quote-window .quote-modal-header {
  border-bottom-color: rgba(222, 228, 235, 0.95);
  background: transparent;
}

.quote-window .floating-window-title > .svg-icon,
.quote-window .eyebrow {
  color: #28c078;
}

.quote-window .quote-modal-form {
  background: transparent;
}

.quote-window .quote-modal-form fieldset {
  border-color: rgba(214, 222, 232, 0.95);
  background: #ffffff;
}

.quote-window .quote-modal-form legend {
  color: #15803d;
}

.quote-window .quote-modal-form select option {
  background: #f1f5f9;
  color: #111827;
}

.quote-window .quote-modal-form input,
.quote-window .quote-modal-form select,
.quote-window .quote-modal-form textarea,
.quote-window .quote-option-select-button {
  border-color: #d9e1ea;
  background: #f1f5f9;
  color: #172033;
}

.quote-window .quote-phone-prefix,
.quote-window .quote-combo-toggle {
  border-color: #d9e1ea;
  background: #e8eef5;
  color: #172033;
}

.quote-window .quote-modal-header h2 {
  color: #172033;
}

.quote-window .quote-modal-form label,
.quote-window .quote-modal-form label > span {
  color: #0f766e;
}

.quote-window .quote-modal-form .quote-option-select-button > span:first-child {
  color: #111827;
}

.quote-window .quote-phone-prefix,
.quote-window .quote-modal-form input,
.quote-window .quote-modal-form textarea,
.quote-window .quote-option-select-button {
  color: #111827;
}

.quote-window .quote-modal-form .quote-option-select-button > span:last-child {
  color: #64748b;
}

.quote-window .quote-modal-form .required-mark {
  color: #10b981;
}

.quote-window .quote-modal-form input:focus,
.quote-window .quote-modal-form select:focus,
.quote-window .quote-modal-form textarea:focus,
.quote-window .quote-option-select-button:focus {
  border-color: #20bf73;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 191, 115, 0.14);
}

.quote-window .quote-phone-control:focus-within .quote-phone-prefix {
  border-color: #20bf73;
  background: #dcfce7;
  color: #166534;
}

.quote-window .quote-combo-toggle:hover,
.quote-window .quote-combo-toggle:focus {
  background: #dcfce7;
  color: #166534;
}

.quote-window .quote-option-list,
.quote-window .quote-suggestion-list {
  border-color: #d9e1ea;
  background: #ffffff;
}

.quote-window .quote-option-list button,
.quote-window .quote-suggestion-list button {
  color: #172033;
}

.quote-window .quote-option-list button:hover,
.quote-window .quote-option-list button.active,
.quote-window .quote-option-list button[aria-selected="true"],
.quote-window .quote-suggestion-list button:hover,
.quote-window .quote-suggestion-list button:focus,
.quote-window .quote-suggestion-list button.active {
  background: #dcfce7;
  color: #166534;
}

.quote-window .quote-suggestion-empty {
  color: #64748b;
}

.quote-window .icon-button {
  border-color: #d9e1ea;
  background: #f1f5f9;
  color: #64748b;
}

.quote-window .icon-button:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #172033;
}

.quote-modal-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(13, 31, 45, 0.3);
}

.quote-modal-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(91, 200, 255, 0.22);
  border-radius: 8px;
  background: rgba(13, 34, 49, 0.46);
}

.quote-modal-form .quote-vehicle-fieldset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-modal-form legend {
  padding: 0 6px;
  color: rgba(142, 219, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-modal-form label {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  color: rgba(185, 213, 229, 0.82);
  font-size: 16px;
  font-weight: 500;
}

.quote-modal-form label > span {
  color: rgba(185, 213, 229, 0.82);
  font-size: 16px;
  font-weight: 500;
}

.quote-modal-form .required-mark {
  margin-left: 3px;
  color: #7dffb2;
  font-weight: 650;
}

.appointment-schedule-hint {
  color: rgba(185, 213, 229, 0.5);
  font-size: 12px;
  font-weight: 400;
}

.quote-window .appointment-schedule-hint {
  color: #64748b;
}

.quote-modal-form input,
.quote-modal-form select,
.quote-modal-form textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid rgba(142, 219, 255, 0.18);
  border-radius: 7px;
  background: rgba(5, 13, 21, 0.76);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 11px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
}

.quote-modal-form input:focus,
.quote-modal-form select:focus,
.quote-modal-form textarea:focus {
  border-color: rgba(91, 200, 255, 0.58);
  background: rgba(7, 17, 26, 0.92);
  box-shadow: 0 0 0 3px rgba(91, 200, 255, 0.12);
  outline: 0;
}

.quote-phone-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

.quote-phone-prefix {
  display: grid;
  min-width: 46px;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(142, 219, 255, 0.18);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background: rgba(91, 200, 255, 0.1);
  color: rgba(217, 242, 255, 0.86);
  font-size: 17px;
  font-weight: 650;
}

.quote-phone-control input {
  border-radius: 0 7px 7px 0;
}

.quote-number-control {
  position: relative;
  display: block;
}

.quote-number-control input {
  padding-right: 34px;
}

.quote-number-steppers {
  position: absolute;
  top: 3px;
  right: 4px;
  bottom: 3px;
  display: grid;
  width: 24px;
  grid-template-rows: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--ease);
}

.quote-number-control:focus-within .quote-number-steppers {
  opacity: 1;
  pointer-events: auto;
}

.quote-number-steppers button {
  display: grid;
  width: 24px;
  min-height: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #13a963;
  padding: 0;
}

.quote-number-steppers button:hover {
  color: #0f8f55;
}

.quote-number-steppers .svg-icon {
  width: 15px;
  height: 15px;
  background: currentColor;
}

.quote-window .quote-number-steppers button {
  color: #13a963;
}

.quote-window .quote-number-steppers button:hover {
  color: #16b56c;
}

.quote-window .quote-number-steppers .svg-icon {
  width: 17px;
  height: 17px;
  background: #13a963;
}

.quote-window .quote-number-control input {
  padding-right: 34px;
}

.quote-phone-control:focus-within .quote-phone-prefix {
  border-color: rgba(91, 200, 255, 0.58);
  background: rgba(91, 200, 255, 0.14);
  color: #ffffff;
}

.quote-modal-form textarea {
  min-height: 104px;
  max-height: 180px;
  overflow-y: auto;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.35;
  scrollbar-gutter: stable;
  scrollbar-color: #13a963 #e8eef5;
  scrollbar-width: thin;
}

.quote-modal-form textarea::-webkit-scrollbar {
  width: 10px;
}

.quote-modal-form textarea::-webkit-scrollbar-track {
  border-radius: 0 7px 7px 0;
  background: #e8eef5;
}

.quote-modal-form textarea::-webkit-scrollbar-thumb {
  border: 2px solid #e8eef5;
  border-radius: 999px;
  background: linear-gradient(180deg, #26c979, #13a963);
}

.quote-modal-form textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #35d688, #16b56c);
}

.quote-modal-form textarea::-webkit-scrollbar-button {
  height: 10px;
  border-radius: 0 7px 0 0;
  background: #d1fae5;
}

.quote-modal-form textarea::-webkit-scrollbar-button:vertical:decrement {
  background:
    linear-gradient(135deg, transparent 42%, #13a963 43% 57%, transparent 58%) center / 8px 8px no-repeat,
    #d1fae5;
}

.quote-modal-form textarea::-webkit-scrollbar-button:vertical:increment {
  background:
    linear-gradient(45deg, transparent 42%, #13a963 43% 57%, transparent 58%) center / 8px 8px no-repeat,
    #d1fae5;
}

.quote-window.appointment-window .quote-modal-form textarea {
  scrollbar-color: #0f5f89 #e0f2fe;
}

.quote-window.appointment-window .quote-modal-form textarea::-webkit-scrollbar-track {
  background: #e0f2fe;
}

.quote-window.appointment-window .quote-modal-form textarea::-webkit-scrollbar-thumb {
  border-color: #e0f2fe;
  background: linear-gradient(180deg, #1679aa, #0f5f89);
}

.quote-window.appointment-window .quote-modal-form textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1f8fc2, #126d9b);
}

.quote-window.appointment-window .quote-modal-form textarea::-webkit-scrollbar-button {
  background: #e0f2fe;
}

.quote-window.appointment-window .quote-modal-form textarea::-webkit-scrollbar-button:vertical:decrement {
  background:
    linear-gradient(135deg, transparent 42%, #0f5f89 43% 57%, transparent 58%) center / 8px 8px no-repeat,
    #e0f2fe;
}

.quote-window.appointment-window .quote-modal-form textarea::-webkit-scrollbar-button:vertical:increment {
  background:
    linear-gradient(45deg, transparent 42%, #0f5f89 43% 57%, transparent 58%) center / 8px 8px no-repeat,
    #e0f2fe;
}

.quote-notes-fieldset,
.quote-notes-label {
  grid-column: 1 / -1;
}

.quote-combo {
  position: relative;
  display: block;
}

.quote-combo input {
  padding-right: 42px;
}

.quote-combo-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 38px;
  height: calc(100% - 2px);
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 7px 7px 0;
  background: rgba(91, 200, 255, 0.08);
  color: rgba(217, 242, 255, 0.78);
  font-size: 18px;
  line-height: 1;
}

.quote-combo-toggle:hover,
.quote-combo-toggle:focus {
  background: rgba(91, 200, 255, 0.16);
  color: #ffffff;
  outline: none;
}

.quote-autocomplete {
  z-index: 30;
}

.quote-option-select {
  position: relative;
  z-index: 28;
}

.quote-option-select-button {
  display: flex;
  min-height: 40px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(142, 219, 255, 0.18);
  border-radius: 7px;
  background: rgba(5, 13, 21, 0.76);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 11px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}

.quote-option-select-button:hover,
.quote-option-select-button:focus {
  border-color: rgba(91, 200, 255, 0.58);
  background: rgba(7, 17, 26, 0.92);
  box-shadow: 0 0 0 3px rgba(91, 200, 255, 0.12);
  outline: 0;
}

.quote-option-select-button:disabled {
  cursor: not-allowed;
  border-color: rgba(142, 219, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  opacity: 0.72;
}

.quote-modal-form .quote-option-select-button > span:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.quote-modal-form .quote-option-select-button > span:last-child {
  color: rgba(217, 242, 255, 0.62);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.quote-window .quote-combo input {
  padding-right: 42px;
}

.quote-window .quote-combo-toggle {
  top: 1px;
  right: 1px;
  width: 38px;
  height: calc(100% - 2px);
  border-left: 1px solid #16a765;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(180deg, #26c979, #13a963);
  color: #ffffff;
}

.quote-window .quote-combo-toggle .svg-icon {
  width: 21px;
  height: 21px;
  color: #ffffff;
  background: #ffffff;
}

.quote-window .quote-combo-toggle:hover,
.quote-window .quote-combo-toggle:focus {
  background: linear-gradient(180deg, #35d688, #16b56c);
  color: #ffffff;
}

.quote-window .quote-option-select-button {
  gap: 0;
  overflow: hidden;
  padding: 0 0 0 11px;
  border-color: #d9e1ea;
  background: #f1f5f9;
}

.quote-window .quote-option-select-button:hover,
.quote-window .quote-option-select-button:focus {
  border-color: #20bf73;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 191, 115, 0.14);
}

.quote-window .quote-modal-form .quote-option-select-button > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  color: #172033;
}

.quote-window .quote-modal-form .quote-option-select-button > span:last-child {
  display: grid;
  align-self: stretch;
  width: 38px;
  min-height: 38px;
  margin-left: 10px;
  place-items: center;
  background: linear-gradient(180deg, #26c979, #13a963);
  color: #ffffff;
}

.quote-window .quote-select-chevron .svg-icon {
  width: 21px;
  height: 21px;
  color: #ffffff;
  background: #ffffff;
}

.quote-window .quote-option-select-button:hover > span:last-child,
.quote-window .quote-option-select-button:focus > span:last-child {
  background: linear-gradient(180deg, #35d688, #16b56c);
}

.quote-option-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 95;
  display: grid;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(91, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 20, 31, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  padding: 4px;
}

.quote-option-list button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 10px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}

.quote-option-list button:hover,
.quote-option-list button.active,
.quote-option-list button[aria-selected="true"] {
  background: rgba(91, 200, 255, 0.14);
  color: #d9f2ff;
}

.quote-suggestion-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(91, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 20, 31, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  padding: 4px;
}

.quote-suggestion-list button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  padding: 7px 9px;
  text-align: left;
  font: inherit;
  font-size: 15px;
}

.quote-suggestion-list button:hover,
.quote-suggestion-list button:focus,
.quote-suggestion-list button.active {
  background: rgba(91, 200, 255, 0.14);
  color: #d9f2ff;
  outline: none;
}

.quote-suggestion-empty {
  padding: 9px;
  color: rgba(217, 242, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
}

.quote-price-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 201, 94, 0.32);
  border-radius: 8px;
  background: rgba(255, 201, 94, 0.1);
}

.quote-price-box.matched {
  border-color: rgba(82, 223, 101, 0.3);
  background: rgba(82, 223, 101, 0.1);
}

.quote-window .quote-price-box,
.quote-window .quote-price-box.matched {
  border-color: rgba(214, 222, 232, 0.95);
  background: #ffffff;
}

.quote-window .quote-submit-button {
  border-color: #20bf73;
  background: linear-gradient(180deg, #26c979, #13a963);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(32, 191, 115, 0.14), 0 12px 28px rgba(19, 169, 99, 0.22);
}

.quote-window .quote-submit-button:hover:not(:disabled) {
  border-color: #22c55e;
  background: linear-gradient(180deg, #35d688, #16b56c);
  box-shadow: 0 0 0 1px rgba(32, 191, 115, 0.18), 0 14px 32px rgba(19, 169, 99, 0.28);
}

.quote-window .ghost-button {
  border-color: #d9e1ea;
  background: #e8eef5;
  color: #334155;
}

.quote-window .ghost-button:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #dfe7f0;
  color: #172033;
}

.quote-window .quote-clear-button {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #334155;
}

.quote-window .quote-clear-button:hover:not(:disabled) {
  border-color: #a5b4fc;
  background: #e0e7ff;
  color: #1e293b;
}

.quote-window.appointment-window {
  border-color: rgba(15, 95, 137, 0.32);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.88),
    0 16px 40px rgba(15, 95, 137, 0.14);
}

.quote-window.appointment-window .floating-window-title > .svg-icon,
.quote-window.appointment-window .eyebrow {
  color: #0f5f89;
}

.quote-window.appointment-window .quote-modal-form legend,
.quote-window.appointment-window .quote-modal-form label,
.quote-window.appointment-window .quote-modal-form label > span {
  color: #164e63;
}

.quote-window.appointment-window .quote-modal-form .required-mark,
.quote-window.appointment-window .quote-number-steppers button {
  color: #0f5f89;
}

.quote-window.appointment-window .quote-number-steppers button:hover {
  color: #1279ad;
}

.quote-window.appointment-window .quote-number-steppers .svg-icon {
  background: #0f5f89;
}

.quote-window.appointment-window .quote-modal-form input:focus,
.quote-window.appointment-window .quote-modal-form select:focus,
.quote-window.appointment-window .quote-modal-form textarea:focus,
.quote-window.appointment-window .quote-option-select-button:focus,
.quote-window.appointment-window .quote-option-select-button:hover {
  border-color: #0f6f9f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 111, 159, 0.16);
}

.quote-window.appointment-window .quote-modal-form input[type="date"],
.quote-window.appointment-window .quote-modal-form input[type="time"] {
  color-scheme: light;
  padding-right: 8px;
}

.quote-window.appointment-window .quote-modal-form input[type="date"]::-webkit-calendar-picker-indicator,
.quote-window.appointment-window .quote-modal-form input[type="time"]::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 4px;
  border: 1px solid rgba(15, 111, 159, 0.32);
  border-radius: 6px;
  background-color: rgba(91, 200, 255, 0.14);
  cursor: pointer;
  filter: invert(32%) sepia(59%) saturate(993%) hue-rotate(158deg) brightness(88%) contrast(92%);
  opacity: 1;
}

.quote-window.appointment-window .quote-modal-form input[type="date"]::-webkit-calendar-picker-indicator:hover,
.quote-window.appointment-window .quote-modal-form input[type="time"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(91, 200, 255, 0.24);
  filter: invert(24%) sepia(82%) saturate(1250%) hue-rotate(166deg) brightness(92%) contrast(96%);
}

.quote-window.appointment-window .quote-phone-control:focus-within .quote-phone-prefix {
  border-color: #0f6f9f;
  background: #e0f2fe;
  color: #0c4a6e;
}

.quote-window.appointment-window .quote-combo-toggle,
.quote-window.appointment-window .quote-option-select-button > span:last-child {
  border-left-color: #0f5f89;
  background: linear-gradient(180deg, #1679aa, #0f5f89);
  color: #ffffff;
}

.quote-window.appointment-window .quote-combo-toggle .svg-icon,
.quote-window.appointment-window .quote-select-chevron .svg-icon {
  background: #ffffff;
  color: #ffffff;
}

.quote-window.appointment-window .quote-combo-toggle:hover,
.quote-window.appointment-window .quote-combo-toggle:focus,
.quote-window.appointment-window .quote-option-select-button:hover > span:last-child,
.quote-window.appointment-window .quote-option-select-button:focus > span:last-child {
  background: linear-gradient(180deg, #1f8fc2, #126d9b);
  color: #ffffff;
}

.quote-window.appointment-window .quote-option-list button:hover,
.quote-window.appointment-window .quote-option-list button.active,
.quote-window.appointment-window .quote-option-list button[aria-selected="true"],
.quote-window.appointment-window .quote-suggestion-list button:hover,
.quote-window.appointment-window .quote-suggestion-list button:focus,
.quote-window.appointment-window .quote-suggestion-list button.active {
  background: #e0f2fe;
  color: #0c4a6e;
}

.quote-window.appointment-window .appointment-original-fieldset {
  grid-template-columns: 1fr;
}

.appointment-original-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
}

.appointment-original-card > .svg-icon {
  width: 28px;
  height: 28px;
  color: #0f5f89;
}

.appointment-original-card span {
  display: block;
  color: #164e63;
  font-size: 13px;
  font-weight: 800;
}

.appointment-original-card strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 650;
}

.appointment-original-card .appointment-date-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-original-card .appointment-date-time span {
  color: #0f172a;
  font-size: 18px;
  font-weight: 650;
}

.quote-window.appointment-window .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #0f5f89;
  background: linear-gradient(180deg, #1679aa, #0f5f89);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 95, 137, 0.16), 0 12px 28px rgba(15, 95, 137, 0.24);
}

.quote-window.appointment-window .primary-button .svg-icon {
  width: 17px;
  height: 17px;
  background: currentColor;
}

.quote-window.appointment-window .primary-button:hover:not(:disabled) {
  border-color: #126d9b;
  background: linear-gradient(180deg, #1f8fc2, #126d9b);
  box-shadow: 0 0 0 1px rgba(15, 95, 137, 0.2), 0 14px 32px rgba(15, 95, 137, 0.3);
}

.quote-window.appointment-cancel-window .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #b91c1c;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.18), 0 12px 26px rgba(185, 28, 28, 0.22);
}

.quote-window.appointment-cancel-window .danger-button:hover:not(:disabled) {
  border-color: #dc2626;
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.22), 0 14px 30px rgba(185, 28, 28, 0.28);
}

.quote-window.appointment-cancel-window .danger-button .svg-icon {
  width: 17px;
  height: 17px;
  background: currentColor;
}

.quote-window .quote-price-box span {
  color: #334155;
}

.quote-window .quote-price-box strong {
  color: #172033;
}

.quote-price-box span {
  color: rgba(217, 242, 255, 0.62);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-price-box strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 22px;
}

.quote-price-box label {
  grid-column: 1 / -1;
}

.quote-modal-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.context-next {
  padding: 12px;
  border: 1px solid rgba(82, 223, 101, 0.25);
  border-radius: 8px;
  background: rgba(82, 223, 101, 0.08);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.context-next:hover {
  border-color: rgba(82, 223, 101, 0.48);
  background: rgba(82, 223, 101, 0.12);
  box-shadow: inset 3px 0 0 rgba(82, 223, 101, 0.54);
}

.context-next span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8dffac;
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.context-next span .svg-icon {
  width: 16px;
  height: 16px;
}

.context-next strong {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.35;
}

.context-actions .ghost-button,
.context-actions .primary-button,
.context-actions .danger-button,
.context-actions .caution-button {
  min-height: 34px;
  font-size: 14px;
}

.context-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

body[data-active-view="conversations"] .chat-list-panel,
body[data-active-view="conversations"] .chat-panel,
body[data-active-view="conversations"] .context-panel {
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background-color 160ms var(--ease);
}

body[data-active-view="conversations"] .chat-list-panel:hover,
body[data-active-view="conversations"] .chat-panel:hover,
body[data-active-view="conversations"] .context-panel:hover {
  border-color: rgba(125, 255, 178, 0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(125, 255, 178, 0.08);
}

body[data-active-view="conversations"] #conversationList .chat-row:not(.active):hover {
  border-color: rgba(125, 255, 178, 0.34);
  background: rgba(125, 255, 178, 0.075);
  box-shadow: inset 3px 0 0 rgba(125, 255, 178, 0.58);
}

body[data-active-view="conversations"] .context-panel .context-next:hover {
  border-color: rgba(82, 223, 101, 0.5);
  background: rgba(82, 223, 101, 0.13);
  box-shadow: inset 3px 0 0 rgba(82, 223, 101, 0.56);
}

body[data-active-view="conversations"] .chat-tabs button[data-filter="human_waiting"] {
  color: #ff8f8f;
}

body[data-active-view="conversations"] .chat-tabs button[data-filter="human_waiting"] .chat-tab-count {
  background: rgba(255, 93, 93, 0.18);
  color: #ffb3b3;
}

body[data-active-view="conversations"] .chat-tabs button[data-filter="human_waiting"].active {
  background: rgba(255, 93, 93, 0.16);
  color: #ffb3b3;
}

@media (max-width: 1260px) {
  .conversation-actors {
    flex-wrap: wrap;
    max-height: 126px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .conversation-shell {
    grid-template-columns: minmax(310px, 0.48fr) minmax(0, 1fr);
    align-content: start;
    overflow-y: auto;
  }

  .context-panel {
    grid-column: 1 / -1;
    min-height: 260px;
  }

  .chat-list-panel,
  .chat-panel {
    min-height: 420px;
  }
}

@media (max-width: 1080px) {
  body[data-active-view="conversations"] {
    overflow: auto;
  }

  body[data-active-view="conversations"] .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body[data-active-view="conversations"] .sidebar {
    position: sticky;
    height: 100vh;
    padding: 16px 14px;
  }

  body[data-active-view="conversations"] .nav-list {
    grid-template-columns: 1fr;
  }

  body[data-active-view="conversations"] .main {
    height: auto;
    min-height: 100vh;
    padding: 12px 16px 20px;
    overflow: visible;
  }

  .global-alert-bar {
    min-height: 40px;
    max-height: 40px;
  }

  .conversations-view {
    height: auto;
    min-height: calc(100vh - 14px);
    overflow: visible;
  }

  .conversation-actors {
    max-height: 170px;
  }

  .conversation-shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .message {
    max-width: min(78%, 680px);
  }

  .chat-list-panel,
  .chat-panel,
  .context-panel {
    min-height: 360px;
  }

  .chat-list,
  .chat-messages,
  .context-panel {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .conversation-shell,
  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-control,
  .composer-actions {
    width: 100%;
  }

  .conversations-view {
    height: auto;
    min-height: calc(100vh - 14px);
    overflow: visible;
  }

  .conversation-shell {
    overflow: visible;
  }

  .chat-list-panel {
    max-height: 70vh;
  }

  .chat-list {
    max-height: none;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .global-alert-bar {
    justify-content: flex-start;
  }

  body[data-active-view="conversations"] .app-shell {
    grid-template-columns: 1fr;
  }

  body[data-active-view="conversations"] .sidebar {
    position: static;
    height: auto;
  }

  body[data-active-view="conversations"] .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quote-modal-form .quote-vehicle-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .floating-window {
    top: 12px !important;
    left: 12px !important;
    right: 12px;
    width: auto;
  }

  .quote-modal-form fieldset,
  .quote-modal-form .quote-vehicle-fieldset {
    grid-template-columns: 1fr;
  }
}
