:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e4e7ec;
  --text: #101828;
  --muted: #667085;
  --faint: #98a2b3;
  --green: #79b41c;
  --green-soft: #eef6e1;
  --green-ink: #4d7a0c;
  --blue: #005da8;
  --blue-soft: #e6f0f9;
  --logo-text: #005da8;
  --amber-soft: #fef3e2;
  --err: #b42318; --err-soft: #fef3f2;
  --amber-ink: #a15c07;
  --ring: rgba(121, 180, 28, .45);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17; --surface: #121826; --surface-2: #1a2232; --border: #263043;
    --text: #eef1f6; --muted: #98a2b3; --faint: #667085;
    --green: #8cc63f; --green-soft: rgba(140, 198, 63, .12); --green-ink: #a6d65f;
    --blue: #5aa9ec; --blue-soft: rgba(90, 169, 236, .12); --logo-text: #e8eef6;
    --amber-soft: rgba(247, 144, 9, .14); --amber-ink: #fdb022; --err: #f97066; --err-soft: rgba(240, 68, 56, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --surface: #121826; --surface-2: #1a2232; --border: #263043;
  --text: #eef1f6; --muted: #98a2b3; --faint: #667085;
  --green: #8cc63f; --green-soft: rgba(140, 198, 63, .12); --green-ink: #a6d65f;
  --blue: #5aa9ec; --blue-soft: rgba(90, 169, 236, .12); --logo-text: #e8eef6;
  --amber-soft: rgba(247, 144, 9, .14); --amber-ink: #fdb022; --err: #f97066; --err-soft: rgba(240, 68, 56, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

/* Raspored */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; padding: 2px 10px 18px; }
.brand svg { height: 30px; width: auto; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-weight: 500; transition: background .12s, color .12s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--green-soft); color: var(--green-ink); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 0 7px; }
.nav a .soon { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--faint); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.id-card {
  border: 1px dashed var(--border); border-radius: 12px; padding: 12px; font-size: 12.5px; color: var(--muted);
  background: var(--surface-2);
}
.id-card strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.me:hover { background: var(--surface-2); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; font-size: 12px; font-weight: 600;
}
.me .who { line-height: 1.25; min-width: 0; }
.me .who b { display: block; font-weight: 600; font-size: 13px; }
.me .who span { font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 12px 32px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.icon-btn.menu-btn { display: none; }
.search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--faint);
  box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--ring); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.search input::placeholder { color: var(--faint); }
kbd {
  font: 600 11px/1 Inter, system-ui, sans-serif; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--amber-soft); color: var(--amber-ink); white-space: nowrap;
}

.content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px 32px 48px; max-width: 1440px; width: 100%; }

/* Pozdrav */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hello h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.hello p { margin: 6px 0 0; color: var(--muted); }

.section { margin-bottom: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.section-head span { color: var(--muted); font-size: 12.5px; }

/* Omiljene */
.pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.pin {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer;
}
.pin:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.pin b { font-weight: 600; font-size: 13.5px; }
.pin b, .pin small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin small { display: block; color: var(--muted); font-size: 12px; margin-top: -10px; }
.pins-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; }

/* Filteri */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-weight: 500; font-size: 13px; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Kartice aplikacija */
.cat { margin-bottom: 26px; }
.cat h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s, transform .15s; cursor: pointer;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--green) 40%, var(--border)); transform: translateY(-1px); }
.card .body { min-width: 0; flex: 1; padding-right: 22px; display: flex; flex-direction: column; }
.card-link { position: absolute; inset: 0; border-radius: 14px; z-index: 1; }
.card-link:focus-visible { outline-offset: -2px; }
.card .name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.card .desc { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.card .host { margin-top: 8px; font: 500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.new { background: var(--green-soft); color: var(--green-ink); }
.tag.pilot { background: var(--amber-soft); color: var(--amber-ink); }
.tag.dev { background: var(--blue-soft); color: var(--blue); }
.star {
  z-index: 2; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity .12s;
}
.card:hover .star, .star.on, .star:focus-visible, .card:focus-within .star { opacity: 1; }
.star:hover { background: var(--surface-2); color: var(--text); }
.star.on { color: #f5b301; }
.star.on svg { fill: currentColor; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; }

/* Ikonice aplikacija */
.tile {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; position: relative;
  background: var(--green-soft); color: var(--green-ink);
}
.pin .tile { width: 44px; height: 44px; border-radius: 12px; }
.tile.blue { background: var(--blue-soft); color: var(--blue); }
.tile.gray { background: var(--surface-2); color: var(--muted); }
.tile svg.siren { width: 28px; height: 28px; }
.tile .letter {
  position: absolute; right: 3px; bottom: 2px; font-size: 11px; font-weight: 800; line-height: 1; color: var(--green-ink);
  text-shadow: 0 0 2px var(--surface), 0 0 2px var(--surface), 0 0 3px var(--surface);
}
.tile .mono { font-weight: 700; font-size: 15px; letter-spacing: -.02em; }

/* Desna kolona */
.rail { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.panel h2 small { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.status-all { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--ring); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .card, .pin { transition: none; } }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 13px; border-top: 1px solid var(--border); }
.status-list li:first-child { border-top: 0; }
.status-list .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status-list li.up .ok { background: var(--green); }
.status-list li.down .ok { background: var(--err); }
.status-list li.down .ms { color: var(--err); }
.status-all.bad { background: var(--err-soft); color: var(--err); }
.status-all.bad .pulse { background: var(--err); animation: none; }
.status-list .ms { margin-left: auto; color: var(--faint); font: 500 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.news li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; }
.news b { display: block; font-size: 13px; font-weight: 600; }
.news span { display: block; font-size: 12.5px; color: var(--muted); }
.news time { font-size: 11.5px; color: var(--faint); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 500; color: var(--text); background: var(--surface);
}
.quick a:hover { background: var(--surface-2); }
.quick a svg { color: var(--green-ink); }

.foot { padding: 0 32px 28px; color: var(--faint); font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Poruka */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg);
  transition: opacity .18s, transform .18s; max-width: calc(100vw - 32px); z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .8; }

.scrim { display: none; }


/* ---------- AI panel ---------- */
.brand { gap: 10px; }
.brand .sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); background: var(--green-soft); border-radius: 6px; padding: 2px 6px; }
.content.one { grid-template-columns: minmax(0, 1fr); }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.pill.ro { background: var(--blue-soft); color: var(--blue); }

/* Brojke */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 11.5px; color: var(--faint); }
a.kpi:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); box-shadow: var(--shadow-lg); }

/* Trake (upotreba modela) */
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 44px; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.bar-row:hover { background: var(--surface-2); }
.bar-row .nm { font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; }
.bar-fill { height: 12px; border-radius: 0 4px 4px 0; background: var(--green); min-width: 3px; }
.bar-row .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); font-size: 12.5px; }

/* Tabele */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
table.t td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; }
table.t tr:first-child td { border-top: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--surface-2); }
table.t td .k { display: block; font: 500 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); margin-top: 2px; }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cnt { color: var(--muted); font-size: 12.5px; }

/* Oznake */
.badge { display: inline-flex; align-items: center; gap: 5px; font: 500 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0 7px; border-radius: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.badge.model { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag.ok { background: var(--green-soft); color: var(--green-ink); }
.tag.warn { background: var(--amber-soft); color: var(--amber-ink); }
.tag.err { background: var(--err-soft); color: var(--err); }
.tag.app { background: var(--surface-2); color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.st.active::before { background: var(--green); }
.st.likely_active::before { background: color-mix(in srgb, var(--green) 55%, var(--surface)); }
.st.dead::before, .st.disabled::before { background: var(--err); }

/* Filteri */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select { height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; padding: 0 10px; }
.filters .cnt { margin-left: auto; }

/* Fioka sa detaljima */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 41; transform: translateX(100%); transition: transform .2s; display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-head h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.drawer-head .k { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); margin-top: 4px; }
.drawer-head .icon-btn { margin-left: auto; flex: none; }
.drawer-body { overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 16px; }
.block h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.block h3 .act { margin-left: auto; text-transform: none; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kv > div { padding: 8px 12px; border-top: 1px solid var(--border); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv > div:nth-child(odd) { color: var(--muted); background: var(--surface-2); }
pre.code { margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg.i { width: 15px; height: 15px; }
.edit-row { display: flex; flex-wrap: wrap; gap: 8px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; }
.note.warn { background: var(--amber-soft); color: var(--amber-ink); }
.note.err { background: var(--err-soft); color: var(--err); }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.files li { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow-wrap: anywhere; }

/* Upozorenja */
.warns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.warns li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: 12.5px; cursor: pointer; }
.warns li:first-child { border-top: 0; }
.warns li:hover b { text-decoration: underline; }
.warns li b { display: block; font: 500 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); overflow-wrap: anywhere; }
.warns li span { color: var(--muted); }
.warns svg.i { width: 16px; height: 16px; margin-top: 1px; }
.warns .err svg { color: var(--err); }
.warns .warn svg { color: var(--amber-ink); }
.warns .info svg { color: var(--faint); }

/* Tokovi */
.flow { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.flow h3 { margin: 0; font-size: 15px; }
.flow > p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.steps { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 0 0 210px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.step.ai { background: var(--surface); border-color: color-mix(in srgb, var(--green) 45%, var(--border)); cursor: pointer; }
.step.ai:hover { box-shadow: var(--shadow-lg); }
.step .lbl { font-weight: 600; font-size: 13px; line-height: 1.35; }
.step .sm { font-size: 12px; color: var(--muted); line-height: 1.4; }
.arrow { flex: 0 0 28px; display: grid; place-items: center; color: var(--faint); }

/* Kartice aplikacija */
.card .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.app-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.app-head .tile { width: 48px; height: 48px; border-radius: 13px; }
.app-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.app-head p { margin: 2px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
.steps-num { counter-reset: s; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps-num li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.steps-num li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.steps-num b { display: block; margin-bottom: 2px; }
.steps-num p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

@media (max-width: 1200px) {
  .content { grid-template-columns: minmax(0, 1fr); }
  .rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20; }
  .icon-btn.menu-btn { display: grid; }
  .top { padding: 10px 16px; }
  .content { padding: 20px 16px 40px; }
  .foot { padding: 0 16px 24px; }
  .top .pill, .search kbd { display: none; }
  .hello h1 { font-size: 22px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 120px 1fr; }
  .bar-row { grid-template-columns: minmax(90px, 130px) 1fr 32px; }
  .drawer-head, .drawer-body { padding-left: 16px; padding-right: 16px; }
}
.search { min-width: 0; }
.top-actions { flex: none; }
