/* Pristop OS colour layer, loaded after the black-and-white base.
   The brand stays as on pristop.si: black bar with the white wordmark, heavy uppercase
   geometric headings, square corners, hairline rules.
   Colour is added by role, never as decoration:
     ink     structure, type, the top bar
     cobalt  action, selection, progress and charted data (taken from Pristop's showreel)
     orange  attention and ratings (the same showreel frame)
     green / red / amber  status only */
:root {
  --accent: #1a3fe6;
  --accent-deep: #1230b4;
  --accent-wash: #eef2fe;
  --accent-tint: #d5defc;
  --accent-on-ink: #7f98ff;
  --spark: #ff6a13;
  --spark-ink: #b3470b;
  --spark-wash: #fff0e4;
  --pos-wash: #e6f3eb;
  --neg-wash: #fbeae6;
  --warn-wash: #f9efdb;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Shell ---------- */
.mi.on::after { background: var(--accent-on-ink); }
.mi .panel { box-shadow: 8px 8px 0 rgba(26,63,230,.14); }
.mi .panel a:hover { background: var(--accent); color: #fff; }
.mi .panel a.on::before { background: var(--accent); }
.mi .panel a b { background: var(--accent); }
.mi .panel a:hover b { background: #fff; color: var(--accent); }
.gsearch:focus-within { border-color: var(--accent-on-ink); }
.iconbtn b { background: var(--spark); color: #000; }
.user .who { background: var(--accent); color: #fff; }
.chip .mini i { background: var(--accent); }
a.chip:hover { background: var(--accent-wash); border-color: var(--accent); }
.pop { box-shadow: 8px 8px 0 rgba(26,63,230,.12); }
.pop a.pi:hover, .pop button.pi:hover { background: var(--accent-wash); }
.sitemap li > a:hover .nm { color: var(--accent); border-bottom-color: var(--accent); }
.sitemap li .tabsl a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Type ---------- */
.link { color: var(--accent); border-bottom-color: var(--accent); }
.link:hover { background: var(--accent); color: #fff; }
.ext { color: var(--accent); border-bottom-color: var(--accent); }
.ext:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.crumbs a:hover { color: var(--accent); }
.prose li::before { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.ghost:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.btn.danger:hover { background: var(--neg); color: #fff; border-color: var(--neg); }
.banner .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Tags and status ---------- */
.tag.pos { background: var(--pos-wash); border-color: var(--pos-wash); }
.tag.neg { background: var(--neg-wash); border-color: var(--neg-wash); }
.tag.warn { background: var(--warn-wash); border-color: var(--warn-wash); }
.st.run { color: var(--accent); }
.st.run i { background: var(--accent); }
.st.pos { color: var(--pos); }
.cite { border-color: var(--accent-tint); background: var(--accent-wash); color: var(--accent); }
.cite:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.srcchip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Progress ---------- */
.bar i { background: var(--accent); }
.spin { border-top-color: var(--accent); }

/* ---------- Tables, lists ---------- */
tr.click:hover td { background: var(--accent-wash); }
.list > a:hover, .list > .click:hover { background: var(--accent-wash); }
.list.attn > a > svg:first-child { color: var(--spark); }

/* ---------- Tabs ---------- */
.tabs a.on { border-bottom-color: var(--accent); }
.tabs a.on b { color: var(--accent); }

/* ---------- Forms ---------- */
.in:focus, .searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.searchbox.xl { border-color: var(--ink); }
.searchbox.xl:focus-within { border-color: var(--accent); }
.check input:checked { background-color: var(--accent); border-color: var(--accent); }
.check input[type=radio]:checked { background: var(--paper); box-shadow: inset 0 0 0 4px var(--accent); border-color: var(--accent); }
.toggle input:checked { background: var(--accent); border-color: var(--accent); }
.seg button.on { background: var(--accent); color: #fff; }
.seg button:not(.on):hover { background: var(--accent-wash); color: var(--accent); }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.drop { border-color: var(--accent); background: var(--accent-wash); }
.drop.over { background: var(--accent); color: #fff; }

/* ---------- Banners ---------- */
.banner { border-color: var(--accent-tint); background: var(--accent-wash); }
.banner > svg:first-child { color: var(--accent); }
.banner.warn { border-color: var(--warn-wash); background: var(--warn-wash); }
.banner.neg { border-color: var(--neg-wash); background: var(--neg-wash); }
.banner.pos { border-color: var(--pos-wash); background: var(--pos-wash); }
.banner.warn > svg:first-child, .banner.neg > svg:first-child, .banner.pos > svg:first-child { color: inherit; }
.banner.black { background: var(--ink); border-color: var(--ink); }
.banner.black > svg:first-child { color: inherit; }

/* ---------- Modal, drawer ---------- */
.modal { box-shadow: 12px 12px 0 rgba(26,63,230,.20); }

/* ---------- Media ---------- */
.wave i.on, .meter i.on { background: var(--accent); }
.player .ctl .track i { background: var(--spark); }

/* ---------- Chat ---------- */
.msg.me { background: var(--accent); color: #fff; }
.msg.ai { border-left-color: var(--accent); }
.typing i { background: var(--accent); }

/* ---------- Rating ---------- */
.stars i.on { background: var(--spark); }
.thumbs button.on { background: var(--accent); color: #fff; }

/* ---------- Charts ---------- */
.chart .ln { stroke: var(--accent); }
.chart .ln.b { stroke: var(--mute); }
.chart .dot { fill: var(--accent); }
.legend i { background: var(--accent); }
.rn-chart .pt { stroke: var(--accent); }
.rn-chart .pt.new { fill: var(--accent); }

/* ---------- People ---------- */
.who.h1 { background: var(--accent); }
.who.h2 { background: var(--spark); color: #000; }
.who.h3 { background: var(--accent-tint); color: var(--accent-deep); }
.who.h4 { background: #0b1c66; }

/* ---------- Login ---------- */
.msbtn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Matrix, graph ---------- */
.matrix .yes { background: var(--accent); }
.matrix .part { border-color: var(--accent); }
.graph .edge.hi { stroke: var(--accent); }
.graph .node.fill rect, .graph .node.fill circle { fill: var(--accent); stroke: var(--accent); }

/* ---------- Ingestion ---------- */
.ing-hero { background: var(--accent); }
.ing-hl > .label, .ing-hc .label { color: rgba(255,255,255,.66); }
.ing-hl .st.run { color: #fff; }
.ing-hl .st.run i { background: #fff; }
.ing-hl .st.idle { color: rgba(255,255,255,.66); }
.ing-hrun, .ing-hc b em, .ing-hc small { color: rgba(255,255,255,.8); }
.ing-hc { border-left-color: rgba(255,255,255,.26); }
.ing-hc small a { border-bottom-color: rgba(255,255,255,.55); }
.ing-hc.bad b { color: #ffb48a; }
.ing-hbar { background: rgba(255,255,255,.22); }
.ing-hero.idle .ing-hbar i { background: rgba(255,255,255,.5); }
.ing-hero.idle .ing-hp, .ing-hero.paused .ing-hp { color: rgba(255,255,255,.82); }
.ing-strip { border-color: var(--rule); }
.ing-stage:hover { background: var(--accent-wash); }
.ing-stage:hover .ing-arrow { color: var(--accent); }
.ing-tr[data-href]:hover, .ing-er:hover, .ing-er.on { background: var(--accent-wash); }
.ing-gantt i { background: var(--accent); }
.ing-gantt i.failed { background: var(--neg); }
.ing-gantt i.paused { background: var(--warn); }
.ing-gantt i.cancelled { background: var(--mute); }
.ing-pn a:hover { border-color: var(--accent); color: var(--accent); }
.ing-split i, .ing-counts dt .sq { background: var(--accent); }
.ing-split i.b, .ing-counts dt .sq.b { background: var(--accent-tint); }
.ing-path .ok i, .ing-path .now i { background: var(--accent); border-color: var(--accent); }
.ing-ln.target::before { background: var(--accent); }
.ing-more { background: var(--accent); }
.ing-more:hover { background: var(--accent-deep); }

/* ---------- Knowledge base ---------- */
.kb-split .a, .kb-leg i.a { background: var(--accent); }
.kb-res.on::before, .kb-as.on::before { background: var(--accent); }
.kb-rel i.on { background: var(--accent); }
.kb-page mark, .mt-line mark { background: #ffd9bd; color: var(--ink); }
.kb-tr a.on { background: var(--accent); color: #fff; }

/* ---------- Pitches, briefs, meetings ---------- */
a:hover > .pt-n { background: var(--accent); color: #fff; }
.pt-file button:hover { background: var(--accent); color: #fff; }
.bf-pick.on .rd, .bf-share input:checked, .mt-rcpt input:checked { background-color: var(--accent); border-color: var(--accent); }
.bf-alines li.on::before { background: var(--accent); }
.mt-meter i.on, .mt-wave i.on, .mt-talk i { background: var(--accent); }
.mt-audio .pp { background: var(--accent); }

/* ---------- Settings, admin ---------- */
.set-seg a.on, .set-modes button.on, .adm-roles > a.on, .adm-pick a.on { background: var(--accent); color: #fff; }
.set-mail .mb li::before { background: var(--accent); }
.adm-legend .matrix i.yes { background: var(--accent); }
.adm-matrix tr.adm-dim .yes { background: #b0b0b0; }

/* Secondary text inside a selected cobalt cell: grey is unreadable on cobalt, use translucent white */
.adm-roles > a.on .label, .set-modes button.on .label, .adm-pick a.on small { color: rgba(255,255,255,.74); }
.adm-roles > a.on .who, .set-modes button.on .mk { color: var(--accent-deep); }
.adm-roles > a:not(.on):hover, .set-modes button:not(.on):hover, .adm-pick a:not(.on):hover, .kb-tr a:not(.on):hover { background: var(--accent-wash); }
