*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Ozadje na korenskem <html> (ne le na body) → ob zagonu ni belih črt okrog robov
   (varni odmiki / overscroll) preden body prebarva platno. */
html { background: #F2FAF6; }
/* Brez svetlega overscroll-sija ob robovih (Android Chrome nariše belkast „glow" ob
   robu, ko se po odprtju/resume drsenje umiri → tanke bele črte okrog in na vrhu). */
html, body { overscroll-behavior: none; }
/* Brez sistemskih drsnikov (tanka črta ob desnem/zgornjem robu ob osvežitvi). */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #F2FAF6 0%, #FFFFFF 100%);
  color: #1A1A2E;
  min-height: 100dvh; /* skladno z .app-shell (100dvh) → brez relayouta ob resume */
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.form-open { padding-bottom: 1rem; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.font-display { font-weight: 700; }
.container { max-width: 768px; margin: 0 auto; padding: 1.25rem 1rem calc(5rem + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .container { padding: 2rem 1.5rem calc(5rem + env(safe-area-inset-bottom)); } }

/* Spodnja navigacija */
.app-shell { min-height: 100dvh; }
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: #fff; border-top: 1px solid #e7e5e4;
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}
.nav-btn {
  flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.6rem 0; color: #a8a29e; font-size: 0.72rem; font-weight: 600;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: #2FA37C; }

/* Glava pogleda */
.view-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 1rem; text-align: left; }
.view-title { font-size: 1.6rem; color: #2FA37C; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.view-top-akcije { display: flex; gap: 0.5rem; align-items: center; }

/* Repertoar vrstica */
.pesem-row.pesem-open { width: 100%; padding: 0.75rem 0.25rem; }
.pesem-meta-right { display: inline-flex; align-items: center; gap: 0.4rem; color: #78716c; font-size: 0.85rem; flex-shrink: 0; }
.pesem-meta-right svg { color: #c0bcb8; }

/* Statistika */
.stat-akcije { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.sekcija-naslov { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.05rem; color: #44403c; margin-bottom: 0.75rem; }
.stat-pesmi { display: flex; flex-direction: column; }
.stat-pesem-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.25rem; border-bottom: 1px solid #f0efed; font-size: 0.9rem; }
.pesem-note-akcije { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #f0efed; }

/* Repertoar kartice */
.rep-layout { position: relative; }
.rep-grid { display: flex; flex-direction: column; gap: 0.8rem; padding-right: 1.4rem; }
/* Zbirke/set-listi nimajo A-Z indeksa → kartice naj segajo do desnega roba (brez rezerve zanj). */
.rep-grid--polno { padding-right: 0; }

/* Locilna crta s crko med skupinami (MobileSheets stil) */
.rep-letter {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
  color: #1F7059; margin: 0.5rem 0 0.1rem; scroll-margin-top: 4.4rem;
}
.rep-letter::before, .rep-letter::after { content: ""; flex: 1; height: 1px; background: #e2ddd7; }
.rep-letter::before { flex: 0 0 0; }

/* Abecedni indeks ob desni strani (scrubabilen — drsenje prsta skoči na crko) */
.az-index {
  display: flex; flex-direction: column; align-items: center; gap: 0.08rem;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
/* Repertoar: lebdi ob desnem robu (vedno viden ob scrollu), a v pasu POD glavo
   (uvoz/iskalnik) in nad spodnjo navigacijo — da ne prekriva zgornjih kontrol. */
.az-index--fixed {
  position: fixed; right: 0.15rem; top: 12.4rem; bottom: 4rem;
  justify-content: flex-start;
  z-index: 40; padding: 0 0.2rem;
}
/* Visoki zasloni (telefoni): pas začnimo nižje, da prva črka pade POD vrstico z
   iskalnikom in zvezdo. Na nizkih zaslonih ostane 8rem — tam prostora ni na pretek. */
@media (min-height: 811px) {
  .az-index--fixed { top: 12.4rem; }
}
/* Ko je iskalnik v fokusu (odprta tipkovnica), skrij lebdeči indeks — med tipkanjem
   po besedilu ni potreben in ne sme prekriti kartic/komponent. Pomembno: ciljamo
   SAMO fokusiran vnos (:has(input:focus)), NE splošni :focus-within — sicer ostane
   fokus na gumbu kartice (po odprtju/zaprtju bralnika) in indeks izgine brez tipkovnice. */
.container:has(input:focus, textarea:focus) .az-index--fixed { display: none; }
.az-index button {
  background: none; border: none; padding: 2px 7px; cursor: pointer; font-family: inherit;
  font-size: 0.9rem; font-weight: 700; line-height: 1.15; color: #a8a29e;
  transform-origin: right center; will-change: transform;
  transition: transform 0.13s cubic-bezier(0.34,1.56,0.64,1), color 0.13s;
}
/* Nižji zasloni: 26 črk mora ostati znotraj pasu (top 8rem → bottom 4rem) brez prelivanja.
   Pri 0.9rem porabi indeks ~615px, pas pa je (višina zaslona − 192px) → pod ~810px zmanjšamo. */
@media (max-height: 810px) {
  .az-index button { font-size: 0.78rem; padding: 1px 6px; }
  .az-index { gap: 0.04rem; }
}
.az-index button:active, .az-index button.akt { color: #2FA37C; }
@media (hover: hover) { .az-index button:hover { color: #2FA37C; } }
/* Zadnja izbrana črka ostane zelena (tap ali drsenje) — „tu si" indikator. */
.az-index button.az-sel { color: #2FA37C; }
/* Mehurčki med drsenjem: aktivna črka poskoči, sosednje postopno manj. */
.az-index button.akt { transform: scale(2); color: #1F7059; }
.az-index button.blizu { transform: scale(1.55); }
.az-index button.blizu2 { transform: scale(1.25); }
.az-index button.prazna { color: #dcd8d2; cursor: default; }
.az-index button.prazna:hover { color: #dcd8d2; }
/* Velik balon s trenutno crko med drsenjem */
.az-bubble {
  position: fixed; right: 2.4rem; z-index: 41; pointer-events: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff; background: #2FA37C;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22); transform: translateY(-50%) scale(0.8);
  opacity: 0; transition: opacity 0.12s, transform 0.12s;
}
.az-bubble.shown { opacity: 1; transform: translateY(-50%) scale(1); }

.rep-card {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; text-align: left;
  background: #fff; border: 1px solid #ece9e6; border-radius: 14px; padding: 0.8rem 0.9rem;
  cursor: pointer; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.07); transition: all 0.15s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.rep-card:hover { border-color: #2FA37C; box-shadow: 0 2px 10px rgba(47,163,124,0.10); }

/* Ikona „notni list z noto" (Higgsfield oblika kot maska) — barvo prevzame od currentColor. */
.ik-nota {
  display: inline-block; width: 18px; height: 18px; background-color: currentColor;
  -webkit-mask: url(/nota.png) center / contain no-repeat;
  mask: url(/nota.png) center / contain no-repeat;
}
.rep-card--kompakt .rep-card-ikona .ik-nota { width: 18px; height: 18px; }
.picker-noten .ik-nota { width: 14px; height: 14px; }
.rep-card-main { display: flex; align-items: center; gap: 0.85rem; flex: 1; min-width: 0; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.rep-card-star { background: none; border: none; cursor: pointer; padding: 0.25rem; flex-shrink: 0; color: #cdc8c1; display: flex; }
.rep-card-star.on { color: #e0a01f; }
.rep-search-vrsta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; padding-right: 1.4rem; }
.fav-filter { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #ece9e6; background: #fff; color: #cdc8c1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fav-filter.on { color: #e0a01f; border-color: #e0a01f; background: #fffaf0; }
.rep-card-ikona {
  width: 46px; height: 46px; border-radius: 12px; background: #f0efed; color: #a8a29e;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.rep-card-ikona.ima { background: #e7f4ee; }
.rep-card-ikona svg { width: 22px; height: 22px; display: block; }
.rep-card-naslov {
  flex: 1; min-width: 0; font-weight: 600; color: #292524; font-size: 1.05rem; line-height: 1.25;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  overflow-wrap: break-word;
}
.rep-card > svg:last-child { color: #d6d3d1; flex-shrink: 0; }

/* Kompaktna vrstica (varianta C): iz 74 px na ~60 px, ne z manjšo tarčo za prst,
   ampak tako, da naslov teče v eni vrstici s tremi pikami in odpade prazen zrak.
   Velja za vse tri sezname repertoarja — pesmi, zbirke in set-liste. */
.rep-grid--kompakt { gap: 0.5rem; padding-right: 0; }
/* Samo seznam pesmi ima ob desni lebdeči A–Z indeks → tam pustimo pas zanj.
   Zbirke in set-listi ga nimajo, zato smejo pasice do roba (sicer so videti odrezane). */
.rep-grid--indeks { padding-right: 1.4rem; }
.rep-card--kompakt { padding: 0.55rem 0.7rem; gap: 0.7rem; border-radius: 12px; }
.rep-card--kompakt .rep-card-ikona { width: 34px; height: 34px; border-radius: 10px; }
.rep-card--kompakt .rep-card-ikona svg { width: 18px; height: 18px; }
.rep-card--kompakt .izbor-check { width: 34px; height: 34px; border-radius: 10px; }
.rep-card--kompakt .izbor-check svg { width: 16px; height: 16px; }
/* Naslov v ENI vrstici s tremi pikami: dve vrstici sta bili glavni razlog za višino,
   dolg naslov pa je itak berljiv že iz prvih besed. */
.rep-card--kompakt .rep-card-naslov {
  display: block; font-size: 0.94rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Multi-select: izbrana kartica + potrditveni krog */
.rep-card.izbran { border-color: #2FA37C; background: #eef9f3; box-shadow: 0 2px 10px rgba(47,163,124,0.14); }
.izbor-check {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #d6d3d1; color: #fff; background: #fff;
}
.izbor-check.on { background: #2FA37C; border-color: #2FA37C; }
.izbor-check svg { width: 22px; height: 22px; }
/* Akcijska vrstica izbora (prevzame dno med izbiranjem) */
.izbor-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.6rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #e7e5e4; box-shadow: 0 -3px 16px rgba(0,0,0,0.10);
}
.izbor-bar-x {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; border: 1px solid #e7e5e4; background: #faf9f8;
  color: #57534e; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.izbor-bar-vse { background: none; border: none; font-family: inherit; font-size: 0.82rem; font-weight: 700; color: #1F7059; cursor: pointer; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.izbor-bar-akcije { display: flex; gap: 0.35rem; margin-left: auto; flex-shrink: 0; }
.izbor-akcija {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.12rem; min-width: 3.3rem;
  padding: 0.35rem 0.35rem; border-radius: 10px; border: none; background: #e7f4ee; color: #1F7059;
  font-family: inherit; font-size: 0.68rem; font-weight: 700; cursor: pointer;
}
.izbor-akcija svg { width: 17px; height: 17px; }
.izbor-akcija.nevarno { background: #fdeceb; color: #d6453e; }
/* Izbirni dialog (seznam gumbov) */
.app-dialog-seznam { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.4rem 0 0.2rem; max-height: 50vh; overflow-y: auto; }
.app-dialog-moznost {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid #e7e5e4; background: #faf9f8;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: #292524; cursor: pointer;
}
.app-dialog-moznost:hover { border-color: #2FA37C; background: #eef9f3; }
.app-dialog-moznost svg { width: 18px; height: 18px; color: #1F7059; flex-shrink: 0; }
/* Zavihki repertoarja */
.rep-tabs { position: relative; display: flex; gap: 0.4rem; margin-bottom: 1rem; background: #f0efed; padding: 0.3rem; border-radius: 12px; }
/* Drseči jeziček (ozadje izbranega zavihka) — položaj postavi JS (postaviJezicek). */
.rep-pill {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0;
  background: #fff; border-radius: 9px;
  pointer-events: none;
}
.rep-tab {
  flex: 1; position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: none; border: none; border-radius: 9px; padding: 0.55rem; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #78716c; transition: color 0.15s;
}
.rep-tab svg { width: 16px; height: 16px; }
.rep-tab.active { color: #1F7059; }
.zbirka-count {
  flex-shrink: 0; min-width: 1.5rem; text-align: center; background: #f0efed; color: #78716c;
  border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.8rem; font-weight: 700;
}
.uvoz-cilj-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.uvoz-cilj-label { font-size: 0.85rem; font-weight: 600; color: #78716c; flex-shrink: 0; }
.uvoz-cilj-select { flex: 1; margin: 0; padding: 0.5rem 0.6rem; font-size: 0.9rem; }
.uvoz-files { display: flex; flex-direction: column; gap: 0.3rem; max-height: 30vh; overflow-y: auto; margin: 0.5rem 0; }
.uvoz-file { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: #44403c; background: #f7f6f4; border-radius: 8px; padding: 0.4rem 0.6rem; }
.uvoz-file svg { width: 15px; height: 15px; flex-shrink: 0; color: #2FA37C; }
.uvoz-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Uvoz: izbira cilja (Knjiznica + zbirke) kot tappable kartice */
.uvoz-cilji { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.uvoz-cilj {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  padding: 0.7rem 0.8rem; border-radius: 12px; border: 1px solid #e7e5e4; background: #faf9f8;
  font-family: inherit; font-size: 1rem; color: #292524; cursor: pointer;
}
.uvoz-cilj.sel { border-color: #2FA37C; background: #eef9f3; }
.uvoz-cilj.vedno { cursor: default; border-color: #cfe9dd; background: #eef9f3; }
.uvoz-cilj-ikona {
  width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: #e7f4ee; color: #1F7059;
}
.uvoz-cilj-ikona.lib { background: #2FA37C; color: #fff; }
.uvoz-cilj-ime { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uvoz-cilj-pod { font-weight: 500; font-size: 0.74rem; color: #78a394; margin-left: 0.45rem; }
.uvoz-cilj-check {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0; border-radius: 50%; border: 2px solid #d6d3d1;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.uvoz-cilj-check.on { background: #2FA37C; border-color: #2FA37C; }

.zbirka-akcije { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; }
.zbirka-akcije .btn-iz-knjiznice { margin-bottom: 0; flex: 1; }
.btn-predvajaj { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; flex: 1; margin: 0; padding: 0.7rem; }

/* Set-list: urejene vrstice s premikanjem */
.setlist-veza { display: inline-flex; vertical-align: middle; opacity: 0.6; }
.setlist-veza svg { width: 13px; height: 13px; }
.setlist-vrste { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.4rem; }
.setlist-vrsta {
  display: flex; align-items: center; gap: 0.6rem; background: #fff;
  border: 1px solid #ece9e6; border-radius: 12px; padding: 0.5rem 0.6rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.18s ease; will-change: transform;
}
.setlist-vrsta.dragging {
  transition: none; z-index: 5; position: relative;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.3); border-color: #2FA37C; opacity: 0.97;
}
.setlist-drag {
  flex-shrink: 0; background: none; border: none; padding: 0.3rem 0.1rem; cursor: grab;
  color: #c4beb6; display: flex; touch-action: none;
}
.setlist-drag:active { cursor: grabbing; }
.setlist-st {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: #e7f4ee; color: #1F7059;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.setlist-naslov { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.5rem; background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; padding: 0.3rem 0; }
.setlist-ime { font-weight: 600; font-size: 1.02rem; color: #292524; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setlist-ime.brez-not { color: #a8a29e; }
.setlist-opomba { flex-shrink: 0; font-size: 0.72rem; color: #b8860b; }
.setlist-premik { display: flex; flex-direction: column; gap: 0.1rem; flex-shrink: 0; }
.mini-ikona { background: none; border: none; padding: 0.2rem; cursor: pointer; color: #a8a29e; display: flex; }
.mini-ikona:hover { color: #2FA37C; }
.mini-ikona:disabled { opacity: 0.25; cursor: default; }

.rep-empty { text-align: center; padding: 3rem 1rem; }
.rep-empty-ikona { color: #d6d3d1; margin-bottom: 0.5rem; display: flex; justify-content: center; }

/* Stolpcni graf */
.bar-chart { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.75rem; }
.bar-top { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.25rem; gap: 0.5rem; }
.bar-label { color: #44403c; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-val { color: #78716c; font-weight: 600; flex-shrink: 0; }
.bar-track { height: 10px; background: #f0efed; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #2FA37C, #3fb96b); border-radius: 999px; }

/* Tortni graf */
.pie-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pie { width: 150px; height: 150px; flex-shrink: 0; }
.legend { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 140px; }
.legend-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: #44403c; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header */
header { text-align: center; margin-bottom: 1.5rem; }
@media (min-width: 640px) { header { margin-bottom: 2.5rem; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
  padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1rem;
  border: 1px solid rgba(47, 163, 124, 0.25);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #1F7059;
}
h1 {
  font-size: 2.5rem; color: #1F7059;
  margin: 0; line-height: 1.05; font-weight: 500; letter-spacing: -0.025em;
}
@media (min-width: 640px) { h1 { font-size: 3.5rem; } }
@media (min-width: 768px) { h1 { font-size: 4rem; } }
.subtitle { color: #78716c; margin: 0.5rem 0 0;
  font-size: 1rem;
}
@media (min-width: 640px) { .subtitle { font-size: 1.125rem; } }

.header-actions {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem;
  flex-wrap: wrap;
}
.header-btn {
  background: rgba(255,255,255,0.7); border: 1px solid rgba(214, 211, 209, 0.5);
  padding: 0.5rem 1rem; border-radius: 9999px; font-weight: 600;
  color: #44403c; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; transition: all 0.2s;
}
.header-btn:hover { background: white; }
.header-btn:active { transform: scale(0.96); }

/* Statistike */
.stats-big { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.stats-small { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }

/* Povzetek zaslužka na Nastopih (ena kartica namesto štirih ploščic). */
.povzetek {
  background: linear-gradient(135deg, #2FA37C, #1F7059); color: #fff;
  border-radius: 16px; padding: 0.9rem 1rem 0.85rem; margin-bottom: 0.85rem;
  box-shadow: 0 8px 20px -8px rgba(31,112,89,0.55);
}
.povzetek-vrh { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem; }
.povzetek-oznaka {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.78;
}
.povzetek-znesek { font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
.povzetek-ob { text-align: right; }
.povzetek-vsota { font-size: 1.05rem; font-weight: 700; opacity: 0.92; }
/* Trak = delež že plačanega. Pove v enem pogledu tisto, za kar sta prej bili dve ploščici. */
.povzetek-trak {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.25);
  margin: 0.7rem 0 0.55rem; overflow: hidden;
}
.povzetek-trak span { display: block; height: 100%; border-radius: 999px; background: #fff; }
.povzetek-drobno { display: flex; gap: 1rem; font-size: 0.76rem; font-weight: 500; opacity: 0.9; }
.povzetek-drobno span { display: inline-flex; align-items: center; gap: 0.3rem; }
.povzetek-drobno b { font-weight: 700; }
.povzetek-drobno svg { width: 13px; height: 13px; opacity: 0.85; }

.stat-big {
  color: white; border-radius: 16px; padding: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
@media (min-width: 640px) { .stat-big { padding: 1.25rem; } }
.stat-big.amber { background: linear-gradient(135deg, #2FA37C, #1F7059); }
.stat-big.emerald { background: linear-gradient(135deg, #2FA37C, #6FCF97); }
.stat-label {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.9; margin-bottom: 0.375rem;
}
@media (min-width: 640px) { .stat-label { font-size: 0.75rem; } }
.stat-value {
  font-size: 1.5rem; font-weight: 700; line-height: 1.1; word-break: break-word;
}
@media (min-width: 640px) { .stat-value { font-size: 2.25rem; } }

.stat-small {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.8);
}
@media (min-width: 640px) { .stat-small { padding: 1rem; } }
.stat-small .stat-label { color: #78716c; }
.stat-small .stat-value { font-size: 1.125rem; color: #44403c; }
@media (min-width: 640px) { .stat-small .stat-value { font-size: 1.5rem; } }
.stat-small.bold .stat-value { font-weight: 700; color: #1F7059; }

/* Filter */
.search-box { margin-bottom: 0.85rem; }
.search-input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.7rem; border: 1px solid #e2ded9; border-radius: 12px;
  font-size: 1rem; font-family: inherit; background-color: #fff; color: #44403c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239aa0b0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0.95rem center;
}
.search-input:focus { outline: 2px solid #2FA37C; border-color: #2FA37C; }

/* Lepljiv iskalnik (vsi zavihki): ostane na vrhu, vsebina se lepo zdrsne POD njim.
   Mehak preliv (::after) poskrbi, da se kartice ob robu nežno stopijo, ne „porežejo". */
.isk-sticky {
  position: sticky; top: 0; z-index: 30;
  background: #F2FAF6; margin-bottom: 0.85rem;
  /* Enakomeren rob + prostor, da fokusna (zelena) obroba vhodnega polja ostane ZNOTRAJ
     polnega ozadja in je preliv ne poreže. */
  padding: 0.6rem 0 0.45rem;
}
/* Mehak preliv za nežno stapljanje kartic, ki zdrsijo POD lepljivi iskalnik. Sedi v
   spodnjem razmiku (barva ozadja) in je krajši od njega, zato NE pade na filtrske gumbe
   pod iskalnikom (prej je njihov vrh potemnil kot „senca"). */
.isk-sticky::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 12px; pointer-events: none;
  background: linear-gradient(to bottom, #F2FAF6 0%, rgba(242,250,246,0) 100%);
}
/* Iskalnik ob lebdečem abecednem indeksu (npr. pogled zbirke): rezerviraj enak desni
   odmik kot .rep-grid (1.4rem), da polje z desnim robom ne zaide POD indeks. */
.isk-sticky--indeks { padding-right: 1.4rem; }
.isk-sticky--indeks::after { right: 1.4rem; }

/* Repertoar: uvozni gumb */
.uvozi-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  background: #2FA37C; color: #fff; border: none; border-radius: 14px;
  padding: 0.95rem; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(47,163,124,0.5); margin-bottom: 0.85rem;
}
.uvozi-btn:hover { background: #268a68; }
.offline-btn {
  width: 100%; background: #fff; color: #2FA37C; border: 1px solid #d6e9e0;
  border-radius: 12px; padding: 0.7rem; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; font-family: inherit; margin-bottom: 0.85rem;
}
.offline-btn:hover { background: #f0faf5; }
.offline-znak[hidden] { display: none; }  /* sicer prazen znak zaseda prostor v glavi in odrine zobnik */
.offline-znak {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: none; color: #c79049; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; opacity: 0.85;
}
.offline-znak.sync { color: #46c596; }
.offline-znak svg { width: 18px; height: 18px; }
.offline-znak.sync svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 0.25rem; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  white-space: nowrap; padding: 0.5rem 1rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 600; border: 1px solid #d6d3d1;
  background: rgba(255,255,255,0.7); color: #57534e;
  transition: all 0.2s;
}
.filter-btn:active { transform: scale(0.96); }
.filter-btn.active {
  background: #1F7059; color: white; border-color: #1F7059;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.filter-btn .count { opacity: 0.6; }

/* Desktop gumb */
.btn-new-desktop {
  display: none; align-items: center; gap: 0.5rem;
  background: #1F7059; color: white; padding: 0.75rem 1.5rem;
  border-radius: 12px; font-weight: 600; font-size: 0.875rem;
  border: none; margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(31, 112, 89, 0.25);
  transition: all 0.2s;
}
.btn-new-desktop:hover { background: #1F7059; }
.btn-new-desktop:active { transform: scale(0.97); }
@media (min-width: 768px) { .btn-new-desktop { display: inline-flex; } }

/* Obrazec */
.form-card {
  background: white; border-radius: 16px; padding: 1.25rem;
  margin-bottom: 1.5rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
  border: 1px solid #f5f5f4;
}
@media (min-width: 640px) { .form-card { padding: 1.75rem; } }
.form-title {
  font-size: 1.5rem; margin: 0 0 1.25rem; color: #1F7059;
  font-weight: 500;
}
@media (min-width: 640px) { .form-title { font-size: 1.875rem; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field.full { grid-column: 1 / -1; }
.form-label {
  display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #78716c; margin: 0 0 0.5rem 0.25rem;
}
.form-input, .form-textarea {
  width: 100%; background: #fafaf9; border: 2px solid #f5f5f4;
  padding: 0.75rem 1rem; border-radius: 12px; font-size: 1rem;
  color: #1F7059; transition: all 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: #2FA37C; background: white; }
.form-textarea { resize: none; min-height: 80px; }

.checkbox-row {
  display: flex; align-items: center; gap: 0.75rem; cursor: pointer;
  background: #fafaf9; padding: 0.75rem 1rem; border-radius: 12px;
  border: 2px solid #f5f5f4; transition: all 0.2s;
}
.checkbox-row:hover { border-color: #6FCF97; }
.fancy-check {
  appearance: none; -webkit-appearance: none;
  width: 1.5rem; height: 1.5rem; border: 2px solid #d6d3d1;
  border-radius: 8px; background: white; cursor: pointer;
  position: relative; transition: all 0.2s; flex-shrink: 0;
}
.fancy-check:checked { background: #2FA37C; border-color: #2FA37C; }
.fancy-check:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px; border: solid white;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

.time-picker {
  display: flex; align-items: center; gap: 0.5rem;
}
.time-select {
  flex: 1; text-align: center;
  padding: 0.75rem 0.5rem !important;
  font-size: 1rem;
  appearance: none; -webkit-appearance: none;
  background-image: none;
  cursor: pointer;
}
.time-sep {
  font-size: 1.5rem; font-weight: 700; color: #78716c;
  padding: 0 0.125rem;
}

.form-label-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; gap: 0.5rem;
}
.form-label-row .form-label { margin: 0; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #f5f5f4; border: 1px solid #e7e5e4;
  padding: 0.25rem 0.625rem; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #57534e; transition: all 0.2s;
}
.mini-btn:hover { background: #e7e5e4; color: #1F7059; }
.mini-btn:active { transform: scale(0.95); }

.suggestion-list {
  display: flex; flex-direction: column; gap: 0.375rem;
  margin-bottom: 0.625rem; max-height: 240px; overflow-y: auto;
  padding: 0.5rem; background: #fafaf9; border-radius: 12px;
  border: 1px solid #f5f5f4;
}
.suggestion-item {
  text-align: left; background: white; border: 1px solid #e7e5e4;
  padding: 0.625rem 0.875rem; border-radius: 10px; color: #44403c; font-size: 0.875rem;
  line-height: 1.4; transition: all 0.2s;
}
.suggestion-item:hover { border-color: #2FA37C; background: #F2FAF6; }
.suggestion-item:active { transform: scale(0.99); }

.sum-preview {
  background: linear-gradient(135deg, #1F7059, #1F7059);
  color: white; padding: 1rem 1.25rem; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.sum-preview-info { min-width: 0; flex: 1; }
.sum-preview-label {
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 0.125rem;
}
.sum-preview-detail { font-size: 0.75rem; opacity: 0.6; }
.sum-preview-value {
  font-size: 1.5rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}
@media (min-width: 400px) { .sum-preview-value { font-size: 1.75rem; } }
@media (min-width: 640px) { .sum-preview-value { font-size: 1.875rem; } }

.form-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form-actions { flex-direction: row; } }
.btn-save {
  flex: 1; background: #1F7059; color: white;
  padding: 0.875rem 1.5rem; border-radius: 12px;
  font-weight: 600; font-size: 1rem; border: none;
  box-shadow: 0 10px 15px -3px rgba(31, 112, 89, 0.25);
  transition: all 0.2s;
}
.btn-save { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-save svg { flex-shrink: 0; }
.btn-save:hover { background: #1F7059; }
.btn-save:active { transform: scale(0.97); }
.btn-cancel {
  padding: 0.875rem 1.5rem; border-radius: 12px;
  font-weight: 600; color: #57534e; background: transparent;
  border: none; font-size: 1rem;
}
.btn-cancel:hover { background: #f5f5f4; }

/* Letni pregled */
.leto-section { margin-bottom: 1.5rem; }
.leto-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.75rem; padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.6); border-radius: 12px;
  border: 1px solid rgba(214, 211, 209, 0.4);
  user-select: none; transition: background 0.2s;
}
.leto-header:hover { background: rgba(255,255,255,0.9); }
.leto-title-wrap { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.leto-chevron { color: #78716c; transition: transform 0.2s; flex-shrink: 0; }
.leto-chevron.open { transform: rotate(90deg); }
.leto-title {
  font-size: 1.25rem; color: #1F7059; font-weight: 500;
}
.leto-count {
  font-size: 0.75rem; color: #78716c; margin-left: 0.25rem;
}
.leto-stats {
  font-size: 0.8125rem; color: #44403c; font-weight: 700;
  white-space: nowrap;
}
.leto-stats .amber { color: #2FA37C; }
.leto-stats .emerald { color: #1F7059; }
.leto-body { padding-top: 0.25rem; }

/* Nastop */
.nastop-list { display: flex; flex-direction: column; gap: 0.75rem; }
.nastop-card {
  background: white; border-radius: 16px; padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  border: 1px solid #f5f5f4; transition: box-shadow 0.2s;
}
.nastop-card:hover { box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1); }

.nastop-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.nastop-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.25rem 0.625rem; border-radius: 9999px;
  margin-bottom: 0.375rem;
}
.nastop-badge.placano { color: #1F7059; background: #E6F4EE; }
.nastop-badge.nplacano { color: #1F7059; background: #E6F4EE; }
.nastop-location { font-size: 1.25rem; color: #1F7059;
  line-height: 1.2; word-break: break-word; font-weight: 500;
  margin: 0;
}
@media (min-width: 640px) { .nastop-location { font-size: 1.5rem; } }
.nastop-amount {
  font-size: 1.5rem; font-weight: 700; color: #1F7059; white-space: nowrap;
}
@media (min-width: 640px) { .nastop-amount { font-size: 1.875rem; } }
.nastop-breakdown { font-size: 0.6875rem; color: #a8a29e; margin-top: 0.125rem; text-align: right; }

.nastop-meta {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
  font-size: 0.875rem; color: #57534e; margin-bottom: 0.75rem;
}
.nastop-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.nastop-meta svg { color: #a8a29e; flex-shrink: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 0.375rem; color: #2FA37C; text-decoration: none; font-weight: 500; }
.nav-link:hover { text-decoration: underline; }
.nav-link svg { color: #2FA37C; }

/* Pesmaski cipi v obrazcu */
.pesmi-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; min-height: 1.5rem; align-items: center; }
.pesem-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #e7f4ee; color: #1F7059; border-radius: 999px;
  padding: 0.3rem 0.4rem 0.3rem 0.7rem; font-size: 0.85rem; font-weight: 500;
}
.chip-x { background: none; border: none; color: #1F7059; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0.2rem; opacity: 0.7; }
.chip-x:hover { opacity: 1; }
.pesem-add { display: flex; gap: 0.5rem; }
.pesem-add .form-input { flex: 1; margin: 0; }
.btn-add-pesem { background: #2FA37C; color: #fff; border: none; border-radius: 10px; padding: 0 1rem; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-add-pesem:hover { background: #268a68; }

/* Klikalni izbirnik pesmi v obrazcu */
.pesem-pick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.pick-chip {
  background: #fff; border: 1px solid #d6e9e0; color: #44403c;
  border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem;
  cursor: pointer; font-family: inherit; font-weight: 500; transition: all 0.15s;
}
.pick-chip:hover { border-color: #2FA37C; }
.pick-chip.sel { background: #2FA37C; border-color: #2FA37C; color: #fff; }

/* Gumb: izbira iz knjiznice */
.btn-iz-knjiznice {
  display: inline-flex; align-items: center; gap: 0.4rem; width: 100%;
  justify-content: center; background: #f0faf5; color: #1F7059;
  border: 1px dashed #9ed3bf; border-radius: 12px; padding: 0.7rem;
  font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: inherit;
  margin-bottom: 0.6rem; transition: all 0.15s;
}
.btn-iz-knjiznice:hover { background: #e3f5ec; border-color: #2FA37C; }

/* Picker modal: seznam pesmi */
.picker-wrap { position: relative; }
.picker-list { display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto; margin: 0 -0.25rem; padding-right: 1.4rem; }
.picker-row {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid #f0efed; padding: 0.85rem 0.5rem;
  cursor: pointer; font-family: inherit; font-size: 1.05rem; color: #292524;
}
.picker-row:hover { background: #f7f6f4; }
.picker-row.sel { color: #1F7059; font-weight: 600; }
.picker-check { width: 1.2rem; flex-shrink: 0; color: #2FA37C; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.picker-check svg { display: block; }
.picker-naslov { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-noten { flex-shrink: 0; opacity: 0.7; }
/* Crkovna locnica v izbirniku */
.picker-letter {
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.05em; color: #1F7059;
  padding: 0.35rem 0.5rem 0.15rem; position: sticky; top: 0; background: #fff; z-index: 1;
  scroll-margin-top: 0;
}
/* Index znotraj modala (ob desni strani seznama) */
.az-index--inmodal {
  position: absolute; top: 0; bottom: 0; right: -0.1rem; justify-content: center; z-index: 2;
}
/* Preklop vira: vse pesmi / zbirke */
.picker-vir { display: flex; gap: 0.4rem; margin-bottom: 0.7rem; }
.picker-vir button {
  flex: 1; padding: 0.5rem; border-radius: 9px; border: 1px solid #e7e5e4; background: #faf9f8;
  font-family: inherit; font-size: 0.92rem; font-weight: 600; color: #57534e; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
}
.picker-vir button.akt { background: #2FA37C; border-color: #2FA37C; color: #fff; }
/* Vrstica zbirke v izbirniku */
.picker-zbirka {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid #f0efed; padding: 0.9rem 0.5rem;
  cursor: pointer; font-family: inherit; font-size: 1.05rem; color: #292524; font-weight: 600;
}
.picker-zbirka:hover { background: #f7f6f4; }
.picker-zbirka .zb-ime { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-zbirka .zb-st { font-size: 0.85rem; color: #78716c; font-weight: 500; }
/* Glava zbirke (nazaj na seznam zbirk) */
.picker-zbirka-glava {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left;
  background: none; border: none; padding: 0.2rem 0.3rem 0.6rem; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 700; color: #1F7059;
}

/* Lokacija: samodejni predlogi */
.geo-wrap { position: relative; }
.geo-suggestions {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid #e2ddd7; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.25);
}
.geo-item {
  display: flex; align-items: flex-start; gap: 0.55rem; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid #f0efed; padding: 0.65rem 0.8rem;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; color: #292524; line-height: 1.3;
}
.geo-item:last-child { border-bottom: none; }
.geo-item:hover { background: #f7f6f4; }
.geo-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #2FA37C; }
.geo-text { display: flex; flex-direction: column; min-width: 0; }
.geo-glavni { font-weight: 600; }
.geo-poln { font-size: 0.74rem; color: #a8a29e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-maps-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem;
  color: #1F7059; font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.geo-maps-link svg { width: 15px; height: 15px; }
.geo-maps-link:hover { text-decoration: underline; }

/* Knjiznica repertoarja (modal) */
.pesmi-lib { display: flex; flex-direction: column; }
.pesem-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0.25rem; border-bottom: 1px solid #f0efed; }
.pesem-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pesem-naslov { font-weight: 600; color: #44403c; display: inline-flex; align-items: center; gap: 0.4rem; }
.pesem-stat { font-size: 0.8rem; color: #a8a29e; }
.pesem-akcije { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Tekstovne povezave (Uredi/Izbrisi) */
.btn-link { background: none; border: none; color: #2FA37C; cursor: pointer; font-size: 0.85rem; font-weight: 500; padding: 0; font-family: inherit; }
.btn-link:hover { text-decoration: underline; }
.btn-link.nevarno { color: #b91c1c; }

/* Pesem kot gumb (odpre note) */
.pesem-open { background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; padding: 0; }
.pesem-open .pesem-naslov svg:last-child { color: #c0bcb8; }
.pesem-open:hover .pesem-naslov { color: #2FA37C; }

/* Note (datoteke pri pesmi) */
.note-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0.25rem; border-bottom: 1px solid #f0efed; }
.note-open { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 0.95rem; color: #44403c; text-align: left; flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.note-open:hover { color: #2FA37C; }
.note-upload { display: block; text-align: center; cursor: pointer; margin-top: 1rem; }
.uvozi-btn { text-align: center; cursor: pointer; }
.uvozi-btn svg { flex-shrink: 0; }

/* Bralnik not (cel zaslon) */
.reader-overlay { position: fixed; inset: 0; z-index: 2000; background: #1c1917; display: flex; flex-direction: column; }
.reader-top { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: #292524; color: #fff; }
.reader-naslov { flex: 1; font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-btn svg { display: block; }
.reader-btn { width: auto; background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-flex; }
.reader-btn:hover { background: rgba(255,255,255,0.2); }
.reader-btn svg { display: block; }
.reader-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.5rem 0; background: #1c1917; }
.reader-page { display: block; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); max-width: 100%; }
.reader-img { max-width: 100%; height: auto; background: #fff; }
.reader-frame { flex: 1; width: 100%; border: none; background: #fff; }
.reader-rezerva { color: #9aa0b0; font-size: 0.8rem; padding: 0.6rem; text-align: center; text-decoration: none; }
.reader-rezerva:hover { color: #d6d3d1; }
.reader-info { color: #d6d3d1; padding: 2rem; text-align: center; }
.reader-page-img { width: 100%; display: block; background: #fff; }
.reader-empty { color: #d6d3d1; text-align: center; padding: 3rem 1rem; }
.reader-empty .btn-save { width: auto; }

/* Bralnik — drsnik strani */
.reader-overlay { animation: reader-in 0.22s ease; }
.reader-overlay.closing { animation: reader-out 0.19s ease forwards; }
@keyframes reader-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes reader-out { from { opacity: 1; } to { opacity: 0; transform: scale(1.03); } }

.pager { flex: 1; position: relative; overflow: hidden; background: #1c1917; touch-action: none; }
.pager-track { display: flex; height: 100%; width: 100%; transition: transform 0.28s ease; will-change: transform; }
.pager-page { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.page-content { position: absolute; inset: 0; transform-origin: center center; }
.annot-canvas { position: absolute; pointer-events: none; z-index: 3; }
.pager-page img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
/* Sliko skrijemo, dokler je renderAnnotPage točno ne umesti (absolutno, na sredino) →
   brez kratkega „blinka", ko bi se iz začetne postavitve preskočila na pravi scale. */
.pager-img { visibility: hidden; }
.pager-page .reader-frame { width: 100%; height: 100%; }
.pager-zone { position: absolute; top: 0; bottom: 0; background: none; border: none; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.pager-zone.left { left: 0; width: 33%; }
.pager-zone.center { left: 33%; width: 34%; }
.pager-zone.right { right: 0; width: 33%; }

/* Skrite kontrole (tap na sredino) */
.reader-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: none; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem;
  padding-bottom: calc(0.6rem + max(env(safe-area-inset-bottom), 0.9rem));
  background: rgba(28,25,23,0.92);
}
.reader-controls.shown { display: flex; }
.reader-controls .reader-naslov { flex: 1; }
/* Srednje velike, opaznejše ikone v kontrolah bralnika (na odru hitro dostopne). */
.reader-controls .reader-btn { padding: 0.5rem 0.6rem; font-size: 1.1rem; }
.reader-controls .reader-btn svg { width: 22px; height: 22px; }
/* Urejevalnik (riši po notah) — malo večja ikona, brez podlage/utripanja. */
.reader-controls #pr-annot { padding: 0.5rem 0.7rem; }
.reader-controls #pr-annot svg { width: 25px; height: 25px; }
.reader-menu {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 4.5rem; z-index: 6;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  overflow: hidden; display: none; flex-direction: column; min-width: 190px;
}
.reader-menu.shown { display: flex; }
/* Iskalnik not v bralniku — levo zgoraj, pokaže/skrije se skupaj s kontrolami
   (tap na sredino strani). Zadetek odpre note takoj v istem bralniku. */
.reader-search {
  position: absolute; left: 0.9rem; z-index: 6;
  top: calc(env(safe-area-inset-top, 0px) + 0.7rem);
  display: none; flex-direction: column; gap: 0.4rem; width: min(66vw, 320px);
}
.reader-search.shown { display: flex; }
.reader-search-polje {
  display: flex; align-items: center; background: rgba(28,25,23,0.92);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0.15rem 0.2rem;
}
/* Modri sistemski „×" bi na temni vrstici izstopal — polje se itak zapre s tapom na sredino. */
.reader-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.reader-search-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; color: #fff;
  font-family: inherit; font-size: 0.95rem; padding: 0.5rem 0.6rem 0.5rem 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0.5rem center;
}
.reader-search-input::placeholder { color: #a8a29e; }
.reader-search-rez {
  display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain;
  background: #262320; border-radius: 12px; border: 1px solid rgba(255,255,255,0.10);
}
.reader-search-rez[hidden] { display: none; }
.reader-search-rez button {
  /* flex: 0 0 auto → vrstice se ob polnem seznamu NE stisnejo (sicer se besedilo navpično poreže). */
  flex: 0 0 auto; display: block; line-height: 1.5rem;
  background: none; border: none; text-align: left; padding: 0.55rem 0.9rem; font-size: 0.92rem;
  font-family: inherit; color: #e8e3dc; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-search-rez button:hover { background: #2f2b27; }
.reader-search-rez button.aktivna { color: #6fe0b3; font-weight: 700; }
/* Subtilen napis „Začetek" / „Konec" ob listanju čez rob — na sredini zaslona. */
.reader-edge-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 8px));
  background: rgba(28,25,23,0.82); color: #fff; padding: 0.45rem 1.2rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; pointer-events: none;
  opacity: 0; transition: opacity 0.22s ease, transform 0.22s ease; z-index: 7;
}
.reader-edge-label.shown { opacity: 1; transform: translate(-50%, -50%); }
/* Gladek prehod ob preklopu pesmi (namesto utripa). */
.pager { transition: opacity 0.11s ease; }
.pager.preklop { opacity: 0; }
#pr-songs-menu, #pr-bm-menu, #pr-zbirka-menu { max-height: 55vh; overflow-y: auto; max-width: 82vw; min-width: 210px; }
.reader-menu button.aktivna { background: #e7f4ee; color: #1F7059; font-weight: 700; }
#pr-bm-menu button { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
#pr-bm-menu button .bm-ime { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pr-bm-menu button small { color: #a8a29e; flex-shrink: 0; }
.bm-prazno { padding: 0.9rem 1.1rem; color: #78716c; font-size: 0.88rem; line-height: 1.4; }
.reader-menu button { background: none; border: none; text-align: left; padding: 0.85rem 1.1rem; font-size: 0.95rem; font-family: inherit; color: #44403c; cursor: pointer; }
.reader-menu button:hover { background: #f5f5f4; }
.reader-menu button.nevarno { color: #b91c1c; }
.pager-count { color: #d6d3d1; font-size: 0.85rem; font-weight: 600; }

/* Risalna orodna vrstica */
.annot-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2100;
  background: rgba(28,25,23,0.96); backdrop-filter: blur(4px);
  padding: 0.5rem 0.5rem calc(0.5rem + max(env(safe-area-inset-bottom), 0.9rem));
  display: flex; flex-direction: column; gap: 0.4rem;
}
/* Temajska okna (prompt/confirm) */
.app-dialog-overlay {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  animation: dlg-in 0.15s ease;
}
@keyframes dlg-in { from { opacity: 0; } to { opacity: 1; } }
.app-dialog {
  background: #fff; border-radius: 16px; padding: 1.3rem 1.25rem; width: 100%; max-width: 360px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.4);
}
.app-dialog-naslov { font-size: 1.05rem; font-weight: 700; color: #292524; margin: 0 0 0.85rem; }
.app-dialog-text { font-size: 0.92rem; color: #57534e; margin: 0 0 1rem; line-height: 1.4; }
.app-dialog-input {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #d6d3d1; border-radius: 11px;
  font-size: 1rem; font-family: inherit; background: #fafaf9; color: #292524; margin-bottom: 1.1rem;
}
.app-dialog-input:focus { outline: none; border-color: #2FA37C; background: #fff; }
.app-dialog-akcije { display: flex; gap: 0.6rem; }
.app-dialog-akcije .btn-cancel, .app-dialog-akcije .btn-save { flex: 1; margin: 0; }
.app-dialog-akcije .btn-save.dlg-nevarno { background: #dc2626; }

.reader-toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.95);
  z-index: 2200; background: rgba(20,19,18,0.92); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.1rem; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.reader-toast.shown { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.annot-bar[hidden] { display: none; }

/* Plavajoč gumb za izhod iz risanja (desno) */
.annot-exit {
  position: absolute; top: calc(0.8rem + env(safe-area-inset-top)); right: 0.8rem; z-index: 2150;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(28,25,23,0.85); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.45); backdrop-filter: blur(3px);
}
.annot-exit svg { display: block; }

/* Mini-editor besedila (spodnji list) */
.text-editor {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2200;
  background: rgba(28,25,23,0.97); backdrop-filter: blur(4px);
  padding: 0.9rem 1rem calc(0.9rem + max(env(safe-area-inset-bottom), 0.9rem));
  display: flex; flex-direction: column; gap: 0.85rem;
}
.te-input {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #3a3531; border-radius: 11px;
  font-size: 1rem; font-family: inherit; background: #2a2724; color: #f5f5f4;
}
.te-input:focus { outline: none; border-color: #2FA37C; }
.te-colors { display: flex; gap: 0.5rem; justify-content: center; }
.te-color { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); cursor: pointer; padding: 0; }
.te-color.sel { border-color: #fff; box-shadow: 0 0 0 2px #2FA37C; }
.te-size { display: flex; align-items: center; gap: 0.7rem; color: #d6d3d1; }
.te-a-mala { font-size: 0.9rem; }
.te-a-velika { font-size: 1.5rem; }
.te-slider { flex: 1; accent-color: #2FA37C; }
.te-akcije { display: flex; gap: 0.6rem; }
.te-akcije .btn-cancel, .te-akcije .btn-save { flex: 1; margin: 0; }
.te-akcije .btn-cancel { color: #d6d3d1; }
.annot-row { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; justify-content: center; }
.annot-row.actions { flex-wrap: wrap; gap: 0.25rem; }
.annot-btn svg { display: block; }
.annot-btn {
  min-width: 38px; height: 38px; padding: 0 0.4rem; border-radius: 9px; border: 1px solid transparent;
  background: rgba(255,255,255,0.08); color: #f5f5f4; font-size: 1.05rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; font-family: inherit;
}
.annot-btn.nav { min-width: 34px; }
.annot-btn.nav svg { width: 18px; height: 18px; }
.annot-btn:hover { background: rgba(255,255,255,0.16); }
.annot-btn.sel { background: #2FA37C; border-color: #46c596; color: #fff; }
.annot-btn.nevarno { background: rgba(226,59,59,0.22); color: #ff8a8a; }
.annot-btn.nevarno:hover { background: rgba(226,59,59,0.34); }
.annot-row.annot-hint { color: #c9c3bb; font-size: 0.78rem; font-weight: 500; padding: 0.1rem 0.3rem; min-height: 1.1rem; }
.annot-btn:disabled { opacity: 0.3; }
.annot-btn.done { background: #2FA37C; color: #fff; font-weight: 700; }
.annot-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; padding: 0; }
.annot-color.sel { border-color: #fff; box-shadow: 0 0 0 2px #2FA37C; }
.annot-sep { width: 1px; height: 26px; background: rgba(255,255,255,0.2); margin: 0 0.2rem; }
.annot-pg { color: #d6d3d1; font-size: 0.85rem; font-weight: 600; min-width: 2.5rem; text-align: center; }
.annot-status { color: #8fd9bd; font-size: 0.74rem; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; }
.annot-btn.done { background: #2FA37C; color: #fff; font-weight: 700; min-width: auto; padding: 0 0.9rem; white-space: nowrap; gap: 0.4rem; }
.annot-btn.done:hover { background: #34b386; }
.annot-btn.done svg { width: 17px; height: 17px; }
.annot-btn.dot i { display: inline-block; background: #f5f5f4; border-radius: 50%; }
.annot-btn.dot i.dot-thin { width: 5px; height: 5px; }
.annot-btn.dot i.dot-med { width: 9px; height: 9px; }
.annot-btn.dot i.dot-thick { width: 14px; height: 14px; }

.nastop-section {
  background: #fafaf9; border-radius: 12px; padding: 0.625rem 1rem;
  margin-bottom: 0.75rem;
}
.nastop-section-label {
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #a8a29e; margin-bottom: 0.25rem;
}
.nastop-section-content { color: #57534e; font-size: 0.9375rem;
  white-space: pre-wrap; word-break: break-word;
}

.nastop-actions {
  display: flex; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #f5f5f4;
}
.nastop-btn-toggle {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.625rem; border-radius: 10px; font-weight: 600; font-size: 0.875rem;
  border: none; transition: all 0.2s;
}
.nastop-btn-toggle:active { transform: scale(0.97); }
.nastop-btn-toggle.placano { background: #E6F4EE; color: #1F7059; }
.nastop-btn-toggle.placano:hover { background: #CDEBDF; }
.nastop-btn-toggle.nplacano { background: #E6F4EE; color: #1F7059; }
.nastop-btn-toggle.nplacano:hover { background: #CDEBDF; }

.nastop-btn-icon {
  padding: 0.625rem; border-radius: 10px;
  background: transparent; border: none; color: #78716c;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.nastop-btn-icon:hover { background: #f5f5f4; color: #1F7059; }
.nastop-btn-icon.danger:hover { background: #fef2f2; color: #dc2626; }
.nastop-btn-icon:active { transform: scale(0.92); }

/* Prazno stanje */
.empty {
  text-align: center; padding: 4rem 1.5rem;
  background: rgba(255,255,255,0.5); border-radius: 16px;
  border: 2px dashed #d6d3d1;
}
.empty-icon { color: #d6d3d1; margin-bottom: 0.75rem; }
.empty-text { font-size: 1.25rem; color: #78716c; margin: 0;
}
@media (min-width: 640px) { .empty-text { font-size: 1.5rem; } }
.empty-hint { font-size: 0.875rem; color: #a8a29e; margin-top: 0.5rem; }

/* Noga */
footer {
  text-align: center; margin-top: 2.5rem; padding-bottom: 1rem; color: #a8a29e; font-size: 0.875rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.logout-link {
  background: none; border: none; cursor: pointer;
  color: #a8a29e; font-size: 0.8rem; font-family: inherit;
  text-decoration: underline; text-underline-offset: 2px; opacity: 0.8;
}
.logout-link:hover { color: #78716c; opacity: 1; }
.footer-links { display: flex; gap: 1.25rem; }
.nastavitve-sekcija { margin-top: 0.25rem; }
.nastavitve-naslov { font-size: 0.95rem; margin-bottom: 0.75rem; color: #44403c; }
.napaka-text { color: #b91c1c; font-size: 0.85rem; margin-top: 0.5rem; }
.uspeh-text { color: #047857; font-size: 0.85rem; margin-top: 0.5rem; font-weight: 600; }
.passkey-seznam { display: flex; flex-direction: column; gap: 0.5rem; }
.passkey-vrstica {
  display: flex; justify-content: space-between; align-items: center;
  background: #f5f5f4; border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.9rem;
}
.ikona-gumb { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 38px; height: 38px; padding: 0; }
.ikona-gumb svg { display: block; width: 18px; height: 18px; }

/* Vrstica racuna: ime zgoraj, obseg pod njim, dejanja desno. Enak videz kot
   vrstica passkeya, le da ima dve vrstici besedila -- "jan · skrbnik" in
   "5 nastopov, 106 pesmi" v eni vrsti bi se na telefonu prelila v kasico. */
.racun-vrstica {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  background: #f5f5f4; border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.racun-vrstica .racun-ime { font-weight: 600; display: block; }
.racun-vrstica .racun-obseg { display: block; font-size: 0.8rem; color: #78716c; margin-top: 0.1rem; }
.racun-vrstica .racun-dejanja { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex: none; }
.racun-vrstica .racun-dejanja .btn-link { padding: 0.15rem 0; font-size: 0.85rem; white-space: nowrap; }
.btn-odjava {
  width: 100%; background: #fff; color: #b91c1c; border: 1px solid #f0c9c5;
  border-radius: 10px; padding: 0.7rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-odjava:hover { background: #fef2f2; }
.nastavitve-loci { border-top: 1px solid #e7e5e4; }
.lock-overlay {
  position: fixed; inset: 0; z-index: 1000; background: #F2FAF6;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lock-card {
  background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(47,163,124,0.15);
  padding: 2.5rem 2rem; width: 100%; max-width: 340px; text-align: center;
}
.lock-ikona { color: #2FA37C; margin-bottom: 0.5rem; display: flex; justify-content: center; }
.lock-card h2 { color: #2FA37C; margin-bottom: 0.25rem; }
.lock-card .muted { margin-bottom: 1.25rem; display: block; }
.lock-card .btn-save { width: 100%; }
.lock-secondary {
  width: auto; background: none; border: none; color: #78716c;
  font-size: 0.85rem; font-weight: 500; text-decoration: underline;
  cursor: pointer; padding: 0.6rem; margin-top: 0.4rem; font-family: inherit;
}
.lock-secondary:hover { color: #44403c; }
.lock-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; font-size: 0.9rem; color: #44403c; cursor: pointer;
}
.lock-toggle-row input { width: 1.2rem; height: 1.2rem; accent-color: #2FA37C; }

/* Floating gumb */
.fab {
  position: fixed; bottom: calc(5rem + env(safe-area-inset-bottom));
  right: 1.25rem; background: #1F7059; color: white;
  width: 3.6rem; height: 3.6rem; border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(31, 112, 89, 0.45);
  display: flex; align-items: center; justify-content: center; border: none;
  z-index: 60; transition: all 0.2s;
}
.fab { cursor: pointer; }
/* Zadnja kartica seznama mora ostati dosegljiva NAD plavajočim gumbom (prej ga je
   ta prekril): višina gumba 3.6rem + njegov odmik od navigacije. */
/* Seznam nastopov: zadnja kartica ima pod sabo gumbe (uredi, plačano), ki jih je
   plavajoči gumb prej prekril. */
#lista-wrap { padding-bottom: 4.8rem; }
.fab:hover { background: #186048; }
.fab:active { transform: scale(0.95); }
/* FAB dobi lasten posnetek → ob preklopu na Nastopi „prileti/zabubbla" z desne strani
   (namesto da se le pojavi). Vstop animiramo LE ob menjavi zaslona (vt-glavno-*), ne ob
   osvežitvah znotraj Nastopov. Rahel blur med letom → mehak, kot balonček. */
.fab { view-transition-name: fab; }
html.vt-glavno-desno::view-transition-new(fab),
html.vt-glavno-levo::view-transition-new(fab) {
  animation: fab-bubble 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: center;
}
@keyframes fab-bubble {
  from { opacity: 0; transform: translateX(52px) scale(0.4); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  to   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

/* Modalno okno za letni pregled */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28, 25, 23, 0.7);
  backdrop-filter: blur(4px); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white; border-radius: 16px; padding: 1.5rem;
  max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.modal-title {
  font-size: 1.75rem; margin: 0; color: #1F7059;
}
.modal-close {
  background: #f5f5f4; border: none; padding: 0.5rem;
  border-radius: 9999px; color: #57534e;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: #e7e5e4; color: #1F7059; }

.year-picker { display: flex; gap: 0.5rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: 0.25rem; }
.year-picker::-webkit-scrollbar { display: none; }
.year-btn {
  padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid #d6d3d1;
  background: white; font-weight: 600; font-size: 0.875rem; color: #57534e;
  white-space: nowrap;
}
.year-btn.active { background: #1F7059; color: white; border-color: #1F7059; }

.year-summary {
  background: linear-gradient(135deg, #E6F4EE, #FFFFFF);
  border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  border: 1px solid rgba(47, 163, 124, 0.25);
}
.year-summary-big {
  font-size: 2rem; font-weight: 700; color: #1F7059;
}
.year-summary-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #1F7059; margin-bottom: 0.25rem;
}
.year-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem;
  padding-top: 0.75rem; border-top: 1px solid rgba(47, 163, 124, 0.25);
}
.year-sub-label {
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #78716c;
}
.year-sub-value {
  font-weight: 700; font-size: 1.125rem; color: #1F7059;
}

.month-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center;
  padding: 0.625rem 0; border-bottom: 1px solid #f5f5f4;
}
.month-row:last-child { border-bottom: none; }
.month-name { color: #44403c; font-size: 0.9375rem; min-width: 5.5rem;
}
.month-count { font-size: 0.75rem; color: #78716c; }
.month-amount { font-weight: 700;
  color: #1F7059; white-space: nowrap;
}
.month-bar {
  height: 6px; background: #f5f5f4; border-radius: 9999px;
  overflow: hidden; margin-top: 0.25rem;
}
.month-bar-fill {
  height: 100%; background: linear-gradient(to right, #2FA37C, #1F7059);
  border-radius: 9999px; transition: width 0.3s;
}

/* ===================== TEMNA TEMA (preklop prek html[data-theme]) ===================== */
html[data-theme="dark"] {
background: #141312;
body { background: #141312; color: #f0ebe4; }

.bottom-nav { background: #1c1a18; border-top: 1px solid #36322e; box-shadow: 0 -3px 16px rgba(0,0,0,0.45); }
.nav-btn { color: #8a857f; }
.nav-btn.active { color: #46c596; }

.rep-card.izbran { border-color: #2FA37C; background: rgba(47,163,124,0.16); box-shadow: 0 2px 16px rgba(47,163,124,0.22); }
.izbor-check { background: #211f1d; border-color: #4a453f; color: #0f1110; }
.izbor-check.on { background: #2FA37C; border-color: #2FA37C; }
.izbor-bar { background: #1c1a18; border-top: 1px solid #36322e; box-shadow: 0 -3px 16px rgba(0,0,0,0.45); }
.izbor-bar-x { background: #2a2724; border-color: #3a352f; color: #d9d3cb; }
.izbor-bar-vse { color: #6fe0b3; }
.izbor-akcija { background: rgba(47,163,124,0.18); color: #6fe0b3; }
.izbor-akcija.nevarno { background: rgba(214,69,62,0.20); color: #ff8a82; }
.app-dialog-moznost { background: #211f1d; border-color: #36322e; color: #ece7e0; }
.app-dialog-moznost:hover { border-color: #2FA37C; background: rgba(47,163,124,0.14); }
.app-dialog-moznost svg { color: #6fe0b3; }

.view-title, .form-title, .leto-title, .nastop-location, h1, .modal-title, .lock-card h2 { color: #46c596; }
.sekcija-naslov, .nastavitve-naslov, .bar-label, .legend-row, .month-name, .leto-stats, .stat-pesem-row, .pesem-naslov, .note-open, .month-amount, .year-summary-grid { color: #e8e3dc; }
.subtitle, .stat-small .stat-label, .bar-val, .leto-count, .month-count, .empty-text, .nastop-meta, .time-sep, .nastop-section-label, .form-label, .muted { color: #a8a29e; }
.empty-hint, footer, .nastop-breakdown { color: #6b655d; }

.header-btn { background: #262320; border-color: #38332e; color: #d9d3cb; }
.header-btn:hover { background: #2f2b27; }

.rep-card { background: #2a2724; border-color: #423c35; box-shadow: 0 4px 14px rgba(0,0,0,0.55); }
.rep-card:hover { border-color: #2FA37C; box-shadow: 0 2px 16px rgba(47,163,124,0.20); }
.rep-card-ikona { background: #38332e; color: #8a857f; }
.rep-card-ikona.ima { background: rgba(47,163,124,0.20); color: #6fe0b3; }
.rep-card-naslov { color: #f3eee7; }
.rep-card > svg:last-child { color: #5c574f; }
.rep-card-star { color: #5c574f; }
.rep-card-star.on { color: #eab53e; }
.fav-filter { background: #211f1d; border-color: #34302c; color: #5c574f; }
.fav-filter.on { color: #eab53e; border-color: #7a5e23; background: #2a2317; }
.rep-empty-ikona, .empty-icon { color: #4a443d; }
.empty { background: rgba(255,255,255,0.02); border-color: #34302c; }

.stat-small { background: #211f1d; border-color: #34302c; backdrop-filter: none; }
.stat-small .stat-value { color: #f0ebe4; }
.stat-small.bold .stat-value { color: #46c596; }
.year-summary-big { color: #46c596; }
.bar-track, .year-summary, .month-bar { background: #2e2a26; }
.stat-pesem-row, .pesem-row, .note-row, .pesem-note-akcije, .month-row { border-color: #34302c; }

.search-input { background-color: #211f1d; border-color: #36322e; color: #f0ebe4; }
.search-input:focus { border-color: #2FA37C; }

.offline-btn { background: #211f1d; border-color: #2e3a35; color: #46c596; }
.offline-btn:hover { background: #262320; }

.filter-btn { background: #211f1d; border-color: #38332e; color: #b8b2aa; }
.filter-btn.active { background: #2FA37C; border-color: #2FA37C; color: #0f1110; }

.form-card { background: #1f1d1b; border-color: #34302c; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.45); }
.form-input, .form-textarea, .time-select { background: #2a2724; border-color: #38332e; color: #f0ebe4; }
.form-input:focus, .form-textarea:focus { background: #2e2b27; border-color: #2FA37C; }
.checkbox-row { background: #2a2724; border-color: #38332e; color: #e8e3dc; }
.fancy-check { background: #2a2724; border-color: #4a443d; }
.btn-cancel { color: #b8b2aa; }
.btn-cancel:hover { background: #2a2724; }
.mini-btn, .suggestion-list { background: #262320; border-color: #38332e; color: #b8b2aa; }
.suggestion-item { background: #2a2724; border-color: #38332e; color: #d9d3cb; }

.pick-chip { background: #262320; border-color: #38332e; color: #d9d3cb; }
.pick-chip.sel { background: #2FA37C; border-color: #2FA37C; color: #0f1110; }
.pesem-chip { background: rgba(47,163,124,0.20); color: #6fe0b3; }

.nastop-card { background: #211f1d; border-color: #34302c; box-shadow: 0 6px 20px -8px rgba(0,0,0,0.5); }
.nastop-card:hover { box-shadow: 0 10px 28px -8px rgba(0,0,0,0.6); }
.nastop-amount { color: #46c596; }
.nastop-section { background: #2a2724; }
.nastop-section-content { color: #d9d3cb; }
.passkey-vrstica { background: #2a2724; color: #e8e3dc; }
.racun-vrstica { background: #2a2724; color: #e8e3dc; }
.racun-vrstica .racun-obseg { color: #a8a29e; }
.btn-odjava { background: #2a2724; color: #f0857d; border-color: #4a2e2c; }
.btn-odjava:hover { background: #332523; }
.nastavitve-loci { border-top-color: #34302c; }
.nastop-badge.placano, .nastop-badge.nplacano { background: rgba(47,163,124,0.18); color: #6fe0b3; }
.nastop-btn-icon { color: #a8a29e; }

.leto-header { background: #211f1d; border-color: #34302c; }
.leto-header:hover { background: #262320; }

.modal-overlay, .lock-overlay { background: rgba(0,0,0,0.7); }
.lock-overlay { background: #141312; }
.modal, .lock-card { background: #1f1d1b; color: #f0ebe4; }
.modal-close { background: #2a2724; color: #a8a29e; }
.modal-close:hover { background: #34302c; color: #46c596; }

.rep-tabs { background: #1c1a18; }
.rep-pill { background: #2a2724; }
.rep-tab { color: #8a857f; }
.rep-tab.active { color: #6fe0b3; }
.zbirka-count { background: #2e2a26; color: #a8a29e; }
.uvoz-cilj-label { color: #a8a29e; }
.uvoz-file { background: #2a2724; color: #d9d3cb; }
.uvoz-cilj { background: #211f1d; border-color: #36322e; color: #ece7e0; }
.uvoz-cilj.sel { border-color: #2FA37C; background: rgba(47,163,124,0.16); }
.uvoz-cilj.vedno { background: rgba(47,163,124,0.16); border-color: rgba(47,163,124,0.4); }
.uvoz-cilj-ikona { background: #2e2a26; color: #6fe0b3; }
.uvoz-cilj-ikona.lib { background: #2FA37C; color: #0f1110; }
.uvoz-cilj-pod { color: #6fae97; }
.uvoz-cilj-check { border-color: #4a453f; color: #0f1110; }
.uvoz-cilj-check.on { background: #2FA37C; border-color: #2FA37C; }
.setlist-vrsta { background: #211f1d; border-color: #34302c; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.setlist-st { background: rgba(47,163,124,0.20); color: #6fe0b3; }
.setlist-ime { color: #f3eee7; }
.setlist-ime.brez-not { color: #78716c; }
.setlist-opomba { color: #d6a85a; }
.mini-ikona { color: #78716c; }
.mini-ikona:hover { color: #46c596; }
.setlist-drag { color: #5c574f; }
.setlist-vrsta.dragging { box-shadow: 0 10px 26px -6px rgba(0,0,0,0.6); border-color: #2FA37C; }

.btn-iz-knjiznice { background: rgba(47,163,124,0.12); border-color: #2e4f43; color: #6fe0b3; }
.btn-iz-knjiznice:hover { background: rgba(47,163,124,0.20); border-color: #2FA37C; }
.picker-row { color: #e8e3dc; border-bottom-color: #2e2a26; }
.picker-row:hover { background: #262320; }
.picker-row.sel { color: #6fe0b3; }
.picker-check { color: #46c596; }
.picker-letter { color: #6fe0b3; background: #1f1d1b; }
.picker-vir button { background: #211f1d; border-color: #36322e; color: #c9c3bb; }
.picker-vir button.akt { background: #2FA37C; border-color: #2FA37C; color: #0f1110; }
.picker-zbirka { color: #e8e3dc; border-bottom-color: #2e2a26; }
.picker-zbirka:hover { background: #262320; }
.picker-zbirka .zb-st { color: #8a857f; }
.picker-zbirka-glava { color: #6fe0b3; }

.geo-suggestions { background: #211f1d; border-color: #38332e; box-shadow: 0 12px 28px -8px rgba(0,0,0,0.6); }
.geo-item { color: #e8e3dc; border-bottom-color: #2e2a26; }
.geo-item:hover { background: #262320; }
.geo-maps-link { color: #6fe0b3; }

.reader-menu { background: #262320; }
.reader-menu button { color: #e8e3dc; }
.reader-menu button:hover { background: #2f2b27; }
.reader-menu button.aktivna { background: rgba(47,163,124,0.2); color: #6fe0b3; }
#pr-bm-menu button small { color: #8a857f; }
.bm-prazno { color: #a8a29e; }

.app-dialog { background: #1f1d1b; box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6); }
.app-dialog-naslov { color: #f0ebe4; }
.app-dialog-text { color: #a8a29e; }
.app-dialog-input { background: #2a2724; border-color: #38332e; color: #f0ebe4; }
.app-dialog-input:focus { background: #2e2b27; border-color: #2FA37C; }

.nastop-btn-toggle.placano, .nastop-btn-toggle.nplacano { background: rgba(47,163,124,0.16); color: #6fe0b3; }
.nastop-btn-toggle.placano:hover, .nastop-btn-toggle.nplacano:hover { background: rgba(47,163,124,0.26); }

.rep-letter { color: #6fe0b3; }
.rep-letter::before, .rep-letter::after { background: #34302c; }
.isk-sticky { background: #141312; }
.isk-sticky::after { background: linear-gradient(to bottom, #141312 0%, rgba(20,19,18,0) 100%); }
.az-index { color: #8a857f; }
.az-index button:active, .az-index button.akt { color: #46c596; }
@media (hover: hover) { .az-index button:hover { color: #46c596; } }
.az-index button.az-sel { color: #46c596; }
.az-index button.prazna, .az-index button.prazna:hover { color: #44403c; }
.az-bubble { background: #2FA37C; color: #0f1110; }
}

/* ===== Prehodi med zasloni + zagonska animacija ===== */
/* Umirjen crossfade ob menjavi zaslona (View Transitions API). */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.30s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Osrednji panel repertoarja dobi lasten posnetek → ob menjavi ZAVIHKA zdrsne SAMO on,
   glava (naslov + zavihki) in spodnja navigacija ostanejo pri miru (del `root`). Ime
   dodelimo SAMO med menjavo zavihka (vt-desno/levo); pri menjavi ZASLONA ostane brez
   imena → je del vsebinskega posnetka (view-area) in zdrsne skupaj z njim (brez ghostinga). */
html.vt-desno .rep-panel, html.vt-levo .rep-panel { view-transition-name: rep-panel; }
/* Vsebinsko območje dobi lasten posnetek SAMO med menjavo zaslona (repertoar/nastopi/
   statistika). Cela vsebina zdrsne kot en neprosojen list → nov zaslon fizično prekrije
   starega (brez crossfade ghostinga, ki je prej pokazal star zaslon skozi novega). */
.view-area { min-height: 100dvh; }
/* Menjava ZASLONA: drsi CEL vidni zaslon (`root` = posnetek viewporta). Ker je skrol
   „vpečen" v posnetek, sta stari (kjer si bil) in novi (vrh razdelka) natanko poravnana
   → gladek vodoraven prehod BREZ navpičnega poskoka. Prej je drsel visok `view-area`,
   čigar posnetek pri skrolu ni bil poravnan z novim (krajšim) zaslonom. Spodnja
   navigacija ima lasten posnetek (animation:none) in med prehodom miruje. */
::view-transition-group(root) { animation-duration: 0.34s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
html.vt-glavno-desno::view-transition-old(root) { animation: va-ven-levo 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.vt-glavno-desno::view-transition-new(root) { animation: va-noter-desno 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.vt-glavno-levo::view-transition-old(root)  { animation: va-ven-desno 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.vt-glavno-levo::view-transition-new(root)  { animation: va-noter-levo 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes va-ven-levo    { to   { transform: translateX(-40%); opacity: 0; } }
@keyframes va-noter-desno { from { transform: translateX(40%);  opacity: 0; } }
@keyframes va-ven-desno   { to   { transform: translateX(40%);  opacity: 0; } }
@keyframes va-noter-levo  { from { transform: translateX(-40%); opacity: 0; } }
/* Spodnja navigacija dobi lasten posnetek → med prehodom se izriše NAD panelom (je
   za njim v DOM), zato visok seznam not med drsenjem ne pljuskne čez spodnjo vrstico. */
.bottom-nav { view-transition-name: bottom-nav; }
/* Ob drsenju zavihkov se `root` (glava + spodnja navigacija) ne animira — takojšnja
   zamenjava (naslov se osveži v hipu), giblje se le panel. */
html.vt-desno::view-transition-old(root), html.vt-desno::view-transition-new(root),
html.vt-levo::view-transition-old(root),  html.vt-levo::view-transition-new(root) { animation: none; }
/* Spodnja navigacija se NIKOLI ne animira (ista vrstica v obeh zaslonih) → brez utripanja.
   POZOR: star posnetek moramo SKRITI, ne le ustaviti. Če sta oba (star + nov) pri opacity 1
   drug na drugem, se navzgor obrnjena senca (`0 -3px 16px rgba(0,0,0,0.45)`) kompozitira
   DVAKRAT → 1-(1-0.45)² ≈ 0.70 → nad vrstico se med animacijo pojavi črn pas, ki ob koncu
   izgine. Zato: star = prozoren, nov = poln. */
::view-transition-old(bottom-nav) { animation: none; opacity: 0; }
::view-transition-new(bottom-nav) { animation: none; opacity: 1; }
/* Posnetki prehoda ne smejo prestrezati klikov — klik med animacijo mora takoj priti do
   žive vsebine (sicer je videti, kot da preklop „ne prime"). */
::view-transition { pointer-events: none; }
::view-transition-group(rep-panel) { animation-duration: 0.34s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Morfanje jezička med zavihki. Posnetke (view-transition-name) dodelimo SAMO med
   drsenjem (vt-desno/levo). Napisi (gumbi) so v DOM za jezičkom → njihovi posnetki se
   izrišejo NAD jezičkovim, zato jeziček potuje ZA besedilom (ne prekrije ga več). */
html.vt-desno .rep-pill, html.vt-levo .rep-pill { view-transition-name: rep-pill; }
html.vt-desno .rep-tab:nth-child(2), html.vt-levo .rep-tab:nth-child(2) { view-transition-name: rep-tab-a; }
html.vt-desno .rep-tab:nth-child(3), html.vt-levo .rep-tab:nth-child(3) { view-transition-name: rep-tab-b; }
html.vt-desno .rep-tab:nth-child(4), html.vt-levo .rep-tab:nth-child(4) { view-transition-name: rep-tab-c; }
/* Skupina potuje iz starega v novi kvadratek; sličici (old/new) pa se med potjo skrčita
   v mehak balonček in prelijeta ena v drugo → občutek pravega morfanja, ne le drsenja. */
/* Potovanje (skupina) z „easeOutCubic" → takoj od začetka švigne proti cilju (ne čaka
   na krčenje). Krčenje/rast (sličici) pa se dogaja vmes med letom. Vse malce hitreje. */
::view-transition-group(rep-pill) { animation-duration: 0.3s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(rep-pill), ::view-transition-new(rep-pill) { transform-origin: center; }
/* Sličici tečeta z ISTIM easeOutExpo kot potovanje (skupina) čez celoten 0→100%, zato se
   scale/prosojnost/zaobljenost končajo v ISTEM trenutku, ko balonček pristane na cilju —
   brez majhnega dodatka scale-a po prihodu. Spredaj naložena krivulja → rast med letom. */
html.vt-desno::view-transition-old(rep-pill), html.vt-levo::view-transition-old(rep-pill) { animation: pill-skrci 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.vt-desno::view-transition-new(rep-pill), html.vt-levo::view-transition-new(rep-pill) { animation: pill-zrasti 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pill-skrci  { from { opacity: 1; transform: scale(1);         border-radius: 9px; }
                         to   { opacity: 0; transform: scale(0.55, 0.6); border-radius: 999px; } }
@keyframes pill-zrasti { from { opacity: 0; transform: scale(0.55, 0.6); border-radius: 999px; }
                         to   { opacity: 1; transform: scale(1);         border-radius: 9px; } }

/* Drsenje med zavihki (Vse / Set-listi / Zbirke) — panel zdrsne kot v slideshowu/bubble.
   .vt-desno = nov zavihek pride z desne (naprej), .vt-levo = z leve (nazaj). */
html.vt-desno::view-transition-old(rep-panel) { animation: vt-ven-levo 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.vt-desno::view-transition-new(rep-panel) { animation: vt-noter-desno 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.vt-levo::view-transition-old(rep-panel)  { animation: vt-ven-desno 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.vt-levo::view-transition-new(rep-panel)  { animation: vt-noter-levo 0.34s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes vt-ven-levo    { to   { transform: translateX(-40%); opacity: 0; } }
@keyframes vt-noter-desno { from { transform: translateX(40%);  opacity: 0; } }
@keyframes vt-ven-desno   { to   { transform: translateX(40%);  opacity: 0; } }
@keyframes vt-noter-levo  { from { transform: translateX(-40%); opacity: 0; } }

/* ===== UVODNA ZAVESA =====
   Zelena ploskev z logotipom, ki se ob zagonu potegne navzgor in za sabo pusti
   zaobljen rob (isti vzorec kot Notna hranilnica in Sova). Barva je ista kot
   zagonski zaslon v manifestu (#2FA37C), zato je prehod z njega brez šiva.
   Stoji v index.html, da je na prvem frejmu — odstrani jo app.js (zapriUvod). */
#uvod {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: linear-gradient(200deg, #35B187 0%, #1F7059 100%);
}
#uvod img { width: 88px; height: 88px; border-radius: 23px; display: block; }
#uvod.odhaja { animation: uvodZavesa 520ms cubic-bezier(0.76, 0, 0.24, 1) forwards; }
#uvod.odhaja img { animation: uvodLogo 520ms cubic-bezier(0.76, 0, 0.24, 1) forwards; }
@keyframes uvodZavesa {
  from { transform: translateY(0); border-radius: 0; }
  to { transform: translateY(-101%); border-radius: 0 0 46% 46%; }
}
@keyframes uvodLogo {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html.vt-desno::view-transition-old(rep-panel), html.vt-desno::view-transition-new(rep-panel),
  html.vt-levo::view-transition-old(rep-panel),  html.vt-levo::view-transition-new(rep-panel) { animation: none; }
  ::view-transition-group(rep-panel), ::view-transition-group(rep-pill), ::view-transition-group(view-area) { animation: none; }
  ::view-transition-old(rep-pill), ::view-transition-new(rep-pill) { animation: none; }
  html.vt-glavno-desno::view-transition-old(view-area), html.vt-glavno-desno::view-transition-new(view-area),
  html.vt-glavno-levo::view-transition-old(view-area),  html.vt-glavno-levo::view-transition-new(view-area) { animation: none; }
  html.vt-glavno-desno::view-transition-new(fab), html.vt-glavno-levo::view-transition-new(fab) { animation: none; }
  #uvod.odhaja, #uvod.odhaja img { animation: none; opacity: 0; }
}
