@font-face { font-family: "Sora"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/Sora-Light.ttf") format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Sora-Regular.ttf") format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Sora-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/Sora-ExtraBold.ttf") format("truetype"); }
/* Sora: OFL, static/fonts/OFL.txt */
/* Murus Monitor – sučelje v3: svijetle kartice, pill navigacija, crni i bordo naglasci */
:root {
  /* murus. identitet: bordo #6E1A2B · tinta #1C1A1B · krem #F4EFE7 · ruža #E8CFCB · more #1F5E63 · koralj #E8566E */
  --bg: #E8E1D6; --frame: #F4EFE7; --card: #FFFDF9; --ink: #1C1A1B; --ink-2: #33302F; --muted: #776F68; --line: #ECE5DA;
  --chip: #F0E9DF; --input: #F7F2EB;
  --bordo: #6E1A2B; --bordo-2: #A8364D; --bordo-soft: #F3E1DF; --ruza: #E8CFCB; --more: #1F5E63; --more-2: #3E8389; --koralj: #E8566E;
  --pos: #2E7D5B; --neu: #CFC6BA; --mix: #E0A44A; --neg: #E8566E; --na: #E6DED3;
  --c1: #1C1A1B; --c2: #6E1A2B; --c3: #1F5E63; --c4: #E0A9AE; --c5: #CFC6BA; --c6: #8C847C;
  --shadow: 0 1px 2px rgba(28, 26, 27, .04), 0 10px 30px -12px rgba(110, 26, 43, .10);
  --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0D0D; --frame: #161414; --card: #1F1C1C; --ink: #F4EFE7; --ink-2: #E4DDD3; --muted: #A1988F; --line: #2D2928;
    --chip: #2A2626; --input: #252121;
    --bordo: #C4566B; --bordo-2: #E07C8E; --bordo-soft: #3A2026; --ruza: #E8CFCB; --more: #5FA8AE; --more-2: #3E8389;
    --neu: #5E5751; --na: #302B2A;
    --c1: #F4EFE7; --c2: #E07C8E; --c3: #5FA8AE; --c4: #8F3A4C; --c5: #5E5751; --c6: #B9B0A6;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 Sora, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bordo); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.04em; margin: 0 0 4px; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.005em; }
h3 { font-size: 15.5px; font-weight: 600; margin: 4px 0 6px; line-height: 1.35; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
code { background: var(--chip); padding: 1px 6px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: 0 0 18px; }

/* ---------- okvir ---------- */
body.app { padding: 14px; }
.shell { background: var(--frame); border-radius: 30px; min-height: calc(100vh - 28px); box-shadow: 0 30px 80px -40px rgba(0,0,0,.25); overflow: hidden; }
.top { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15.5px; white-space: nowrap; }
.mark { width: 46px; height: auto; flex: 0 0 auto; display: block; }
.mark.sm { width: 26px; } .mark.xl { width: 92px; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm-w { font-weight: 800; font-size: 19px; letter-spacing: -.04em; color: var(--ink); }
.wm-w i { font-style: normal; }
.wm-s { font-weight: 300; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.brand:hover { color: inherit; }
.pillnav { display: flex; gap: 2px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--shadow); margin: 0 auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pillnav::-webkit-scrollbar { display: none; }
.pillnav a { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.pillnav a .ic { width: 15px; height: 15px; flex-basis: 15px; }
.pillnav a:hover { color: var(--ink); background: var(--chip); }
.pillnav a.on { background: var(--ink); color: var(--frame); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 99px; padding: 0 14px; height: 40px; box-shadow: var(--shadow); color: var(--muted); }
.search input { border: 0; background: transparent; padding: 0; width: 150px; outline: none; font-size: 13.5px; }
.search input:focus { outline: none; }
.me { display: flex; align-items: center; gap: 9px; background: var(--card); border-radius: 99px; padding: 4px 14px 4px 4px; box-shadow: var(--shadow); }
.me-t { display: flex; flex-direction: column; line-height: 1.15; }
.me-t b { font-size: 13px; } .me-t small { font-size: 11px; color: var(--muted); }
.body { display: grid; grid-template-columns: 64px 1fr; gap: 0; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 22px 18px; position: sticky; top: 0; height: calc(100vh - 110px); }
.rail a, .rail button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--card); border: 0; cursor: pointer; box-shadow: var(--shadow); }
.rail a:hover, .rail button:hover { color: var(--ink); }
.rail a.on { background: var(--ink); color: var(--frame); }
.rail-sep { width: 18px; height: 1px; background: var(--line); margin: 4px 0; }
.rail-grow { flex: 1; }
.rail form { margin: 0; }
.content { padding: 8px 26px 40px 22px; min-width: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* ---------- gumbi, forme ---------- */
.btn { border: 0; background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 99px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; box-shadow: var(--shadow); }
.btn .ic { width: 16px; height: 16px; flex-basis: 16px; }
.btn:hover { color: var(--ink); filter: brightness(.97); }
.btn.dark, .btn.primary { background: var(--ink); color: var(--frame); }
.btn.dark:hover, .btn.primary:hover { color: var(--frame); filter: brightness(1.25); }
.btn.accent { background: var(--bordo); color: #fff; }
.btn.soft { background: var(--chip); box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--neg); }
.btn.small { padding: 5px 12px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: default; }
button.link { background: none; border: 0; color: var(--bordo); padding: 0; font: inherit; cursor: pointer; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--ink); flex: 0 0 34px; }
.iconbtn .ic { width: 16px; height: 16px; }
.iconbtn:hover { background: var(--ink); color: var(--frame); }
.iconbtn.inv { background: rgba(255,255,255,.1); color: #fff; }
.iconbtn.inv:hover { background: #F4EFE7; color: #1C1A1B; }
input, select, textarea { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--input); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--card); }
textarea { resize: vertical; }
label.check { flex-direction: row !important; align-items: center; gap: 7px !important; font-size: 13.5px !important; color: var(--ink) !important; }
label.check input { width: auto; accent-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.chip .ic { width: 15px; height: 15px; }

.flash { padding: 11px 16px; border-radius: var(--r-md); margin: 0 0 14px; background: var(--card); box-shadow: var(--shadow); }
.flash.ok { background: #e7f4ec; color: #1d5a37; } .flash.error { background: #fbe9e7; color: #a12a22; } .flash.info { background: #fdf3e1; color: #7a5200; }
@media (prefers-color-scheme: dark) { .flash.ok { background: #18301f; color: #9fd8b3; } .flash.error { background: #3a1b19; color: #f2a39d; } .flash.info { background: #362a15; color: #f0cf8a; } }

/* ---------- zaglavlja stranica ---------- */
.greet, .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.greet p { margin: 0; max-width: 680px; }
.greet-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.period { display: inline-flex; gap: 2px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--shadow); flex-wrap: wrap; }
.period a { padding: 6px 13px; border-radius: 99px; color: var(--muted); font-size: 13px; font-weight: 600; }
.period a:hover { color: var(--ink); }
.period a.on { background: var(--ink); color: var(--frame); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--card); padding: 16px; border-radius: var(--r-lg); margin: 0 0 16px; box-shadow: var(--shadow); }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; }
.filters .grow { flex: 1; min-width: 180px; }

/* ---------- kartice ---------- */
.panel, .card-x { background: var(--card); border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 16px; box-shadow: var(--shadow); min-width: 0; }
.panel h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel h2 small, .cx-h small { font-weight: 450; color: var(--muted); font-size: 12px; }
details.panel summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cx-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.cx-note { font-size: 12.5px; color: var(--muted); margin: -8px 0 14px; }
.cx-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 10px; font-size: 13px; font-weight: 600; }
.cx-sub small { color: var(--muted); font-weight: 450; }
.big { font-size: 42px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.btn-row { display: flex; gap: 8px; margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols > .panel, .cols3 > .panel, .grid2 > .panel { margin: 0 0 16px; }

/* pregled */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.ov > section { margin: 0; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { background: var(--input); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini b { font-size: 18px; letter-spacing: -.02em; margin-top: 6px; }
.mini small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .tbar { height: 5px; margin-top: 6px; min-width: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--card); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-height: 142px; }
.tile-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-h i { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; color: var(--ink); }
.tile-h i .ic { width: 15px; height: 15px; }
.tile b { font-size: 30px; letter-spacing: -.03em; margin-top: auto; font-variant-numeric: tabular-nums; }
.tile small { font-size: 12px; color: var(--muted); }
.tile.accent { background: linear-gradient(145deg, #A8364D 0%, #6E1A2B 55%, #4E1420 100%); color: #fff; }
.tile.accent .tile-h, .tile.accent small { color: rgba(255,255,255,.82); }
.tile.accent .tile-h i { background: rgba(255,255,255,.18); color: #fff; }
.tile.accent:hover { color: #fff; filter: brightness(1.05); }
a.tile:hover { color: inherit; }
.card-dark { background: #1C1A1B; color: #F4EFE7; border-radius: var(--r-lg); padding: 20px 22px; position: relative; overflow: hidden; }
.card-dark::before { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232,86,110,.30), transparent 62%), radial-gradient(circle at 20% 80%, rgba(31,94,99,.35), transparent 60%); pointer-events: none; }
@media (prefers-color-scheme: dark) { .card-dark { background: #0a0a0b; box-shadow: inset 0 0 0 1px #2a2a2d; } }
.card-dark .muted { color: #a8a39d; }
.stories3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.st { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px; border-left: 1px solid rgba(255,255,255,.1); color: #f2f0ed; }
.st:first-child { padding-left: 0; border-left: 0; }
.st:hover { color: #fff; }
.st b { font-size: 15px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.st-meta { display: flex; justify-content: space-between; font-size: 12px; color: #a8a39d; }
.st-foot { font-size: 12px; color: #a8a39d; }
.prog { height: 6px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #F4EFE7, #E8CFCB); }

/* avatari */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--chip); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; flex: 0 0 auto; }
.avatar.sm { width: 30px; height: 30px; font-size: 10.5px; }
.avatar.xs { width: 24px; height: 24px; font-size: 9.5px; }
.me .avatar { background: var(--ink); color: var(--frame); }
.avatars { display: flex; margin-bottom: 12px; padding-left: 8px; }
.avatars .avatar { margin-left: -8px; border: 3px solid var(--card); width: 44px; height: 44px; }
.avatars.sm .avatar { width: 32px; height: 32px; border-color: #1C1A1B; background: #33302F; color: #F4EFE7; }
.avatar.ring-hi { background: #e3f1e8; color: var(--pos); } .avatar.ring-lo { background: #fbe7e5; color: var(--neg); } .avatar.ring-mid { background: #fbf0dc; color: #a06a10; }
@media (prefers-color-scheme: dark) { .avatar.ring-hi { background: #18301f; } .avatar.ring-lo { background: #3a1b19; } .avatar.ring-mid { background: #362a15; color: var(--mix); } }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pname { display: flex; flex-direction: column; font-weight: 600; font-size: 13.5px; min-width: 0; }
.pname small { font-weight: 400; color: var(--muted); font-size: 12px; }
.score-pill { font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.score-pill.hi { background: #e3f1e8; color: var(--pos); } .score-pill.lo { background: #fbe7e5; color: var(--neg); } .score-pill.mid { background: #fbf0dc; color: #a06a10; }
@media (prefers-color-scheme: dark) { .score-pill.hi { background: #18301f; } .score-pill.lo { background: #3a1b19; } .score-pill.mid { background: #362a15; color: var(--mix); } }

/* tablica objava */
table.feed { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.feed th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 10px; background: var(--input); }
table.feed th:first-child { border-radius: 12px 0 0 12px; } table.feed th:last-child { border-radius: 0 12px 12px 0; }
table.feed td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.feed tr:last-child td { border-bottom: 0; }
table.feed td.ttl { white-space: normal; font-weight: 600; min-width: 260px; }
.srcname { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.pos { color: var(--pos); } .status.neg { color: var(--neg); } .status.mix { color: #B57A1E; } .status.neu { color: var(--muted); }

/* grafovi */
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .grid.mid { stroke: var(--muted); stroke-dasharray: 3 3; }
svg.chart .track { fill: var(--input); }
svg.chart .ax, svg.donut .ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
svg.donut { width: 160px; height: 160px; flex: 0 0 160px; }
svg.donut .donut-n { fill: var(--ink); font-size: 26px; font-weight: 700; font-family: inherit; letter-spacing: -.03em; }
.dlegend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 150px; }
.dlegend li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.dlegend li span { flex: 1; color: var(--ink-2); }
.dlegend i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.dlegend.row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.dlegend.row li span { flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hb { display: grid; grid-template-columns: minmax(80px, 1fr) 46px; gap: 4px 10px; align-items: center; font-size: 13px; }
.hb-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { grid-column: 1 / -1; grid-row: 2; height: 8px; background: var(--input); border-radius: 8px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 8px; }
.hb-t i.g1 { background: linear-gradient(90deg, #6E1A2B, #A8364D 60%, #E8566E); }
.hb-t i.g2 { background: linear-gradient(90deg, #1F5E63, #3E8389 70%, #8CBFC2); }
.hb-t i.g3 { background: linear-gradient(90deg, #A79E94, #D9D1C6); }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; grid-row: 1; grid-column: 2; }
.hb-note { display: none; }
.empty-chart { color: var(--muted); font-size: 13px; padding: 28px 0; text-align: center; }

.tbar { flex: 1; display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--input); gap: 2px; min-width: 50px; }
.tbar i { display: block; height: 100%; }
.tbar .t-pozitivan { background: var(--pos); } .tbar .t-neutralan { background: var(--neu); }
.tbar .t-mješovit { background: var(--mix); } .tbar .t-negativan { background: var(--neg); }
.trow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow .n { flex: 0 0 150px; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .c { flex: 0 0 44px; text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* KPI (ostale stranice) */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 16px; }
.kpi { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 28px; letter-spacing: -.03em; }
.kpi span { font-size: 13px; color: var(--muted); }
.delta { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.delta.up { background: #e3f1e8; color: var(--pos); } .delta.down { background: #fbe7e5; color: var(--neg); } .delta.flat { background: var(--chip); color: var(--muted); }
@media (prefers-color-scheme: dark) { .delta.up { background: #18301f; } .delta.down { background: #3a1b19; } }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.stat { background: var(--card); border-radius: var(--r-md); padding: 10px 16px; min-width: 100px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.tone-negativan b { color: var(--neg); } .stat.tone-pozitivan b { color: var(--pos); }
.stat.tone-mješovit b { color: #b77a12; } .stat.tone-neutralan b { color: var(--muted); }

/* objave */
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.card { background: var(--card); border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--na); }
.card p { margin: 4px 0; }
.card h3 a:hover { color: var(--bordo); }
.card.dim { opacity: .55; }
.tone-border-pozitivan::before { background: var(--pos); } .tone-border-negativan::before { background: var(--neg); }
.tone-border-mješovit::before { background: var(--mix); } .tone-border-neutralan::before { background: var(--neu); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.pill.tone-pozitivan { background: #e3f1e8; color: var(--pos); } .pill.tone-negativan { background: #fbe7e5; color: var(--neg); }
.pill.tone-mješovit { background: #fbf0dc; color: #a06a10; } .pill.tone-neutralan { background: var(--chip); color: var(--muted); }
@media (prefers-color-scheme: dark) { .pill.tone-pozitivan { background: #18301f; } .pill.tone-negativan { background: #3a1b19; } .pill.tone-mješovit { background: #362a15; color: var(--mix); } }
.pill.pr { background: #fdf0d5; color: #8a5a00; }
.pill.kw { background: var(--bordo-soft); color: var(--bordo); } .pill.star { background: #fff4c2; color: #6b5300; }
.pill.ok { background: #e3f1e8; color: var(--pos); } .pill.bad { background: #fbe7e5; color: var(--neg); }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin-top: 8px; color: var(--muted); }
.actions a { color: var(--ink); font-weight: 600; }
.actions form { display: flex; gap: 14px; }
.actions button.link { color: var(--muted); }
.empty { background: var(--card); padding: 30px; border-radius: var(--r-lg); text-align: center; color: var(--muted); box-shadow: var(--shadow); }
.people { font-size: 12.5px; color: var(--muted); }
.people b { color: var(--ink); font-weight: 600; }

.pol { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pol:last-child { border-bottom: 0; }
.score { font-size: 22px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center; background: var(--chip); }
.score.hi { color: var(--pos); background: #e3f1e8; } .score.lo { color: var(--neg); background: #fbe7e5; } .score.mid { color: #a06a10; background: #fbf0dc; }
@media (prefers-color-scheme: dark) { .score.hi { background: #18301f; } .score.lo { background: #3a1b19; } .score.mid { background: #362a15; color: var(--mix); } }
.gauge { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--neg), var(--neu) 50%, var(--pos)); position: relative; margin: 8px 0; max-width: 360px; }
.gauge b { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -5px; background: var(--card); border: 3px solid var(--ink); border-radius: 50%; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chain a { font-size: 12px; background: var(--chip); border-radius: 99px; padding: 4px 10px; color: var(--ink-2); }
.chain a.first { background: var(--bordo); color: #fff; }
.quote { background: var(--input); border-radius: var(--r-md); padding: 14px 16px; margin: 10px 0; }
.quote p { margin: 0 0 6px; font-size: 15px; }

table.data, .tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, .tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 9px 10px; background: var(--input); }
table.data th:first-child, .tbl th:first-child { border-radius: 12px 0 0 12px; } table.data th:last-child, .tbl th:last-child { border-radius: 0 12px 12px 0; }
table.data td, .tbl td { border-bottom: 1px solid var(--line); padding: 11px 10px; vertical-align: top; }
.tbl { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px; border-collapse: separate; border-spacing: 0; }
.scroll { overflow-x: auto; }
.sugg { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sugg form { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.form-grid label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; }
.form-grid .span2, .form-grid .row { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; }
.wrapbtn { flex-wrap: wrap; }
.panel label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); margin: 0; background: var(--input); padding: 6px 12px; border-radius: 99px; }
.checks input { width: auto; accent-color: var(--ink); }
.bodytext { white-space: pre-line; font-size: 14px; max-height: 520px; overflow: auto; }
.article-title { font-size: 26px; }

.login-box { max-width: 400px; margin: 12vh auto; background: var(--card); border-radius: 28px; padding: 34px; text-align: center; box-shadow: 0 30px 80px -40px rgba(0,0,0,.3); }
.login-mark { display: flex; justify-content: center; margin-bottom: 14px; }
.login-wm { display: flex; justify-content: center; margin-bottom: 6px; }
.login-wm .wm { align-items: center; } .login-wm .wm-w { font-size: 34px; } .login-wm .wm-s { font-size: 12px; letter-spacing: .3em; }
.by { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 800; letter-spacing: -.03em; font-size: 14px; }
.by i { font-style: normal; color: var(--bordo); } .by em { font-style: normal; font-weight: 300; letter-spacing: .3em; font-size: 12px; margin-left: 4px; }
body.plain { background: var(--frame); }
.login-box form { text-align: left; margin-top: 22px; }
.login-box label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.login-box .btn { width: 100%; padding: 12px; }

/* ---------- prilagodba ---------- */
@media (max-width: 1280px) {
  .search { display: none; }
}
@media (max-width: 1120px) {
  .ov { grid-template-columns: 1fr 1fr; }
  .ov > section:nth-child(3) { grid-column: 1 / -1; }
  .span2 { grid-column: 1 / -1; }
  .cols, .cols3 { grid-template-columns: 1fr; }
  .me-t { display: none; }
  .me { padding: 4px; }
}
@media (max-width: 860px) {
  .wm-s { display: none; }
  body.app { padding: 0; }
  .shell { border-radius: 0; min-height: 100vh; }
  .top { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .brand { flex: 1; }
  .pillnav { order: 3; flex: 1 0 100%; margin: 0; }
  .top-actions .btn span { display: none; }
  .body { display: block; }
  .rail { position: static; height: auto; flex-direction: row; padding: 0 16px 6px; overflow-x: auto; }
  .rail-grow { flex: 1; } .rail-sep { width: 1px; height: 18px; margin: 0 2px; }
  .content { padding: 8px 16px 40px; }
  .ov, .tiles, .grid2, .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .stories3 { grid-template-columns: 1fr; }
  .st { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
  .st:first-child { border-top: 0; padding-top: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .trow .n { flex-basis: 110px; }
  .filters label { flex: 1 1 140px; }
  h1 { font-size: 25px; }
  .big { font-size: 34px; }
}
@media (max-width: 420px) {
  .minis { grid-template-columns: 1fr 1fr; }
  .minis .mini:nth-child(3) { display: none; }
}

/* ---------- područje: Zadar / Hrvatska / Sve (v6) ---------- */
.area { display: inline-flex; gap: 2px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--shadow); }
.area a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.area a:hover { color: var(--ink); }
.area a.on { background: var(--ink); color: var(--frame); }
.area .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.area .dot.loc { background: var(--bordo); } .area .dot.nat { background: var(--more); }
.area a.on .dot.loc { background: var(--ruza); } .area a.on .dot.nat { background: #8FC3C7; }
.tag-nat { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #E3EEEE; color: var(--more); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
@media (prefers-color-scheme: dark) { .tag-nat { background: #1C3537; color: #8FC3C7; } }
.tile.nat { background: var(--more); color: #fff; }
.tile.nat .tile-h, .tile.nat small { color: #CFE5E6; }
.tile.nat .tile-h i { background: rgba(255,255,255,.14); color: #fff; }
.tile.nat .delta { color: #fff; }
.group-h { margin: 22px 4px 10px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 1560px) { .top:has(.area) .search { display: none; } }
@media (max-width: 1200px) { .top:has(.area) .top-actions .btn span { display: none; } }
@media (max-width: 860px) {
  .area { order: 2; }
  .area a { padding: 6px 10px; }
}
@media print {
  .top, .rail, .period, .filters, .actions, .greet-tools { display: none !important; }
  body.app { padding: 0; background: #fff; } .shell { box-shadow: none; background: #fff; }
  .panel, .card-x, .tile { box-shadow: none; break-inside: avoid; border: 1px solid #ddd; }
}
