/* Light-theme trial overrides.
   Keeps the self-hosted Inter (Public Sans files are not on disk) and repaints
   the few places that hard-coded a dark value instead of using a token. */
:root {
  --vz-font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
}

body { background: var(--vz-color-canvas); color: var(--vz-color-text); }

/* Šešėliai buvo skaičiuoti tamsiam fonui. */
:root {
  --shadow-md: 0 2px 8px rgba(23, 32, 28, .08);
  --shadow-lg: 0 16px 48px rgba(23, 32, 28, .18);
}

/* Baltos permatomos dangos šviesiame fone tampa nematomos. */
.hist-table tr.is-current td { background: var(--vz-color-surface-subtle); }
.modal { background: var(--vz-color-overlay); }

/* Verdiktų ir žymių kraštinės buvo pusiau permatomos šviesios. */
.pill-PIRKTI { border-color: var(--vz-verdict-buy-border); }
.pill-TIKRINTI { border-color: var(--vz-verdict-check-border); }
.pill-ATMESTA, .pill-PRALEISTI { border-color: var(--vz-verdict-pass-border); }
.pill-STEBĖTI { background: var(--vz-verdict-watch-bg); color: var(--vz-verdict-watch-fg);
                border-color: var(--vz-verdict-watch-border); }
.pill-repeat { background: var(--vz-verdict-check-bg); color: var(--vz-verdict-check-fg);
               border-color: var(--vz-verdict-check-border); }

/* Žemėlapio plytelės lieka tamsios — šviesios temos variantas. */
.leaflet-tile { filter: none; }


/* ---- ką tokenų sukeitimas nepasiekė (išmatuota naršyklėje) ---- */

/* Header ir juostos buvo įrašytos tiesiogiai, ne per tokeną. */
.app-header,
.toolbar-sticky,
header.app-header {
  background: var(--vz-color-surface) !important;
  border-bottom: 1px solid var(--vz-color-border);
  color: var(--vz-color-text);
}
.app-header a, .app-header .btn-ghost { color: var(--vz-color-text-muted); }
.app-header .logo-ai { color: var(--vz-color-action); }

/* Sluoksniai, kurie rėmėsi baltu permatomumu tamsiame fone. */
.card-star { background: rgba(255,255,255,.86); color: var(--vz-color-text); }
.card-star:hover { background: #fff; }
.card-star[aria-pressed="true"] { background: var(--vz-color-action); color: #fff; }
.card-map-tag { background: rgba(255,255,255,.9) !important; color: var(--vz-color-text-muted) !important; }

/* Pasitikėjimo žymė kortelėje — components.css kraunasi vėliau ir laimėdavo. */
.card .metric-cell .vz-confidence,
.card .metric-cell .vz-data-state {
  background: transparent !important;
  border: 0 !important;
  color: var(--vz-color-text-subtle) !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-weight: 400 !important;
}

/* Slapukų juosta buvo tamsi ir su violetiniu mygtuku. */
.cookie-banner, .cookie-bar, #cookie-consent, [class*="cookie"] {
  background: var(--vz-color-surface) !important;
  color: var(--vz-color-text) !important;
  border: 1px solid var(--vz-color-border);
}

/* Modalų fonas. */
.modal { background: rgba(23,32,28,.55); }
.sheet-backdrop { background: rgba(23,32,28,.45); }

/* Landing hero gradientai buvo skaičiuoti tamsiam fonui. */
.hero, .hero-bg, .scan-card { background-color: transparent; }

/* Vienas demo header mygtukas paveldėdavo tamsų tekstą ant tamsaus gradiento. */
.btn-primary, .btn-primary:hover, .btn-primary span { color: #fff !important; }


/* ---- detalės teksto ir tarpų tvarkymas ---- */

/* Monospace tinka skaičiams, ne žodžiams. */
.detail-stat .val.txt {
  font-family: var(--vz-font-sans, var(--font));
  font-size: .9375rem;
  line-height: 1.35;
  white-space: normal;
}
.detail-stat .val.num {
  font-family: var(--vz-font-mono, var(--mono));
  font-variant-numeric: tabular-nums;
}
.detail-stat .lbl {
  font-size: .6875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Paaiškinimai buvo aukštesni už pačius duomenis. */
#modal-detail .val-note {
  padding: 10px 12px;
  margin: 0 0 8px;
  font-size: .8125rem;
  line-height: 1.45;
  gap: 8px;
}
#modal-detail .val-note:last-of-type { margin-bottom: 0; }
#modal-detail .ai-box {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--vz-color-surface-subtle);
  border: 1px solid var(--vz-color-border);
}
#modal-detail .ai-box .ai-head { margin-bottom: 4px; font-size: .8125rem; }
#modal-detail .ai-box p { margin: 0; font-size: .8125rem; line-height: 1.45; }
#modal-detail .hist-box { margin-top: 14px; }
#modal-detail .mini-map { margin-top: 14px; }
#modal-detail .risk-line { margin: 6px 0; padding: 8px 10px; font-size: .8125rem; }

/* Suvestinės langeliai: linijos, ne dėžutės. */
.detail-grid .detail-stat, .detail-stat {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--vz-color-border);
  border-radius: 0;
  padding: 8px 8px 8px 0;
}

/* AI antraste liko blyskiai violetine is tamsios temos. */
#modal-detail .ai-box .ai-head,
.ai-box .ai-head { color: var(--vz-color-action) !important; font-weight: 600; }
.ai-box { border-color: var(--vz-color-border) !important; }


.ph-branded i { opacity: 1; }
.ph-branded::after {
  content: "Nuotraukos nėra";
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--vz-color-text-muted);
}

/* Kortelė be nuotraukos. app.css:278 `.card-media .ph` yra 0-2-0 ir nustato
   baltą 45 % tekstą su tamsios temos gradientu — šviesiame fone ikona tampa
   nematoma, o langas atrodo kaip neįkelta nuotrauka. Atitinkame tą patį
   specifiškumą, o ne rašome !important. */
.card-media .ph-branded {
  background: var(--vz-color-surface-muted);
  color: var(--vz-color-text-muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-bottom: 1px solid var(--vz-color-border);
}
.card-media .ph-branded svg { width: 30px; height: 30px; opacity: 1; }
.card-media .ph-branded::after {
  content: "Nuotraukos nėra";
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--vz-color-text-muted);
}

/* Žemėlapio žymekliai. Spalvos parinktos tamsiai temai: TIKRINTI tamsus tekstas
   ant gintaro dabar yra tamsus ant tamsaus (2.6), o STEBĖTI baltas ant šviesiai
   mėlyno siekia tik 3.68. Abu žemiau 4.5. Matuojama smoke/test_markers.py. */

/* Verdiktų spalvos. Ankstesnės skyrėsi tik atspalviu ir buvo visos tamsios:
   TIKRINTI ir PRALEISTI pora siekė ΔE 47, o esant daltonizmui — 20, t. y. tai
   buvo ta pati spalva. Dabar jos skiriasi ir šviesumu, todėl atsiskiria ir
   nespalvotai, ir esant spalvų neskyrimui. Blogiausia pora — 65 (53). */
.vz-price .price-pill.v-TIKRINTI,
.vz-cluster .bubble.v-TIKRINTI { background: #f59e0b; color: #1a1206; }
.vz-price .price-pill.v-STEBĖTI,
.vz-cluster .bubble.v-STEBĖTI { background: #2563eb; color: #fff; }
.vz-price .price-pill.v-PRALEISTI,
.vz-price .price-pill.v-ATMESTA,
.vz-cluster .bubble.v-PRALEISTI,
.vz-cluster .bubble.v-ATMESTA { background: #7f1d1d; color: #fff; }
.vz-price .price-pill.v-NONE,
.vz-cluster .bubble.v-NONE { background: #9ca3af; color: #1a1206; }

/* Legenda turi rodyti tas pačias spalvas, ne panašias. */
.map-legend .dot.v-TIKRINTI  { background: #f59e0b; }
.map-legend .dot.v-STEBĖTI   { background: #2563eb; }
.map-legend .dot.v-PRALEISTI { background: #7f1d1d; }
.map-legend .dot.v-NONE      { background: #9ca3af; }
