/* Chiron — dark base + sage-teal glow + warm gold accents.
   Apothecary feel — calm, knowing, not clinical.
   Same visual-first principles as Atlas (Frank dyslexic + 3D thinker). */

:root {
  --bg-base:      #06080a;   /* dark with hint of teal */
  --bg-elevated:  #0d1316;   /* card surface */
  --bg-deep:      #03050a;

  --primary:      #5db8a5;   /* sage teal — Chiron's signature */
  --primary-2:    #3a8a7a;   /* deeper teal */
  --primary-3:    #82d4be;   /* lighter mint accent */
  --gold:         #e6c87e;   /* warm gold for milestones */
  --green:        #5dd6a8;   /* positive deltas */
  --red:          #ff5e6c;
  --amber:        #ff8a3d;
  --violet:       #b18cff;

  --text-1:       #e6f1ee;
  --text-2:       #a8bdb7;
  --text-3:       #6b8077;
  --text-mute:    #4a5a55;

  --border:       rgba(93, 184, 165, 0.18);
  --glow:         rgba(93, 184, 165, 0.45);
  --glow-soft:    rgba(93, 184, 165, 0.18);

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --space-7:      48px;

  --font-display: 'Cinzel', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 184, 165, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(230, 200, 126, 0.04) 0%, transparent 35%),
    var(--bg-base);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-3); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-soft);
}
input[type="checkbox"] { width: auto; }

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(180deg,
      rgba(93, 184, 165, 0.06) 0%,
      transparent 50%),
    var(--bg-deep);
  border-right: 1px solid var(--border);
  padding: var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  text-decoration: none;
  color: var(--text-1);
}
.sidebar-brand-mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--glow));
}
.sidebar-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-shadow: 0 0 16px var(--glow-soft);
}

.sidebar-nav { display: flex; flex-direction: column; gap: var(--space-1); }
.sidebar-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.sidebar-link:hover {
  background: rgba(93, 184, 165, 0.06);
  color: var(--text-1);
}
.sidebar-link.active {
  background: linear-gradient(90deg, var(--glow-soft), transparent);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(var(--space-4) - 3px);
}
.sidebar-link-icon { width: 20px; text-align: center; opacity: 0.85; }

.main { padding: var(--space-6); max-width: 1400px; }

h1.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-shadow: 0 0 24px var(--glow);
  margin-bottom: var(--space-2);
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { text-shadow: 0 0 18px var(--glow); }
  50%      { text-shadow: 0 0 32px var(--glow), 0 0 64px var(--glow-soft); }
}

p.page-sub {
  color: var(--text-3);
  margin-bottom: var(--space-6);
  font-size: 14px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  transition: border-color 0.25s;
  margin-bottom: var(--space-5);
}
.card:hover { border-color: rgba(93, 184, 165, 0.30); }

.card-title {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-4);
}
.card-title-icon { font-size: 18px; }

.headline-card {
  background:
    radial-gradient(circle at 70% 0%,
      rgba(93, 184, 165, 0.14) 0%,
      transparent 60%),
    var(--bg-elevated);
  padding: var(--space-6);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.summary-tile {
  background: rgba(93, 184, 165, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  transition: border-color 0.2s;
  text-align: center;
}
.summary-tile:hover { border-color: rgba(93, 184, 165, 0.30); }
.summary-tile-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.summary-tile-label {
  font-size: 11px; letter-spacing: 0.10em;
  color: var(--text-3); margin-top: 4px;
  text-transform: uppercase;
}

.timeline-line {
  position: relative;
  padding-left: var(--space-5);
  border-left: 2px solid var(--border);
  margin-top: var(--space-4);
}
.timeline-event {
  position: relative;
  padding: var(--space-3) 0;
}
.timeline-event::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-5) - 6px);
  top: var(--space-4);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--glow);
}
.timeline-event.kind-diagnosis::before { background: var(--gold); }
.timeline-event.kind-medication::before { background: var(--primary); }
.timeline-event.kind-test::before { background: var(--violet); }
.timeline-event.kind-appointment::before { background: var(--primary-3); }
.timeline-event.kind-vaccination::before { background: var(--green); }

.timeline-event-date {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.timeline-event-title {
  font-weight: 600;
  margin: 4px 0;
}
.timeline-event-detail {
  font-size: 12px;
  color: var(--text-2);
}

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-2);
  margin-bottom: var(--space-2);
}
.row.kind-diagnosis    { border-left-color: var(--gold); }
.row.kind-medication   { border-left-color: var(--primary); }
.row.kind-provider     { border-left-color: var(--primary-3); }
.row.kind-policy       { border-left-color: var(--violet); }

.row-icon { font-size: 18px; opacity: 0.8; }
.row-meta { display: flex; flex-direction: column; gap: 2px; }
.row-label { font-weight: 600; }
.row-sub { font-size: 11px; color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-1);
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--bg-base);
  border: none;
  box-shadow: 0 0 18px var(--glow-soft);
}
.btn-primary:hover {
  filter: brightness(1.1);
  color: var(--bg-base);
  box-shadow: 0 0 28px var(--glow);
}

.intake-progress {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.intake-section-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.intake-section-pill.completed {
  background: rgba(93, 214, 168, 0.10);
  border-color: rgba(93, 214, 168, 0.40);
  color: var(--green);
}
.intake-section-pill.active {
  background: var(--glow-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.intake-form .form-row { margin-bottom: var(--space-4); }
.intake-form label.field-label {
  display: block; font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.intake-list-item {
  padding: var(--space-3);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.intake-list-item-remove {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 94, 108, 0.12);
  color: var(--red);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.intake-list-add {
  display: block; text-align: center;
  padding: var(--space-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  width: 100%;
}
.intake-list-add:hover { color: var(--primary); border-color: var(--primary); }

.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-5);
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    top: auto; height: auto;
    padding: var(--space-2);
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 50;
  }
  .sidebar-brand { display: none; }
  .sidebar-nav { flex-direction: row; justify-content: space-around; }
  .sidebar-link {
    flex-direction: column; gap: 2px; padding: var(--space-2);
    font-size: 10px; letter-spacing: 0.05em;
    border-left: none;
  }
  .sidebar-link.active {
    border-left: none;
    border-top: 2px solid var(--primary);
    padding-top: calc(var(--space-2) - 2px);
    background: transparent;
  }
  .sidebar-link-icon { font-size: 20px; }
  .main { padding: var(--space-4); padding-bottom: 88px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

.particle-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle-bg svg { width: 100%; height: 100%; }
.particle {
  fill: var(--primary);
  opacity: 0.15;
  animation: drift 22s linear infinite;
}
@keyframes drift {
  0%   { transform: translate(0,0); opacity: 0.0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.08; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}
.shell, .login-wrap { position: relative; z-index: 1; }

.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: var(--space-5);
}
.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  max-width: 380px; width: 100%;
  box-shadow: 0 0 60px rgba(93, 184, 165, 0.10);
  text-align: center;
}
.login-mark {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 0 24px var(--glow));
  animation: glow-breathe 5s ease-in-out infinite;
}
.login-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.10em;
  color: var(--primary);
  margin-bottom: var(--space-2);
}
.login-sub {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: var(--space-6);
}
.login-pin {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: 0.4em;
  text-align: center;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  width: 100%;
  margin-bottom: var(--space-4);
}
.login-pin:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--glow-soft);
}
.login-error {
  color: var(--red);
  font-size: 13px;
  min-height: 1.5em;
  margin-bottom: var(--space-3);
}

.text-mono { font-family: var(--font-mono); }
.text-mute { color: var(--text-3); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.right { text-align: right; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.mt-3 { margin-top: var(--space-3); }
.mt-5 { margin-top: var(--space-5); }
.hidden { display: none !important; }

/* ── Documents view ─────────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-4);
  align-items: stretch;
  min-height: 70vh;
}
.docs-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-3);
  overflow-y: auto;
  max-height: 80vh;
}
.docs-folder { margin-bottom: var(--space-4); }
.docs-folder-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 0 var(--space-2);
  margin-bottom: var(--space-2);
}
.docs-folder-count {
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
}
.docs-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.docs-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
.docs-item.active {
  background: rgba(93, 184, 165, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(93, 184, 165, 0.15);
}
.docs-item-icon { font-size: 18px; flex-shrink: 0; }
.docs-item-meta { min-width: 0; flex: 1; }
.docs-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-item-sub {
  font-size: 10px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.docs-viewer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}
.docs-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.docs-viewer-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.docs-viewer-frame {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: var(--radius-1);
  background: #fff;
  min-height: 65vh;
}
.docs-viewer-img {
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: var(--radius-1);
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-list { max-height: 40vh; }
}

/* ═══════════════════════════════════════════════════════════════════
   Chiron — visual identity v2: glow, breath, gradient depth.
   Sage-teal #5db8a5 + warm gold #e6c87e on near-black #06080a.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Ambient layer: large slow drifting glow blobs behind everything */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  mix-blend-mode: screen; opacity: 0.55;
}
.glow-a {
  width: 60vw; height: 60vw; left: -10vw; top: -20vw;
  background: radial-gradient(circle, rgba(93,184,165,0.35), transparent 60%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.glow-b {
  width: 50vw; height: 50vw; right: -8vw; bottom: -15vw;
  background: radial-gradient(circle, rgba(230,200,126,0.22), transparent 60%);
  animation: drift-b 36s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.08); }
}
@keyframes drift-b {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-6vw, -4vw) scale(1.12); }
}

.shell, .main, .sidebar { position: relative; z-index: 1; }

/* ── Sidebar: vertical glass strip with subtle gradient border */
.sidebar {
  background: linear-gradient(180deg,
              rgba(15,22,26,0.72) 0%,
              rgba(8,12,14,0.92) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid rgba(93,184,165,0.12);
  box-shadow: inset -1px 0 0 rgba(230,200,126,0.04),
              4px 0 24px rgba(0,0,0,0.35);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 18px 18px;
  text-decoration: none; color: inherit;
}
.sidebar-brand-mark {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 8px rgba(93,184,165,0.55));
  transition: filter 200ms;
}
.sidebar-brand:hover .sidebar-brand-mark {
  filter: drop-shadow(0 0 14px rgba(93,184,165,0.85));
}
.sidebar-brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  background: linear-gradient(135deg, #5db8a5 0%, #e6c87e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sidebar-nav { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }

/* Replace the old emoji slots with stroked SVGs */
.sidebar-link-icon { display: none; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(220,235,232,0.72);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 180ms, color 180ms, border-color 180ms;
  position: relative;
}
.sidebar-link .ico { width: 18px; height: 18px; flex-shrink: 0; color: rgba(180,210,205,0.7); transition: color 180ms; }
.sidebar-link:hover {
  background: rgba(93,184,165,0.07);
  color: #e6f3f0;
}
.sidebar-link:hover .ico { color: #5db8a5; }
.sidebar-link.active {
  background: linear-gradient(90deg,
              rgba(93,184,165,0.18) 0%,
              rgba(93,184,165,0.04) 100%);
  border-color: rgba(93,184,165,0.32);
  color: #fff;
  box-shadow: inset 0 0 16px rgba(93,184,165,0.12),
              0 0 0 1px rgba(93,184,165,0.18);
}
.sidebar-link.active .ico { color: #5db8a5; filter: drop-shadow(0 0 4px rgba(93,184,165,0.7)); }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #5db8a5, #e6c87e);
  box-shadow: 0 0 8px rgba(93,184,165,0.7);
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(93,184,165,0.08);
}
.sidebar-foot-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600;
  color: #d8e7e3;
}
.sidebar-foot-sub {
  font-size: 10.5px; color: rgba(180,210,205,0.55);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.ico-spark { width: 16px; height: 16px; }

/* ── Main view: hero header pattern */
.main { padding: 32px 36px 60px; min-height: 100vh; }

.page-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #ffffff 0%, #b8dcd2 60%, #e6c87e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(93,184,165,0.18));
}
.page-sub {
  color: rgba(190,215,210,0.62);
  font-size: 13.5px;
  margin: 0 0 22px;
  letter-spacing: 0.02em;
}

/* ── Cards: glass + soft inner glow + entrance breath */
.card {
  position: relative;
  background: linear-gradient(160deg,
              rgba(20,28,32,0.82) 0%,
              rgba(12,18,20,0.92) 100%);
  border: 1px solid rgba(93,184,165,0.12);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32),
              inset 0 1px 0 rgba(255,255,255,0.04),
              inset 0 0 32px rgba(93,184,165,0.04);
  backdrop-filter: blur(8px);
  animation: breath-in 520ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
.card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
              rgba(93,184,165,0.32),
              rgba(230,200,126,0.18) 50%,
              transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 60ms; }
.card:nth-child(3) { animation-delay: 120ms; }
.card:nth-child(4) { animation-delay: 180ms; }
.card:nth-child(5) { animation-delay: 240ms; }
.card:nth-child(6) { animation-delay: 300ms; }

@keyframes breath-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(180,210,205,0.7);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: #5db8a5;
  box-shadow: 0 0 8px #5db8a5;
}

/* ── Hero: animated breathing orb at the top of the dashboard */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px 26px;
  margin: 0 0 28px;
  border-radius: 18px;
  background: linear-gradient(135deg,
              rgba(93,184,165,0.10) 0%,
              rgba(15,22,26,0.85) 50%,
              rgba(230,200,126,0.06) 100%);
  border: 1px solid rgba(93,184,165,0.14);
  overflow: hidden;
  animation: breath-in 720ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%,
              rgba(93,184,165,0.16), transparent 50%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-greet {
  font-family: 'Cinzel', serif;
  font-size: 26px; font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff, #b8dcd2 50%, #e6c87e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 13.5px; color: rgba(200,225,220,0.7);
  margin-top: 4px;
}
.hero-orb {
  position: relative; width: 96px; height: 96px;
  flex-shrink: 0;
}
.hero-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(93,184,165,0.35);
  animation: pulse-ring 3.4s ease-in-out infinite;
}
.hero-orb-ring.delay { animation-delay: 1.7s; }
.hero-orb-core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
              #b9e8d8 0%, #5db8a5 40%, #2a6b5d 100%);
  box-shadow: 0 0 28px rgba(93,184,165,0.55),
              inset 0 0 16px rgba(255,255,255,0.18);
  animation: pulse-core 3.4s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1);   opacity: 0.65; }
  50%      { transform: scale(1.18); opacity: 0; }
}
@keyframes pulse-core {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 28px rgba(93,184,165,0.55), inset 0 0 16px rgba(255,255,255,0.18); }
  50%      { transform: scale(1.04); box-shadow: 0 0 38px rgba(93,184,165,0.85), inset 0 0 22px rgba(255,255,255,0.30); }
}

/* ── Summary tile grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.summary-tile {
  position: relative;
  padding: 16px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20,28,32,0.7), rgba(10,16,18,0.9));
  border: 1px solid rgba(93,184,165,0.10);
  text-align: center;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
  animation: breath-in 600ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
.summary-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(93,184,165,0.32);
  box-shadow: 0 0 24px rgba(93,184,165,0.15);
}
.summary-tile-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, #5db8a5, #e6c87e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.01em;
}
.summary-tile-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(180,210,205,0.62);
  margin-top: 4px;
}

/* ── Rows (used by lots of lists) */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(20,30,32,0.55);
  border: 1px solid transparent;
  transition: background 180ms, border-color 180ms, transform 180ms;
}
.row:hover {
  background: rgba(93,184,165,0.06);
  border-color: rgba(93,184,165,0.18);
  transform: translateX(2px);
}
.row-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(93,184,165,0.15), rgba(230,200,126,0.05));
  border: 1px solid rgba(93,184,165,0.18);
  flex-shrink: 0;
}
.row-icon .ico { width: 16px; height: 16px; color: #5db8a5; }
.row-meta { flex: 1; min-width: 0; }
.row-label { font-size: 13.5px; font-weight: 500; color: #e6f3f0; }
.row-sub { font-size: 11.5px; color: rgba(180,210,205,0.55); margin-top: 1px; }

/* ── Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 100ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #5db8a5, #4a9d8b);
  color: #06080a;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(93,184,165,0.4),
              0 4px 16px rgba(93,184,165,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6bc8b5, #5db8a5);
  box-shadow: 0 0 0 1px rgba(93,184,165,0.6),
              0 6px 22px rgba(93,184,165,0.4);
}
.btn-ghost {
  background: rgba(93,184,165,0.06);
  color: #c8e0db;
  border-color: rgba(93,184,165,0.2);
}
.btn-ghost:hover {
  background: rgba(93,184,165,0.12);
  border-color: rgba(93,184,165,0.4);
}
.btn-sm { padding: 5px 10px; font-size: 11.5px; }

/* ── Generic icons sized */
.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

/* ════════════════════════════════════════════════════════════════
   Floating chat dock — bottom-right, breathes when collapsed,
   opens into a portrait pane.
   ════════════════════════════════════════════════════════════════ */
.chat-toggle {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5db8a5, #4a9d8b);
  border: none;
  cursor: pointer;
  z-index: 50;
  display: grid; place-items: center;
  color: #06080a;
  box-shadow: 0 0 0 1px rgba(93,184,165,0.5),
              0 8px 28px rgba(93,184,165,0.45),
              0 0 40px rgba(93,184,165,0.25);
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 220ms;
}
.chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(93,184,165,0.8),
              0 10px 36px rgba(93,184,165,0.6),
              0 0 60px rgba(93,184,165,0.4);
}
.chat-toggle .ico { width: 24px; height: 24px; }
.chat-toggle-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(93,184,165,0.6);
  animation: pulse-ring 2.6s ease-in-out infinite;
  pointer-events: none;
}
.chat-toggle.hidden { display: none; }

.chat-dock {
  position: fixed; bottom: 24px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: min(620px, calc(100vh - 48px));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg,
              rgba(15,22,26,0.94) 0%,
              rgba(8,12,14,0.97) 100%);
  border: 1px solid rgba(93,184,165,0.28);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(93,184,165,0.18),
              0 24px 60px rgba(0,0,0,0.55),
              0 0 60px rgba(93,184,165,0.20);
  backdrop-filter: blur(16px);
  z-index: 60;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.34,1.56,0.64,1),
              opacity 240ms;
  pointer-events: none;
}
.chat-dock.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(93,184,165,0.14);
  background: linear-gradient(90deg, rgba(93,184,165,0.10), transparent);
}
.chat-head-id {
  display: flex; gap: 12px; align-items: center;
}
.chat-head-id .ico-spark {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(93,184,165,0.8));
  animation: pulse-core 4s ease-in-out infinite;
}
.chat-head-title {
  font-family: 'Cinzel', serif;
  font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, #fff, #5db8a5, #e6c87e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chat-head-sub {
  font-size: 10.5px; color: rgba(180,210,205,0.6);
  letter-spacing: 0.04em;
}
.chat-close {
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: rgba(180,210,205,0.6);
  transition: background 180ms, color 180ms;
}
.chat-close:hover {
  background: rgba(93,184,165,0.10);
  color: #fff;
}
.chat-log {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(93,184,165,0.3) transparent;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb {
  background: rgba(93,184,165,0.3); border-radius: 3px;
}
.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.5;
  animation: msg-in 320ms cubic-bezier(0.25,0.8,0.25,1) backwards;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #5db8a5, #4a9d8b);
  color: #06080a;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(93,184,165,0.25);
}
.msg-assistant {
  align-self: flex-start;
  background: rgba(20,30,32,0.85);
  border: 1px solid rgba(93,184,165,0.18);
  color: #e6f3f0;
  border-bottom-left-radius: 4px;
  white-space: pre-wrap;
}
.msg-typing {
  align-self: flex-start;
  display: flex; gap: 5px; padding: 12px 14px;
  background: rgba(20,30,32,0.85);
  border: 1px solid rgba(93,184,165,0.18);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5db8a5;
  animation: typing 1.2s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.18s; }
.msg-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-form {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(93,184,165,0.14);
}
.chat-input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(8,12,14,0.85);
  border: 1px solid rgba(93,184,165,0.18);
  color: #e6f3f0;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 180ms, box-shadow 180ms;
}
.chat-input:focus {
  outline: none;
  border-color: rgba(93,184,165,0.55);
  box-shadow: 0 0 0 3px rgba(93,184,165,0.12);
}
.chat-send {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5db8a5, #4a9d8b);
  border: none;
  cursor: pointer;
  color: #06080a;
  display: grid; place-items: center;
  transition: transform 120ms, box-shadow 180ms;
}
.chat-send:hover {
  box-shadow: 0 0 16px rgba(93,184,165,0.55);
}
.chat-send:active { transform: scale(0.96); }
.chat-send .ico { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .chat-dock {
    bottom: 0; right: 0; width: 100vw;
    height: 100vh; max-width: 100vw;
    border-radius: 0;
  }
  .chat-toggle { bottom: 16px; right: 16px; }
}

/* ── v2.1: brand orb in sidebar, hero orb left, gold sparks ─────── */

/* Bigger CHIRON wordmark */
.sidebar-brand-name {
  font-size: 19px !important;
  letter-spacing: 0.22em !important;
}
.sidebar-brand {
  padding: 26px 18px 22px !important;
  gap: 14px !important;
}

/* Mini orb in sidebar replacing the old static mark */
.brand-orb {
  position: relative;
  width: 44px; height: 44px; flex-shrink: 0;
}
.brand-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(93,184,165,0.45);
  animation: pulse-ring 3.4s ease-in-out infinite;
}
.brand-orb-ring.delay { animation-delay: 1.7s; }
.brand-orb-core {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cdf2e7 0%, #5db8a5 45%, #2a6b5d 100%);
  box-shadow: 0 0 14px rgba(93,184,165,0.6),
              inset 0 0 8px rgba(255,255,255,0.18);
  animation: pulse-core 3.4s ease-in-out infinite;
}
.brand-orb-spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #e6c87e;
  box-shadow: 0 0 6px #e6c87e, 0 0 12px rgba(230,200,126,0.7);
  pointer-events: none;
}
.brand-orb-spark.s1 { animation: spark-orbit-mini 3.6s linear infinite; }
.brand-orb-spark.s2 { animation: spark-orbit-mini 4.2s linear infinite reverse; animation-delay: -1.4s; }
.brand-orb-spark.s3 { animation: spark-orbit-mini 5.0s linear infinite; animation-delay: -2.6s; }
@keyframes spark-orbit-mini {
  0%   { transform: translate(20px, 20px) rotate(0deg) translate(22px) rotate(0deg); opacity: 0.9; }
  50%  { opacity: 1; }
  100% { transform: translate(20px, 20px) rotate(360deg) translate(22px) rotate(-360deg); opacity: 0.9; }
}

/* Hero: orb on the LEFT now */
.hero.hero-orb-left {
  grid-template-columns: auto 1fr !important;
}
.hero.hero-orb-left .hero-text {
  padding-left: 8px;
}

/* Hero orb — bigger, with extra ring + gold sparks orbiting */
.hero-orb {
  width: 110px !important;
  height: 110px !important;
}
.hero-orb-core {
  inset: 22px !important;
}

/* Gold-ember sparks orbit the hero orb. Three points with staggered
   phases + radii, each leaves a faint trail. */
.hero-spark {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: #f6dc9c;
  box-shadow: 0 0 8px #e6c87e, 0 0 18px rgba(230,200,126,0.65);
  pointer-events: none;
  filter: drop-shadow(0 0 3px #e6c87e);
}
.spark-1 { animation: spark-orbit-1 4.6s linear infinite; }
.spark-2 { animation: spark-orbit-2 5.8s linear infinite; animation-delay: -1.5s; }
.spark-3 { animation: spark-orbit-3 7.2s linear infinite reverse; animation-delay: -3.0s; }
@keyframes spark-orbit-1 {
  0%   { transform: translate(55px, 55px) rotate(0deg)   translate(58px) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(55px, 55px) rotate(360deg) translate(58px) rotate(-360deg); opacity: 0; }
}
@keyframes spark-orbit-2 {
  0%   { transform: translate(55px, 55px) rotate(0deg)   translate(72px) rotate(0deg);   opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(55px, 55px) rotate(360deg) translate(72px) rotate(-360deg); opacity: 0; }
}
@keyframes spark-orbit-3 {
  0%   { transform: translate(55px, 55px) rotate(0deg)   translate(48px) rotate(0deg) scale(0.8); opacity: 0; }
  20%  { opacity: 0.95; }
  80%  { opacity: 0.95; }
  100% { transform: translate(55px, 55px) rotate(360deg) translate(48px) rotate(-360deg) scale(0.8); opacity: 0; }
}

/* Faint gold trail haze */
.hero-spark-trail {
  position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none;
}
.trail-1 {
  background: conic-gradient(from 0deg,
              transparent 0%, transparent 70%,
              rgba(230,200,126,0.20) 92%,
              transparent 100%);
  animation: trail-spin 6s linear infinite;
}
.trail-2 {
  background: conic-gradient(from 180deg,
              transparent 0%, transparent 80%,
              rgba(246,220,156,0.14) 95%,
              transparent 100%);
  animation: trail-spin 9s linear infinite reverse;
}
@keyframes trail-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── v2.2: stacked sidebar brand orb + chat-head orb ────────────── */

/* Stacked sidebar brand: orb on top, "CHIRON" centred underneath */
.sidebar-brand-stacked {
  flex-direction: column !important;
  gap: 12px !important;
  padding: 28px 18px 22px !important;
  text-align: center;
}
.sidebar-brand-stacked .sidebar-brand-name {
  font-size: 22px !important;
  letter-spacing: 0.28em !important;
}

/* The big orb in the sidebar — same DNA as the hero orb but ~70% scale.
   Wraps the hero-orb-* + hero-spark-* children, which are positioned
   relative to a 110px hero-orb. We just clamp the box and let the
   children inherit their own positions. */
.brand-orb-big {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto;
  /* Optional: scale down a touch on narrow sidebars */
}
.brand-orb-big .hero-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(93,184,165,0.35);
  animation: pulse-ring 3.4s ease-in-out infinite;
}
.brand-orb-big .hero-orb-ring.delay { animation-delay: 1.7s; }
.brand-orb-big .hero-orb-core {
  position: absolute; inset: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cdf2e7 0%, #5db8a5 45%, #2a6b5d 100%);
  box-shadow: 0 0 24px rgba(93,184,165,0.6),
              inset 0 0 14px rgba(255,255,255,0.18);
  animation: pulse-core 3.4s ease-in-out infinite;
}
/* Sparks already absolute-positioned to a 110-wide box via the hero
   keyframes (translate(55,55)); they line up perfectly here too. */

/* Small orb in the chat-dock header (~36px) */
.chat-orb {
  position: relative;
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.chat-orb .hero-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(93,184,165,0.45);
  animation: pulse-ring 3.4s ease-in-out infinite;
}
.chat-orb .hero-orb-core {
  position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cdf2e7 0%, #5db8a5 45%, #2a6b5d 100%);
  box-shadow: 0 0 10px rgba(93,184,165,0.6),
              inset 0 0 6px rgba(255,255,255,0.18);
  animation: pulse-core 3.4s ease-in-out infinite;
}
/* For the chat orb, sparks orbit a tiny radius scaled to its 36px box.
   We override the keyframes with chat-specific ones so they don't fly off. */
.chat-orb .hero-spark {
  width: 3px; height: 3px;
}
.chat-orb .spark-1 { animation: chat-spark-1 4s linear infinite; }
.chat-orb .spark-2 { animation: chat-spark-2 5s linear infinite reverse; animation-delay: -1.5s; }
@keyframes chat-spark-1 {
  0%   { transform: translate(18px, 18px) rotate(0deg)   translate(20px) rotate(0deg);   opacity: 0; }
  20%  { opacity: 1; } 80%  { opacity: 1; }
  100% { transform: translate(18px, 18px) rotate(360deg) translate(20px) rotate(-360deg); opacity: 0; }
}
@keyframes chat-spark-2 {
  0%   { transform: translate(18px, 18px) rotate(0deg)   translate(15px) rotate(0deg) scale(0.8);   opacity: 0; }
  25%  { opacity: 0.9; } 75%  { opacity: 0.9; }
  100% { transform: translate(18px, 18px) rotate(360deg) translate(15px) rotate(-360deg) scale(0.8); opacity: 0; }
}

/* Hero variant for when there's no orb (chiron dashboard) — no grid, just centered text */
.hero.hero-text-only {
  grid-template-columns: 1fr;
  text-align: left;
}

/* ── v2.3: chat-orb visibility fix + sidebar wordmark restyle ─────── */

/* The hero-orb-core has !important on inset:22px which was murdering
   the 36px chat-orb's core. Force the smaller inset back. Same for
   chat-orb-specific ring + spark sizes. */
.chat-orb .hero-orb-core {
  inset: 6px !important;
  background: radial-gradient(circle at 35% 30%, #cdf2e7 0%, #5db8a5 45%, #2a6b5d 100%) !important;
  box-shadow: 0 0 10px rgba(93,184,165,0.6),
              inset 0 0 6px rgba(255,255,255,0.18) !important;
}
.chat-orb .hero-orb-ring {
  inset: 0 !important;
  border-color: rgba(93,184,165,0.45) !important;
}

/* Sidebar wordmark: copy the chat-head-title's tri-colour gradient
   (white → sage → gold) — Frank loves that look. */
.sidebar-brand-stacked .sidebar-brand-name {
  font-family: 'Cinzel', serif !important;
  font-weight: 600 !important;
  font-size: 28px !important;
  letter-spacing: 0.22em !important;
  background: linear-gradient(135deg, #ffffff 0%, #5db8a5 55%, #e6c87e 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 14px rgba(93,184,165,0.25));
  margin-top: 4px;
}

/* ── v2.4: sidebar wordmark = exact match to chat-head-title ────── */
.sidebar-brand-stacked .sidebar-brand-name {
  font-family: 'Cinzel', serif !important;
  font-weight: 600 !important;
  font-size: 30px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: linear-gradient(135deg, #fff, #5db8a5, #e6c87e) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: none !important;
  margin-top: 6px;
}
