:root {
  --navy: #004064;
  --navy-deep: #003858;
  --navy-mid: #0a5278;
  --gold: #f8a418;
  --gold-soft: #f5c76a;
  --cream: #f8f0d0;
  --cream-dim: #f0e6c8;
  --ink: #f7f4ec;
  --ink-muted: #c3ccd3;
  --band-red: #d02008;
  --band-purple: #6b3a8c;
  --band-yellow: #f0e870;
  --band-green: #789838;
  --card: rgba(255,255,255,0.06);
  --card-solid: #16242f;
  --bg: #0b1622;
  --bg-2: #0f1b26;
  --panel: rgba(16,28,39,0.88);
  --line: rgba(251,241,214,0.18);
  --warn: #f0c070;
  --warn-bg: rgba(240,192,112,0.12);
  --radius: 14px;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  --font: "Nunito Sans", "Nunito", system-ui, sans-serif;
  --serif: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(248,164,24,0.10), transparent 55%),
    radial-gradient(800px 500px at -10% 20%, rgba(0,64,100,0.28), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 45%, #0a131d 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-deep); padding: .5rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 18, 28, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.brand {
  display: flex; gap: .75rem; align-items: center;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 48px; height: 48px; border-radius: 10px;
  border: 2px solid rgba(248,164,24,0.55);
  background: var(--navy-deep);
  object-fit: cover;
}
.brand-wordmark {
  height: 52px; width: auto; max-width: min(220px, 55vw);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(248,164,24,0.35);
  background: var(--navy-deep);
}
.brand-mark { display: none; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tab {
  border: 1px solid transparent; background: transparent;
  padding: .55rem .95rem; border-radius: 999px;
  font: inherit; font-weight: 600; color: var(--ink-muted); cursor: pointer;
}
.tab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tab[aria-selected="true"] {
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 4px 14px rgba(248,164,24,0.35);
}

/* —— Header: mobile one-row nav (Časovnica + UU inline, rest in ≡ menu) —— */
.nav-more { display: contents; }
.nav-more-toggle { display: none; }
@media (min-width: 701px) { /* desktop keeps the original tab order */
  .tabs [data-tab="domov"] { order: 1; } .tabs [data-tab="casovnica"] { order: 2; } .tabs [data-tab="teme"] { order: 3; }
  .tabs [data-tab="gradiva"] { order: 4; } .tabs [data-tab="ekipa"] { order: 5; } .tabs [data-tab="os"] { order: 6; }
  .tabs [data-tab="uu"] { order: 7; } .tabs [data-tab="preverbe"] { order: 8; } .tabs [data-tab="zabava"] { order: 9; }
  .tabs [data-tab="vprasanja"] { order: 10; } .tabs [data-tab="analitika"] { order: 11; } .tabs .nav-user { order: 12; }
  .tabs [data-tab="trgovina"] { order: 9; } .tabs [data-tab="nadzor"] { order: 11; } /* after Zabava / at the end (same order → markup order) */
  /* One row next to the logo; what does not fit moves into the ≡ menu (layoutNav() in app.js sets .nav-overflow) */
  .tabs { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; align-items: center; }
  .tabs > .tab, .tabs > .nav-more-toggle { flex: none; white-space: nowrap; }
  .tabs .nav-more-toggle { order: 12; } .tabs .nav-user { order: 13; }
  .tabs.nav-overflow .nav-more-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.06);
    color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer;
  }
  .tabs.nav-overflow .nav-more-toggle[aria-expanded="true"], .tabs.nav-overflow .nav-more-toggle.has-active { border-color: var(--gold); color: var(--gold); }
  .tabs.nav-overflow .nav-more {
    display: none; position: absolute; right: max(1.25rem, calc((100% - 1200px) / 2 + 1.25rem)); top: calc(100% + .35rem);
    flex-direction: column; gap: .25rem; min-width: 190px; padding: .5rem;
    background: rgba(12,22,32,0.98); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 50;
    max-height: calc(100vh - 5rem); overflow-y: auto; overscroll-behavior: contain;
  }
  .tabs.nav-overflow .nav-more.open { display: flex; }
  .tabs.nav-overflow .nav-more > * { flex-shrink: 0; }
  .tabs.nav-overflow .nav-more .tab { text-align: left; border-radius: 10px; min-height: 44px; }
}
@media (max-width: 700px) {
  .header-inner { flex-wrap: nowrap; gap: .5rem; padding: .5rem .75rem; }
  .brand-wordmark { height: 42px; }
  .tabs { flex-wrap: nowrap; gap: .25rem; align-items: center; }
  .tab { padding: .45rem .7rem; font-size: .92rem; min-height: 44px; }
  .brand { flex: 0 0 auto; }
  .nav-more .tab { min-height: 48px; }
  .nav-more-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.06);
    color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer;
  }
  .nav-more-toggle[aria-expanded="true"], .nav-more-toggle.has-active {
    border-color: var(--gold); color: var(--gold);
  }
  .nav-more {
    display: none; position: absolute; right: .75rem; top: calc(100% + .35rem);
    flex-direction: column; gap: .25rem; min-width: 170px; padding: .5rem;
    background: rgba(12,22,32,0.98); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow); z-index: 50;
    /* never taller than the screen below the header: scroll inside instead of clipping Odjava */
    max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem - env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav-more.open { display: flex; }
  .nav-more > * { flex-shrink: 0; }
  .nav-more .tab { text-align: left; border-radius: 10px; }
  /* Only Časovnica + Zabava stay in the bar; applyAuth() moves the rest into ≡ – this hides them until it has run (no flash) */
  .tabs > .tab[data-tab]:not([data-tab="casovnica"]):not([data-tab="zabava"]) { display: none; }
}

main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.tab-panel[hidden] { display: none !important; }

.hero-pirate {
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: center;
  margin-bottom: 1.5rem;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .hero-pirate { grid-template-columns: 1fr; text-align: center; }
  .hero-skull { margin: 0 auto; }
  .brand-wordmark { max-width: 220px; }
}
.hero-skull {
  width: 100%; max-width: 200px; border-radius: 16px;
  border: 2px solid rgba(248,164,24,0.4);
}
.brand-kicker { margin: 0; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }
.hero-copy h2, .tt-toolbar h2, #tab-gradiva > h2, #tab-zadolzitve > h2, #teme-list-view > h2 {
  font-family: var(--serif); font-size: 1.9rem; margin: .2rem 0 .5rem; color: #fff;
}
.lede { font-size: 1.08rem; color: var(--ink-muted); max-width: 40rem; margin: 0 0 1rem; }
.hero-actions { margin: 1rem 0 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
  padding: .35rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff;
}
.chip.gold { background: rgba(248,164,24,0.2); border-color: rgba(248,164,24,0.55); color: var(--cream); }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
}
.card.muted { margin-top: 1.25rem; }
.card h3 { margin: 0 0 .6rem; font-size: 1.1rem; color: #fff; }
.card a { color: var(--gold-soft); font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; color: var(--gold); }
.pirati-banner {
  margin-top: 1.25rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.pirati-banner img { max-width: min(420px, 100%); height: auto; }

.btn {
  border: none; border-radius: 10px; padding: .55rem .95rem;
  font: inherit; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none;
}
.btn.primary { background: var(--gold); color: var(--navy-deep); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: rgba(255,255,255,0.1); color: #fff; flex: 1; font-size: .82rem; }
.btn.ghost:hover { background: rgba(255,255,255,0.16); }
.btn.mikro {
  background: linear-gradient(135deg, var(--gold), #e08910);
  color: var(--navy-deep);
  padding: .7rem 1rem; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(248,164,24,0.35);
  font-size: 1rem;
}
.btn.mikro:hover { filter: brightness(1.06); }

.tt-layout {
  display: grid; gap: 1.25rem;
  grid-template-columns: 260px 1fr;
  align-items: start;
}
@media (max-width: 860px) {
  .tt-layout { grid-template-columns: minmax(0, 1fr); }
  .tt-main, .tt-sidebar { min-width: 0; }
  .tt-sidebar { position: static !important; }
  /* mobile: no day minimap, keep only search/filters */
  .tt-sidebar .sidebar-title, .tt-sidebar .day-nav { display: none; }
  .tt-sidebar .sidebar-tools { border-top: none; padding-top: 0; }
  /* mobile: search input only */
  .tt-sidebar .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tt-sidebar .sidebar-tools .check { display: none; }
  #tt-summary { display: none; }
  .search-row { display: flex; gap: 8px; align-items: center; }
  .search-row #tt-search { flex: 1 1 auto; min-width: 0; width: auto; }
  .tt-layout > .tt-sidebar { padding: 0; background: none; border: none; box-shadow: none; border-radius: 0; }
  .tt-layout { gap: .5rem; }
  main { padding: .5rem 10px 2rem; }
  .header-inner { padding-left: 10px; padding-right: 10px; }
  #tt-search { margin-bottom: 0; min-height: 44px; font-size: 16px; }
  .icon-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
    width: 44px; height: 44px; padding: 0; line-height: 1; border-radius: 50%;
    border: none; background: rgba(248,164,24,0.2); color: var(--gold); cursor: pointer;
  }
  .icon-toggle[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
  /* one cohesive top block: header + search row + day strip share --top-bg */
  :root { --top-bg: rgb(10, 19, 29); }
  .site-header { background: var(--top-bg); border-bottom: none; backdrop-filter: none; }
  #tab-casovnica { margin-top: -.5rem; }
  .tt-layout { gap: 0; }
  .tt-layout > .tt-sidebar { background: var(--top-bg); margin: 0 -10px; padding: 4px 10px 2px; }
  .search-row #tt-search {
    background: rgba(255,255,255,0.05); border: none; border-bottom: 1px solid var(--line);
    border-radius: 8px 8px 0 0; color: #fff;
  }
  .search-row #tt-search:focus { outline: none; border-bottom-color: var(--gold); background: rgba(255,255,255,0.08); }
  body { overflow-x: clip; }
  /* mobile day strip + one selected day (hidden while searching = all matches shown) */
  .day-strip {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
    position: sticky; top: var(--hdr-h, 60px); z-index: 30;
    margin: 0 -10px .6rem; padding: 6px 10px;
    background: var(--top-bg, rgb(10,19,29));
    border-bottom: 1px solid var(--line);
  }
  .day-strip::-webkit-scrollbar { display: none; }
  .day-strip.searching .ds-chip { opacity: .7; }
  .ds-chip {
    min-width: 0; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; font-size: .78rem; line-height: 1.15;
    padding: 4px 0; cursor: pointer; white-space: nowrap; min-height: 46px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  }
  .ds-chip .ds-date { font-size: .72rem; }
  .ds-chip .ds-wd { font-weight: 800; }
  .ds-chip .ds-date { color: var(--ink-muted); font-weight: 600; }
  .ds-chip.active { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
  .ds-chip.active .ds-date { color: var(--navy-deep); }
}
.day-strip { display: none; }
@media (min-width: 861px) { .icon-toggle { display: none; } }
@media (max-width: 860px) { .day-strip { display: grid; } }
.tt-sidebar {
  position: sticky; top: 5.2rem;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.sidebar-title { margin: 0 0 .75rem; font-size: 1rem; color: #fff; }
.day-nav { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
.dn-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  padding: .45rem .7rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; font-size: .9rem; white-space: nowrap;
}
.dn-row:hover, .dn-row.active {
  background: rgba(248,164,24,0.13); border-color: rgba(248,164,24,0.4);
}
.dn-day { text-decoration: none; color: var(--ink); font-weight: 700; }
.dn-row.active .dn-day { color: #fff; }
.dn-date { font-weight: 600; color: var(--ink-muted); margin-left: .2rem; }
.dn-tk { font-size: .82rem; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; }
.dn-tk-none { opacity: .6; }
.day-nav .wk {
  display: block; font-size: .72rem; font-weight: 700; color: var(--gold-soft);
  text-transform: uppercase; letter-spacing: .04em; margin: .5rem 0 .2rem; padding-left: .7rem;
}
.sidebar-tools { border-top: 1px solid var(--line); padding-top: .9rem; }
.search-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-muted); margin-bottom: .3rem; }
#tt-search {
  width: 100%; padding: .55rem .7rem; border-radius: 10px;
  border: 1px solid var(--line); font: inherit; margin-bottom: .6rem;
  background: rgba(0,0,0,0.25); color: #fff;
}
#tt-search::placeholder { color: #8fa8ba; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--ink-muted); }
.check input { margin-top: .2rem; }
.tt-toolbar { margin-bottom: 1rem; }
.muted-text { color: var(--ink-muted); margin: 0; font-size: .95rem; }


.tk-badge, .mikro-badge, .mikro-missing {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 700;
  padding: .28rem .55rem; border-radius: 999px;
  white-space: nowrap;
}
.tk-badge {
  background: rgba(248,164,24,0.2);
  border: 1px solid rgba(248,164,24,0.5);
  color: var(--cream);
}
.tk-badge .ico { font-size: .9rem; }
.mikro-badge {
  background: rgba(120,152,56,0.25);
  border: 1px solid rgba(120,152,56,0.55);
  color: #dff0b0;
}
.mikro-missing {
  background: var(--warn-bg);
  border: 1px solid rgba(240,192,112,0.45);
  color: var(--warn);
  cursor: help;
}

.session {
  border: 1px solid var(--line); border-radius: 12px;
  margin-top: .65rem; background: rgba(0,0,0,0.18);
}
.session.hidden-by-filter { display: none; }
.session.kind-program { border-left: 4px solid var(--gold); }
.session.kind-activity { border-left: 4px solid var(--band-purple); }
.session.kind-logistics { border-left: 4px solid #5a7a8c; opacity: .9; }
.session.kind-obrok { border-left: 4px solid var(--band-yellow); }
.badge.obrok { background: rgba(240,232,112,0.18); color: var(--band-yellow); }
.session-header {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto;
  gap: .75rem; align-items: center; padding: .75rem .9rem;
  border: none; background: transparent; cursor: pointer; font: inherit; text-align: left; color: inherit;
}
.session-header:hover { background: rgba(255,255,255,0.04); }
.time-badge {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem;
  color: var(--navy-deep); background: var(--cream);
  padding: .35rem .55rem; border-radius: 8px; white-space: nowrap;
}
.session-title { font-weight: 700; margin: 0; font-size: 1rem; color: #fff; }
.session-sub { margin: .2rem 0 0; font-size: .82rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: .2rem .45rem; border-radius: 6px; margin-left: .35rem;
  vertical-align: middle;
}
.badge.tema { background: rgba(248,164,24,0.25); color: var(--gold-soft); }
.badge.izbirna { background: rgba(107,58,140,0.35); color: #e2c4f5; }
.badge.dodatna { background: rgba(120,152,56,0.3); color: #d4e8a8; }
.badge.activity { background: rgba(208,32,8,0.25); color: #ffb4a8; }

.session-body { padding: 0 1rem 1rem; border-top: 1px dashed var(--line); }
.mikro-slot { margin: .9rem 0 1rem; }
.mikro-slot .hint { margin: .4rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.detail-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.detail-block h4 {
  margin: 0 0 .4rem; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gold-soft);
}
.detail-block ul { margin: 0; padding-left: 1.1rem; }
.detail-block li { margin: .25rem 0; }
.detail-block a { color: var(--gold-soft); font-weight: 600; }
.detail-block a.secondary-link { color: var(--ink-muted); font-weight: 500; }
.trainers { display: flex; flex-wrap: wrap; gap: .35rem; }
.trainer-pill {
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
  padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.empty-detail { color: var(--ink-muted); font-style: italic; font-size: .92rem; }

.materials-list, .modules-list { display: grid; gap: .65rem; }
.material-item, .module-item {
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.material-item a, .module-item a { color: var(--gold-soft); font-weight: 700; text-decoration: none; }
.type-tag { font-size: .75rem; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; }
.section-gap { margin-top: 2rem; font-family: var(--serif); color: #fff; }
.plain-list { margin: 0; padding-left: 1.1rem; }
.plain-list li { margin: .35rem 0; }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.75rem 1.25rem 2rem;
  text-align: center; color: var(--ink-muted); font-size: .88rem;
  background: rgba(6,13,20,0.6);
}
.footer-logo { display: block; margin: 0 auto .75rem; max-width: 220px; height: auto; opacity: .95; }
.site-footer p { margin: .2rem 0; }
.footer-sub { font-size: .8rem; opacity: .8; }

.highlight-pulse { animation: pulse 1.2s ease; }
@keyframes pulse {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px rgba(248,164,24,.55); }
}


.home-badge { width: 140px; height: 140px; object-fit: contain; margin-bottom: .25rem; }
.badge.tema { background: rgba(248,164,24,0.25); color: var(--gold-soft); }

.lit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.lit-list li { margin: 0; }
.lit-main {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  background: rgba(248,164,24,0.16);
  border: 1px solid rgba(248,164,24,0.5);
  border-radius: 10px;
  padding: .55rem .75rem;
}
.lit-main a { color: var(--gold); font-weight: 800; text-decoration: none; }
.lit-main a:hover { text-decoration: underline; }
.lit-tag {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--gold); color: var(--navy-deep);
  padding: .15rem .45rem; border-radius: 999px;
}
.lit-missing {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  background: var(--warn-bg);
  border: 1px solid rgba(240,192,112,0.45);
  border-radius: 10px;
  padding: .55rem .75rem;
  color: var(--warn);
  font-weight: 700;
}
.lit-secondary a { color: var(--gold-soft); font-weight: 600; }

.detail-grid-tema {
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.4fr) minmax(220px, 1.2fr);
  align-items: start;
}
@media (max-width: 900px) {
  .detail-grid-tema { grid-template-columns: 1fr; }
}
.detail-notes {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--line);
}
.detail-wide ul { columns: 1; }

/* —— Ekipa & person pages —— */
.person-link {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(248,164,24,0.45);
}
.person-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-decoration: none;
}
a.trainer-pill.person-link,
.trainer-pill.person-link {
  background: rgba(248,164,24,0.14);
  border: 1px solid rgba(248,164,24,0.45);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  border-bottom: none;
  display: inline-flex;
}
a.trainer-pill.person-link:hover {
  background: rgba(248,164,24,0.28);
  border-color: var(--gold);
}
.tk-badge .person-link { color: var(--cream); border-bottom-color: rgba(248,241,214,0.4); }
.tk-badge .person-link:hover { color: #fff; }
.sidebar-person { color: inherit; font-weight: 700; border-bottom-color: rgba(248,164,24,0.35); }

.ekipa-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 1rem;
}
a.ekipa-card {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
  display: block;
}
a.ekipa-card:hover {
  border-color: rgba(248,164,24,0.55);
  background: rgba(248,164,24,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
a.ekipa-card h3 { margin: 0 0 .35rem; color: #fff; }
.ekipa-bits { display: flex; flex-wrap: wrap; gap: .35rem; margin: .65rem 0 0; }
.ekipa-bits .chip { font-size: .78rem; padding: .2rem .55rem; }

.person-back { margin: 0 0 .85rem; }
.person-back a { color: var(--gold-soft); font-weight: 700; text-decoration: none; }
.person-back a:hover { color: var(--gold); text-decoration: underline; }
.person-header h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin: 0 0 .35rem;
  color: #fff;
}
.person-roles { display: grid; gap: 1rem; margin-top: 1rem; }
.role-group h3 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.role-count {
  font-size: .75rem;
  font-weight: 800;
  background: rgba(248,164,24,0.25);
  color: var(--gold);
  padding: .15rem .5rem;
  border-radius: 999px;
}
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.role-list li {
  display: grid;
  gap: .1rem;
  padding: .4rem .55rem;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.role-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}
.role-link:hover { text-decoration: underline; }
.role-title { font-weight: 700; color: #fff; }
.role-meta { font-size: .88rem; color: var(--ink-muted); font-weight: 600; }
.role-note { font-size: .85rem; color: var(--ink-muted); font-style: italic; }
.role-source { font-size: .75rem; color: var(--gold-soft); opacity: .85; }

#tab-ekipa > #ekipa-list-view > h2,
#tab-ekipa .person-header h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: #fff;
}

#ekipa-list-view[hidden],
#person-view[hidden] {
  display: none !important;
}

/* —— Workload comparison chart —— */
.workload-card { margin: 1rem 0 1.35rem; position: relative; }
.workload-card h3 {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}
.workload-note { font-size: .9rem; margin: 0 0 .75rem; max-width: 52rem; }
.workload-legend {
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem;
  align-items: center; font-size: .88rem; font-weight: 700;
  color: var(--ink-muted); margin-bottom: .65rem;
}
.wl-item { white-space: nowrap; display: inline-flex; align-items: center; }
@media (max-width: 860px) {
  .workload-legend { flex-wrap: wrap; gap: .45rem .7rem; font-size: .72rem; }
  .workload-legend .wl-swatch { width: .65rem; height: .65rem; margin-right: .25rem; }
  .wl-legend-group { gap: .45rem .55rem; }
}
@media (max-width: 379px) {
  .workload-legend { flex-direction: column; align-items: flex-start; gap: .3rem; font-size: .78rem; }
}
.wl-swatch {
  display: inline-block; width: .85rem; height: .85rem;
  border-radius: 3px; margin-right: .35rem; vertical-align: -1px;
}
.wl-swatch.teme { background: var(--gold); }
.wl-legend-group {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem;
  padding-right: .35rem; margin-right: .15rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.wl-swatch.teme-obvezne { background: #f8a418; }
.wl-swatch.teme-izbirne { background: #d49220; }
.wl-swatch.teme-ostale { background: #a87828; }
.wl-swatch.zad { background: var(--band-purple); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.workload-chart { position: relative; width: 100%; overflow-x: auto; }
.workload-svg { display: block; min-width: 0; max-width: 100%; }
.wl-hit { fill: transparent; cursor: pointer; }
.wl-row:hover .wl-hit { fill: rgba(248,164,24,0.08); }
.wl-row:focus { outline: none; }
.wl-row:focus .wl-hit { fill: rgba(248,164,24,0.14); }
.wl-name {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  pointer-events: none;
}
.wl-bar { pointer-events: none; }
.wl-bar.teme { fill: var(--gold); }
.wl-bar.teme-obvezne { fill: #f8a418; }
.wl-bar.teme-izbirne { fill: #d49220; }
.wl-bar.teme-ostale { fill: #a87828; }
.wl-bar.zad { fill: var(--band-purple); }
.wl-count {
  fill: var(--navy-deep);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font);
  pointer-events: none;
}
.wl-bar.zad + .wl-count,
.wl-count.on-zad { fill: #f3e8ff; }
/* counts sitting on purple segment need light fill — paint both counts dark on gold, light if centered on zad via dual classes avoided; use cream on all counts over bars */
.wl-count { fill: var(--navy-deep); }
.wl-total {
  fill: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  pointer-events: none;
}
.workload-tooltip {
  position: absolute;
  z-index: 20;
  max-width: min(280px, 85vw);
  padding: .65rem .8rem;
  background: rgba(12, 22, 32, 0.97);
  border: 1px solid rgba(248,164,24,0.45);
  border-radius: 10px;
  color: var(--cream);
  font-size: .8rem;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.person-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .85rem;
  align-items: center;
  margin-bottom: .35rem;
}
.person-title-row h2 { margin: 0; }
.person-tk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
a.person-tk.tk-badge {
  text-decoration: none;
  color: var(--cream);
  border-bottom: none;
}
a.person-tk.tk-badge:hover {
  filter: brightness(1.08);
  color: #fff;
}

@media (max-width: 640px) {
  .workload-note { font-size: .84rem; }
  .wl-name { font-size: 11px; }
}
.wl-count.on-zad { fill: #f7f0ff; }
.wl-count.on-ostale { fill: #fff8e8; }


/* Zadolžitve: subtle split between pred / med (no subheaders) */
.role-group-zad .zad-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: .85rem 0;
  opacity: .85;
}
.role-group-zad .role-list + .zad-divider {
  margin-top: .85rem;
}
.role-group-zad .zad-divider + .role-list {
  margin-top: 0;
}

.wl-swatch.zad-pre { background: #9b6bb8; }
.wl-swatch.zad-during { background: #5a2d78; }
.wl-bar.zad-pre { fill: #9b6bb8; }
.wl-bar.zad-during { fill: #5a2d78; }

/* —— Teme / coverage —— */
.cov-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .2rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.cov-badge.pripravljeno { background: rgba(120,152,56,.35); color: #e8f5c8; border: 1px solid rgba(120,152,56,.55); }
.cov-badge.potrebuje_dopolnitev { background: rgba(240,192,112,.22); color: var(--warn); border: 1px solid rgba(240,192,112,.45); }
.cov-badge.ni_mikronacrta { background: rgba(208,32,8,.18); color: #ffb4a8; border: 1px solid rgba(208,32,8,.35); }
.cov-badge.ni_pripravljeno { background: rgba(208,32,8,.18); color: #ffb4a8; border: 1px solid rgba(208,32,8,.35); }

.teme-overview { margin-top: .75rem; }
.teme-table { display: flex; flex-direction: column; gap: .35rem; }
.teme-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.6fr) auto minmax(8rem, 1fr) minmax(5rem, .7fr);
  gap: .75rem;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.teme-row:hover { border-color: rgba(248,164,24,.45); background: rgba(255,255,255,.09); }
.teme-head {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  padding: .35rem 1rem;
}
.teme-head:hover { background: transparent; border: none; }
.teme-counts { color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.tema-header { margin-bottom: 1rem; }
.tema-title-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.tema-title-row h2 { margin: 0; }
.tema-badges { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tema-body { display: flex; flex-direction: column; gap: 1rem; }
.tema-section h3 { margin-top: 0; }
.tema-actions { margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.session-title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(248,164,24,.55);
  text-underline-offset: 3px;
  font-weight: inherit;
}
.session-title-link:hover { color: var(--gold-soft); text-decoration-color: var(--gold); }

.cov-checklist { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.cov-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: .7rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.cov-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: .35rem;
  background: var(--ink-muted);
}
.cov-item.status-vkljuceno { border-color: rgba(120,152,56,.4); }
.cov-item.status-vkljuceno .cov-dot { background: #789838; }
.cov-item.status-delno { border-color: rgba(240,192,112,.45); }
.cov-item.status-delno .cov-dot { background: var(--warn); }
.cov-item.status-manjka { border-color: rgba(208,32,8,.35); }
.cov-item.status-manjka .cov-dot { background: #d02008; }
.cov-item-head { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: baseline; }
.cov-status { font-size: .78rem; font-weight: 700; color: var(--ink-muted); }
.cov-evidence { margin: .35rem 0 0; font-size: .9rem; color: var(--ink-muted); }

.occ-list { list-style: none; margin: 0; padding: 0; }
.occ-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.occ-list li:last-child { border-bottom: none; }
.occ-list a { color: var(--gold-soft); }

.sheet-rows { display: flex; flex-direction: column; gap: .5rem; }
.card-lite {
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.1);
  display: grid;
  gap: .25rem;
}
.mikro-missing-block { margin: 0; }
.badge.parts {
  background: rgba(248,164,24,.18);
  color: var(--gold-soft);
  border: 1px solid rgba(248,164,24,.35);
}
.badge.duration { background: rgba(255,255,255,.08); color: var(--ink-muted); }

@media (max-width: 720px) {
  .teme-row { grid-template-columns: 1fr 1fr; }
  .teme-head { display: none; }
  .teme-name { grid-column: 1 / -1; }
}

/* spacing above izbirne-block Tema links in expanded entries */
.session-body .tema-actions { margin-top: 12px; }

/* —— Teme tab (cards) & Zadolžitve tab —— */
.teme-overview { display: grid; gap: .6rem; }
.tm-card, .zd-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; display: flex; flex-direction: column; gap: .45rem;
}
.tm-head { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.tm-title { color: #fff; font-weight: 800; font-size: 1.02rem; text-decoration: none; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tm-title:hover { color: var(--gold); text-decoration: underline; }
.tm-badges { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; }
.tm-counts { font-size: .8rem; color: var(--ink-muted); font-weight: 700; }
.tm-row, .zd-people, .zd-slots { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.slot-link {
  display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  color: var(--cream); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.slot-link:hover { border-color: var(--gold); color: var(--gold); }
.zd-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.zd-title { font-weight: 800; color: #fff; }
.zd-rok { font-size: .85rem; color: var(--gold-soft); font-weight: 700; }
.zd-divider { border: none; border-top: 1px solid var(--line); margin: 1rem 0; }
@media (max-width: 860px) {
  .tm-title { min-height: 44px; display: inline-flex; align-items: center; }
  /* compact chips (same .trainer-pill as Časovnica); invisible ≥44px hit area */
  .slot-link, .tm-card .trainer-pill, .zd-item .trainer-pill, .trainers .trainer-pill { position: relative; }
  .slot-link::after, .tm-card .trainer-pill::after, .zd-item .trainer-pill::after, .trainers .trainer-pill::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
  }
  .tm-row, .zd-people, .zd-slots { row-gap: .5rem; }
  .tm-card, .zd-item { padding: .6rem .7rem; }
}

/* —— Entry card header: row 1 title | time, row 2 tags + people (no chevron) —— */
.session > .session-header { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
.sh-row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.sh-row1 .session-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sh-row1 .time-badge { flex: 0 0 auto; }
.sh-row2 { margin: 0; }
.sh-row2:empty { display: none; }
.sh-row2 .badge { margin-left: 0; }
.sh-row2 .trainer-pill { font-size: .78rem; padding: .15rem .55rem; }
.session-header:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 10px; }
.body-cov { margin: .75rem 0 0; }
.sh-people { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
@media (max-width: 860px) {
  .role-list li { min-height: 44px; align-content: center; }
  .role-link { position: relative; }
  .role-link::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}

/* Teme overview: people chips share the slot row, right-aligned */
.tm-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; justify-content: space-between; }
.tm-meta-row .tm-slots { display: flex; flex-wrap: wrap; gap: .35rem; }
.tm-meta-row .tm-people { margin-left: auto; }

/* Zadolžitve + Gradiva card grids */
#zadolzitve-list { display: flex; flex-direction: column; gap: 1rem; }
.zd-ul { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.materials-list { display: grid; grid-template-columns: 1fr; gap: .65rem; }
@media (min-width: 640px) {
  .zd-ul, .materials-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .zd-ul, .materials-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.zd-divider { grid-column: 1 / -1; margin: .25rem 0; }
.person-tk-day {
  color: var(--cream); font-weight: 700; font-size: .9rem; text-decoration: none;
  border-bottom: 1px dotted rgba(248,241,214,.35);
}
a.person-tk-day:hover { color: #fff; border-bottom-color: var(--gold); }
.cov-inline { margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed var(--line); }

/* —— Domov: countdown + progress —— */
.home-hero { padding: 1rem 1.15rem 1.15rem; }
.home-hero-top { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.home-badge-sm { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; border-radius: 10px; }
.home-hero h2 { margin: .1rem 0 0; font-family: var(--serif); font-size: 1.45rem; color: #fff; }
.home-dates { margin: .35rem 0 .75rem; font-size: .9rem; }
.countdown { margin: .25rem 0 .5rem; }
.countdown-label { margin: 0 0 .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }
.countdown-units { display: flex; flex-wrap: wrap; gap: .45rem; }
.cd-unit {
  min-width: 3.4rem; padding: .45rem .55rem; border-radius: 10px; text-align: center;
  background: rgba(0,0,0,.22); border: 1px solid var(--line);
}
.cd-unit strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.cd-unit em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.cd-live, .cd-done { font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.home-progress-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 640px) { .home-progress-grid { grid-template-columns: 1fr 1fr; } }
.progress-card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.progress-card:hover { border-color: rgba(248,164,24,.45); transform: translateY(-1px); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .45rem; }
.progress-head h3 { margin: 0; font-size: 1rem; color: #fff; }
.progress-count { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.progress-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; width: 0; transition: width .4s ease; }
.progress-fill.gold { background: linear-gradient(90deg, var(--gold), #e08910); }
.progress-fill.purple { background: linear-gradient(90deg, #9b6bb8, var(--band-purple)); }
.progress-caption { margin: .45rem 0 0; font-size: .85rem; }
.home-weekend .plain-list.compact { margin: .4rem 0 0; padding-left: 1.1rem; }
.home-weekend .plain-list.compact li { margin: .25rem 0; }
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 0; }
@media (max-width: 860px) {
  .cd-unit { min-width: 3.1rem; min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; }
  .progress-card { min-height: 44px; }
}

.tm-group { margin: 0 0 1.25rem; }
.tm-group-title { margin: 0 0 .65rem; font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.tm-group .teme-overview { margin-top: 0; }

/* —— Izročki tab —— */
.iz-charts {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
  margin: .75rem 0 1.25rem;
}
@media (min-width: 720px) {
  .iz-charts { grid-template-columns: 1fr 1fr; }
}
.iz-chart-card h3 { margin: 0 0 .55rem; font-size: 1.05rem; color: #fff; }
.iz-list-title { margin: 1.25rem 0 .65rem; font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.gr-section-title { margin: 2rem 0 .4rem; font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.iz-list {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .iz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .iz-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.iz-card { min-width: 0; }
.iz-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .45rem;
}
.iz-file-list { margin: .35rem 0 0; padding-left: 1.1rem; }
.iz-file-list li { margin: .25rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.iz-hbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: .45rem;
  align-items: center;
  margin: .4rem 0;
  min-width: 0;
}
.iz-hbar-label {
  font-size: .85rem;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}
a.iz-hbar-label:hover { color: var(--gold); }
.iz-hbar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  min-width: 0;
}
.iz-hbar-fill { height: 100%; border-radius: 999px; }
.iz-hbar-fill.ready { background: linear-gradient(90deg, var(--gold), #e08910); }
.iz-hbar-fill.missing { background: rgba(255,255,255,.22); }
.iz-hbar-fill.pages { background: linear-gradient(90deg, #9b6bb8, var(--band-purple)); }
.iz-hbar-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: .9rem;
  min-width: 1.5rem;
  text-align: right;
}
@media (max-width: 860px) {
  .iz-hbar-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; }
  .iz-card, .iz-chart-card { min-height: 44px; }
}

/* —— Person page: Teme subgroups (Obvezne / Izbirne / Drugo) —— */
.role-subgroup { margin: .65rem 0 0; }
.role-subgroup:first-of-type { margin-top: .35rem; }
.role-subhead {
  margin: 0 0 .35rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.role-subgroup .role-list { margin: 0; }

/* —— Časovnica vertical timeline (date | line + dot | cards) —— */
.timeline { --tl-date: 76px; --tl-gap: 26px; position: relative; }
.tl-day {
  position: relative; display: grid; grid-template-columns: var(--tl-date) minmax(0, 1fr);
  column-gap: var(--tl-gap); padding: .2rem 0 1.4rem;
  scroll-margin-top: calc(var(--hdr-h, 60px) + 64px);
}
.tl-day.hidden-by-filter { display: none; }
/* continuous thin line between date column and cards */
.tl-day::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--tl-date) + var(--tl-gap) / 2); width: 1px; background: var(--line);
}
.tl-dot {
  position: absolute; top: .95rem; left: calc(var(--tl-date) + var(--tl-gap) / 2 - 5px);
  width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid var(--ink-muted); background: var(--bg);
}
.tl-day.is-upcoming .tl-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(248,164,24,.22); }
.tl-date {
  all: unset; box-sizing: border-box; cursor: pointer; align-self: start;
  display: flex; flex-direction: column; align-items: flex-start; padding-top: .3rem; min-height: 44px;
  position: sticky; top: calc(var(--hdr-h, 60px) + .5rem);
}
.tl-date:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.tl-wk { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); opacity: .8; margin-bottom: .1rem; white-space: nowrap; }
.tl-num { font-family: var(--serif); font-size: 2rem; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tl-wd { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--ink-muted); margin-top: .15rem; }
.tl-tk { font-size: .72rem; color: var(--ink-muted); margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tl-day.is-upcoming .tl-num { color: var(--gold); }
.tl-events { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.tl-events .empty-detail { margin: .6rem 0; }

/* compact one-line cards */
.timeline .session { margin: 0; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-left-width: 1px; }
.timeline .session > .session-header { padding: .7rem .85rem; gap: .3rem; min-height: 48px; justify-content: center; }
.timeline .sh-row1 { align-items: center; }
.timeline .sh-row1 .session-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal;
  font-weight: 600; font-size: .98rem;
}
.timeline .session[open] .sh-row1 .session-title { white-space: normal; overflow-wrap: anywhere; }
.timeline .time-badge { background: none; color: var(--ink-muted); padding: 0; font-size: .82rem; font-weight: 600; }
.timeline .sh-people { margin: 0; justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; }
.timeline .sh-people .trainer-pill { font-size: .72rem; padding: .08rem .5rem; white-space: nowrap; }
/* colours: Teme highlighted (gold fill), meals yellow, activities purple, rest neutral */
.timeline .session.is-tema { background: linear-gradient(90deg, rgba(248,164,24,0.28), rgba(248,164,24,0.14)); border-color: rgba(248,164,24,0.45); }
.timeline .session.is-tema.cat-izbirna { background: linear-gradient(90deg, rgba(107,58,140,0.5), rgba(107,58,140,0.28)); border-color: rgba(167,108,210,0.5); }
.timeline .session.is-tema.cat-dodatna { background: linear-gradient(90deg, rgba(120,152,56,0.4), rgba(120,152,56,0.2)); border-color: rgba(150,190,80,0.5); }
.timeline .session.is-tema .session-title, .timeline .session.is-tema .session-title-link { color: #fff; font-weight: 800; }
.timeline .session.is-tema .time-badge { color: var(--cream); }
.timeline .session.kind-obrok { background: rgba(240,232,112,0.12); border-color: rgba(240,232,112,0.35); }
.timeline .session.kind-obrok .time-badge { color: var(--band-yellow); }
.timeline .session.kind-activity:not(.is-tema) { border-left: 3px solid var(--band-purple); }
.timeline .session.kind-logistics { opacity: 1; }
.timeline .session-body { padding: 0 .85rem .85rem; }

@media (max-width: 860px) {
  .timeline { --tl-date: 44px; --tl-gap: 18px; }
  .tl-num { font-size: 1.6rem; }
  .tl-wd { font-size: .7rem; }
  .tl-wk { display: none; }
  .tl-tk { font-size: .62rem; margin-top: .25rem; max-width: var(--tl-date); line-height: 1.15; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; }
  .tl-tk-ico { display: none; }
  .tl-date { top: calc(var(--hdr-h, 60px) + 64px); }
  .tl-day { padding-bottom: 1.1rem; }
  .timeline .session > .session-header { padding: .65rem .7rem; }
  .tt-toolbar { margin-bottom: .4rem; }
}
@media (max-width: 379px) {
  .timeline { --tl-date: 38px; --tl-gap: 14px; }
  .timeline .time-badge { font-size: .76rem; }
}

/* current-time line (today only) */
.tl-events { position: relative; }
.tl-now { position: absolute; z-index: 4; left: calc(-1 * var(--tl-gap) / 2 - 4px); right: 0; height: 0; border-top: 2px solid var(--band-red); z-index: 3; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--band-red); }
.tl-now-label { position: absolute; right: calc(100% + 3px); top: -8px; white-space: nowrap; box-shadow: 0 0 0 2px var(--bg); font-size: .66rem; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 999px; background: var(--band-red); color: #fff; font-variant-numeric: tabular-nums; }

/* gap between non-consecutive days: dashed line through empty space */
.tl-gap { position: relative; height: 64px; margin: -.6rem 0 .6rem; }
.tl-gap::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--tl-date) + var(--tl-gap) / 2);
  border-left: 1px dashed var(--ink-muted); opacity: .55;
}
#tt-summary:empty { display: none; }

/* —— Avatars (Trop photos / initials) —— */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: rgba(248,164,24,0.2); color: var(--gold-soft); font-weight: 800; border: 2px solid rgba(255,255,255,0.12); box-sizing: border-box; }
.avatar-md { width: 52px; height: 52px; font-size: 1rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; border-width: 3px; border-color: rgba(248,164,24,0.5); }
.ekipa-card-head { display: flex; align-items: center; gap: .75rem; }
.ekipa-card-head > div { min-width: 0; }
.ekipa-card-head h3 { margin: 0 0 .15rem; }
.person-avatar:empty { display: none; }
.person-title-row:has(.person-avatar) { align-items: center; }
@media (max-width: 640px) { .avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; } }

/* gaps: line fades out and back in; optional CGP sea monster between real event days */
.tl-gap { height: 72px; }
.tl-gap.has-art { height: auto; min-height: 120px; display: grid; grid-template-columns: var(--tl-date) minmax(0, 1fr); column-gap: var(--tl-gap); align-items: center; padding: .4rem 0 1rem; }
.tl-gap::before { border-left: none; opacity: 1; width: 1px; background: linear-gradient(to bottom, var(--line), transparent 30%, transparent 70%, var(--line)); }
.tl-gap-art { grid-column: 2; justify-self: center; width: min(100%, 300px); height: auto; opacity: .9; }
@media (max-width: 860px) { .tl-gap-art { width: min(100%, 220px); } }

/* theme switch (Domov) */
.theme-row { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; color: var(--ink-muted); font-size: .9rem; font-weight: 600; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.1); cursor: pointer; padding: 0; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; inset: -7px; } /* ≥44px hit area */
.switch-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .18s ease; }
.switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* —— CGP theme (Vodja 2026 CGP colours from grb-vodja-2026.svg / morska-posast; fonts per pravilnik CGP: Ubuntu + Alegreya) —— */
:root[data-theme="cgp"] {
  --cgp-bordo: #690B22; --cgp-paper: #F1E4D3; --cgp-coral: #E17A60; --cgp-red: #D4240B;
  --cgp-indigo: #3C3F8E; --cgp-gold: #F9A61A; --cgp-yellow: #F1EB76; --cgp-olive: #7A9A3E; --cgp-sea: #1B4D3E;
  --navy: var(--cgp-bordo); --navy-deep: #3a0613; --navy-mid: #7d1530;
  --gold: var(--cgp-gold); --gold-soft: #f7c977; --cream: var(--cgp-paper); --cream-dim: #e6d6c2;
  --ink: #f6ece0; --ink-muted: #d3bdb3;
  --band-red: var(--cgp-red); --band-purple: #6a6dc4; --band-yellow: var(--cgp-yellow); --band-green: var(--cgp-olive);
  --card-solid: #2a1219; --bg: #1c0a10; --bg-2: #24101a; --panel: rgba(42,18,25,0.9);
  --line: rgba(241,228,211,0.2); --top-bg: #22090f;
  --font: "Ubuntu", "Nunito Sans", system-ui, sans-serif;
  --serif: "Alegreya", Georgia, serif;
}
:root[data-theme="cgp"] body {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(249,166,26,0.10), transparent 55%),
    radial-gradient(800px 500px at -10% 20%, rgba(27,77,62,0.35), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 45%, #160609 100%);
  background-color: var(--bg); background-attachment: fixed;
}
:root[data-theme="cgp"] .site-header { background: rgba(34, 9, 15, 0.94); }
@media (max-width: 860px) { :root[data-theme="cgp"] .site-header { background: var(--top-bg); } }
:root[data-theme="cgp"] .tl-gap-art { opacity: 1; filter: brightness(1.25); }

/* —— Sign-in gate, no-access, account —— */
body.auth-locked main, body.auth-locked #main-nav { display: none; }
.auth-gate { min-height: 70vh; display: grid; place-items: center; padding: 1.5rem 12px; }
.auth-card { max-width: 380px; width: 100%; text-align: center; display: grid; justify-items: center; gap: .6rem; padding: 1.75rem 1.25rem; }
.auth-card h2 { margin: .25rem 0 0; font-family: var(--serif); }
.gsi-button { min-height: 44px; display: flex; justify-content: center; }
.auth-note:empty { display: none; }
/* [hidden] must beat display:grid above (root cause of 'login stays visible') */
.auth-gate[hidden], [hidden] { display: none !important; }
.noaccess-card { max-width: 520px; margin: 2rem auto; text-align: center; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; border-width: 1px; }
.nav-user { display: flex; align-items: center; gap: .45rem; margin-left: .35rem; }
.nav-user[hidden] { display: none; }
.nav-user { position: relative; }
.nav-user-name { display: none; }
.user-btn { display: inline-flex; align-items: center; gap: .5rem; background: none; border: none; padding: 7px; margin: -7px; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; }
.user-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 220px; max-width: 80vw;
  display: flex; flex-direction: column; gap: .2rem; padding: .6rem;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.user-menu-name { margin: 0; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.user-menu-email { margin: 0 0 .35rem; font-size: .82rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.user-menu-item { display: flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.sim-switch { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .35rem 0 .45rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.sim-label { font-size: .75rem; color: var(--ink-muted); margin-right: .2rem; flex-basis: 100%; }
.sim-opt { flex: 1; min-height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.sim-opt[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.sim-banner { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem .8rem; padding: .4rem .5rem .4rem 1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.4); background: var(--gold); color: var(--navy-deep); font-size: .85rem; text-align: center; }
.sim-banner[hidden] { display: none; }
.sim-exit { border: 1px solid var(--navy-deep); background: transparent; color: var(--navy-deep); border-radius: 999px; padding: .15rem .7rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.user-menu-item:hover { border-color: var(--gold); color: var(--gold-soft); }
.account-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; font-size: .9rem; }
.account-row[hidden] { display: none; }
.account-row > span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.account-row a { color: var(--gold-soft); }
@media (max-width: 700px) {
  /* inside the ≡ dropdown: avatar + name + Odjava on one row */
  .nav-user { margin: .35rem 0 0; padding-top: .5rem; border-top: 1px solid var(--line); }
  .user-btn { width: 100%; margin: 0; padding: 0 .4rem; min-height: 44px; border-radius: 10px; text-align: left; }
  .user-menu { position: static; min-width: 0; max-width: none; box-shadow: none; margin-top: .35rem; background: rgba(255,255,255,0.04); }
  .nav-user { flex-direction: column; align-items: stretch; }
  .nav-user-name { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
}

/* person page: Tema title + compact "1. in 2. del" pill on one row */
.role-head { display: flex; align-items: baseline; gap: .4rem; min-width: 0; }
.role-head > .role-link, .role-head > .role-title { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.role-head .badge.parts { flex: 0 0 auto; margin: 0; padding: .05rem .4rem; font-size: .62rem; line-height: 1.4; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }

/* header logo = CGP grb-vodja-2026.svg (vector, sharp on retina); same height as before, no frame */
.brand-wordmark.brand-grb { width: auto; aspect-ratio: 300 / 340; border: none; border-radius: 0; background: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }

.auth-art { width: min(220px, 60vw); height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* —— Zabava: Wordle —— */
.wordle { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: .6rem; }
.wd-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.wd-head h2 { margin: 0; font-family: var(--serif); color: #fff; }
.wd-sub { font-size: .85rem; }
.wd-timer { margin: 0 0 0 auto; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.wd-timer.is-done { border-color: var(--gold); color: var(--gold-soft); }
.wd-time { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-msg { min-height: 1.4em; margin: 0; text-align: center; font-weight: 700; color: var(--gold-soft); }
.wd-board { display: grid; gap: 6px; justify-content: center; }
.wd-row { display: grid; grid-template-columns: repeat(var(--wd-len, 5), max(34px, min(56px, calc((100vw - 60px) / var(--wd-len, 5)), calc((100svh - 400px) / 6)))); gap: 6px; }
.wordle { gap: .45rem; }
#tab-zabava .wd-head h2 { font-size: 1.3rem; }
.wd-cell {
  aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 6px;
  font-size: clamp(1.2rem, 6vw, 1.7rem); font-weight: 800; color: #fff; text-transform: uppercase; user-select: none;
}
.wd-cell.filled { border-color: var(--ink-muted); }
.wd-cell.correct, .wd-key.correct { background: #538d4e; border-color: #538d4e; color: #fff; }
.wd-cell.present, .wd-key.present { background: #c9a227; border-color: #c9a227; color: #fff; }
.wd-cell.absent { background: #3a3a3c; border-color: #3a3a3c; color: #fff; }
.wd-key.absent { background: #2a2a2c; color: rgba(255,255,255,.45); }
.wd-row.shake { animation: wdshake .35s; }
@keyframes wdshake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.wd-kb { display: grid; gap: 6px; margin-top: .3rem; user-select: none; }
.wd-kb-row { display: flex; gap: 4px; justify-content: center; }
.wd-key {
  flex: 1 1 0; min-width: 0; max-width: 44px; height: 52px; padding: 0; border: none; border-radius: 6px;
  background: rgba(255,255,255,0.16); color: var(--ink); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer;
  touch-action: manipulation;
}
.wd-key.wide { flex: 1.6 1 0; max-width: 72px; font-size: .74rem; }
.wd-key:active { filter: brightness(1.3); }
.wd-stats { margin-top: .8rem; }
.wd-stat-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; text-align: center; font-size: .72rem; color: var(--ink-muted); }
.wd-stat-nums strong { display: block; font-size: 1.3rem; color: #fff; }
.wd-dist { display: grid; gap: 3px; margin-top: .6rem; font-size: .78rem; }
.wd-dist-row { display: flex; align-items: center; gap: .4rem; }
.wd-dist-row > span:first-child { width: 1em; text-align: right; color: var(--ink-muted); }
.wd-bar { background: rgba(255,255,255,0.14); color: #fff; text-align: right; padding: 0 .4rem; border-radius: 3px; font-weight: 700; }
@media (max-width: 360px) { .wd-key { height: 48px; font-size: .85rem; } .wd-kb-row { gap: 3px; } }

/* Wordle scoreboard */
.wd-score { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.wd-score-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.wd-stab { flex: 1 1 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.wd-stab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.wd-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.wd-board-list li { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .3rem .6rem; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.wd-rank { width: 1.6em; text-align: right; color: var(--ink-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.wd-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-meta { font-size: .76rem; color: var(--ink-muted); white-space: nowrap; }
.wd-res { font-weight: 800; color: #6fbf67; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-res.fail { color: var(--ink-muted); }
.wd-board-list.total .wd-res { color: var(--gold-soft); }
.wd-score-note { font-size: .75rem; margin-top: .5rem; }
.wd-pts { min-width: 2.6em; text-align: right; font-weight: 800; color: var(--gold-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-rank.medal { font-size: 1.15rem; text-align: center; }

/* —— Obiski (admin stats on Domov) —— */
.visits { margin-top: 1rem; padding: 1rem; overflow-x: clip; }
.visits h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.visits-h { font-size: .9rem; margin: 1rem 0 .4rem; color: var(--gold-soft); }
.vbars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; height: 130px; align-items: end; }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.vbar-fill { width: 100%; min-height: 2px; background: var(--gold); border-radius: 4px 4px 0 0; }
.vbar-n { font-size: .65rem; color: var(--ink-muted); line-height: 1.2; }
.vbar-d { font-size: .62rem; color: var(--ink-muted); margin-top: 2px; }
.vrows { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.vrow { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr 2.2rem; gap: .5rem; align-items: center; font-size: .88rem; }
.vrow-l { overflow-wrap: anywhere; }
.vrow-bar { height: 8px; background: var(--card); border-radius: 4px; overflow: hidden; }
.vrow-bar span { display: block; height: 100%; background: var(--gold-soft); }
.vrow-n { text-align: right; font-variant-numeric: tabular-nums; }

/* —— Preverbe placeholder —— */
.placeholder-card { padding: 1.25rem 1rem; overflow-wrap: anywhere; }
.placeholder-card h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.placeholder-card p { margin: 0; }

/* —— OS skupine —— */
#tab-os { overflow-x: clip; }
.os-head h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.os-head p { margin: 0 0 .9rem; }
.os-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 861px) { .os-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.os-card { padding: .9rem 1rem; min-width: 0; }
.os-card.is-mine { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.os-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; margin-bottom: .5rem; }
.os-card-head h3 { margin: 0; font-size: 1.05rem; color: var(--gold-soft); }
.os-spr { margin: 0; font-size: .9rem; }
.os-spr a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.os-members { list-style: none; margin: 0; padding: 0; }
.os-members li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .75rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.os-name { font-weight: 600; overflow-wrap: anywhere; }
.os-steg { font-size: .85rem; }
#tab-analitika .visits { margin-top: 0; }

/* —— OS group detail (#os/N) —— */
a.os-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
a.os-card:hover, a.os-card:focus-visible { border-color: var(--gold); background: rgba(248,164,24,0.08); text-decoration: none; }
a.os-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.os-faces { display: flex; align-items: center; margin: .1rem 0 .55rem; padding-left: 6px; }
.avatar-xs { width: 34px; height: 34px; font-size: .7rem; margin-left: -6px; border: 2px solid var(--card-solid); }
.os-more { margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--gold-soft); }
.os-detail-head h2 { margin: 0 0 .3rem; font-size: 1.4rem; }
.os-detail-head .muted-text { margin: .2rem 0 .9rem; }
.os-spr-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: inherit; }
a.os-spr-link { text-decoration: underline; text-underline-offset: 3px; }
.os-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 640px) { .os-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .os-people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.os-person { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; min-width: 0; }
.avatar-os { width: 72px; height: 72px; font-size: 1.4rem; border-width: 2px; border-color: rgba(248,164,24,0.45); }
.os-person-txt { display: flex; flex-direction: column; min-width: 0; }
.os-person-link { color: inherit; text-decoration: none; height: 100%; box-sizing: border-box; }
.os-person-link:hover { border-color: var(--gold); }
.os-person-link:hover .os-name { color: var(--gold-soft); }
.os-person .os-name { font-size: 1.02rem; }
#tab-os .person-back a { display: inline-flex; align-items: center; min-height: 44px; }

/* —— OS: content per day —— */
.os-days { margin-top: 1.5rem; }
.os-day { padding: 0; margin-bottom: .6rem; }
.os-day summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; padding: .8rem 1rem; min-height: 44px; cursor: pointer; }
.os-day[open] summary { border-bottom: 1px solid var(--line); }
.os-day-n { font-weight: 700; color: var(--gold-soft); }
.os-day-title { font-weight: 600; overflow-wrap: anywhere; }
.os-day-extra { margin: .6rem 1rem 0; }
.os-day-body { padding: .6rem 1rem 1rem; overflow-wrap: anywhere; }
.os-day-body p { margin: .5rem 0; line-height: 1.5; }
.os-day-body ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.os-day-body li { margin: .25rem 0; line-height: 1.5; }
.os-sec { margin: .9rem 0; padding-left: .8rem; border-left: 3px solid var(--line); }
.os-sec-label { display: inline-block; margin: 0 0 .2rem -.8rem; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--line); color: #fff; }
.os-sec-uvod { border-left-color: #4aa3df; } .os-sec-uvod .os-sec-label { background: #4aa3df; color: #08202f; }
.os-sec-vprasanja { border-left-color: var(--gold); } .os-sec-vprasanja .os-sec-label { background: var(--gold); color: #2a1c00; }
.os-sec-aktivnosti { border-left-color: #5fbf8a; } .os-sec-aktivnosti .os-sec-label { background: #5fbf8a; color: #06231a; }
.os-sec-zakljucek { border-left-color: #b98ae0; } .os-sec-zakljucek .os-sec-label { background: #b98ae0; color: #1e0d30; }

/* UU presence Gantt */
.uu-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .8rem; font-size: .85rem; color: var(--ink-muted); }
.uu-key { display: inline-block; width: 1.6rem; height: .7rem; border-radius: 3px; margin-right: .4rem; vertical-align: middle; }
.uu-present { background: var(--band-green); }
.uu-absent { background: var(--band-red); }
.uu-tentative { background: repeating-linear-gradient(45deg, var(--band-red) 0 4px, rgba(208,32,8,.25) 4px 8px); }
.uu-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.uu-row { display: flex; min-width: 980px; align-items: stretch; border-top: 1px solid rgba(251,241,214,.07); }
.uu-row.uu-groupstart { border-top: 1px solid var(--line); }
.uu-name { flex: 0 0 190px; position: sticky; left: 0; z-index: 2; background: var(--card-solid); padding: .3rem .6rem; font-size: .85rem; display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.uu-grp { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--navy-mid); color: var(--gold-soft); font-size: .7rem; font-weight: 700; }
.uu-flag { margin-left: auto; width: 1rem; height: 1rem; border-radius: 50%; background: var(--warn-bg); color: var(--warn); font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center; cursor: help; }
.uu-days { flex: 1; display: flex; gap: 1rem; padding: .3rem .5rem; min-width: 0; }
.uu-weekend { display: flex; flex-direction: column; flex: 1; }
.uu-daysrow, .uu-weekend { gap: 0; }
.uu-cell { position: relative; display: block; min-width: 0; height: 1.2rem; margin: .1rem 1px; border-radius: 3px; background: rgba(255,255,255,.04); overflow: hidden; }
.uu-weekend { flex-direction: row; }
.uu-head .uu-weekend { flex-direction: column; }
.uu-head .uu-daysrow { display: flex; }
.uu-head .uu-name { font-weight: 700; color: var(--gold-soft); }
.uu-wk-title { font-size: .75rem; font-weight: 700; color: var(--gold-soft); padding-left: 2px; }
.uu-cell.uu-dayhead { height: auto; background: none; display: flex; flex-direction: column; font-size: .72rem; line-height: 1.2; overflow: visible; }
.uu-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.uu-bar.uu-present { background: var(--band-green); opacity: .85; }
.uu-bar.uu-absent, .uu-bar.uu-tentative { z-index: 1; }
.uu-foot { margin-top: .8rem; font-size: .8rem; }
.uu-cell.uu-dayhead span { font-size: .68rem; }
.zd-section { margin-top: 2rem; }
.uu-name a { color: inherit; text-decoration: none; }
.uu-name a:hover { color: var(--gold-soft); text-decoration: underline; }
.uu-person { padding: 1rem 1.2rem; margin-bottom: .8rem; }
.uu-person-head { display: flex; align-items: center; gap: 1rem; }
.uu-person-head h2 { margin: 0; }
.uu-person-head p { margin: .1rem 0 0; }
.uu-summary { margin: .8rem 0 0; }
.uu-contact { margin: .35rem 0 0; overflow-wrap: anywhere; }
.uu-contact-btn { flex: none; padding: .3rem .7rem; }
.uu-days-detail { padding: .4rem 1.2rem; }
.uu-drow { display: grid; grid-template-columns: 150px 1fr; gap: .4rem 1rem; padding: .8rem 0; border-top: 1px solid rgba(251,241,214,.07); }
.uu-drow:first-child { border-top: 0; }
.uu-dlabel { display: flex; flex-direction: column; font-size: .9rem; }
.uu-dlabel span { font-size: .75rem; }
.uu-cell.uu-big { height: 1.6rem; margin: 0; }
.uu-ticks { position: relative; height: 1rem; font-size: .68rem; color: var(--ink-muted); }
.uu-tick { position: absolute; transform: translateX(-50%); }
.uu-now { position: absolute; top: 0; width: 0; border-left: 2px solid var(--gold); z-index: 1; pointer-events: none; }
.uu-now-label { position: absolute; top: 2px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: .66rem; font-weight: 800; line-height: 1; padding: 2px 5px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--card-solid); }
.uu-now-d { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,.35); z-index: 2; pointer-events: none; }
.uu-abs-list { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.uu-abs-list li.is-tentative { color: var(--warn); }
.uu-allday { margin: .3rem 0 0; font-size: .85rem; }
@media (max-width: 600px) { .uu-drow { grid-template-columns: 1fr; } }
.uu-name { flex-basis: 112px; gap: .3rem; }
.uu-row { min-width: 760px; }
.uu-grouphead { position: sticky; left: 0; background: rgba(0,64,100,.35); border-top: 1px solid var(--line); padding: .2rem .6rem; font-size: .75rem; font-weight: 700; color: var(--gold-soft); min-width: 760px; }
.uu-grouphead span { position: sticky; left: .6rem; }
.uu-row.uu-groupstart { border-top: 1px solid rgba(251,241,214,.07); }
@media (max-width: 600px) { .uu-name { flex-basis: 92px; padding: .3rem .4rem; font-size: .8rem; } .uu-row, .uu-grouphead { min-width: 640px; } .uu-days { gap: .5rem; padding: .3rem .3rem; } }
.uu-name { flex: 0 0 112px; width: 112px; min-width: 0; overflow: hidden; }
.uu-name a { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .uu-name { flex-basis: 98px; width: 98px; } }
@media (max-width: 600px) { .uu-name { flex-basis: 108px; width: 108px; padding-right: .2rem; } .uu-flag { margin-left: auto; flex: 0 0 .9rem; width: .9rem; height: .9rem; font-size: .62rem; } }

/* —— Preverbe: Teme (embedded forms) / Generalno —— */
.pv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .9rem; }
.pv-tabs { display: flex; gap: .4rem; flex: 1 1 100%; }
.pv-tab { flex: 1 1 0; display: grid; place-items: center; min-height: 44px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--ink); font-weight: 700; text-decoration: none; }
.pv-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.pv-lede { margin: 0 0 .7rem; }
.pv-empty { padding: 1.2rem; }
.pv-empty p { margin: 0 0 .3rem; }
.pv-form { padding: 0; margin-bottom: .8rem; overflow: hidden; }
.pv-form summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; cursor: pointer; list-style: none; }
.pv-form summary::-webkit-details-marker { display: none; }
.pv-form summary::after { content: "▾"; color: var(--gold-soft); margin-left: .4rem; }
.pv-form[open] summary::after { content: "▴"; }
.pv-form-title { font-weight: 800; margin-right: auto; }
.pv-form iframe { display: block; width: 100%; height: min(1400px, 150vh); border: 0; background: #fff; }
.pv-open { margin: 0; padding: .6rem 1.2rem; font-size: .85rem; }
.pv-gen { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.pv-gen > label:first-child { display: flex; flex-direction: column; gap: .1rem; }
.pv-gen > label:first-child .muted-text { font-size: .85rem; }
.pv-gen textarea { width: 100%; box-sizing: border-box; min-height: 6rem; resize: vertical; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; }
.pv-gen textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pv-gen-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.pv-gen-foot .btn { flex: none; min-width: 110px; }
.pv-send { justify-content: center; gap: .5rem; }
.pv-send svg { flex: none; }
.pv-anon input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--gold); }
.pv-anon { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--ink-muted); cursor: pointer; }
.pv-status { margin: 0; font-size: .88rem; min-height: 1.2em; }
.pv-status.is-ok { color: var(--band-green); }
.pv-status.is-err { color: var(--warn); }

/* —— Zabava: Wordle / Stavnica —— */
/* Zabava chooser: two big image buttons */
.zb-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 980px; margin: .5rem auto 0; }
@media (max-width: 700px) { .zb-pick { grid-template-columns: 1fr; gap: .9rem; } }
.zb-pick[hidden] { display: none; }
.zb-choice { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.zb-choice img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: contain; background: #fff; }
.zb-choice-label { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.1rem; font-weight: 800; font-size: 1.05rem; }
.zb-choice-label::after { content: "›"; font-size: 1.5rem; line-height: 1; color: var(--gold-soft); }
.zb-choice:hover, .zb-choice:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.zb-choice:hover .zb-choice-label { color: var(--gold-soft); }
.zb-back { margin: 0 0 .8rem; }
.stavnica { max-width: 720px; margin: 0 auto; }
.sv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; margin-bottom: .5rem; }
.sv-bal-label { display: block; font-size: .78rem; color: var(--ink-muted); }
.sv-bal { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.sv-bal small { font-size: .8rem; font-weight: 600; color: var(--ink-muted); }
.btn.sv-refresh { flex: none; }
.sv-help { font-size: .85rem; margin: 0 0 .9rem; }
.sv-card { padding: 1rem 1.2rem; margin-bottom: .8rem; }
.sv-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.sv-img { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.06); }
.sv-q { margin: 0; margin-right: auto; font-size: 1.02rem; line-height: 1.3; }
.sv-odds { flex: none; padding: .15rem .55rem; border-radius: 999px; background: rgba(250,204,21,.15); color: var(--gold-soft); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sv-q::first-letter { text-transform: uppercase; }
.sv-meta { margin: -.3rem 0 .6rem; font-size: .85rem; }
.sv-res { color: var(--band-green); }
.sv-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.sv-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .4rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; overflow: hidden; text-align: left; }
.sv-opt:hover:not(:disabled) { border-color: var(--gold); }
.sv-opt:disabled { cursor: default; }
.sv-opt.is-sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.sv-opt.is-win { border-color: var(--band-green); }
.sv-opt.is-win { background: rgba(107,142,35,.35); color: #fff; }
.sv-opt-label { position: relative; z-index: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-pct { position: relative; z-index: 1; flex: none; white-space: nowrap; font-size: .75rem; font-weight: 700; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.sv-meter { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); opacity: .16; transition: width .4s ease; }
.sv-foot { margin: .55rem 0 0; font-size: .78rem; }
.sv-credits { font-size: .72rem; margin: 1rem 0 0; }
.sv-credits a { color: inherit; }
.sv-bet { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.sv-bet-title { margin: 0; }
.sv-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.sv-chip { min-width: 3rem; min-height: 36px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.sv-chip:hover { border-color: var(--gold); }
.sv-bet-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.sv-bet-row input { width: 6.5rem; min-height: 44px; box-sizing: border-box; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; font-weight: 700; }
.sv-bet-row .btn { flex: none; min-height: 44px; }
.sv-payout { margin: 0; font-size: .85rem; }
.sv-status { margin: 0; font-size: .88rem; }
.sv-status.is-err { color: var(--warn); }
.sv-empty { padding: 1.2rem; }
/* bet lists sit directly in the panel (no box), separated by a labelled divider */
.sv-list { margin: 1.6rem 0 0; }
.sv-list h3 { display: flex; align-items: center; gap: .8rem; margin: 0 0 .8rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.sv-list h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sv-list ul { list-style: none; margin: 0; padding: 0; }
.sv-list li { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid rgba(251,241,214,.07); font-size: .88rem; }
.sv-list li:first-child { border-top: 0; }
.sv-l-who { font-weight: 700; flex: none; }
.sv-l-q { flex: 1; min-width: 0; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-l-o { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-l-p { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.sv-l-p.is-win { color: var(--band-green); font-weight: 800; }

/* —— Preverbe: folder tabs, the active tab flows into its panel —— */
.pv-folder { --pv-bg: rgba(255,255,255,0.07); }
.pv-ftabs { display: flex; }
.pv-ftab.pv-tab { /* override the pill look of .pv-tab */
  position: relative; flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: .1rem; min-height: 50px; padding: 0 1rem; white-space: nowrap;
  background: rgba(0,0,0,0.22); color: var(--ink-muted); font-weight: 700; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
}
.pv-ftab + .pv-ftab { margin-left: -1px; }
.pv-ftab.pv-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.pv-ftab.pv-tab[aria-selected="true"] {
  z-index: 1; background: var(--pv-bg); color: var(--gold-soft); border-bottom-color: transparent;
  box-shadow: inset 0 3px 0 var(--gold);
}
.pv-fpanel {
  background: var(--pv-bg); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
}
/* inner cards sit inside the panel: lighter, no extra shadow */
.pv-fpanel .card { background: rgba(255,255,255,0.04); box-shadow: none; }
.pv-fpanel .pv-gen:last-child, .pv-fpanel .pv-form:last-child, .pv-fpanel .pv-empty { margin-bottom: 0; }
@media (max-width: 700px) { .pv-fpanel { padding: .8rem; } }

/* —— Stavnica: Stave / Profil tabs, list cards, detail view —— */
.stavnica .pv-folder { margin-top: 0; }
.sv-tab-bal { margin-left: .4rem; font-size: .85em; font-variant-numeric: tabular-nums; }
.sv-card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.sv-card-link:hover { border-color: var(--gold); transform: translateY(-1px); }
.sv-card-link:hover .sv-go { color: var(--gold); }
.sv-mini { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.sv-mini-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 40px; padding: .45rem .75rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); font-size: .85rem; overflow: hidden; }
.sv-mini-opt span { position: relative; z-index: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-mini-opt strong { position: relative; z-index: 1; flex: none; white-space: nowrap; color: var(--gold-soft); font-variant-numeric: tabular-nums; font-size: .85rem; }
.sv-mini-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); opacity: .16; }
.sv-mini-opt.is-win { border-color: var(--band-green); background: rgba(107,142,35,.3); }
.sv-foot { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sv-foot.is-ok { color: var(--band-green); font-weight: 700; }
.sv-go { margin-left: auto; font-weight: 700; color: var(--gold-soft); }
.sv-back { margin: 0 0 .8rem; }
.sv-detail { margin-bottom: 1rem; }
.sv-detail-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sv-detail-img { flex: none; width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.sv-detail-head .sv-q { font-size: 1.3rem; margin: 0 0 .35rem; }
.sv-detail-meta { margin: 0; font-size: .85rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sv-detail .sv-opt { min-height: 56px; font-size: 1.05rem; }
.sv-detail .sv-pct { font-size: .85rem; }
.sv-detail .sv-opt-label { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.sv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .sv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-detail-img { width: 72px; height: 72px; } .sv-detail-head .sv-q { font-size: 1.12rem; } }
.sv-stats .card { padding: .7rem .9rem; display: flex; flex-direction: column; gap: .1rem; }
.sv-stats span { font-size: .75rem; }
.sv-stats strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
a.sv-l-q { color: var(--ink-muted); text-decoration: none; }
a.sv-l-q:hover { color: var(--gold-soft); text-decoration: underline; }
.sv-panel .sv-list:last-child { margin-bottom: 0; }

/* —— Stavnica: bet rows (Moje stave / Zadnje stave) —— */
.sv-list ul.sv-bets { display: grid; gap: .55rem; }
.sv-list li.sv-bet-item { display: block; padding: .7rem .8rem; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.05); }
.sv-bet-item.is-won { border-color: rgba(107,142,35,.7); background: rgba(107,142,35,.12); }
.sv-bet-item.is-lost { opacity: .7; }
.sv-bi-top { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; min-width: 0; }
.sv-bi-who { font-weight: 800; flex: none; }
.sv-list .sv-bi-q, .sv-list a.sv-bi-q { flex: 1; min-width: 0; color: var(--ink); font-size: .9rem; line-height: 1.3; text-decoration: none; }
.sv-bi-top.has-who { flex-wrap: wrap; }
.sv-bi-top.has-who .sv-bi-q { order: 3; flex-basis: 100%; color: var(--ink-muted); }
.sv-bi-q::first-letter { text-transform: uppercase; }
.sv-list a.sv-bi-q:hover { color: var(--gold-soft); text-decoration: underline; }
.sv-bi-time { flex: none; margin-left: auto; font-size: .75rem; white-space: nowrap; }
.sv-bi-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.sv-fact { display: flex; flex-direction: column; gap: .05rem; padding: .35rem .55rem; border-radius: 8px; background: rgba(0,0,0,.2); min-width: 0; }
.sv-fact small { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.sv-fact strong { font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sv-fact-pick { background: rgba(250,204,21,.14); box-shadow: inset 0 0 0 1px rgba(250,204,21,.35); }
.sv-fact-pick strong { color: var(--gold-soft); }
.sv-fact-out strong.is-win { color: var(--band-green); }
.sv-fact-out strong.is-lost { color: var(--ink-muted); }
.sv-fact-out strong + small { text-transform: none; letter-spacing: 0; }

/* Role badges (Analitika → Po osebah) */
.role-badge { display: inline-block; margin-left: .4rem; padding: .05rem .4rem; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .05em; vertical-align: middle; line-height: 1.4; border: 1px solid var(--line); color: var(--ink-muted); background: rgba(255,255,255,.05); }
.role-badge.role-admin { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.role-badge.role-svod { background: rgba(250,204,21,.14); border-color: rgba(250,204,21,.45); color: var(--gold-soft); }
@media (max-width: 480px) { .pv-ftab.pv-tab { padding: 0 .45rem; font-size: .88rem; } .sv-tab-bal { margin-left: .25rem; } }

/* —— Sign-in token status (avatar dot, account menu) —— */
.tok-wrap { position: relative; display: inline-flex; flex: none; }
.tok-wrap .tok-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--top-bg, #0b1520); }
.tok-dot { display: inline-block; background: var(--ink-muted); }
.tok-dot.is-ok { background: #3fbf5f; }
.tok-dot.is-bad { background: #e5484d; }
.tok-dot.is-busy { background: var(--gold); animation: tok-pulse 1s ease-in-out infinite; }
@keyframes tok-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tok-dot.is-busy { animation: none; } }
.tok-box { display: grid; gap: .35rem; padding: .35rem 0 .45rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.tok-line { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .45rem; margin: 0; font-size: .82rem; }
.tok-line .tok-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tok-line.is-bad { color: #ff8a8d; }
.tok-gsi:empty { display: none; }
/* Stavnica errors */
.sv-error .sv-err-title { font-weight: 800; margin: 0 0 .25rem; }
.sv-error.is-auth .sv-err-title { color: #ff8a8d; }
.sv-err-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.sv-err-actions .btn { flex: none; }

/* —— Ekipa: Lestvica ocen tem —— */
.ocene-card { margin-bottom: 1.25rem; }
.ocene-note { font-size: .85rem; margin: -.2rem 0 .8rem; }
.ocene-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.ocene-row { display: flex; align-items: center; gap: .5rem; padding: .55rem .65rem .55rem .35rem; min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.ocene-rank { flex: none; width: 1.5rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ocene-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.ocene-name { font-weight: 800; color: var(--ink); text-decoration: none; }
.ocene-name:hover { color: var(--gold-soft); text-decoration: underline; }
.ocene-temas { display: flex; flex-wrap: wrap; gap: .3rem; }
.ocene-chip { font-size: .72rem; padding: .1rem .45rem; border-radius: .6rem; background: rgba(0,0,0,.22); color: var(--ink-muted); max-width: 100%; overflow-wrap: anywhere; }
.ocene-chip strong { white-space: nowrap; }
.ocene-chip strong { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.ocene-score { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.ocene-score strong { font-size: 1.15rem; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.ocene-score small { font-size: .7rem; color: var(--ink-muted); white-space: nowrap; }
.pv-sub-h { margin: 1.4rem 0 .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); display: flex; align-items: center; gap: .8rem; }
.pv-sub-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pv-ftab.pv-tab[hidden] { display: none; }

/* —— Analitika: candle charts (Preverbe) —— */
.an-h { margin: 0 0 .75rem; font-size: 1.15rem; }
.pvc-note { font-size: .85rem; }
.pvc-block { margin: 0 0 1.4rem; }
.pvc-block h4 { margin: 0 0 .5rem; font-size: 1rem; }
.pvc-scroll { overflow-x: auto; }
.pvc-svg { display: block; max-width: 100%; height: auto; }
.pvc-grid { stroke: var(--line); stroke-width: 1; }
.pvc-tick, .pvc-x { fill: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pvc-x { font-weight: 700; }
.pvc-hit { fill: transparent; }
.pvc-whisker { stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.pvc-box { fill: rgba(248,164,24,.35); stroke: var(--gold); stroke-width: 2; }
.pvc-median { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.pvc-mean { fill: var(--gold); stroke: var(--card-solid); stroke-width: 2; }
.pvc-candle { outline: none; cursor: default; }
.pvc-candle:hover .pvc-box, .pvc-candle:focus .pvc-box { fill: rgba(248,164,24,.55); }
.pvc-candle:focus-visible .pvc-hit { stroke: var(--gold); stroke-dasharray: 3 3; }
.pvc-legend { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .2rem; font-size: .82rem; }
.pvc-qn { display: inline-block; min-width: 2.2em; font-weight: 800; color: var(--gold-soft); }
.pvc-table { margin-top: .5rem; font-size: .8rem; }
.pvc-table summary { cursor: pointer; color: var(--ink-muted); }
.pvc-table table { width: 100%; border-collapse: collapse; margin-top: .4rem; display: block; overflow-x: auto; }
.pvc-table th, .pvc-table td { padding: .25rem .4rem; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pvc-table th:nth-child(2), .pvc-table td:nth-child(2) { text-align: left; white-space: normal; min-width: 12rem; }
.pvt-key { font-size: .8rem; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.pvt-key > span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.pvt-key-line { display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.pvt-key-band { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: rgba(248,164,24,.25); }
.pvt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .75rem; }
.pvt-panel { margin: 0; padding: .55rem .6rem .3rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); min-width: 0; }
.pvt-panel figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: .85rem; margin-bottom: .2rem; }
.pvt-q { font-weight: 700; color: var(--ink); min-width: 0; }
.pvt-now { flex: none; display: flex; align-items: baseline; gap: .35rem; font-variant-numeric: tabular-nums; }
.pvt-now strong { font-size: 1.05rem; color: var(--ink); }
.pvt-delta { font-size: .72rem; color: var(--ink-muted); white-space: nowrap; }
.pvt-svg { width: 100%; }
.pvt-band { fill: rgba(248,164,24,.25); }
.pvt-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pvt-dot { fill: var(--gold); stroke: var(--card-solid); stroke-width: 2; }
.pvt-cross { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.pvt-col:hover .pvt-cross, .pvt-col:focus .pvt-cross { opacity: .8; }
.pvt-col:hover .pvt-dot, .pvt-col:focus .pvt-dot { r: 6; }
.pvt-x { font-weight: 700; }
.wda-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: .6rem; margin-bottom: 1.1rem; }
.wda-tile { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); font-size: .8rem; }
.wda-tile-n { font-size: 1.45rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.wda-tile-n small { font-size: .9rem; font-weight: 700; color: var(--ink-muted); }
.wda-svg { max-width: none; }
.wda-solved { fill: var(--gold); }
.wda-failed { fill: rgba(195,204,211,.4); }
.wda-val { fill: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wda-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.wda-key.solved { background: var(--gold); }
.wda-key.failed { background: rgba(195,204,211,.4); }
.pvt-col:hover .wda-solved, .pvt-col:focus .wda-solved { fill: var(--gold-soft); }
.pvc-tip { position: fixed; z-index: 200; max-width: min(320px, calc(100vw - 16px)); padding: .45rem .6rem; border-radius: 8px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: .78rem; white-space: pre-line; pointer-events: none; }
.pvc-tip[hidden] { display: none; }

/* —— Teme: tema score —— */
.badge.score { background: rgba(248,164,24,.18); color: var(--gold-soft); border: 1px solid rgba(248,164,24,.45); font-variant-numeric: tabular-nums; }
.tema-score[hidden] { display: none; }
.ts-wrap { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.ts-big { display: flex; flex-direction: column; min-width: 7rem; }
.ts-big strong { font-size: 2rem; line-height: 1.1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.ts-big span { font-size: .8rem; }
.ts-dist { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: grid; gap: .25rem; }
.ts-dist li { display: grid; grid-template-columns: 1.2rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .8rem; }
.ts-g { color: var(--ink-muted); text-align: right; font-weight: 700; }
.ts-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.ts-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.ts-n { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ts-note { font-size: .78rem; margin: .7rem 0 0; }

/* —— Vprašanja (admin) —— */
.vq-sum { margin: 0 0 .4rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-soft); font: inherit; cursor: pointer; text-decoration: underline; }
.vq-count { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(248,164,24,.18); color: var(--gold-soft); letter-spacing: 0; }
.vq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.vq-card { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.vq-card p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.vq-card time { font-size: .75rem; margin-top: auto; }
.vq-bar { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: .2rem; }
.vq-bar .vq-sum { margin: 0; }
.vq-err { margin: .2rem 0 0; color: var(--warn); font-size: .85rem; min-height: 1em; }
.vq-group[hidden], .vq-card[hidden] { display: none; }
.vq-card { position: relative; padding-right: 3.2rem; }
.vq-check { position: absolute; top: .65rem; right: .65rem; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: transparent; font-weight: 900; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s, color .15s; }
.vq-check:hover { border-color: #3fbf5f; color: rgba(63,191,95,.6); }
.vq-check[aria-pressed="true"] { background: #3fbf5f; border-color: #3fbf5f; color: #0b1520; }
.vq-card.is-done { opacity: .55; }
.vq-card.is-done p { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }

/* —— Stavnica: admin overview —— */
.sv-people { display: grid; gap: .45rem; }
.sv-person { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.05); }
.sv-person[open] { background: rgba(255,255,255,0.07); }
.sv-person summary { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; cursor: pointer; list-style: none; }
.sv-person summary::-webkit-details-marker { display: none; }
.sv-person summary::after { content: "▾"; color: var(--gold-soft); margin-left: .2rem; }
.sv-person[open] summary::after { content: "▴"; }
.sv-p-rank { width: 1.6rem; text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.sv-p-name { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-p-bal { font-weight: 800; color: var(--gold-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; padding: 0 .75rem; }
.sv-p-stats span { display: flex; flex-direction: column; padding: .35rem .55rem; border-radius: 8px; background: rgba(0,0,0,.2); }
.sv-p-stats small { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.sv-p-stats strong { font-variant-numeric: tabular-nums; }
.sv-p-mail { margin: .4rem .75rem .5rem; font-size: .75rem; overflow-wrap: anywhere; }
.sv-person .sv-bets { list-style: none; margin: 0; padding: 0 .75rem .75rem; display: grid; gap: .45rem; }
.sv-person li.sv-bet-item { display: block; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.04); }

/* —— Stavnica: admin adjustments —— */
.sv-list li.sv-adj-item, .sv-person li.sv-adj-item { display: flex; align-items: flex-start; gap: .6rem; padding: .65rem .8rem; border-radius: 12px; border: 1px dashed; }
.sv-adj-item.is-plus { border-color: rgba(248,164,24,.7); background: rgba(248,164,24,.12); }
.sv-adj-item.is-minus { border-color: rgba(229,72,77,.7); background: rgba(229,72,77,.12); }
.sv-adj-ico { font-size: 1.2rem; line-height: 1.2; flex: none; }
.sv-adj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.sv-adj-item.is-plus strong { color: var(--gold-soft); }
.sv-adj-item.is-minus strong { color: #ff8a8d; }
.sv-adj-main span { font-size: .85rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.sv-stat-adj strong { color: var(--gold-soft); }
.sv-p-adj { margin: 0 .75rem .7rem; padding: .6rem .7rem; border-radius: 10px; background: rgba(0,0,0,.2); }
.sv-p-adj-h { margin: 0 0 .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.sv-adj-form { display: grid; grid-template-columns: 5.5rem 1fr; gap: .45rem; }
.sv-adj-form input { min-height: 40px; box-sizing: border-box; padding: 0 .6rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; min-width: 0; }
.sv-adj-form input[name="email"] { grid-column: 1 / -1; }
.sv-adj-btns { grid-column: 1 / -1; display: flex; gap: .45rem; }
.sv-adj-btns .btn { flex: 1; min-height: 40px; justify-content: center; }
.sv-adj-form .sv-status { grid-column: 1 / -1; margin: 0; }
.sv-adj-new { padding: .7rem .9rem; margin-bottom: .8rem; }
.sv-adj-new summary { cursor: pointer; font-weight: 700; color: var(--gold-soft); margin-bottom: .2rem; }
.sv-adj-new[open] summary { margin-bottom: .6rem; }

/* —— Stavnica: gold coin + active / concluded groups (flat: heading line + left stripe on cards) —— */
.sv-coin { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; flex: none; }
.sv-sec { margin-top: 1.1rem; }
.sv-sec:first-child { margin-top: .2rem; }
.sv-sec-h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.sv-sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 3; }
.sv-sec-dot { width: .55rem; height: .55rem; border-radius: 50%; flex: none; }
.sv-sec-n { order: 2; font-size: .7rem; padding: .02rem .45rem; border-radius: 999px; background: rgba(255,255,255,.07); letter-spacing: 0; }
.sv-sec-empty { margin: 0; font-size: .85rem; }
.sv-sec .sv-bets { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sv-sec-active .sv-sec-h { color: var(--gold-soft); }
.sv-sec-active .sv-sec-dot { background: var(--gold); }
.sv-sec-done .sv-sec-dot { background: #8fa6c4; }
.sv-sec-adj .sv-sec-dot { background: var(--ink-muted); }
/* cards: one coloured stripe on the left shows the state */
.sv-sec li.sv-bet-item, .sv-sec li.sv-adj-item { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.05); }
.sv-sec-active li.sv-bet-item { border-left-color: var(--gold); }
.sv-sec-done li.sv-bet-item { border-left-color: #6f819a; background: rgba(255,255,255,0.03); }
.sv-sec-done li.sv-bet-item.is-won { border-left-color: var(--band-green); background: rgba(107,142,35,.1); opacity: 1; }
.sv-sec-done li.sv-bet-item.is-lost { opacity: .75; }
.sv-sec-done .sv-fact-pick { background: rgba(255,255,255,.06); box-shadow: none; }
.sv-sec-done .sv-fact-pick strong { color: var(--ink); }
.sv-sec li.sv-adj-item.is-plus { border-left-color: var(--gold); background: rgba(248,164,24,.08); }
.sv-sec li.sv-adj-item.is-minus { border-left-color: #e5484d; background: rgba(229,72,77,.08); }
/* status pill */
.sv-state { flex: none; order: 9; margin-left: .2rem; padding: .05rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.sv-state.is-open { background: rgba(248,164,24,.16); color: var(--gold-soft); }
.sv-state.is-won { background: rgba(107,142,35,.25); color: #a8d47a; }
.sv-state.is-lost { background: rgba(255,255,255,.07); color: var(--ink-muted); }
.sv-bi-top .sv-bi-time { order: 8; }
.sv-p-hist { padding: 0 .75rem .75rem; }
.zb-choice img { background: transparent; }

/* Open bets: payout is only potential → dashed gold box, "do N ×odds" */
.sv-fact.is-potential { background: rgba(248,164,24,.06); outline: 1px dashed rgba(248,164,24,.75); outline-offset: -1px; }
.sv-fact.is-potential small { color: var(--gold-soft); white-space: nowrap; }
.sv-fact.is-potential strong { color: var(--gold-soft); display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .25rem; }
.sv-pot-pre { font-size: .72rem; font-weight: 700; opacity: .85; }
.sv-pot-x { font-size: .66rem; font-weight: 800; padding: 0 .35rem; border-radius: 999px; background: rgba(248,164,24,.2); align-self: center; }

/* —— Stavnica: Pregled list + player page + chart —— */
.sv-person-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: inherit; text-decoration: none; }
.sv-person-link:hover { border-color: var(--gold); }
.sv-person-link .sv-go { margin-left: 0; font-size: 1.3rem; }
.sv-p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sv-p-sub { font-size: .75rem; }
.sv-player-head { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; margin-bottom: .6rem; }
.sv-player-head h2 { margin: 0; font-size: 1.2rem; }
.sv-player-head p { margin: .1rem 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.sv-player-head > div:nth-child(2) { flex: 1; min-width: 0; }
.sv-player-bal { display: flex; flex-direction: column; align-items: flex-end; }
.sv-player-bal small { font-size: .7rem; color: var(--ink-muted); }
.sv-player-bal strong { font-size: 1.4rem; color: var(--gold-soft); white-space: nowrap; }
.sv-stats .card strong .sv-coin { width: .9em; height: .9em; }
.svc-card { padding: .9rem 1rem; margin-bottom: .8rem; }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .4rem; }
.svc-head h3 { margin: 0; font-size: 1rem; }
.svc-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--ink-muted); }
.svc-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.svc-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.svc-grid { stroke: var(--line); stroke-width: 1; }
.svc-tick { fill: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.svc-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.svc-dot { stroke: var(--card-solid); stroke-width: 2; }
.svc-end { font-size: 11px; font-weight: 700; color: var(--ink); fill: var(--ink); }
.svc-cross { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.svc-hit { fill: transparent; cursor: crosshair; }
.sv-p-adj-card { padding: .9rem 1rem; margin-bottom: .4rem; }
.sv-p-adj-card h3 { margin: 0 0 .6rem; font-size: 1rem; }

/* —— Install as app (PWA) bar —— */
.install-bar { position: fixed; z-index: 150; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.install-bar[hidden] { display: none; }
.install-bar img { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.install-text { flex: 1; min-width: 0; }
.install-title { margin: 0; font-weight: 800; font-size: .92rem; color: var(--ink); }
.install-sub { margin: .1rem 0 0; font-size: .8rem; color: var(--ink-muted); }
.install-go { flex: none; min-height: 40px; padding: 0 .9rem; }
.install-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.install-x:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
@media (max-width: 480px) {
  #tab-analitika .pv-ftab.pv-tab { padding: 0 .45rem; font-size: .82rem; white-space: normal; text-align: center; line-height: 1.15; }
}

/* —— Stavnica admin: new question + resolve —— */
.sv-create-form { display: grid; gap: .6rem; margin-top: .6rem; }
.sv-create-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .88rem; }
.sv-create-form label .muted-text { font-weight: 400; }
.sv-create-form textarea, .sv-create-form input { box-sizing: border-box; width: 100%; min-height: 40px; padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; font-weight: 400; resize: vertical; }
.sv-create-opts { display: flex; gap: .4rem; }
.sv-create-opts input { flex: 1; min-width: 0; }
.sv-create-opts .btn { flex: none; min-height: 40px; padding: 0 .8rem; }
.sv-resolve { margin: 1rem 0; border-color: rgba(248,164,24,.45); }
.sv-resolve h3 { margin: 0 0 .3rem; font-size: 1rem; }
.sv-resolve-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.sv-resolve-btns .btn { min-height: 40px; }

/* —— Stavnica: Zadnje stave as a simple activity log —— */
.sv-log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); }
.sv-list .sv-log li.sv-log-item { display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; border-top: 1px solid var(--line); font-size: inherit; }
.sv-list .sv-log li.sv-log-item:first-child { border-top: 0; }
.sv-log-item .avatar { flex: none; }
.sv-log-main { flex: 1; min-width: 0; }
.sv-log-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; min-width: 0; font-size: .9rem; }
.sv-log-who { flex: 0 1 auto; max-width: 100%; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-log-pick { flex: none; padding: .05rem .5rem; border-radius: 999px; background: rgba(248,164,24,.16); color: var(--gold-soft); font-weight: 700; font-size: .8rem; }
.sv-log-amt { flex: none; display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.sv-log-amt .sv-coin { width: 14px; height: 14px; }
.sv-log-na { flex: none; font-size: .8rem; }
.sv-log-q { display: block; margin-top: .1rem; font-size: .78rem; color: var(--ink-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-log-q::first-letter { text-transform: uppercase; }
.sv-log-q:hover { color: var(--gold-soft); text-decoration: underline; }
.sv-log-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.sv-log-time { font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sv-log-ago { flex: none; padding: .02rem .45rem; border-radius: 999px; border: 1px solid rgba(248,164,24,.55); color: var(--gold-soft); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.sv-log-lost { padding: .05rem .45rem; border-radius: 999px; background: rgba(229,72,77,.16); color: #ff8a8d; font-weight: 800; font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sv-log-won { padding: .05rem .45rem; border-radius: 999px; background: rgba(107,142,35,.25); color: #a8d47a; font-weight: 800; font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wd-score-meta { margin: .6rem 0 0; font-size: .78rem; text-align: right; }
.sv-updated { margin: 1rem 0 0; font-size: .78rem; text-align: right; }

/* —— Analitika → Obiski: day filter —— */
.vday-chips { display: flex; gap: .4rem; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -1rem .7rem; padding: .1rem 1rem .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vday-chips::-webkit-scrollbar { display: none; }
.vday-chip { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 64px; min-height: 48px; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--ink); font: inherit; cursor: pointer; }
.vday-chip strong { font-size: .82rem; }
.vday-chip small { font-size: .7rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vday-chip.is-sel { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.vday-chip.is-sel small { color: var(--navy-deep); }
button.vbar { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 4px; }
button.vbar.is-dim .vbar-fill { opacity: .35; }
button.vbar.is-sel .vbar-fill { background: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold); }
button.vbar.is-sel .vbar-n, button.vbar.is-sel .vbar-d { color: var(--ink); font-weight: 800; }
.sv-create-img { display: grid; gap: .3rem; }
.sv-create-l { font-weight: 700; font-size: .88rem; }
.sv-create-l .muted-text { font-weight: 400; }
.sv-create-img-row { display: flex; align-items: center; gap: .5rem; }
.sv-create-img-row .sv-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.sv-create-form label.sv-img-pick { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .8rem; font-weight: 700; cursor: pointer; }

/* —— Zabava → Spot-A-Papiga —— */
.zb-choice.zb-wide { grid-column: 1 / -1; }
.zb-choice.zb-wide img { aspect-ratio: 35 / 12; object-fit: cover; }
.papiga { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
.papiga[hidden] { display: none; }
.pp-stage { position: relative; width: min(100%, calc(74svh * 3 / 4)); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #10202e; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.pp-stage[hidden] { display: none; }
.pp-stage.is-zoomed { cursor: grab; }
.pp-stage.is-done { cursor: grab; }
.pp-pan { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.pp-stage.is-full { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; max-width: none; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; background: #05121c; }
html.pp-full-open, html.pp-full-open body { overflow: hidden; }
.pp-fs-bar { display: none; }
.pp-stage.is-full .pp-fs-bar { display: flex; position: absolute; z-index: 2; top: max(.6rem, env(safe-area-inset-top)); left: .6rem; right: .6rem; gap: .5rem; align-items: flex-start; pointer-events: none; }
.pp-fs-timer, .pp-fs-msg:not(:empty) { padding: .3rem .7rem; border-radius: 999px; background: rgba(8,20,32,.82); color: #fff; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pp-fs-timer[hidden] { display: none; }
.pp-fs-msg { margin-left: auto; color: var(--gold-soft) !important; text-align: right; }
.pp-stage.is-full .pp-zoom { right: max(.6rem, env(safe-area-inset-right)); bottom: max(.6rem, env(safe-area-inset-bottom)); }
.pp-pan img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.pp-stage:not(.is-started) .pp-pan img { filter: blur(22px) brightness(.7); transform: scale(1.08); }
.pp-marks { position: absolute; inset: 0; pointer-events: none; }
.pp-marks i { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--s, 1))); }
.pp-x { width: 26px; height: 26px; }
.pp-x::before, .pp-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 5px; margin: -2.5px 0 0 -13px; border-radius: 3px; background: #e5484d; box-shadow: 0 0 0 1.5px #fff; }
.pp-x::before { transform: rotate(45deg); } .pp-x::after { transform: rotate(-45deg); }
.pp-pending { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 2px rgba(0,0,0,.4); animation: pppulse .8s ease-in-out infinite; }
@keyframes pppulse { 50% { opacity: .35; } }
.pp-marks i.pp-hit { transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; border: calc(4px / var(--s, 1)) solid #4ade80; box-shadow: 0 0 0 calc(2px / var(--s, 1)) #fff, 0 0 calc(18px / var(--s, 1)) rgba(74,222,128,.8); animation: pphit 1.2s ease-out 1; }
.pp-marks i.pp-hit.is-reveal { border-color: var(--gold); box-shadow: 0 0 0 calc(2px / var(--s, 1)) #fff, 0 0 calc(18px / var(--s, 1)) rgba(248,164,24,.8); }
@keyframes pphit { from { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } }
.pp-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.2rem; text-align: center; color: #fff; background: rgba(8,20,32,.35); }
.pp-cover[hidden] { display: none; }
.pp-cover p { margin: 0; max-width: 26ch; font-size: .9rem; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.pp-start { font-size: 1.1rem; min-height: 48px; padding: .6rem 1.4rem; }
.pp-start:disabled { opacity: .7; cursor: progress; }
.pp-zoom { position: absolute; right: .5rem; bottom: .5rem; display: flex; flex-direction: column; gap: .35rem; }
.pp-stage:not(.is-started) .pp-zoom { display: none; }
.pp-zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(8,20,32,.78); color: #fff; font: inherit; font-size: 1.35rem; font-weight: 800; line-height: 1; cursor: pointer; }
.pp-zoom button:active { filter: brightness(1.4); }
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .9rem; }
.pp-bar[hidden], .pp-help[hidden] { display: none; }
.pp-help { margin: 0; font-size: .8rem; text-align: center; }
.pp-save { margin: 0; font-size: .85rem; text-align: center; color: #f5a3a3; }
.pp-save[hidden] { display: none; }
.pv-peek-bar { margin: 0 0 .8rem; }
.pv-peek-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .2rem; font-size: .92rem; color: var(--ink-muted); }
.pv-peek { margin-top: 1rem; }
.pv-form-hidden { border-style: dashed; opacity: .92; }
.pv-tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--gold-soft); white-space: nowrap; }

/* —— Zabava → Bum-Bar (whack-a-mole reaction game) —— */
.bumbar { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
.bumbar[hidden] { display: none; }
.bb-stage { position: relative; overflow: hidden; border-radius: var(--radius); border: 3px solid #4a2a14; box-shadow: var(--shadow), inset 0 0 0 2px rgba(0,0,0,.25);
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 12%, transparent 88%, rgba(0,0,0,.25)),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(40,20,6,.55) 46px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #9a6236, #87532b);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.bb-stage.is-playing { cursor: pointer; }
.bb-stage { width: min(100%, 540px, 62svh); margin: 0 auto; }
.bb-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4% 8%; padding: 15% 8% 5%; }
.bb-hole { position: relative; aspect-ratio: 1 / 1.05; }
.bb-pit { position: absolute; left: 4%; right: 4%; bottom: 4%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #050302 45%, #1d0f06 70%); box-shadow: 0 0 0 4px #5b3519, 0 0 0 6px #b98250, inset 0 6px 10px rgba(0,0,0,.8); }
.bb-win { position: absolute; left: -10%; right: -10%; top: -20%; bottom: 19%; overflow: hidden; pointer-events: none; }
.bb-parrot { position: absolute; left: 50%; bottom: 0; width: 56%; transform: translate(-50%, 104%); transition: transform .16s ease-out; }
.bb-parrot svg { display: block; width: 100%; height: auto; margin-bottom: -6%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.bb-parrot.is-up { transform: translate(-50%, 0); }
.bb-parrot.is-red { transition: none; z-index: 1; }
.bb-parrot .bb-eye-x, .bb-parrot.is-bum .bb-eye-o { display: none; }
.bb-parrot.is-bum .bb-eye-x { display: inline; }
.bb-parrot.is-bum { animation: bbbum .35s ease-out 1; }
@keyframes bbbum { 0% { transform: translate(-50%, 0) scaleY(1); } 35% { transform: translate(-50%, 8%) scaleY(.82); } 100% { transform: translate(-50%, 0) scaleY(1); } }
.bb-hole.is-bum::after { content: var(--bb-ms); position: absolute; z-index: 2; left: 50%; top: -12%; transform: translate(-50%, -50%) rotate(-7deg);
  padding: .25em .7em; border-radius: 999px; border: 3px solid #690b22; background: #f1eb76; color: #690b22; font-weight: 900; font-size: clamp(.85rem, 3.4vw, 1.15rem); white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0,0,0,.45); animation: bbpop .3s cubic-bezier(.2,1.6,.4,1) 1; pointer-events: none; }
@keyframes bbpop { from { transform: translate(-50%, -50%) rotate(-7deg) scale(.2); opacity: 0; } }
.bb-flash { position: absolute; inset: 0; pointer-events: none; background: rgba(229,72,77,.4); opacity: 0; }
.bb-flash.is-on { animation: bbflash .45s ease-out 1; }
@keyframes bbflash { from { opacity: 1; } to { opacity: 0; } }
.bb-cover { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.2rem; text-align: center; color: #fff; background: rgba(20,10,4,.62); }
.bb-cover[hidden], .bb-start[hidden] { display: none; }
.bb-cover p { margin: 0; max-width: 34ch; font-size: .92rem; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.bb-start { font-size: 1.1rem; min-height: 48px; padding: .6rem 1.4rem; }
.bb-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.bb-times li { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .4rem .3rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-size: .75rem; color: var(--ink-muted); text-align: center; }
.bb-times strong { font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-times li.is-set strong { color: #6fbf67; }
.bb-times li.bb-sum { border-color: var(--gold); }
.bb-times li.bb-sum strong { color: var(--gold-soft); }
.bb-times li.has-early small { display: block; color: #f5a3a3; font-size: .68rem; }
.bb-detail { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 420px) { .bb-detail { display: none; } }

/* Preverba SVODa: past / future days, clearly apart from today's */
.pv-tag-today { background: rgba(111,191,103,.2); color: #8fd987; }
.pv-tag-past { background: rgba(255,255,255,.1); color: var(--ink-muted); }
.pv-tag-future { background: rgba(110,160,255,.18); color: #a9c4ff; }
.pv-form-past summary .pv-form-title, .pv-form-future summary .pv-form-title { color: var(--ink-muted); }
.pv-form-future { border-color: rgba(110,160,255,.45); }
.pv-form-note { margin: 0; padding: .6rem 1.2rem; font-size: .88rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.04); }
.pv-form-future .pv-form-note { background: rgba(110,160,255,.1); }

/* —— Zabava → Rutka proti rutki —— */
.rutke { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.rutke[hidden] { display: none; }
.rk-lede { margin: 0; font-size: .92rem; color: var(--ink-muted); text-align: center; }
.rk-pair { position: relative; width: 100%; max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 3vw, 1.4rem); }
.rk-card { position: relative; display: flex; flex-direction: column; padding: 0; border: 3px solid transparent; border-radius: var(--radius); background: #f1e4d3; color: #690b22; font: inherit; cursor: pointer; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease, opacity .25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rk-card:hover, .rk-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); outline: none; }
.rk-img { display: block; aspect-ratio: 1; padding: 6%; }
.rk-img img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.rk-card.is-broken .rk-img { background: repeating-linear-gradient(45deg, rgba(105,11,34,.06) 0 10px, transparent 10px 20px); }
.rk-card.is-broken img { visibility: hidden; }
.rk-name { display: block; padding: .55rem .6rem .7rem; font-weight: 800; font-size: clamp(.85rem, 3.4vw, 1.05rem); text-align: center; visibility: hidden; }
.rk-pair.is-reveal .rk-name { visibility: visible; animation: rkname .25s ease-out 1; }
@keyframes rkname { from { opacity: 0; transform: translateY(6px); } }
.rk-pair.is-reveal .rk-card { cursor: default; transform: none; }
.rk-card.is-win { border-color: #6fbf67; box-shadow: 0 0 0 3px rgba(111,191,103,.35), var(--shadow); }
.rk-card.is-win::after { content: "✓"; position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: #3f9a3a; color: #fff; font-weight: 900; }
.rk-card.is-lose { opacity: .45; }
.rk-vs { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 1; padding: .35rem .6rem; border-radius: 999px; border: 3px solid #690b22; background: #f1eb76; color: #690b22; font-weight: 900; font-size: clamp(.8rem, 3vw, 1.05rem); pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.rk-score-h { margin: 0 0 .2rem; font-size: 1.05rem; }
.rk-score-note { margin: 0 0 .6rem; font-size: .8rem; }
.rk-thumb { width: 36px; height: 36px; flex: none; border-radius: 8px; object-fit: contain; background: #f1e4d3; }
.rk-board .wd-res { min-width: 3.2em; text-align: right; flex: none; }
.rk-board li { gap: .45rem; }
.rk-board .wd-rank { flex: none; }
.rk-wl { flex: none; font-size: .75rem; font-variant-numeric: tabular-nums; }
.rk-board .wd-res:not(:empty) { color: var(--gold-soft); }

/* Bum-Bar: banned players (admin) */
.bb-ban { flex: none; width: 32px; height: 32px; margin-left: .1rem; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-size: .9rem; line-height: 1; cursor: pointer; }
.bb-ban:hover { border-color: #e5484d; }
.bb-ban:disabled { opacity: .5; cursor: progress; }
.wd-board-list li.bb-banned { opacity: .6; border-style: dashed; }
.wd-board-list li.bb-banned .wd-name { text-decoration: line-through; text-decoration-color: rgba(229,72,77,.7); }
.bb-ban-note { display: block; margin-bottom: .3rem; color: #ff8a8d; }

/* —— Zabava → Piratski kazino (ruleta / kocke; Stavnica coins) —— */
.stavnica .pv-ftabs { overflow-x: auto; scrollbar-width: none; }
.stavnica .pv-ftabs::-webkit-scrollbar { display: none; }
.stavnica .pv-ftab.pv-tab { flex: 1 0 auto; }
.kz-sv.pv-tab { flex: 0 0 auto; padding: 0 .8rem; color: var(--gold-soft); }
.cz { display: flex; flex-direction: column; gap: .7rem; }
.cz .sv-top { flex-wrap: wrap; gap: .6rem; }
.cz-intro { margin: 0; font-size: .85rem; }
.cz-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.cz-chipbtn { width: 42px; height: 42px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.75); background: #b4232b; color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.cz-chipbtn:nth-child(2) { background: #1f5fae; } .cz-chipbtn:nth-child(3) { background: #1f8a4c; } .cz-chipbtn:nth-child(4) { background: #222; } .cz-chipbtn:nth-child(5) { background: #7a3fa0; }
.cz-chipbtn.is-on { outline: 3px solid var(--gold); outline-offset: 2px; transform: translateY(-2px); }
.cz-chip { position: absolute; right: 2px; top: 2px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; border: 2px dashed rgba(255,255,255,.85); background: var(--gold); color: #1b1b1f; font-size: .7rem; font-weight: 900; line-height: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.5); pointer-events: none; }
.cz-rl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
@media (min-width: 640px) { .cz-rl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.cz-wheelbox { padding: .6rem; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #1d6b3f, #0d3a22); }
.cz-wheel { display: block; width: min(100%, 320px); margin: 0 auto; }
@media (max-width: 639px) { .cz-wheel { width: min(100%, 210px); } .cz-wheelbox { padding: .4rem; } }
#cz-rotor { transform-origin: 110px 110px; transform-box: view-box; }
.cz-table { padding: .4rem; border-radius: var(--radius); background: #12573a; border: 3px solid #6b4a1f; display: grid; gap: 3px; }
.cz-nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.cz-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.cz-row6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.cz-cell { position: relative; min-height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; touch-action: manipulation; }
.cz-cell:hover { background: rgba(255,255,255,.1); }
.cz-cell.cz-red { background: #b3222a; } .cz-cell.cz-black { background: #1b1b1f; } .cz-cell.cz-green { background: #1f8a4c; }
.cz-zero { min-height: 34px; }
.cz-row6 .cz-cell { font-size: .78rem; }
.cz-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; border: 2px solid rgba(255,255,255,.7); }
.cz-dot.red { background: #c0262d; } .cz-dot.black { background: #111; }
.cz-cell.is-win { box-shadow: 0 0 0 3px #6fbf67, 0 0 14px rgba(111,191,103,.7); }
.cz-cell.is-ball { outline: 3px solid var(--gold); outline-offset: 1px; animation: czpulse 1s ease-in-out 3; }
@keyframes czpulse { 50% { outline-color: #fff; } }
.cz-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.cz-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.cz-over { color: #ff8a8d; font-size: .8rem; }
.cz-msg { margin: 0; min-height: 1.4em; text-align: center; font-weight: 700; }
.cz-n { display: inline-block; min-width: 2em; padding: 0 .4rem; border-radius: 6px; color: #fff; }
.cz-n.cz-red { background: #c0262d; } .cz-n.cz-black { background: #1b1b1f; border: 1px solid var(--line); } .cz-n.cz-green { background: #1f8a4c; }
.cz-lastbets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; font-size: .8rem; }
.cz-lastbets li { padding: .15rem .55rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink-muted); }
.cz-lastbets li.is-win { color: #a8d47a; border-color: rgba(111,191,103,.6); }
.cz-hist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.cz-hist li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .35rem .6rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .85rem; }
.cz-fine { margin: 0; font-size: .75rem; text-align: center; }
/* dice */
.cz-dicebox { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; border-radius: var(--radius); background: radial-gradient(circle at 50% 30%, #1d6b3f, #0d3a22); border: 3px solid #6b4a1f; }
.cz-dice { display: flex; gap: 1rem; }
.cz-die { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 64px; height: 64px; padding: 8px; border-radius: 12px; background: #fbf7ee; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 4px 10px rgba(0,0,0,.45); }
.cz-die i { width: 12px; height: 12px; margin: auto; border-radius: 50%; background: #1b1b1f; visibility: hidden; }
.cz-die[data-v="1"] .p4, .cz-die[data-v="3"] .p4, .cz-die[data-v="5"] .p4 { visibility: visible; }
.cz-die:is([data-v="2"], [data-v="3"], [data-v="4"], [data-v="5"], [data-v="6"]) :is(.p0, .p8) { visibility: visible; }
.cz-die:is([data-v="4"], [data-v="5"], [data-v="6"]) :is(.p2, .p6) { visibility: visible; }
.cz-die[data-v="6"] :is(.p3, .p5) { visibility: visible; }
.cz-die.is-rolling { animation: czroll .5s linear infinite; }
@keyframes czroll { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-8px); } 50% { transform: rotate(180deg) translateY(0); } 75% { transform: rotate(270deg) translateY(-6px); } 100% { transform: rotate(360deg); } }
.cz-total { min-height: 1.6em; font-size: 1.6rem; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.cz-sums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
@media (min-width: 640px) { .cz-sums { grid-template-columns: repeat(11, 1fr); } }
.cz-sum, .cz-dout { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; background: rgba(0,0,0,.18); }
.cz-sum strong { font-size: 1.15rem; }
.cz-sum small, .cz-dout small { font-size: .68rem; font-weight: 700; color: var(--gold-soft); }
.cz-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cz-dout strong { font-size: .9rem; }
.cz-rl .cz-chip { right: -3px; top: -5px; min-width: 18px; height: 18px; font-size: .64rem; line-height: 14px; z-index: 1; }

/* Piratski kazino → Vse igre */
.cz-filter { display: flex; gap: .4rem; margin-bottom: .2rem; }
.cz-filter .vday-chip { min-height: 40px; min-width: auto; flex-direction: row; font-weight: 700; font-size: .85rem; }
.cz-even { color: var(--ink-muted); font-weight: 800; font-size: .75rem; }
.cz-players li > span:last-child { margin-left: .2rem; }
.cz-games { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cz-games li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-left-width: 4px; }
.cz-games li.is-win { border-left-color: #6fbf67; }
.cz-games li.is-loss { border-left-color: #e5484d; }
.cz-g-main { flex: 1 1 auto; min-width: 0; display: grid; gap: .1rem; }
.cz-g-top { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.cz-g-game { font-variant-numeric: tabular-nums; }
.cz-g-bets { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-g-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.cz-g-ago { font-size: .7rem; white-space: nowrap; }

/* —— Zadolžitve (#opravila) —— */
.opravila { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.op-lede { margin: 0; font-size: .88rem; }
.op-mine { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .8rem 1rem; border-left: 4px solid var(--line); }
.op-mine.is-set { border-left-color: #6fbf67; }
.op-mine strong { color: #a8d47a; font-size: 1.05rem; }
.op-mine .link-btn { margin-left: auto; }
.op-msg { margin: 0; padding: .5rem .8rem; border-radius: 10px; background: rgba(229,72,77,.14); color: #ff8a8d; font-weight: 700; font-size: .9rem; }
.op-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.op-item { padding: .75rem .9rem; display: grid; gap: .45rem; }
.op-item.is-mine { border-color: #6fbf67; box-shadow: 0 0 0 1px #6fbf67 inset; }
.op-item.is-full { opacity: .7; }
.op-head { display: flex; align-items: center; gap: .6rem; }
.op-name { flex: 1 1 auto; min-width: 0; }
.op-count { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-soft); }
.op-count.is-full { color: var(--ink-muted); }
.op-pick { flex: none; min-height: 40px; padding: .4rem 1rem; }
.op-tag { flex: none; padding: .25rem .7rem; border-radius: 999px; font-weight: 800; font-size: .8rem; background: rgba(111,191,103,.2); color: #a8d47a; }
.op-tag.is-full { background: rgba(255,255,255,.08); color: var(--ink-muted); }
.op-slots { display: flex; gap: 4px; }
.op-slots i { flex: 1 1 0; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.op-slots i.on { background: var(--gold); }
.op-item.is-mine .op-slots i.on { background: #6fbf67; }
.op-people { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.op-person { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
.op-none { margin: 0; font-size: .8rem; }

/* —— Trgovina (#trgovina) —— */
.trgovina { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; padding-bottom: 5rem; }
.tg-bal { margin-left: auto; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-soft); font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-admin { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; font-weight: 700; }
.tg-ok { margin: 0; padding: .6rem .9rem; border-radius: 10px; background: rgba(111,191,103,.16); color: #a8d47a; font-weight: 700; }
.tg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.tg-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .8rem .6rem; text-align: center; }
.tg-item.in-cart { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tg-item.is-out { opacity: .55; }
.tg-icon { font-size: 2.2rem; line-height: 1; }
.tg-name { font-weight: 800; font-size: .92rem; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.tg-meta { display: flex; flex-direction: column; align-items: center; font-size: .75rem; }
.tg-price { font-size: 1.05rem; color: var(--gold-soft); display: inline-flex; align-items: center; gap: .25rem; }
.tg-add { min-height: 38px; padding: .35rem .9rem; font-size: .85rem; }
.tg-out { font-size: .8rem; font-weight: 800; color: var(--ink-muted); padding: .45rem 0; }
.tg-step { display: inline-flex; align-items: center; gap: .35rem; }
.tg-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); font: inherit; font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.tg-step button:disabled { opacity: .35; cursor: default; }
.tg-step strong { min-width: 1.4em; font-variant-numeric: tabular-nums; }
.tg-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; width: 100%; margin-top: .3rem; padding-top: .4rem; border-top: 1px dashed var(--line); font-size: .7rem; }
.tg-edit label { display: grid; gap: .1rem; color: var(--ink-muted); }
.tg-edit input { width: 100%; min-height: 32px; padding: .2rem .4rem; border-radius: 6px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--ink); font: inherit; font-size: .85rem; }
.tg-edit .btn { grid-column: 1 / -1; min-height: 32px; padding: .2rem; font-size: .8rem; }
.tg-cartbar { position: sticky; bottom: max(.6rem, env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; gap: .4rem; }
.tg-cartbar.is-empty { display: none; }
.tg-cartbtn { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 54px; padding: .5rem 1rem; border: 0; border-radius: 14px; background: var(--gold); color: #1b1b1f; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tg-cartbtn strong { display: inline-flex; align-items: center; gap: .25rem; font-size: 1.05rem; }
.tg-cart { padding: .8rem 1rem; background: var(--card-solid); box-shadow: 0 8px 24px rgba(0,0,0,.5); max-height: 60vh; overflow: auto; }
.tg-cart h3 { margin: 0 0 .5rem; }
.tg-cart ul { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .4rem; }
.tg-cart li { display: grid; grid-template-columns: 1fr auto 2.5em; align-items: center; gap: .5rem; font-size: .9rem; }
.tg-line { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-sum { display: flex; justify-content: space-between; margin: .2rem 0; }
.tg-sum strong { display: inline-flex; align-items: center; gap: .25rem; color: var(--gold-soft); font-size: 1.1rem; }
.tg-short { margin: .3rem 0; color: #ff8a8d; font-weight: 700; }
.tg-cart-btns { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .4rem; }
.tg-receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; align-items: start; }
.tg-receipt { position: relative; padding: 1rem 1rem 1.6rem; background: #fbf8f0; color: #222; font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; box-shadow: 0 6px 18px rgba(0,0,0,.4);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.tg-receipt.is-fresh { outline: 3px solid var(--gold); animation: tgfresh 1.2s ease-out 2; }
@keyframes tgfresh { 50% { transform: scale(1.02); } }
.tg-receipt header { display: flex; flex-direction: column; align-items: center; padding-bottom: .5rem; border-bottom: 1px dashed #999; }
.tg-receipt header strong { font-size: .95rem; letter-spacing: .1em; }
.tg-r-meta { margin: .5rem 0; color: #555; }
.tg-receipt ul { list-style: none; margin: 0; padding: .4rem 0; border-top: 1px dashed #999; border-bottom: 1px dashed #999; display: grid; gap: .2rem; }
.tg-receipt li { display: flex; justify-content: space-between; gap: .5rem; }
.tg-r-total { display: flex; justify-content: space-between; margin: .5rem 0; font-weight: 800; font-size: .9rem; }
.tg-stamp { width: max-content; margin: .6rem auto .3rem; padding: .2rem .7rem; border: 3px double; border-radius: 6px; font-weight: 900; letter-spacing: .08em; transform: rotate(-6deg); }
.tg-stamp.done { color: #2f8a3a; border-color: #2f8a3a; }
.tg-stamp.wait { color: #c0571b; border-color: #c0571b; }
.tg-r-foot { margin: .4rem 0 0; color: #666; text-align: center; font-size: .72rem; }
.tg-receipt .tg-hand { display: block; width: 100%; margin-top: .5rem; font-family: var(--font); }

/* Admin page switch (Zadolžitve, Trgovina) */
.flag-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border: 1px dashed #e5a00d; background: rgba(229,160,13,.1); font-size: .9rem; }
.flag-bar[hidden] { display: none; }
.flag-bar.is-on { border-style: solid; border-color: #6fbf67; background: rgba(111,191,103,.1); }

/* Zadolžitve: saving spinner */
.op-spin { display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.15em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: opspin .7s linear infinite; }
@keyframes opspin { to { transform: rotate(360deg); } }
.op-pick.is-saving { cursor: progress; opacity: .9; pointer-events: none; }
.op-item.is-saving { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.op-saving { margin-left: auto; color: var(--gold-soft); font-weight: 700; font-size: .9rem; }
.op-pick:disabled { opacity: .45; cursor: default; }

/* —— Nadzor (#nadzor, admins) —— */
.nadzor { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.nz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.nz-item { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-left: 4px solid var(--line); }
.nz-item.is-on { border-left-color: #6fbf67; }
.nz-icon { font-size: 1.6rem; }
.nz-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.nz-main .muted-text { flex-basis: 100%; font-size: .82rem; }
.nz-h { margin: .8rem 0 0; font-size: 1.05rem; }
.nz-note { font-size: .82rem; margin: 0; }
.nz-page { display: grid; gap: .45rem; padding: .7rem 1rem; }
.nz-page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.nz-page-head .muted-text { font-size: .78rem; }
.nz-site-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; }
.nz-host { font-size: .85rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.nz-host.is-here { color: var(--ink); font-weight: 700; }
.nz-host em { font-style: normal; font-weight: 600; color: var(--accent, #f5a623); }
.nz-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.nz-opt { border: 0; background: transparent; color: var(--ink-muted); font: inherit; font-size: .78rem; font-weight: 700; padding: .35rem .75rem; min-height: 34px; cursor: pointer; }
.nz-opt + .nz-opt { border-left: 1px solid var(--line); }
.nz-opt[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.nz-opt.nz-on[aria-pressed="true"] { background: #2f6b2c; color: #fff; }
.nz-opt.nz-off[aria-pressed="true"] { background: #8a2f2f; color: #fff; }
.nz-opt:disabled { opacity: .6; cursor: progress; }
@media (max-width: 560px) { .nz-site-row { flex-direction: column; align-items: stretch; } .nz-seg { display: flex; } .nz-opt { flex: 1; } }
.nz-log { font-size: .8rem; color: var(--ink-muted); } .nz-log ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.nz-state { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: var(--ink-muted); }
.nz-item.is-on .nz-state { color: #a8d47a; }
.nz-note { font-size: .8rem; }

/* Stavnica: cancelled bets (stakes refunded) */
.sv-res.is-cancelled { color: var(--ink-muted); }
.sv-bet-item .is-refund, .sv-log-refund { color: #9ec5ff; font-weight: 800; white-space: nowrap; }
.sv-log-refund { padding: .05rem .45rem; border-radius: 999px; background: rgba(110,160,255,.16); font-size: .75rem; font-variant-numeric: tabular-nums; }
.sv-state.is-cancelled { background: rgba(110,160,255,.16); color: #9ec5ff; }
.sv-bet-item.is-cancelled { opacity: .85; }
.sv-cancel-btn { border-color: rgba(229,72,77,.5); color: #ff8a8d; }

/* —— Event over (EVENT_ENDED in js/app.js): Domov = just the goodbye, Zabava = Wordle only —— */
.home-ended { display: none; }
.event-ended #tab-domov > :not(.home-ended) { display: none !important; }
.event-ended .home-ended { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 55vh; padding: 2rem 1rem; text-align: center; }
.home-ended-line { margin: 0; font-size: clamp(1.1rem, 4.5vw, 1.5rem); font-weight: 700; color: var(--ink-muted); }
.home-ended-title { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 4.2rem); color: var(--gold-soft); letter-spacing: .02em; }
.home-ended-heart { margin: 0; font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1; }
.event-ended #zb-pick .zb-choice:not([href="#zabava/wordle"]) { display: none; }
.event-ended #zb-pick { grid-template-columns: minmax(0, 560px); justify-content: center; }

/* Footer always at the bottom of the window, also on short pages: the page is a column and the footer takes the leftover space above it */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { width: 100%; } /* keep max-width + auto margins centring as before (a flex item would otherwise shrink to its content) */
.site-footer { margin-top: auto; }

/* First visit on a device: no tab shows until the script knows which ones are allowed (see the nav boot script in index.html) */
.nav-pending .tabs .tab[data-tab] { display: none !important; }
