/* ==========================================================================
   Kuro Pulsas — dizaino sistema
   Tokenai → bazė → išdėstymas → komponentai → puslapiai. Šviesus / tamsus režimai per CSS kintamuosius.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Paviršiai — vėsus neutralus fonas, balti „popieriaus“ paviršiai */
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e7eaf0;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  /* Tekstas */
  --text: #0e1320;
  --text-2: #4a5263;
  --text-3: #5f6777; /* ≥ 4,5:1 ant visų šviesių paviršių (WCAG AA) */
  /* Akcentas (sutampa su logotipo mėlyna) */
  --accent: #2a78d6;
  --accent-hover: #1f68c2;
  --accent-soft: rgba(42, 120, 214, 0.09);
  --accent-text: #1c5cab;
  --accent-grad: linear-gradient(180deg, #3a88e6 0%, #2368c8 100%);
  /* Degalų rūšys (patikrinta CVD validatoriumi) */
  --fuel-dyzelinas: #2a78d6;
  --fuel-benzinas_95: #eb6834;
  --fuel-snd: #1baf7a;
  /* Pajamų grafikas: neto DU / bruto DU / MMA */
  --inc-net: #2a78d6;
  --inc-gross: #8a5cd6;
  --inc-min: #c98512;
  /* Šalių palyginimo serijos */
  --country-lt: #0f7f55;
  --country-lv: #a8323d;
  --country-ee: #2a78d6;
  --country-pl: #b26d00;
  /* Kaina vs vidurkis (divergentinė: pigiau ↔ brangiau) */
  --cheap-3: #1c5cab;
  --cheap-2: #3987e5;
  --cheap-1: #86b6ef;
  --neutral: #a8a69e;
  --pricey-1: #ef9a9a;
  --pricey-2: #e34948;
  --pricey-3: #b52b2b;
  /* Būsenos */
  --good: #0a7d0a;
  --good-soft: rgba(12, 163, 12, 0.10);
  --warning: #8f5c00;
  --warning-soft: rgba(250, 178, 25, 0.16);
  --critical: #c23434;
  --critical-soft: rgba(208, 59, 59, 0.10);
  /* Kainų pokyčių spalvos (kaina kyla = blogai vartotojui) */
  --up: #c23434;
  --down: #0a7d0a;
  /* Grafikai */
  --grid: #e8ebf0;
  --axis: #868d9b;
  /* Forma */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.04), 0 14px 32px -8px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 12px 40px -6px rgba(15, 23, 42, 0.20);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glow-a: rgba(42, 120, 214, 0.10);
  --glow-b: rgba(235, 104, 52, 0.06);
  /* Tipografija */
  --font: "Inter", "InterVariable", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", "InterVariable", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  /* Tarpai */
  --gap: 20px;
  --gap-lg: 24px;
  --section: 64px;
  --header-h: 64px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #0a0c11;
    --surface: #12151c;
    --surface-2: #191d26;
    --surface-3: #232834;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #f1f3f7;
    --text-2: #b4bac6;
    --text-3: #868d9b;
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --accent-soft: rgba(57, 135, 229, 0.15);
    --accent-text: #8dbbf2;
    --accent-grad: linear-gradient(180deg, #4592ec 0%, #2a6fd0 100%);
    --fuel-dyzelinas: #3987e5;
    --fuel-benzinas_95: #d95926;
    --fuel-snd: #199e70;
    --inc-net: #3987e5;
    --inc-gross: #a585ea;
    --inc-min: #e0a53a;
    --country-lt: #3cbf8a;
    --country-lv: #e26b75;
    --country-ee: #5598e7;
    --country-pl: #e0a53a;
    --cheap-3: #86b6ef;
    --cheap-2: #3987e5;
    --cheap-1: #256abf;
    --neutral: #6b6a64;
    --pricey-1: #8f3a3a;
    --pricey-2: #e66767;
    --pricey-3: #f29a9a;
    --good: #2fbf2f;
    --good-soft: rgba(12, 163, 12, 0.16);
    --warning: #fab219;
    --warning-soft: rgba(250, 178, 25, 0.14);
    --critical: #e66767;
    --critical-soft: rgba(230, 103, 103, 0.14);
    --up: #e66767;
    --down: #2fbf2f;
    --grid: #222733;
    --axis: #868d9b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 36px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.7);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glow-a: rgba(57, 135, 229, 0.12);
    --glow-b: rgba(217, 89, 38, 0.06);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0c11;
  --surface: #12151c;
  --surface-2: #191d26;
  --surface-3: #232834;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f1f3f7;
  --text-2: #b4bac6;
  --text-3: #868d9b;
  --accent: #3987e5;
  --accent-hover: #5598e7;
  --accent-soft: rgba(57, 135, 229, 0.15);
  --accent-text: #8dbbf2;
  --accent-grad: linear-gradient(180deg, #4592ec 0%, #2a6fd0 100%);
  --fuel-dyzelinas: #3987e5;
  --fuel-benzinas_95: #d95926;
  --fuel-snd: #199e70;
  --inc-net: #3987e5;
  --inc-gross: #a585ea;
  --inc-min: #e0a53a;
  --country-lt: #3cbf8a;
  --country-lv: #e26b75;
  --country-ee: #5598e7;
  --country-pl: #e0a53a;
  --cheap-3: #86b6ef;
  --cheap-2: #3987e5;
  --cheap-1: #256abf;
  --neutral: #6b6a64;
  --pricey-1: #8f3a3a;
  --pricey-2: #e66767;
  --pricey-3: #f29a9a;
  --good: #2fbf2f;
  --good-soft: rgba(12, 163, 12, 0.16);
  --warning: #fab219;
  --warning-soft: rgba(250, 178, 25, 0.14);
  --critical: #e66767;
  --critical-soft: rgba(230, 103, 103, 0.14);
  --up: #e66767;
  --down: #2fbf2f;
  --grid: #222733;
  --axis: #868d9b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 36px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.7);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --glow-a: rgba(57, 135, 229, 0.12);
  --glow-b: rgba(217, 89, 38, 0.06);
}

/* ---------- Bazė ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
a { color: var(--accent-text); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--font-display); font-weight: 680; letter-spacing: -0.015em; }
h1 { font-size: clamp(26px, 2.6vw + 12px, 36px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Išdėstymas ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 20px; padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-family: var(--font-display); font-weight: 750; font-size: 16px; letter-spacing: -0.015em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark img { display: block; width: 36px; height: 36px; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; color: var(--text-3); letter-spacing: 0.01em; }
.main-nav {
  display: flex; gap: 2px; margin-left: 12px; overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 7px 12px; border-radius: 10px; color: var(--text-2); font-weight: 560; font-size: 14px; white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.main-nav a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.main-nav a.active { background: var(--surface-2); color: var(--text); font-weight: 650; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.data-badge {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 550; color: var(--text-2);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; box-shadow: 0 0 0 3px var(--good-soft); }
.dot.warn { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text-2);
  box-shadow: var(--shadow-sm); transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
/* Temos perjungiklis: šviesioje temoje rodomas mėnuliukas, tamsioje – saulytė */
.theme-toggle { overflow: hidden; }
.theme-toggle > span { grid-area: 1 / 1; display: grid; transition: transform 0.35s ease, opacity 0.25s ease; }
.theme-toggle .ti-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle .ti-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle .ti-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ti-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
  :root:not([data-theme="light"]) .theme-toggle .ti-sun { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle > span { transition: none; } }
.nav-toggle { display: none; }
.main-nav { flex: 0 1 auto; min-width: 0; }
.header-actions { flex: none; }
/* Antraštės turinys ribojamas iki --maxw (1280 px) net plačiame ekrane, todėl glaudžiame visada – ne pagal lango plotį */
@media all {
  .site-header .inner { gap: 12px; }
  .brand small { display: none; }
  .main-nav { margin-left: 4px; }
  .main-nav a { padding: 7px 8px; }
  .data-badge .long { display: none; }
  .header-actions .btn-install span { display: none; }
  .header-actions .btn-install { width: 38px; height: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 14px; margin: 0; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
}

.page { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 88px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.page-head p { margin: 12px 0 0; color: var(--text-2); max-width: 680px; font-size: 16px; line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent-text); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: var(--gap-lg); }
section > .toolbar h2 { font-size: 20px; letter-spacing: -0.02em; }

/* Teminė sekcija: antraštė su paaiškinimu, po jos kortelės */
.section { margin-top: var(--section); scroll-margin-top: calc(var(--header-h) + 80px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 23px; font-weight: 720; letter-spacing: -0.025em; }
.section-head p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; max-width: 70ch; }

.site-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 76px; display: grid; gap: 14px; font-size: 13px; color: var(--text-3); }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--text-2); }

/* ---------- Kortelės ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--highlight); min-width: 0;
}
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 0; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; letter-spacing: -0.02em; }
.card-head h3 { font-size: 16.5px; font-weight: 680; letter-spacing: -0.015em; }
.card-head .subtle { margin-top: 4px; }
.card-body { padding: 18px 24px 24px; }
.card-foot { padding: 14px 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

/* Kainos kortelė (apžvalgos viršus): rūšis ir pokytis, vidurkis, apačioje — pigiausia degalinė */
.price-card {
  --fc: var(--accent);
  padding: 22px 24px 20px; position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.25s var(--ease);
}
.price-card:has(.fuel-chip.dyzelinas) { --fc: var(--fuel-dyzelinas); }
.price-card:has(.fuel-chip.benzinas_95) { --fc: var(--fuel-benzinas_95); }
.price-card:has(.fuel-chip.snd) { --fc: var(--fuel-snd); }
.price-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--fc); pointer-events: none; }
.price-card:hover { box-shadow: var(--shadow-hover), var(--highlight); }
.pc-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 680; color: var(--text); }
.pc-change { margin-left: auto; }
.pc-label { font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.price-card > .pc-label { margin-top: 20px; }
.price-card .value {
  font-family: var(--font-display); font-size: 48px; font-weight: 760; letter-spacing: -0.04em; margin: 6px 0 8px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-card .value small { font-size: 17px; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.price-card .meta { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.price-card > .meta:has(+ .pc-best) { margin-bottom: 20px; }
/* Kitų puslapių kortelės (tinklas, savivaldybė, skaičiuoklė): antraštė .label ir .where apačioje */
.price-card > .label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--text-2); }
.price-card > .label + .value { margin-top: 16px; }
.price-card > .where { margin: 18px -24px -20px; padding: 14px 24px 16px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.pc-best {
  margin: auto -24px -20px; padding: 16px 24px 18px; border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}
.pc-best-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pc-best-price { font-family: var(--font-display); font-size: 20px; font-weight: 740; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-card .where { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.price-card .where-t { min-width: 0; flex: 1; }
.icon-btn.nav-btn { flex: none; width: 34px; height: 34px; color: var(--accent-text); }
.icon-btn.nav-btn svg { width: 16px; height: 16px; }
.nav-menu {
  position: fixed; z-index: 1800; min-width: 170px; padding: 6px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.nav-menu svg { flex: none; }
.gmaps-logo {
  flex: none; width: 22px; height: 22px;
  background: conic-gradient(from 0deg at 50% 40%, #3b82f6 0deg, #1d9bdc 45deg, #0aa9b8 75deg, #10bb62 110deg, #0fb95f 180deg,
    #b8d82a 215deg, #f2cc14 235deg, #fb921e 258deg, #fc4040 290deg, #d062b0 322deg, #7c7cf0 345deg, #3b82f6 360deg);
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a8.63 8.63 0 0 0-7.1 13.5c2.3 3.5 5.4 5.8 6.3 7.8a.9.9 0 0 0 1.6 0c.9-2 4-4.3 6.3-7.8A8.63 8.63 0 0 0 12 1zM7.38 9.63a4.62 4.62 0 1 0 9.24 0a4.62 4.62 0 1 0-9.24 0z'/%3E%3C/svg%3E");
  -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat;
}
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--surface-2); outline: none; }
.price-card .where a { color: var(--text); font-weight: 650; }
.price-card .where .subtle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.hero-note { margin: 14px 2px 0; font-size: 13px; }
/* Paprastos apžvalgos kortelės eilutės */
.pc-trend { font-size: 14.5px; font-weight: 650; margin-bottom: 4px; }
.pc-trend.down { color: var(--down); }
.pc-trend.up { color: var(--up); }
.pc-trend.flat { color: var(--text-2); }
.price-card > .pc-trend:has(+ .pc-best), .price-card > .meta:has(+ .pc-best) { margin-bottom: 20px; }
.pc-save { margin-top: 10px; font-size: 13px; color: var(--down); font-weight: 600; }
.more-charts { padding: 0 24px 24px; }
.more-charts > .card { box-shadow: none; }

/* Pasirinktos rūšies juosta: prilimpa po antrašte, kol rodomi nuo rūšies priklausantys blokai */
.fuel-scope { margin-top: 48px; }
.fuel-bar {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 900; width: fit-content; max-width: 100%;
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 6px 6px 6px 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-hover);
}
.fuel-bar-label { font-size: 13px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.fuel-bar .segmented { border: 0; background: transparent; padding: 0; }
.fuel-bar .segmented button[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }

/* Duomenų būklės juosta */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 20px 24px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact .k { font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.fact .v { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact .s { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* Rodiklių skydelis kortelės viduje (tarp antraštės ir grafiko) */
.stat-panel { margin-top: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-panel:empty { display: none; }
.stat-panel > .notice, .stat-panel > .empty { margin: 16px 24px; }
.stat-panel .fact .v .delta { font-size: 15px; padding: 3px 10px 3px 8px; }
.facts-sub {
  display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 12px 24px; border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); font-size: 13px; color: var(--text-3);
}
.facts-sub strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.lead-line { margin: 0 0 14px; font-size: 15px; color: var(--text); }

/* Statistikos filtrai */
/* Be overflow: hidden — kitaip būtų nukirptas iššokantis kalendorius */
.filter-panel { position: relative; }
.filter-grid {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 22px 32px; align-items: start; padding: 24px;
  grid-template-areas: "fuel scope target" "period dates target";
}
.f-target:not(:has(.field:not([hidden]))) { display: none; }
.f-fuel { grid-area: fuel; } .f-scope { grid-area: scope; } .f-period { grid-area: period; } .f-dates { grid-area: dates; }
.f-target { grid-area: target; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.filter-grid .field { gap: 8px; }
.filter-grid .field > span { font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; line-height: 16px; }
/* Visi valdikliai vienodo 40 px aukščio, kad etiketės ir apačios sutaptų */
.filter-grid .segmented { height: 40px; padding: 3px; align-items: stretch; flex-wrap: nowrap; width: fit-content; max-width: 100%; }
.filter-grid .segmented button { padding: 0 13px; }
/* ---------- Datų intervalo pasirinkiklis ---------- */
.dp-host { position: relative; }
.dp-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 13px; min-width: 260px; max-width: 100%;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text);
  font-weight: 560; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dp-trigger svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.dp-trigger:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.dp-host.is-open .dp-trigger { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.dp {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 950; padding: 18px 20px 0;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: dpIn 0.16s var(--ease);
}
@keyframes dpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dp-nav { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.dp-arrow {
  pointer-events: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.dp-arrow svg { width: 18px; height: 18px; }
.dp-arrow:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.dp-arrow:disabled { opacity: 0.3; cursor: default; }
.dp-months { display: flex; gap: 32px; }
.dp-title { text-align: center; font-family: var(--font-display); font-weight: 680; font-size: 15px; letter-spacing: -0.01em; height: 22px; margin-bottom: 14px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 40px); row-gap: 2px; }
.dp-wd { height: 28px; display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.dp-wd.we { color: color-mix(in srgb, var(--text-3) 65%, transparent); }
.dp-day {
  height: 40px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; position: relative;
  font: inherit; font-size: 14px; font-variant-numeric: tabular-nums;
}
.dp-day span { width: 36px; height: 36px; margin: 2px auto; display: grid; place-items: center; border-radius: 10px; transition: background 0.12s, color 0.12s; }
.dp-day:hover:not(:disabled) span { background: var(--surface-2); }
.dp-day.today span { box-shadow: inset 0 0 0 1px var(--border-strong); font-weight: 650; }
.dp-day:disabled { color: color-mix(in srgb, var(--text-3) 45%, transparent); cursor: default; }
/* Intervalas: vientisa juosta, galuose — užpildyti kvadratėliai */
.dp-day.in { background: color-mix(in srgb, var(--text) 5%, transparent); }
.dp-day.start { border-radius: 10px 0 0 10px; }
.dp-day.end { border-radius: 0 10px 10px 0; }
.dp-day.start.end { border-radius: 10px; }
.dp-grid > .dp-day.in:nth-child(7n + 1) { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.dp-grid > .dp-day.in:nth-child(7n) { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.dp-day.start span, .dp-day.end span, .dp-day.start:hover span, .dp-day.end:hover span { background: var(--text); color: var(--surface); font-weight: 650; box-shadow: none; }
.dp-day:focus-visible { outline: none; }
.dp-day:focus-visible span { outline: 2px solid var(--accent); outline-offset: 1px; }
.dp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 16px -20px 0; padding: 14px 20px; border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.dp-summary { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dp-summary strong { color: var(--text); font-weight: 650; }
.dp-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 600px) {
  .dp-trigger { width: 100%; min-width: 0; }
  /* Telefone — apatinis skydelis per visą plotį */
  .dp { position: fixed; top: auto; left: 0 !important; right: 0; bottom: 0; z-index: 1460; padding: 18px 16px 0; border-radius: 22px 22px 0 0; animation-name: dpUp; }
  /* Pritemdytas fonas virš antraštės ir slapukų piktogramos */
  .dp-host.is-open::before { content: ""; position: fixed; inset: 0; z-index: 1450; background: rgba(0, 0, 0, 0.4); animation: fadeIn 0.15s; }
  .dp-months { justify-content: center; }
  .dp-grid { grid-template-columns: repeat(7, minmax(0, 44px)); }
  .dp-day { height: 44px; }
  .dp-day span { width: 40px; height: 40px; }
  .dp-foot { margin: 16px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 0; }
  .dp-actions { flex: 1 1 100%; }
  .dp-actions .btn { flex: 1; height: 44px; }
  @keyframes dpUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 1100px) {
  .filter-grid { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "fuel scope" "period dates" "target target"; }
}
@media (max-width: 600px) {
  /* Viename stulpelyje — dokumento tvarka; be pavadintų sričių neliktų tuščios eilutės (ir dvigubo tarpo), kai objekto laukų nėra */
  .filter-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 16px; padding: 16px; }
  .filter-grid > * { grid-area: auto; }
  .f-target { gap: 16px; }
  .filter-grid .segmented { display: flex; width: auto; overflow-x: auto; scrollbar-width: none; }
  .filter-grid .segmented::-webkit-scrollbar { display: none; }
  .filter-grid #s-fuel button { flex: 1; justify-content: center; padding: 0 8px; }
  .filter-foot { padding: 12px 16px; }
  .facts-sub { padding: 12px 16px; }
  .method summary { padding: 16px; }
  .method ul { padding: 0 16px 20px 32px; }
}
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); color: var(--text-3); min-height: 52px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Suskleidžiama metodika */
.method summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer;
}
.method summary::-webkit-details-marker { display: none; }
.method summary > span { display: flex; flex-direction: column; gap: 2px; }
.method summary strong { font-size: 16.5px; font-family: var(--font-display); letter-spacing: -0.015em; }
.method summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s var(--ease);
}
.method[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.method summary:hover strong { color: var(--accent-text); }
.method ul { margin: 0; padding: 4px 24px 24px 44px; color: var(--text-2); display: grid; gap: 8px; max-width: 90ch; }

/* Pigiausių sąrašas dviem stulpeliais (1–5, 6–10) */
.rank-cols { display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.rank-list.rank-cols li + li { margin-top: 0; }
.show-more { margin-top: 18px; }

.fuel-chip { --c: var(--accent); width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.fuel-chip.dyzelinas { --c: var(--fuel-dyzelinas); }
.fuel-chip.benzinas_95 { --c: var(--fuel-benzinas_95); }
.fuel-chip.snd { --c: var(--fuel-snd); }

/* Šalies vėliavėlė prie degalinės pavadinimo */
.flag {
  display: inline-block; width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; flex: none;
  border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent);
}
.flag-code { width: auto; height: auto; padding: 0 3px; font-size: 10px; font-weight: 700; line-height: 14px; color: var(--text-2); background: var(--surface-2); }
h1 .flag { width: 27px; height: 18px; margin-right: 10px; vertical-align: 2px; }

/* Savaitės judėjimai */
.movers-h { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 8px; }
.movers-h::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--text-3); }
.movers-h.down::before { background: var(--down); }
.movers-h.up::before { background: var(--up); }
.mover-from { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.stat { padding: 18px 20px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover), var(--highlight); }
.stat .k { font-size: 11.5px; color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .v { font-family: var(--font-display); font-size: 24px; font-weight: 720; margin-top: 8px; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* Pokyčiai */
.delta {
  display: inline-flex; align-items: center; gap: 3px; font-weight: 650; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--surface-2);
}
.delta.up { color: var(--up); background: var(--critical-soft); }
.delta.down { color: var(--down); background: var(--good-soft); }
.delta.flat { color: var(--text-2); }
.delta svg { width: 12px; height: 12px; }
.change-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.change-table th { text-align: left; font-weight: 650; color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 8px 10px; }
.change-table { min-width: 560px; }
.change-table th { white-space: nowrap; }
.change-table td { padding: 14px 8px; border-top: 1px solid var(--border); vertical-align: middle; }
.change-table td:first-child, .change-table th:first-child { padding-left: 0; }
.change-table td:last-child, .change-table th:last-child { padding-right: 0; }
.change-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.change-table td .subtle { font-size: 12px; margin-top: 3px; }
.change-table td .badge { margin-left: 6px; vertical-align: 1px; }
.change-table tr.no-data td.muted { font-size: 12.5px; }
.change-table td.r, .change-table th.r { text-align: right; }

/* ---------- Mygtukai ir formos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 620; font-size: 14px; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm), var(--highlight);
  transition: background 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s var(--ease), transform 0.08s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 16px; height: 16px; }
/* Pagrindinis veiksmas: vientisas „rašalo“ tonas be gradiento ir švytėjimo (tamsiame režime — šviesus) */
.btn-primary {
  background: var(--text); border-color: var(--text); color: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}
.btn-primary:hover { background: color-mix(in srgb, var(--text) 86%, var(--surface)); border-color: transparent; }
.btn-danger { color: var(--critical); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span, .field > label { font-size: 12.5px; font-weight: 620; color: var(--text-2); }
.input, .select, textarea.input {
  height: 40px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); width: 100%; min-width: 0; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover, .select:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
textarea.input { height: auto; padding: 10px 12px; }
.select { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* Savo dizaino išskleidžiamasis sąrašas (select.js); tikrasis <select> lieka paslėptas */
.cs { position: relative; display: block; min-width: 0; width: 100%; }
.cs-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.cs-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 11px 0 13px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text);
  font-weight: 540; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.cs-trigger:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.cs-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); border-radius: 12px; }
.cs-trigger:disabled { cursor: not-allowed; opacity: 0.55; background: var(--surface-2); }
.cs-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-trigger.is-placeholder .cs-value { color: var(--text-3); font-weight: 480; }
.cs-chev { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: transform 0.2s var(--ease), color 0.15s; }
.cs.is-open .cs-trigger { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cs.is-open .cs-chev { transform: rotate(180deg); color: var(--accent); }
.cs-pop {
  position: fixed; z-index: 1700; display: flex; flex-direction: column; max-width: min(420px, calc(100vw - 16px)); padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: csIn 0.14s var(--ease); transform-origin: top center;
}
.cs-pop[hidden] { display: none; }
.cs-pop.is-up { transform-origin: bottom center; animation-name: csInUp; }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes csInUp { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }
.cs-sheet-head { display: none; }
.cs-search { position: relative; flex: none; margin-bottom: 6px; }
.cs-search[hidden] { display: none; }
.cs-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.cs-q {
  width: 100%; height: 36px; padding: 0 10px 0 33px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); font-size: 14px; transition: border-color 0.15s, background 0.15s;
}
.cs-q:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.cs-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; outline: none; scrollbar-width: thin; }
.cs-opt {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 10px 7px 12px; border-radius: 9px;
  font-size: 14px; cursor: pointer; user-select: none; transition: background 0.1s;
}
.cs-opt > span { flex: 1; min-width: 0; }
.cs-opt[hidden] { display: none; }
.cs-opt.is-active { background: var(--surface-2); }
.cs-opt.is-selected { color: var(--accent-text); font-weight: 620; background: var(--accent-soft); }
.cs-opt.is-selected.is-active { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.cs-opt[aria-disabled="true"] { color: var(--text-3); opacity: 0.6; cursor: default; }
.cs-check { width: 16px; height: 16px; flex: none; opacity: 0; color: var(--accent); }
.cs-opt.is-selected .cs-check { opacity: 1; }
.cs-group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.cs-group[hidden] { display: none; }
.cs-empty { padding: 14px 12px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.cs-empty[hidden] { display: none; }
.cs-backdrop { position: fixed; inset: 0; z-index: 1690; background: rgba(0, 0, 0, 0.4); animation: fadeIn 0.15s; }
@media (max-width: 600px) {
  /* Telefone — apatinis skydelis per visą plotį */
  .cs-pop {
    left: 0 !important; right: 0; bottom: 0; top: auto !important; max-width: none; max-height: 72vh;
    padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; animation-name: dpUp;
  }
  .cs-sheet-head { display: block; flex: none; padding: 12px 6px 10px; font-family: var(--font-display); font-weight: 680; font-size: 16px; text-align: center; }
  .cs-sheet-head:empty { display: none; }
  .cs-sheet-head::before { content: ""; display: block; width: 36px; height: 4px; margin: -6px auto 12px; border-radius: 4px; background: var(--border-strong); }
  .cs-opt { min-height: 46px; font-size: 15px; }
  .cs-q { height: 42px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cs-pop, .cs-chev { animation: none; transition: none; } }
/* Failo įkėlimo zona: nutempimas arba paspaudimas */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 26px 18px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2);
  color: var(--text-2); text-align: center; font-size: 13.5px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone svg { width: 22px; height: 22px; color: var(--text-3); }
.dropzone .dz-text strong { color: var(--text); font-weight: 620; }
.dropzone .dz-hint { font-size: 12px; color: var(--text-3); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.dropzone.is-over svg { color: var(--accent); }
.dropzone.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file .dz-text { color: var(--text); font-weight: 620; word-break: break-all; }
.dropzone.is-error { border-color: transparent; background: var(--critical-soft); color: var(--text); }
.dropzone-sm { flex-direction: row; gap: 8px; padding: 9px 14px; min-width: 200px; font-size: 13px; }
.dropzone-sm svg { width: 16px; height: 16px; }

.input-group { display: flex; }
.input-group .input { border-radius: 12px 0 0 12px; }
.input-group .btn { border-radius: 0 12px 12px 0; border-left: 0; }

/* Segmentuotas pasirinkimas (degalų rūšis, laikotarpis) */
.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; gap: 2px; flex-wrap: wrap; }
.segmented button {
  border: 0; background: transparent; padding: 6px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.segmented-sm { padding: 3px; border-radius: 11px; }
.segmented-sm button { padding: 4px 10px; font-size: 12.5px; gap: 6px; border-radius: 8px; }
.segmented a {
  padding: 6px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.card-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { min-width: 150px; flex: 1; }
.filters .field.narrow { flex: 0 0 110px; min-width: 100px; }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- Lentelės ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; transition: background 0.12s; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.table .r { text-align: right; }
.table .c { text-align: center; }
.table .price { font-family: var(--font-display); font-weight: 720; font-size: 16px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th button.sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.table th button.sort[aria-sort] { color: var(--text); }

.station-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.station-cell .t { font-weight: 600; color: var(--text); }
.station-cell .a { font-size: 13px; color: var(--text-2); }

/* Logotipai — apvalūs ženkliukai. Paveikslėliai serveryje paruošiami apskritimui (LogoNormalizer:
   apkarpyti, įtalpinti į apskritimą, užpildyti fonu), todėl čia tik forma, kontūras ir švelnus šešėlis. */
.logo {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
  box-shadow: 0 1px 2px rgba(16, 16, 14, 0.10), 0 2px 8px rgba(16, 16, 14, 0.06);
}
.logo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.08);
}
.logo.is-img { background: #fff; }
.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.logo.lg { width: 60px; height: 60px; }
.logo.sm { width: 28px; height: 28px; }
.logo-fallback { font-size: 12px; font-weight: 750; color: #fff; letter-spacing: 0.02em; }
.logo.sm .logo-fallback { font-size: 10px; }
.logo.lg .logo-fallback { font-size: 19px; }
:root[data-theme="dark"] .logo { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .logo::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .logo { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
  :root:where(:not([data-theme="light"])) .logo::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
}

/* Ženkleliai */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; border: 1px solid var(--border);
}
.badge.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge.bad { background: var(--critical-soft); color: var(--critical); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge svg { width: 12px; height: 12px; }

.diff { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.diff.below { color: var(--down); }
.diff.above { color: var(--up); }
.diff.zero { color: var(--text-2); }

/* Puslapiavimas */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.pager .pages { display: flex; gap: 4px; }

/* Pranešimai */
.notice { display: flex; gap: 12px; padding: 13px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.warn { background: var(--warning-soft); border-color: transparent; color: var(--text); }
.notice.bad { background: var(--critical-soft); border-color: transparent; color: var(--text); }
.notice.good { background: var(--good-soft); border-color: transparent; color: var(--text); }
.notice.info { background: var(--accent-soft); border-color: transparent; color: var(--text); }

.empty { padding: 36px 20px; text-align: center; color: var(--text-2); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }

/* Užkrovimo būsena: ankstesnis rodinys lieka, tik pritemdomas */
.is-loading { opacity: 0.55; transition: opacity 0.2s; pointer-events: none; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fade-in { animation: fadeIn 0.4s var(--ease) both; }
.fade-in:nth-child(2) { animation-delay: 0.05s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Grafikai ---------- */
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 220px; }
.chart-box.lg { height: 380px; }
.chart-box.auto { height: auto; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 4px; border-radius: 4px; display: inline-block; }
.view-toggle { display: inline-flex; gap: 2px; }
.data-table { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 14px; }
.data-table .table th { position: sticky; top: 0; }
.hbar-list { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 70px; gap: 14px; align-items: center; font-size: 14px; }
.hbar .name { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 550; }
.hbar .name a, .hbar .name span { overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 8px; background: var(--surface-2); border-radius: 999px; position: relative; overflow: visible; }
.hbar .fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  transform: scaleX(0); transform-origin: left center;
}
.hbar .avg-line { opacity: 0; }
.hbar-list.in-view .fill { transform: none; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 35ms); }
.hbar-list.in-view .avg-line { opacity: 0.45; transition: opacity 0.4s ease calc(0.5s + var(--i, 0) * 35ms); }
.hbar .val { text-align: right; font-weight: 680; font-variant-numeric: tabular-nums; }
.hbar .avg-line { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--text); }

.rank-list { list-style: none; margin: 0 -10px; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; transition: background 0.15s; }
.rank-list li + li { margin-top: 2px; }
.rank-list li:hover { background: var(--surface-2); }
.rank-list .pos {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%;
  font-size: 12px; font-weight: 750; color: var(--text-3); background: var(--surface-2); font-variant-numeric: tabular-nums;
}
.rank-list li:nth-child(-n+3) .pos { color: var(--accent-text); background: var(--accent-soft); }
.rank-list .info { flex: 1; min-width: 0; }
.rank-list .info .t { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .info .t a, .station-cell .t a { color: var(--text); }
.rank-list .info .t a:hover, .station-cell .t a:hover { color: var(--accent-text); }
.rank-list .info .a { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .p { font-family: var(--font-display); font-weight: 740; font-size: 15.5px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

/* ---------- Žemėlapis ---------- */
.map-layout { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - var(--header-h)); min-height: 520px; }
.map-panel { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.map-panel-head { padding: 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.map-list { overflow-y: auto; flex: 1; }
.map-list-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; align-items: center; }
.map-list-item:hover, .map-list-item.active { background: var(--surface-2); }
.map-list-item .info { flex: 1; min-width: 0; }
.map-list-item .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-list-item .a { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-list-item .p { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.map-list-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.map-filters { display: flex; flex-direction: column; gap: 12px; }
.map-filters-toggle { display: none; margin-left: auto; }
.badge-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.badge-count[hidden] { display: none; }
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--surface-2); }
.map-legend {
  position: absolute; left: 12px; bottom: 24px; z-index: 500; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12px; color: var(--text-2);
}
.map-legend .scale { display: flex; gap: 2px; margin: 6px 0 4px; }
.map-legend .scale i { width: 26px; height: 8px; border-radius: 2px; }
.map-legend .ends { display: flex; justify-content: space-between; }
.map-floating { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; gap: 8px; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.6); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.6); }
}
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 11px; }

/* Kainos žymeklis */
.pm { background: none; border: 0; }
.pm-bubble {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 3px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--neutral); box-shadow: var(--shadow); white-space: nowrap;
  font-weight: 750; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; transform: translate(-50%, -100%);
  position: absolute; left: 0; top: 0;
}
.pm-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: inherit; border-bottom: 0; }
.pm-bubble .logo { width: 22px; height: 22px; box-shadow: none; }
.pm-bubble .logo-fallback { font-size: 8px; }
.pm-bubble.na { color: var(--text-3); font-weight: 600; }
.pm-bubble.stale { border-style: dashed; }
.pm-bubble.best { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--cheap-3), var(--shadow); }
.pm-bubble.l-c3 { border-color: var(--cheap-3); }
.pm-bubble.l-c2 { border-color: var(--cheap-2); }
.pm-bubble.l-c1 { border-color: var(--cheap-1); }
.pm-bubble.l-n { border-color: var(--neutral); }
.pm-bubble.l-p1 { border-color: var(--pricey-1); }
.pm-bubble.l-p2 { border-color: var(--pricey-2); }
.pm-bubble.l-p3 { border-color: var(--pricey-3); }
.marker-cluster-custom {
  background: var(--surface); border: 2px solid var(--accent); border-radius: 999px; box-shadow: var(--shadow);
  display: grid; place-items: center; text-align: center; color: var(--text); line-height: 1.05;
}
.marker-cluster-custom b { font-size: 12.5px; font-variant-numeric: tabular-nums; display: block; }
.marker-cluster-custom span { font-size: 10px; color: var(--text-2); display: block; }

/* Iššokantis langas */
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; min-width: 250px; font-size: 13.5px; line-height: 1.45; }
.popup-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.popup-head .t { font-weight: 700; font-size: 14.5px; }
.popup-head .a { font-size: 12.5px; color: var(--text-2); }
.popup-prices { display: grid; gap: 4px; margin: 8px 0; }
.popup-prices .pr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.popup-prices .pr b { margin-left: auto; font-variant-numeric: tabular-nums; }
.popup-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- Šoninis skydelis (degalinės detalės) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 1500; animation: fadeIn 0.15s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 1600; background: var(--bg);
  box-shadow: var(--shadow-lg); overflow-y: auto; animation: slideIn 0.22s ease-out; border-left: 1px solid var(--border);
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px; display: flex; gap: 14px; align-items: center; z-index: 2; }
.drawer-head .t { font-weight: 700; font-size: 17px; }
.drawer-body { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 16px; }

.price-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.price-tile .f { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.price-tile .p { font-size: 22px; font-weight: 750; margin: 6px 0 2px; letter-spacing: -0.01em; }
.price-tile .p.na { font-size: 15px; color: var(--text-3); font-weight: 600; }
.price-tile .d { font-size: 12px; color: var(--text-3); }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

/* ---------- Administravimas ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 4px 8px 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: 14px; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.admin-nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.admin-nav a svg { width: 17px; height: 17px; flex: none; }
.admin-nav .sep { height: 1px; background: var(--border); margin: 10px 6px; }
.admin-nav .count { margin-left: auto; font-size: 11.5px; background: var(--warning-soft); color: var(--warning); border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-top { height: 56px; border-bottom: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 50; }
.admin-content { padding: 24px; max-width: 1360px; }
.admin-nav .nav-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); padding: 14px 10px 6px; }
.admin-nav .nav-group:first-child { padding-top: 2px; }
.admin-title { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.admin-menu-btn { display: none; }
.admin-backdrop { display: none; position: fixed; inset: 0; z-index: 110; background: rgb(0 0 0 / 0.35); }
.admin-search { position: relative; flex: 0 1 340px; min-width: 0; margin-left: 12px; }
.admin-search > svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.admin-search .input { height: 36px; padding-left: 34px; padding-right: 34px; border-radius: 10px; font-size: 13.5px; }
.admin-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 11px var(--mono); color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }
.admin-search .input:focus + kbd { display: none; }

/* Užduočių kortelės apžvalgoje ir paspaudžiami rodikliai */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.todo:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface-2); }
.todo .n { font-family: var(--font-display); font-size: 22px; font-weight: 720; line-height: 1; min-width: 36px; font-variant-numeric: tabular-nums; }
.todo .t { font-weight: 650; font-size: 14px; }
.todo .d { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.todo.warn .n { color: var(--warning); }
.todo.bad .n { color: var(--critical); }
a.stat { display: block; color: inherit; }
a.stat:hover { text-decoration: none; }
a.stat .k::after { content: ' →'; opacity: 0; transition: opacity 0.15s; }
a.stat:hover .k::after { opacity: 1; }

/* Sąrašų skirtukai su skaičiais ir masiniai veiksmai */
.tabs-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.segmented a .n { font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-left: 6px; font-variant-numeric: tabular-nums; }
.segmented a[aria-current="page"] .n { color: var(--accent-text); }
.bulk-bar { position: sticky; bottom: 16px; z-index: 40; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); }
.bulk-bar[hidden] { display: none; }
.bulk-bar .btn { background: var(--surface); color: var(--text); border-color: transparent; }
.table td.check, .table th.check { width: 36px; padding-right: 0; }
.table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.save-bar { position: sticky; bottom: 0; z-index: 40; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin: 0 -4px; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); border-bottom: 0; box-shadow: var(--shadow); }
.save-bar .dirty { display: none; color: var(--warning); font-size: 13px; font-weight: 600; }
form.is-dirty .save-bar .dirty { display: inline; }
.flash { align-items: flex-start; }
.flash > div { flex: 1; }
.flash-close { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 2px; border-radius: 6px; display: grid; }
.flash-close:hover { color: var(--text); background: rgb(0 0 0 / 0.06); }
.flash-close svg { width: 16px; height: 16px; margin: 0; }
@media (max-width: 600px) {
  .admin-search kbd, .hide-sm { display: none; }
  .admin-search { margin-left: 0; flex: 1 1 auto; }
  .admin-title { display: none; }
}

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-3); }
.steps li .ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.steps li.done { color: var(--text); }
.steps li.done .ic { background: var(--good); border-color: var(--good); color: #fff; }
.steps li.active { color: var(--text); font-weight: 650; }
.steps li.active .ic { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps li.failed { color: var(--critical); font-weight: 650; }
.steps li.failed .ic { background: var(--critical); border-color: var(--critical); color: #fff; }
.steps li .ic svg { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.summary-grid .item { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.summary-grid .item .k { font-size: 12px; color: var(--text-2); }
.summary-grid .item .v { font-weight: 700; font-size: 16px; margin-top: 2px; word-break: break-word; }

.code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
pre.code { padding: 12px; overflow-x: auto; white-space: pre-wrap; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(400px, 100%); }
.login-card.setup-card { width: min(640px, 100%); }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }

/* Aplinkos patikra ir pirmo paleidimo žingsniai (diegimas, priežiūra) */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.checks li .badge { justify-content: center; }
.checks li .subtle { display: block; word-break: break-word; }
.checks li .actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.task-output { max-height: 360px; overflow: auto; margin: 0; }
.task-list { display: grid; gap: 12px; }
.task-list form { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.task-list form:first-child { border-top: 0; padding-top: 0; }
.task-list form .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .checks li { grid-template-columns: 1fr; gap: 4px; }
  .checks li .actions { grid-column: 1; }
  .task-list form { flex-direction: column; }
}

.flash { margin-bottom: 16px; }

/* ---------- Prisitaikymas ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-badge .long { display: none; }
}
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  :root { --section: 48px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .rank-cols { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); }
  .page { padding: 32px 16px 64px; }
  .span-2 { grid-column: auto; }
  .nav-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 14px; margin: 0; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .map-layout { grid-template-columns: 1fr; grid-template-rows: 1fr; height: calc(100dvh - var(--header-h)); }
  /* Apatinis skydelis: suskleistas rodo tik antraštę, išskleistas slenkamas visas */
  .map-panel {
    position: absolute; z-index: 1001; left: 0; right: 0; bottom: 0; max-height: calc(100% - 64px);
    overflow-y: auto; overscroll-behavior: contain; border-right: 0; border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); transform: translateY(calc(100% - 112px)); transition: transform 0.25s;
  }
  .map-panel:not(.expanded) { overflow: hidden; }
  .map-panel::before { content: ""; display: block; flex: none; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 0; }
  .map-panel.expanded { transform: none; }
  .map-panel-head { padding-top: 10px; flex: none; }
  .map-list { flex: none; overflow: visible; }
  .map-intro { display: none; }
  .map-panel .filters .field, .map-panel .filters .field.narrow { flex: 1 1 calc(50% - 6px); min-width: 0; }
  /* Filtrai suskleisti po mygtuku, sąrašo eilutės kompaktiškos */
  .map-filters { display: none; }
  .map-panel.filters-open .map-filters { display: flex; }
  .map-filters-toggle { display: inline-flex; }
  .map-panel.filters-open .map-filters-toggle { background: var(--surface-2); }
  .map-list-item { padding: 9px 16px; gap: 10px; }
  .map-list-item .t { font-size: 13.5px; }
  .map-list-item .a { font-size: 12px; }
  .map-list-item .meta:not(.stale) { display: none; }
  #map-to-list span { display: none; }
  .map-layout { position: relative; }
  .map-wrap { position: absolute; inset: 0; }
  /* Leaflet valdikliai ir legenda – virš suskleisto skydelio */
  .map-wrap .leaflet-bottom { bottom: 112px; }
  .map-legend { left: 8px; bottom: 136px; padding: 7px 9px; font-size: 11px; border-radius: 10px; }
  .map-legend > strong, .map-legend > div:last-child { display: none; }
  .map-legend .scale { margin: 0 0 3px; }
  .map-legend .scale i { width: 16px; height: 6px; }
  .map-legend .ends { gap: 8px; }
  .map-floating .btn span { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-menu-btn { display: grid; }
  .admin-side { position: fixed; z-index: 120; left: 0; top: 0; bottom: 0; width: 264px; height: 100dvh; transform: translateX(-100%); transition: transform 0.22s var(--ease); box-shadow: var(--shadow-lg); }
  .admin-side.open { transform: none; }
  .admin-backdrop:not([hidden]) { display: block; }
  .admin-top { padding: 0 12px; gap: 8px; }
  .admin-user { display: none; }
  .admin-content { padding: 16px; }
  .hbar { grid-template-columns: minmax(90px, 130px) 1fr 62px; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 22px; }
  :root { --section: 40px; }
  .page { padding: 24px 16px 48px; }
  .price-card .value { font-size: 38px; }
  .more-charts { padding: 0 16px 16px; }
  .fuel-scope { margin-top: 32px; }
  .fuel-bar { width: 100%; padding: 4px; top: calc(var(--header-h) + 8px); }
  .fuel-bar-label { display: none; }
  .fuel-bar .segmented { flex: 1; flex-wrap: nowrap; }
  .fuel-bar .segmented button { flex: 1; justify-content: center; padding: 7px 8px; }
  .section-head h2 { font-size: 20px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--border); }
  .price-tiles { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .data-badge { display: none; }
  .filters .field, .filters .field.narrow { flex: 1 1 100%; }
  .table td, .table th { padding: 10px; }
}

@media print {
  .site-header, .site-footer, .map-panel, .btn, .segmented { display: none !important; }
  .card { box-shadow: none; }
}

/* Leaflet nuorodų spalva neturi perrašyti mygtukų */
.leaflet-container a.btn { color: var(--text); }
.leaflet-container a.btn-primary { color: var(--surface); }
.leaflet-container a.btn:hover { text-decoration: none; }

/* ---------- Naudotojo vietos langas ---------- */
.loc-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.loc-dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.loc-dialog > * + * { margin-top: 12px; }
.loc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loc-head h2 { margin: 0; font-size: 18px; }
.loc-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.loc-current .t { font-weight: 600; }
.loc-results { display: flex; flex-direction: column; gap: 4px; }
.loc-results:empty { display: none; }
.loc-result {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; text-align: left; width: 100%;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
}
.loc-result:hover, .loc-result:focus-visible { background: var(--surface-2); }
.loc-result .t { font-weight: 600; }
.loc-result .subtle { font-size: 12px; }
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.loc-msg { font-size: 13.5px; color: var(--text-2); }
.loc-msg:empty { display: none; }
.loc-msg.bad { color: var(--critical); }
.loc-foot { font-size: 12px; }
.btn.has-loc { border-color: var(--accent); color: var(--accent-text); max-width: 260px; }
.btn.has-loc span { overflow: hidden; text-overflow: ellipsis; }
.map-picking #map { cursor: crosshair; }
.map-pick-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 600; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 8px 8px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.user-pin { background: none; border: 0; }
.user-pin i {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow);
}

/* Programėlės įdiegimas (PWA) */
.btn-install {
  height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-install:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-install svg { width: 16px; height: 16px; }
.btn-install[hidden] { display: none; }
@media (max-width: 600px) { .btn-install span { display: none; } .btn-install { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 600px) { .site-header .inner { gap: 10px; } .brand { min-width: 0; overflow: hidden; } .brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .header-actions { gap: 6px; flex: none; } }
@media (max-width: 380px) { .brand small { display: none; } }
/* Mobilioji įdiegimo juosta ir instrukcijų langas */
.install-banner {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 1600; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); animation: install-up 0.25s ease-out;
}
.install-banner img { border-radius: 10px; flex: none; }
.install-banner div { flex: 1; min-width: 0; line-height: 1.25; }
.install-banner strong { display: block; font-size: 14px; }
.install-banner span { display: block; font-size: 12px; color: var(--text-2); }
.install-banner .btn { flex: none; }
.install-sheet {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.45); padding: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.install-sheet-panel {
  position: relative; width: 100%; max-width: 440px; background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 18px 18px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); animation: install-up 0.25s ease-out;
}
/* iPhone Safari: rodyklė žemyn į „Bendrinti“ mygtuką apatinėje juostoje */
.install-sheet-panel.has-arrow { margin-bottom: 20px; }
.install-sheet-panel.has-arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; margin-left: -10px;
  background: var(--surface); transform: rotate(45deg);
}
.install-close { position: absolute; top: 10px; right: 10px; }
.install-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 36px; }
.install-sheet-head img { border-radius: 12px; }
.install-sheet-head strong { display: block; font-size: 16px; }
.install-sheet-head span { display: block; font-size: 13px; color: var(--text-2); }
.install-sheet p { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.install-sheet ol { margin: 0 0 4px; padding-left: 22px; font-size: 15px; display: grid; gap: 8px; }
.install-sheet ol svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-sheet ol svg circle { fill: var(--accent-text); stroke: none; }
.install-sheet .btn { margin-top: 12px; width: 100%; justify-content: center; }
@keyframes install-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .install-banner, .install-sheet-panel { animation: none; } }
@media print { .install-banner, .install-sheet { display: none !important; } }

/* ---------- Apžvalga: netoliese ---------- */
.nearby-h { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.nearby-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nearby-empty p { margin: 0; color: var(--text-2); max-width: 60ch; }
#nearby .card-head { flex-wrap: wrap; gap: 12px; }

/* ---------- Mėgstamos degalinės ---------- */
.fav-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; vertical-align: middle;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-3); cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.fav-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-btn:hover { color: var(--warning); border-color: var(--border-strong); }
.fav-btn[aria-pressed="true"] { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn.btn { display: inline-flex; width: auto; height: auto; gap: 6px; padding: 6px 12px; }
.fav-btn.btn svg { width: 15px; height: 15px; }
.rank-list li .fav-btn { flex: none; }

/* ---------- Ženklelių sąrašas (tinklai savivaldybėje) ---------- */
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 560; font-size: 13.5px;
}
.chip:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface); }

/* ---------- Prieinamumas ---------- */
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; top: 10px; left: 10px; z-index: 3000; width: auto; height: auto; margin: 0; clip: auto; overflow: visible;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 650; box-shadow: var(--shadow-lg);
}
main:focus { outline: none; }

/* Nuorodos tekste atskiriamos ne vien spalva (WCAG 1.4.1) */
:where(p, .subtle, .notice, dd, .card-foot, .site-footer, .table tbody th, .text-list) a:not(.btn):not(.chip) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}

/* Maršruto skaičiuoklė telefone: lieka degalinė, atstumas, iš viso ir sutaupymas */
@media (max-width: 600px) {
  .route-table th:nth-child(3), .route-table td:nth-child(3),
  .route-table th:nth-child(4), .route-table td:nth-child(4),
  .route-table th:nth-child(5), .route-table td:nth-child(5) { display: none; }
  .route-table th, .route-table td { padding: 10px 5px; font-size: 13px; }
  .route-table .price { font-size: 14px; }
  .route-table th { white-space: normal; }
  .route-table .station-cell { min-width: 0; }
  .route-table .station-cell .logo { display: none; }
  .route-table .station-cell .a, .route-table td:nth-child(2) .subtle { display: none; }
}

/* ---------- Savaitės ritmas ---------- */
.rhythm-bar-cell { width: 34%; min-width: 120px; }
.rhythm-bar { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); }
.rhythm-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border-strong); }
.rhythm-bar span { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--neutral); }
.rhythm-bar span.down { background: var(--down); }
.rhythm-bar span.up { background: var(--up); }
.rhythm-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.trend-line { display: flex; gap: 10px; align-items: baseline; margin: 0 0 14px; }
.trend-line .delta { font-weight: 650; }
.rhythm-hint .notice { margin-top: 14px; }
/* Eilučių antraštės (th scope="row") atrodo kaip įprasti langeliai, ne kaip stulpelių antraštės */
.table tbody th {
  text-transform: none; letter-spacing: normal; font-size: inherit; color: var(--text); background: none;
  padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: normal;
}
.table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover th { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.rhythm-bar.one-sided::after { display: none; }

/* Mėnesio išlaidos telefone: lieka „kur“, per metus ir skirtumas; istorijoje — be juostos */
@media (max-width: 600px) {
  .monthly-table th:nth-child(2), .monthly-table td:nth-child(2),
  .monthly-table th:nth-child(3), .monthly-table td:nth-child(3),
  .monthly-history th:nth-child(4), .monthly-history td:nth-child(4) { display: none; }
  .monthly-table th, .monthly-table td, .monthly-history th, .monthly-history td { padding: 10px 6px; }
  .monthly-table thead th { white-space: normal; }
}
.trend-line { flex-wrap: wrap; }
.trend-line .delta, .rhythm-hint .delta { white-space: normal; display: inline; }
@media (max-width: 600px) {
  .rhythm-table th:nth-child(2), .rhythm-table td:nth-child(2),
  .rhythm-table th:nth-child(5), .rhythm-table td:nth-child(5) { display: none; }
  .rhythm-table th, .rhythm-table td { padding: 10px 6px; }
  .rhythm-table thead th { white-space: normal; }
}
@media (max-width: 600px) { .rhythm-table th[scope="row"] .badge { display: block; width: fit-content; margin-top: 4px; } }

/* ==========================================================================
   Reklama (Google AdSense) — vieta neužima ploto, kol reklama neužpildyta
   ========================================================================== */
.ad-slot { display: block; margin: 0; min-width: 0; }
.ad-slot .ad-label { display: none; margin-bottom: 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ad-slot[data-status="filled"] { margin-top: var(--gap-lg); }
.ad-slot[data-status="filled"] .ad-label { display: block; }
.ad-slot[data-status="unfilled"] { display: none; }
.ad-top[data-status="filled"] { margin: 0 0 var(--gap-lg); }

/* Simuliacija: pažymėtos vietos be AdSense (Admin → Nustatymai → Reklama) */
.ad-slot.ad-preview { margin-top: var(--gap-lg); }
.ad-top.ad-preview { margin: 0 0 var(--gap-lg); }
.ad-preview .ad-label { display: block; }
.ad-preview .ad-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 90px; padding: 12px; border: 2px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--border) 10px 20px);
  color: var(--text-3); text-align: center; font-size: 13px;
}
.ad-preview .ad-box strong { color: var(--text-2); font-size: 14px; }
.ad-content.ad-preview .ad-box { min-height: 250px; }
@media print { .ad-slot { display: none !important; } }

/* ==========================================================================
   Slapukų sutikimas ir privatumo politika
   ========================================================================== */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1700; max-width: 560px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 20px; font-size: 14px; color: var(--text-2);
}
.consent[hidden] { display: none; }
.consent h2 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.consent p { margin: 0 0 12px; }
.consent-options { display: grid; gap: 8px; margin: 0 0 14px; }
.consent-options[hidden] { display: none; }
.consent-options label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent-options input { margin-top: 3px; flex: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent-actions .btn[hidden] { display: none; }
@media (max-width: 600px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .consent-actions .btn { flex: 1 1 auto; }
}
@media print { .consent { display: none !important; } }
.legal h2 { margin: 28px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
/* Slapukų piktograma: visada matoma, paslepiama kol atidaryta juosta */
.cookie-fab {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1400; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-hover); transition: color 0.15s, transform 0.15s;
}
.cookie-fab:hover { color: var(--accent-text); transform: scale(1.06); text-decoration: none; }
.cookie-fab svg { width: 20px; height: 20px; }
.consent:not([hidden]) ~ .cookie-fab { display: none; }
.page-map .cookie-fab { left: auto; right: 12px; bottom: 32px; }
@media (max-width: 900px) {
  .page-map .cookie-fab { bottom: 136px; }
  .page-map:has(.map-panel.expanded) .cookie-fab { display: none; }
}
@media print { .cookie-fab { display: none !important; } }

/* Admin → Lankomumas */
.share-list { display: grid; gap: 12px; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.share-row .num { color: var(--text-2); font-size: 13px; }
.share-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.share-track > div { height: 100%; background: var(--accent); border-radius: 3px; }
.hour-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; }
.hour-bars .hour { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hour-bars .bar { height: 140px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hour-bars .bar > div { width: 100%; background: var(--accent); min-height: 1px; }
.hour-bars span { font-size: 11px; color: var(--axis); text-align: center; min-height: 14px; }
@media (max-width: 640px) { .hour-bars { gap: 2px; } .hour-bars .bar { height: 100px; } }

/* Šalių palyginimas (/salys): šalių kainų sąrašas kortelėje */
.cmp-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.cmp-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.cmp-list li:first-child { border-top: 0; }
.cmp-list .c-name { display: flex; align-items: center; min-width: 0; font-weight: 600; }
.cmp-list .c-price { font-family: var(--font-display); font-size: 20px; font-weight: 740; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cmp-list .c-diff { min-width: 9.5em; text-align: right; }
.cmp-list li.is-base .c-diff { color: var(--text-3); font-size: 13px; }
@media (max-width: 420px) {
  .cmp-list li { grid-template-columns: 1fr auto; }
  .cmp-list .c-diff { grid-column: 1 / -1; min-width: 0; text-align: left; }
}

/* SEO: dažni klausimai (atsakymai iš naujausių duomenų) ir vidinės nuorodos poraštėje */
.faq-section { max-width: 860px; margin-inline: auto; }
.faq-section .section-head { justify-content: center; text-align: center; }
.faq-section .section-head p { margin-inline: auto; }
.faq { display: grid; gap: 8px; interpolate-size: allow-keywords; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-item h3 { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; letter-spacing: -0.01em; transition: color 0.15s var(--ease); }
.faq-item summary:hover h3, .faq-item[open] h3 { color: var(--accent-text); }
.faq-num {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-3); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-item[open] .faq-num { background: var(--accent-soft); color: var(--accent-text); }
.faq-chevron {
  flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2);
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}
.faq-chevron::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -5px 0 0 -3.5px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg);
}
.faq-item summary:hover .faq-chevron { background: var(--surface-3); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--accent-soft); }
.faq-item[open] .faq-chevron::before { border-color: var(--accent-text); }
/* Sklandus išskleidimas naršyklėse, kurios palaiko ::details-content (kitur — iškart) */
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-answer { padding: 0 16px 16px 56px; }
.faq-answer p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; max-width: 75ch; }
.faq-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background-color 0.15s var(--ease), gap 0.15s var(--ease);
}
.faq-link:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); gap: 9px; }
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content, .faq-chevron, .faq-link { transition: none; }
}
.site-footer .footer-links { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.site-footer .footer-bottom p { margin: 0; }
@media (max-width: 600px) {
  .faq-item summary { padding: 12px 14px; gap: 10px; }
  .faq-num { display: none; }
  .faq-answer { padding: 0 14px 14px; }
}
.map-title { font-size: 16px; margin: 0; letter-spacing: -0.01em; }

/* ---------- Administravimas: SEO ---------- */
.seo-count { font-weight: 400; }
.seo-count.over { color: var(--warning); }
.serp { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: var(--text); margin-bottom: 4px; overflow-wrap: anywhere; }
.serp-url span { color: var(--text-3); }
.serp-title { font-size: 19px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; }
.serp-desc { font-size: 14px; line-height: 1.55; color: var(--text-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serp-title { color: #8ab4f8; } }
:root[data-theme="dark"] .serp-title { color: #8ab4f8; }
.seo-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 14px; }
.seo-dl dt { color: var(--text-3); }
.seo-dl dd { margin: 0; overflow-wrap: anywhere; }
.seo-dl .chip, .seo-outline .chip { padding: 2px 9px; font-size: 12.5px; margin: 0 0 4px; }
.chip.chip-focus { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.seo-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.seo-checks li { display: flex; gap: 8px; align-items: flex-start; }
.seo-checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.seo-checks .good svg { color: var(--good); }
.seo-checks .warn svg { color: var(--warning); }
.seo-checks .bad svg { color: var(--critical); }
.seo-checks .info svg { color: var(--text-3); }
.seo-kw .c { text-align: center; }
@media (max-width: 600px) { .seo-dl { grid-template-columns: 1fr; gap: 2px; } .seo-dl dd { margin-bottom: 8px; } }
.map-intro { margin: 2px 0 0; font-size: 12.5px; }
.seo-links { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 24px; font-size: 14px; }

/* Išskleidžiamas nuorodų sąrašas (tinklai, savivaldybės) */
.seo-links-box .seo-links { padding: 4px 24px 24px; }
@media (max-width: 600px) { .seo-links-box .seo-links { padding: 4px 16px 20px; } }

/* „Rodyti daugiau“ po ilgais sąrašais */
.more-row { display: flex; justify-content: center; padding: 4px 16px 16px; }
.more-row[hidden] { display: none; }

/* Telefone lentelės eilutė — kortelė: pavadinimas ir kaina viršuje, kiti duomenys smulkiai apačioje (be horizontalaus slinkimo) */
@media (max-width: 600px) {
  .table-cards { font-size: 14px; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-cards tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table-cards tbody tr:last-child { border-bottom: 0; }
  .table-cards tbody tr::after { content: ""; order: 2; flex: 0 0 100%; height: 0; margin-top: -4px; }
  .table-cards tbody td, .table-cards tbody th { display: block; padding: 0; border: 0; background: none !important; text-align: left; }
  .table-cards .tc-main { order: 0; flex: 1 1 0; min-width: 0; }
  .table-cards .price { order: 1; margin-left: auto; font-size: 17px; }
  .table-cards tbody td:not(.tc-main):not(.price) { order: 3; font-size: 13px; color: var(--text-2); }
  .table-cards tbody td[colspan] { flex: 1 1 100%; order: 0; }
  .table-cards tbody tr:has(td[colspan])::after { display: none; }
  .table-cards td[data-label]::before { content: attr(data-label) " "; color: var(--text-3); }
  .table-cards td.tc-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
  .table-cards .tc-empty { display: none !important; }
  .table-cards .station-cell { min-width: 0; gap: 10px; }
  .table-cards .station-cell .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-cards .station-cell > div { min-width: 0; }
}

/* ---------- Pranešimai apie kainos kritimą (push.js) ---------- */
.push-bell { position: relative; }
.push-bell.on { color: var(--accent-text); }
.push-bell.on::after {
  content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}
.push-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.push-field legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.push-fuels { display: flex; flex-wrap: wrap; gap: 6px; }
.push-chip { position: relative; display: inline-flex; cursor: pointer; }
.push-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.push-chip span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); font-size: 14px;
}
.push-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.push-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.push-dialog .btn-primary[disabled] { opacity: .55; cursor: not-allowed; }

/* Degalinių filtrai: telefone matoma tik paieška, kiti — po „Filtrai“ mygtuku */
.f-toggle { display: none; }
@media (max-width: 600px) {
  #filters .f-toggle { display: inline-flex; flex: 0 0 auto; align-self: flex-end; }
  #filters .filters { flex-wrap: wrap; }
  #filters .filters .field.f-search { flex: 1 1 0 !important; min-width: 0 !important; }
  #filters:not(.is-open) .filters .field:not(.f-search), #filters:not(.is-open) .f-checks { display: none; }
  #filters.is-open .filters .field.narrow { flex: 1 1 calc(50% - 6px); }
  #f-location:not(.has-loc) .f-loc-text { display: none; }
  #f-location .f-loc-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #filters .segmented { display: flex; width: 100%; }
  #filters .segmented button { flex: 1; justify-content: center; }
  .table-cards .station-cell .a + .subtle { display: none; }
}
.map-btn svg { flex: none; }
/* Veiksmų stulpelis: mygtukai lygiuojami per vidurį (ne pagal teksto bazinę liniją), žvaigždutė — kaip kiti mygtukai */
.tc-actions > * { vertical-align: middle; }
.tc-actions .fav-btn:not([aria-pressed="true"]) { border-color: var(--border-strong); box-shadow: var(--shadow-sm), var(--highlight); }
@media (max-width: 600px) {
  .table-cards .map-btn { width: 32px; height: 32px; padding: 0; }
  .table-cards .map-btn span { display: none; }
}

/* Degalinės kainos telefone — kompaktiškas sąrašas (rūšis kairėje, kaina dešinėje) vietoj trijų aukštų kortelių */
@media (max-width: 600px) {
  .price-tiles { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .price-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; border: 0; border-radius: 0; padding: 10px 14px; }
  .price-tile + .price-tile { border-top: 1px solid var(--border); }
  .price-tile .p { grid-column: 2; grid-row: 1 / span 3; margin: 0; font-size: 20px; text-align: right; }
  .price-tile .f, .price-tile .dv, .price-tile .d { grid-column: 1; }
  .price-tile .dv { font-size: 12.5px; }
  .price-tile .badge { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}
@media (max-width: 600px) {
  #filters .segmented { flex-wrap: nowrap; }
  #filters .segmented button { padding: 0 6px; min-width: 0; }
  #filters .row:has(> #f-cheapest) { width: 100%; flex-wrap: nowrap; gap: 6px; }
  #filters .row:has(> #f-cheapest) .btn { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
  #filters #f-location:not(.has-loc) { flex: 0 0 36px; padding: 0; }
}
/* Telefone aktuali data nerodoma (ji nurodyta virš sąrašo) — lieka tik „Pasenusi“ ženklelis */
@media (max-width: 600px) {
  .table-cards td.tc-date:not(:has(.badge)) { display: none; }
  .table-cards td.tc-date:has(.badge) { font-size: 0; }
  .table-cards td.tc-date .badge { font-size: 11.5px; }
}

/* ---------- Savivaldybių kainų žemėlapis laike (muni-map.js) ---------- */
:root { --div-cool: #2a78d6; --div-warm: #e34948; --div-mid: #ecebe7; --div-na: #f7f7f5; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) { --div-cool: #3987e5; --div-warm: #e66767; --div-mid: #3a3a37; --div-na: #1b1e26; }
}
:root[data-theme="dark"] { --div-cool: #3987e5; --div-warm: #e66767; --div-mid: #3a3a37; --div-na: #1b1e26; }
.mmap-c3 { fill: var(--div-cool); }
.mmap-c2 { fill: color-mix(in oklab, var(--div-cool) 66%, var(--div-mid)); }
.mmap-c1 { fill: color-mix(in oklab, var(--div-cool) 33%, var(--div-mid)); }
.mmap-m { fill: var(--div-mid); }
.mmap-w1 { fill: color-mix(in oklab, var(--div-warm) 33%, var(--div-mid)); }
.mmap-w2 { fill: color-mix(in oklab, var(--div-warm) 66%, var(--div-mid)); }
.mmap-w3 { fill: var(--div-warm); }
.mmap-na { fill: url(#mmap-hatch); }
.mmap-hatch-bg { fill: var(--div-na); }
.mmap-hatch-line { stroke: var(--text-2); stroke-width: 1.2; opacity: .35; }

.mmap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "map side" "ctrl ctrl"; gap: 12px 20px; align-items: start; }
.mmap-stage { grid-area: map; }
.mmap-side { grid-area: side; }
.mmap-ctrl { grid-area: ctrl; min-width: 0; }
@media (max-width: 860px) { .mmap-grid { grid-template-columns: 1fr; grid-template-areas: "map" "ctrl" "side"; } }
@media (max-width: 600px) { .mmap-label { font-size: 30px; stroke-width: 5px; } }
.mmap-stage { position: relative; }
.mmap-svg { aspect-ratio: 1000 / 761; width: 100%; }
.mmap-svg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mmap-svg path { stroke: var(--surface); stroke-width: 1.4; stroke-linejoin: round; transition: fill .18s linear; }
.mmap-svg a:hover path, .mmap-svg a:focus-visible path { stroke: var(--text); stroke-width: 2.2; }
.mmap-svg a:focus-visible { outline: none; }
.mmap-svg a:hover, .mmap-svg a:focus-visible { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .25)); }
.mmap-label { font-size: 15px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mmap-svg path { transition: none; } }
.mmap-tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; white-space: nowrap;
}
.mmap-tip .down, .mmap-side .down { color: var(--down); }
.mmap-tip .up, .mmap-side .up { color: var(--up); }
.mmap-side { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mmap-side h3 { margin: 6px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.mmap-date { font-size: 18px; font-weight: 700; }
.mmap-nat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.mmap-nat strong { font-size: 22px; }
.mmap-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mmap-rank li { display: flex; justify-content: space-between; gap: 8px; }
.mmap-rank small { font-size: 12px; margin-left: 4px; }
.mmap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--text-2); }
.mmap-legend-t { font-weight: 600; }
.mmap-key { display: inline-flex; align-items: center; gap: 5px; }
.mmap-key i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--border); }
.mmap-key i.mmap-c3 { background: var(--div-cool); }
.mmap-key i.mmap-c2 { background: color-mix(in oklab, var(--div-cool) 66%, var(--div-mid)); }
.mmap-key i.mmap-c1 { background: color-mix(in oklab, var(--div-cool) 33%, var(--div-mid)); }
.mmap-key i.mmap-m { background: var(--div-mid); }
.mmap-key i.mmap-w1 { background: color-mix(in oklab, var(--div-warm) 33%, var(--div-mid)); }
.mmap-key i.mmap-w2 { background: color-mix(in oklab, var(--div-warm) 66%, var(--div-mid)); }
.mmap-key i.mmap-w3 { background: var(--div-warm); }
.mmap-key i.mmap-na { background: repeating-linear-gradient(45deg, var(--div-na) 0 3px, color-mix(in oklab, var(--text-2) 35%, var(--div-na)) 3px 4.5px); }
.mmap-legend-t + .mmap-key { margin-left: -4px; }
.mmap-player { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.mmap-play { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; flex: none; }
.mmap-time { flex: 1; min-width: 0; }
.mmap-spark { display: block; width: 100%; height: 44px; cursor: pointer; }
.mmap-spark-area { fill: var(--accent-soft); }
.mmap-spark-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.mmap-spark-cursor { stroke: var(--text); stroke-width: 1.5; }
.mmap-time input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--accent); }
.mmap-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }

/* ---------- Kas pirmas keičia kainas (leaders.js) ---------- */
.ld-top { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.ld-top .lead-line { flex: 1 1 420px; margin: 0; }
.ld-week { display: flex; gap: 8px; align-items: flex-end; }
.ld-wd { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); }
.ld-wd-bar { width: 22px; height: 56px; display: flex; align-items: flex-end; }
.ld-wd-bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); }
.ld-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.ld-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ld-legend i { width: 12px; height: 12px; border-radius: 3px; }
.ld-early { background: var(--accent); }
.ld-same { background: color-mix(in oklab, var(--accent) 55%, var(--surface)); }
.ld-later { background: color-mix(in oklab, var(--accent) 25%, var(--surface)); }
.ld-none { background: repeating-linear-gradient(45deg, var(--surface-2) 0 3px, color-mix(in oklab, var(--text-2) 30%, var(--surface-2)) 3px 4.5px); }
.ld-bar { display: flex; gap: 2px; height: 12px; min-width: 140px; }
.ld-bar i { display: block; border-radius: 3px; flex-basis: 0; }
.ld-bar-cell { width: 28%; }
.ld-net { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
/* Pabraukiamas tik pavadinimas (WCAG 1.4.1), ne papildoma eilutė */
.table tbody th a.ld-net, .table tbody th a.ld-net:hover { text-decoration: none; }
.ld-net .ld-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ld-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ld-tools .ld-legend { margin: 0; }
.ld-net small { display: block; font-weight: 400; font-size: 12px; }
.ld-h { margin: 22px 0 8px; font-size: 15px; }
.ld-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ld-events li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.ld-ev-date { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .ld-events li { grid-template-columns: 1fr; gap: 2px; }
  .ld-bar-cell { display: none; }
  .ld-table thead th:nth-child(2) { display: none; }
}

/* „Kodėl pasikeitė kaina?“ kortelė */
.explain-row + .explain-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.explain-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.explain-parts li { display: flex; gap: 10px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.explain-parts li > span:first-child { color: var(--text-2); }
