/*
 * ZBOR vizuelni sistem (docs/ui-system.md). Smer: jasno, čisto, čitljivo, kao Apple.
 * Sistemski font, mnogo vazduha, tanke linije, jedna boja za akciju. Tokeni su na :root;
 * tamna tema prati sistem, a izbor osobe (data-theme) ima prednost.
 */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd; --sunken: #f0f0f3;
  --ink: #1d1d1f; --ink-2: #424245; --muted: #636366; --faint: #707075;
  --line: #e5e5ea; --line-strong: #d2d2d7;
  --brand: #0071e3; --brand-hover: #0077ed; --brand-ink: #ffffff; --brand-soft: #e8f1fc; --link: #0066cc;
  --accent: #bf4800; --accent-soft: #fdf0e6;
  --ok: #1d7a35; --ok-soft: #e7f5ea; --warn: #9a5b00; --warn-soft: #fdf3e1;
  --bad: #c9001c; --bad-soft: #fdecee; --info: #0062c4; --info-soft: #e8f1fc;
  --ai: #6d3fc0; --ai-soft: #f2edfb; --neutral-soft: #ededf0;
  --fill: #e8e8ed; --fill-hover: #dcdce1;
  --focus: #0071e3;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 24px; --pill: 980px;
  --shadow: 0 0 #0000;
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 14%);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #161618; --sunken: #2c2c2e;
    --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #a1a1a6; --faint: #8e8e93;
    --line: #2c2c2e; --line-strong: #3a3a3c;
    --brand: #2997ff; --brand-hover: #47a6ff; --brand-ink: #ffffff; --brand-soft: #0d2a47; --link: #2997ff;
    --accent: #ff9f0a; --accent-soft: #3a2608;
    --ok: #30d158; --ok-soft: #0f2e17; --warn: #ffb340; --warn-soft: #362508;
    --bad: #ff6961; --bad-soft: #3a1214; --info: #64b5ff; --info-soft: #0d2a47;
    --ai: #bf9cff; --ai-soft: #2a1d45; --neutral-soft: #2c2c2e;
    --fill: #2c2c2e; --fill-hover: #3a3a3c;
    --focus: #2997ff;
    --shadow: 0 0 #0000; --shadow-lg: 0 12px 40px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #161618; --sunken: #2c2c2e;
  --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #a1a1a6; --faint: #8e8e93;
  --line: #2c2c2e; --line-strong: #3a3a3c;
  --brand: #2997ff; --brand-hover: #47a6ff; --brand-ink: #ffffff; --brand-soft: #0d2a47; --link: #2997ff;
  --accent: #ff9f0a; --accent-soft: #3a2608;
  --ok: #30d158; --ok-soft: #0f2e17; --warn: #ffb340; --warn-soft: #362508;
  --bad: #ff6961; --bad-soft: #3a1214; --info: #64b5ff; --info-soft: #0d2a47;
  --ai: #bf9cff; --ai-soft: #2a1d45; --neutral-soft: #2c2c2e;
  --fill: #2c2c2e; --fill-hover: #3a3a3c;
  --focus: #2997ff;
  --shadow: 0 0 #0000; --shadow-lg: 0 12px 40px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

/* Osnova */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font-sans); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; line-height: 1.12; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.55rem + 1.3vw, 2.5rem); letter-spacing: -.016em; line-height: 1.08; }
h2 { font-size: 1.38rem; letter-spacing: -.012em; }
h3 { font-size: 1.05rem; letter-spacing: -.008em; line-height: 1.3; }
h4 { font-size: .98rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--link); }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: 0; }
code { background: var(--sunken); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--sunken); padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: .82rem; letter-spacing: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: var(--radius); }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-sm { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Okvir aplikacije */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px;
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--fill) 45%, var(--bg));
  backdrop-filter: saturate(180%) blur(20px); display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px 22px; color: var(--ink); text-decoration: none; }
.logo-mark { color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-name { font: 600 1.22rem/1 var(--font-sans); letter-spacing: -.02em; }
.brand-tag { display: none; }
.nav-label { font-size: .72rem; color: var(--faint); padding: 18px 10px 6px; font-weight: 500; letter-spacing: 0; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 400; font-size: .9rem; letter-spacing: -.008em;
}
.nav-link .icon { color: var(--brand); width: 17px; height: 17px; stroke-width: 1.6; }
.nav-link:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); font-weight: 500; }
.nav-link .count { margin-left: auto; font-size: .72rem; background: var(--brand); color: var(--brand-ink); border-radius: var(--pill); padding: 1px 7px; font-weight: 600; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 32px; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar .brand { display: none; padding: 0; }
.search-form { flex: 1; max-width: 460px; position: relative; }
.search-form .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-form input[type="search"] { padding-left: 36px; background: var(--fill); border-color: transparent; border-radius: 10px; min-height: 36px; font-size: .92rem; }
.search-form input[type="search"]:focus { background: var(--surface); }
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--ink-2); background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .64rem; display: grid; place-items: center; padding: 0 4px; font-weight: 700; letter-spacing: 0; }
.main { padding: 40px 40px 96px; max-width: 1180px; width: 100%; margin: 0 auto; }
.bottom-nav { display: none; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 40; padding: 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.menu-panel a, .menu-panel button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink);
  text-decoration: none; background: none; border: 0; font: inherit; font-size: .93rem; cursor: pointer; text-align: left; letter-spacing: -.01em;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--brand); color: #fff; text-decoration: none; }
.menu-panel .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .85rem; color: var(--muted); }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: 8px 16px; }
  .topbar .brand { display: flex; }
  .topbar .brand-name { display: none; }
  .search-form { max-width: none; }
  .main { padding: 24px 16px 104px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav summary { display: grid; justify-items: center; gap: 2px; font-size: .66rem; color: var(--faint); text-decoration: none; padding: 4px; border-radius: 8px; cursor: pointer; list-style: none; letter-spacing: 0; }
  .bottom-nav a[aria-current="page"] { color: var(--brand); }
  .bottom-nav .menu-panel { bottom: calc(100% + 10px); top: auto; right: 4px; }
}

/* Zaglavlje strane: gde sam, šta je ovo, šta mogu, ko odlučuje, šta je sledeće */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--faint); margin: 0 0 14px; padding: 0; list-style: none; letter-spacing: -.01em; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); }
.page-header { margin-bottom: 32px; }
.page-header-row { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-header h1 { margin-bottom: 8px; }
.page-purpose { color: var(--muted); font-size: 1.12rem; line-height: 1.45; max-width: 60ch; margin: 0; letter-spacing: -.01em; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.page-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.page-facts > div { flex: 1 1 170px; min-width: 150px; padding: 12px 18px 12px 0; }
.page-facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.page-facts dt { color: var(--faint); font-size: .76rem; font-weight: 500; letter-spacing: -.005em; }
.page-facts dd { margin: 3px 0 0; color: var(--ink); font-weight: 400; min-width: 0; overflow-wrap: anywhere; }
.page-facts > div { min-width: 0; }
.page-facts .badge { white-space: normal; line-height: 1.35; padding-top: 3px; padding-bottom: 3px; align-items: baseline; max-width: 100%; }
.page-facts .badge::before { flex: none; transform: translateY(-1px); }
@media (max-width: 640px) {
  .page-facts > div { flex-basis: 50%; padding: 10px 10px 10px 0; }
  .page-facts > div + div { border-left: 0; padding-left: 0; }
  .page-purpose { font-size: 1.05rem; }
}

/* Raspored */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1080px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.stack-sm { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.stack-lg { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; letter-spacing: -.005em; }
.lead { font-size: 1.24rem; line-height: 1.4; color: var(--muted); letter-spacing: -.02em; }
.prose { max-width: 68ch; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose li { margin-bottom: .35em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Kartice */
.card { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card-sm { padding: 18px 20px; border-radius: var(--radius-lg); }
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card h3 { margin-bottom: 6px; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.card-link:hover { color: inherit; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgb(0 0 0 / 7%); }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.card-foot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.card-title { font: 600 1.06rem/1.3 var(--font-sans); letter-spacing: -.01em; margin: 0 0 6px; color: var(--ink); }
.kicker { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }

/* Brojevi */
.stat { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.stat-value { font: 600 2rem/1.05 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-label { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.stat-note { font-size: .76rem; color: var(--faint); margin-top: 2px; }

/* Oznake */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--pill); font-size: .74rem; font-weight: 500;
  background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap; line-height: 1.65; letter-spacing: -.005em;
}
.badge::before { display: none; }
.badge-plain::before { display: none; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--info); }
.badge-ai { background: var(--ai-soft); color: var(--ai); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: var(--pill); background: var(--fill); color: var(--ink-2); text-decoration: none; }
a.tag:hover { background: var(--fill-hover); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Dugmad: pilule kao na apple.com */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 18px; border-radius: var(--pill);
  border: 0; background: var(--fill); color: var(--ink); font: 400 .92rem/1.3 var(--font-sans); letter-spacing: -.008em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--fill-hover); color: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--link); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: transparent; color: var(--link); text-decoration: underline; }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); color: var(--bad); }
.btn-sm { padding: 5px 13px; font-size: .84rem; }
.btn-lg { padding: 11px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.button_to { display: inline; }
form.inline { display: inline; }

/* Forme */
.form { display: grid; gap: 18px; max-width: 720px; }
.form-wide { max-width: none; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
label, .label { font-weight: 500; font-size: .9rem; color: var(--ink); letter-spacing: -.01em; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"],
input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem; min-height: 44px; letter-spacing: -.01em; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .94rem; }
.check input { margin-top: 3px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--faint); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.choice small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.errors { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius); padding: 14px 18px; font-size: .92rem; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.field_with_errors input, .field_with_errors textarea, .field_with_errors select { border-color: var(--bad); }
fieldset { border: 0; border-radius: var(--radius-lg); padding: 0; margin: 0; }
legend { font-weight: 600; padding: 0 0 10px; font-size: 1rem; }
.honeypot { position: absolute; left: -5000px; }

/* Poruke */
.flash { margin-bottom: 24px; padding: 12px 18px; border-radius: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.flash-notice { background: var(--ok-soft); color: var(--ok); }
.flash-alert { background: var(--bad-soft); color: var(--bad); }
.callout { border-radius: 14px; padding: 16px 18px; border: 0; font-size: .95rem; display: flex; gap: 12px; align-items: flex-start; }
.callout > .icon { margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout-info { background: var(--info-soft); color: var(--ink); }
.callout-info > .icon { color: var(--info); }
.callout-warn { background: var(--warn-soft); color: var(--ink); }
.callout-warn > .icon { color: var(--warn); }
.callout-bad { background: var(--bad-soft); color: var(--ink); }
.callout-bad > .icon { color: var(--bad); }
.callout-ai { background: var(--ai-soft); color: var(--ink); }
.callout-ai > .icon { color: var(--ai); }
.callout-ok { background: var(--ok-soft); color: var(--ink); }
.callout-ok > .icon { color: var(--ok); }
.callout strong { color: var(--ink); }

/* Liste i tabele */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.list-title { font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -.008em; }
a.list-title:hover { color: var(--link); text-decoration: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; color: var(--muted); font-weight: 500; background: transparent; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
dl.facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: .94rem; }
dl.facts dd, dl.facts dt { overflow-wrap: anywhere; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } dl.facts dd { margin-bottom: 8px; } }

/* Segmenti i filteri */
.tabs { display: flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: 10px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.tabs a { padding: 6px 14px; color: var(--ink); text-decoration: none; font-weight: 400; font-size: .88rem; border-radius: 8px; white-space: nowrap; letter-spacing: -.01em; }
.tabs a:hover { text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.tabs a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); font-weight: 500; }
/* Navigacija kroz strane jedne celine (poduhvat): tekst sa podvlakom, kao na apple.com */
.page-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.page-nav a { padding: 10px 0; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; letter-spacing: -.01em; }
.page-nav a:hover { color: var(--ink); text-decoration: none; }
.page-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 6px 14px; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 400; background: var(--fill); }
.chip:hover { background: var(--fill-hover); text-decoration: none; color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Napredak */
.progress { height: 6px; background: var(--fill); border-radius: var(--pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: var(--pill); }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 9px; height: 9px; border-radius: 3px; background: var(--fill); }
.meter i.on { background: var(--brand); }

/* Vremenska linija */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 20px 26px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 1.5px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.timeline .when { font-size: .78rem; color: var(--faint); }
.timeline .what { font-weight: 500; font-size: .95rem; letter-spacing: -.008em; }
.timeline .why { font-size: .9rem; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }

/* Kapije poduhvata (0–10) */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 18px 6px; }
.pipeline li { position: relative; padding-top: 34px; font-size: .74rem; color: var(--faint); text-align: center; line-height: 1.25; hyphens: auto; min-width: 0; letter-spacing: -.005em; }
.pipeline .gate-note { display: block; color: var(--bad); font-size: .7rem; }
.pipeline li .n { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .76rem; background: var(--fill); color: var(--muted); }
.pipeline li.done .n { background: var(--ok); color: #fff; }
.pipeline li.current .n { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.pipeline li.blocked .n { background: var(--bad-soft); color: var(--bad); }
.pipeline li.done, .pipeline li.current { color: var(--ink); }
@media (max-width: 760px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pipeline li { text-align: left; padding: 7px 0 7px 38px; font-size: .9rem; }
  .pipeline li .n { left: 0; top: 4px; transform: none; }
}
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stage { font-size: .8rem; padding: 3px 10px; border-radius: var(--pill); background: var(--fill); color: var(--muted); }
.stage.on { background: var(--brand); color: #fff; }
.stage.past { background: var(--brand-soft); color: var(--brand); }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: var(--fill); border-radius: var(--radius-lg); padding: 14px; min-height: 160px; }
.kanban-col h3 { font: 600 .86rem/1 var(--font-sans); color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 14px; letter-spacing: -.01em; }
.task-card { background: var(--surface); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: .9rem; box-shadow: var(--shadow); }
.task-card .title { font-weight: 600; margin-bottom: 4px; }
.task-card .moves { display: flex; gap: 6px; margin-top: 10px; }

/* Diskusija */
.thread { display: grid; gap: 16px; }
.post { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.post-body { background: var(--surface); border-radius: var(--radius-lg); padding: 14px 18px; min-width: 0; box-shadow: var(--shadow); }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--faint); margin-bottom: 6px; }
.post-meta strong { color: var(--ink); font-size: .9rem; }
.post-text { white-space: pre-line; overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 14px; margin-top: 8px; font-size: .82rem; padding-left: 4px; }
.post-actions a, .post-actions button { color: var(--link); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.post-actions a:hover, .post-actions button:hover { text-decoration: underline; }
.replies { margin-left: 48px; display: grid; gap: 12px; margin-top: 12px; }
@media (max-width: 640px) { .replies { margin-left: 14px; } .post { grid-template-columns: 28px minmax(0, 1fr); } }
.quote { border-left: 3px solid var(--line-strong); padding: 4px 12px; color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.stance-for { box-shadow: inset 3px 0 0 var(--ok), var(--shadow); }
.stance-against { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.hidden-post { color: var(--faint); font-style: italic; }

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #a1a1a6, #6e6e73); color: #fff; display: inline-grid; place-items: center; font: 600 .78rem/1 var(--font-sans); flex: none; letter-spacing: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.person { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.person:hover { text-decoration: none; color: var(--link); }

/* Prazna stanja */
.empty { text-align: center; padding: 48px 24px; border-radius: var(--radius-lg); color: var(--muted); background: var(--surface); box-shadow: var(--shadow); }
.empty .icon { width: 34px; height: 34px; color: var(--faint); margin-bottom: 10px; stroke-width: 1.4; }
.empty h3 { color: var(--ink); font-size: 1.08rem; }
.empty p { max-width: 44ch; margin: 0 auto 16px; font-size: .95rem; }
.skeleton { background: linear-gradient(90deg, var(--fill), var(--surface-2), var(--fill)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; min-height: 14px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Javne strane */
.public-shell .topbar { padding: 10px max(24px, calc((100vw - 1080px) / 2)); }
.public-shell .main { max-width: 1080px; padding-top: 28px; }
.public-shell .topbar .brand { display: flex; padding: 0; }
.public-shell .topbar .brand-name { display: inline; }
.hero-mark { color: var(--ink); margin-bottom: 22px; }
.public-nav { display: flex; gap: 26px; align-items: center; margin-left: 18px; }
.public-nav a { color: var(--ink-2); text-decoration: none; font-size: .86rem; letter-spacing: -.01em; }
.public-nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .public-nav .hide-sm { display: none; } .public-nav { margin-left: 0; } }

.hero { padding: 88px 0 56px; text-align: center; display: grid; justify-items: center; }
.hero .promise { font-size: 1.05rem; font-weight: 500; color: var(--accent); margin: 0 0 12px; letter-spacing: -.005em; }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem); line-height: 1.05; letter-spacing: -.022em; max-width: 15ch; margin: 0 0 18px; }
.hero .lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); max-width: 34ch; margin: 0 0 30px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) { .hero { padding: 48px 0 32px; } }

.band { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow); }
.band-dark { background: #1d1d1f; color: #f5f5f7; }
.band-dark h2, .band-dark h3 { color: #f5f5f7; }
.band-dark .muted { color: #a1a1a6; }
.section-title { text-align: center; max-width: 30ch; margin: 0 auto 10px; font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); letter-spacing: -.02em; font-weight: 600; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 36px; letter-spacing: -.01em; }

.steps { display: grid; gap: 28px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step .num { font-size: .8rem; font-weight: 500; color: var(--faint); }
.step h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: .95rem; }
.flow li::before { content: counter(flow); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink); font-weight: 600; font-size: .8rem; }
.principles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.principles h3 { font-size: 1.05rem; }

.footer { border-top: 1px solid var(--line); margin-top: 72px; padding-top: 20px; font-size: .78rem; color: var(--faint); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* Priče (primeri) */
.story-hero { text-align: center; padding: 64px 0 40px; display: grid; justify-items: center; }
.story-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.022em; line-height: 1.06; max-width: 17ch; }
.story-hero .kicker { color: var(--accent); }
.story-hero .lead { max-width: 40ch; }
.story-figure { font: 600 clamp(2.2rem, 1.4rem + 2.6vw, 3.2rem)/1 var(--font-sans); letter-spacing: -.025em; color: var(--ink); }
.story-figure small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-top: 8px; }
.story-figures { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); text-align: center; }
.story-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.story-years li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.story-years .year { font-weight: 500; font-size: .95rem; color: var(--muted); letter-spacing: -.005em; }
.story-years h3 { font-size: 1.25rem; margin-bottom: 6px; }
.story-years p { color: var(--ink-2); margin: 0; }
.story-years .how { margin-top: 10px; font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .story-years li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.story-card { display: grid; gap: 10px; padding: 32px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.story-card:hover { transform: scale(1.01); text-decoration: none; color: inherit; }
.story-card h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.2; }
.story-card .more { color: var(--link); font-weight: 500; }
.illustrative { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); background: var(--fill); border-radius: var(--pill); padding: 3px 12px; }

/* AI memorandum */
.memo-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.memo-section:last-child { border-bottom: 0; }
.claim { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 8px; font-size: .92rem; }
.claim.unverified { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.claim .refs { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.source-ref { font-family: var(--font-mono); font-size: .76rem; background: var(--fill); padding: 1px 7px; border-radius: 6px; color: var(--ink-2); text-decoration: none; letter-spacing: 0; }

/* Odbor */
.vote-bar { display: flex; height: 8px; border-radius: var(--pill); overflow: hidden; background: var(--fill); }
.vote-bar .for { background: var(--ok); }
.vote-bar .against { background: var(--bad); }
.vote-bar .abstain { background: var(--faint); }
.seal { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; background: var(--fill); border-radius: 8px; padding: 7px 10px; letter-spacing: 0; }
.gate-closed { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad) 35%, transparent), var(--shadow); }

/* Mapa saglasnosti */
.statement-card { font: 500 1.3rem/1.4 var(--font-sans); letter-spacing: -.012em; padding: 36px 28px; text-align: center; }
.vote-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 640px) { .share-row { grid-template-columns: minmax(0, 1fr); } .vote-buttons { grid-template-columns: 1fr; } }
.share-bar { display: flex; height: 8px; border-radius: var(--pill); overflow: hidden; background: var(--fill); }
.share-bar .agree { background: var(--ok); }
.share-bar .disagree { background: var(--bad); }
.share-bar .pass { background: var(--faint); }

/* Red iz haosa: linija faza, sledeći korak, segmenti */
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.stepper li { flex: 1 1 0; min-width: 84px; position: relative; display: grid; justify-items: center; gap: 8px; font-size: .8rem; color: var(--muted); text-align: center; letter-spacing: -.01em; }
.stepper li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-strong); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before, .stepper li.trouble::before { background: var(--brand); }
.stepper .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); display: grid; place-items: center; color: #fff; }
.stepper .dot .icon { stroke-width: 2.4; width: 13px; height: 13px; }
.stepper li.done .dot { background: var(--brand); box-shadow: none; }
.stepper li.current .dot { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-soft); }
.stepper li.current .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.stepper li.trouble .dot { box-shadow: inset 0 0 0 2px var(--warn), 0 0 0 4px var(--warn-soft); }
.stepper li.trouble .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.stepper li.current .label, .stepper li.trouble .label { color: var(--ink); font-weight: 500; }
.stepper li.done .label { color: var(--ink-2); }

.next-step { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 28px; }
.next-step-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.next-step-body { flex: 1; min-width: 0; }
.next-step-title { font-weight: 600; font-size: 1rem; letter-spacing: -.008em; }
.next-step-text { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
@media (max-width: 640px) { .next-step { flex-wrap: wrap; } .next-step .btn, .next-step form { width: 100%; } .next-step-icon { display: none; } }

.tabs-ready [data-tabs-target="panel"][hidden] { display: none; }
.segment-nav { position: sticky; top: 57px; z-index: 10; padding: 6px 0 10px; margin-bottom: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); }
.segment-nav .tabs { margin-bottom: 0; }
@media (max-width: 960px) { .segment-nav { top: 53px; } }

.manage { margin-top: 10px; }
.manage > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--link); font-weight: 500; }
.manage > summary::-webkit-details-marker { display: none; }
.manage[open] > summary { margin-bottom: 10px; }
.manage-panel { padding: 16px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

.empty-inline { padding: 16px 0; color: var(--muted); font-size: .92rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty-inline .icon { color: var(--faint); }

.quick-actions { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick-action { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.quick-action:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgb(0 0 0 / 7%); text-decoration: none; color: inherit; }
.quick-action .qa-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #007aff; color: #fff; margin-bottom: 8px; }
.quick-action:nth-child(2) .qa-icon { background: #ff3b5c; }
.quick-action:nth-child(3) .qa-icon { background: #34c759; }
.quick-action:nth-child(4) .qa-icon { background: #af52de; }
.quick-action strong { font-size: .98rem; font-weight: 600; letter-spacing: -.008em; }
.quick-action span { color: var(--muted); font-size: .88rem; }

/* Štampa (zapisnici, izveštaji) */
@media print {
  .sidebar, .topbar, .bottom-nav, .page-actions, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .card, .stat, .table-wrap { box-shadow: none; border: 1px solid #ddd; }
}
