/* ============================================================
   OBSEPIO CAPITAL — SHARED BASE STYLES
   Used by both investor.obsepio-capital.com and prospect.obsepio-capital.com
   ============================================================ */

/* ============================================================
   DESIGN TOKENS (Dark default)
   ============================================================ */
:root {
  --bg: #0e0f11;
  --surface: #141618;
  --surface-2: #1a1c1f;
  --surface-3: #1f2124;
  --border: oklch(from #cdccca l c h / 0.10);
  --border-strong: oklch(from #cdccca l c h / 0.18);
  --text: #cdccca;
  --text-muted: #797876;
  --text-faint: #484644;
  --primary: #4f98a3;
  --primary-hover: #227f8b;
  --primary-soft: rgba(79, 152, 163, 0.12);
  --success: #6daa45;
  --success-bg: rgba(109, 170, 69, 0.12);
  --warning: #fdab43;
  --warning-bg: rgba(253, 171, 67, 0.12);
  --error: #dd6974;
  --error-bg: rgba(221, 105, 116, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 10px 32px oklch(0 0 0 / 0.45);
  --transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme */
[data-theme='light'] {
  --bg: #f7f6f2;
  --surface: #f9f8f5;
  --surface-2: #fbfbf9;
  --surface-3: #f3f0ec;
  --text: #28251d;
  --text-muted: #7a7974;
  --text-faint: #bab9b4;
  --primary: #01696f;
  --primary-hover: #0c4e54;
  --primary-soft: rgba(1, 105, 111, 0.10);
  --border: oklch(from #28251d l c h / 0.10);
  --border-strong: oklch(from #28251d l c h / 0.16);
  --shadow: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 10px 32px oklch(0.2 0.01 80 / 0.12);
  --success-bg: rgba(109, 170, 69, 0.14);
  --warning-bg: rgba(253, 171, 67, 0.16);
  --error-bg: rgba(221, 105, 116, 0.14);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; background: var(--bg); }
[data-theme='light'] html, html[data-theme='light'] { color-scheme: light; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: 1.375rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 0.9375rem; }
p { margin: 0; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  padding: 0.5rem 0.875rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Icons */
[data-lucide] { width: 1em; height: 1em; stroke-width: 1.75; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse at top, var(--primary-soft), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.login-logo img { max-width: 280px; width: 100%; }
.login-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.login-sub {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.form-field { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}
.form-input-wrap { position: relative; }
.form-input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-input:hover { border-color: var(--border-strong); }
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.form-input.has-toggle { padding-right: 2.75rem; }
.pw-toggle {
  position: absolute; top: 50%; right: 0.5rem;
  transform: translateY(-50%);
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.pw-toggle:hover { color: var(--text); background: var(--surface-3); }
.pw-toggle [data-lucide] { width: 1.05rem; height: 1.05rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 1px solid transparent;
  min-height: 44px;
}
.btn-primary { background: var(--primary); color: #fff; width: 100%; }
[data-theme='light'] .btn-primary { color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }
.btn-icon {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  color: var(--text-muted);
  border-radius: var(--radius);
  min-height: 36px;
  transition: color var(--transition), background var(--transition);
}
.btn-icon:hover { color: var(--text); background: var(--surface-3); }
.btn-sm { padding: 0.4375rem 0.625rem; font-size: 0.8125rem; min-height: 34px; }

/* ============================================================
   FORM ERROR
   ============================================================ */
.form-error {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid oklch(from #dd6974 l c h / 0.25);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  animation: shake 0.35s var(--ease), fade-in 0.2s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.875rem 1rem;
}
.sidebar-logo { padding: 0 0 1.25rem; }
.sidebar-logo img { max-width: 100%; width: 100%; display: block; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.user-badge {
  display: inline-block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5625rem 0.75rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
}
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item [data-lucide] { width: 1.05rem; height: 1.05rem; color: var(--text-faint); transition: color var(--transition); }
.nav-item:hover [data-lucide] { color: var(--text-muted); }
.nav-item.active { color: var(--primary); background: var(--primary-soft); }
.nav-item.active [data-lucide] { color: var(--primary); }
.nav-item.active::before {
  content: '';
  position: absolute; left: -0.875rem; top: 8px; bottom: 8px;
  width: 2px; background: var(--primary); border-radius: 2px;
}
.sidebar-foot { display: flex; gap: 0.375rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.sidebar-foot .btn-ghost { flex: 1; padding: 0.5rem 0.625rem; font-size: 0.8125rem; min-height: 36px; }
.sidebar-foot .btn-icon { flex-shrink: 0; }

/* Main */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.topbar-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0; }
.content { padding: 1.5rem; max-width: 1200px; width: 100%; }

/* ============================================================
   TAB TRANSITION
   ============================================================ */
.tab { animation: tab-in 200ms var(--ease); }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.tab-header h1 { font-size: 1.375rem; }
.tab-sub { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.25rem; }

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.kpi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem 1.125rem;
  box-shadow: var(--shadow);
  min-height: 110px;
  overflow: hidden;
}
.kpi-card.tint-success { background: linear-gradient(180deg, var(--success-bg), transparent 70%), var(--surface); }
.kpi-card.tint-warning { background: linear-gradient(180deg, var(--warning-bg), transparent 70%), var(--surface); }
.kpi-card.tint-success-full { background: linear-gradient(180deg, var(--success-bg), transparent 70%), var(--surface); }
.kpi-card.tint-error-full { background: linear-gradient(180deg, var(--error-bg), transparent 70%), var(--surface); }
.kpi-icon {
  position: absolute; top: 0.875rem; right: 0.875rem;
  color: var(--text-faint);
  display: grid; place-items: center;
}
.kpi-icon [data-lucide] { width: 1.1rem; height: 1.1rem; }
.kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.625rem;
}
.kpi-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.kpi-value.positive { color: var(--success); }
.kpi-value.negative { color: var(--error); }

/* ============================================================
   CHART CARD
   ============================================================ */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}
.chart-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.chart-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.chart-canvas-wrap { position: relative; height: 320px; }
.fee-info {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
}
.chart-timeframes {
  display: inline-flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}
.tf-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.625rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  min-width: 36px;
  transition: background var(--transition), color var(--transition);
}
.tf-btn:hover { color: var(--text); }
.tf-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border-radius: var(--radius);
  pointer-events: none;
}

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
}
.contact-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.contact-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-soft);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.contact-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.contact-badge {
  display: inline-block;
  padding: 4px 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 0.5rem;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  text-align: left;
}
.contact-row + .contact-row { border-top: 1px solid var(--border); }
.contact-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.contact-row-label [data-lucide] { width: 1rem; height: 1rem; }
.contact-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--transition);
  word-break: break-word;
  text-align: right;
}
.contact-link:hover { opacity: 0.75; text-decoration: underline; }
.contact-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 1.25rem auto 0;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   DOCUMENTS
   ============================================================ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
  animation: doc-in 300ms var(--ease) both;
  transition: border-color var(--transition);
}
.doc-card:hover { border-color: var(--border-strong); }
@keyframes doc-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.doc-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.doc-icon [data-lucide] { width: 1.25rem; height: 1.25rem; }
.doc-icon.pdf { background: rgba(221, 105, 116, 0.12); color: var(--error); }
.doc-icon.xlsx { background: rgba(109, 170, 69, 0.14); color: var(--success); }
.doc-icon.docx { background: rgba(79, 152, 163, 0.14); color: var(--primary); }
.doc-body { flex: 1; min-width: 0; }
.doc-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}
.doc-meta { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cat-badge {
  padding: 2px 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-3);
  letter-spacing: 0.02em;
}
.doc-date { font-size: 0.75rem; color: var(--text-muted); }
.doc-size { font-size: 0.75rem; color: var(--text-faint); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-error { color: var(--error); background: var(--error-bg); }

/* ============================================================
   CARD (generic surface)
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}
.empty [data-lucide] {
  width: 2rem; height: 2rem;
  color: var(--text-faint);
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ============================================================
   ERROR CARD
   ============================================================ */
.error-card {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.875rem;
}
.error-card .btn { border-color: currentColor; color: inherit; margin-left: auto; }

/* ============================================================
   TOAST
   ============================================================ */
.toasts {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  min-width: 220px;
  animation: toast-in 250ms var(--ease);
}
.toast.hide { animation: toast-out 200ms var(--ease) forwards; }
.toast [data-lucide] { width: 1rem; height: 1rem; flex-shrink: 0; }
.toast.info [data-lucide] { color: var(--primary); }
.toast.success [data-lucide] { color: var(--success); }
.toast.warning [data-lucide] { color: var(--warning); }
.toast.error [data-lucide] { color: var(--error); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 800ms linear infinite; transform-origin: center; }

/* ============================================================
   SKELETON
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
.sk-kpi { height: 110px; border-radius: var(--radius-lg); }
.sk-chart { height: 360px; border-radius: var(--radius-lg); }
.sk-row { height: 52px; border-radius: var(--radius); margin-bottom: 0.5rem; }
.sk-row-tall { height: 110px; border-radius: var(--radius-lg); margin-bottom: 0.5rem; }

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--warning); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.disclaimer-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; color: var(--warning);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.disclaimer-title [data-lucide] { width: 0.9rem; height: 0.9rem; }
.disclaimer p { font-size: 0.8125rem; line-height: 1.65; color: var(--text-muted); }
.disclaimer p + p { margin-top: 0.625rem; }

/* ============================================================
   MOBILE TAB BAR
   ============================================================ */
.mobile-tabs { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 1rem 1rem 5rem; }
  .topbar { padding: 0.75rem 1rem; min-height: 52px; }
  .doc-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  .mobile-tabs {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 50;
    padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 0.5rem 0.25rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--radius);
    min-height: 52px;
    transition: color var(--transition);
  }
  .mobile-tab [data-lucide] { width: 1.125rem; height: 1.125rem; }
  .mobile-tab.active { color: var(--primary); }

  .chart-canvas-wrap { height: 260px; }
  .kpi-value { font-size: 1.125rem; letter-spacing: -0.02em; }
  .kpi-card { padding: 0.875rem 0.875rem 1rem; min-height: 100px; }
  .kpi-label { font-size: 0.6875rem; padding-right: 1.5rem; }
  .tab-header h1 { font-size: 1.2rem; }

  .toasts { left: 1rem; right: 1rem; bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; }

  .contact-card { padding: 1.25rem 1.25rem 1rem; }
  .contact-photo { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

