:root {
  /* Tema chiaro (attuale) */
  --bg: #f4f7fb;
  --card: #ffffff;
  --accent: #5CBF74;
  --accent-dark: #469C5A;
  --muted: #6b7280;
  --danger: #dc3545;
  --success: #2e7d32;

  /* Brand header */
  --brand: #0B8F98;
  --brand-ink: #ffffff;
  --brand-ink-dim: #f0fdfd;
}

/* === Tema scuro (scala di grigi) === */
html.theme-dark {
  /* sfondi */
  --bg: #020617;          /* body */
  --bg-soft: #0b1120;
  --bg-softer: #020617;
  --card: #111827;        /* card contenuti */
  --card-soft: #020617;

  /* bordi */
  --border-soft: #1f2937;
  --border-strong: #4b5563;

  /* testo */
  --text: #e5e7eb;
  --muted: #9ca3af;
  --muted-soft: #6b7280;

  /* accent (verde) più soft */
  --accent: #22c55e;
  --accent-soft: rgba(34,197,94,0.16);
  --accent-ink: #bbf7d0;

    /* Header leggermente più scuro in tema scuro */
  --brand: #06666f;        /* teal un po' più scuro */
  --brand-ink: #f9fafb;    /* testo molto chiaro */
  --brand-ink-dim: #e0f2f2;
}

