/* NBA Whale Pro — nero puro + accent cyan */
:root {
  --bg: #000000;
  --bg2: #050505;
  --bg3: #0a0a0a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f6fa;
  --muted: #8a96a8;
  --accent: #4de8ff;
  --accent-bright: #7af0ff;
  --accent-dim: rgba(77, 232, 255, 0.12);
  --accent-glow: rgba(77, 232, 255, 0.35);
  --whale-blue: #2a7cff;
  --blue: #4da3ff;
  --orange: #ffb347;
  --danger: #ff6b8a;
  --ok: #3dffb8;
  --radius: 12px;
  --sidebar-w: 268px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --hero-gradient: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(77, 232, 255, 0.08), transparent 60%);
  --sidebar-glass: rgba(0, 0, 0, 0.52);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.login-card label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}
.form-error { color: var(--danger); font-size: 0.9rem; margin-top: 0.75rem; }
.center { text-align: center; }

/* Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  transition: padding-left 0.28s ease;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  transition: width 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.sidebar-pin-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
}
.sidebar-pin-btn:hover {
  color: var(--accent);
  border-color: rgba(77, 232, 255, 0.35);
}

.sidebar-reopen-btn {
  display: none;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 36px;
  height: 52px;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
}

.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border: none;
  transform: translateX(-12px);
}
.app-shell.sidebar-collapsed .sidebar-reopen-btn {
  display: block;
}
.app-shell:not(.sidebar-collapsed) .sidebar-reopen-btn {
  display: none;
}

.sidebar-toggle-btn {
  display: inline-flex;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.brand-lg { justify-content: center; border: none; margin-bottom: 1.5rem; }
.brand-stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); font-size: 0.7rem; }
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.brand-logo-lg {
  width: min(300px, 88vw);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px var(--accent-glow));
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.side-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.side-nav a:hover {
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
}
.side-nav a.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h2 {
  margin: 0;
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
}
.menu-btn { display: none; }

/* Una sola sezione visibile (solo .view-active; no attributo HTML hidden) */
.main > .view[data-route] {
  padding: 1.25rem;
  flex: 1;
  display: none !important;
  pointer-events: none !important;
}
.main > .view[data-route].view-active {
  display: block !important;
  pointer-events: auto !important;
}
body.route-switching .main > .view[data-route].view-active {
  animation: routeFade 0.18s ease;
}
@keyframes routeFade {
  from { opacity: 0.55; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

#global-status {
  position: sticky;
  top: 0;
  z-index: 25;
}

.status-bar {
  margin: 0 1.25rem 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #3d2a00;
  border: 1px solid #9e6a00;
  color: #f0c674;
  font-size: 0.9rem;
}
.status-bar.error {
  background: #3d1515;
  border-color: #8b3030;
  color: var(--danger);
}
.status-bar.ok {
  background: #0d2818;
  border-color: #238636;
  color: var(--ok);
}

/* Global loader */
body.is-loading {
  cursor: progress;
}
.global-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.global-loader.hidden {
  display: none;
}
.global-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(1px);
}
.global-loader-card {
  position: relative;
  z-index: 1;
  min-width: 220px;
  text-align: center;
  padding: 0.95rem 1rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(77, 232, 255, 0.35);
  background: linear-gradient(165deg, rgba(17, 26, 38, 0.98), rgba(8, 12, 20, 0.98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.global-loader-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.basketball-bounce {
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.basketball-bounce .ball {
  display: inline-block;
  font-size: 1.85rem;
  transform-origin: center bottom;
  animation: ballBounce 0.8s ease-in-out infinite;
}
@keyframes ballBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-14px) scale(1.04); }
  60% { transform: translateY(0) scale(0.92); }
}

/* Cards & layout */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.metric {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.metric .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.metric .value { font-size: 1.35rem; font-weight: 700; color: var(--accent); margin-top: 0.2rem; }

/* Scheda profilo giocatore — radar a barre */
.player-hero-card {
  background: linear-gradient(135deg, #0d1520 0%, #121a28 55%, #0f1a14 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 32px #00d4aa18;
}
.player-hero-card .hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.player-hero-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}
.player-role-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #00d4aa22;
  color: var(--accent);
  margin-right: 0.35rem;
}
.composite-ring {
  text-align: center;
  min-width: 88px;
}
.composite-ring .cr-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.composite-ring .cr-lbl {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem 1.25rem;
}
.radar-row {
  display: grid;
  grid-template-columns: 108px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.radar-row .rlabel {
  color: var(--muted);
  font-weight: 600;
}
.radar-track {
  height: 10px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.radar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}
.radar-fill.tier-elite { background: linear-gradient(90deg, #00d4aa, #3b9eff); }
.radar-fill.tier-alta { background: linear-gradient(90deg, #3b9eff, #7c6cff); }
.radar-fill.tier-media { background: linear-gradient(90deg, #ff9f40, #ffb347); }
.radar-fill.tier-bassa { background: linear-gradient(90deg, #6b7280, #8b949e); }
.radar-score {
  font-weight: 800;
  text-align: right;
  color: var(--text);
}
.expectation-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.book-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.book-compare-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}
.book-compare-card .bc-stat {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}
.stats-dense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.45rem;
}
.stat-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
}
.stat-chip strong {
  display: block;
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.1rem;
}
.profile-only-banner {
  background: #3b9eff18;
  border: 1px solid #3b9eff55;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.compare-radar-row {
  grid-template-columns: 108px 1fr 52px;
}
.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.compare-bars .radar-track {
  height: 7px;
}

.team-h2h-panel h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.team-h2h-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0.35rem 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.team-h2h-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.team-h2h-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-h2h-legend .dot.team-a {
  background: linear-gradient(90deg, #3b9eff, #7c6cff);
}
.team-h2h-legend .dot.team-b {
  background: linear-gradient(90deg, #00d4aa, #3b9eff);
}
.team-h2h-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 720px;
}
.team-h2h-grid .compare-radar-row {
  grid-template-columns: 118px 1fr 58px;
}
.team-h2h-overall {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.team-h2h-score {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.team-h2h-score strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin: 0.2rem 0;
}
.team-h2h-vs {
  align-self: center;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.team-h2h-verdict {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 212, 170, 0.08);
  font-size: 0.88rem;
  color: var(--text);
  max-width: 720px;
}
.team-h2h-panel .stat-list {
  margin-top: 0.75rem;
  max-width: 720px;
}

.team-matchup-panel h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.team-matchup-schedule {
  margin: 0 0 0.85rem;
  color: var(--accent);
}
.team-duel-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team-duel-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}
.team-duel-side.home-side {
  justify-content: flex-start;
}
.team-duel-side.away-side {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}
.team-duel-names {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.team-duel-side strong {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}
.team-duel-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.team-duel-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
table.team-duel-table .th-logo {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.35rem;
}
table.team-duel-table .th-logo .team-duel-logo,
table.team-duel-table .th-logo .team-duel-logo-fallback {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
  border-radius: 6px;
}
table.team-duel-table .col-away-head .th-logo {
  margin-right: 0;
  margin-left: 0.35rem;
}
.team-duel-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.team-duel-mid {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.team-duel-wrap {
  overflow-x: auto;
}
table.team-duel-table {
  width: 100%;
  min-width: 420px;
}
table.team-duel-table .metric-name {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  width: 38%;
}
table.team-duel-table .col-home,
table.team-duel-table .col-away,
table.team-duel-table .col-home-head,
table.team-duel-table .col-away-head {
  text-align: center;
  width: 31%;
}
table.team-duel-table .col-home-head {
  color: #7c6cff;
}
table.team-duel-table .col-away-head {
  color: var(--accent);
}
table.team-duel-table tr.edge-home td.col-home {
  color: var(--accent);
  font-weight: 700;
}
table.team-duel-table tr.edge-away td.col-away {
  color: #7c6cff;
  font-weight: 700;
}
table.team-duel-table tr.team-duel-section td {
  background: rgba(0, 212, 170, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
  border-top: 1px solid var(--border);
}
.team-matchup-panel .stat-list {
  margin-top: 0.85rem;
}
.team-matchup-compact.card {
  padding: 0.65rem 0.75rem 0.85rem;
  border-width: 1px;
}
.team-matchup-compact .team-matchup-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.label-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.15rem;
}
.team-matchup-cal-note {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  color: var(--orange);
}
.team-matchup-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  overflow: visible;
  width: 100%;
}
.team-matchup-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  width: 100%;
}
.matchup-header-teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.1rem;
  width: 100%;
  padding: 0.35rem 0;
}
.mh-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.mh-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06rem;
}
.mh-role {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mh-team strong {
  font-size: 0.92rem;
  font-weight: 800;
}
.mh-home strong { color: #9eb4ff; }
.mh-away strong { color: #6ee7c8; }
.mh-team .team-duel-logo,
.mh-team .team-duel-logo-fallback {
  width: 40px;
  height: 40px;
}
.mh-vs {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
}
.team-matchup-compact .team-matchup-title {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.team-matchup-teams {
  color: var(--accent-bright);
}
.team-matchup-compact .team-matchup-schedule {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
  text-align: center;
  width: 100%;
}
.matchup-scoreboard-hero {
  display: block;
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: rgba(77, 232, 255, 0.06);
  border: 1px solid rgba(77, 232, 255, 0.18);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}
.sb-simple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  width: 100%;
}
.sb-side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.sb-side-home {
  align-items: flex-start;
  text-align: left;
}
.sb-side-away {
  align-items: flex-end;
  text-align: right;
}
.sb-side .team-duel-logo,
.sb-side .team-duel-logo-fallback {
  width: 36px;
  height: 36px;
}
.sb-side-tag {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}
.sb-side-home .sb-side-tag { color: #9eb4ff; }
.sb-side-away .sb-side-tag { color: #6ee7c8; }
.sb-side-score {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sb-side-home .sb-side-score { color: #9eb4ff; }
.sb-side-away .sb-side-score { color: #6ee7c8; }
.sb-side.sb-winner .sb-side-score { color: var(--text); }
.sb-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.15), rgba(255, 140, 50, 0.06));
  border: 1px solid rgba(255, 179, 71, 0.35);
  min-width: 5.5rem;
}
.sb-mid-total {
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 800;
  color: #ffb347;
  line-height: 1;
}
.sb-mid-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sb-mid-edge {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 480px) {
  .sb-simple-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .sb-mid {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    box-sizing: border-box;
  }
  .sb-side-home { align-items: center; text-align: center; }
  .sb-side-away { align-items: center; text-align: center; }
}
.matchup-scoreboard-compact {
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
  white-space: nowrap;
}
.center-duel-table-wrap {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.4rem;
  overflow: hidden;
}
.team-matchup-compact .center-duel-table-wrap {
  width: 100%;
}
.team-matchup-compact .center-duel-section {
  text-align: center;
  width: 100%;
}
.team-matchup-compact .center-duel-row-total .center-duel-label {
  color: #ffd9a0;
  font-weight: 700;
}
.team-matchup-compact .center-duel-row-total .score-total {
  color: #ffb347;
  font-size: 0.7rem;
  font-weight: 800;
}
.team-matchup-compact .center-duel-row-total .bar-home,
.team-matchup-compact .center-duel-row-total .bar-away {
  background: rgba(255, 179, 71, 0.55) !important;
}
.team-matchup-compact .center-duel-grid {
  gap: 0.05rem;
}
.team-matchup-compact .center-duel-grid-header {
  display: grid;
  grid-template-columns: 1fr minmax(3.8rem, auto) 1fr;
  align-items: end;
  gap: 0.2rem;
  padding: 0 0 0.3rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.team-matchup-compact .center-duel-head-col {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}
.team-matchup-compact .center-duel-head-home {
  justify-self: start;
  text-align: left;
  align-items: flex-start;
}
.team-matchup-compact .center-duel-head-away {
  justify-self: end;
  text-align: right;
  align-items: flex-end;
}
.team-matchup-compact .center-duel-head-role {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.team-matchup-compact .center-duel-head-col strong {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}
.team-matchup-compact .center-duel-head-home strong { color: #9eb4ff; }
.team-matchup-compact .center-duel-head-away strong { color: #6ee7c8; }
.team-matchup-compact .center-duel-head-mid {
  text-align: center;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  padding: 0 0.15rem;
}
.team-matchup-compact .center-duel-row {
  display: grid;
  grid-template-columns: 1fr minmax(3.8rem, auto) 1fr;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0;
  position: relative;
}
.team-matchup-compact .center-duel-row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}
.duel-side {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
}
.duel-side-home {
  justify-content: flex-end;
}
.duel-side-away {
  justify-content: flex-start;
}
.team-matchup-compact .bar-half-home,
.team-matchup-compact .bar-half-away {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}
.team-matchup-compact .bar-half-home {
  justify-content: flex-end;
}
.team-matchup-compact .bar-half-away {
  justify-content: flex-start;
}
.team-matchup-compact .bar-fill {
  height: 6px;
  min-width: 3px;
  border-radius: 3px;
}
.team-matchup-compact .center-duel-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
  padding: 0 0.15rem;
  z-index: 1;
}
.team-matchup-compact .center-duel-score {
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.05;
  flex-shrink: 0;
}
.team-matchup-compact .center-duel-score.score-home {
  text-align: right;
  color: #9eb4ff;
  padding-right: 0.05rem;
}
.team-matchup-compact .center-duel-score.score-away {
  text-align: left;
  color: #6ee7c8;
  padding-left: 0.05rem;
}
.team-matchup-compact .center-duel-score.score-win {
  color: var(--accent-bright);
}
.team-matchup-compact .duel-delta {
  display: block;
  font-size: 0.48rem;
  margin-top: 0.04rem;
  opacity: 0.85;
  font-weight: 600;
}
.team-matchup-compact .center-duel-section {
  margin: 0.2rem 0 0.05rem;
  padding: 0.15rem 0 0.05rem;
  font-size: 0.54rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.team-matchup-compact .pace-insight-compact {
  margin-top: 0.25rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.62rem;
  border: none;
  background: transparent;
}
.team-matchup-compact .team-matchup-details {
  margin-top: 0.25rem;
  font-size: 0.68rem;
}
.team-matchup-compact .stat-list {
  font-size: 0.68rem;
}
.team-matchup-compact .stat-list li {
  margin-bottom: 0.12rem;
}
.team-matchup-compact .center-duel-section {
  grid-column: 1 / -1;
  border-bottom: none;
  opacity: 0.85;
}
.team-matchup-compact .pace-insight-inline {
  line-height: 1.25;
  color: var(--muted);
}
.team-matchup-panel h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.team-matchup-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.team-matchup-legend .leg-home { color: #7c6cff; }
.team-matchup-legend .leg-away { color: var(--accent); }
.team-matchup-legend .leg-mid { opacity: 0.45; }

.matchup-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.08), rgba(7, 20, 38, 0.45));
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: var(--radius);
}
.sb-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.sb-team .team-duel-logo,
.sb-team .team-duel-logo-fallback {
  width: 36px;
  height: 36px;
  font-size: 0.65rem;
  border-radius: 8px;
}
.sb-name {
  font-size: 0.82rem;
  font-weight: 700;
}
.sb-pred {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.sb-team.sb-away {
  flex-direction: row-reverse;
  text-align: right;
}
.sb-team.sb-winner .sb-pred {
  color: var(--accent);
}
.sb-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.sb-role {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.sb-center {
  text-align: center;
  min-width: 7.5rem;
}
.sb-vs {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.sb-adv {
  font-size: 0.82rem;
  color: var(--accent);
}

.center-duel-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.center-duel-label {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}
.center-duel-barline {
  display: grid;
  grid-template-columns: minmax(2.2rem, auto) 1fr minmax(2.2rem, auto);
  align-items: center;
}
.center-duel-score {
  font-weight: 700;
  white-space: nowrap;
}
.center-duel-score.score-home {
  text-align: right;
}
.center-duel-score.score-away {
  text-align: left;
}
.center-duel-bars {
  display: flex;
  align-items: center;
  min-width: 0;
}
.bar-half {
  flex: 1;
  display: flex;
  height: 100%;
  min-width: 0;
}
.bar-half-home {
  justify-content: flex-end;
}
.bar-half-away {
  justify-content: flex-start;
}
.bar-fill {
  height: 100%;
  min-width: 3px;
  transition: width 0.35s ease;
}
.bar-fill.bar-home {
  background: linear-gradient(270deg, #7c6cff, #3b9eff);
  border-radius: 4px 0 0 4px;
}
.bar-fill.bar-away {
  background: linear-gradient(90deg, #00d4aa, #3b9eff);
  border-radius: 0 4px 4px 0;
}
.bar-axis {
  background: var(--text);
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(77, 232, 255, 0.35);
}
.center-duel-section {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.team-matchup-schedule {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
}
.team-matchup-details {
  margin-top: 0.75rem;
  font-size: 0.82rem;
}
.team-matchup-details summary {
  cursor: pointer;
  color: var(--muted);
}

.pace-insight-card {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid #3b9eff;
  border-radius: 8px;
  font-size: 0.8rem;
}
.pace-insight-title {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.pace-insight-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
}
.pace-insight-teams .pace-mid {
  color: var(--muted);
  opacity: 0.6;
}
.pace-insight-card .hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.center-duel-grid {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.duel-delta {
  display: block;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-top: 0.1rem;
}
.center-duel-row.row-edge-home .score-home,
.center-duel-row.row-edge-away .score-away {
  color: var(--accent);
}
.sb-total {
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.sb-winprob {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .matchup-scoreboard {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sb-team,
  .sb-team.sb-away {
    flex-direction: column;
    text-align: center;
  }
  .center-duel-barline {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .center-duel-score.score-home,
  .center-duel-score.score-away {
    text-align: center;
  }
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.toolbar.wrap { flex-wrap: wrap; }
.toolbar .inline-hint {
  flex: 1 1 100%;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.toolbar label.inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.toolbar input[type="text"],
.toolbar input[type="number"],
.toolbar select,
.card input,
.card select,
.card textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
}
.card textarea {
  width: 100%;
  margin: 0.5rem 0 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  resize: vertical;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--whale-blue));
  color: #050810;
  border: 1px solid rgba(77, 232, 255, 0.5);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
.btn-block { width: 100%; margin-top: 0.5rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Picks */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}

/* Pick del giorno — una sotto l’altra, ogni card a tutta larghezza in orizzontale */
.picks-grid-daily {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  padding: 0.15rem 0 0.5rem;
}
.picks-grid-daily > .pick-card {
  width: 100%;
  max-width: none;
  flex: none;
  box-sizing: border-box;
}
.pick-card-daily {
  padding: 1.1rem 1.25rem 1.25rem;
}
.pick-daily-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.pick-daily-row {
  width: 100%;
}
.pick-daily-row-top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.35rem;
}
.pick-daily-row-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
}
.pick-daily-col {
  min-width: 0;
}
.pick-daily-identity {
  flex: 0 1 min(280px, 32%);
}
.pick-daily-identity .vac-header {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.pick-daily-identity .vac-pronostic {
  text-align: left;
  margin-top: 0.55rem;
}
.pick-daily-identity h4 {
  font-size: 1.15rem;
}
.pick-daily-player {
  font-size: 1.35rem !important;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.35rem 0 0.25rem;
  color: var(--text, #e6edf3);
}
.pick-daily-bet-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}
.pick-daily-bet-line .vac-line {
  font-size: 1.15rem;
}
.pick-daily-odd {
  color: var(--muted, #8b949e);
  font-size: 0.95rem;
}
.pick-value-tag {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.82rem;
  color: var(--accent, #00d4aa);
  opacity: 0.95;
}
.vac-header-daily .vac-pronostic {
  display: none;
}
.vac-book-inline {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}
.pick-daily-metrics {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pick-daily-metrics .vac-kpi-grid-daily {
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  margin-bottom: 0;
}
.pick-daily-metrics .vac-charts-daily {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 0;
}
.pick-daily-metrics .vac-chart-box {
  height: 118px;
  min-height: 118px;
}
.pick-daily-metrics .vac-chart-box canvas {
  height: 96px !important;
}
.vac-kpi-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
}
.kpi-gloss-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.35);
  flex-shrink: 0;
}
.kpi-gloss-link:hover {
  background: var(--accent);
  color: var(--bg);
}
.pick-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.pick-matchup-explained {
  width: 100%;
}
.pick-matchup-intro {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.pick-matchup-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.mc-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.mc-panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
.mc-panel-ref {
  border-color: rgba(255, 159, 64, 0.45);
  background: rgba(255, 159, 64, 0.06);
}
.mc-row {
  margin-bottom: 0.65rem;
}
.mc-row:last-child {
  margin-bottom: 0;
}
.mc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.mc-row-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.mc-row-val {
  font-size: 0.85rem;
  color: var(--accent);
}
.mc-fill-track {
  height: 8px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}
.mc-fill-off {
  background: linear-gradient(90deg, #00d4aa, #3b9eff);
}
.mc-fill-def {
  background: linear-gradient(90deg, #ff8585, #ff9f40);
}
.mc-fill-ref {
  background: linear-gradient(90deg, #ffb347, #ff6b6b);
}
.mc-hint {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}
.mc-row-pulse .mc-fill-track {
  animation: mc-pulse 1.2s ease-in-out infinite;
}
@media (max-width: 900px) {
  .pick-matchup-panels {
    grid-template-columns: 1fr;
  }
}
.pick-daily-matchup .matchup-clash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.pick-daily-matchup .mc-col {
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
}
.pick-daily-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.pick-daily-conf .conf-bar {
  max-width: 420px;
}
.pick-daily-ai {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(59, 158, 255, 0.08));
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-sizing: border-box;
}
.pick-daily-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.pick-daily-ai-head .vac-story-label {
  margin: 0;
  font-size: 0.85rem;
}
.pick-ai-help {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  width: auto;
  height: auto;
}
.pick-daily-ai-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  max-height: none;
  overflow: visible;
}
.pick-daily-ai-body p {
  margin: 0 0 0.65rem;
}
.pick-daily-ai-body p:last-child {
  margin-bottom: 0;
}
.ai-chip {
  display: inline-block;
  margin: 0 0.15rem 0.15rem 0;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 159, 64, 0.18);
  color: var(--orange);
  border: 1px solid rgba(255, 159, 64, 0.35);
}
.pick-glossary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pick-glossary summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  list-style: none;
}
.pick-glossary summary::-webkit-details-marker {
  display: none;
}
.pick-glossary[open] summary {
  margin-bottom: 0.75rem;
}
.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}
.gloss-item {
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: var(--bg3);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.gloss-item dt {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.gloss-item dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.gloss-item:target,
.gloss-item.gloss-flash {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
  background: rgba(77, 232, 255, 0.06);
}
.pick-values-guide .pvg-summary {
  cursor: pointer;
  font-weight: 600;
}
.pvg-summary-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.25rem;
}
.pvg-intro {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
}
.pvg-section {
  margin-bottom: 1.25rem;
}
.pvg-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--accent);
}
.pq-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pq-tier-line {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.guide-pick-values-wrap {
  margin-bottom: 1.5rem;
}
.pick-values-guide-static {
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) {
  .pick-daily-row-top {
    flex-direction: column;
  }
  .pick-daily-identity,
  .pick-daily-metrics {
    flex: 1 1 100%;
  }
  .pick-daily-metrics .vac-kpi-grid-daily {
    grid-template-columns: repeat(3, 1fr);
  }
  .pick-daily-metrics .vac-charts-daily {
    grid-template-columns: repeat(2, 1fr);
  }
}
.vac-referee {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0.2rem 0 0.45rem;
  padding: 0.25rem 0.5rem;
  background: #ff9f4022;
  border-radius: 6px;
  display: inline-block;
}
.pick-card-h .vac-charts-4 {
  max-height: 110px;
}
.pick-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.pick-card.stat-REB { border-left-color: var(--blue); }
.pick-card.stat-AST { border-left-color: var(--orange); }
.pick-card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.pick-card .meta { font-size: 0.82rem; color: var(--muted); }
.pick-card .edge { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin: 0.4rem 0; }
.pick-card .reason { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.4; }
.pick-card-whale { box-shadow: 0 0 0 1px var(--accent), 0 8px 28px #00d4aa22; }
.pick-whale-head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.conf-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  margin: 0.45rem 0;
  overflow: hidden;
}
.conf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 999px;
}
.pick-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.pick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.35rem;
}
.btn-add-bankroll {
  font-weight: 700;
}
.bk-table { width: 100%; font-size: 0.82rem; }
.bk-table .bk-outcome-select {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  font-size: 0.8rem;
}
.bk-table .hint-cell { max-width: 200px; font-size: 0.75rem; color: var(--muted); }
.text-ok { color: var(--ok); font-weight: 600; }
.text-err { color: var(--danger); font-weight: 600; }

/* Beast — decision score + slate health */
.vac-decision {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
  align-items: center;
}
.decision-signal {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}
.decision-play { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.decision-watch { background: rgba(255, 179, 71, 0.15); color: #ffb347; }
.decision-pass { background: rgba(139, 163, 188, 0.12); color: var(--muted); }
.decision-rejected { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.decision-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.pq-signal-play { color: #2ecc71; }
.pq-signal-watch { color: #ffb347; }
.pq-signal-pass { color: var(--muted); }
.slate-health-banner {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  margin: 0 0 0.5rem;
}
.slate-ok { background: rgba(46, 204, 113, 0.1); color: #8fdfb0; }
.slate-warn { background: rgba(255, 107, 107, 0.12); color: #ffb0b0; }
.onboarding-modal {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--text);
  max-width: 420px;
  padding: 0;
}
.onboarding-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.onboarding-inner { padding: 1.25rem 1.5rem; margin: 0; }
.onboarding-picks { margin: 0.75rem 0; padding-left: 1.1rem; font-size: 0.88rem; }
.onboarding-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.home-model-tag {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.drift-banner {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.drift-banner.drift-warn {
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: #ffd9a0;
}
.drift-banner.drift-ok {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: #9fdfb8;
}

/* Toast */
.toast-root {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, 92vw);
  pointer-events: none;
}
.toast {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-ok { border-color: rgba(46, 204, 113, 0.5); }
.toast-error { border-color: rgba(255, 107, 107, 0.5); }

/* Skeleton */
.skeleton-wrap { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.skeleton-card {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vac-alert-reason {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0.35rem 0 0.5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(77, 232, 255, 0.06);
  border-radius: 6px;
}
.vac-ai-narrative.whale-narrative {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0.5rem 0;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-style: italic;
}
.vac-live-under-trigger {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff6b6b;
  margin: 0.5rem 0;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 8px;
  animation: pulse-live 1.2s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.vac-risk-note {
  font-size: 0.8rem;
  color: #f0ad4e;
  margin: 0.35rem 0;
}
.market-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(77, 232, 255, 0.1);
  color: var(--accent);
  vertical-align: middle;
}
.market-type-badge.market-combo { background: rgba(255, 200, 80, 0.12); color: #ffc850; }
.market-type-badge.market-team-q { background: rgba(120, 180, 255, 0.12); color: #78b4ff; }
.alert-simple-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 24, 38, 0.95), rgba(12, 16, 28, 0.98));
  border: 1px solid rgba(77, 232, 255, 0.12);
}
.alert-simple-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.alert-player-name {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.15rem;
}
.alert-meta {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}
.alert-pronostic-big {
  text-align: right;
  flex-shrink: 0;
}
.alert-stat-line {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.25rem;
}
.alert-simple-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.alert-metric {
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}
.alert-metric span {
  display: block;
  opacity: 0.65;
  margin-bottom: 0.15rem;
}
.alert-metric strong {
  font-size: 0.95rem;
}
.alert-reason-simple {
  font-size: 0.84rem;
  line-height: 1.4;
  opacity: 0.88;
  margin: 0.65rem 0 0.5rem;
}
.alert-simple-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.alert-l10-wrap {
  margin-top: 0.25rem;
  padding: 0.65rem 0.5rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}
.alert-l10-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.alert-l10-title { opacity: 0.7; }
.alert-l10-score strong { color: #4de8ff; font-size: 1rem; }
.alert-l10-stage {
  position: relative;
  padding: 0.25rem 0 0.15rem;
}
.alert-l10-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, #ffc850 0 6px, transparent 6px 10px);
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
}
.alert-l10-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
  position: relative;
  z-index: 1;
}
.alert-l10-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}
.alert-l10-bar {
  width: 100%;
  max-width: 28px;
  height: 100%;
  border-radius: 8px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.alert-l10-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h, 40%);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom center;
  animation: alert-l10-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}
.alert-l10-bar.hit::after {
  background: linear-gradient(180deg, #5dffb8 0%, #00d4aa 100%);
  box-shadow: 0 0 14px rgba(0, 212, 170, 0.35);
}
.alert-l10-bar.miss::after {
  background: linear-gradient(180deg, #6a7585 0%, #3d4654 100%);
  opacity: 0.85;
}
.alert-l10-opp {
  font-size: 0.62rem;
  opacity: 0.55;
  margin-top: 0.2rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alert-l10-val {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 0.1rem;
}
.alert-l10-empty {
  font-size: 0.8rem;
  opacity: 0.6;
  padding: 0.5rem 0;
}
@keyframes alert-l10-rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (max-width: 520px) {
  .alert-simple-metrics { grid-template-columns: repeat(2, 1fr); }
  .alert-simple-top { flex-direction: column; }
  .alert-pronostic-big { text-align: left; }
}

.scan-progress-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(77, 232, 255, 0.06);
  border: 1px solid rgba(77, 232, 255, 0.18);
}
.scan-progress-panel.hidden { display: none; }
.scan-progress-panel.scan-failed {
  background: rgba(255, 100, 100, 0.08);
  border-color: rgba(255, 120, 120, 0.35);
}
.scan-progress-panel.scan-done {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.3);
}
.scan-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--accent);
}
.scan-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.scan-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a7cff, #4de8ff);
  transition: width 0.45s ease;
}
.scan-progress-panel.scan-running .scan-progress-fill {
  box-shadow: 0 0 12px rgba(77, 232, 255, 0.45);
}
.scan-progress-panel.scan-failed .scan-progress-fill {
  background: linear-gradient(90deg, #c0392b, #ff6b6b);
}
.scan-progress-panel.scan-done .scan-progress-fill {
  background: linear-gradient(90deg, #00a884, #00d4aa);
}
.scan-progress-detail {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}
.scan-progress-events {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}
.home-watchlist-strip {
  margin: 1rem auto;
  max-width: 900px;
  padding: 1rem 1.25rem;
}
.home-watchlist-strip h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.watchlist-home { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.watchlist-home li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg3);
  border-radius: 8px;
  font-size: 0.85rem;
}
.pace-card { border-left: 3px solid var(--accent); }
.reliability-verdict-card { border-left: 3px solid #2ecc71; }
.min-sc-table { font-size: 0.82rem; }

/* Toolkit 50 — contesto giocatore */
.toolkit50-card {
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-left: 4px solid #a78bfa;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.08) 0%, var(--bg2) 42%);
  overflow: hidden;
}
.tk50-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 720px) {
  .tk50-hero { grid-template-columns: 1fr; }
}
.tk50-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  margin: 0 0 0.35rem;
}
.tk50-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}
.tk50-story {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}
.tk50-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tk50-chip {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.tk50-chip-warn { border-color: rgba(255, 179, 71, 0.45); color: #ffd9a0; }
.tk50-chip-pos { border-color: rgba(46, 204, 113, 0.4); color: #9fdfb8; }
.tk50-hero-kpis {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 7.5rem;
}
.tk50-kpi {
  text-align: right;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tk50-kpi-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.tk50-kpi-value {
  font-size: 1.05rem;
  font-weight: 700;
}
.tk50-edge-neg .tk50-kpi-value { color: #ff8585; }
.tk50-edge-pos .tk50-kpi-value { color: #3fb950; }
.tk50-edge-neutral .tk50-kpi-value { color: var(--muted); }
.tk50-lean-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  padding: 0.75rem 1rem;
}
.tk50-lean-card {
  text-align: center;
  padding: 0.65rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg3);
}
.tk50-lean-stat {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.tk50-lean-side {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tk50-lean-over {
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.1);
}
.tk50-lean-over .tk50-lean-side { color: #3fb950; }
.tk50-lean-under {
  border-color: rgba(255, 133, 133, 0.45);
  background: rgba(255, 133, 133, 0.08);
}
.tk50-lean-under .tk50-lean-side { color: #ff8585; }
.tk50-groups {
  padding: 0 0.65rem 0.65rem;
}
.tk50-group {
  margin-bottom: 0.45rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.tk50-group summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.tk50-group summary::-webkit-details-marker { display: none; }
.tk50-group-icon { font-size: 1rem; }
.tk50-group-n {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.tk50-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0.75rem 0.65rem;
}
.tk50-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.28rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}
.tk50-metric-label { color: var(--muted); flex: 1; min-width: 0; }
.tk50-metric-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tk50-foot {
  margin: 0 0.75rem 0.85rem;
  font-size: 0.78rem;
}
.tk50-hover-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.35rem;
}
.tk50-has-tip {
  position: relative;
  cursor: help;
}
.tk50-has-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 80;
  left: 0;
  bottom: calc(100% + 6px);
  max-width: min(320px, 92vw);
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: #e8f4ff;
  background: rgba(12, 18, 28, 0.97);
  border: 1px solid rgba(77, 232, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  white-space: normal;
}
.tk50-metric.tk50-has-tip[data-tip]::after {
  left: auto;
  right: 0;
}
.tk50-kpi.tk50-has-tip[data-tip]::after {
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.tk50-has-tip[data-tip]:hover::after,
.tk50-has-tip[data-tip]:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tk50-kpi.tk50-has-tip[data-tip]:hover::after {
  transform: translateX(-50%) translateY(0);
}
.tk50-gloss-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(77, 232, 255, 0.35);
  border-radius: 50%;
  vertical-align: super;
  line-height: 1;
}
.tk50-gloss-link:hover {
  background: rgba(77, 232, 255, 0.15);
}
.tk50-guide {
  margin: 0 0 0.85rem;
  border: 1px solid rgba(77, 232, 255, 0.2);
  background: rgba(77, 232, 255, 0.04);
}
.tk50-guide-summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  list-style: none;
}
.tk50-guide-summary::-webkit-details-marker { display: none; }
.tk50-guide-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}
.tk50-guide-intro {
  margin: 0 0.75rem 0.65rem;
  font-size: 0.84rem;
}
.tk50-ref-panel {
  margin: 0 0.75rem 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tk50-ref-panel h4 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}
.tk50-ref-block {
  margin-bottom: 0.75rem;
}
.tk50-ref-block h5 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--accent);
}
.tk50-ref-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
}
.tk50-ref-table th {
  text-align: left;
  padding: 0.2rem 0.5rem 0.2rem 0;
  color: #b8e8ff;
  white-space: nowrap;
  font-weight: 600;
}
.tk50-ref-table td {
  padding: 0.2rem 0;
  color: var(--muted);
}
.tk50-ref-line {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
}

/* Grafico PF squadre — interattivo */
.teams-pf-chart-wrap {
  border: 1px solid rgba(77, 232, 255, 0.18);
  background: #000;
  padding: 0;
  overflow: hidden;
}
.teams-pf-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1rem 0.35rem;
}
.teams-pf-chart-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.teams-pf-hint {
  margin: 0;
  font-size: 0.76rem;
  max-width: 28rem;
}
.teams-pf-header-slot {
  padding: 0 0.75rem 0.65rem;
}
.teams-pf-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .teams-pf-header { grid-template-columns: 1fr; }
}
.teams-pf-compare-strip {
  margin-top: 0.85rem;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.teams-pf-insight {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}
.teams-pf-avg-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.teams-pf-avg-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
}
.teams-pf-avg-name small {
  color: var(--muted);
  font-weight: 400;
}
.teams-pf-avg-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.teams-pf-avg-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
  transition: width 0.5s ease;
}
.teams-pf-avg-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.teams-pf-avg-bench .teams-pf-avg-fill {
  background: rgba(255, 255, 255, 0.35);
}
.teams-pf-axis-hint {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.teams-pf-stat-dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0;
}
.teams-pf-stat-dl div {
  text-align: center;
  padding: 0.35rem 0.2rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}
.teams-pf-stat-dl dt {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
}
.teams-pf-stat-dl dd {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.teams-pf-team-card {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--team-color, var(--accent));
}
.teams-pf-team-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}
.teams-pf-team-head img,
.teams-pf-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}
.teams-pf-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--team-color, var(--accent));
}
.teams-pf-role {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.teams-pf-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.5rem;
  font-size: 0.78rem;
}
.teams-pf-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}
.teams-pf-kpis b {
  font-variant-numeric: tabular-nums;
  color: #e8f4ff;
}
.teams-pf-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.5rem;
}
.teams-pf-vs-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.teams-pf-vs-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.teams-pf-bench {
  font-size: 0.72rem;
  color: var(--muted);
}
.teams-pf-plot-host {
  min-height: 400px;
  padding: 0 0.35rem;
}
.teams-pf-plot {
  width: 100%;
  min-height: 400px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.teams-pf-plot-ready {
  opacity: 1;
  transform: translateY(0);
}
.teams-pf-legend-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.5rem 1rem 0.85rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.teams-pf-legend-keys .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.teams-pf-legend-keys .dot-win { background: #3fb950; }
.teams-pf-legend-keys .dot-loss { background: #ff6b6b; }
.h2h-q-win { color: #3fb950; font-weight: 700; }
.h2h-q-tie { color: var(--muted); }
.h2h-simple-table th,
.h2h-simple-table td {
  text-align: left;
  font-size: 0.85rem;
  vertical-align: top;
  padding: 0.45rem 0.5rem;
}
.h2h-simple-table th:nth-child(3),
.h2h-simple-table th:nth-child(4),
.h2h-simple-table td:nth-child(3),
.h2h-simple-table td:nth-child(4) {
  text-align: center;
}
.h2h-match {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.h2h-score {
  display: block;
  font-weight: 700;
}
.h2h-q-mini {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.team-games-collapsed summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.15rem 0;
}
.team-games-collapsed summary:hover { color: var(--accent); }
.team-games-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
.team-games-split h5 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.games-compact-table {
  width: 100%;
  font-size: 0.82rem;
}
.games-compact-table th,
.games-compact-table td {
  padding: 0.3rem 0.35rem;
  text-align: left;
}
.games-compact-table .res-win { color: #3fb950; font-weight: 700; }
.games-compact-table .res-loss { color: #ff6b6b; font-weight: 700; }
@media (max-width: 640px) {
  .team-games-split { grid-template-columns: 1fr; }
}
.h2h-quarters-table th,
.h2h-quarters-table td {
  text-align: center;
  white-space: nowrap;
  font-size: 0.88rem;
}
.h2h-quarters-table td.hint { text-align: left; font-size: 0.82rem; }
.table-scroll-x { overflow-x: auto; }

/* Scenario minuti */
.min-sc-card {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.06) 0%, var(--bg2) 50%);
}
.min-sc-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.min-sc-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.min-sc-row {
  display: grid;
  grid-template-columns: 5.5rem 5rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 640px) {
  .min-sc-row { grid-template-columns: 1fr; }
}
.min-sc-row-base {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.min-sc-delta-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #7dd3fc;
}
.min-sc-delta-lbl {
  font-size: 0.68rem;
  color: var(--muted);
}
.min-sc-mins {
  font-size: 0.82rem;
  color: var(--muted);
}
.min-sc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.min-sc-stat {
  display: grid;
  grid-template-columns: 1.6rem 1fr 2.2rem;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.72rem;
}
.min-sc-stat-lbl { color: var(--muted); font-weight: 600; }
.min-sc-bar-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.min-sc-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  min-width: 2px;
}
.min-sc-stat-val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.toolkit50-table { font-size: 0.78rem; max-height: 420px; overflow: auto; display: block; }
.toolkit50-leans { font-size: 0.88rem; margin: 0.5rem 0; }

/* SGP Wizard */
.sgp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.sgp-warn { color: #ffb347; font-size: 0.88rem; }
.sgp-verdict { color: #2ecc71; font-weight: 600; }
.sgp-legs-table { font-size: 0.85rem; }

.reconcile-banner {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.reconcile-ok { background: rgba(46, 204, 113, 0.08); color: #9fdfb8; }
.reconcile-warn { background: rgba(255, 179, 71, 0.12); color: #ffd9a0; }

/* WNBA Value dashboard */
.wnba-tabs { margin-bottom: 0.75rem; gap: 0.35rem; }
.wnba-tab.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.wnba-panel.hidden { display: none; }
.wnba-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 1rem;
}
.wnba-meta-chip strong { color: var(--text); }
.wnba-meta-live { color: var(--ok); }
.wnba-syndicate-section {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(0, 212, 170, 0.08) 100%);
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.12);
}
.wnba-syndicate-section.hidden { display: none; }
.wnba-syndicate-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #ffd54f;
  text-transform: uppercase;
}
.picks-grid-syndicate .value-pick-card,
.picks-grid-syndicate .daily-pick-card {
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.15);
}
.matrix-row-syndicate { background: rgba(255, 193, 7, 0.08); }
.wnba-fraction-elite {
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(0, 212, 170, 0.06));
}
.pick-rank-tag-eplay24 {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0d1b2a;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
}
.wnba-fraction-match { margin-bottom: 1.25rem; }
.wnba-fraction-match h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.wnba-picks-grid { margin-top: 0.5rem; }
.wnba-pick-card {
  border-left: 3px solid var(--border);
}
.wnba-pick-card.wnba-edge-high { border-left-color: var(--ok); }
.wnba-pick-card.wnba-edge-mid { border-left-color: #ffb347; }
.wnba-pick-card.wnba-edge-low { border-left-color: var(--muted); }
.wnba-pick-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.wnba-player-name {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.15rem;
}
.wnba-vendor {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.wnba-side-pill { font-weight: 700; font-size: 0.72rem; }
.wnba-market-block {
  text-align: right;
  min-width: 7rem;
}
.wnba-line { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.wnba-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.wnba-kpi-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wnba-kpi-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.15rem 0 0.35rem;
}
.wnba-edge-val { color: var(--ok); }
.wnba-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.wnba-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

/* Alert Value — card + grafici */
.value-alerts-grid .value-alert-card {
  min-width: 320px;
}
.vac-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.vac-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.vac-pronostic {
  text-align: right;
  flex-shrink: 0;
}
.vac-side {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-bottom: 0.2rem;
}
.vac-side-over { background: #3fb95033; color: var(--ok); }
.vac-side-under { background: #ff858533; color: var(--danger); }
.vac-stat {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.vac-line {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.vac-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.vac-kpi {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
}
.vac-kpi span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.vac-kpi strong {
  font-size: 0.95rem;
  color: var(--text);
}
.kpi-edge-high strong { color: var(--ok); }
.kpi-edge-mid strong { color: var(--orange); }
.kpi-edge-low strong { color: var(--muted); }
.vac-kpi.rel-alta strong { color: var(--ok); }
.vac-kpi.rel-media strong { color: var(--orange); }
.vac-kpi.rel-bassa strong { color: var(--danger); }
.vac-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.vac-chart-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.35rem 0.15rem;
  height: 108px;
  position: relative;
}
.vac-chart-box canvas {
  width: 100% !important;
  height: 88px !important;
}
.vac-chart-label {
  display: block;
  text-align: center;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.vac-signal {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0.25rem 0;
}
.vac-book {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.vac-story {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(59, 158, 255, 0.06));
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin: 0.5rem 0 0.45rem;
}
.vac-story-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.vac-story p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
@media (max-width: 520px) {
  .vac-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .vac-charts { grid-template-columns: 1fr; }
  .vac-chart-box { height: 120px; }
}
.ool-badge {
  font-size: 0.68rem;
  background: var(--bg3);
  border-color: var(--border);
  color: var(--text);
  animation: ool-badge-in 0.45s ease-out both;
}
.badge-logistic-spot {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(147, 112, 219, 0.55);
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.22), rgba(77, 232, 255, 0.1));
  color: #d4b8ff;
}
.badge-bayes {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.12));
  color: #7dd3fc;
}
.daily-bayes-block {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.vac-exception-note {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.4;
  border-left: 3px solid #9370db;
  background: rgba(147, 112, 219, 0.08);
  color: #e8dcff;
}
.ool-tier-out_of_lines {
  border: 1px solid rgba(255, 133, 133, 0.45);
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
}
.ool-code-EarlyFoulTrouble { border-color: #ff5050; box-shadow: 0 0 12px #ff505044; }
.ool-code-NewDadBoost { border-color: #ffd700; background: rgba(255, 215, 0, 0.12); color: #ffe566; }
.ool-code-AltitudeBackgroundShock { border-color: #3b9eff; background: rgba(59, 158, 255, 0.12); color: #9ecbff; }
.ool-code-RimProtectionVacuum { border-color: #00d4aa; background: rgba(0, 212, 170, 0.1); }
.pick-card-whale-pulse {
  animation: whale-glow 2.4s ease-in-out infinite;
  border-left-width: 5px;
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(90deg, #ffd700, #00d4aa, #3b9eff, #ffd700) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: whale-glow 2.4s ease-in-out infinite, whale-border 4s linear infinite;
}
@keyframes whale-border {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 200% 0; }
}
.vac-charts-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .vac-charts-4 { grid-template-columns: repeat(2, 1fr); } }
.vac-terminal {
  background: #0d1117;
  border-color: #30363d;
  font-family: ui-monospace, "Cascadia Code", monospace;
}
.vac-terminal p { color: #c9d1d9; font-size: 0.82rem; }
.kelly-optimizer-card { border-color: rgba(0, 212, 170, 0.35); }
.kelly-summary { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.vac-kelly { font-size: 0.8rem; color: var(--accent); margin: 0.35rem 0; }
.matchup-clash { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.5rem 0; }
.mc-col { background: var(--bg); border-radius: 8px; padding: 0.45rem; font-size: 0.72rem; }
.mc-title { color: var(--muted); display: block; margin-bottom: 0.25rem; }
.mc-bar { margin-bottom: 0.25rem; }
.mc-fill { height: 4px; background: linear-gradient(90deg, #00d4aa, #3b9eff); border-radius: 4px; }
.mc-fill-def { background: linear-gradient(90deg, #ff5050, #ff9f40); }
.mc-pulse { animation: mc-pulse 1.2s ease-in-out infinite; }
@keyframes mc-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px #ff5050; }
}
.auc-ring {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.35rem;
}
@keyframes whale-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 8px 28px #00d4aa22; }
  50% { box-shadow: 0 0 0 2px var(--accent), 0 12px 36px #00d4aa44; }
}
@keyframes ool-badge-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.vac-pred {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.vac-pred strong { color: var(--accent); }
.admin-ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.admin-metric {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
}
.admin-metric span { display: block; color: var(--muted); margin-bottom: 0.15rem; }
.admin-metric strong { font-size: 0.95rem; color: var(--accent); }

.hint { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.stack.small { font-size: 0.85rem; }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  overflow: auto;
  font-size: 0.8rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  max-height: 420px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.code-block.small { max-height: 220px; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.data th, table.data td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg2);
}
table.data tr:hover td { background: var(--bg3); }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Mobile */
.nav-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.65rem 0.75rem 0.2rem;
  margin-top: 0.25rem;
}
.nav-group-label.admin-only.hidden,
.side-nav a.admin-only.hidden { display: none !important; }

.main > .view.view-active {
  position: relative;
  z-index: 1;
}

.guide-body { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.guide-body h4 { color: var(--accent); margin: 1rem 0 0.35rem; }
.toolkit-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.toolkit-tabs .btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* Ricerca giocatori + dashboard analisi */
.search-wrap { position: relative; min-width: 220px; }
.search-field { flex: 1 1 240px; }
.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 12px 32px #0009;
}
.search-dropdown li {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.search-dropdown li:hover { background: var(--accent-dim); }
.search-dropdown li.is-active {
  background: var(--accent-dim);
  border-left: 2px solid var(--accent);
}
.search-dropdown li strong { display: block; color: var(--text); }
.search-dropdown li small { color: var(--muted); font-size: 0.78rem; }
.search-empty { color: var(--muted); cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .basketball-bounce .ball {
    animation: none;
  }
  body.route-switching .main > .view[data-route].view-active {
    animation: none;
  }
}

.analysis-dashboard { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.dash-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.dash-header h3 { margin: 0; font-size: 1.35rem; color: var(--accent); }
.next-game-card {
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 200px;
}
.next-game-card .label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.next-game-card .value { font-weight: 700; font-size: 1rem; }

.verdict-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.verdict-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pill-ok { background: #3fb95033; color: var(--ok); border: 1px solid #3fb95055; }
.pill-warn { background: #ff858533; color: var(--danger); border: 1px solid #ff858555; }
.pill-neutral { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); }

.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.chart-card canvas { max-height: 220px; }
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}
.insight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
}
.insight-card .label { color: var(--muted); font-size: 0.72rem; }
.insight-card .value { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.insight-card.bounce { border-color: #ff9f4055; }
.symbiosis-banner { margin: 0 0 0.75rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--accent); background: rgba(0, 212, 170, 0.08); }
.symbiosis-panel { border-color: rgba(0, 212, 170, 0.35); }
.symbiosis-summary { color: var(--accent); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.symbiosis-card.compact { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
.ai-matchup .metrics-row { margin-bottom: 0.75rem; }
.tag { font-size: 0.68rem; text-transform: uppercase; padding: 0.1rem 0.4rem; border-radius: 4px; margin-right: 0.35rem; }
.tag-alta { background: #3fb95033; color: var(--ok); }
.tag-media { background: #ff9f4033; color: var(--orange); }
.tag-leggera { background: var(--bg3); color: var(--muted); }

.stat-list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.stat-list li { margin-bottom: 0.35rem; }
.raw-json-toggle { margin-top: 1rem; }
.raw-json-toggle summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.code-block.small { font-size: 0.72rem; max-height: 240px; overflow: auto; }

/* ── Home hero ── */
#view-home {
  max-width: 1100px;
  margin: 0 auto;
}
.home-hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.25rem 2.75rem;
  margin: -0.5rem -0.25rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--hero-gradient), #000;
  border: 1px solid rgba(77, 232, 255, 0.12);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(77, 232, 255, 0.03) 2px,
    rgba(77, 232, 255, 0.03) 4px
  );
  pointer-events: none;
}
.hero-logo {
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  position: relative;
  filter: drop-shadow(0 0 28px var(--accent-glow));
}
.hero-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  position: relative;
}
.hero-cta .btn-primary {
  box-shadow: 0 0 24px var(--accent-dim), 0 4px 20px rgba(0, 0, 0, 0.4);
}
.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}
.pillar-card {
  background: #050505;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.pillar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--whale-blue), var(--accent));
}
.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent-bright);
}
.pillar-card .pillar-sub {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.auc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.auc-league-block {
  margin-top: 0.75rem;
}
.auc-league-block:first-of-type {
  margin-top: 0;
}
.auc-league-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.auc-cell {
  text-align: center;
  padding: 0.65rem 0.4rem;
  background: var(--bg3);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.auc-cell .auc-stat {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.auc-cell strong {
  font-size: 1.35rem;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-dim);
}
.auc-cell small {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.ool-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ool-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text);
}
.ool-item span.ool-ico {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.ool-item em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}
.symbiosis-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.symbiosis-step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.symbiosis-step .step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(77, 232, 255, 0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.symbiosis-step p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.symbiosis-step strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}
.home-foot-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.home-foot-hint a {
  color: var(--accent);
}
@media (max-width: 900px) {
  .home-pillars {
    grid-template-columns: 1fr;
  }
}

/* Admin diagnostics (ex home tecnica) */
.reliability-card { margin-bottom: 1rem; }
.reliability-dashboard { font-size: 0.9rem; }
.diagnostics-stack .card {
  margin-bottom: 1rem;
}
.rel-grade-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.rel-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid var(--border);
}
.rel-grade-a { background: #3fb95033; color: var(--ok); border-color: var(--ok); }
.rel-grade-b { background: #00d4aa33; color: var(--accent); border-color: var(--accent); }
.rel-grade-c { background: #ff9f4033; color: var(--orange); border-color: var(--orange); }
.rel-grade-d { background: #ff858533; color: var(--danger); border-color: var(--danger); }
.rel-grade-label { color: var(--muted); font-size: 0.85rem; }
.rel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.rel-stat-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.rel-stat-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.rel-list, .rel-recs { margin: 0.25rem 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.82rem; }
.rel-recs li { margin-bottom: 0.35rem; }

@media (max-width: 768px) {
  .sidebar-toggle-btn { display: none; }
  .sidebar-pin-btn { display: none; }
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease, opacity 0.25s;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.9);
    width: min(92vw, var(--sidebar-w));
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .sidebar.open {
    transform: translateX(0);
    opacity: 1;
    width: min(92vw, var(--sidebar-w));
    pointer-events: auto;
  }
  .app-shell.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    width: min(92vw, var(--sidebar-w));
  }
  .app-shell.sidebar-collapsed .sidebar.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-btn { display: inline-flex; }
  .sidebar-reopen-btn { display: none !important; }
}

/* ── Section polish (all pages) ── */
.view-intro {
  margin-bottom: 1rem;
}
.view-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}
.view-heading {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.25;
}
.view-lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 64rem;
}
.tool-panel {
  background: linear-gradient(165deg, rgba(17, 26, 38, 0.95), rgba(8, 12, 20, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
}
.polish-panel {
  background: linear-gradient(165deg, rgba(17, 26, 38, 0.95), rgba(8, 12, 20, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}
.kpi-tile {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}
.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}
.kpi-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  color: var(--accent-bright);
  line-height: 1.15;
}
.kpi-sub {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.dual-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.polish-card {
  background: linear-gradient(165deg, rgba(17, 26, 38, 0.95), rgba(8, 12, 20, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.polish-card h4 {
  margin: 0 0 0.7rem;
}
.polish-h4 {
  margin: 0.9rem 0 0.45rem;
  color: var(--accent-bright);
  font-size: 0.9rem;
}
.polish-list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.polish-list li { margin-bottom: 0.28rem; }
.team-chip-grid {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 0.78rem;
}
.team-chip strong { color: var(--accent); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.guide-card {
  background: linear-gradient(165deg, rgba(17, 26, 38, 0.95), rgba(8, 12, 20, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  position: relative;
}
.guide-card h4 {
  margin: 0.1rem 0 0.45rem;
}
.guide-card p {
  margin: 0;
  color: var(--muted);
}
.guide-num {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(77, 232, 255, 0.35);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}
.guide-foot { margin-top: 0.75rem; }
.polish-raw { margin-top: 0.75rem; }
.bk-kpi { margin-bottom: 0.8rem; }

/* Truth Layer — home KPI + scorecard */
.home-truth-strip {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(77, 232, 255, 0.22);
  background: linear-gradient(135deg, rgba(42, 124, 255, 0.08), rgba(77, 232, 255, 0.04));
}
.truth-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.truth-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.truth-kpi-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.truth-kpi strong { font-size: 1.15rem; color: var(--accent); }
.truth-kpi small { font-size: 0.7rem; color: var(--muted); }
.home-truth-note { margin: 0.6rem 0 0; font-size: 0.82rem; }
.truth-explainer {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.truth-explainer p { margin: 0.35rem 0; font-size: 0.85rem; color: var(--muted); }
.card-inset { }

/* Pannello qualità pick */
.pick-quality-panel {
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(77, 232, 255, 0.2);
  background: rgba(5, 12, 24, 0.65);
  font-size: 0.8rem;
}
.pick-quality-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.pick-quality-panel summary::-webkit-details-marker { display: none; }
.pq-tier {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}
.pq-tier-A { background: rgba(0, 212, 170, 0.2); color: #00d4aa; }
.pq-tier-B { background: rgba(77, 232, 255, 0.15); color: var(--accent); }
.pq-tier-C { background: rgba(255, 179, 71, 0.15); color: #ffb347; }
.pq-tier-D { background: rgba(255, 133, 133, 0.12); color: #ff8585; }
.pq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem 0.65rem;
  margin-top: 0.55rem;
}
.pq-grid span { display: block; font-size: 0.68rem; color: var(--muted); }
.pq-grid strong { font-size: 0.82rem; }
.pq-edge-adj { color: var(--accent); }
.pq-flag, .pq-notes, .pq-move, .pq-minutes, .pq-injury { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--muted); }
.pq-injury strong { color: #ffb347; }
.pq-minutes strong { color: var(--accent); }
.outcome-badge {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  margin-left: 0.35rem;
}
.outcome-hit { background: rgba(0, 212, 170, 0.2); color: #00d4aa; }
.outcome-miss { background: rgba(255, 133, 133, 0.15); color: #ff8585; }
.outcome-pending { background: rgba(139, 163, 188, 0.15); color: var(--muted); }

/* Engine Cockpit (admin) */
.engine-cockpit {
  margin: 0 0 1rem;
  border: 1px solid rgba(77, 232, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.95), rgba(4, 10, 20, 0.98));
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  overflow: hidden;
}
.engine-cockpit-header {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(77, 232, 255, 0.2);
  color: #4de8ff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.engine-cockpit-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}
.engine-cockpit-block {
  padding: 0.65rem 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.engine-cockpit-block h4 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.engine-cockpit-block ul {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
}
.engine-cockpit-block li { margin: 0.2rem 0; color: var(--text); }
.engine-cockpit-block li::before { content: "• "; color: #00d4aa; }
.engine-cockpit .status-on { color: #00d4aa; }
.engine-cockpit .status-off { color: #ff8585; }
.engine-cockpit .status-warn { color: #ffb347; }
.engine-cockpit-preset-bar {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(77, 232, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.82rem;
}
.engine-cockpit-preset-bar label { color: var(--muted); margin-right: 0.25rem; }
.engine-cockpit-preset-bar select {
  min-width: 12rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(77, 232, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}
.engine-cockpit-preset-bar button {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 170, 0.5);
  background: rgba(0, 212, 170, 0.15);
  color: #00d4aa;
  cursor: pointer;
  font-weight: 600;
}
.engine-cockpit-preset-bar button:disabled { opacity: 0.5; cursor: wait; }
.engine-cockpit-preset-active {
  font-size: 0.75rem;
  color: var(--muted);
}
.engine-cockpit-preset-active strong { color: #4de8ff; }
.engine-cockpit-preset-msg {
  width: 100%;
  font-size: 0.72rem;
  margin: 0.15rem 0 0;
}
.engine-cockpit-preset-msg.warn { color: #ffb347; }
.engine-cockpit-preset-msg.ok { color: #00d4aa; }

.engine-cockpit-seed-log {
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  max-height: 72px;
  overflow: auto;
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}

/* AI Reasoning Core (pickup cyberpunk) */
.ai-reasoning-core {
  margin-top: 0.55rem;
  border: 1px solid rgba(77, 232, 255, 0.35);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(4, 10, 20, 0.72),
    rgba(0, 0, 0, 0.42)
  );
  box-shadow: 0 0 18px rgba(77, 232, 255, 0.14);
  overflow: hidden;
}
.ai-reasoning-core > summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  color: #4de8ff;
  font-weight: 800;
  letter-spacing: 0.02em;
  list-style: none;
  border-bottom: 1px solid rgba(77, 232, 255, 0.16);
}
.ai-reasoning-core > summary::-webkit-details-marker {
  display: none;
}
.ai-core-body {
  padding: 0.65rem 0.75rem 0.75rem;
}
.ai-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.55rem;
}
.ai-core-kpi h6 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ai-core-kpi .ai-core-val {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.ai-core-kpi .ai-core-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.ai-core-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(77, 232, 255, 0.12);
  border: 1px solid rgba(77, 232, 255, 0.18);
  overflow: hidden;
  margin-top: 0.4rem;
}
.ai-core-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(77, 232, 255, 0.85), rgba(0, 212, 170, 0.8));
  box-shadow: 0 0 14px rgba(77, 232, 255, 0.22);
  border-radius: 999px;
}
.ai-core-flag {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid rgba(77, 232, 255, 0.25);
  color: #4de8ff;
  background: rgba(77, 232, 255, 0.08);
}
.ai-core-flag.warn {
  border-color: rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.12);
  color: #ffb347;
}

.slippage-wrap {
  margin: 0.45rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.slippage-be {
  font-size: 0.72rem;
  color: var(--muted);
}
.slippage-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.slippage-badge.slippage-value {
  color: #4de8ff;
  background: rgba(77, 232, 255, 0.16);
  border-color: rgba(77, 232, 255, 0.4);
  box-shadow: 0 0 14px rgba(77, 232, 255, 0.22);
}
.slippage-badge.slippage-critical {
  color: #ff4d9f;
  background: rgba(255, 77, 159, 0.2);
  border-color: rgba(255, 77, 159, 0.5);
  box-shadow: 0 0 14px rgba(255, 77, 159, 0.28);
}

.fatigue-led-panel {
  margin-top: 0.45rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(77, 232, 255, 0.24);
  background: rgba(4, 12, 24, 0.58);
}
.fatigue-led-title {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.fatigue-led-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.fatigue-led {
  text-align: center;
}
.fatigue-led-bar {
  width: 13px;
  height: 42px;
  margin: 0 auto 0.2rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4), 0 0 9px rgba(77, 232, 255, 0.25);
}
.fatigue-led-label {
  font-size: 0.67rem;
  color: var(--muted);
}

.shot-chart-consistency { display: grid; gap: 0.35rem; }
.shot-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; }
.shot-chart-score { color: #ff8a6b; font-weight: 800; }
.shot-court-mini {
  position: relative;
  height: 88px;
  border: 1px solid rgba(77, 232, 255, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.shot-court-mini i { position: absolute; opacity: 0.92; }
.shot-court-mini .zone-paint { inset: 24px 34% 8px 34%; border-radius: 8px; }
.shot-court-mini .zone-mid { inset: 12px 20% 8px 20%; border-radius: 42% 42% 12px 12px; opacity: 0.5; }
.shot-court-mini .zone-corner-l { inset: 46px 0 8px 0; width: 18%; border-radius: 0 8px 0 0; opacity: 0.78; }
.shot-court-mini .zone-corner-r { inset: 46px 0 8px auto; width: 18%; border-radius: 8px 0 0 0; opacity: 0.78; }
.shot-court-mini .zone-arc { inset: 0 16% 34px 16%; border-radius: 0 0 48% 48%; opacity: 0.45; }
.shot-chart-legend { font-size: 0.66rem; color: var(--muted); }

.clutch-ring-wrap { text-align: center; }
.clutch-ring {
  --clutch-deg: 120deg;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 0.25rem;
  display: grid;
  place-items: center;
  background: conic-gradient(#ff4d9f var(--clutch-deg), rgba(77, 232, 255, 0.16) 0);
  box-shadow: 0 0 14px rgba(255, 77, 159, 0.25);
}
.clutch-ring span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #09111d;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.clutch-ring-label { font-size: 0.68rem; color: var(--muted); }

.def-pace-impact { margin-top: 0.35rem; }
.def-pace-title { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.def-pace-gauge {
  margin-top: 0.2rem;
  width: 120px;
  height: 62px;
  border-radius: 62px 62px 0 0;
  border: 1px solid rgba(77, 232, 255, 0.25);
  background: linear-gradient(90deg, rgba(255, 77, 159, 0.26), rgba(255, 196, 77, 0.26), rgba(77, 232, 255, 0.2));
  position: relative;
  overflow: hidden;
}
.def-pace-gauge i {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 52px;
  background: #fff;
  transform-origin: bottom center;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.55);
}
.def-pace-meta { font-size: 0.66rem; color: var(--muted); margin-top: 0.2rem; }

.vac-match-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ref-whistle-btn {
  border: 1px solid rgba(77, 232, 255, 0.35);
  background: rgba(77, 232, 255, 0.1);
  color: #4de8ff;
  border-radius: 8px;
  font-size: 0.72rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.35rem 0.2rem;
}
.ref-bias-modal { max-width: 520px; }
.ref-bias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.ref-bias-card {
  border: 1px solid rgba(77, 232, 255, 0.25);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: rgba(4, 10, 20, 0.65);
}
.ref-bias-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
}
.ref-bias-badge.heavy { color: #ff9ea0; background: rgba(255, 107, 107, 0.15); border: 1px solid rgba(255,107,107,0.35); }
.ref-bias-badge.lenient { color: #9fe7ff; background: rgba(77, 232, 255, 0.14); border: 1px solid rgba(77,232,255,0.35); }

.diag-feature-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0.5rem 0;
}
.diag-feature-toolbar input {
  min-width: 220px;
  border: 1px solid rgba(77, 232, 255, 0.35);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.diag-sort-btn {
  all: unset;
  cursor: pointer;
  color: #4de8ff;
  font-weight: 700;
}
.diag-feature-table td { vertical-align: middle; }
.diag-imp-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.diag-imp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(77, 232, 255, 0.12);
  border: 1px solid rgba(77, 232, 255, 0.2);
  overflow: hidden;
}
.diag-imp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4de8ff, #00d4aa);
}

.admin-diag-lock {
  border: 1px solid rgba(255, 77, 159, 0.35);
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(24, 6, 20, 0.75), rgba(6, 10, 24, 0.85));
}
.admin-diag-lock input {
  min-width: 220px;
  border: 1px solid rgba(77, 232, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.vps-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.6rem;
}
.vps-gauge {
  text-align: center;
}
.vps-gauge span { display: block; font-size: 0.7rem; color: var(--muted); }
.vps-gauge strong { font-size: 0.8rem; }

@media (max-width: 900px) {
  .ai-core-grid {
    grid-template-columns: 1fr;
  }
  .vps-health-grid {
    grid-template-columns: 1fr;
  }
}

/* The Lab */
.lab-root { display: flex; flex-direction: column; gap: 1rem; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.lab-card.lab-wide { grid-column: 1 / -1; }
.lab-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.75rem 0; }
.lab-kpis span { display: block; font-size: 0.72rem; color: var(--muted); }
.lab-table { font-size: 0.82rem; }
.lab-up td { color: #00d4aa; }
.lab-down td { color: #ff8585; }
.lab-sharp-money td {
  background: rgba(255, 241, 77, 0.16);
  animation: sharpBlink 1.1s ease-in-out infinite;
}
.lab-sharp-tag {
  color: #fff57a;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 241, 77, 0.72);
}
@keyframes sharpBlink {
  0%, 100% { box-shadow: inset 0 0 0 rgba(255,241,77,0.0); }
  50% { box-shadow: inset 0 0 0 999px rgba(255,241,77,0.08); }
}
.critical-drift-banner {
  border: 1px solid rgba(255, 77, 159, 0.75);
  background: rgba(70, 8, 30, 0.82);
  color: #ff6fae;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 0 18px rgba(255, 77, 159, 0.34);
}
.critical-drift-banner .btn { white-space: nowrap; }
.rollback-table td { font-size: 0.8rem; }
.table-scroll { max-height: 320px; overflow: auto; }
.shap-chart-wrap { margin-top: 0.75rem; }
.shap-row { display: grid; grid-template-columns: 8rem 1fr 3.5rem; gap: 0.5rem; align-items: center; font-size: 0.78rem; margin: 0.2rem 0; }
.shap-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.shap-bar i { display: block; height: 100%; background: linear-gradient(90deg, #00d4aa, #4ecdc4); border-radius: 4px; }
.shap-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shap-val { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .truth-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pq-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dual-panel,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* Daily pick — punteggi /100 */
.daily-verdict {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.daily-verdict-dual {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.daily-verdict-score {
  width: 4.2rem;
  text-align: center;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  line-height: 1.1;
}
.daily-verdict-score span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}
.daily-verdict-score small {
  font-size: 0.62rem;
  color: var(--muted);
}
.daily-verdict-sw {
  border-color: rgba(59, 158, 255, 0.45);
  background: rgba(59, 158, 255, 0.08);
}
.daily-verdict-sw span { color: #7ec8ff; }
.daily-verdict-ai {
  border-color: rgba(0, 212, 170, 0.45);
  background: rgba(0, 212, 170, 0.08);
}
.daily-verdict-ai span { color: var(--accent); }
.daily-verdict-rank {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.35rem;
}
.pick-rank-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  margin: -0.25rem -0.25rem 0.65rem;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
}
.pick-rank-banner-whale {
  border-color: rgba(0, 212, 170, 0.55);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.14), rgba(0, 212, 170, 0.02) 55%);
  box-shadow: 0 0 18px rgba(0, 212, 170, 0.12);
}
.pick-rank-gold { border-bottom-color: #ffd700; }
.pick-rank-silver { border-bottom-color: #c0c0c0; }
.pick-rank-bronze { border-bottom-color: #cd7f32; }
.pick-rank-pos {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--muted);
  min-width: 2.2rem;
  text-align: center;
}
.pick-rank-gold .pick-rank-pos { color: #ffd700; }
.pick-rank-silver .pick-rank-pos { color: #c0c0c0; }
.pick-rank-bronze .pick-rank-pos { color: #cd7f32; }
.pick-rank-scores {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.pick-score-box {
  min-width: 5.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}
.pick-score-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pick-score-val-wrap {
  line-height: 1.05;
  margin: 0.1rem 0;
}
.pick-score-val {
  font-size: 1.45rem;
  font-weight: 800;
}
.pick-score-max {
  font-size: 0.72rem;
  color: var(--muted);
}
.pick-score-hint {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}
.pick-score-sw.pick-score-elite { border-color: #3b9eff; background: rgba(59, 158, 255, 0.12); }
.pick-score-sw.pick-score-elite .pick-score-val { color: #7ec8ff; }
.pick-score-ai.pick-score-elite { border-color: var(--accent); background: rgba(0, 212, 170, 0.12); }
.pick-score-ai.pick-score-elite .pick-score-val { color: var(--accent); }
.pick-score-high .pick-score-val { color: #9be7ff; }
.pick-score-mid .pick-score-val { color: #ffcc80; }
.pick-score-low .pick-score-val { color: var(--muted); }
.pick-rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.pick-rank-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.pick-rank-tag-whale {
  background: rgba(0, 212, 170, 0.18);
  border-color: rgba(0, 212, 170, 0.45);
  color: var(--accent);
}
.pick-rank-tag-value {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.35);
  color: #ffd700;
}
.pick-rank-banner-syndicate {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.18);
}
.pick-rank-tag-syndicate {
  background: rgba(255, 193, 7, 0.22);
  color: #ffd54f;
  border: 1px solid rgba(255, 215, 0, 0.45);
}
  color: var(--muted);
}
.pick-card-rank-1 {
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35), 0 10px 32px rgba(255, 215, 0, 0.08);
}
.pick-card-rank-2 {
  box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.3), 0 8px 24px rgba(192, 192, 192, 0.06);
}
.pick-card-rank-3 {
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.3), 0 8px 24px rgba(205, 127, 50, 0.06);
}
@media (max-width: 640px) {
  .pick-rank-banner {
    grid-template-columns: auto 1fr;
  }
  .pick-rank-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.daily-verdict-ring {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  background: rgba(0, 212, 170, 0.08);
}
.daily-verdict-ring span {
  font-size: 1.35rem;
  font-weight: 700;
}
.daily-verdict-ring small {
  font-size: 0.65rem;
  color: var(--muted);
}
.daily-verdict-meta p {
  margin: 0.2rem 0;
  font-size: 0.88rem;
}
.daily-verdict-sub {
  color: var(--muted);
  font-size: 0.8rem !important;
}
.daily-metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 320px);
}
.daily-score-bar {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.daily-score-label {
  color: var(--muted);
}
.daily-score-track {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.daily-score-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
}
.daily-score-high .daily-score-fill { background: var(--ok); }
.daily-score-mid .daily-score-fill { background: var(--orange); }
.daily-score-low .daily-score-fill { background: var(--danger); }
.daily-score-val {
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
  text-align: right;
}
.daily-model-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.daily-kelly-block {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.daily-kelly-main {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.95rem;
  color: var(--accent);
}
.daily-kelly-sub,
.daily-kelly-off,
.daily-kelly-zero {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.daily-reason-simple {
  margin: 0.5rem 0;
}
.daily-reason-lead {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text, #e6edf3);
}
.daily-reason-lead strong {
  color: var(--accent, #00d4aa);
  font-weight: 600;
}
.daily-reason-ai {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted, #8b949e);
  font-style: italic;
}
.daily-reason-detail {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}
.daily-reason-detail summary {
  cursor: pointer;
  color: var(--muted, #8b949e);
  user-select: none;
  margin-bottom: 0.35rem;
}
.daily-reason-detail[open] summary {
  margin-bottom: 0.5rem;
}
.daily-reason-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.daily-reason-list li {
  margin-bottom: 0.35rem;
}
.daily-fatigue-compact {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.daily-fatigue-compact summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* Daily multiples — doppie / triple */
.daily-multiples-section {
  margin-bottom: 1.25rem;
}
.view-intro-compact {
  margin-bottom: 0.75rem;
}
.view-intro-compact .view-heading {
  font-size: 1.15rem;
  margin: 0.15rem 0;
}
.picks-grid-multiples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.pick-card-multiple {
  border: 1px solid rgba(0, 212, 170, 0.25);
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.06), transparent 55%);
}
.mult-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.mult-quote {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.mult-combined-odd {
  font-size: 1.45rem;
  color: var(--accent);
}
.mult-legs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mult-leg {
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.mult-leg-side {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.25rem;
}
.mult-leg-odd {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.25rem;
}
.mult-leg-match {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.mult-footer {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.82rem;
}
.mult-ev.pos { color: #00d4aa; }
.mult-ev.neg { color: #ff6b6b; }
.mult-prob { color: var(--muted); }
.mult-kelly {
  width: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}
.mult-tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.15);
  color: #7ec8ff;
}
.mult-tag-sgp {
  background: rgba(255, 159, 64, 0.15);
  color: #ff9f40;
}

/* Finance Dashboard — Macro Whale Engine */
.finance-panel {
  position: relative;
  min-height: 280px;
}
.finance-toolbar {
  align-items: center;
  gap: 1rem;
}
.finance-meta {
  flex: 1;
  min-width: 0;
}
.finance-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}
.finance-loading.hidden {
  display: none;
}
.finance-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(77, 232, 255, 0.12);
  border-top-color: var(--accent);
  border-right-color: rgba(77, 232, 255, 0.45);
  animation: financeSpin 0.95s linear infinite;
  box-shadow: 0 0 24px rgba(77, 232, 255, 0.15);
}
@keyframes financeSpin {
  to { transform: rotate(360deg); }
}
.finance-loading-msg {
  max-width: 36rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.finance-content.hidden,
.finance-error.hidden {
  display: none;
}
.finance-signals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .finance-signals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .finance-signals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fx-signal-card {
  background: linear-gradient(165deg, rgba(12, 18, 28, 0.98), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(77, 232, 255, 0.14);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fx-signal-card:hover {
  border-color: rgba(77, 232, 255, 0.28);
  transform: translateY(-1px);
}
.fx-signal-error {
  border-color: rgba(255, 107, 107, 0.25);
}
.fx-signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.fx-signal-tier-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fx-tier {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fx-tier-live {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc857;
  border: 1px solid rgba(255, 193, 7, 0.28);
}
.fx-tier-satellite {
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.fx-tier-validated {
  background: rgba(77, 232, 255, 0.08);
  color: #8ecae6;
  border: 1px solid rgba(77, 232, 255, 0.2);
}
.fx-institutional {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
}
.fx-institutional-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ab;
  margin-bottom: 0.45rem;
}
.fx-institutional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
}
.fx-institutional-grid label {
  display: block;
  font-size: 0.62rem;
  color: #6a7a8a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fx-institutional-grid span {
  color: #dce8f5;
  font-weight: 600;
}
.fx-inst-regime {
  font-size: 0.72rem;
  line-height: 1.35;
}
.fx-pair {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e8f4ff;
}
.fx-dir {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.fx-dir-buy {
  background: rgba(0, 212, 170, 0.14);
  border-color: rgba(0, 212, 170, 0.45);
  color: #00d4aa;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.12);
}
.fx-dir-sell {
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.45);
  color: #ff6b6b;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.12);
}
.fx-dir-flat {
  background: rgba(120, 130, 150, 0.12);
  border-color: rgba(120, 130, 150, 0.35);
  color: #9aa8bc;
}
.fx-signal-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
}
.fx-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fx-metric-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fx-metric-value {
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f0f6fc;
}
.fx-metric-value.accent {
  color: var(--accent);
}
.fx-metric-value.warn {
  color: #ffb347;
}
.fx-signal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}
.fx-signal-err {
  margin: 0;
  font-size: 0.82rem;
  color: #ff9b9b;
  line-height: 1.45;
}
.fx-ready-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(35, 134, 54, 0.18);
  color: #3fb950;
  border: 1px solid rgba(35, 134, 54, 0.35);
}
.finance-clusters-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* FX card — risk state borders */
.fx-signal-card.fx-signal-drift {
  border-color: rgba(255, 71, 87, 0.65);
  box-shadow: 0 0 28px rgba(255, 71, 87, 0.18);
  animation: fxCardPulseDrift 2s ease-in-out infinite;
}
.fx-signal-card.fx-signal-limit {
  border-color: rgba(255, 149, 71, 0.55);
  box-shadow: 0 0 22px rgba(255, 149, 71, 0.14);
  animation: fxCardPulseLimit 2.2s ease-in-out infinite;
}
.fx-signal-card.fx-signal-active {
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.12);
}
@keyframes fxCardPulseDrift {
  0%, 100% { border-color: rgba(255, 71, 87, 0.45); box-shadow: 0 0 18px rgba(255, 71, 87, 0.1); }
  50% { border-color: rgba(255, 120, 90, 0.85); box-shadow: 0 0 32px rgba(255, 71, 87, 0.28); }
}
@keyframes fxCardPulseLimit {
  0%, 100% { border-color: rgba(255, 149, 71, 0.35); }
  50% { border-color: rgba(255, 179, 71, 0.75); box-shadow: 0 0 26px rgba(255, 149, 71, 0.22); }
}
.fx-risk-banner {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  margin: -0.25rem 0 0.15rem;
}
.fx-risk-drift {
  color: #ff6b6b;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.35);
}
.fx-risk-limit {
  color: #ffb347;
  background: rgba(255, 149, 71, 0.1);
  border: 1px solid rgba(255, 149, 71, 0.3);
}
.fx-alloc-badge-active {
  color: #00ffcc !important;
  background: rgba(0, 212, 170, 0.22) !important;
  border-color: rgba(0, 255, 204, 0.55) !important;
  box-shadow: 0 0 14px rgba(0, 212, 170, 0.35);
  animation: fxAllocGlow 1.8s ease-in-out infinite;
}
.fx-alloc-badge-limit {
  color: #ff9b7a !important;
}
@keyframes fxAllocGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 170, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 204, 0.45); }
}
.fx-alloc-active-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
}
.fx-alloc-active-glow {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #00ffcc;
  text-transform: uppercase;
}
.fx-alloc-active-detail {
  font-size: 0.72rem;
  color: #b8f0e8;
  font-variant-numeric: tabular-nums;
}

.shark-rlm-mount {
  margin-bottom: 1rem;
}
.shark-rlm-mount:empty {
  display: none;
}

/* Global Macro Analytics Matrix */
.finance-gmacro-matrix {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(77, 232, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(10, 16, 26, 0.98), rgba(6, 10, 16, 0.98));
  overflow: hidden;
}
.finance-gmacro-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.finance-gmacro-summary::-webkit-details-marker { display: none; }
.finance-gmacro-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8f4ff;
}
.finance-gmacro-hint {
  font-size: 0.78rem;
}
.finance-gmacro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.15rem 0.75rem;
}
.finance-gmacro-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #9ab4c8;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.finance-gmacro-tab:hover {
  border-color: rgba(77, 232, 255, 0.35);
  color: #dce8f5;
}
.finance-gmacro-tab.active {
  border-color: rgba(77, 232, 255, 0.55);
  background: rgba(77, 232, 255, 0.1);
  color: #4de8ff;
}
.finance-gmacro-chart-wrap {
  position: relative;
  height: 280px;
  padding: 0 1rem 1.1rem;
}
.finance-gmacro-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
}

/* Institutional Clusters Inspect */
.finance-clusters-inspect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .finance-clusters-inspect-grid {
    grid-template-columns: 1fr;
  }
}
.cluster-widget {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 0.95rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cluster-widget-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cluster-num {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6a8a9a;
}
.cluster-widget h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #e0eef8;
}
.cluster-live-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.cluster-live-levels label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a7a8a;
}
.cluster-live-levels strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: #f0f6fc;
}
.cluster-live-levels strong.pos { color: #00d4aa; }
.cluster-live-levels strong.neg { color: #ff6b6b; }
.cluster-chart-box {
  position: relative;
  width: 100%;
}
.cluster-chart-sm { height: 100px; }
.cluster-chart-md { height: 140px; }
.cluster-chart-lg { height: 160px; }
.finance-transmission-accordion {
  margin: 0.75rem 0 1rem;
  border: 1px solid rgba(77, 232, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 16, 28, 0.55);
}
.finance-transmission-accordion summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: #4de8ff;
  list-style: none;
}
.finance-transmission-accordion summary::-webkit-details-marker { display: none; }
.finance-transmission-body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #b8c8d8;
}
.finance-cluster-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 900px) {
  .finance-cluster-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.finance-cluster-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #9ab4c8;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.finance-cluster-tab.active {
  border-color: rgba(77, 232, 255, 0.45);
  background: rgba(77, 232, 255, 0.08);
  color: #f0f6fc;
}
.cluster-tab-num {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4de8ff;
}
.cluster-tab-title { font-size: 0.72rem; font-weight: 700; line-height: 1.25; }
.cluster-tab-meta { font-size: 0.62rem; color: #6a7a8a; }
.cluster-panel-head h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.cluster-primary-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 820px) {
  .cluster-primary-row { grid-template-columns: 1fr; }
}
.cluster-primary-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cluster-charts-row {
  display: grid;
  gap: 0.5rem;
}
.macro-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.macro-feature-badge {
  position: relative;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.macro-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.macro-feature-label {
  font-size: 0.64rem;
  color: #8ba3bc;
  line-height: 1.2;
}
.macro-info-btn {
  border: none;
  background: transparent;
  color: #4de8ff;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}
.macro-tip-panel {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 4px);
  width: min(280px, 90vw);
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(77, 232, 255, 0.25);
  background: rgba(6, 12, 20, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #c8d6e5;
}
.macro-tip-panel.hidden { display: none; }
.macro-doc-tip strong { display: block; margin-bottom: 0.25rem; color: #f0f6fc; }
.macro-doc-tip p { margin: 0.2rem 0; }
.macro-doc-tip em { color: #4de8ff; font-style: normal; font-weight: 600; }
.macro-feature-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.macro-feature-val {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #f0f6fc;
}
.macro-z-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.macro-z-badge.normal { background: rgba(255, 255, 255, 0.08); color: #9ab4c8; }
.macro-z-badge.elevated { background: rgba(255, 179, 71, 0.18); color: #ffc857; }
.macro-z-badge.extreme { background: rgba(255, 107, 107, 0.2); color: #ff8a8a; }
.macro-z-badge.neutral { color: #6a7a8a; }
.cluster-secondary-details summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b8c8d8;
}
.cluster-secondary-hint {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
}

/* AI Co-Pilot Desk Research */
.finance-copilot-card { margin-top: 0.85rem; }
.finance-copilot-head h3 { margin: 0 0 0.25rem; }
.finance-copilot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.finance-copilot-tab {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #9ab4c8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.finance-copilot-tab.active {
  border-color: rgba(77, 232, 255, 0.5);
  background: rgba(77, 232, 255, 0.12);
  color: #f0f6fc;
  transform: translateY(-1px);
}
.finance-copilot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .finance-copilot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .finance-copilot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.copilot-col.copilot-col-filtered-out {
  display: none !important;
  opacity: 0;
  transform: translateY(8px);
}
.copilot-col.copilot-col-enter {
  display: flex;
  animation: copilotFadeIn 0.35s ease forwards;
}
.copilot-tab-count {
  font-size: 0.58rem;
  opacity: 0.75;
  margin-left: 0.2rem;
}
.copilot-cat-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a8aa8;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes copilotFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.copilot-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(12, 18, 28, 0.95), rgba(8, 12, 20, 0.88));
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.copilot-col:hover {
  border-color: rgba(77, 232, 255, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.copilot-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.copilot-pair {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f0f6fc;
}
.copilot-shark-lamp {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.copilot-shark-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.shark-lamp-hunt .copilot-shark-dot {
  background: #ff5c5c;
  box-shadow: 0 0 12px rgba(255, 92, 92, 0.85);
  animation: sharkPulse 1.4s ease-in-out infinite;
}
.shark-lamp-accum .copilot-shark-dot {
  background: #ffc857;
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.6);
}
.shark-lamp-dist .copilot-shark-dot {
  background: #4de8ff;
  box-shadow: 0 0 8px rgba(77, 232, 255, 0.45);
}
@keyframes sharkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}
.copilot-shark-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #b8c8d8;
}
.copilot-shark-text strong { color: #f0f6fc; font-size: 0.7rem; }
.copilot-shark-state {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  color: #4de8ff;
}
.shark-lamp-hunt .copilot-shark-state { color: #ff8a8a; }
.shark-lamp-accum .copilot-shark-state { color: #ffc857; }
.copilot-liquidity-target {
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 1px dashed rgba(77, 232, 255, 0.22);
  background: rgba(77, 232, 255, 0.04);
}
.copilot-liq-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4de8ff;
  margin-bottom: 0.25rem;
}
.copilot-liq-copy,
.copilot-liq-level {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #c8d6e5;
}
.copilot-rationale {
  flex: 1;
}
.copilot-rationale-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7a8a;
  margin-bottom: 0.25rem;
}
.copilot-rationale p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #b8c8d8;
}
.copilot-ticket {
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.copilot-ticket-blocked {
  text-align: center;
  background: linear-gradient(180deg, rgba(40, 48, 58, 0.55), rgba(28, 34, 42, 0.75));
  border-style: dashed;
  color: #8ba3bc;
}
.copilot-lock { font-size: 1.6rem; margin-bottom: 0.25rem; filter: grayscale(0.2); }
.copilot-blocked-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #c8d6e5;
}
.copilot-blocked-sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: #6a7a8a;
}
.copilot-ticket-buy {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.18), rgba(0, 140, 110, 0.08));
  border-color: rgba(0, 212, 170, 0.45);
}
.copilot-ticket-sell {
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.2), rgba(180, 40, 40, 0.08));
  border-color: rgba(255, 92, 92, 0.45);
}
.copilot-ticket-side {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}
.copilot-ticket-buy .copilot-ticket-side { color: #00d4aa; }
.copilot-ticket-sell .copilot-ticket-side { color: #ff6b6b; }
.copilot-levels {
  display: grid;
  gap: 0.35rem;
}
.copilot-level {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.copilot-level-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8ba3bc;
}
.copilot-level-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f0f6fc;
}
.copilot-tp { color: #00d4aa; }
.copilot-sl { color: #ff8a8a; }
.copilot-ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.copilot-rr-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  letter-spacing: 0.04em;
}
.copilot-lots {
  font-size: 0.62rem;
  color: #9ab4c8;
  font-variant-numeric: tabular-nums;
}

.cluster-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #b8c8d8;
}
.cluster-gauge-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0.35rem 0 0.25rem;
}
.cluster-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease-out;
}
.cluster-gauge-track.risk-on .cluster-gauge-fill {
  background: linear-gradient(90deg, #00d4aa, #4de8ff);
}
.cluster-gauge-track.risk-off .cluster-gauge-fill {
  background: linear-gradient(90deg, #ff6b6b, #ffb347);
}
.cluster-gauge-regime {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cluster-gauge-regime.risk-on { color: #00d4aa; }
.cluster-gauge-regime.risk-off { color: #ffb347; }
.cluster-sub {
  margin: 0;
  font-size: 0.72rem;
}
.cluster-foot {
  margin: 0;
  font-size: 0.72rem;
}
.cluster-macro-surprise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.cluster-macro-surprise label {
  font-size: 0.68rem;
  color: var(--muted);
}
.cluster-macro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}
.cluster-macro-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cluster-macro-list li.empty {
  color: var(--muted);
  justify-content: center;
  border: none;
}

.finance-cluster-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.finance-macro-card h3 {
  margin-bottom: 0.35rem;
}
.finance-macro-hint {
  margin: 0 0 0.85rem;
}
.finance-macro-table .fx-z {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.finance-macro-table .fx-z.pos {
  color: #00d4aa;
}
.finance-macro-table .fx-z.neg {
  color: #ff6b6b;
}
.finance-macro-table .fx-z.neutral {
  color: var(--muted);
}
.finance-error {
  padding: 2rem 1rem;
  text-align: center;
}

/* Topbar — Macro Quant (solo utenti autenticati) */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 0.65rem;
}
.topbar-nav.hidden {
  display: none;
}
.topbar-quant-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #b8f0ff;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(77, 232, 255, 0.08));
  border: 1px solid rgba(77, 232, 255, 0.35);
  box-shadow: 0 0 18px rgba(77, 232, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.topbar-quant-pill:hover {
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 22px rgba(0, 212, 170, 0.15);
  transform: translateY(-1px);
}
.topbar-quant-pill.active {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.22), rgba(77, 232, 255, 0.14));
  border-color: rgba(0, 212, 170, 0.6);
  color: #e8fff8;
}
.topbar-quant-icon {
  font-size: 0.95rem;
  line-height: 1;
}
@media (max-width: 720px) {
  .topbar-quant-label {
    display: none;
  }
  .topbar-quant-pill {
    padding: 0.42rem 0.55rem;
  }
}

/* FX card — model health + equity sparkline */
.fx-signal-prob-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.fx-metric-prob .fx-metric-value {
  font-size: 1.45rem;
}
.fx-signal-health-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fx-health {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.fx-health-ok {
  background: rgba(0, 212, 170, 0.14);
  border-color: rgba(0, 212, 170, 0.45);
  color: #00d4aa;
}
.fx-health-warn {
  background: rgba(255, 179, 71, 0.14);
  border-color: rgba(255, 179, 71, 0.5);
  color: #ffb347;
}
.fx-health-critical {
  background: rgba(255, 71, 87, 0.18);
  border-color: rgba(255, 71, 87, 0.55);
  color: #ff4757;
  animation: fxHealthPulse 1.1s ease-in-out infinite;
}
.fx-health-unknown {
  background: rgba(120, 130, 150, 0.12);
  border-color: rgba(120, 130, 150, 0.35);
  color: #9aa8bc;
}
@keyframes fxHealthPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(255, 71, 87, 0); }
  50% { opacity: 0.82; box-shadow: 0 0 14px rgba(255, 71, 87, 0.35); }
}
.fx-equity-wrap {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fx-equity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.fx-equity-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fx-equity-last {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fx-equity-last.pos { color: #00d4aa; }
.fx-equity-last.neg { color: #ff6b6b; }
.fx-equity-chart {
  width: 100%;
  height: 72px;
  display: block;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}
.fx-equity-baseline {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.fx-equity-line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fx-equity-line-pos {
  stroke: #00d4aa;
  filter: drop-shadow(0 0 4px rgba(0, 212, 170, 0.35));
}
.fx-equity-line-neg {
  stroke: #ff6b6b;
  filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.35));
}
.fx-equity-empty {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.75rem 0;
  text-align: center;
}

/* FX card — portfolio allocation / money management */
.fx-allocation-panel {
  margin-top: 0.65rem;
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.32);
}
.fx-allocation-panel.allowed {
  border-color: rgba(0, 212, 170, 0.28);
  background: linear-gradient(165deg, rgba(0, 212, 170, 0.06), rgba(0, 0, 0, 0.28));
}
.fx-allocation-panel.blocked {
  border-color: rgba(255, 107, 107, 0.22);
  background: linear-gradient(165deg, rgba(255, 107, 107, 0.05), rgba(0, 0, 0, 0.28));
  opacity: 0.92;
}
.fx-allocation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
}
.fx-alloc-badge {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.fx-allocation-panel.allowed .fx-alloc-badge {
  color: #00d4aa;
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.4);
}
.fx-allocation-panel.blocked .fx-alloc-badge {
  color: #ff8b8b;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.35);
}
.fx-allocation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
}
@media (max-width: 420px) {
  .fx-allocation-metrics {
    grid-template-columns: 1fr;
  }
}
.fx-alloc-metric {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.fx-alloc-metric label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fx-alloc-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8f4ff;
}
.fx-alloc-value.execution-highlight {
  font-size: 1.08rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(77, 232, 255, 0.2);
}
.fx-allocation-panel.blocked .fx-alloc-value.execution-highlight {
  color: #9aa8bc;
  text-shadow: none;
}
