/* ---------- Design Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f1f4;
  --border: #e4e6eb;
  --text: #14161a;
  --text-muted: #6b7280;
  --text-faint: #9aa0ab;
  --accent: #3b6ef6;
  --accent-hover: #2f5cd6;
  --accent-soft: #eaf0ff;
  --success: #1fa971;
  --success-soft: #e6f7ef;
  --danger: #e5484d;
  --danger-soft: #fdeceb;
  --warning: #d78f19;
  --warning-soft: #fbf1e0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05), 0 1px 1px rgba(20, 22, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 22, 26, 0.08);
  --topnav-h: 60px;
  --bottomnav-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1e222b;
    --border: #2a2e38;
    --text: #f2f3f5;
    --text-muted: #9aa0ab;
    --text-faint: #6b7280;
    --accent: #6e93ff;
    --accent-hover: #83a3ff;
    --accent-soft: #1c2740;
    --success: #35c689;
    --success-soft: #113127;
    --danger: #f27070;
    --danger-soft: #3a1c1e;
    --warning: #e0a83f;
    --warning-soft: #392c13;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --border: #2a2e38;
  --text: #f2f3f5;
  --text-muted: #9aa0ab;
  --text-faint: #6b7280;
  --accent: #6e93ff;
  --accent-hover: #83a3ff;
  --accent-soft: #1c2740;
  --success: #35c689;
  --success-soft: #113127;
  --danger: #f27070;
  --danger-soft: #3a1c1e;
  --warning: #e0a83f;
  --warning-soft: #392c13;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

#app { min-height: 100%; display: flex; flex-direction: column; }
body.auth-pending .topnav,
body.auth-pending .bottomnav { display: none; }
body.auth-pending .view-root { padding: 0; max-width: none; }

/* ---------- Auth (Login / Ersteinrichtung) ---------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
}
.auth-brand { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--text-muted); margin-bottom: 18px; }
.auth-brand span { color: var(--accent); }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.auth-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 22px; word-break: break-all; }
.auth-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: -6px 0 14px; }

/* ---------- Top Nav ---------- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--topnav-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topnav-start { display: flex; align-items: center; gap: 4px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.topnav-links { display: none; gap: 6px; flex: 1; }
.topnav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.topnav-links a:hover { background: var(--surface-2); color: var(--text); }
.topnav-links a.active { background: var(--accent-soft); color: var(--accent); }

.theme-toggle svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Bottom Nav (mobile) ---------- */
.bottomnav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
}
.bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-faint);
  transition: color 0.15s var(--ease);
}
.bottomnav a svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bottomnav a.active { color: var(--accent); }

/* ---------- View root ---------- */
.view-root {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--bottomnav-h) + 24px);
  animation: fadeIn 0.22s var(--ease);
}
@media (min-width: 800px) {
  .topnav { padding: 0 28px; }
  .topnav-links { display: flex; }
  .bottomnav { display: none; }
  .view-root { padding: 32px 24px 48px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Layout helpers ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.page-header .sub { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.08s var(--ease), opacity 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { opacity: 0.8; }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 10px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-icon { padding: 8px; border-radius: 999px; }
.btn-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fab {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottomnav-h) + 20px);
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 26px;
  border: none;
  cursor: pointer;
  z-index: 15;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.fab:hover { background: var(--accent-hover); }
.fab:active { transform: scale(0.94); }
@media (min-width: 800px) {
  .fab { bottom: 32px; right: 32px; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s var(--ease);
  user-select: none;
}
.radio-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- Task list / checklist ---------- */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s var(--ease), opacity 0.2s var(--ease);
}
.task-item.done { opacity: 0.55; }
.checkbox {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  margin-top: 1px;
  background: var(--surface);
}
.checkbox svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: all 0.15s var(--ease); stroke: #fff; stroke-width: 3; fill: none; }
.checkbox.checked { background: var(--success); border-color: var(--success); }
.checkbox.checked svg { opacity: 1; transform: scale(1); }
.checkbox.waiting { background: var(--warning-soft); border-color: var(--warning); }
.checkbox.waiting svg { opacity: 1; transform: scale(1); stroke: var(--warning); stroke-width: 2; }
.task-item.waiting { background: var(--warning-soft); border-color: var(--warning); }
.task-body { flex: 1; min-width: 0; }
.task-body-clickable { cursor: pointer; }
.task-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.task-item.done .task-title { text-decoration: line-through; }
.task-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.task-client { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
}
.pill-overdue { background: var(--danger-soft); color: var(--danger); }
.pill-recurring { background: var(--accent-soft); color: var(--accent); }
.pill-waiting { background: var(--warning-soft); color: var(--warning); }
.pill-general { background: var(--accent-soft); color: var(--accent); }
.pill-priority-urgent { background: var(--danger-soft); color: var(--danger); }
.pill-priority-low { background: var(--surface-2); color: var(--text-faint); }
.task-actions { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.task-actions .active-waiting { color: var(--warning); }

.task-item-draggable { cursor: grab; }
.task-item-draggable:active { cursor: grabbing; }
.task-item.drag-ghost { opacity: 0.4; }
.day-section-header.drag-over { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--radius-md); }
.day-section.drag-over .task-list { background: var(--accent-soft); border-radius: var(--radius-md); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-faint);
}
.empty-state .icon { font-size: 34px; margin-bottom: 10px; }
.empty-state p { margin: 0; font-size: 14px; }

/* ---------- Client list ---------- */
.client-grid { display: flex; flex-direction: column; gap: 10px; }
.client-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.client-card:hover { border-color: var(--accent); }
.client-card:active { transform: scale(0.995); }
.avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.client-card-info { flex: 1; min-width: 0; }
.client-card-name { font-weight: 600; font-size: 15px; }
.client-card-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.chevron { color: var(--text-faint); flex-shrink: 0; }

.search-bar { margin-bottom: 16px; }
.search-bar input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
}
.search-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- History filters ---------- */
.history-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.history-filters input[type="text"] {
  flex: 2;
  min-width: 180px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text);
}
.history-filters select {
  flex: 1;
  min-width: 140px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text);
}
.history-filters input:focus, .history-filters select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Tabs (client detail) ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 11px 4px;
  margin-right: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-left: none; border-right: none; border-top: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Stat row ---------- */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat-box {
  flex: 1;
  min-width: 130px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.stat-box .label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.stat-box .value { font-size: 21px; font-weight: 700; margin-top: 4px; }
.stat-box .value.up { color: var(--danger); }
.stat-box .value.down { color: var(--success); }

/* ---------- Weight table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 10px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.diff-up { color: var(--danger); font-weight: 600; }
.diff-down { color: var(--success); font-weight: 600; }
.diff-flat { color: var(--text-faint); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }

.chart-wrap { position: relative; height: 260px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 11, 14, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50;
  animation: fadeIn 0.15s var(--ease);
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(env(safe-area-inset-bottom) + 20px);
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp 0.22s var(--ease);
}
@media (min-width: 800px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: var(--radius-lg); padding: 26px; }
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-header h2 { font-size: 18px; margin: 0; font-weight: 700; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Toasts ---------- */
.toast-root {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
}
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.2s var(--ease);
}
.toast.error { background: var(--danger); color: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Misc ---------- */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }

/* ---------- Dashboard day sections ---------- */
.day-section { margin-bottom: 22px; }
.day-section-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 2px;
}
.day-section-header .day-title { font-size: 15px; font-weight: 700; }
.day-section-header .day-date { font-size: 12.5px; color: var(--text-faint); }
.day-section-header.is-today .day-title { color: var(--accent); }
.day-empty { font-size: 13px; color: var(--text-faint); padding: 2px 2px 4px; }

/* ---------- Task color accent + time ---------- */
.task-item { position: relative; }
.task-item.has-color { border-left-width: 4px; border-left-style: solid; }
.task-time-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- Color swatch picker ---------- */
.color-swatch-group { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s var(--ease), border-color 0.12s var(--ease);
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.active { border-color: var(--text); }
.color-swatch.active svg { opacity: 1; }
.color-swatch svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.color-swatch.none-swatch {
  background: var(--surface-2);
  border: 2px dashed var(--border);
}
.color-swatch.none-swatch.active { border-style: solid; border-color: var(--text); }

/* ---------- Time fields ---------- */
.time-fields { display: flex; align-items: center; gap: 10px; }
.time-fields .field { flex: 1; margin-bottom: 0; }
.time-sep { color: var(--text-faint); font-size: 13px; padding-top: 20px; }

/* ---------- Import modal ---------- */
.import-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.import-tab-btn {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.import-tab-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.import-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.import-dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.import-dropzone input[type="file"] { display: none; }
.import-preview {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-height: 160px;
  overflow-y: auto;
}
.import-preview .error-line { color: var(--danger); }
.field textarea.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; min-height: 120px; }

/* ---------- Client bio block ---------- */
.client-bio {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.client-bio-row { display: flex; align-items: center; gap: 7px; }
.client-bio-row svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.client-bio-notes { font-style: italic; color: var(--text-faint); margin-top: 2px; white-space: pre-wrap; }

/* ---------- Filter tabs (Klienten aktiv/archiviert) ---------- */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.filter-tab-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.filter-tab-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.client-card.is-archived { opacity: 0.6; }
.pill-archived { background: var(--surface-2); color: var(--text-faint); }
