:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5d6b7c;
  --line: #dfe5ec;
  --brand: #0b5fa5;
  --brand-dark: #084a80;
  --danger: #b42318;
  --ok-bg: #e8f6ee; --ok-fg: #17663a;
  --err-bg: #fdecea; --err-fg: #a4261c;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 14px; padding-bottom: 14px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 16px; }
.top-nav form { margin: 0; }

main.wrap { padding-top: 22px; padding-bottom: 48px; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 65ch; }
.empty { color: var(--muted); padding: 24px 0; }

/* Iskanje in filtri */
.tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.search input {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.search input:focus, .form input:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Seznam dokumentov */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.doc[hidden] { display: none; }
.doc-icon {
  flex: 0 0 auto; width: 44px; height: 52px; border-radius: 6px;
  background: #fbe9e7; color: #c62828; font-weight: 700; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.doc-body { flex: 1 1 auto; min-width: 0; }
.doc h2 { font-size: 1.05rem; margin: 4px 0 2px; overflow-wrap: anywhere; }
.meta { margin: 0; color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #eef2f7; color: var(--muted); }
.badge-navodila   { background: #e6f0fa; color: #0b5fa5; }
.badge-certifikat { background: #e8f6ee; color: #17663a; }
.badge-izjava     { background: #fff4e0; color: #8a5300; }

.btn {
  display: inline-block; border: 1px solid var(--brand); background: var(--brand); color: #fff;
  padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: #e6f0fa; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--err-bg); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .wrap { padding-top: 18px; padding-bottom: 18px; }

/* Urejevalnik */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.card.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.card h1 { font-size: 1.35rem; margin-bottom: 16px; }
.card h2 { font-size: 1.15rem; margin: 0 0 14px; }
.form { display: grid; gap: 14px; }
.form.grid { grid-template-columns: 1fr 1fr; }
.form .span2 { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=password], .form select, .form input[type=file] {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
textarea.hash { width: 100%; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert.ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert.err { background: var(--err-bg); color: var(--err-fg); }

.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; font-size: .82rem; }
table.list td small { color: var(--muted); }
table.list tr.current { background: #f0f6fc; }
.row-actions { display: flex; gap: 6px; white-space: nowrap; }
.row-actions form { margin: 0; }
.pill { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill.on { background: var(--ok-bg); color: var(--ok-fg); }
.pill.off { background: #eef2f7; color: var(--muted); }


/* ---------- Koraki: proizvajalec → vrsta → izdelek ---------- */
.hero { background: linear-gradient(135deg, #0b5fa5 0%, #084a80 100%); color: #fff; }
.hero .wrap { padding-top: 26px; padding-bottom: 22px; }
.hero-title { margin: 0; font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: #fff; }
.hero-sub { margin: 4px 0 0; font-size: 1.02rem; opacity: .85; }
.hero-back { display: inline-block; color: #fff; opacity: .85; text-decoration: none; font-size: .92rem; margin-bottom: 6px; }
.hero-back:hover { opacity: 1; text-decoration: underline; }
main.wrap { padding-top: 22px; }

main.wrap h1 { font-size: 1.45rem; margin-bottom: 4px; }
main.wrap .lead { margin-bottom: 20px; }

.tiles, .choices, .products { list-style: none; margin: 0; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile, .choice, .product {
  display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover, .choice:hover, .product:hover, .tile:focus-visible, .choice:focus-visible, .product:focus-visible {
  border-color: var(--brand); box-shadow: 0 6px 18px rgba(11, 95, 165, .14); transform: translateY(-1px); outline: none;
}
.tile { flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 18px 20px; position: relative; }
.tile::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: #b6c2cf; }
.tile:hover::after { color: var(--brand); }
.tile-name { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; padding-right: 18px; }
.tile-sub { color: var(--muted); font-size: .88rem; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; }
.choice { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 30px 16px; }
.choice-icon { color: var(--brand); display: flex; width: 60px; height: 60px; border-radius: 50%; background: #e6f0fa; align-items: center; justify-content: center; }
.choice-name { font-weight: 700; font-size: 1.2rem; }

.search { display: block; margin-bottom: 14px; }
.products { display: grid; gap: 10px; max-width: 820px; }
.products li[hidden] { display: none; }
.product {
  align-items: center; gap: 10px; padding: 10px 12px 10px 14px; min-height: 68px;
}
.product:hover { transform: none; }
.product-main { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; padding: 4px 0; }
.product-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: #e6f0fa; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.product-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.product-name { font-weight: 700; overflow-wrap: anywhere; }
.product-sub { color: var(--muted); font-size: .85rem; }
.product-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.product-go { background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: 8px; text-decoration: none; }
.product-go:hover { background: var(--brand-dark); }
.product-video {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: #fff; background: #1f8a4c; border: 1.5px solid #1f8a4c; border-radius: 8px;
  padding: 9px 14px; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.product-video:hover { background: #17703d; border-color: #17703d; }
.vcount { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.25); font-size: .75rem; line-height: 18px; text-align: center; }
.product-cert {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--brand); background: #fff; border: 1.5px solid var(--brand); border-radius: 8px;
  padding: 9px 14px; font-weight: 600; font-size: .92rem; text-decoration: none;
}
.product-cert:hover { background: #e6f0fa; }

/* ---------- Pregledovalnik PDF ---------- */
body.viewer-page { background: #525659; display: flex; flex-direction: column; min-height: 100vh; }
.vbar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 12px;
}
.vback { flex: 0 0 auto; color: var(--brand); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.vback:hover { background: #e6f0fa; }
.vtitle { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vtitle strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtitle span { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtools { flex: 0 0 auto; display: flex; gap: 4px; }
.vtabs { flex: 1 0 100%; display: flex; background: #eef2f7; border-radius: 10px; padding: 4px; gap: 4px; }
.vtab { flex: 1; text-align: center; padding: 9px 10px; border-radius: 7px; font-weight: 600; color: var(--muted); text-decoration: none; }
.vtab:hover { color: var(--brand); }
.vtab.is-active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vbtn {
  width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  font: inherit; font-size: 1.15rem; line-height: 1; color: var(--text); cursor: pointer;
}
.vbtn:hover { border-color: var(--brand); color: var(--brand); }
.viewer { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 8px 20px; overflow-x: auto; }
.viewer.zoomed { align-items: flex-start; }
.viewer.zoomed .vpage { margin: 0 auto; }
.vpage { flex: 0 0 auto; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); position: relative; }
.vpage canvas { display: block; width: 100%; height: 100%; }
.vstatus { color: #fff; margin: 40px 16px; text-align: center; }
.vstatus a { color: #cfe3ff; }
.vfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #3b3e40; color: #ddd; font-size: .88rem; }
.vfoot a { color: #cfe3ff; }

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .doc { flex-wrap: wrap; align-items: flex-start; }
  .doc-body { flex-basis: calc(100% - 60px); }
  .doc .btn { width: 100%; text-align: center; }
  .form.grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 80px; padding: 14px; }
  .tile::after { display: none; }
  .tile-name { padding-right: 0; }
  .hero .wrap { padding-top: 18px; padding-bottom: 16px; }
  .hero-title { font-size: 1.4rem; }
  .product { flex-wrap: wrap; padding: 12px; }
  .product-icon { width: 38px; height: 38px; }
  .product-actions { flex: 1 0 100%; gap: 8px; }
  .product-go { flex: 3 1 0; text-align: center; padding: 11px 12px; }
  .product-cert, .product-video { flex: 2 1 0; padding: 10px 6px; }
  .choice { padding: 22px 10px; }
  .vtitle span { display: none; }
  .vbtn#zoom-fit { display: none; }
  .card { padding: 16px; }
}

/* ---------- QR koda (urejevalnik) ---------- */
.qr-card { border-color: var(--brand); }
.qr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.qr-head h1 { margin: 0 0 14px; }
.qr-body { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { width: 220px; height: 220px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-info { flex: 1 1 260px; }
.qr-info p { margin: 0 0 12px; }
.qr-url { font-size: .88rem; overflow-wrap: anywhere; }

.hint { background: #e8f6ee; color: #17663a; padding: 10px 14px; border-radius: 8px; margin: -4px 0 16px; }
.btn.add { background: #fff; color: #17663a; border-color: #17663a; }
.btn.add:hover { background: #e8f6ee; }
.row-actions { flex-wrap: wrap; }

[hidden] { display: none !important; }

/* ---------- Video ---------- */
body.video-page { background: #1d2125; }
.vplayer-wrap { flex: 1 0 auto; width: 100%; max-width: 1000px; margin: 0 auto; padding: 16px 12px 24px; }
.vplayer { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.vplayer video, .vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vheading { color: #fff; font-size: 1.25rem; margin: 16px 2px 6px; }
.vlist-title { color: #aab4be; font-size: .9rem; margin: 18px 2px 8px; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vlist a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #2b3036; color: #fff; text-decoration: none; font-weight: 600; }
.vlist a:hover { background: #343a41; }
.vlist .play, .vtab .play { font-size: .75em; }
.vtab .vcount { background: #dfe5ec; color: var(--muted); }
.vtab.is-active .vcount { background: #e6f0fa; color: var(--brand); }

/* ---------- Urejevalnik: video vir in napredek ---------- */
.src-box { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: #fafbfc; }
.src-or { margin: 0; text-align: center; color: var(--muted); font-size: .85rem; position: relative; }
.src-or span { background: #fafbfc; padding: 0 10px; position: relative; }
.src-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.upload-progress .bar { height: 10px; border-radius: 6px; background: #e6edf4; overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.upload-progress .pct { display: block; margin-top: 6px; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.form input[type=url] { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }

/* ---------- Oznake proizvajalcev (kot na ceniku) ---------- */
.tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { align-items: center; text-align: center; justify-content: flex-start; padding: 22px 20px 20px; }
.tile::after { display: none; }
.tile-name { padding-right: 0; font-size: 1.25rem; }
.tile-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pill-tag { background: #edf2f8; color: #2a5ea8; font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 999px; line-height: 1.3; }
.muted { color: var(--muted); margin: -6px 0 14px; font-size: .92rem; }
.brand-form { gap: 10px; }
.brand-line { display: grid !important; grid-template-columns: 180px 1fr; align-items: center; gap: 12px !important; }
.brand-line span { font-weight: 600; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .brand-line { grid-template-columns: 1fr; gap: 4px !important; }
}

/* vse ploščice proizvajalcev enakih dimenzij */
.tiles { grid-auto-rows: 1fr; align-items: stretch; }
.tiles > li { display: flex; }
.tiles .tile { flex: 1; width: 100%; height: 100%; }

/* oznake: vedno ena pod drugo, enake širine */
.tile-tags { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; max-width: 250px; gap: 8px; margin-top: 14px; }
.pill-tag { display: block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   Tehnična knjižnica – prva stran, blagovne znamke, izdelki (mobilno najprej)
   ===================================================================== */
body.lib { background: #f2f5f8; }
.lib .hero { background: #26578a; }
.lib .hero .wrap { padding-top: 22px; padding-bottom: 22px; }
.lib .hero-title { font-size: 1.6rem; letter-spacing: -.01em; }
.lib .hero-sub { font-size: 1rem; opacity: .9; }
.lib-main { padding-top: 16px !important; }

/* iskalnik */
.lib-search { position: relative; display: block; margin: 0 0 14px; }
.lib-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6b7a89; pointer-events: none; }
.lib-search input {
  width: 100%; height: 52px; padding: 0 14px 0 44px; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #dbe2ea; border-radius: 12px; -webkit-appearance: none; appearance: none;
}
.lib-search input::placeholder { color: #7d8a97; }
.lib-search input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }

/* kartice blagovnih znamk */
.bcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-items: stretch; gap: 10px; }
.bcards > li { display: flex; min-width: 0; }
.bcards > li[hidden] { display: none; }
.bcard {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 12px 14px; background: #fff; border: 1px solid #dbe2ea; border-radius: 14px;
  color: var(--text); text-decoration: none; min-width: 0;
}
.bcard:hover { border-color: #9dbbd9; }
.bcard:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.bcard-logo { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; }
.bcard-logo img { display: block; max-width: 100%; height: auto; object-fit: contain; }
.bcard-name { font-size: 1.3rem; font-weight: 700; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.bcard-tags { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.ctag {
  display: block; text-align: center; background: #e9eff7; color: #2c5a91;
  font-size: .8rem; font-weight: 500; line-height: 1.25; padding: 5px 8px; border-radius: 999px;
}
.ctag.more { background: none; color: #6b7a89; padding-top: 0; padding-bottom: 0; }
.vtag { display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; color: #2b7a4b; font-size: .84rem; font-weight: 500; }
.vtag svg { color: #2b8a52; flex: 0 0 auto; }

/* zadetki iskanja */
.results { margin: 0 0 16px; }
.results-title { font-size: .95rem; color: #4d5b69; margin: 4px 2px 8px; font-weight: 600; }
.results-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #dbe2ea; border-radius: 12px; overflow: hidden; }
.results-list li + li { border-top: 1px solid #e8edf2; }
.result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; color: var(--text); text-decoration: none; }
.result:hover { background: #f6f9fc; }
.result-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result-txt strong { font-weight: 600; overflow-wrap: anywhere; }
.result-sub { color: #5d6b79; font-size: .86rem; }
.result-types { color: #2c5a91; font-size: .8rem; }
.result-go { color: #9aa7b4; font-size: 1.4rem; }

/* izdelki blagovne znamke */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plist > li[hidden] { display: none; }
.pcard { background: #fff; border: 1px solid #dbe2ea; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pcard-head { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.pcard-name { font-weight: 700; font-size: 1.08rem; overflow-wrap: anywhere; }
.pcard-sub { color: #5d6b79; font-size: .86rem; }
.pcard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 8px 10px; border: 1.5px solid #b9cde3; border-radius: 10px; background: #fff;
  color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; text-align: center; line-height: 1.2;
}
.pbtn:hover { border-color: var(--brand); background: #f3f8fd; }
.pbtn.primary { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); color: #fff; }
.pbtn.primary:hover { background: var(--brand-dark); }
.pbtn.video { color: #23774a; border-color: #b8dcc6; }
.pbtn.video:hover { border-color: #2b8a52; background: #f2faf5; }
.pbtn .cnt { font-size: .75rem; background: #e9eff7; color: #2c5a91; border-radius: 9px; padding: 0 6px; }
.pbtn.video .cnt { background: #e3f3e9; color: #23774a; }

/* Tehnični pult AI */
.helpdesk {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 4px 4px;
  border-top: 1px solid #dbe2ea; color: var(--text); text-decoration: none;
}
.helpdesk-ico { color: #26578a; display: flex; flex: 0 0 auto; }
.helpdesk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.helpdesk-txt strong { font-weight: 600; font-size: 1.02rem; }
.helpdesk-txt span { color: #2c5a91; font-size: .9rem; }
.helpdesk-go { color: #6b7a89; font-size: 1.5rem; }
.helpdesk:hover strong { color: var(--brand); }

/* zavihki pregledovalnika – pri več vrstah se pomikajo vodoravno */
.vtabs { overflow-x: auto; scrollbar-width: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtab { flex: 1 0 auto; white-space: nowrap; }

/* širši zasloni */
@media (min-width: 720px) {
  .bcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .bcard { padding: 20px 18px 16px; }
  .pcard { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 18px; }
  .pcard-head { flex: 1; min-width: 0; }
  .pcard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .pbtn { min-height: 40px; padding: 8px 14px; }
  .lib .hero-title { font-size: 1.8rem; }
}
@media (min-width: 1000px) { .bcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 359px) { .bcards { grid-template-columns: 1fr; } }

/* urejevalnik: logotipi in kategorije */
.logo-form { gap: 0; }
.logo-line { display: grid; grid-template-columns: 170px 170px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.logo-name { font-weight: 600; }
.logo-prev { height: 56px; display: flex; align-items: center; }
.logo-prev img { max-width: 100%; height: auto; }
.logo-form .actions { margin-top: 14px; }
.cat-area { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; line-height: 1.6; }
@media (max-width: 640px) { .logo-line { grid-template-columns: 1fr; gap: 6px; } }

/* kartice: enaka višina v vsaki vrsti (kot v predlogi), brez praznega prostora */
.bcards > li { height: auto; }
.tiles { grid-auto-rows: auto; }
@media (max-width: 719px) { .lib-search input { font-size: .95rem; } }

/* logotipi večji, kartica brez praznega dna */
.bcard { position: relative; }
.bcard-logo { height: 84px; }
.vbadge { position: absolute; top: 10px; right: 10px; color: #2b8a52; display: flex; }
.vbadge svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }

/* predvajalnik: datoteka obdrži svoje razmerje (pokončni video na telefonu čez cel zaslon) */
.vplayer.file { aspect-ratio: auto; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; display: flex; justify-content: center; }
.vplayer.file video {
  position: static; display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  border-radius: 10px; background: #000; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
@media (max-width: 640px) {
  .vplayer-wrap { padding: 8px 0 16px; }
  .vplayer.file video { border-radius: 0; max-height: calc(100svh - 120px); }
  .vheading { margin-left: 14px; margin-right: 14px; }
}

.pcat select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; min-width: 200px; }
.pcat tr.nocat td:last-child select { border-color: #e0a100; background: #fffaf0; }
.pcat td { vertical-align: middle; }
