/* Loteks (hub): začetni zaslon, zbirka predlog, katalog artiklov. Predpona hx-; Vetovih pogledov ne spreminja. */
.hx-page { max-width: 1180px; margin: 0 auto; padding: 18px 20px 40px; overflow: auto; height: 100%; }
.hx-page.wide { max-width: 1500px; }
.hx-page h1 { font-size: 22px; margin-bottom: 4px; }
.hx-h { margin: 22px 0 8px; }
.hx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.hx-tiles.sites { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hx-tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.hx-tile:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 8px rgba(36, 87, 214, .15); }
.hx-tile.main { border-left: 4px solid var(--brand); min-height: 130px; }
.hx-tile h2 { font-size: 18px; margin-bottom: 4px; }
.hx-lead { margin: 4px 0 10px; color: var(--muted); }
.hx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.hx-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.hx-card.soft { background: var(--surface); border-style: dashed; }
.hx-actions { display: flex; gap: 8px; }
a.hx-nav, button.hx-nav, .hx-nav { padding: 4px 10px; border-radius: var(--r); color: var(--ink); font-weight: 600; background: transparent; border: 0; cursor: pointer; font-size: var(--fs); }
a.hx-nav:hover, button.hx-nav:hover { background: var(--brand-tint); text-decoration: none; }
.hx-nav.on { background: var(--brand-tint); color: var(--brand); }
.hx-sitepick { display: flex; align-items: center; gap: 6px; margin-right: 8px; }
.hx-split { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.hx-split.art { grid-template-columns: 1fr 380px; }
.hx-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; }
.hx-group { margin-top: 8px; }
.hx-gh { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.hx-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 9px; cursor: pointer; font-size: 13px; color: var(--ink); }
.hx-item:hover { border-color: var(--accent); }
.hx-item > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hx-item .chip { flex: none; }
.hx-item.on { background: var(--accent-tint); border-color: var(--accent); }
.hx-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hx-detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.hx-dh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hx-dh h2 { font-size: 18px; margin-right: 6px; }
.hx-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 10px 0; }
.hx-form .fld textarea { width: 320px; font: inherit; }
.hx-form .fld input[type=text], .hx-form .fld input[type=search] { min-width: 260px; }
.hx-preview { margin: 10px 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.hx-pv { display: block; max-width: 100%; max-height: 300px; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; image-rendering: pixelated; }
.hx-thumb { height: 26px; vertical-align: middle; border: 1px solid var(--line); background: #fff; }
.hx-job { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; }
.hx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.hx-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: var(--fs); }
.hx-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.hx-pick { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.hx-artsel { display: flex; gap: 8px; align-items: center; }
.hx-art tbody tr { cursor: pointer; } .hx-art tbody tr:hover td { background: var(--accent-tint); } .hx-art tr.sel td { background: var(--accent-tint); }
.hx-artside { position: sticky; top: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; max-height: calc(100vh - 140px); overflow: auto; }
.tbl.kv td { padding: 2px 5px; font-size: 12.5px; }
.hx-fresh { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 14px; }
.hx-fresh summary { cursor: pointer; font-weight: 650; }
.hx-ed { border-top: 1px dashed var(--line); padding-top: 6px; }
.hx-forms input[type=search] { width: 360px; margin: 6px 0 10px; }
@media (max-width: 900px) { .hx-split, .hx-split.art { grid-template-columns: 1fr; } .hx-list, .hx-artside { position: static; max-height: none; } }
.hx-pvrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.hx-pvcard { flex: 1 1 200px; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.hx-pvcard .hx-pv { max-height: 360px; width: auto; }
.okline { color: var(--ok, #1a7f37); }
.hx-paper { display: inline-block; align-self: flex-start; border: 1px solid var(--line); border-radius: 3px; line-height: 0; }
.hx-paper .hx-pv { border: 0; margin: 0; background: transparent; mix-blend-mode: multiply; }
/* urejevalnik postavitve (QR z izrecno vsebino, Prosto besedilo) */
.hx-lay { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px 8px; margin: 6px 0; }
.hx-lay legend { font-weight: 600; padding: 0 4px; }
.hx-laygrp { margin-top: 6px; }
.hx-lay .fld { vertical-align: top; }
.hx-err { color: #b42318; max-width: 260px; white-space: normal; }
.hx-lay input.invalid { border-color: #b42318; background: #fff4f2; }
.hx-pvcard .hx-pv.scaled, .hx-paper .hx-pv.scaled { max-width: none; max-height: none; height: auto; }
.hx-pvcard:has(.hx-pv.scaled) { max-width: none; flex: 0 0 auto; }
