:root {
  /* === Palette di marca (costanti, uguali nei due temi): simbolo, lockup, ornamenti. Mai per stati === */
  --brand-teal:       #004B44; /* Deep Forest Teal */
  --brand-vermilion:  #F04E23; /* Vibrant Vermilion - accento di marca, mai uno stato */
  --brand-charcoal:   #1E2022; /* Carbon Charcoal */
  --brand-sage:       #DCE8E6; /* Soft Sage Mist */
  --brand-white:      #FFFFFF; /* Pure White */

  /* === Superfici (Dark-First: Foresta Notturna, derivata dal Deep Forest Teal) === */
  --bg-canvas:        #0E1615; /* Foresta Notturna - sfondo stanza */
  --bg-surface:       #18211F; /* pannelli, card, tile video */
  --bg-surface-hover: #232F2D; /* controlli interattivi hover */
  --bg-overlay:       rgba(14, 22, 21, 0.82);

  /* === Bordi Architettonici (Hairline, Soft Sage Mist) === */
  --border-subtle:    rgba(220, 232, 230, 0.08);
  --border-strong:    rgba(220, 232, 230, 0.16);
  --border-active:    #3DB8A5;

  /* === Tipografia & Gerarchia Testuale === */
  --text-primary:     #E8F0EE; /* Sage chiarissimo */
  --text-secondary:   #A9BBB8;
  --text-muted:       #8A9D9A; /* 4.9:1 sulla superficie hover */

  /* === Accenti Semantici (significato fisso) === */
  --accent-primary:   #3DB8A5; /* Verde Ossidiana - connessione P2P diretta, stato attivo (Deep Forest Teal acceso) */
  --accent-primary-bg:rgba(61, 184, 165, 0.14);
  --accent-danger:    #E8707A; /* Terracotta - muto, uscita stanza, errore (rosato: distinto dal Vermilion di marca, DeltaE 43) */
  --accent-danger-bg: rgba(232, 112, 122, 0.16);
  --accent-warn:      #D99B52; /* Ocra - connessione via TURN relay, solo quella */

  /* === Font Families === */
  --font-display:     'Cormorant Garamond', Georgia, serif;
  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:        'JetBrains Mono', ui-monospace, monospace;

  /* === Spaziature & Raggi === */
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-pill:      9999px;
  --dock-height:      64px;
  --header-height:    56px;
}

[data-theme="light"] {
  --bg-canvas:        #F3F7F6; /* Soft Sage Mist schiarito */
  --bg-surface:       #DCE8E6; /* Soft Sage Mist */
  --bg-surface-hover: #CDDBD8;
  --bg-overlay:       rgba(243, 247, 246, 0.88);
  --border-subtle:    rgba(30, 32, 34, 0.10);
  --border-strong:    rgba(30, 32, 34, 0.20);
  --border-active:    #004B44;
  --text-primary:     #1E2022; /* Carbon Charcoal */
  --text-secondary:   #46514F;
  --text-muted:       #4F5C59; /* 4.9:1 sulla superficie hover */
  --accent-primary:   #004B44; /* Deep Forest Teal */
  --accent-primary-bg:rgba(0, 75, 68, 0.10);
  --accent-danger:    #A8303A;
  --accent-danger-bg: rgba(168, 48, 58, 0.12);
  --accent-warn:      #7F5209;
}
