@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Temelino — boje iz loga: škriljevac + bakreni krov */
:root {
  --paper: #ECEEEA;
  --surface: #FFFFFF;
  --surface-2: #F5F6F3;
  --ink: #26323A;
  --ink-2: #4A565B;
  --ink-3: #7D888C;
  --line: #D6DAD5;
  --steel: #2F5D73;
  --steel-soft: #DCE8EE;
  --hivis: #DA6243;
  --hivis-ink: #FFFFFF;
  --ok: #2E7D4F;
  --ok-soft: #DDEFE3;
  --warn: #B86E00;
  --warn-soft: #FBEBCF;
  --bad: #C2412D;
  --bad-soft: #F8E0DB;
  --plan: #8A9AA0;
  --side: #283543;
  --side-ink: #C9D2D5;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 18px;
  --shadow: 0 1px 0 rgba(30, 39, 43, .06), 0 6px 20px -12px rgba(30, 39, 43, .25);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131A1D; --surface: #1B2427; --surface-2: #212C30; --ink: #E6ECEE; --ink-2: #AFBBBF; --ink-3: #7D8A8F;
    --line: #2E3A3F; --steel: #7FB3CC; --steel-soft: #20333C; --ok: #5DBB83; --ok-soft: #183327; --warn: #E3A13A; --warn-soft: #3A2C14;
    --bad: #EB7A66; --bad-soft: #3D1E19; --plan: #6C7C82; --side: #0E1416; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 24px -14px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131A1D; --surface: #1B2427; --surface-2: #212C30; --ink: #E6ECEE; --ink-2: #AFBBBF; --ink-3: #7D8A8F;
  --line: #2E3A3F; --steel: #7FB3CC; --steel-soft: #20333C; --ok: #5DBB83; --ok-soft: #183327; --warn: #E3A13A; --warn-soft: #3A2C14;
  --bad: #EB7A66; --bad-soft: #3D1E19; --plan: #6C7C82; --side: #0E1416; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 24px -14px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: var(--steel); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }

/* ---------- Okvir ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { padding: 16px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--paper); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .proj-switch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; }
.proj-switch svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.proj-switch .pname { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.topbar .spacer { display: none; flex: 1; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg, .nav-item svg, .btn svg { width: 22px; height: 22px; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--surface); border-top: 1px solid var(--line); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--ink-3); text-decoration: none; padding: 6px 0; font-weight: 600; }
.nav-item.active { color: var(--ink); }
.nav-item.active svg { color: var(--steel); }
.nav-add { justify-self: center; width: 58px; height: 58px; border-radius: 18px; background: var(--hivis); color: var(--hivis-ink); border: 0; display: grid; place-items: center; cursor: pointer; transform: translateY(-14px);
  box-shadow: 0 6px 16px -6px rgba(150, 80, 50, .55); }
.nav-add svg { width: 28px; height: 28px; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 252px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); padding: 18px 12px; overflow-y: auto; }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; text-decoration: none; }
  .side .proj-pick { margin: 0 4px 14px; padding: 10px 12px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; text-align: left; cursor: pointer; }
  .side .proj-pick small { display: block; color: var(--side-ink); opacity: .7; font-size: .75rem; }
  .side .proj-pick b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--side-ink); text-decoration: none; font-weight: 500; }
  .side nav a svg { width: 20px; height: 20px; opacity: .8; }
  .side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side nav a.active { background: rgba(218, 98, 67, .2); color: #fff; box-shadow: inset 3px 0 0 var(--hivis); }
  .side .side-add { margin: 0 4px 16px; }
  .side .side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 8px; font-size: .85rem; }
  .side .side-foot a { color: var(--side-ink); }
  .side .side-foot svg { width: 18px; height: 18px; flex: none; }
  .bottom-nav { display: none; }
  .topbar .proj-switch, .topbar .logo-mark { display: none; }
  .topbar .spacer { display: block; }
  .topbar { padding: 14px 32px; }
  .main { padding: 8px 32px 48px; }
}

/* ---------- Gumbi i forme ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: .92; border-color: var(--ink); }
.btn-hivis { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.btn-danger { color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; border-radius: var(--radius-s); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
.field-amount input { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; min-height: 60px; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.hint { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; gap: 3px; }
.seg label { flex: 1; text-align: center; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; left: 0; top: 0; width: 1px; height: 1px; margin: 0; }
.seg span { display: block; padding: 9px 6px; border-radius: 7px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--hivis); }
details.more { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--steel); padding: 8px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "− "; }
.check { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--steel); }

/* ---------- Kartice / blokovi ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.cols { display: grid; gap: 16px; }
.cols > * { min-width: 0; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1.4fr 1fr; align-items: start; } .cols > .panel + .panel { margin-top: 0; } }
.stack > * + * { margin-top: 16px; }

/* ---------- Budžet "metar" (signature) ---------- */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 18px 18px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.hero .big { font-family: var(--font-head); font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero .big small { font-size: .45em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.hero .sub { color: var(--ink-2); margin-top: 6px; }
.hero .badge-left { text-align: right; max-width: 10.5em; }
.hero .badge-left > div:last-child { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.6rem) !important; white-space: nowrap; }
@media (max-width: 420px) { .hero .big { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.4rem); } }
.tape { margin: 22px 0 6px; }
.tape-bar { position: relative; height: 34px; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%), var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: flex; }
.tape-bar .seg-paid { background: var(--ink); }
.tape-bar .seg-unpaid { background: repeating-linear-gradient(-45deg, var(--warn) 0 6px, color-mix(in srgb, var(--warn) 70%, var(--surface)) 6px 12px); }
.tape-bar .seg-plan { background: repeating-linear-gradient(-45deg, var(--plan) 0 2px, transparent 2px 7px); border-right: 2px dashed var(--plan); }
.tape-bar .seg-over { background: var(--bad); }
.tape-bar > div { height: 100%; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tape-ticks { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tape-ticks span { position: relative; }
.tape-ticks span::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: var(--ink-3); }
.tape-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; margin-top: 16px; }
@media (min-width: 700px) { .tape-legend { grid-template-columns: repeat(4, 1fr); } }
.lg { display: flex; gap: 10px; align-items: flex-start; }
.lg i { width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; flex: none; }
.lg b { display: block; font-family: var(--font-head); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.lg span { font-size: .8rem; color: var(--ink-3); }
.i-paid { background: var(--ink); } .i-unpaid { background: var(--warn); } .i-plan { background: var(--plan); } .i-free { background: none; height: 8px; margin-top: 8px; border: 2px solid var(--ink-3); border-top: 0; border-radius: 0 0 3px 3px; } .i-over { background: var(--bad); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.qa svg { width: 24px; height: 24px; color: var(--steel); }
.qa:first-child { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.qa:first-child svg { color: var(--hivis-ink); }
@media (min-width: 900px) { .quick-actions { display: none; } }

/* ---------- Liste ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; flex: none; background: var(--surface-2); }
.row .body { flex: 1; min-width: 0; }
.row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: .82rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .right { text-align: right; flex: none; }
.row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.list-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 4px 14px; }
.day-head { font-size: .8rem; font-weight: 700; color: var(--ink-3); padding: 14px 4px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.partial { background: var(--warn-soft); color: var(--warn); }
.pill.unpaid { background: var(--bad-soft); color: var(--bad); }
.pill.plan { background: var(--steel-soft); color: var(--steel); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--steel-soft); color: var(--steel); font-size: .78rem; font-weight: 600; margin: 2px 4px 2px 0; text-decoration: none; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar .search { flex: 1 1 220px; position: relative; }
.toolbar .search input { padding-left: 38px; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select, .filters input { min-height: 38px; padding: 6px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; max-width: 100%; }
.sum-strip { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); margin: 0 4px 10px; }
.sum-strip b { color: var(--ink); font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

/* ---------- Kategorije graf ---------- */
.cat-bars { display: grid; gap: 10px; }
.cat-bar .lbl { display: flex; justify-content: space-between; font-size: .88rem; gap: 8px; }
.cat-bar .lbl span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-bar .trk { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; display: flex; margin-top: 4px; }
.cat-bar .trk i { display: block; height: 100%; }
.months { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.months .m { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.months .m i { width: 100%; max-width: 26px; background: var(--steel); border-radius: 3px 3px 0 0; min-height: 2px; }
.months .m span { font-size: .65rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- Vremeplov ---------- */
.tl-month { margin-bottom: 22px; }
.tl-month h3 { position: sticky; top: 64px; background: var(--paper); padding: 6px 0; z-index: 2; display: flex; gap: 10px; align-items: baseline; }
.tl-month h3 small { font-family: var(--font-body); font-weight: 500; color: var(--ink-3); font-size: .85rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.ph { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); cursor: zoom-in; border: 0; padding: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox { position: fixed; inset: 0; background: #0B0F11; z-index: 100; display: flex; flex-direction: column; }
.lightbox { touch-action: none; overscroll-behavior: contain; }
.lightbox .lb-img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; min-height: 0; overflow: hidden; position: relative; touch-action: none; cursor: zoom-in; }
.lightbox.zoomed .lb-img { cursor: grab; }
.lightbox img { max-width: 100%; max-height: min(100%, calc(100dvh - 110px)); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center center; will-change: transform; }
.lightbox .lb-count { color: #C9D2D5; font-variant-numeric: tabular-nums; }
html.lb-open, html.lb-open body { overflow: hidden !important; overscroll-behavior: none; }
.lightbox .lb-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #E6ECEE; }
.lightbox .lb-bar .grow { flex: 1; min-width: 0; }
.lightbox .icon-btn { color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }

/* ---------- Sheet / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 20, 22, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { background: var(--surface); width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; position: sticky; top: -8px; background: var(--surface); padding: 6px 0; z-index: 2; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 calc(20px + env(safe-area-inset-bottom)); margin-bottom: calc(-20px - env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: var(--radius-l); max-height: 88vh; } .sheet-grip { display: none; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.action-list { display: grid; gap: 8px; }
.action-list button { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.action-list button:hover { border-color: var(--ink-3); }
.action-list button svg { width: 26px; height: 26px; color: var(--steel); flex: none; }
.action-list button b { display: block; }
.action-list button span { font-size: .84rem; color: var(--ink-3); }
.action-list button.primary { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.action-list button.primary svg, .action-list button.primary span { color: var(--hivis-ink); }

.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { .toast-wrap { bottom: 24px; } }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius); font-weight: 500; box-shadow: var(--shadow); animation: up .2s ease; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.toast.err { background: var(--bad); color: #fff; }
.toast button { background: none; border: 0; color: var(--hivis); font-weight: 700; cursor: pointer; }

/* ---------- Početna (landing + prijava) ---------- */
.land { background: var(--paper); min-height: 100vh; }
.land-hero { background: var(--side); color: #E6ECEE; padding: calc(16px + env(safe-area-inset-top)) 16px 40px; position: relative; overflow: hidden; }
.land-hero::after { content: ""; position: absolute; inset: auto -10% -1px -10%; height: 120px; background: radial-gradient(60% 100% at 50% 100%, rgba(218, 98, 67, .16), transparent 70%); pointer-events: none; }
.land-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto 28px; position: relative; z-index: 1; }
.land-nav .brand-logo { height: 32px; }
.land-link { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); }
.land-link:hover { background: rgba(255,255,255,.08); }
.land-grid { max-width: 1160px; margin: 0 auto; display: grid; gap: 28px; position: relative; z-index: 1; }
.land-copy h1 { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 4.6rem); color: #fff; line-height: .98; letter-spacing: -0.035em; }
.land-lead { color: #B9C4C8; font-size: clamp(11.5px, 3.45vw, 1.25rem); margin: 14px 0 0; white-space: nowrap; }
.land-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 26px 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); align-self: start; }
.land-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.land-card .lead { color: var(--ink-3); margin-bottom: 18px; }
.demo { margin-top: 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px; max-width: 520px; }
.demo-top { display: flex; justify-content: space-between; gap: 10px; }
.demo-lbl { font-size: .78rem; color: #93A1A7; font-weight: 600; }
.demo-big { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.demo-big small { font-size: .5em; color: #93A1A7; }
.demo-sub { font-size: .85rem; color: #B9C4C8; }
.demo-left { text-align: right; }
.demo-ok { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: #7FD3A0; }
.demo-bar { margin-top: 14px; height: 22px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.demo-bar .seg-paid { background: #E6ECEE; }
.demo-legend { display: flex; gap: 14px; font-size: .75rem; color: #93A1A7; margin-top: 8px; }
.demo-legend span { display: inline-flex; align-items: center; gap: 5px; }
.demo-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.demo-legend .i-paid { background: #E6ECEE; }
.demo-rows { margin-top: 14px; display: grid; gap: 8px; }
.demo-row { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #D5DDE0; }
.demo-row .dn { flex: 1; }
.demo-row b { color: #fff; font-variant-numeric: tabular-nums; }
.demo-row .cico { width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--cc) 26%, var(--side)); color: color-mix(in srgb, var(--cc) 60%, white); }
.demo-row .cico svg { width: 18px; height: 18px; }
.land-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.land-feats { padding: 44px 0 12px; }
.feat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.feat .cico { --cc: var(--hivis) !important; margin-bottom: 12px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.land-steps { padding: 32px 0 40px; }
.land-steps h2 { font-size: 1.5rem; margin-bottom: 16px; }
.steps-list { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }
.steps-list li { counter-increment: st; display: grid; align-content: start; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: start; }
.steps-list li::before { content: counter(st); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.steps-list b { font-weight: 700; }
.steps-list span { color: var(--ink-3); font-size: .92rem; }
.land-foot { border-top: 1px solid var(--line); padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); }
.land-foot .land-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: .88rem; }
.land-foot .brand-logo { height: 24px; }
@media (min-width: 960px) {
  .land-hero { padding: 22px 32px 64px; }
  .land-grid { grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy card" "demo card"; gap: 0 56px; align-items: center; }
  .land-copy { grid-area: copy; align-self: end; } .land-card { grid-area: card; align-self: center; } .demo { grid-area: demo; align-self: start; }
  .land-card { padding: 32px 30px; }
  .land-wrap { padding: 0 32px; }
}
@media (max-width: 959px) { .demo { margin-top: 0; } .land-grid { gap: 20px; } }
.auth-switch { margin-top: 16px; text-align: center; color: var(--ink-3); }

/* ---------- Wizard ---------- */
.wizard { max-width: 640px; margin: 0 auto; }
.steps { display: flex; gap: 6px; margin: 4px 0 22px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--ink); }
.type-cards { display: grid; gap: 10px; }
.type-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.pt-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.pt-ico svg { width: 50px; height: 50px; }
.pt-ico .r { fill: none; stroke: var(--hivis); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.pt-ico .b { fill: var(--ink); }
.pt-ico .h { fill: var(--surface-2); }
.pt-ico .w { fill: none; stroke: var(--surface-2); stroke-width: 3.2; stroke-linecap: round; }
.pt-ico.pt-sm { width: 42px; height: 42px; border-radius: 11px; }
.pt-ico.pt-sm svg { width: 32px; height: 32px; }
.proj-card .pt-ico { width: 52px; height: 52px; border-radius: 14px; }
.proj-card .pt-ico svg { width: 40px; height: 40px; }
.proj-card.new svg { width: 28px; height: 28px; }
.type-card { padding: 14px 16px; }
.type-card:hover { border-color: var(--ink-3); }
.type-card b { display: block; font-size: 1.05rem; }
.type-card span { color: var(--ink-3); font-size: .9rem; }
.type-card.sel { border-color: var(--hivis); box-shadow: inset 0 0 0 1px var(--hivis); }
.prior-row { display: grid; grid-template-columns: 1fr 120px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.prior-row .d { grid-column: 1 / 3; }
@media (min-width: 600px) { .prior-row { grid-template-columns: 1.4fr 130px 150px 40px; } .prior-row .d { grid-column: auto; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .86rem; font-weight: 600; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Projekti ---------- */
.proj-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.proj-card:hover { border-color: var(--ink-3); }
.proj-card .t { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.proj-card h3 { font-size: 1.2rem; }
.proj-card .amt { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-top: auto; }
.proj-card.new { border-style: dashed; align-items: center; justify-content: center; color: var(--ink-2); font-weight: 600; }

/* ---------- Detalj ---------- */
.detail-amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: .94rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.file-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--ink-2); font-size: .75rem; padding: 6px; text-align: center; cursor: pointer; }
.file-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-tile .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; z-index: 2; font-size: 14px; line-height: 1; }
.file-tile svg { width: 30px; height: 30px; margin-bottom: 4px; }
.file-tile .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.pick-files { border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; text-align: center; color: var(--ink-3); cursor: pointer; display: block; }
.pick-files:hover { border-color: var(--steel); color: var(--steel); }
.pick-files input { display: none; }
.pick-files svg { width: 28px; height: 28px; margin: 0 auto 4px; display: block; }
.pending-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pending-files .pf { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 6px; padding: 4px 8px; font-size: .8rem; max-width: 100%; }
.pending-files .pf img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; }
.pending-files .pf button { border: 0; background: none; cursor: pointer; color: var(--ink-3); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--steel); width: 0; transition: width .3s; }

/* ---------- AI ---------- */
.ask-box { background: var(--side); color: #E6ECEE; border-radius: var(--radius-l); padding: 20px; margin-bottom: 16px; }
.ask-box h2 { color: #fff; margin-bottom: 4px; }
.ask-box p { color: #AFBBBF; }
.ask-form { display: flex; gap: 8px; margin-top: 12px; }
.ask-form input { flex: 1; min-height: 50px; border-radius: var(--radius); border: 0; padding: 0 14px; background: #fff; color: #1E272B; min-width: 0; }
.ask-sugg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ask-sugg button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E6ECEE; border-radius: 99px; padding: 6px 12px; font-size: .84rem; cursor: pointer; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--hivis); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.answer .q { font-weight: 700; margin-bottom: 6px; }
.answer .a { white-space: pre-wrap; }
.answer .srcs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.answer .srcs a { font-size: .82rem; padding: 4px 10px; border-radius: 6px; background: var(--steel-soft); color: var(--steel); text-decoration: none; font-weight: 600; }
.scan-preview { display: grid; gap: 14px; }
@media (min-width: 700px) { .scan-preview { grid-template-columns: 200px 1fr; } }
.scan-preview .orig { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); max-height: 320px; background: var(--surface-2); }
.scan-preview .orig img { width: 100%; object-fit: contain; max-height: 320px; }
.notice { padding: 10px 14px; border-radius: var(--radius-s); background: var(--warn-soft); color: var(--warn); font-size: .9rem; margin-bottom: 12px; }
.notice.info { background: var(--steel-soft); color: var(--steel); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--hivis); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { padding: 60px 0; }

/* bilješke */
.notes-grid { columns: 1; column-gap: 12px; }
@media (min-width: 700px) { .notes-grid { columns: 2; } }
@media (min-width: 1100px) { .notes-grid { columns: 3; } }
.note-card { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; cursor: pointer; }
.note-card.pinned { border-color: var(--hivis); box-shadow: inset 0 3px 0 var(--hivis); }
.note-card h3 { margin-bottom: 6px; }
.note-card .b { white-space: pre-wrap; color: var(--ink-2); font-size: .93rem; max-height: 220px; overflow: hidden; }
.note-card img { border-radius: 6px; margin-top: 8px; max-height: 160px; object-fit: cover; width: 100%; }

.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.more-grid a svg { width: 26px; height: 26px; color: var(--steel); }
.more-grid a span { font-weight: 400; color: var(--ink-3); font-size: .82rem; }

.home-hero { background: linear-gradient(160deg, var(--steel), color-mix(in srgb, var(--steel) 60%, var(--side))); color: #fff; border-radius: var(--radius-l); padding: 22px; margin-bottom: 16px; }
.home-hero h1 { color: #fff; }
.home-hero p { color: rgba(255,255,255,.8); margin: 6px 0 0; }

/* ---------- Ikone kategorija ---------- */
.cico { --cc: var(--steel); width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; flex: none;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, var(--surface)); }
.cico svg { width: 21px; height: 21px; }
.cico.xs { width: 22px; height: 22px; border-radius: 6px; background: none; }
.cico.xs svg { width: 17px; height: 17px; }
.cat-lbl { display: inline-flex; align-items: center; gap: 4px; }
.ico-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.ico-pick button { border: 2px solid transparent; border-radius: 13px; background: none; padding: 1px; cursor: pointer; display: grid; place-items: center; }
.ico-pick button.on { border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cico { color: color-mix(in srgb, var(--cc) 70%, white); background: color-mix(in srgb, var(--cc) 22%, var(--surface)); } }
:root[data-theme="dark"] .cico { color: color-mix(in srgb, var(--cc) 70%, white); background: color-mix(in srgb, var(--cc) 22%, var(--surface)); }

/* ---------- Logo ---------- */
.brand-logo { height: 30px; width: auto; display: block; }
.side .brand .brand-logo { height: 32px; }
.auth-brand .brand-logo { height: 36px; }
.brand-logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo.on-light { display: none; } :root:not([data-theme="light"]) .brand-logo.on-dark { display: block; } }
:root[data-theme="dark"] .brand-logo.on-light { display: none; } :root[data-theme="dark"] .brand-logo.on-dark { display: block; }

/* ---------- Admin ---------- */
.admin { min-height: 100vh; background: var(--paper); }
.admin-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.admin-top { background: var(--side); color: #fff; padding-top: env(safe-area-inset-top); }
.admin-top > div.admin-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-badge { background: var(--hivis); color: #fff; font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 99px; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs a { color: #B9C4C8; text-decoration: none; font-weight: 600; padding: 12px 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.admin-tabs a.on { color: #fff; border-bottom-color: var(--hivis); }
.admin-wrap.admin-main { padding-top: 22px; padding-bottom: 60px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(5, 1fr); } .admin-wrap { padding: 0 32px; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.kpi b { font-family: var(--font-head); font-size: 1.6rem; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi small { color: var(--ink-3); font-size: .8rem; }
.sys-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.sys-row:last-child { border-bottom: 0; }
.sys-row .grow { flex: 1; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; font-weight: 700; flex: none; }
.admin-save { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; }
@media (max-width: 600px) { .hide-s { display: none; } }
.side .side-foot .side-admin { margin-left: auto; font-size: .78rem; padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); text-decoration: none; }
.row > svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }

/* SEO sadržaj prije učitavanja JS-a (isti tekst kao početna) */
.seo-pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Pravila */
.legal-body { background: var(--paper); }
.legal-top { background: var(--side); padding: calc(14px + env(safe-area-inset-top)) 0 14px; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.legal-top .legal-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legal { padding-top: 28px; padding-bottom: 40px; }
.legal h1 { margin-bottom: 8px; }
.legal-meta { color: var(--ink-3); font-size: .92rem; }
.legal section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 18px; scroll-margin-top: 16px; }
.legal h2 { margin-bottom: 10px; }
.legal h3 { font-size: 1rem; margin: 18px 0 4px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; max-width: 75ch; }
.legal ul { padding-left: 20px; }
.legal-table { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.legal table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 620px; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.land-foot a { color: inherit; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin: 4px 0 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.legal-mini { font-size: .75rem; color: var(--side-ink); opacity: .7; padding: 10px 8px 0; }
.legal-mini a { color: inherit; }

/* ---------- AI dizajn ---------- */
.design-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.design-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.design-card:hover { border-color: var(--ink-3); }
.dc-img { aspect-ratio: 4/3; background: var(--surface-2); position: relative; }
.dc-img img { width: 100%; height: 100%; object-fit: cover; }
.dc-badge { position: absolute; top: 10px; left: 10px; background: var(--hivis); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.dc-body { padding: 12px 14px 14px; display: grid; gap: 2px; }
.dc-body span { color: var(--ink-3); font-size: .85rem; }
.design-empty { text-align: center; padding: 40px 20px; }
.design-empty .cico { --cc: var(--hivis) !important; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 12px; }
.design-empty .cico svg { width: 28px; height: 28px; }
.design-empty h3 { margin-bottom: 6px; } .design-empty .btn { margin-top: 12px; }
.design-head { display: grid; gap: 16px; }
@media (min-width: 800px) { .design-head { grid-template-columns: 340px 1fr; align-items: start; } }
.dh-img { border: 0; padding: 0; background: var(--surface-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.dh-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.design-form { margin-top: 16px; }
.design-form h2 { margin-bottom: 14px; }
.idea-grid { display: grid; gap: 8px; }
@media (min-width: 800px) { .idea-grid { grid-template-columns: repeat(3, 1fr); } }
.idea { position: relative; cursor: pointer; }
.idea input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; }
.idea span { display: block; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px; }
.idea b { display: block; margin-bottom: 4px; } .idea small { color: var(--ink-3); font-size: .85rem; line-height: 1.4; display: block; }
.idea input:checked + span { border-color: var(--hivis); background: color-mix(in srgb, var(--hivis) 6%, var(--surface)); }
.idea input:focus-visible + span { outline: 3px solid var(--hivis); }
.chip-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hivis); vertical-align: middle; margin-left: 3px; }
.chip.on .chip-dot { background: #fff; }
.gen-wait { text-align: center; color: var(--ink-3); padding: 10px 0 0; }
.design-result { margin-top: 16px; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.cmp { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); user-select: none; }
.cmp img { width: 100%; display: block; }
.cmp .cmp-after { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--x)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.cmp-line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-l, .cmp-r { position: absolute; top: 10px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 99px; pointer-events: none; }
.cmp-l { left: 10px; } .cmp-r { right: 10px; }
.dr-summary { margin-top: 14px; font-size: 1.02rem; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); background: var(--surface-2); padding: 4px 10px 4px 4px; border-radius: 99px; }
.sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.tips { margin-top: 12px; } .tips p { color: var(--ink-2); margin: 6px 0; }

.quota-line { text-align: center; font-size: .86rem; color: var(--ink-3); margin: 8px 0 0; }
.quota-pill { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }

/* ---------- Povezani servisi / Schematik ---------- */
.svc { display: flex; align-items: center; gap: 14px; }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; flex: none; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-body { flex: 1; min-width: 0; } .svc-body b { display: block; } .svc-body span { font-size: .88rem; color: var(--ink-3); }
.sk-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.sk-img { aspect-ratio: 4/3; border: 1px solid var(--line); background: #fff; border-radius: 10px; overflow: hidden; padding: 0; cursor: zoom-in; display: grid; place-items: center; color: var(--ink-3); }
.sk-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; image-rendering: auto; }
.sk-img svg { width: 40px; height: 40px; }
.sk-body { display: grid; gap: 2px; padding: 0 4px; } .sk-body span { font-size: .82rem; color: var(--ink-3); }
.lightbox img[src$=".svg"], .lightbox img[src*="svg"] { background: #fff; }

.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; gap: 10px; }
.btn-google:hover { border-color: #c0c4c9; background: #f8f9fa; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .82rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint svg, .muted.small svg { width: 14px; height: 14px; vertical-align: -2px; }

.m2-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-2); }
.m2-row span:first-child { font-weight: 700; color: var(--ink); }

.lightbox .lb-img img { background: #fff; border-radius: 6px; }

/* ---------- Jezik ---------- */
.land-nav-r { display: flex; align-items: center; gap: 10px; }
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.lang-sw a { font: 600 12px/1 var(--font-body); letter-spacing: .04em; color: rgba(255,255,255,.75); text-decoration: none; padding: 7px 9px; border-radius: 99px; }
.lang-sw a:hover { color: #fff; }
.lang-sw a.on { background: #fff; color: #283543; }
.lang-sw.foot { background: transparent; border-color: var(--line); }
.lang-sw.foot a, .lang-sw.lang-seg a { color: var(--ink-3); }
.lang-sw.foot a.on, .lang-sw.lang-seg a.on { background: var(--ink); color: var(--surface); }
.lang-sw.lang-seg { background: var(--surface-2); border-color: var(--line); }
.lang-sw.lang-seg a { padding: 9px 14px; font-size: 13px; }
@media (max-width: 420px) { .land-nav .lang-sw a { padding: 6px 7px; } }
.legal-note { background: var(--steel-soft); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-size: .92rem; }
.legal-top .lang-sw { margin-right: 4px; }

/* ---------- Javne stranice: pomoć i kontakt ---------- */
.pub-link { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 6px; }
.pub-link:hover, .pub-link.on { color: #fff; }
.pub-link.on { box-shadow: inset 0 -2px 0 var(--hivis); }
@media (max-width: 640px) { .legal-top .land-nav-r { gap: 6px; } }
@media (max-width: 380px) { .legal-top .brand-logo { height: 26px; } }
.legal-wrap.pub-help, .legal-wrap.pub-contact { max-width: 980px; }
.pub-hero { padding: 6px 0 4px; }
.pub-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); letter-spacing: -.02em; margin-bottom: 8px; }
.pub-hero .lead { color: var(--ink-2); font-size: 1.06rem; max-width: 62ch; margin: 0 0 18px; }
.pub-hero .lead:has(+ .pub-facts) { margin-bottom: 12px; }
.pub-hero .pub-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.pub-hero .pub-facts li { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 10px; }
.pub-facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--hivis); }
.pub-search { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 14px; min-height: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); }
.pub-search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.pub-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); min-width: 0; outline: none; }
.help-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 22px 0 6px; }
.help-toc a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.help-toc a:hover { border-color: var(--hivis); transform: translateY(-1px); }
.help-toc .n, .help-sec h2 .n { font: 700 .78rem/1 var(--font-body); color: var(--hivis); font-variant-numeric: tabular-nums; }
.help-toc b { font-family: var(--font-head); font-size: 1rem; }
.help-toc small { grid-column: 2; color: var(--ink-3); font-size: .84rem; line-height: 1.35; margin-top: 3px; }
.help-toc a[hidden], .help-sec[hidden], .help-faq details[hidden] { display: none; }
.help-none { color: var(--ink-2); padding: 14px 0; }
.help-sec h2 { display: flex; align-items: baseline; gap: 10px; }
.help-sub { color: var(--ink-3) !important; margin: -4px 0 10px; font-size: .95rem; }
.legal ol { padding-left: 20px; } .legal ol li { margin-bottom: 6px; }
.help-top { display: inline-block; margin-top: 10px; font-size: .84rem; color: var(--ink-3); text-decoration: none; }
.help-faq details { border-top: 1px solid var(--line); }
.help-faq details:first-of-type { border-top: 0; }
.help-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--ink-3); font-weight: 400; }
.help-faq details[open] summary::after { content: '−'; }
.help-faq details p { margin: -4px 0 14px; }
.pub-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: 16px; background: var(--side); color: #fff; }
.pub-cta h2 { color: #fff; margin-bottom: 4px; } .pub-cta p { color: var(--side-ink); margin: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form, .contact-ok, .cs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .contact-form .row2 { grid-template-columns: 1fr; } }
.contact-form textarea { min-height: 160px; }
.contact-form .hint { margin-top: 10px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 12px; }
.cs-card h2 { font-size: 1.1rem; margin-bottom: 6px; } .cs-card p { margin: 0 0 12px; }
.cs-dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: .95rem; }
.cs-dl dt { color: var(--ink-3); font-size: .8rem; margin-top: 12px; } .cs-dl dt:first-child { margin-top: 0; } .cs-dl dd { margin: 0; font-weight: 600; overflow-wrap: break-word; }
.contact-ok { text-align: center; padding: 36px 20px; }
.ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; margin: 0 auto 12px; }
.ok-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* admin: poruke */
.msg-list { display: grid; gap: 12px; }
.msg header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.msg.unread { border-left: 3px solid var(--hivis); }
.msg-body { white-space: pre-wrap; color: var(--ink); margin: 0 0 12px; line-height: 1.55; }
.seg-links { display: flex; gap: 6px; }
.seg-links .chip { text-decoration: none; color: inherit; }
.seg-links .chip.on { color: var(--paper); }
/* pregled: statistika */
.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kpi-t { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-t span { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.kpi-t b { font-family: var(--font-head); font-size: 1.45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-t small { color: var(--ink-3); font-size: .78rem; line-height: 1.35; }
.kpi-t em { font-style: normal; font-weight: 700; }
.kpi-t em.up { color: var(--warn); } .kpi-t em.down { color: var(--ok); }
.kpi-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.kpi-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.sec-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .sec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-kpis div { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; }
.sec-kpis b { font-family: var(--font-head); font-size: 1.4rem; } .sec-kpis span { font-size: .78rem; color: var(--ink-3); }
/* obavijesti */
.push-box { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.push-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.push-box .check { margin-top: 10px; }
/* admin: funkcije */
.feat-list { display: grid; gap: 10px; }
.feat { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feat h3 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feat p { grid-column: 1; margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.feat .feat-meta { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-3); }
.feat .switch { grid-row: 1 / span 2; grid-column: 2; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.code-box { display: flex; gap: 8px; align-items: center; }
.code-box input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.bench-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.bench-grid div { background: var(--surface-2); border-radius: var(--radius-s); padding: 8px 10px; font-size: .82rem; }
.bench-grid b { display: block; font-size: 1.05rem; font-family: var(--font-head); }
@media (max-width: 640px) { .bench-grid { grid-template-columns: 1fr; } }
.bench-row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--ink-2); align-items: baseline; }
.bench-row b { color: var(--ink); }
.bench-row .good { color: var(--ok); font-weight: 700; } .bench-row .high { color: var(--warn); font-weight: 700; }
/* ---------- Kalkulator troškova gradnje ---------- */
.legal-wrap.pub-calc { max-width: 1080px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; margin-top: 18px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-form, .calc-out { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.calc-out { position: sticky; top: 16px; }
@media (max-width: 900px) { .calc-out { position: static; } }
.calc .seg-wrap { flex-wrap: wrap; }
.calc .seg-wrap label { flex: 1 1 auto; }
.calc .seg-cards span { display: flex; flex-direction: column; gap: 2px; padding: 9px 6px; line-height: 1.2; }
.calc .seg-cards small { font-weight: 500; font-size: .72rem; color: var(--ink-3); }
.calc-area { display: flex; align-items: center; gap: 14px; }
.calc-area input[type=range] { flex: 1; accent-color: var(--hivis); min-width: 0; }
.calc-num { display: flex; align-items: center; gap: 8px; }
.calc-num .input { width: 120px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-align: right; }
.calc-num b { color: var(--ink-3); font-weight: 600; }
.calc-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; font-weight: 600; background: var(--surface); color: var(--ink-2); }
.chip-check input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.calc .hidden { display: none !important; }
.calc-total { background: var(--side); color: #fff; border-radius: 12px; padding: 18px 20px; margin: -4px -4px 14px; }
.calc-total > span { font-size: .82rem; color: var(--side-ink); font-weight: 600; }
.calc-total > b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.1; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.calc-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--side-ink); }
.calc-bench { background: var(--steel-soft); color: var(--steel); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.calc-group { margin-bottom: 14px; }
.cg-head { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cg-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 0 6px; font-size: .88rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.cg-amt { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cg-row i { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.cg-row i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--c); border-radius: 99px; }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.calc-res div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.calc-res span { font-size: .78rem; color: var(--ink-3); } .calc-res b { font-family: var(--font-head); font-size: 1.15rem; }
.calc-cta { border-top: 1px solid var(--line); padding-top: 14px; }
.calc-cta h2 { font-size: 1.1rem; margin-bottom: 4px; } .calc-cta p { margin: 0 0 12px; }
.calc-notes { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 18px; }
.print-head, .print-inputs, .print-foot { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html, body { background: #fff !important; }
  .legal-top, .land-foot, .calc-form, .calc-cta, .help-faq, .pub-search, .calc-notes, .pub-hero .lead, .calc-bench, .cookie-bar, .tm-toast { display: none !important; }
  .pub-hero, .pub-facts { display: none !important; }
  .print-head { display: flex !important; align-items: center; justify-content: space-between; border-bottom: 2px solid #DA6243; padding-bottom: 8px; margin-bottom: 10px; }
  .print-head div { text-align: right; display: flex; flex-direction: column; font-size: 9pt; color: #4A565B; }
  .print-head b { font-size: 11pt; color: #26323A; }
  .print-inputs { display: block !important; margin: 0 0 10px; break-inside: avoid; }
  .print-inputs h2 { font-size: 10pt; margin: 0 0 4px; color: #4A565B; text-transform: uppercase; letter-spacing: .04em; }
  .print-inputs dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0; font-size: 9.5pt; }
  .print-inputs dt { color: #7D888C; } .print-inputs dd { margin: 0; font-weight: 600; color: #26323A; }
  .calc { display: block !important; } .calc-out { position: static !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; background: none !important; }
  .calc-total { background: #F5F6F3 !important; color: #26323A !important; border: 1px solid #D6DAD5; margin: 0 0 10px !important; padding: 10px 14px !important; break-inside: avoid; }
  .calc-total > span, .calc-sub, .calc-sub span { color: #4A565B !important; }
  .calc-total > b { font-size: 20pt !important; color: #26323A !important; }
  .calc-group { break-inside: avoid; margin-bottom: 8px; }
  .cg-head { font-size: 10pt; padding: 3px 0; }
  .cg-row { font-size: 9pt; padding: 2px 0; color: #26323A; } .cg-row i { display: none; }
  .calc-res { break-inside: avoid; gap: 8px; margin: 6px 0 0; } .calc-res div { background: #F5F6F3 !important; border: 1px solid #D6DAD5; padding: 6px 10px; }
  .print-foot { display: block !important; font-size: 8pt; color: #7D888C; border-top: 1px solid #D6DAD5; padding-top: 6px; margin-top: 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.legal-top .legal-wrap > a { flex: none; }
/* Izbornik javnih stranica i naslovnice: na širem zaslonu poveznice, na mobitelu sve iste stavke u izborniku */
.pub-links { display: flex; gap: 14px; align-items: center; }
.pub-menu { display: none; position: relative; }
.pub-menu > summary { list-style: none; cursor: pointer; color: #fff; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); }
.pub-menu > summary::-webkit-details-marker { display: none; }
.pub-menu .lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.pub-menu .lang-menu a { padding: 10px 12px; border-radius: 8px; font: 500 15px/1.2 var(--font-body); color: var(--ink); text-decoration: none; }
.pub-menu .lang-menu a:hover, .pub-menu .lang-menu a.on { background: var(--surface-2); }
.pub-menu .lang-menu a.on { font-weight: 600; }
@media (max-width: 720px) { .pub-links, .legal-top .pub-open, .land-nav .land-link.nav-wide { display: none !important; } .pub-menu { display: block; } .legal-top .brand-logo { height: 26px; } }

/* Odabir jezika — kompaktni padajući izbornik */
.lang-dd { position: relative; display: inline-block; }
.lang-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; font: 600 12px/1 var(--font-body); letter-spacing: .04em; color: rgba(255,255,255,.85); padding: 8px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary:hover { color: #fff; background: rgba(255,255,255,.14); }
.lang-dd > summary .chev { opacity: .7; transition: transform .15s; }
.lang-dd[open] > summary .chev { transform: rotate(180deg); }
.lang-dd .lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 168px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.lang-dd .lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font: 500 14px/1.2 var(--font-body); color: var(--ink); text-decoration: none; background: none; }
.lang-dd .lang-menu a b { font-size: 11px; letter-spacing: .05em; color: var(--ink-3); width: 20px; }
.lang-dd .lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-dd .lang-menu a.on { background: var(--surface-2); font-weight: 600; }
.lang-dd .lang-menu a.on::after { content: "✓"; margin-left: auto; color: var(--hivis); }
.lang-dd.foot > summary { color: var(--ink-3); border-color: var(--line); background: transparent; }
.lang-dd.foot > summary:hover { color: var(--ink); background: var(--surface-2); }
.lang-dd.foot .lang-menu { top: auto; bottom: calc(100% + 6px); }
.land-nav { z-index: 30; } .legal-top { position: relative; z-index: 30; }

/* Zaglavlje stranice u jednom redu + padajući izbornik akcija */
.page-head.ph-inline { flex-wrap: nowrap; align-items: center; }
.page-head.ph-inline h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-acts { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 899px) { .desk-only { display: none !important; } }
@media (max-width: 370px) { .head-acts .btn > span { display: none; } }
.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.dd-menu button, .dd-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 .92rem/1.2 var(--font-body); text-align: left; cursor: pointer; text-decoration: none; }
.dd-menu button:hover, .dd-menu a:hover { background: var(--surface-2); }
.dd-menu svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
/* Filteri */
.toolbar .search { min-width: 0; }
.flt-btn { min-height: 42px; flex: none; }
.flt-btn.on { border-color: var(--hivis); }
.flt-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--hivis); color: #fff; font-size: .75rem; }
.filters.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.filters.f-grid[hidden] { display: none; }
.filters.f-grid select, .filters.f-grid input { width: 100%; min-width: 0; color: var(--ink); }
.f-date { position: relative; display: block; min-width: 0; }
.f-date > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .78rem; font-weight: 600; color: var(--ink-3); pointer-events: none; }
.filters.f-grid .f-date input { padding-left: 38px; }
.filters.f-grid #clr { justify-self: start; }
@media (max-width: 599px) { .sum-strip { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 20px; row-gap: 6px; } }
.row .ico svg { width: 20px; height: 20px; color: var(--steel); }
.mem-role { width: auto; min-height: 36px; }
@media (max-width: 599px) {
  .mem-row { flex-wrap: wrap; row-gap: 8px; }
  .mem-row .mem-role { order: 3; flex: 1 1 100%; margin-left: 52px; max-width: calc(100% - 52px); }
}
.wrap-titles .row .title { white-space: normal; overflow-wrap: anywhere; }
.map-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: .85rem; font-weight: 600; color: var(--steel); text-decoration: none; white-space: nowrap; }
.map-link svg { width: 15px; height: 15px; }
.map-link:hover { text-decoration: underline; }
.dash-addr { display: flex; align-items: center; gap: 6px; margin: 0 2px 12px; font-size: .88rem; color: var(--ink-3); min-width: 0; }
.dash-addr > svg { width: 16px; height: 16px; flex: none; }
.dash-addr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dash-addr .map-link { margin-left: 2px; }
.more-h { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 18px 2px 8px; font-family: var(--font-body); }
.more-grid a { position: relative; }
.ai-badge { position: absolute; top: 12px; right: 12px; background: var(--hivis); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 3px 7px; border-radius: 99px; line-height: 1; }
.act-row .meta { white-space: normal; }
.act-del .title { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-2); }
/* Dokumenti — kartice sa sličicom */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .doc-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.doc-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .15s, transform .15s; }
.doc-card:hover { border-color: var(--steel); transform: translateY(-1px); }
.doc-th { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.doc-th img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; background: #fff; }
.doc-th-file .cico { transform: scale(1.35); }
.doc-ext { position: absolute; left: 8px; bottom: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .05em; padding: 3px 6px; border-radius: 5px; background: var(--ink); color: var(--surface); }
.doc-body { padding: 10px 12px 12px; min-width: 0; }
.doc-title { font-weight: 600; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-meta { margin-top: 3px; font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-sheet-th { aspect-ratio: auto; height: 260px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.doc-sheet-th img { object-fit: contain; background: var(--surface-2); }
.proj-card { position: relative; }
.proj-menu { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; z-index: 1; }
.proj-menu:hover { background: var(--surface-2); color: var(--ink); }
.proj-menu svg { width: 18px; height: 18px; }
.proj-card .t { padding-right: 30px; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; } a.chip svg { width: 14px; height: 14px; }
/* Kalkulator — izbornici u jednakim stupcima, tekst se lomi unutar gumba umjesto da gumb skače u novi red */
.calc .seg, .calc .seg-wrap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.calc .seg label { min-width: 0; display: flex; }
.calc .seg span { width: 100%; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; padding: 9px 4px; overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 380px) { .calc .seg span { font-size: .84rem; } .calc .seg-cards small { font-size: .68rem; } }
.calc .btn-row .btn-ghost { border: 1px solid var(--line); }

/* Naslovnica: odjeljak s AI pomoćnicima */
.land-feats .feat { display: block; padding: 18px; border-radius: 16px; }
.land-feats .feat h3 { display: block; font-size: 1.05rem; margin: 0 0 6px; }
.land-feats .feat p { font-size: .93rem; }
.btn-col { display: grid; gap: 10px; margin: 18px 0 6px; }
.land-ai { padding: 36px 0 8px; }
.ai-head { max-width: 720px; margin-bottom: 18px; }
.ai-head h2 { font-size: 1.6rem; margin: 8px 0 6px; }
.ai-head p { color: var(--ink-2); margin: 0; }
.ai-badge-l { display: inline-block; background: var(--hivis); color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; }
.ai-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ai-card-h { display: flex; gap: 12px; align-items: flex-start; }
.ai-card-h .cico { --cc: var(--hivis) !important; flex: none; }
.ai-card-h h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ai-card-h p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.chat { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 12px; }
.bub { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.4; }
.bub.q { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 4px; }
.bub.a { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-ex span { font-size: .8rem; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.ai-design { display: grid; gap: 10px; }
.ai-room { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: linear-gradient(#EFE9DF 0 66%, #B89B78 66%); }
.ar-win { position: absolute; left: 34%; top: 14%; width: 30%; height: 42%; border: 3px solid #3E4A52; background: linear-gradient(90deg, #CFE3EC 0 49%, #3E4A52 49% 51%, #CFE3EC 51%); }
.ar-sofa { position: absolute; left: 10%; bottom: 18%; width: 34%; height: 20%; background: #7A8B7F; border-radius: 8px; }
.ar-plant { position: absolute; right: 12%; bottom: 22%; width: 10%; height: 34%; background: #4F7A5A; border-radius: 50% 50% 40% 40%; }
.ar-tag { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.9); color: #26323A; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.ai-pal { display: flex; gap: 6px; }
.ai-pal i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.ai-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .88rem; line-height: 1.6; }
.scan-demo { display: grid; grid-template-columns: 1.25fr auto 1fr; align-items: center; gap: 10px; }
.rcpt { background: #fff; color: #26323A; border: 1px dashed #B9C0BD; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 3px; font-size: .72rem; font-family: ui-monospace, monospace; transform: rotate(-2deg); box-shadow: 0 8px 20px -14px rgba(0,0,0,.35); }
.rcpt hr { border: 0; border-top: 1px dashed #B9C0BD; margin: 5px 0; width: 100%; }
.rcpt .r-sub { color: #7D888C; font-size: .66rem; }
.rcpt .r-it { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.rcpt .r-it i { font-style: normal; }
.rcpt .r-it i:nth-child(2) { grid-column: 1; color: #7D888C; font-size: .66rem; }
.rcpt .r-it i:nth-child(2):empty { display: none; }
.rcpt .r-it i:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
.rcpt .r-tot { display: flex; justify-content: space-between; font-size: .82rem; margin: 4px 0 2px; }
.rcpt .r-tot i { font-style: normal; }
.rcpt b { font-size: .78rem; }
.rcpt em { font-style: normal; font-weight: 700; margin-top: 4px; }
.scan-arrow { color: var(--hivis); font-weight: 700; font-size: 1.3rem; }
.scan-out { display: flex; flex-direction: column; gap: 9px; font-size: .85rem; font-weight: 600; }
.scan-out small { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-3); }
.steps-list { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps-list { grid-template-columns: repeat(4, 1fr); } }

/* Prije / poslije */
.ba { position: relative; aspect-ratio: 8 / 5; border-radius: 12px; overflow: hidden; user-select: none; touch-action: pan-y; background: #b3aea6; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.ba-handle i::before, .ba-handle i::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border: 5px solid transparent; }
.ba-handle i::before { left: 6px; border-right-color: #3e4a52; }
.ba-handle i::after { right: 6px; border-left-color: #3e4a52; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-l { position: absolute; top: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; pointer-events: none; }
.ba-l1 { left: 10px; background: rgba(38,50,58,.75); color: #fff; }
.ba-l2 { right: 10px; background: rgba(255,255,255,.9); color: #26323a; }
.ba-tag { font-size: .8rem; font-weight: 600; color: var(--ink-2); }

.play-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 16px 9px 12px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.3); }
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: .98rem; }
.play-btn small { font-weight: 500; font-size: .7rem; opacity: .8; }
/* U Android aplikaciji: bez web-only stvari */
.in-app .play-btn { display: none; }
@media (max-width: 420px) { .sum-strip { font-size: .8rem; column-gap: 14px; } .sum-strip b { white-space: nowrap; } }

/* Naslovnica: pozivi na akciju umjesto obrasca; prijava na zasebnoj stranici */
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1.02rem; border-radius: 12px; }
.land-cta-2 { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.land-cta-2:hover { background: rgba(255,255,255,.08); color: #fff; }
.land-note { margin: 12px 0 0; font-size: .85rem; color: #93A1A7; }
@media (min-width: 960px) { .land-grid.is-landing { grid-template-columns: 1.1fr .9fr; grid-template-areas: "copy demo"; align-items: center; padding: 24px 0 36px; } .land-grid.is-landing .land-copy { align-self: center; } .land-grid.is-landing .demo { margin-top: 0; justify-self: end; width: 100%; } }
.auth-page { min-height: 100vh; min-height: 100dvh; background: var(--side); display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.auth-nav { width: 100%; margin-bottom: 18px; }
.auth-nav a { display: inline-flex; }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; }
.auth-card { width: 100%; max-width: 420px; margin-top: clamp(0px, 6vh, 60px); }
.auth-foot { margin: 18px 0 0; font-size: .85rem; color: #93A1A7; text-align: center; }
.auth-foot a { color: #C9D2D5; }

/* Admin: tablica paketa */
.plan-edit { display: grid; gap: 8px; overflow-x: auto; }
.pe-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(110px, 1fr)); gap: 8px; align-items: center; min-width: 520px; }
.pe-row > span:first-child { font-size: .85rem; color: var(--ink-2); }
.pe-row .input { width: 100%; min-height: 36px; padding: 6px 9px; }
.pe-head .input { font-weight: 700; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 520px) { .plan-pick { grid-template-columns: 1fr 1fr; } .plan-pick .btn { grid-column: 1 / -1; } }

/* Paketi */
.land-plans { padding: 40px 0 8px; }
.land-plans h2 { font-size: 1.6rem; margin-bottom: 6px; }
.land-plans > .land-wrap > p { margin: 0 0 18px; }
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan:not(.pill) { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; }
.plan-pop { border: 2px solid var(--hivis); box-shadow: 0 18px 40px -24px rgba(218, 98, 67, .55); }
.plan-cur { outline: 2px solid var(--steel); }
.plan-badge { position: absolute; top: -11px; left: 18px; background: var(--hivis); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan-tag { margin: 0; color: var(--ink-3); font-size: .88rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.plan-price b { font-family: var(--font-head); font-size: 2rem; letter-spacing: -.02em; }
.plan-price span { color: var(--ink-3); font-size: .88rem; }
.plan-year { margin: 0; font-size: .82rem; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 7px; font-size: .9rem; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.usage { display: grid; gap: 10px; }
.use-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .9rem; }
.use-row i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.use-row i em { display: block; height: 100%; background: var(--steel); border-radius: 3px; }
.use-row small { color: var(--ink-3); text-align: right; }
.plan > .pill { align-self: flex-start; }

/* Paketi — sažetak na naslovnici i zasebna stranica */
.land-plans-teaser { padding: 32px 0 8px; }
.plt { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.plt h2 { font-size: 1.3rem; margin: 0 0 4px; }
.plt p { margin: 0; color: var(--ink-2); max-width: 640px; }
.plt .btn { flex: none; }
.plans-main { padding: 28px 16px 40px; max-width: 1100px; }
.plans-main h1 { margin: 8px 0 6px; }
.plans-lead { margin: 0 0 20px; }
.plans-faq { margin: 28px 0 0; display: grid; gap: 8px; max-width: 760px; }
.plans-faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.plans-faq summary { cursor: pointer; font-weight: 600; }
.plans-faq p { margin: 8px 0 0; color: var(--ink-2); }
.plans-page .land-nav-r { display: flex; gap: 8px; align-items: center; }
.up-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.up-head p { margin: 2px 0 0; }
.plans-main h1 { color: #fff; }
.plans-main .plans-lead { color: #C9D2D5; }
.plt-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plt-list li { font-size: .82rem; background: var(--steel-soft); color: var(--steel); border-radius: 999px; padding: 4px 10px; }
.consent.remember { margin: -4px 0 14px; }
.consent.remember small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }
.scan-out .scan-ok { color: var(--ok); font-size: .8rem; font-weight: 600; }

/* Budžet u stavkama */
.budget-list .row { gap: 10px; }
.budget-list .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.budget-list .num.neg { color: var(--bad); }
.budget-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 4px; border-top: 2px solid var(--line); margin-top: 4px; }
.budget-total b { font-family: var(--font-head); font-size: 1.3rem; }
.budget-add { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.budget-add h3 { font-size: 1rem; margin: 0 0 10px; }
.budget-btn { justify-content: space-between; }
.bud-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }

/* Izvori u odgovoru AI asistenta — dodir otvara datoteku */
.src-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.src-card { display: flex; align-items: stretch; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.src-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.src-main:hover { background: var(--surface-2); }
.src-th { width: 46px; height: 46px; flex: none; border-radius: 8px; background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; overflow: hidden; }
.src-th.img img { width: 100%; height: 100%; object-fit: cover; }
.src-th svg { width: 22px; height: 22px; }
.src-ext { font: 700 .7rem/1 var(--font-body); letter-spacing: .04em; }
.src-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.src-txt small { color: var(--ink-3); font-size: .74rem; }
.src-txt b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-txt .num { font-size: .82rem; color: var(--ink-2); }
.src-open { flex: none; font-size: .8rem; font-weight: 600; color: var(--steel); padding: 6px 10px; border-radius: 99px; background: var(--steel-soft); }
.src-more { align-self: center; margin-right: 4px; }
.src-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* AI dizajn — čarobnjak korak po korak */
.wizard { margin-top: 16px; }
#wizS .wizard { margin-top: 0; border: 0; padding: 0; }
.wz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wz-steps { display: flex; gap: 6px; flex: 1; max-width: 260px; }
.wz-steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-2); }
.wz-steps i.done { background: var(--steel); } .wz-steps i.on { background: var(--hivis); }
.wz-t { font-size: 1.25rem; margin: 0 0 4px; } .wz-sub { margin: 0 0 14px; }
.wz-opts { display: grid; gap: 8px; margin: 12px 0 6px; }
.wz-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .wz-grid { grid-template-columns: repeat(3, 1fr); } .wz-cards { grid-template-columns: repeat(3, 1fr); } }
.wz-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-height: 52px; justify-content: center; }
.wz-opt:hover { border-color: var(--steel); }
.wz-opt.on { border-color: var(--hivis); background: color-mix(in srgb, var(--hivis) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--hivis); }
.wz-opt b { font-size: .98rem; } .wz-opt small { color: var(--ink-2); font-size: .84rem; line-height: 1.35; }
.wz-opt .wz-rec { color: var(--hivis); font-weight: 600; font-size: .76rem; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.wz-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.wz-sum span { background: var(--steel-soft); color: var(--steel); border-radius: 99px; padding: 5px 11px; font-size: .84rem; font-weight: 600; }
.gen-busy { margin-top: 16px; display: flex; gap: 16px; align-items: flex-start; }
.gen-busy .spinner { flex: none; margin: 4px 0 0; }
.gen-busy h2 { margin: 0 0 4px; } .gen-busy p { margin: 0 0 12px; }
.older-res { margin-top: 16px; }
.older-res > summary { cursor: pointer; font-weight: 600; padding: 12px 4px; color: var(--ink-2); }
.dc-busy { color: var(--hivis); font-weight: 600; }
@media (max-width: 799px) { .dh-img img { aspect-ratio: 16/9; } }

/* Pregled: prvi koraci i sažetiji prikaz */
.start-list { margin-bottom: 16px; }
.start-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: -4px 0 14px; }
.start-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.start-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.start-grid > .start-item { flex: 1 1 100%; min-width: 0; }
@media (min-width: 700px) { .start-grid > .start-item { flex-basis: calc(50% - 4px); } }
@media (min-width: 1100px) { .start-grid > .start-item { flex-basis: calc(25% - 6px); } }
.start-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.start-item:hover:not(.done) { border-color: var(--steel); }
.start-item b { display: block; font-size: .95rem; } .start-item small { color: var(--ink-3); font-size: .8rem; line-height: 1.3; display: block; }
.start-item .si-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--steel-soft); color: var(--steel); }
.start-item .si-ico svg { width: 20px; height: 20px; }
.start-item.done { opacity: .6; cursor: default; } .start-item.done b { text-decoration: line-through; }
.start-item.done .si-ico { background: var(--ok-soft); color: var(--ok); }
.hero-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.hero-more > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 8px 0 4px; list-style: none; display: flex; align-items: center; gap: 6px; }
.hero-more > summary::-webkit-details-marker { display: none; }
.hero-more > summary::after { content: '▾'; font-size: .8em; transition: transform .15s; }
.hero-more[open] > summary::after { transform: rotate(180deg); }
.hero-more .m2-row { margin-top: 6px; }
@media (max-width: 799px) { .tape-ticks { display: none; } .hero { padding: 16px 16px 14px; } .tape-legend { gap: 10px 12px; margin-top: 12px; } }

/* Donji izbornik (podnožje) u jednom redu i na mobitelu */
.foot-links a { white-space: nowrap; }
@media (max-width: 640px) {
  .foot-links { flex-wrap: nowrap; width: 100%; justify-content: space-between; gap: clamp(6px, 2vw, 10px); font-size: clamp(.66rem, 2.85vw, .8rem); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .foot-links::-webkit-scrollbar { display: none; }
}

.with-purchase { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; color: var(--ink-2); }
.with-purchase svg { width: 16px; height: 16px; flex: none; color: var(--steel); }
.with-purchase b { color: var(--ink); }

.calc-offer { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; margin: 0 0 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.calc-offer > svg { width: 22px; height: 22px; color: var(--steel); flex: none; }
.calc-offer div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.calc-offer b { font-size: .92rem; } .calc-offer span { font-size: .82rem; color: var(--ink-3); }

.small > svg, .muted > svg { width: 14px; height: 14px; vertical-align: -2px; }

/* admin: cijene kalkulatora */
.calc-tbl-wrap { overflow-x: auto; margin: 10px 0; }
.calc-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.calc-tbl th { text-align: left; font-size: .78rem; color: var(--steel); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.calc-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.calc-tbl td.hide-s { white-space: normal; max-width: 280px; }
.calc-tbl input[type=text] { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.calc-tbl input:disabled { opacity: .5; }
.calc-tbl b.up { color: var(--bad, #b5452f); } .calc-tbl b.down { color: var(--ok, #2e7d4f); }
.calc-sum { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.calc-src { margin: 8px 0; font-size: .88rem; } .calc-src ul { margin: 6px 0 0 18px; padding: 0; } .calc-src li { margin: 2px 0; word-break: break-all; }
/* jamstvo uz račun */
.warr { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.warr-toggle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.warr-box { margin-top: 10px; }
.doc-by { opacity: .75; font-size: .78rem; }

/* Duge riječi (njemački) — dijeljenje na slogove umjesto lomljenja usred riječi */
.row .title, .more-grid a, h1, h2, h3, .doc-title, .chip, .seg span, .feat h3 { overflow-wrap: break-word; }
:lang(de) .row .title, :lang(de) .more-grid a, :lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .doc-title, :lang(de) .seg span, :lang(de) .feat h3 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
.more-grid a { min-width: 0; }
/* Pravne tablice na mobitelu: kartice umjesto vodoravnog pomicanja */
@media (max-width: 640px) {
  .legal-table { overflow: visible; border: 0; }
  .legal table { min-width: 0; }
  .legal table thead { display: none; }
  .legal table, .legal table tbody, .legal table tr, .legal table td { display: block; width: 100%; }
  .legal table tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
  .legal table td { border: 0 !important; padding: 3px 0 !important; }
  .legal table td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
  .legal table td:first-child { font-weight: 600; }
  .legal table td:first-child::before { display: none; }
}
.legal td { overflow-wrap: normal; word-break: normal; }
/* Uski ekrani: manji razmaci u redovima s gumbima, da naziv ima mjesta */
@media (max-width: 420px) {
  .row { gap: 10px; }
  .row .icon-btn { width: 36px; height: 36px; }
  .row .icon-btn + .icon-btn { margin-left: -6px; }
  .row .icon-btn svg { width: 20px; height: 20px; }
}
.nw { white-space: nowrap; }
/* Datumska polja u dva stupca ne smiju izaći iz okvira na mobitelu */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 > * { min-width: 0; }
input[type=date], input[type=datetime-local], input[type=month] { min-width: 0; max-width: 100%; width: 100%; }
/* Moj dom zaglavlje u tamnoj temi — tamnija pozadina radi kontrasta s bijelim tekstom */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-hero { background: linear-gradient(160deg, #2C5366, #1A2C35); } }
:root[data-theme="dark"] .home-hero { background: linear-gradient(160deg, #2C5366, #1A2C35); }
/* Traka „Temelino za Android” (samo Android preglednik, javne stranice) */
.playbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); font-size: .85rem; line-height: 1.25; }
.playbar[hidden] { display: none; }
.playbar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.playbar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.playbar b { font-weight: 700; }
.playbar span { color: var(--ink-3); font-size: .78rem; }
.playbar-go { flex: none; background: var(--hivis); color: #fff; font-weight: 700; text-decoration: none; padding: 7px 14px; border-radius: 99px; }
.playbar-x { flex: none; border: 0; background: transparent; color: var(--ink-3); font-size: 1.4rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
/* Google Play poveznica u podnožju */
.foot-play { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 10px; background: #000; color: #fff !important; text-decoration: none !important; font-size: .82rem; line-height: 1.1; border: 1px solid rgba(255,255,255,.25); }
.foot-play small { display: block; font-size: .64rem; opacity: .8; font-weight: 500; }
.foot-play b { font-weight: 700; }
.foot-play svg { flex: none; }
.in-app .foot-play, .in-app .acc-play { display: none !important; }
.land-foot .foot-end { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.land-app { padding: 8px 0 40px; }
.lapp { flex-wrap: nowrap; }
.lapp-ico img { width: 56px; height: 56px; border-radius: 14px; display: block; }
.lapp-txt { flex: 1; min-width: 0; }
.lapp .play-btn { margin-top: 0; flex: none; }
@media (max-width: 640px) { .lapp { flex-wrap: wrap; } .lapp-ico { display: none; } .lapp .play-btn { width: 100%; justify-content: center; } }
.push-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; }
.push-stat > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.push-tbl td { vertical-align: middle; }
/* Admin → Postavke: odjeljci */
.set-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.set-chk { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font: 600 .82rem/1.2 var(--font-body); cursor: pointer; color: var(--ink-2); }
.set-chk.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.set-chk.no { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); background: var(--bad-soft); }
.set-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; }
.set-nav button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font: 600 .92rem/1.2 var(--font-body); color: var(--ink-2); cursor: pointer; }
.set-nav button svg { width: 18px; height: 18px; flex: none; color: var(--steel); }
.set-nav button:hover { background: var(--surface-2); }
.set-nav button.on { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--hivis); }
.set-nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hivis); margin-left: auto; }
.set-sec { display: none; }
.set-sec.on { display: block; }
.set-h { font-size: 1rem; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.set-sec .panel-head + .set-h, .set-sec .field + .set-h:first-child { border-top: 0; padding-top: 0; }
.set-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.set-foot .set-state { margin-right: auto; color: var(--hivis); font-weight: 600; }
.set-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.set-inline .input { flex: 1 1 220px; min-height: 38px; }
.set-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 14px; }
.set-models > div:empty, .set-models > .hidden { display: none; }
.field-narrow { max-width: 220px; }
.secret-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; }
.secret-set code { font-size: .85rem; color: var(--ink-3); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.hint-more { display: inline; }
.hint-more summary { display: inline; cursor: pointer; color: var(--steel); text-decoration: underline; }
.hint-more[open] summary { display: none; }
.set-dirty { position: sticky; bottom: 0; margin-top: 16px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.set-dirty span { margin-right: auto; font-weight: 600; color: var(--hivis); }
@media (max-width: 860px) {
  .set-layout { grid-template-columns: 1fr; gap: 12px; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-nav button { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 99px; font-size: .85rem; }
  .set-nav button.on { box-shadow: none; background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .set-nav button.on svg { color: inherit; }
  .set-nav button svg { display: none; }
}
.acc-main { max-width: 1000px; }
.set-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.set-side .set-nav { position: static; }
.set-links .row { padding: 10px 12px; }
.set-sec > .panel + .panel { margin-top: 16px; }
.set-nav button[hidden] { display: none; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); border-radius: 12px; background: var(--bad-soft); }
.set-links .row { gap: 10px; }
.set-links .row .cico { width: 30px; height: 30px; }
.set-links .row .cico svg { width: 16px; height: 16px; }
.set-links .row .title { font-size: .9rem; white-space: normal; }
@media (min-width: 861px) { .set-links .row .meta { display: none; } }

/* Izbornik postavki — kartica s redovima (korisnik i admin) */
.set-side { position: sticky; top: 12px; }
.set-menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l, 16px); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.set-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; position: relative; }
.set-item[hidden] { display: none; }
.set-item:hover { background: var(--surface-2); }
.set-item.on { background: var(--surface-2); }
.set-item.on::before { content: ''; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--hivis); }
.set-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--steel-soft); color: var(--steel); }
.set-ico svg { width: 18px; height: 18px; }
.set-item.on .set-ico { background: var(--hivis); color: #fff; }
.set-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.set-txt b { font-weight: 600; font-size: .93rem; }
.set-txt small { color: var(--ink-3); font-size: .78rem; margin-top: 1px; }
.set-item > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); flex: none; opacity: .6; }
.set-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hivis); flex: none; }
.set-item .dot.hidden { display: none; }
.set-sep { height: 1px; background: var(--line); margin: 6px 10px; }
.set-back { display: none; }
@media (min-width: 861px) { .set-item > svg:last-child { display: none; } }
@media (max-width: 860px) {
  .set-layout { grid-template-columns: 1fr; }
  .set-side { position: static; }
  .set-layout.is-menu .set-body { display: none; }
  .set-layout.is-detail .set-side { display: none; }
  main:has(.set-layout.is-detail) .set-checks { display: none; }
  .set-item { padding: 12px 10px; }
  .set-item.on { background: transparent; }
  .set-item.on::before { display: none; }
  .set-item.on .set-ico { background: var(--steel-soft); color: var(--steel); }
  .set-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--steel); font: 600 .95rem var(--font-body); padding: 4px 0 12px; cursor: pointer; }
  .set-back svg { width: 18px; height: 18px; }
}
.ai-box { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ai-box-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-box-h b { display: inline-flex; align-items: center; gap: 6px; } .ai-box-h svg { width: 16px; height: 16px; color: var(--hivis); }
.ai-kw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 10px; }
.ai-kw .chip { font-size: .78rem; padding: 4px 10px; }
.doc-link-exp { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; color: var(--ink-2); }
.doc-link-exp svg { width: 16px; height: 16px; color: var(--steel); }
.doc-meta.doc-by svg { width: 12px; height: 12px; vertical-align: -1px; }
.add-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; margin-top: 12px; }
.add-pair .btn { justify-content: center; }
.exp-ics { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 3px; font-size: .82rem; }
.row .right .pill + .exp-ics { margin-top: 4px; }
.share-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.share-files .pf img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.share-files .pf { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; color: var(--ink-3); }
/* Kupnja pretplate (Google Play) */
.buy-col { display: grid; gap: 8px; margin-top: auto; }
.plan .pill + .buy-col { margin-top: 10px; }
.buy-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.buy-btn b { font-variant-numeric: tabular-nums; }
.buy-btn.busy { opacity: .6; pointer-events: none; }
.buy-trial:empty { display: none; }
.buy-trial { text-align: center; }
.plan-sub { font-size: .85rem; color: var(--ink-3); margin: -4px 0 10px; }
.plan-sub.warn { color: var(--warn); background: var(--warn-soft); padding: 8px 10px; border-radius: 10px; font-weight: 600; }
/* Straničenje (admin popisi) */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.pager .btn { min-width: 38px; justify-content: center; }
.pg-gap { color: var(--ink-3); padding: 0 2px; }
.pager-info { text-align: center; margin: 4px 0 0; }
.push-preview { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); margin: 0 0 12px; }
.push-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.push-preview div { display: grid; gap: 3px; min-width: 0; }
.push-preview span { font-size: .9rem; }
.push-preview small { color: var(--ink-3); overflow-wrap: anywhere; }
/* Moj paket */
.plan-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.plan-hero.plan-plus { background: color-mix(in srgb, var(--hivis) 10%, var(--surface)); border-color: color-mix(in srgb, var(--hivis) 35%, var(--line)); }
.plan-hero.plan-pro, .plan-hero.plan-unl { background: var(--steel-soft); border-color: color-mix(in srgb, var(--steel) 35%, var(--line)); }
.ph-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-main > div { display: grid; gap: 1px; min-width: 0; }
.ph-main b { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.15; }
.ph-main span:not(.ph-ico) { color: var(--ink-2); font-size: .88rem; }
.ph-main small { color: var(--ink-3); font-size: .8rem; }
.ph-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--hivis); flex: none; box-shadow: var(--shadow); }
.plan-pro .ph-ico, .plan-unl .ph-ico { color: var(--steel); }
.ph-ico svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .plan-hero .btn { width: 100%; justify-content: center; } }
.use-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 4px 0 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.use-head small { font-weight: 400; font-size: .78rem; }
.use-row i.full em { background: var(--warn); }
.plan-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-links button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.plan-links button:hover { border-color: var(--ink-3); color: var(--ink); }
.plan-links svg { width: 16px; height: 16px; }
/* Upute: snimke zaslona */
.help-shots { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 6px; }
.help-shot { margin: 0; width: 230px; max-width: calc(50% - 9px); display: grid; gap: 8px; align-content: start; }
.help-shot img { width: 100%; height: auto; display: block; border-radius: 22px; border: 6px solid #1d262b; background: #1d262b; box-shadow: 0 18px 40px -22px rgba(20, 30, 40, .55); }
.help-shot-wide { width: 300px; }
.help-shot-wide img { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.help-shot figcaption { font-size: .82rem; line-height: 1.4; color: var(--ink-3); }
/* Članak o funkcijama */
.feat-kicker { margin: 0 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hivis); }
.feat-hero h1 { max-width: 22ch; }
.feat-toc { margin: 18px 0 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.feat-toc b { display: block; font-family: var(--font-head); margin-bottom: 8px; }
.feat-toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.feat-toc li { margin: 0 0 6px; break-inside: avoid; color: var(--ink-3); font-size: .92rem; }
.feat-toc a { color: var(--ink); text-decoration: none; }
.feat-toc a:hover { color: var(--hivis); text-decoration: underline; }
.feat-sec { scroll-margin-top: 80px; }
.feat-sec h2 { display: flex; align-items: baseline; gap: 10px; }
.feat-sec h2 .n { font: 700 .78rem/1 var(--font-body); color: var(--hivis); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .feat-sec.has-img { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
  .feat-sec.has-img .feat-shots { margin-top: 6px; flex-wrap: nowrap; }
  .feat-shots .help-shot { width: 210px; max-width: none; flex: none; }
  .feat-shots .help-shot-wide { width: 260px; }
  .feat-sec:nth-of-type(even).has-img .feat-shots { order: -1; }
  .feat-sec:nth-of-type(even).has-img { grid-template-columns: auto minmax(0, 1fr); }
}
.feat-shots .help-shot:only-child { width: 62%; max-width: 240px; }
.feat-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-cta .feat-cta-btns .btn:not(.btn-hivis) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
/* Podnožje: logo + stupci poveznica (bez vodoravnog skrolanja na mobitelu) */
.land-foot .land-wrap.foot-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 22px 40px; }
.foot-brand { display: grid; gap: 10px; justify-items: start; }
.foot-brand p { margin: 0; color: var(--ink-3); font-size: .88rem; max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 44px; }
.foot-col { display: grid; gap: 7px; align-content: start; }
.foot-col b { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.foot-col a { color: var(--ink-3); text-decoration: none; font-size: .9rem; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-col a.hidden { display: none; }
.land-foot .land-wrap.foot-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 22px; font-size: .8rem; color: var(--ink-3); position: relative; padding-top: 16px; }
.foot-copy::before { content: ''; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid var(--line); }
.foot-copy .foot-end { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 520px) { .land-foot .land-wrap.foot-copy { flex-direction: column-reverse; align-items: flex-start; } }
@media (min-width: 900px) { .land-foot .land-wrap.foot-copy::before { left: 32px; right: 32px; } }
@media (max-width: 720px) {
  .land-foot .land-wrap.foot-main { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; width: 100%; }
  .foot-col a { font-size: .88rem; }
}
.start-head-r { display: inline-flex; align-items: center; gap: 6px; }
.start-hide { padding: 4px 10px; min-height: 0; font-size: .85rem; color: var(--ink-3); }
.adm-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.adm-sum a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; }
.adm-sum a.on { border-color: var(--hivis); box-shadow: 0 0 0 1px var(--hivis) inset; }
.adm-sum b { display: block; font-size: 1.35rem; line-height: 1.2; }
.adm-sum span { font-size: .82rem; color: var(--ink-3); }
.u-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: .8rem; color: var(--ink-3); }
.u-stats i { font-style: normal; }
.lvl { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 600; vertical-align: 1px; }
.lvl-none { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.lvl-tried { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.lvl-active { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.ud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.ud-grid div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.ud-grid b { display: block; font-size: 1.15rem; }
.ud-grid span { font-size: .75rem; color: var(--ink-3); }
.ud-proj { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ud-proj .u-stats { margin-top: 6px; }
.ud-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ud-steps span { font-size: .74rem; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-3); }
.ud-steps span.ok { border-color: var(--ok); color: var(--ok); }
@media (max-width: 520px) { .ud-grid { grid-template-columns: repeat(2, 1fr); } }

/* Troškovi: zbroj u stupcima — na mobitelu se ne lomi */
.sum-cols span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.sum-cols small { font-size: inherit; color: var(--ink-2); }
@media (max-width: 599px) {
  .sum-strip.sum-cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 8px; row-gap: 0; font-size: .92rem; }
  .sum-cols span { flex-direction: column; align-items: flex-start; gap: 1px; }
  .sum-cols small { font-size: .74rem; }
}
@media (max-width: 360px) { .sum-strip.sum-cols { font-size: .84rem; } }
/* Pitaj Temelino: oznaka AI na ikoni */
.ask-btn { position: relative; color: var(--hivis); }
.ai-tag { position: absolute; top: 3px; right: 0; padding: 1px 4px; border-radius: 6px; background: var(--hivis); color: #fff; font: 800 .56rem/1.15 var(--font-body); letter-spacing: .02em; box-shadow: 0 0 0 2px var(--paper); pointer-events: none; }

.lightbox .lb-img img { cursor: zoom-in; }
.lightbox.zoomed .lb-img img { cursor: zoom-out; }
.lightbox.zoomed .lb-img:active img { cursor: grabbing; }
.plan-src { margin: 14px 2px 0; color: inherit; opacity: .72; }
.mail-prev { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #ECEEEA; }

/* Pregled: kupnja kuće/zemljišta — tanak redak ispod legende */
.hero-buy { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; }
.hero-buy > svg { width: 18px; height: 18px; flex: none; color: var(--steel); }
.hero-buy .hb-l { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hero-buy .hb-l b { font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero-buy .hb-l small { font-size: .78rem; color: var(--ink-3); }
.hero-buy > b { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.buy-fields { margin-top: 18px; }
.hero .hero-sub { grid-column: 1 / -1; margin-top: -4px; }

.lightbox .lb-ai { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: #fff; border: 0; }
.lightbox .lb-ai svg { width: 18px; height: 18px; }
.design-src-prev { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin: 4px 0 12px; }
@media (max-width: 380px) { .lightbox .lb-ai span { display: none; } }

/* Pregled slike: opis u svom redu, akcije s ikonom i natpisom, X gore desno */
.lightbox .lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 3; background: rgba(0,0,0,.45); width: 44px; height: 44px; }
.lightbox .lb-bar { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.lightbox .lb-info { min-width: 0; }
.lightbox .lb-info[hidden] { display: none; }
.lightbox .lb-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.lightbox .lb-cap.open { -webkit-line-clamp: unset; display: block; max-height: 30vh; overflow-y: auto; }
.lightbox .lb-meta { font-size: .82rem; opacity: .65; margin-top: 2px; }
.lightbox .lb-actions { display: flex; align-items: center; gap: 2px; }
.lightbox .lb-sp { flex: 1; }
.lightbox .lb-count { color: #C9D2D5; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lightbox .lb-act { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 66px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; color: #fff; font: 600 .72rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; }
.lightbox .lb-act svg { width: 22px; height: 22px; }
.lightbox .lb-act:hover, .lightbox .lb-act:active { background: rgba(255,255,255,.1); }
.lightbox .lb-act-ai { color: #FFB59E; }

/* Pregled slike v2: slika uvijek u sredini ekrana (fiksan prostor), traka pluta preko dna i ne pomiče sliku */
.lightbox .lb-img { position: absolute; inset: 0; padding: calc(150px + env(safe-area-inset-bottom)) 12px calc(150px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (min-height: 700px) and (min-width: 900px) { .lightbox .lb-img { padding-top: 130px; padding-bottom: 130px; } }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; }
.lightbox .lb-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-top: 30px; background: linear-gradient(to top, rgba(11,15,17,.96) 62%, rgba(11,15,17,0)); transition: opacity .2s; }
.lightbox.zoomed .lb-bar { opacity: 0; pointer-events: none; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.35); }
.lightbox.zoomed .lb-nav { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .lightbox .lb-img { padding-left: 64px; padding-right: 64px; } }
/* Paketi: tri jednako široke kartice, poravnati redovi (opis, cijena, popis) i gumbi na dnu */
@media (min-width: 820px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-tag { min-height: 2.9em; }
  .plan ul { align-content: start; }
  .plan > .btn, .plan > a.btn, .plan > .buy-col, .plan > .pill { margin-top: auto; }
  .plan > .pill + .buy-col { margin-top: 10px; }
  .plan .btn { white-space: normal; text-align: center; line-height: 1.25; }
}

/* Poklon paketa */
.gift-hero { text-align: center; margin-bottom: 14px; }
.gift-ico { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.gift-hero h2 { margin: 0 0 6px; }
.gift-note { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-style: italic; color: var(--ink-2); }
.gift-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--hivis-soft, var(--surface)); border: 1px solid var(--hivis); }
.gift-banner .gb-ico { font-size: 1.6rem; flex: none; }
.gift-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.gift-banner b { font-size: .95rem; }
.gift-banner small { color: var(--ink-2); font-size: .8rem; }
.gift-opt select.input-sm { display: inline-block; width: auto; padding: 2px 8px; height: auto; min-height: 0; font-size: .85rem; margin: 0 2px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-size: .82rem; }
.gift-banner .gb-x { width: 34px; height: 34px; flex: none; color: var(--ink-3); margin-left: -4px; }
.gift-banner .gb-x svg { width: 18px; height: 18px; }
/* X na obavijesti o poklonu: odvojen, gore desno */
.gift-banner { position: relative; padding-right: 40px; }
.gift-banner .gb-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; margin: 0; }
.gift-banner .gb-x svg { width: 16px; height: 16px; }
/* mobitel: naslov u jednom redu preko cijele širine, opis (do 3 reda) lijevo, gumb desno uz opis */
@media (max-width: 560px) {
  .gift-banner { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 12px 34px 12px 12px; }
  .gift-banner .gb-ico { font-size: 1.4rem; grid-column: 1; grid-row: 1 / span 2; align-self: center; text-align: center; line-height: 1.2; }
  .gift-banner > div { display: contents; }
  .gift-banner b { grid-column: 2 / 4; grid-row: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gift-banner small { grid-column: 2; grid-row: 2; font-size: .76rem; line-height: 1.35; }
  .gift-banner #giftAcc { grid-column: 3; grid-row: 2; align-self: center; margin-right: -22px; }
}

/* Admin: popis primatelja e-maila */
.rcp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: -4px 0 4px; }
.rcp summary { cursor: pointer; }
.rcp-bar { display: flex; gap: 6px; margin: 8px 0; }
.rcp-bar .input { flex: 1; min-width: 0; padding: 6px 10px; min-height: 0; }
.rcp-list { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.rcp-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.rcp-row:hover { background: var(--surface-2); }
.rcp-row input { margin-top: 3px; flex: none; }
/* Admin: korištenje — kompaktno */
.ud-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 4px !important; margin: 2px 0 10px !important; }
.ud-grid div { padding: 5px 4px !important; border-radius: 8px !important; display: flex; flex-direction: column; align-items: center; }
.ud-grid b { font-size: .95rem !important; line-height: 1.2; }
.ud-grid span { font-size: .66rem !important; line-height: 1.2; }
.ud-grid div.z { opacity: .45; }
/* v111 empty states */
.chips[hidden], .sum-strip[hidden] { display: none; }
.empty .empty-cta { margin-top: 14px; }
.sum-cols .sum-note { grid-column: 1 / -1; flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); margin-top: 6px; white-space: normal; }
.sum-cols .sum-note svg { width: 15px; height: 15px; flex: none; }
/* v112 primjer projekta */
.demo-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; background: transparent; color: var(--ink-2); text-align: left; cursor: pointer; font: inherit; }
.demo-link:hover { border-color: var(--ink-3); background: var(--surface); }
.demo-link svg { width: 22px; height: 22px; flex: none; color: var(--hivis); }
.demo-link b { display: block; color: var(--ink); }
.demo-link small { display: block; font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.demo-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--plan); }
.demo-banner .db-ico svg { width: 22px; height: 22px; color: var(--plan); display: block; }
.demo-banner b { display: block; }
.demo-banner small { display: block; font-size: .84rem; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.demo-banner .db-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 599px) { .demo-banner { grid-template-columns: auto 1fr; } .demo-banner .db-btns { grid-column: 1 / -1; justify-content: stretch; } .demo-banner .db-btns > * { flex: 1; justify-content: center; } }
.start-demo { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px 4px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink-3); font: inherit; font-size: .88rem; cursor: pointer; text-align: left; }
.start-demo svg { width: 18px; height: 18px; flex: none; }
.start-demo b { color: var(--ink); font-weight: 600; }
.start-demo:hover b { text-decoration: underline; }
/* v116 izvještaj za banku — odabir sadržaja */
.bk-inc { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; margin: 4px 0 12px; background: var(--surface); }
.bk-inc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .86rem; color: var(--steel); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.bk-inc .bk-row { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.bk-inc .bk-row:first-of-type { border-top: 0; }
div.bk-row { display: flex; align-items: center; gap: 10px; }
div.bk-row label { display: flex; gap: 10px; align-items: center; flex: 1; }
div.bk-row input[type=number] { width: 70px; min-height: 36px; }
.bk-inc input[type=checkbox] { flex: none; width: 20px; height: 20px; }
.bk-inc .bk-row { align-items: center; }
.bk-inc .bk-sub { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 1px; }
.bk-inc div.bk-row input[type=number] { width: 64px; flex: none; text-align: center; }
/* v117 ista fotografija — označena u odabiru */
.pf.pf-dup { opacity: .7; }
.pf.pf-dup img { filter: grayscale(1); }
.pf.pf-dup > span { display: none; }
.pf.pf-dup::after { content: attr(title); order: 1; font-size: .74rem; font-weight: 700; color: var(--ink-2); line-height: 1.2; pointer-events: none; }
.pf.pf-dup > button { order: 2; }
/* v118 vremeplov — odabir više fotografija */
.ph-chk { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); display: none; place-items: center; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ph-chk svg { width: 16px; height: 16px; opacity: 0; }
.selecting .ph { cursor: pointer; }
.selecting .ph-chk { display: grid; }
.ph.on .ph-chk { background: var(--hivis); border-color: var(--hivis); }
.ph.on .ph-chk svg { opacity: 1; }
.ph.on img { transform: scale(.92); border-radius: 10px; }
.ph img { transition: transform .15s ease; }
.ph { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.sel-month { display: none; margin-left: auto; font-size: .82rem; }
.selecting .sel-month { display: inline; }
.sel-bar { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 25; margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.sel-bar[hidden] { display: none; }
.sel-n { white-space: nowrap; font-size: .9rem; }
.sel-acts { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.sel-acts .btn { white-space: nowrap; flex: none; }
.sel-acts .btn svg { width: 16px; height: 16px; }
@media (min-width: 900px) { .sel-bar { bottom: 16px; } }
#selMode[hidden] { display: none; }
@media (max-width: 640px) {
  .sel-bar { display: grid; grid-template-columns: 1fr auto; padding: 8px 8px 10px 14px; row-gap: 6px; }
  .sel-acts { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
  .sel-acts .btn { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .74rem; min-height: 0; height: auto; }
  .sel-acts .btn svg { width: 18px; height: 18px; margin: 0; }
}

/* v119 sidrena cijena (HR propis o isticanju cijena) */
.plan-anchor { margin: -6px 0 12px; font-size: .74rem; line-height: 1.35; color: var(--ink-3); }
.plan-anchor .nw { white-space: nowrap; }
.plan-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin: 12px auto 0; max-width: 720px; text-align: center; font-size: .74rem; color: var(--ink-3); }
.plan-legal .pl-links { display: inline-flex; align-items: center; gap: 10px; }
.plan-legal .pl-links svg { width: 15px; height: 15px; }
.plan-legal a { color: var(--steel); font-weight: 600; }
.anchor-box { margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.plans-page .plan-legal { color: rgba(255,255,255,.5); }
.plans-page .plan-legal a { color: rgba(255,255,255,.8); font-weight: 500; }

/* v122 admin — AI trošak korisnika */
.ai-cost { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ac-sum { display: flex; gap: 24px; margin-bottom: 8px; }
.ac-sum div { display: flex; flex-direction: column; }
.ac-sum b { font-family: var(--font-head); font-size: 1.15rem; }
.ac-sum span { font-size: .78rem; color: var(--ink-3); }
.ac-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ac-tbl th { text-align: right; font-weight: 600; color: var(--ink-3); font-size: .74rem; padding: 4px 6px; }
.ac-tbl td { padding: 4px 6px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.ac-tbl th:first-child, .ac-tbl td:first-child { text-align: left; }

/* v122 AI krediti i prostor */
.quota { display: grid; gap: 10px; margin: 10px 0 12px; }
@media (min-width: 700px) { .quota { grid-template-columns: 1fr 1fr; } }
.q-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); }
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.q-top span { display: inline-flex; align-items: center; gap: 6px; }
.q-top svg { width: 16px; height: 16px; color: var(--hivis); }
.q-top b { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.q-top b small { font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--ink-3); }
.q-bar { display: block; height: 7px; border-radius: 99px; background: var(--surface-2); margin: 9px 0 6px; overflow: hidden; }
.q-bar em { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.q-bar.warn em { background: var(--warn); } .q-bar.full em { background: var(--bad); }
.q-bar.q-fill em { background: var(--steel); } .q-bar.q-fill.warn em { background: var(--warn); } .q-bar.q-fill.full em { background: var(--bad); }
.q-sub { font-size: .78rem; color: var(--ink-3); }
.q-costs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 8px 0 4px; }
.q-costs span { font-size: .72rem; color: var(--ink-2); background: var(--surface-2); border-radius: 99px; padding: 2px 8px; }
.q-costs b { font-weight: 700; color: var(--ink); }
.cr-note { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-3); }
.cr-note svg { width: 14px; height: 14px; color: var(--hivis); }
.cr-note.cr-out { color: var(--bad); }
.cr-wrap { margin-top: 8px; }
.ask-box .cr-note { color: rgba(255,255,255,.7); }
.plan-credits-note { display: flex; gap: 8px; align-items: flex-start; max-width: 720px; margin: 14px auto 0; font-size: .8rem; color: var(--ink-3); }
.plan-credits-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--hivis); }
.plans-page .plan-credits-note { color: rgba(255,255,255,.7); }
.plans-page .plan-credits-note b { color: #fff; }
.q-banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn); font-size: .86rem; }
.q-banner > svg { width: 18px; height: 18px; flex: none; color: var(--warn); margin-top: 2px; }
.q-banner div { flex: 1; } .q-banner p { margin: 0 0 2px; } .q-banner a { font-weight: 600; color: var(--steel); }

/* v125 stvarni napredak prijenosa */
.progress.progress-txt { overflow: visible; position: relative; margin-bottom: 22px; }
.progress.progress-txt i { border-radius: 3px; }
.progress.progress-txt::after { content: attr(data-txt); position: absolute; left: 0; right: 0; top: 10px; font-size: .78rem; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }

/* v126 Nacrt — tlocrt s oznakama */
.np-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.np-tabs .np-edit svg { width: 15px; height: 15px; }
.np-layers, .np-lpick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.np-lpick { flex-wrap: wrap; overflow: visible; }
.np-layer { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 5px 11px 5px 7px; font: inherit; font-size: .8rem; cursor: pointer; }
.np-layer span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); font-size: .78rem; }
.np-layer.off { opacity: .45; text-decoration: line-through; }
.np-layers .np-layer.unused { opacity: .6; }
.np-layers .np-layer.unused.off { opacity: .35; }
.np-layer.sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); font-weight: 600; }
.np-wrap { position: relative; }
.np-viewer { height: min(calc(100vh - 230px), 640px); min-height: 340px; border-radius: 16px; border: 1px solid var(--line); background: #F4F3EF; }
.pv { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.pv.adding { cursor: crosshair; box-shadow: inset 0 0 0 3px var(--hivis); }
.pv-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pv-stage img { display: block; max-width: none; pointer-events: none; }
.pv-pins { position: absolute; inset: 0; }
.pv-pin { position: absolute; width: 30px; height: 30px; margin: 0; padding: 0; border: 2px solid #fff; border-radius: 50% 50% 50% 4px; background: var(--c, var(--steel)); box-shadow: 0 2px 6px rgba(0,0,0,.35); transform: translate(-50%, -100%) rotate(-45deg) scale(var(--inv, 1)); transform-origin: 50% 100%; cursor: pointer; display: grid; place-items: center; }
.pv-pin span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.pv-pin b { position: absolute; top: -8px; right: -8px; transform: rotate(45deg); background: var(--hivis); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; padding: 0 3px; }
.pv-cluster { border-radius: 50%; background: var(--ink); width: 34px; height: 34px; transform: translate(-50%, -50%) scale(var(--inv, 1)); transform-origin: 50% 50%; }
.pv-cluster span { transform: none; color: #fff; font-weight: 700; font-size: 13px; }
.pv-zoom { position: absolute; right: 10px; top: 56px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pv-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.np-fab { position: absolute; left: 10px; top: 10px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.np-full { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--surface); border: 1px solid var(--line); }
.np-bar { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .88rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.np-bar.hidden { display: none; }
.np-wrap.np-fs { position: fixed; inset: 0; z-index: 55; background: var(--paper); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.np-wrap.np-fs .np-viewer { height: 100%; border-radius: 0; border: 0; }
.np-listbox { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.np-listbox summary { padding: 12px 14px; cursor: pointer; font-weight: 600; }
.np-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 18%, transparent); font-size: .9rem; }
.np-th { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.np-dhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.np-measure { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.np-photo-big { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 10px 0; cursor: zoom-in; position: relative; }
.np-photo-big img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; }
.np-photo-big span { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.np-cur { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .np-cur img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.np-wallview { position: fixed; inset: 0; z-index: 55; background: #0B0F11; display: flex; flex-direction: column; }
.nw-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; color: #fff; }
.nw-head .icon-btn { color: #fff; } .nw-head div { flex: 1; display: flex; flex-direction: column; } .nw-head small { color: rgba(255,255,255,.6); font-size: .78rem; }
.nw-view { flex: 1; background: #0B0F11; }
.np-wallview .np-bar { position: relative; left: auto; right: auto; top: auto; margin: 0 12px 8px; }
.nacrt-empty .ne-ill { font-size: 2.6rem; margin-bottom: 6px; }
.ne-list { list-style: none; padding: 0; margin: 18px auto 0; max-width: 420px; text-align: left; font-size: .88rem; color: var(--ink-2); display: grid; gap: 6px; }

/* v127 Nacrt 2 — fotografije zida, AI prijedlog, crte, mjere, smjer pogleda */
.np-fabs { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 6px; }
.np-fabs .np-fab { position: static; }
.np-fab2 { background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.np-barph { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; flex: none; }
.np-bar #npBarTxt, .np-bar #nwBarTxt { flex: 1; }
.np-bar .btn.hidden { display: none; }
.nw-bar-acts { display: contents; }
.pv-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.pv-line .ln { fill: none; stroke: var(--c); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv-line .hit { fill: none; stroke: transparent; stroke-width: 22; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.pv-line.sug .ln { stroke-dasharray: 8 6; }
.pv-drawing { fill: none; stroke: var(--hivis); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv-ref { stroke: #fff; stroke-width: 2; stroke-dasharray: 10 6; vector-effect: non-scaling-stroke; opacity: .85; }
.pv-reft { fill: #fff; font-family: system-ui, sans-serif; font-weight: 600; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: 3px; transform-box: fill-box; }
.pv-pin.sug { border-style: dashed; animation: sugPulse 1.8s ease-in-out infinite; }
@keyframes sugPulse { 0%, 100% { opacity: .55; box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 0%, transparent); } 50% { opacity: 1; box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 40%, transparent), 0 0 18px 6px rgba(255,255,255,.55); } }
.pv-line.sug .ln { animation: sugLine 1.8s ease-in-out infinite; }
.pv-line .glow { fill: none; stroke: var(--c); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0; animation: sugGlow 1.8s ease-in-out infinite; }
@keyframes sugLine { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes sugGlow { 0%, 100% { opacity: 0; } 50% { opacity: .42; } }
@media (prefers-reduced-motion: reduce) { .pv-pin.sug, .pv-line.sug .ln, .pv-line .glow { animation: none; opacity: .85; } .pv-line .glow { opacity: .25; } }
.pv-cone { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from calc(var(--r) + 60deg), rgba(40,53,67,.32) 0 60deg, transparent 60deg);
  transform: scale(var(--inv, 1)); -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 71%); mask: radial-gradient(circle, #000 0 70%, transparent 71%); }
.pv-cone.on { background: conic-gradient(from calc(var(--r) + 60deg), color-mix(in srgb, var(--hivis) 45%, transparent) 0 60deg, transparent 60deg); }
.pv-ghost { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--hivis); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); transform: scale(var(--inv, 1)); pointer-events: none; }
.nw-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
.nw-strip button { flex: none; position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: .65; }
.nw-strip button.on { border-color: var(--hivis); opacity: 1; }
.nw-strip img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.nw-strip span { position: absolute; left: 2px; right: 2px; bottom: 2px; font-size: .62rem; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; text-align: center; }
.nw-tools { display: flex; justify-content: space-around; gap: 4px; padding: 8px 8px 4px; background: #11171A; }
.nw-tools button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: #fff; font: inherit; font-size: .72rem; padding: 6px 2px; border-radius: 10px; cursor: pointer; }
.nw-tools button[hidden] { display: none; }
.nw-tools button.on { background: color-mix(in srgb, var(--hivis) 35%, transparent); }
.nw-tools button { font-size: 1.15rem; } .nw-tools button span { font-size: .72rem; opacity: .85; }
.nw-warn { margin: 0; padding: 4px 12px calc(6px + env(safe-area-inset-bottom)); background: #11171A; color: rgba(255,255,255,.55); font-size: .7rem; text-align: center; }
.nw-offer { margin: 0 12px 8px; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-offer.hidden { display: none; }
.nw-offer > div:first-child { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; } .nw-offer small { color: var(--ink-2); font-size: .78rem; }
.nw-offer .cr-note { margin-top: 4px; }
.nw-offer-acts { display: flex; gap: 6px; }
.nw-empty { height: 100%; display: grid; place-content: center; text-align: center; color: rgba(255,255,255,.75); gap: 10px; padding: 20px; }
.np-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.np-big { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; font-size: 1.6rem; cursor: pointer; text-align: center; color: var(--ink); }
.np-big b { font-size: .92rem; } .np-big small { font-size: .74rem; color: var(--ink-2); }
.np-big:hover { border-color: var(--hivis); }
.np-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.np-pgrid button { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 1; }
.np-pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-pgrid span { position: absolute; left: 4px; bottom: 4px; font-size: .66rem; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 99px; }
.np-ph-h { margin: 14px 0 8px; font-size: .9rem; } .np-ph-h:first-child { margin-top: 0; } .np-ph-h small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.np-menu { display: flex; flex-direction: column; }
.np-menu button { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.np-menu button svg { width: 18px; height: 18px; } .np-menu button.danger { color: var(--danger, #C0392B); border-bottom: 0; }
.np-ai { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--hivis) 15%, transparent); color: var(--ink); }
.np-warn { font-size: .8rem; color: var(--ink-2); background: color-mix(in srgb, #E0A800 12%, transparent); padding: 8px 10px; border-radius: 10px; }
.inst-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0 0 14px; border-left: 4px solid var(--hivis); }
.inst-card .ic-ill { font-size: 1.8rem; line-height: 1; }
.inst-card .ic-body { flex: 1; display: flex; flex-direction: column; gap: 3px; } .inst-card small { color: var(--ink-2); }
.inst-card .ic-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.inst-float { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: icUp .25s ease-out; }
@keyframes icUp { from { transform: translateY(20px); opacity: 0; } }
.lb-act-inst { color: var(--hivis); }
.np-wallview .np-bar { flex-wrap: wrap; }
.nw-sugall { order: 9; flex-basis: 100%; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; }
.nw-sugall small { color: rgba(255,255,255,.7); white-space: nowrap; }
.nw-sugall button { flex: none; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 22%, transparent); color: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap; }

/* v131 Više: sve kartice iste visine — naslov u jednom redu, opis najviše dva reda (prostor za dva reda uvijek rezerviran) */
.more-grid { grid-auto-rows: 1fr; }
.more-grid .mg-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.more-grid .mg-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-grid .mg-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; min-height: calc(2 * 1.35em); }

/* v132: trake i ponude uvijek tamne s bijelim tekstom (i u tamnoj temi) */
.np-bar { background: #1F2A30; color: #fff; }
.np-bar .btn:not(.btn-hivis):not(.btn-primary) { background: #fff; color: #1F2A30; border-color: #fff; }
.nw-offer { background: #fff; color: #1F2A30; } .nw-offer small { color: #55636A; }
.np-instb { position: absolute; right: 4px; top: 4px; font-style: normal; font-size: .7rem; background: rgba(255,255,255,.92); border-radius: 99px; padding: 1px 5px; }
.np-instb.static { position: static; }
.np-pgrid button.inst { outline: 3px solid var(--hivis); outline-offset: -3px; }
.np-sugl .row { align-items: center; gap: 8px; }
.np-sug-go { text-align: left; font-weight: 600; }
.np-sug-ls { display: flex; gap: 6px; margin-top: 6px; }
.np-sug-ls .np-layer { padding: 4px; } .np-sug-ls .np-layer span { width: 26px; height: 26px; font-size: .9rem; }
.np-edit { gap: 4px; }

/* v133 uređivanje oblika crte */
.pv-h { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 3px solid var(--hivis); box-shadow: 0 1px 6px rgba(0,0,0,.45); transform: scale(var(--inv, 1)); cursor: grab; z-index: 3; touch-action: none; }
.pv-h::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }

/* v133 oblačić uz oznaku */
.pv-call { position: absolute; z-index: 4; width: min(290px, calc(100% - 16px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.28); padding: 10px 12px 10px; cursor: default; }
.pv-call::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.pv-call.below::after { bottom: auto; top: -7px; transform: rotate(225deg); }
.pv-call-x { position: absolute; right: 4px; top: 4px; border: 0; background: none; color: var(--ink-3); padding: 4px; cursor: pointer; } .pv-call-x svg { width: 16px; height: 16px; }
.pv-call-h { display: flex; gap: 10px; align-items: center; padding-right: 22px; }
.pv-call-h img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; cursor: zoom-in; flex: none; }
.pv-call-h div { display: flex; flex-direction: column; min-width: 0; } .pv-call-h b { overflow-wrap: anywhere; } .pv-call-h small { color: var(--ink-3); font-size: .76rem; }
.pv-call-m { margin: 8px 0 0; font-size: .82rem; background: var(--surface-2); border-radius: 8px; padding: 5px 8px; }
.pv-call-n { margin: 6px 0 0; font-size: .82rem; color: var(--ink-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-call-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .pv-call-a .btn svg { width: 15px; height: 15px; }
.pv-pin.on { z-index: 2; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 2px 10px rgba(0,0,0,.5); }
.nw-hint { order: 8; flex-basis: 100%; color: rgba(255,255,255,.7); font-size: .75rem; }

.pv-lb { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border-radius: 50%; border: 2px solid var(--c); background: #fff; font-size: 13px; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.4); transform: scale(var(--inv, 1)); cursor: pointer; }
.pv-lb.sug { border-style: dashed; animation: sugLine 1.8s ease-in-out infinite; }
.pv-lb.on, .pv-pin.on { outline: 3px solid #fff; }

.nw-calib { margin: 0; border: 0; background: #2A363C; color: #fff; font: inherit; font-size: .8rem; padding: 8px 12px; text-align: center; cursor: pointer; border-top: 1px solid rgba(255,255,255,.08); }

.pv-line .halo { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv-stage { backface-visibility: hidden; }

/* v137 Nacrt preko cijelog zaslona: nacrt gore, popis oznaka ispod */
.np-fslist { display: none; }
.np-wrap.np-fs { display: flex; flex-direction: column; }
.np-wrap.np-fs .np-viewer { flex: 1 1 auto; height: auto; min-height: 0; }
.np-wrap.np-fs .np-fslist { display: block; flex: 0 0 auto; max-height: 34vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.np-fslist-h { position: sticky; top: 0; background: var(--surface); padding: 10px 14px 6px; font-weight: 600; font-size: .85rem; color: var(--ink-2); z-index: 1; }
.np-wrap.np-fs { padding-bottom: 0; }
.np-wrap.np-fs .np-bar { top: calc(10px + env(safe-area-inset-top)); }
.np-wrap.np-fs .np-fabs, .np-wrap.np-fs .np-full { top: calc(10px + env(safe-area-inset-top)); }
.np-full svg { width: 18px; height: 18px; }

/* v138 Zid · Pod · Strop */
.np-surf { order: 9; flex-basis: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.np-surf small { color: rgba(255,255,255,.7); }
.np-surf button { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 99px; padding: 4px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.np-surf button.on { background: #fff; color: #1F2A30; border-color: #fff; font-weight: 600; }
.np-bar { flex-wrap: wrap; }
.np-surfseg { display: flex; gap: 6px; flex-wrap: wrap; }
.np-surfseg label { cursor: pointer; } .np-surfseg input { position: absolute; opacity: 0; pointer-events: none; }
.np-surfseg span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.np-surfseg input:checked + span { border-color: var(--hivis); background: color-mix(in srgb, var(--hivis) 12%, var(--surface)); font-weight: 600; }
.np-wallh.hidden { display: none; }

/* v141 Naslovnica: Nacrti */
.land-nacrt { padding: 64px 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hivis) 6%, transparent)); }
.ln-head { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.ln-kick { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hivis); background: color-mix(in srgb, var(--hivis) 12%, transparent); padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.ln-head h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.15; }
.ln-head p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.ln-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .ln-grid { grid-template-columns: 1fr; } .land-nacrt { padding: 44px 0; } }
.ln-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ln-card figcaption { padding: 10px 6px 4px; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.ln-img { position: relative; border-radius: 12px; overflow: hidden; background: #fff; }
.ln-img img { display: block; width: 100%; height: auto; }
.ln-pin { position: absolute; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50% 50% 50% 4px; background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.35); transform: translate(-50%, -100%) rotate(-45deg) scale(.4); transform-origin: 50% 100%; opacity: 0; display: grid; place-items: center; transition: transform .45s cubic-bezier(.2,1.4,.4,1), opacity .3s; font-style: normal; }
.ln-pin span { transform: rotate(45deg); font-size: 13px; }
.land-nacrt.in .ln-pin { opacity: 1; transform: translate(-50%, -100%) rotate(-45deg) scale(1); }
.land-nacrt.in .ln-pin:nth-of-type(2) { transition-delay: .1s; } .land-nacrt.in .ln-pin:nth-of-type(3) { transition-delay: .2s; } .land-nacrt.in .ln-pin:nth-of-type(4) { transition-delay: .3s; } .land-nacrt.in .ln-pin:nth-of-type(5) { transition-delay: .4s; }
.ln-pin.on { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 2px 10px rgba(0,0,0,.4); }
.ln-call { position: absolute; left: 65.5%; top: 31%; transform: translate(-50%, calc(-100% - 46px)); background: #fff; color: #1F2A30; border-radius: 12px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22); white-space: nowrap; font-size: .8rem; display: flex; flex-direction: column; gap: 1px; opacity: 0; transition: opacity .4s .7s; }
.ln-call::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); }
.ln-call small { color: #66757C; } .ln-call span { margin-top: 4px; align-self: flex-start; background: var(--hivis); color: #fff; font-weight: 600; border-radius: 8px; padding: 2px 8px; font-size: .74rem; }
.land-nacrt.in .ln-call { opacity: 1; }
@media (max-width: 520px) { .ln-call { font-size: .72rem; padding: 6px 9px; } }
.ln-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ln-lines polyline { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; filter: drop-shadow(0 0 3px rgba(255,255,255,.9)); }
.land-nacrt.in .ln-lines polyline { animation: lnDraw 1.4s ease-out forwards; animation-delay: var(--d); }
@keyframes lnDraw { to { stroke-dashoffset: 0; } }
.ln-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 2px solid var(--hivis); display: grid; place-items: center; font-size: 11px; font-style: normal; box-shadow: 0 1px 5px rgba(0,0,0,.35); transform: scale(0); }
.land-nacrt.in .ln-dot { animation: lnPop .35s ease-out forwards; animation-delay: var(--d); }
@keyframes lnPop { 70% { transform: scale(1.2); } to { transform: scale(1); } }
.ln-tag, .ln-ai { position: absolute; background: rgba(20,28,32,.86); color: #fff; font-size: .78rem; font-weight: 600; border-radius: 99px; padding: 5px 11px; opacity: 0; transition: opacity .4s 2.4s; }
.ln-tag { left: 4%; bottom: 6%; } .ln-ai { right: 4%; top: 5%; background: var(--hivis); }
.land-nacrt.in .ln-tag, .land-nacrt.in .ln-ai { opacity: 1; }
.ln-pts { list-style: none; padding: 0; margin: 26px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ln-pts li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .9rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.ln-pts li b { font-size: 1.2rem; }
@media (max-width: 860px) { .ln-pts { grid-template-columns: 1fr 1fr; } }
.ln-note { text-align: center; color: var(--ink-3); font-size: .8rem; margin: 16px 0 0; }
@media (prefers-reduced-motion: reduce) { .ln-pin, .ln-call, .ln-tag, .ln-ai { transition: none; } .ln-lines polyline { stroke-dashoffset: 0; animation: none !important; } .ln-dot { transform: none; animation: none !important; } }
@media (max-width: 600px) { .ln-call { transform: translate(-50%, 12px); } .ln-call::after { bottom: auto; top: -6px; } }

/* AI dizajn: samo AI slika (bez usporedbe) */
.cmp-toggle { margin: 0 0 8px; font-size: .86rem; }
.cmp.solo > img:first-child, .cmp.solo .cmp-l, .cmp.solo .cmp-line, .cmp.solo input { display: none; }
.cmp.solo .cmp-after { position: static; clip-path: none; height: auto; }
.cmp.solo .cmp-r { display: none; }

/* v142 Dijeljenje i stranice pojedinih mogućnosti */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.share > a, .share > button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.share > a:hover, .share > button:hover { border-color: var(--ink-3); }
.share .sh-wa svg { color: #25D366; } .share .sh-vb svg { color: #7360F2; } .share .sh-fb svg { color: #1877F2; } .share .sh-li svg { color: #0A66C2; }
.share .sh-copy.ok { border-color: #2E8A68; color: #2E8A68; }
.share .share-native { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share-t { flex-basis: 100%; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 2px; }
.share-big { margin: 28px 0 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 560px) { .share > a span, .share > button.sh-copy span { display: none; } .share > a, .share > button.sh-copy { width: 40px; justify-content: center; padding: 0; } .share-big > a span { display: none; } }
.feat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .86rem; font-weight: 600; color: var(--hivis); text-decoration: none; }
.feat-link:hover { text-decoration: underline; }
.fx-crumb { font-size: .84rem; color: var(--ink-3); margin: 0 0 10px; } .fx-crumb a { color: var(--ink-2); } .fx-crumb span { margin: 0 4px; }
.fx-one-hero h1 { max-width: 24ch; }
.fx-one .feat-sec { margin-top: 8px; }
.fx-more { margin: 40px 0 10px; } .fx-more h2 { margin-bottom: 14px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fx-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.fx-card:hover { border-color: var(--hivis); transform: translateY(-2px); }
.fx-card b { font-family: var(--font-head); font-size: 1rem; } .fx-card span { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.fx-all { margin: 18px 0 0; }
.share > [hidden] { display: none !important; }
.ln-head h2, .ln-head p, .pub-hero h1, .fx-one-hero .lead { text-wrap: balance; }

/* v144: odabrano mjesto ostaje istaknuto dok se bira fotografija instalacija */
.pv-ghost.pick { width: 24px; height: 24px; margin: -12px 0 0 -12px; z-index: 3; }
.pv-ghost.pick::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--hivis); animation: ghostPing 1.4s ease-out infinite; }
@keyframes ghostPing { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pv-ghost.pick::after { animation: none; transform: scale(1.8); opacity: .5; } }
.overlay.ov-light { background: rgba(15, 20, 22, .16); }
/* v145: oblačić oznake — jedan glavni gumb i red alata iste širine */
.pv-call-open { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; min-height: 42px; justify-content: flex-start; }
.pv-call-open span { flex: 1; text-align: left; } .pv-call-open svg { width: 18px; height: 18px; flex: none; }
.pv-call-a { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin-top: 10px; flex-wrap: nowrap; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.pv-tool { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; min-width: 0; }
.pv-tool:first-child { border-left: 0; }
.pv-tool svg { width: 19px; height: 19px; }
.pv-tool span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-tool:hover, .pv-tool:active { background: var(--surface-2); color: var(--ink); }
.pv-tool.danger { color: var(--bad, #c0392b); }
/* v145: naslovnica — svi odjeljci istog ritma: naslov lijevo, ista veličina, isti razmaci */
.land-nacrt { padding: 36px 0 12px; background: none; }
.ln-head { max-width: 720px; margin: 0 0 18px; text-align: left; }
.ln-kick { background: var(--hivis); color: #fff; font-size: .75rem; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; }
.ln-head h2, .ai-head h2, .land-steps h2, .land-plans h2 { font-size: 1.6rem; line-height: 1.2; margin: 8px 0 6px; }
.ln-head p { font-size: 1rem; text-wrap: pretty; }
.ln-pts { margin: 18px 0 0; }
.ln-note { text-align: left; }
@media (max-width: 600px) { .ln-head h2, .ai-head h2, .land-steps h2, .land-plans h2 { font-size: 1.35rem; } }
/* v145: paketi — sve u jednom stupcu, poravnato lijevo, napomene čitljive na tamnoj pozadini */
.plan-credits-note { max-width: none; margin: 16px 0 0; font-size: .84rem; }
.plan-legal { justify-content: flex-start; text-align: left; max-width: none; margin: 8px 0 0; padding-left: 24px; }
.plan-src { margin: 8px 0 0 24px; font-size: .8rem; }
.plans-page .plan-src, .plans-page .plans-main > .small.muted { color: rgba(255,255,255,.62); opacity: 1; }
.plans-page .plans-main > .small.muted { margin: 8px 0 0 24px !important; font-size: .8rem; }
.plans-faq { max-width: none; margin-top: 32px; }
.plans-faq details { padding: 14px 16px; }
.plans-page .auth-foot { text-align: left; margin-top: 24px; }
.plans-page .plans-main { width: 100%; }
/* v145: o aplikaciji — slike uvijek desno (bez nepravilnog cik-caka), tekst uvijek na istom mjestu */
@media (min-width: 900px) {
  .feat-sec:nth-of-type(even).has-img .feat-shots { order: 0; }
  .feat-sec:nth-of-type(even).has-img { grid-template-columns: minmax(0, 1fr) auto; }
}
/* v145: zaglavlje javnih stranica iste širine kao naslovnica i podnožje (1160), sadržaj ostaje uži i centriran */
.legal-top .legal-wrap { max-width: 1160px; }
.plans-page .plans-main { max-width: 1160px; padding: 28px 0 40px; margin: 0 auto; }
/* v145: mobitel — kartice prednosti kompaktno (ikona lijevo), bez praznog prostora */
@media (max-width: 639px) {
  .land-feats { padding-top: 28px; }
  .land-feats .feat-grid { gap: 10px; }
  .land-feats .feat { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; padding: 14px 16px; }
  .land-feats .feat .cico { grid-row: span 2; margin: 2px 0 0; }
  .land-feats .feat h3 { margin: 0; font-size: 1rem; }
  .land-feats .feat p { grid-column: 2; font-size: .9rem; }
}
/* v146: sloj nacrta/fotografije na grafičkoj kartici samo dok se pomiče — bez crnih dijelova nakon odzumiranja */
.pv-stage { will-change: auto; backface-visibility: visible; }
.pv.pv-moving .pv-stage { will-change: transform; }
/* v147: prepoznavanje u tijeku — poruka preko fotografije */
.nw-busy { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(15,20,22,.55); color: #fff; text-align: center; padding: 20px; backdrop-filter: blur(2px); }
.nw-busy .spinner { margin: 0 0 6px; border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.nw-busy small { color: rgba(255,255,255,.8); }
/* v147: crte se biraju dodirom na samu crtu (sloj oznaka ne prekriva crte); oznaka na sredini crte samo kad je odabrana */
.pv-pins { pointer-events: none; }
.pv-pins > * { pointer-events: auto; }
.pv-pins > .pv-ghost { pointer-events: none; }
.pv-line.on .ln { stroke-width: 7; }
.pv-line.on .halo { stroke-width: 11; }
.reg-news { margin: -4px 0 12px; font-size: .78rem; }
.ask-ai-note { margin: 12px 0 0; font-size: .78rem; }

/* v149 — skriveni iznosi (oko) */
.hero-lbl { display: flex; align-items: center; gap: 4px; }
.money-eye.eye-sm { width: 30px; height: 30px; min-width: 30px; margin: -6px 0; color: var(--ink-3); }
.money-eye.eye-sm svg { width: 17px; height: 17px; }
.money-eye[aria-pressed="true"] { color: var(--hivis); }
.head-acts .money-eye { padding-inline: 9px; }

/* v153 — jednostavniji obrazac troška */
.ef-scan { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px; background: var(--hivis); color: #fff; cursor: pointer; }
.ef-scan svg { width: 26px; height: 26px; flex: none; }
.ef-scan b { display: block; font-size: 1rem; } .ef-scan small { display: block; opacity: .9; font-size: .82rem; }
.ef-date { margin: 2px 0 6px; color: var(--ink-3); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ef-date b { color: var(--ink); font-weight: 600; }
.ef-date .input { flex-basis: 100%; margin-top: 6px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link, var(--steel)); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cat-sug { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--hivis); background: color-mix(in srgb, var(--hivis) 12%, transparent); padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
#efMore { margin-top: 8px; }
#ef .grid-2 select { min-height: 60px; }
#ef .grid-2 .field > span { display: flex; align-items: center; gap: 4px; min-height: 1.4em; }
.cat-sug { line-height: 1.3; }

/* v157 — bočni izbornik u grupama */
@media (min-width: 900px) {
  .side .side-h { margin: 14px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--side-ink); opacity: .55; }
  .side nav a { padding: 7px 12px; white-space: nowrap; }
  .side nav a span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
