/* Faro Prodaja – interna prodajna platforma Faroweb.si.
   Zasnova: svetla delovna miza. Petrolejna stranska vrstica (namizje) ali spodnji zavihki (telefon),
   papirnata podlaga, kartice samo tam, kjer ločujejo predmet. Archivo za naslove, Instrument Sans za
   besedilo, DM Mono za številke, oznake in čase. */
:root {
  --paper: #F3F4EF;
  --paper-2: #E7E9E2;
  --card: #FBFCF9;
  --line: #D9DED5;
  --line-2: #C6CDC2;
  --ink: #131A16;
  --soft: #4C574F;
  --mute: #6A746C;
  --petrol: #0F3F3C;
  --petrol-2: #16504C;
  --petrol-3: #1F625D;
  --petrol-tint: #DCE8E4;
  --amber: #E9A912;
  --amber-tint: #FBF0D2;
  --rust: #A8341E;
  --rust-tint: #F6E1DB;
  --ok: #1D7347;
  --ok-tint: #DDF0E4;
  --warn: #8A5D00;
  --warn-tint: #FBEFCF;
  --bad: #B42318;
  --bad-tint: #FBE3DF;
  --info: #22568F;
  --info-tint: #E1EBF7;
  --violet: #5B3F96;
  --violet-tint: #ECE6F7;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px;
  --r-s: 9px;
  --shadow: 0 1px 2px rgba(19, 26, 22, .05), 0 10px 30px -14px rgba(19, 26, 22, .22);
  --side: 248px;
  --tabbar: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--petrol-2); text-underline-offset: 2px; }
a:hover { color: var(--petrol); }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 87.5%; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: 22px; font-weight: 750; letter-spacing: -.2px; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); }
.soft { color: var(--soft); }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-l { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- zagon ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot__mark, .brand__mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--petrol); position: relative; display: inline-block; flex: none;
}
.boot__mark::after, .brand__mark::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--amber);
}
.boot__mark { width: 44px; height: 44px; animation: pulse 1.2s ease-in-out infinite; }
.boot__mark::after { inset: 14px; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .75; } }

/* ---------- lupina ---------- */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--petrol); color: #E9EFEC;
  display: flex; flex-direction: column; padding: 20px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: inherit; text-decoration: none; }
.brand__name { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 19px; letter-spacing: -.2px; color: #fff; }
.brand__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--amber); margin-left: auto; }
.side .brand__mark { background: #fff; }
.side .brand__mark::after { background: var(--amber); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #CFDDD8;
  text-decoration: none; font-weight: 550; position: relative;
}
.nav__a svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.nav__a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav__a[aria-current="page"] { background: rgba(255, 255, 255, .11); color: #fff; }
.nav__a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.nav__badge { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--amber); color: var(--petrol); font: 600 12px/20px var(--f-mono); text-align: center; }
.nav__sep { height: 1px; background: rgba(255, 255, 255, .12); margin: 12px 8px; }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.me__name { font-weight: 600; color: #fff; line-height: 1.2; }
.me__role { font-size: 12px; color: #A9C0B9; }
.me button { margin-left: auto; }
.av {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--amber); color: var(--petrol); font: 700 13px/1 var(--f-body);
}
.av--s { width: 26px; height: 26px; font-size: 11px; }
.av--ink { background: var(--petrol-tint); color: var(--petrol); }
.main { margin-left: var(--side); min-height: 100vh; }
#view:focus { outline: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 32px 36px 64px; }
.page--narrow { max-width: 880px; }
.topbar, .tabbar { display: none; }

.hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hd__t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--rust); }
.hd__sub { color: var(--soft); max-width: 70ch; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); text-decoration: none; font-weight: 550; font-size: 14px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); }
  .page { padding: 18px 16px 40px; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(243, 244, 239, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .topbar .brand { padding: 0; }
  .topbar .brand__name { color: var(--ink); font-size: 17px; }
  .topbar__r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar);
    color: var(--mute); text-decoration: none; font-size: 11.5px; font-weight: 600; position: relative; border: 0; background: none;
  }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--petrol); }
  .tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
  .tab .nav__badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; font-size: 10px; line-height: 16px; padding: 0 5px; }
  .hd { margin-bottom: 16px; }
}

/* ---------- gumbi in polja ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 11px; border: 1px solid transparent; background: var(--petrol); color: #fff; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--petrol-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--amber { background: var(--amber); color: var(--petrol); }
.btn--amber:hover { background: #F2B623; color: var(--petrol); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--plain { background: transparent; color: var(--petrol-2); padding: 0 10px; }
.btn--plain:hover { background: var(--paper-2); color: var(--petrol); }
.btn--danger { background: var(--bad); }
.btn--danger:hover { background: #971b12; }
.btn--s { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; }
.btn--l { min-height: 52px; padding: 0 22px; font-size: 16.5px; border-radius: 13px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.side .btn--icon { color: #CFDDD8; border-color: transparent; background: transparent; }
.side .btn--icon:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .lbl { font-size: 13px; font-weight: 600; color: var(--soft); }
.field small { color: var(--mute); font-size: 12.5px; }
.in, .sel, .ta {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ta { min-height: 92px; resize: vertical; line-height: 1.45; }
.in:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--petrol-3); box-shadow: 0 0 0 3px rgba(31, 98, 93, .18); }
.in[aria-invalid="true"], .sel[aria-invalid="true"] { border-color: var(--bad); }
.sel { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234C574F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.in--s, .sel--s { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--petrol); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.err { color: var(--bad); font-size: 14px; font-weight: 550; }

/* segmentirani izbirnik in čipi za izbiro */
.seg { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 11px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--soft);
  padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.pill:hover { border-color: var(--petrol-3); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.pill .num { font-size: 12px; opacity: .8; }

/* ---------- kartice, mreže ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card--pad-s { padding: 14px 16px; }
.card--flat { background: transparent; }
.card--petrol { background: var(--petrol); border-color: var(--petrol); color: #E9EFEC; }
.card--petrol h2, .card--petrol h3 { color: #fff; }
.card__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__hd h2, .card__hd h3 { font-size: 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kpi__lbl { font-size: 13px; font-weight: 600; color: var(--soft); }
.kpi__v { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi__v small { font-family: var(--f-mono); font-size: 14px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--petrol-3); transition: width .4s ease; }
.bar--amber > i { background: var(--amber); }
.bar--done > i { background: var(--ok); }

/* stanja */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 650;
  background: var(--paper-2); color: var(--soft); white-space: nowrap; line-height: 1.5;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip--plain::before { display: none; }
.st-nov { background: var(--info-tint); color: var(--info); }
.st-klicanje { background: #E9ECE6; color: #46514A; }
.st-ni_dosegljiv { background: #ECEDEA; color: #6A716B; }
.st-klic_kasneje { background: var(--violet-tint); color: var(--violet); }
.st-zanima { background: var(--amber-tint); color: var(--warn); }
.st-termin { background: var(--petrol-tint); color: var(--petrol); }
.st-ponudba { background: #E3EEF0; color: #1E5E6B; }
.st-stranka { background: var(--ok-tint); color: var(--ok); }
.st-ni_interesa { background: #F0E9E6; color: #7A4A3E; }
.st-ne_klici { background: var(--bad-tint); color: var(--bad); }
.st-neustrezen { background: #ECEDEA; color: #6A716B; }
.k-dovoljen { background: var(--ok-tint); color: var(--ok); }
.k-preveri { background: var(--warn-tint); color: var(--warn); }
.k-privolitev { background: var(--bad-tint); color: var(--bad); }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .4px; text-transform: uppercase; color: var(--soft); background: var(--paper-2); padding: 1px 7px; border-radius: 5px; }
.tag--warm { background: var(--amber-tint); color: var(--warn); }
.tag--hot { background: var(--rust-tint); color: var(--rust); }

/* obvestila */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner b { font-weight: 650; }
.banner--info { background: var(--info-tint); border-color: #C4D6EE; color: #173E66; }
.banner--warn { background: var(--warn-tint); border-color: #EFD58F; color: #5E4000; }
.banner--bad { background: var(--bad-tint); border-color: #F1B9B1; color: #7A160E; }
.banner--ok { background: var(--ok-tint); border-color: #B9DEC8; color: #134E31; }
.banner--petrol { background: var(--petrol); border-color: var(--petrol); color: #E9EFEC; }
.banner--petrol b { color: #fff; }
.banner .btn { margin-left: auto; }
.banner__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }

/* seznami */
.list { display: flex; flex-direction: column; }
.li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 13px 4px;
  border-top: 1px solid var(--line); color: inherit; text-decoration: none;
}
.li:first-child { border-top: 0; }
a.li:hover, button.li:hover { background: rgba(15, 63, 60, .035); }
button.li { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.li__t { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li__s { grid-column: 1; color: var(--mute); font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li__r { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.when { font: 500 12.5px/1.3 var(--f-mono); color: var(--soft); white-space: nowrap; }
.when--late { color: var(--bad); }
.when--today { color: var(--warn); }

.empty { text-align: center; padding: 34px 16px; color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 34px; height: 34px; color: var(--line-2); }
.empty b { color: var(--ink); font-size: 16px; }

/* tabela leadov */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 12px/1.3 var(--f-mono); letter-spacing: .6px; text-transform: uppercase; color: var(--mute); padding: 12px 12px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: rgba(15, 63, 60, .035); }
.tbl tbody tr[aria-selected="true"] td { background: var(--amber-tint); }
.tbl .c-chk { width: 40px; }
.tbl .co { font-weight: 650; }
.tbl .co small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.tbl input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--petrol); }
.leadcards { display: none; }
@media (max-width: 860px) {
  .tbl-wrap.leads { display: none; }
  .leadcards { display: flex; flex-direction: column; gap: 10px; }
}
.lc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); text-decoration: none; color: inherit; }
.lc:hover { border-color: var(--line-2); }
.lc__t { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lc__n { font-weight: 700; font-size: 15.5px; }
.lc__s { color: var(--mute); font-size: 13.5px; }
.lc__b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--mute); pointer-events: none; }
.search .in { padding-left: 38px; }
.selbar { position: sticky; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--petrol); color: #fff; box-shadow: var(--shadow); margin-top: 14px; }
.selbar .sel { max-width: 240px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; }
@media (max-width: 1023px) { .selbar { bottom: calc(var(--tabbar) + 10px); } }

/* ---------- lead ---------- */
.lead-hd { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.lead-hd h1 { font-size: clamp(24px, 2.8vw, 32px); }
.lead-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.callbox { display: flex; flex-direction: column; gap: 14px; }
.phone { font: 500 clamp(24px, 3vw, 30px)/1.1 var(--f-mono); letter-spacing: .5px; color: var(--ink); text-decoration: none; }
.callbox .card--petrol .phone { color: #fff; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oc {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; text-align: left; font-weight: 600; min-height: 48px;
}
.oc svg { width: 18px; height: 18px; flex: none; }
.oc:hover { border-color: var(--petrol-3); }
.oc[aria-pressed="true"] { border-color: var(--petrol); background: var(--petrol); color: #fff; }
.oc--good { border-color: #B9DEC8; }
.oc--good svg { color: var(--ok); }
.oc--bad svg { color: var(--bad); }
.oc[aria-pressed="true"] svg { color: #fff; }
.oc kbd { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--mute); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; }
.oc[aria-pressed="true"] kbd { color: #CFDDD8; border-color: rgba(255,255,255,.3); }
@media (max-width: 420px) { .oc kbd { display: none; } }
.ocform { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.when-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; }
.dl dt { color: var(--mute); font-weight: 550; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.ev { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.ev:first-child { border-top: 0; }
.ev__i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--soft); }
.ev__i svg { width: 14px; height: 14px; }
.ev__t { font-size: 14px; }
.ev__m { font: 400 12px/1.4 var(--f-mono); color: var(--mute); margin-top: 2px; }
.ev__n { margin-top: 4px; padding: 8px 10px; background: var(--paper); border-radius: 8px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sticky-call { display: none; }
@media (max-width: 1023px) {
  .sticky-call {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); z-index: 25;
    padding: 10px 16px; background: rgba(251, 252, 249, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .sticky-call .btn { flex: 1; }
  .has-sticky { padding-bottom: 76px; }
}

/* skripta */
.script { white-space: pre-wrap; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.script .ph { background: var(--amber-tint); color: var(--warn); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.script .ph--ok { background: var(--petrol-tint); color: var(--petrol); }
.script .who { font-weight: 700; color: var(--petrol-2); }
.script .stage { color: var(--mute); font-style: italic; }
.hook { padding: 14px 16px; border-left: 4px solid var(--amber); background: var(--amber-tint); border-radius: 0 12px 12px 0; font-size: 15.5px; }
.rec { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec__name { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 22px; color: var(--petrol); }

/* ---------- akademija ---------- */
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .mods { grid-template-columns: minmax(0, 1fr); } }
.mod { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; color: inherit; }
.mod:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mod__n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); font: 600 15px/1 var(--f-mono); color: var(--soft); }
.mod--done .mod__n { background: var(--ok-tint); color: var(--ok); }
.mod--go .mod__n { background: var(--amber-tint); color: var(--warn); }
.mod__t { font-weight: 700; font-size: 16.5px; }
.mod__d { color: var(--soft); font-size: 14px; margin-top: 4px; }
.mod__m { display: flex; gap: 10px; align-items: center; margin-top: 10px; font: 400 12.5px/1.3 var(--f-mono); color: var(--mute); flex-wrap: wrap; }
.ring { width: 112px; height: 112px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: rgba(255, 255, 255, .16); }
.ring .fg { stroke: var(--amber); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s ease; }
.ring text { fill: #fff; font: 700 26px var(--f-display); font-stretch: 87.5%; }
.lesson-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1023px) { .lesson-wrap { grid-template-columns: minmax(0, 1fr); } .toc { order: 2; position: static; } }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; }
.toc a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.toc a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.toc .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.toc .dot--ok { border-color: var(--ok); background: var(--ok); color: #fff; }
.toc .dot svg { width: 12px; height: 12px; }
.prose { font-size: 16.5px; line-height: 1.7; max-width: 72ch; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--petrol-3); font-weight: 700; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--amber); background: var(--amber-tint); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { font: 600 12px/1.3 var(--f-mono); letter-spacing: .6px; text-transform: uppercase; color: var(--mute); background: var(--paper); }
.quiz { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.q__n { font: 500 13px/1 var(--f-mono); color: var(--mute); }
.q__t { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 750; font-size: 22px; line-height: 1.2; }
.ans { display: flex; flex-direction: column; gap: 8px; }
.ans button {
  text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  font-size: 15.5px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.45;
}
.ans button:hover:not([disabled]) { border-color: var(--petrol-3); }
.ans .key { font: 600 13px/22px var(--f-mono); width: 24px; height: 24px; border-radius: 7px; background: var(--paper-2); color: var(--soft); display: grid; place-items: center; flex: none; }
.ans button[data-state="ok"] { border-color: var(--ok); background: var(--ok-tint); }
.ans button[data-state="ok"] .key { background: var(--ok); color: #fff; }
.ans button[data-state="bad"] { border-color: var(--bad); background: var(--bad-tint); }
.ans button[data-state="bad"] .key { background: var(--bad); color: #fff; }
.ans button[data-state="sel"] { border-color: var(--petrol); background: var(--petrol-tint); }
.ans button[disabled] { cursor: default; }
.expl { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); font-size: 15px; }
.result { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.big { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }

/* priročnik */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--soft); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; gap: 12px; align-items: center; font-weight: 650; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); margin-left: auto; transition: transform .15s; flex: none; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc__b { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.qa-a { font-size: 15.5px; }
.qa-why { color: var(--soft); font-size: 14px; }
.copybox { position: relative; }
.copybox .btn { position: absolute; top: 8px; right: 8px; }
.tpl { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; font-size: 15px; line-height: 1.55; padding-right: 92px; overflow-wrap: anywhere; }

/* ponudba */
.offer { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pk { border: 1px solid var(--line); border-radius: 13px; background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pk__hd { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pk__n { font-weight: 700; font-size: 16px; }
.pk__p { font: 500 16px/1.2 var(--f-mono); color: var(--petrol); white-space: nowrap; }
.pk ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--soft); }
.pk__d { font-size: 14px; color: var(--soft); }
.addons { display: flex; flex-direction: column; }
.addon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.addon:first-child { border-top: 0; }
.addon b { font-weight: 650; }
.addon span { color: var(--soft); font-size: 14px; grid-column: 1; }
.addon .num { grid-row: 1 / span 2; grid-column: 2; color: var(--petrol); }

/* rezultati */
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: right; font: 600 12px/1.3 var(--f-mono); letter-spacing: .5px; text-transform: uppercase; color: var(--mute); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb th:first-child, .lb td:first-child { text-align: left; }
.lb td { text-align: right; padding: 12px 8px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
.lb td:first-child { font-family: var(--f-body); font-weight: 600; }
.lb tr.lb-me td { background: var(--amber-tint); }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); font: 600 12px/1 var(--f-mono); margin-right: 8px; }
.rank--1 { background: var(--amber); color: var(--petrol); }
.chart { width: 100%; height: auto; display: block; }
.chart .ax { stroke: var(--line); }
.chart .lbl { fill: var(--mute); font: 11px var(--f-mono); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn { display: grid; grid-template-columns: 130px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 14px; }
.fn__b { height: 22px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.fn__b i { display: block; height: 100%; background: var(--petrol-3); border-radius: 6px; min-width: 2px; }
.fn .num { text-align: right; }

/* modal, toast */
.modal-bg { position: fixed; inset: 0; background: rgba(19, 26, 22, .45); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.modal--wide { width: min(860px, 100%); }
.modal__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal__b { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal__f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 0 20px 20px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-weight: 550; animation: rise .2s ease; }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--amber); }
.toast--bad svg { color: #FF9A8B; }
.toast .btn { margin-left: 6px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 1023px) { .toasts { left: 16px; right: 16px; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom, 0px)); align-items: stretch; } .toast { max-width: none; } }

/* prijava */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth__art { background: var(--petrol); color: #E9EFEC; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth__art::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -120px; border-radius: 50%; background: var(--petrol-2); box-shadow: inset 0 0 0 64px var(--petrol-3); }
.auth__art::before { content: ""; position: absolute; width: 120px; height: 120px; right: 30px; bottom: 30px; border-radius: 50%; background: var(--amber); z-index: 1; }
.auth__art h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); max-width: 12ch; position: relative; z-index: 2; }
.auth__art p { position: relative; z-index: 2; max-width: 40ch; color: #CFDDD8; font-size: 16px; margin-top: 14px; }
.auth__art .brand__name { color: #fff; }
.auth__art .brand__mark { background: #fff; }
.auth__f { display: grid; place-items: center; padding: 32px 16px; }
.auth__card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth__card h2 { font-size: 28px; }
.pwd { position: relative; }
.pwd .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 34px; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth__art { padding: 28px 20px 30px; min-height: 0; } .auth__art::after, .auth__art::before { display: none; } .auth__art h1 { font-size: 30px; } }

/* razno */
.kbd { font: 500 12px/1 var(--f-mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; background: #fff; color: var(--soft); }
.hr { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--line-2); }
.sc-card { display: flex; flex-direction: column; gap: 10px; }
.sc-card ul { margin: 0; padding-left: 20px; }
.legal { font-size: 13px; color: var(--mute); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .in { font-family: var(--f-mono); font-size: 13px; }
.cert { position: relative; overflow: hidden; }
.cert::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--petrol-2); box-shadow: inset 0 0 0 26px var(--petrol-3); }
.cert > * { position: relative; z-index: 1; }
.hidden-m { }
@media (max-width: 760px) { .hidden-m { display: none !important; } }
.only-m { display: none !important; }
@media (max-width: 760px) { .only-m { display: inline-flex !important; } }
@media print { .side, .topbar, .tabbar, .sticky-call, .toasts { display: none !important; } .main { margin: 0; } }

.lb-wrap { overflow-x: auto; margin: 0 -4px; }
@media (max-width: 520px) { .lb th { font-size: 10.5px; letter-spacing: .2px; padding: 8px 5px; } .lb td { padding: 10px 5px; font-size: 13.5px; } .rank { width: 22px; height: 22px; margin-right: 6px; } }
.acc summary svg { width: 18px; height: 18px; flex: none; color: var(--petrol-3); }
.acc summary .tag svg { width: 12px; height: 12px; }
.tag svg { width: 12px; height: 12px; }
.empty .btn svg { width: 18px; height: 18px; color: inherit; }
.card h2 > svg, .card h3 > svg, .row > h2 > svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 4px; color: var(--petrol-3); }
.card--petrol h2 > svg, .card--petrol .row > svg:not(.ring) { color: var(--amber); width: 22px; height: 22px; }
@media (max-width: 520px) { .ring { width: 84px; height: 84px; } }
.li--team .li__t { white-space: normal; }
