/* ──────────────────────────────────────────────────────────────────
   Call Swoop — Design System (orange / navy)
   ────────────────────────────────────────────────────────────────── */
:root {
  --cs-bg-primary:      #0A0F1E;
  --cs-bg-card:         #111827;
  --cs-bg-card-hover:   #1A2236;
  --cs-border:          rgba(255,255,255,0.08);
  --cs-border-hover:    rgba(255,255,255,0.15);
  --cs-text-primary:    #FFFFFF;
  --cs-text-secondary:  rgba(255,255,255,0.65);
  --cs-text-muted:      rgba(255,255,255,0.40);
  --cs-accent:          #F97316;
  --cs-accent-hover:    #EA580C;
  --cs-accent-subtle:   rgba(249,115,22,0.12);
  --cs-accent-text:     #FB923C;
  --cs-success:         #10B981;
  --cs-success-bg:      rgba(16,185,129,0.12);
  --cs-success-text:    #34D399;
  --cs-danger:          #EF4444;
  --cs-danger-bg:       rgba(239,68,68,0.12);
  --cs-danger-text:     #F87171;
  --cs-warning:         #F59E0B;
  --cs-warning-bg:      rgba(245,158,11,0.14);
  --cs-warning-text:    #FBBF24;
  --cs-info-bg:         rgba(96,165,250,0.14);
  --cs-info-text:       #93C5FD;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.45);

  --font-heading: 'Cabinet Grotesk', 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--cs-bg-primary);
  color: var(--cs-text-primary);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--cs-text-primary);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
a { color: var(--cs-accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--cs-accent-hover); }
.muted { color: var(--cs-text-muted); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }
code {
  background: var(--cs-bg-card);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  color: var(--cs-text-secondary);
}

/* ── Brand mark (logo) ────────────────────────────────────────── */
.cs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.cs-logo:hover { text-decoration: none; }
.cs-logo__bolt {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cs-accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.cs-logo__bolt svg { width: 16px; height: 16px; color: #fff; }
.cs-logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cs-text-primary);
  font-size: 1rem;
  text-transform: uppercase;
}
.cs-logo__sub {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--cs-text-secondary);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-left: 4px;
}

/* ── Top nav ──────────────────────────────────────────────────── */
.app-header {
  background: rgba(10, 15, 30, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cs-border);
  position: sticky; top: 0; z-index: 50;
}
.app-header__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.top-nav {
  display: flex; gap: 1.25rem; align-items: center;
}
.top-nav a, .top-nav .nav-link {
  color: var(--cs-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 150ms ease;
}
.top-nav a:hover { color: var(--cs-text-primary); }
.top-nav a.logout {
  color: var(--cs-danger-text);
}
.top-nav a.logout:hover { color: var(--cs-danger); }

/* ── Layout ───────────────────────────────────────────────────── */
.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
  flex: 1;
  animation: csFadeIn 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes csFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-footer {
  background: var(--cs-bg-primary);
  border-top: 1px solid var(--cs-border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--cs-text-muted);
  font-size: 0.85rem;
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.page-head h1 { margin-bottom: 0.35rem; }
.page-head .muted { font-size: 1rem; }

/* ── Stats ────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 200ms ease, transform 200ms ease;
}
.stat:hover { border-color: var(--cs-border-hover); transform: translateY(-2px); }
.stat__label {
  display: block;
  color: var(--cs-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.stat__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--cs-text-primary);
  display: block;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__value.small { font-size: 1.4rem; display: inline; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  transition: background-color 150ms ease, border-color 150ms ease, transform 80ms ease, box-shadow 200ms ease;
  text-decoration: none;
}
.btn.primary {
  background: var(--cs-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249,115,22,0.25);
}
.btn.primary:hover { background: var(--cs-accent-hover); color: #fff; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--cs-border);
  color: var(--cs-text-primary);
}
.btn.ghost:hover { border-color: var(--cs-border-hover); background: var(--cs-bg-card-hover); }
.btn.danger {
  background: var(--cs-danger);
  color: #fff;
}
.btn.danger:hover { background: #DC2626; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 8px 14px; font-size: 0.85rem; }

/* ── Card / clients grid ──────────────────────────────────────── */
.card {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 200ms ease, transform 200ms ease;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
.client-card {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: inherit;
  display: block;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.client-card:hover {
  border-color: var(--cs-border-hover);
  background: var(--cs-bg-card-hover);
  color: inherit;
  transform: translateY(-2px);
}
.client-card__head {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.client-card__head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cs-text-primary);
}
.client-card__head p { margin: 0; font-size: 0.85rem; color: var(--cs-text-muted); }
.client-card__head > div { flex: 1; }
.client-card__icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cs-accent-subtle);
  border-radius: 50%;
}
.client-card__pills {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem;
}
.client-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--cs-text-muted);
  border-top: 1px solid var(--cs-border);
  padding-top: 0.85rem;
}
.client-card__foot .link {
  color: var(--cs-accent);
  font-weight: 600;
}

/* ── Pills & badges ───────────────────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--cs-accent-subtle);
  color: var(--cs-accent-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(249,115,22,0.18);
}
.pill.subtle {
  background: rgba(255,255,255,0.05);
  color: var(--cs-text-secondary);
  border: 1px solid var(--cs-border);
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge.ok    { background: var(--cs-success-bg); color: var(--cs-success-text); }
.badge.warn  { background: var(--cs-warning-bg); color: var(--cs-warning-text); }
.badge.alert { background: var(--cs-danger-bg);  color: var(--cs-danger-text); }
.badge.muted { background: rgba(255,255,255,0.06); color: var(--cs-text-muted); }
.badge.admin {
  background: var(--cs-accent-subtle);
  color: var(--cs-accent-text);
  margin-left: 0.5rem;
}

/* ── Login ────────────────────────────────────────────────────── */
.login-page { background: var(--cs-bg-primary); }
.login-shell {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.login-card {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-card__logo { margin-bottom: 2rem; }
.login-card h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.login-card .lede {
  color: var(--cs-text-secondary);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.form, .form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid label, .form label { display: flex; flex-direction: column; gap: 0.4rem; }
.form-grid label.full, .form-grid fieldset.full { grid-column: 1 / -1; }
.form-grid fieldset, .form fieldset {
  grid-column: 1 / -1;
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--cs-bg-card);
}
.form-grid fieldset legend, .form fieldset legend {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0 0.5rem;
  color: var(--cs-text-primary);
  font-size: 1rem;
}
.form-grid fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid fieldset > label { display: flex; flex-direction: column; gap: 0.4rem; }
.form-grid fieldset > label.full { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; grid-column: 1 / -1; }

input, select, textarea {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--cs-text-primary);
  width: 100%;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.15);
}
input:disabled { opacity: 0.6; cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--cs-text-muted); }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
label > span:first-child {
  font-size: 0.78rem;
  color: var(--cs-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.form-actions.full { grid-column: 1 / -1; }
.form-actions .btn.primary { padding: 14px 32px; font-size: 1rem; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--cs-bg-primary);
  transition: border-color 150ms ease, background 150ms ease;
}
.checkbox-row:hover { border-color: var(--cs-border-hover); }
.checkbox-row:has(input:checked) {
  border-color: var(--cs-accent);
  background: var(--cs-accent-subtle);
}
.checkbox-row input { width: auto; margin-top: 3px; accent-color: var(--cs-accent); }
.cb-label { display: flex; flex-direction: column; gap: 3px; }
.cb-label strong { color: var(--cs-text-primary); font-weight: 600; }
.cb-label .muted { font-size: 0.82rem; }

.login-demo {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cs-border);
}
.login-demo p { margin: 0.25rem 0; color: var(--cs-text-muted); font-size: 0.85rem; }
.login-demo p strong { color: var(--cs-text-secondary); }

/* ── Tables ───────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cs-border);
}
.data-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-text-muted);
  font-weight: 700;
  background: rgba(255,255,255,0.02);
}
.data-table tbody tr { transition: background 120ms ease; }
.data-table tbody tr:hover { background: rgba(249,115,22,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }

.industry-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--cs-accent-subtle);
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* ── Client nav tabs ──────────────────────────────────────────── */
.client-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--cs-border);
  justify-content: center;
}
.nav-tab {
  padding: 0.95rem 1.25rem;
  color: var(--cs-text-muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav-tab:hover { color: var(--cs-text-primary); }
.nav-tab.active {
  color: var(--cs-accent);
  border-bottom-color: var(--cs-accent);
}

/* ── System cards ─────────────────────────────────────────────── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.system-card {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 200ms ease, transform 200ms ease;
}
.system-card:hover { border-color: var(--cs-border-hover); transform: translateY(-2px); }
.system-card__icon {
  width: 44px; height: 44px;
  color: var(--cs-accent);
  margin-bottom: 1.25rem;
  background: var(--cs-accent-subtle);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.system-card__icon svg { width: 100%; height: 100%; }
.system-card h3 { margin-bottom: 0.5rem; font-weight: 700; }
.system-card p { font-size: 0.9rem; margin: 0 0 1rem; color: var(--cs-text-secondary); }

/* ── Conversations ────────────────────────────────────────────── */
.conv-shell {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1rem;
  max-width: 1280px;
  height: calc(100vh - 220px);
  min-height: 500px;
}
.conv-list {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.conv-list__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cs-border);
}
.conv-list__head h2 { margin: 0; font-size: 1.1rem; }
.conv-list__body { overflow-y: auto; flex: 1; }
.lead-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cs-border);
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: background 120ms ease;
}
.lead-item:hover { background: rgba(255,255,255,0.025); }
.lead-item.active { background: rgba(249,115,22,0.08); }
.lead-item__body { flex: 1; min-width: 0; }
.lead-item__row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.lead-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cs-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-item strong { color: var(--cs-text-primary); font-weight: 600; }
.lead-item .time { font-size: 0.72rem; color: var(--cs-text-muted); flex-shrink: 0; }
.avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cs-accent-subtle);
  color: var(--cs-accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-family: var(--font-heading);
}
.trigger-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cs-info-bg);
  color: var(--cs-info-text);
  padding: 3px 8px;
  border-radius: 4px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.blue   { background: #60A5FA; }
.status-dot.teal,
.status-dot.booked { background: var(--cs-accent); }
.status-dot.green  { background: var(--cs-success); }
.status-dot.red    { background: var(--cs-danger); }
.status-dot.grey   { background: var(--cs-text-muted); }

.conv-thread {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.conv-empty {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.conv-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cs-border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.conv-head .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.conv-head .btn { padding: 0.55rem 1rem; font-size: 0.82rem; }
.conv-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--cs-bg-primary);
}
.msg {
  max-width: 72%;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.45;
}
.msg.in {
  align-self: flex-start;
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-bottom-left-radius: 6px;
  color: var(--cs-text-primary);
}
.msg.out {
  align-self: flex-end;
  background: var(--cs-accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg .ts {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.35rem;
}
.conv-reply {
  border-top: 1px solid var(--cs-border);
  padding: 0.85rem;
  display: flex; gap: 0.5rem;
  background: var(--cs-bg-card);
}
.conv-reply textarea {
  flex: 1; min-height: 48px; max-height: 120px; resize: vertical;
  padding: 12px 14px;
}
.conv-reply .btn { padding: 12px 20px; }

/* ── Pipeline ─────────────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pipeline-col {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  min-height: 220px;
}
.pipeline-col h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cs-border);
  font-weight: 700;
}
.quote-card {
  background: var(--cs-bg-primary);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.65rem;
  transition: border-color 150ms ease;
}
.quote-card:hover { border-color: var(--cs-border-hover); }
.quote-card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.quote-card__head strong { color: var(--cs-text-primary); }
.quote-card__head .amount {
  color: var(--cs-accent);
  font-weight: 700;
  font-family: var(--font-heading);
}
.quote-card p { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--cs-text-secondary); }
.quote-card__foot {
  display: flex; justify-content: space-between;
  font-size: 0.72rem;
  color: var(--cs-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal__panel {
  background: var(--cs-bg-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal__panel h3 { margin-bottom: 1.25rem; font-family: var(--font-heading); }

/* ── Charts row ──────────────────────────────────────────────── */
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.link { color: var(--cs-accent); font-weight: 600; }
.link:hover { color: var(--cs-accent-hover); }

/* ── Helpers ─────────────────────────────────────────────────── */
.right { margin-left: auto; }
.flex { display: flex; gap: 0.75rem; align-items: center; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .conv-shell { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 320px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid fieldset { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .client-tabs { overflow-x: auto; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .top-nav { gap: 0.75rem; }
  .top-nav a { font-size: 0.85rem; }
  .pipeline { grid-template-columns: 1fr; }
  .app-main { padding: 1.5rem 1rem; }
  h1 { font-size: 1.75rem; }
  .login-card h1 { font-size: 2rem; }
  .cs-logo__sub { display: none; }
}
