/* ============================================================
   EurocomplAI — App Tokens v1.0
   Light cousin del design system v2.0 / v2.1 del sito marketing
   ------------------------------------------------------------
   Loaded once per modulo dell'app via <link rel="stylesheet">.
   Espone tutte le custom properties della brand identity in
   light mode. Adottare via var(--name) negli inline styles
   esistenti dell'app — non sostituire l'architettura CSS.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ----------------------------------------------------------
     Tipografia
     ---------------------------------------------------------- */
  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, 'Courier New', monospace;

  --fs-h1: clamp(28px, 3.0vw, 38px);
  --fs-h2: clamp(22px, 2.2vw, 28px);
  --fs-h3: 18px;
  --fs-h4: 16px;
  --fs-body: 14.5px;
  --fs-body-sm: 13px;
  --fs-mono: 12.5px;
  --fs-mono-sm: 11px;
  --fs-mono-xs: 10.5px;

  --lh-tight: 1.2;
  --lh-base: 1.55;
  --lh-loose: 1.7;

  --ls-display: -0.02em;
  --ls-body: 0;
  --ls-mono-label: 0.08em;

  /* ----------------------------------------------------------
     Background / surface — LIGHT cousin
     ---------------------------------------------------------- */
  --bg: #F4F6FB;            /* page bg */
  --surface: #FFFFFF;       /* surface alternativa */
  --panel: #FFFFFF;         /* card bg */
  --panel-bright: #FAFBFD;  /* card highlighted/hover */
  --panel-subtle: #EEF1F7;  /* subtle bg, banner contenuti, sidebar dense */
  --panel-deep: #1A2238;    /* dark island opzionale (es. header Privacy Hub) */

  /* ----------------------------------------------------------
     Ink — testo (invertito vs sito dark)
     ---------------------------------------------------------- */
  --ink: #1A2238;           /* testo primario */
  --ink-2: #5A6378;         /* body secondario */
  --ink-3: #8E97A8;         /* muted, mono labels, slug */
  --ink-4: #C5CBD7;         /* decorativo, divider */

  /* Inverted ink (per .panel-deep e dark islands) */
  --ink-on-dark: #F4F6FB;
  --ink-on-dark-2: #9CA5B8;
  --ink-on-dark-3: #5A6378;

  /* ----------------------------------------------------------
     Border
     ---------------------------------------------------------- */
  --border-1: rgba(26,34,56,0.10);
  --border-2: rgba(26,34,56,0.06);
  --border-3: rgba(26,34,56,0.18);
  --border-focus: rgba(255,176,32,0.45);

  /* ----------------------------------------------------------
     Accent ambra — INVARIATO dal sito v2.0
     ---------------------------------------------------------- */
  --accent: #FFB020;        /* primary brand accent — tutti i CTA primari */
  --accent-2: #FFD466;      /* variante chiara (hover, gradient) */
  --accent-3: #B87800;      /* variante scura (pressed) */
  --accent-soft: rgba(255,176,32,0.12);  /* soft fill (badge, bubble) */
  --accent-glow: rgba(255,176,32,0.30);  /* glow halo */
  --primary-text: #1A1208;  /* testo su accent filled — dark warm */

  /* ----------------------------------------------------------
     Chip normative — INVARIATI dal sito v2.0
     Uso esclusivo: riferimenti a regolamenti specifici.
     NON usare come CTA color. NON usare come module brand.
     ---------------------------------------------------------- */
  --chip-gdpr: #A78BFA;     /* violet — GDPR */
  --chip-nis2: #22D3EE;     /* cyan — NIS2 */
  --chip-aiact: #FF7B8A;    /* rose — AI Act */

  --chip-gdpr-soft: color-mix(in srgb, var(--chip-gdpr) 12%, transparent);
  --chip-nis2-soft: color-mix(in srgb, var(--chip-nis2) 12%, transparent);
  --chip-aiact-soft: color-mix(in srgb, var(--chip-aiact) 12%, transparent);

  --chip-gdpr-border: color-mix(in srgb, var(--chip-gdpr) 28%, transparent);
  --chip-nis2-border: color-mix(in srgb, var(--chip-nis2) 28%, transparent);
  --chip-aiact-border: color-mix(in srgb, var(--chip-aiact) 28%, transparent);

  /* ----------------------------------------------------------
     Module brand colors (GKSD PARKING module selector)
     Allineati alla chip triad — un modulo = un regolamento
     ---------------------------------------------------------- */
  --module-gdpr: var(--chip-gdpr);
  --module-nis2: var(--chip-nis2);
  --module-aiact: var(--chip-aiact);
  --module-inspector: var(--accent);  /* Inspector è il "motore", non un regolamento → ambra */

  /* ----------------------------------------------------------
     Status semantici — leggermente saturati per light mode
     ---------------------------------------------------------- */
  --status-green: #16A34A;
  --status-amber: #F59E0B;
  --status-red: #DC2626;
  --status-blue: #2563EB;
  --status-muted: #94A3B8;

  --status-green-soft: rgba(22,163,74,0.10);
  --status-amber-soft: rgba(245,158,11,0.12);
  --status-red-soft: rgba(220,38,38,0.10);
  --status-blue-soft: rgba(37,99,235,0.10);

  --status-green-border: rgba(22,163,74,0.30);
  --status-amber-border: rgba(245,158,11,0.30);
  --status-red-border: rgba(220,38,38,0.30);
  --status-blue-border: rgba(37,99,235,0.30);

  /* ----------------------------------------------------------
     Risk levels (matrice rischi P×I)
     Conservati come palette dedicata — non sovrapporre a status
     ---------------------------------------------------------- */
  --risk-basso: #16A34A;
  --risk-medio: #F59E0B;
  --risk-alto: #EA580C;
  --risk-critico: #DC2626;

  --risk-basso-cell: #DCFCE7;
  --risk-medio-cell: #FED7AA;
  --risk-alto-cell: #FDBA74;
  --risk-critico-cell: #FCA5A5;

  /* ----------------------------------------------------------
     Spacing scale
     ---------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ----------------------------------------------------------
     Radius
     ---------------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* ----------------------------------------------------------
     Shadow
     ---------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(26,34,56,0.06);
  --shadow-md: 0 4px 12px -2px rgba(26,34,56,0.08), 0 0 0 1px rgba(26,34,56,0.04);
  --shadow-lg: 0 12px 32px -8px rgba(26,34,56,0.14), 0 0 0 1px rgba(26,34,56,0.04);
  --shadow-accent: 0 4px 14px -4px rgba(255,176,32,0.40);

  /* ----------------------------------------------------------
     Transitions
     ---------------------------------------------------------- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.20s ease;
  --transition-slow: 0.30s ease;
}

/* ============================================================
   Reset minimale + tipografia globale
   Applicato a body — opzionale ma raccomandato per coerenza
   ============================================================ */

body {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Componenti base — riusabili in tutti i moduli
   ============================================================ */

/* ----- Logomark ----- */
.eurocomplai-logomark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.eurocomplai-logomark .bracket { color: var(--ink-3); font-weight: 400; }
.eurocomplai-logomark .slash { color: var(--ink-3); font-weight: 500; }
.eurocomplai-logomark .ai { color: var(--accent); font-weight: 600; }

/* ----- Buttons ----- */
.btn-primary {
  background: var(--accent);
  color: var(--primary-text);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active {
  background: var(--accent-3);
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-3);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ----- Chip normative (uso esclusivo per riferimenti regolamentari) ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.gdpr {
  background: var(--chip-gdpr-soft);
  border: 1px solid var(--chip-gdpr-border);
  color: var(--chip-gdpr);
}
.chip.nis2 {
  background: var(--chip-nis2-soft);
  border: 1px solid var(--chip-nis2-border);
  color: var(--chip-nis2);
}
.chip.aiact {
  background: var(--chip-aiact-soft);
  border: 1px solid var(--chip-aiact-border);
  color: var(--chip-aiact);
}
/* Ghost chip — per riferimenti non-normativi (MDR, FOIA, ACN, M&A, ecc.) */
.chip.ghost {
  background: var(--panel-bright);
  border: 1px solid var(--border-1);
  color: var(--ink-3);
}

/* ----- Status chip (semantico, non normativo) ----- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.ok      { color: var(--status-green); background: var(--status-green-soft); border: 1px solid var(--status-green-border); }
.status.partial { color: var(--status-amber); background: var(--status-amber-soft); border: 1px solid var(--status-amber-border); }
.status.fail    { color: var(--status-red);   background: var(--status-red-soft);   border: 1px solid var(--status-red-border); }
.status.info    { color: var(--status-blue);  background: var(--status-blue-soft);  border: 1px solid var(--status-blue-border); }
.status.muted   { color: var(--status-muted); background: transparent;              border: 1px solid var(--border-1); }

/* ----- Card / Panel ----- */
.card {
  background: var(--panel);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  transform: translateY(-1px);
  border-color: var(--border-3);
  box-shadow: var(--shadow-md);
}
.card.signature {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border-1));
  position: relative;
  overflow: hidden;
}
.card.signature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ----- Eyebrow (mono uppercase label) ----- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-label);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.muted { color: var(--ink-3); }

.eyebrow.hairline::before {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
}

/* ----- Form ----- */
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-label);
  color: var(--ink-3);
  margin-bottom: 6px;
}
.form-label .req { color: var(--accent); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--ink);
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* ----- Lateral mark (border-left ambra) ----- */
.lateral-mark {
  padding: 12px 16px;
  background: rgba(255,176,32,0.04);
  border: 1px solid var(--border-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ----- Disclaimer (italic + lateral mark) ----- */
.disclaimer {
  font-style: italic;
  font-size: var(--fs-body-sm);
  color: var(--ink-3);
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(255,176,32,0.03);
}

/* ----- Slug IDE (per labels tipo "audit://", "q://", "context://") ----- */
.slug {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--ink-3);
}
.slug em {
  font-style: normal;
  color: var(--ink-2);
}

/* ----- Pattern signature di transizione (hairline + alone ambra) ----- */
.transition {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.transition::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; max-width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--accent) 30%, var(--accent-2) 50%, var(--accent) 70%, transparent 100%);
  opacity: 0.6;
}
.transition::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; max-width: 80%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(255,176,32,0.18) 0%, transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

/* ============================================================
   Componenti aggiunti in v1.1 (post-audit completo 14 viste)
   ============================================================ */

/* ----- App sidebar navigation (persistente) ----- */
.app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border-1);
  width: 240px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.app-sidebar .sidebar-brand {
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 16px;
}
.app-sidebar .sidebar-brand .tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 2px;
}
.app-sidebar .sidebar-section { padding: 8px 0; }
.app-sidebar .sidebar-section-label {
  padding: 0 20px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.app-sidebar .sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.app-sidebar .sidebar-item:hover {
  background: var(--panel-bright);
  color: var(--ink);
}
.app-sidebar .sidebar-item.active {
  background: var(--accent-soft);
  color: var(--ink);
  border-left-color: var(--accent);
  font-weight: 500;
}
.app-sidebar .sidebar-item .item-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.app-sidebar .sidebar-submenu .sidebar-item {
  padding-left: 36px;
  font-size: 13px;
}
.app-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid var(--border-2);
}

/* ----- Split layout (sidebar + main) usato in LIA, Analisi Rischi, Settings, ecc. ----- */
.split-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.split-layout .split-sidebar {
  background: var(--panel);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.split-layout .split-sidebar-label {
  padding: 4px 12px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 8px;
}
.split-layout .split-sidebar .item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-left: 2px solid transparent;
  margin-bottom: 2px;
  transition: all var(--transition-base);
}
.split-layout .split-sidebar .item:hover {
  background: var(--panel-bright);
}
.split-layout .split-sidebar .item.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}
.split-layout .split-sidebar .item .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.split-layout .split-main {
  background: var(--panel);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ----- Drag handle (reorder lists) ----- */
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink-4);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.drag-handle:hover { color: var(--ink-2); }
.drag-handle:active { cursor: grabbing; }

/* ----- Empty state (Data Breach vuoto, Asset vuoto, ecc.) ----- */
.empty-state {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty-state .empty-icon {
  color: var(--ink-3);
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}
.empty-state .empty-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.empty-state .empty-description {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-2);
  max-width: 480px;
  line-height: 1.55;
}
.empty-state .empty-cta { margin-top: 10px; }

/* ----- Stepper wizard (TIA + altri assessment multi-step) ----- */
.stepper {
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), 1fr);
  gap: 12px;
  padding: 8px 0 16px;
}
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-1);
  background: var(--panel);
  color: var(--ink-3);
  cursor: pointer;
  transition: all var(--transition-base);
}
.stepper-item:hover { border-color: var(--border-3); }
.stepper-item .step-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-bright);
  border: 1px solid var(--border-1);
  color: var(--ink-3);
  transition: all var(--transition-base);
}
.stepper-item .step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.stepper-item .step-label {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.stepper-item.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.stepper-item.active .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-text);
}
.stepper-item.active .step-num,
.stepper-item.active .step-label {
  color: var(--ink);
}
.stepper-item.completed .step-icon {
  background: var(--status-green);
  border-color: var(--status-green);
  color: white;
}
.stepper-item.completed .step-label { color: var(--ink-2); }

/* ----- AI inline badge (Q3 = B: pill ambra-soft filled) ----- */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ai-badge svg {
  width: 10px;
  height: 10px;
  color: var(--accent);
}
.ai-badge.sm {
  padding: 2px 7px;
  font-size: 9px;
}

/* ----- Block type chips (Fisso / AI / Ibrido — Settings Blocchi Documenti) ----- */
.block-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--panel-bright);
  border: 1px solid var(--border-1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.block-type-chip.fisso { color: var(--ink-3); }
.block-type-chip.fisso svg { color: var(--ink-3); }
.block-type-chip.ai {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.block-type-chip.ai svg { color: var(--accent); }
.block-type-chip.ibrido {
  color: var(--accent-3);
  background: color-mix(in srgb, var(--accent-3) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent-3) 25%, transparent);
}
.block-type-chip.ibrido svg { color: var(--accent-3); }

/* ----- Baseline chip (Settings Misure: ⭐ Baseline) ----- */
.baseline-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.baseline-chip svg { width: 10px; height: 10px; color: var(--accent); }

/* ----- Upload zone (drag and drop) ----- */
.upload-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--panel-bright);
  border: 1px dashed var(--border-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-zone .upload-icon {
  width: 28px; height: 28px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.upload-zone:hover .upload-icon { color: var(--accent); }
.upload-zone .upload-text {
  display: flex;
  flex-direction: column;
}
.upload-zone .upload-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.upload-zone .upload-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ----- Dashed button (+ Aggiungi misura, ecc.) ----- */
.btn-dashed {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--border-3);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-base);
}
.btn-dashed:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-dashed .plus {
  color: var(--accent);
  font-weight: 600;
}

/* ----- Danger button (Svuota, Elimina, ecc.) ----- */
.btn-danger {
  background: transparent;
  color: var(--status-red);
  border: 1px solid color-mix(in srgb, var(--status-red) 40%, transparent);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}
.btn-danger:hover {
  background: color-mix(in srgb, var(--status-red) 8%, transparent);
  border-color: var(--status-red);
}

/* ----- Tab bar (used in module sub-sections, Repository, settings, ecc.) ----- */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border-1);
  overflow-x: auto;
}
.tab-bar .tab {
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-base);
}
.tab-bar .tab:hover { color: var(--ink); }
.tab-bar .tab.active {
  color: var(--ink);
  font-weight: 500;
}
.tab-bar .tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
}
.tab-bar .tab .count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--panel-bright);
}
.tab-bar .tab.active .count {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ----- Pill toggle (Rischio Basso/Medio/Alto in Settings Questionari) ----- */
.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--panel-bright);
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--transition-base);
}
.pill-toggle:hover { background: var(--panel); border-color: var(--border-1); }
.pill-toggle.active.risk-basso { border-color: var(--risk-basso); background: var(--status-green-soft); color: var(--risk-basso); }
.pill-toggle.active.risk-medio { border-color: var(--risk-medio); background: var(--status-amber-soft); color: var(--risk-medio); }
.pill-toggle.active.risk-alto { border-color: var(--risk-alto); background: rgba(234,88,12,0.10); color: var(--risk-alto); }
.pill-toggle .count {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ----- Dark island (Privacy Hub header, Cyber Intel header, eventuali altre viste editoriali) ----- */
.dark-island {
  background: var(--panel-deep);
  color: var(--ink-on-dark);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.dark-island::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 160px;
  background: radial-gradient(ellipse at center, rgba(255,176,32,0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.dark-island > * { position: relative; z-index: 1; }
.dark-island .eyebrow,
.dark-island .eyebrow.muted { color: var(--accent); }
.dark-island .eyebrow.hairline::before { background: linear-gradient(to right, transparent, var(--accent)); }
.dark-island h1, .dark-island h2, .dark-island h3 { color: var(--ink-on-dark); }
.dark-island p { color: var(--ink-on-dark-2); }
.dark-island .slug { color: var(--ink-on-dark-3); }

/* ----- Auth page (login dark island full) ----- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--panel-deep), #0F1623);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-page::after {
  content: "";
  position: absolute;
  top: -240px; right: -200px;
  width: 720px; height: 580px;
  background: radial-gradient(ellipse at center, rgba(255,176,32,0.22), transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.40);
}
.auth-card .auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.auth-card .auth-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-3);
}
.auth-card .auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.auth-card .auth-subtitle {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 28px;
}
.auth-card .auth-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: opacity var(--transition-fast);
}
.auth-card .auth-link:hover { opacity: 0.8; }
.auth-card .auth-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-2);
  text-align: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ----- Client card (Dashboard lista clienti) ----- */
.client-card {
  background: var(--panel);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.client-card:hover {
  border-color: var(--border-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.client-card .client-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.client-card .client-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-card .client-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.client-card .client-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.client-card .client-stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.client-card .client-stats .stat .num {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   Fine eurocomplai-app-tokens.css v1.1
   ============================================================ */
