/* EVA01 — user-supplied palette 66162.png, 6 ottobre 2026.
   Exact sampled colors: #765899, #b797db, #000000, #41bb42, #e8790c.
   Dark surfaces, light text and green marker are readable UI derivatives.
   This user-selected palette replaces the previous TV reference adaptation.
   Previous version: _backups/eva01-before-palette-20261006/. */
:root[data-theme="eva01"] {
  --bg: #000000;
  --card: #2d223b;
  --ink: #f2eef6;
  --muted: #d4c5e7;
  --border: #594273;
  --border-strong: #765899;
  --red: #b797db;
  --eva-purple: #765899;
  --eva-lime: #41bb42;
  --eva-orange: #e8790c;
  --eva-accent: #41bb42;
  --eva-action: var(--eva-orange);
  --eva-action-hover: #f58a20;
  --eva-on-accent: #000000;
  --eva-marker: #205d21;
  --eva-selected: #765899;
  --hero-terminal-bg: #2d223b;
  --hero-terminal-border: #594273;
  --hero-terminal-text: #83d784;
  --hero-terminal-prompt: var(--eva-orange);
  /* CV-specific tokens: preserve its layout and typography. */
  --red-soft: #3c2d50;
  --badge-border: #765899;
  --mini-bg: #2d223b;
}

/* Violet orbital motif; same geometry as the other themes. */
:root[data-theme="eva01"] .console-ambient {
  background: radial-gradient(ellipse at 90% 35%, color-mix(in srgb, var(--eva-purple) 8%, transparent), transparent 63%);
}
:root[data-theme="eva01"] .dashboard {
  background: radial-gradient(ellipse at 90% 35%, color-mix(in srgb, var(--eva-purple) 8%, transparent), transparent 63%), var(--bg);
}
:root[data-theme="eva01"] :is(.console-ambient span, .ribbon) {
  border-color: color-mix(in srgb, var(--eva-purple) 28%, transparent);
  box-shadow: 0 -17px 0 color-mix(in srgb, var(--eva-purple) 3.5%, transparent), 0 -36px 0 color-mix(in srgb, var(--eva-purple) 2%, transparent);
}

/* Purple surfaces, green selection; shared card geometry is preserved. */
:root[data-theme="eva01"] :is(.console-tile, .ai-card),
:root[data-theme="eva01"] .platform[data-key] .tile-face {
  background: var(--card);
}
:root[data-theme="eva01"] :is(.console-tile.is-selected, .platform[aria-pressed="true"]) {
  border-color: var(--eva-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--eva-accent) 25%, transparent), 0 18px 40px color-mix(in srgb, var(--ink) 9%, transparent);
}
:root[data-theme="eva01"] .console-tile.is-selected,
:root[data-theme="eva01"] .platform[aria-pressed="true"] .tile-face {
  background: var(--eva-selected);
}
/* The exact purple is prominent on selected cards; secondary labels stay readable. */
:root[data-theme="eva01"] :is(.console-tile.is-selected, .platform[aria-pressed="true"]) {
  --muted: #f2eef6;
}
/* Keep the CV credential text legible without altering the credential artwork. */
:root[data-theme="eva01"] .credential-status,
:root[data-theme="eva01"] .credential-link:is(:hover, :focus-visible) {
  color: #92c8ef;
  border-color: #6592b3;
}
:root[data-theme="eva01"] :is(.redline, .contact-dot),
:root[data-theme="eva01"] :is(.banner, .contact-strip, .ai-card, .pcard, .job)::before,
:root[data-theme="eva01"] :is(.console-tile.is-selected, .platform[aria-pressed="true"], .intro h1)::after {
  background: var(--eva-accent);
}
:root[data-theme="eva01"] .materials-next {
  border-top-color: var(--eva-accent);
}
:root[data-theme="eva01"] .ai-construction {
  --construction-accent: var(--eva-accent);
}
:root[data-theme="eva01"] :is(.materials-filter.is-active, .filter-btn.active) {
  background: var(--eva-accent);
  border-color: var(--red);
  color: var(--eva-on-accent);
}
:root[data-theme="eva01"] .page-dot.active {
  background: var(--eva-lime);
}

/* Selected carousel titles: repeat the marker on each line of longer names.
   No padding or font changes: selection keeps the existing title geometry. */
:root[data-theme="eva01"] .console-tile.is-selected .console-title,
:root[data-theme="eva01"] .platform[aria-pressed="true"] .tile-word {
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  background-image: linear-gradient(transparent 47%, var(--eva-marker) 47%, var(--eva-marker) 94%, transparent 94%);
  background-size: 100% 1.1em;
  background-repeat: repeat-y;
}
:root[data-theme="eva01"] .platform[aria-pressed="true"] .tile-word {
  background-size: 100% 1em;
}
:root[data-theme="eva01"] body .console-tile.is-selected .console-title > span,
:root[data-theme="eva01"] body .platform[aria-pressed="true"] .tile-accent {
  color: var(--ink);
}

/* The arrow remains decorative: the card retains the existing click behavior. */
:root[data-theme="eva01"] :is(.console-bottom, .tile-bottom) {
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
:root[data-theme="eva01"] .console-tile.is-selected .console-bottom > span[aria-hidden="true"],
:root[data-theme="eva01"] .platform[aria-pressed="true"] .tile-bottom > span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--eva-action);
  color: var(--eva-on-accent);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

/* Orange primary actions with black text; green remains the selection color. */
:root[data-theme="eva01"] :is(
  .console-open, .contact-strip__link, .materials-jump, .selection button,
  .download-link:not(.download-link--secondary), .backlink
) {
  background: var(--eva-action);
  border-color: var(--eva-action);
  color: var(--eva-on-accent);
}
:root[data-theme="eva01"] :is(
  .console-open, .contact-strip__link, .materials-jump, .selection button,
  .download-link:not(.download-link--secondary), .backlink
):is(:hover, :focus-visible) {
  background: var(--eva-action-hover);
  border-color: var(--red);
  color: var(--eva-on-accent);
}
:root[data-theme="eva01"] :is(
  .materials-card a, .materials-next a, .profile-actions a, .copy-id
):is(:hover, :focus-visible) {
  background: var(--eva-accent);
  border-color: var(--red);
  color: var(--eva-on-accent);
}
:root[data-theme="eva01"] .theme-toggle {
  border-color: var(--border-strong);
}
:root[data-theme="eva01"] .theme-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}
/* Footer status: etichetta distinta e online sempre verde — 8 ottobre 2026. */
:root[data-theme="eva01"] .footer-note--status {
  color: #b797db;
}
:root[data-theme="eva01"] .footer-note--status .footer-note__online {
  color: #41bb42;
}
:root[data-theme="eva01"] :is(a, button):focus-visible {
  outline: 2px solid var(--eva-lime);
  outline-offset: 5px;
}

/* Preserve the EVA orange navigation feedback and homepage corner details. */
:root[data-theme="eva01"] :is(.slide-arrow, .console-controls button:enabled):is(:hover, :focus-visible) {
  background: var(--card);
  border-color: var(--eva-orange);
  color: var(--eva-orange);
}
:root[data-theme="eva01"] body .theme-toggle[aria-pressed="true"] {
  color: var(--eva-lime);
  border-color: var(--eva-lime);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--eva-lime) 14%, transparent);
}
