@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-sans-3-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SPOT palette taken from spot.gov.si */
:root {
  --spot: #397289;
  --spot-dark: #1b495a;
  --spot-deep: #2a5566;
  --spot-mid: #3e7c94;
  --spot-sky: #529dba;
  --spot-light: #ecf2f4;
  --accent: #ffc689;
  --accent-deep: #e9a55c;
  --dot: #f39a3c;           /* Piko's dot: the one warm, lively accent */
  --ink: #111;
  --text: #333;
  --muted: #666;
  --line: #d7d7d7;
  --soft: #edecec;
  --bg: #f7f9fa;
  --card: #fff;
  --ok: #2e7d4f;
  --bad: #b3261e;
  --radius: 14px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--spot-mid); }
a:hover { color: var(--spot-dark); }
h1, h2, h3, h4 { color: var(--spot-dark); line-height: 1.25; }
h1 { font-size: 1.7rem; margin: 0 0 .4rem; }
h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
code { background: var(--spot-light); padding: 0 .3em; border-radius: 4px; }

/* ---- layout ---- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 264px; flex: 0 0 264px; background: var(--spot-dark); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 8px 18px; }
.piko-mark { width: 38px; height: 38px; flex: 0 0 auto; display: block; }
.piko-bg { fill: var(--spot); }
.piko-bubble { fill: #fff; }
.piko-dot { fill: var(--dot); transform-box: fill-box; transform-origin: center; }
.brand-name { line-height: 1.15; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: .12em; display: inline-flex; align-items: baseline; }
.wordmark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); display: inline-block; margin-left: 3px; }
.brand-name small { display: block; font-weight: 400; font-size: 12.5px; opacity: .75; letter-spacing: 0; margin-top: 2px; }
.new-chat {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit;
  text-decoration: none; margin-bottom: 14px;
}
.new-chat:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  color: #e6eff2; text-decoration: none; padding: 9px 12px; border-radius: 9px; display: flex; align-items: center;
  gap: 10px; font-size: 15px;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: var(--spot); color: #fff; }
.nav .badge { margin-left: auto; }
.badge {
  background: var(--accent); color: var(--spot-dark); font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 1px 8px; line-height: 1.5;
}
.side-history { margin-top: 18px; overflow-y: auto; flex: 1; min-height: 0; }
.side-history h4 { color: #b9cdd5; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 12px 6px; }
.side-history button {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: #dbe7eb; font: inherit;
  font-size: 14px; padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.side-history button:hover, .side-history button.active { background: rgba(255,255,255,.08); color: #fff; }
.side-foot { font-size: 12.5px; color: #b9cdd5; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot a { color: var(--accent); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.page { width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 28px 60px; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.4rem; }

/* ---- chat ---- */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.chat-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.chat-inner { max-width: 800px; margin: 0 auto; padding: 32px 24px 24px; }
.welcome {
  min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; padding: 4vh 0 2vh;
}
/* Two soft blobs drift slowly behind the greeting. Only transform is animated, so the blurred layers are
   rasterised once and moved by the compositor (no repaint per frame). */
.welcome::before, .welcome::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  width: min(400px, 60vw); height: min(280px, 44vw); filter: blur(48px); will-change: transform;
}
.welcome::before { background: rgba(255,198,137,.32); top: -2%; left: -4%; animation: glow-a 19s ease-in-out infinite alternate; }
.welcome::after { background: rgba(82,157,186,.17); top: 38%; right: -6%; animation: glow-b 23s ease-in-out infinite alternate; }
/* Each blob drifts in its own half, so orange and blue never pile up into grey. */
@keyframes glow-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(110px, 45px) scale(1.1); } 100% { transform: translate(35px, 95px) scale(.92); } }
@keyframes glow-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-70px, -40px) scale(.94); } 100% { transform: translate(-20px, -85px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .welcome::before, .welcome::after { animation: none; } }
.hero-mark .piko-mark { width: 68px; height: 68px; filter: drop-shadow(0 6px 14px rgba(27,73,90,.18)); }
.welcome h1 { font-size: 2.15rem; margin: 18px 0 6px; letter-spacing: -.01em; }
.hero-dot { color: var(--dot); }
.hero-sub { color: var(--muted); max-width: 600px; margin: 0 auto 26px; font-size: 1.05rem; }
#homeSlot { width: 100%; max-width: 720px; }
.composer.composer-home { border-radius: 22px; padding: 12px 12px 12px 20px; box-shadow: 0 10px 40px rgba(27,73,90,.13); border-color: #c9d9df; }
.composer.composer-home textarea { font-size: 17.5px; min-height: 56px; }
.composer.composer-home .send { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 720px; margin: 18px auto 0; align-items: center; }
.suggest-label { color: var(--muted); font-size: 13.5px; margin-right: 2px; }
.chip {
  background: rgba(255,255,255,.6); border: 1px solid var(--soft); border-radius: 999px; padding: 4px 12px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--muted); transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--spot-sky); color: var(--spot-dark); background: #fff; }
.hero-note { color: var(--muted); font-size: 13px; margin: 22px auto 0; max-width: 520px; }
@keyframes piko-hop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-3.2px) scale(1.06); } 55% { transform: translateY(0) scale(.96, 1.04); } }
@keyframes piko-idle { 0%, 88%, 100% { transform: scale(1); } 94% { transform: scale(1.18); } }
.piko-mark.hop .piko-dot { animation: piko-hop .9s ease .35s 2, piko-idle 6s ease-in-out 2.4s infinite; }
.who.thinking .piko-dot { animation: piko-hop .8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .piko-dot { animation: none !important; } }
.msg { margin: 0 0 26px; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble {
  background: var(--spot-light); color: var(--ink); padding: 10px 16px; border-radius: 18px 18px 4px 18px;
  max-width: 85%; white-space: pre-wrap;
}
.msg.bot .who { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--spot-dark); font-size: 14px; margin-bottom: 6px; }
.msg.bot .who .piko-mark { width: 26px; height: 26px; }
.answer { color: var(--ink); }
.answer p { margin: 0 0 .8em; }
.answer ul, .answer ol { margin: 0 0 .9em; padding-left: 1.3em; }
.answer li { margin: .2em 0; }
.answer h3, .answer h4 { margin: 1em 0 .4em; }
.answer table { border-collapse: collapse; margin: .6em 0 1em; font-size: 14.5px; }
.answer td, .answer th { border: 1px solid var(--line); padding: 5px 8px; }
.cite {
  display: inline-flex; align-items: center; gap: 3px; padding: 0 7px 0 8px; margin: 0 2px; border-radius: 999px;
  font-size: .78em; font-weight: 700; line-height: 1.65; vertical-align: .08em; white-space: nowrap;
  background: #fff4e6; color: #8a4f0f; border: 1px solid #f6cf9f; text-decoration: none;
}
.cite:hover { background: var(--dot); border-color: var(--dot); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; align-items: center; color: var(--muted); font-size: 14.5px; }
.typing i:first-of-type { margin-left: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--spot-sky); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sources { margin-top: 6px; }
.used summary { cursor: pointer; color: var(--muted); font-size: 13.5px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.used summary::-webkit-details-marker { display: none; }
.used summary::before { content: "▸"; font-size: 11px; transition: transform .15s; }
.used[open] summary::before { transform: rotate(90deg); }
.used summary:hover { color: var(--spot-dark); }
.used ul { list-style: none; padding: 0; margin: 8px 0 0; border-left: 2px solid var(--soft); }
.used li { padding: 4px 0 4px 12px; font-size: 14px; }
.used li a { color: var(--spot-dark); text-decoration: none; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.used li a:hover { color: var(--spot-mid); text-decoration: underline; }
.used .m { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.msg-tools { display: flex; gap: 6px; margin-top: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.msg-tools button {
  border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 3px 9px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--muted);
}
.msg-tools button:hover { border-color: var(--spot); color: var(--spot-dark); }
.msg-tools button.on { background: var(--spot); color: #fff; border-color: var(--spot); }
.notice { background: #fff7ec; border: 1px solid #f3d3a9; color: #6b4a1d; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0 0 12px; }
.composer-wrap[hidden] { display: none; }
.composer-wrap { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, rgba(247,249,250,0)); padding: 10px 24px 18px; }
.composer {
  max-width: 800px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 4px 24px rgba(27,73,90,.08); display: flex; align-items: flex-end; padding: 8px 8px 8px 16px; gap: 8px;
}
.composer:focus-within { border-color: var(--spot); }
.composer textarea {
  flex: 1; border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.5; padding: 8px 0;
  max-height: 220px; background: transparent; color: var(--ink);
}
.send {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--spot); color: #fff; cursor: pointer;
  display: grid; place-items: center; flex: 0 0 40px;
}
.send:hover { background: var(--spot-deep); }
.send:disabled { background: #9fb8c2; cursor: default; }
.disclaimer { max-width: 800px; margin: 0 auto; padding: 0 16px 14px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---- generic components ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--spot); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--spot-deep); color: #fff; }
.btn.ghost { background: var(--card); color: var(--spot-dark); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--spot); }
.search-bar { display: flex; gap: 8px; margin: 0 0 22px; }
.search-bar input, .search-bar select {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; background: var(--card);
}
.search-bar select { flex: 0 0 auto; }
.search-bar input:focus { outline: 2px solid var(--spot-sky); border-color: transparent; }
@media (max-width: 600px) {
  .search-bar { flex-wrap: wrap; }
  .search-bar input { flex: 1 1 100%; min-width: 0; }
  .search-bar select { flex: 1 1 0; min-width: 0; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; color: var(--text); display: block;
}
a.card:hover { border-color: var(--spot); box-shadow: 0 3px 14px rgba(27,73,90,.07); color: var(--text); }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card .num { font-size: 1.5rem; font-weight: 800; color: var(--spot); }
.meta { color: var(--muted); font-size: 13.5px; }
.vir-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 5px; border-radius: 3px; }
h3 .vir-icon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 7px; }
.list.rows li { display: flex; gap: 14px; align-items: flex-start; }
.list.rows .row-icon { flex: 0 0 30px; width: 30px; height: 30px; margin-top: 2px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--soft); border-radius: 8px; }
.list.rows .row-icon .vir-icon { width: 20px; height: 20px; margin: 0; vertical-align: 0; }
.list.rows .row-body { flex: 1; min-width: 0; }
.list.rows .row-body .meta { margin-top: 3px; }
.list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.list li { padding: 12px 16px; border-top: 1px solid var(--soft); }
.list li:first-child { border-top: 0; }
.list .title { font-weight: 600; color: var(--ink); text-decoration: none; }
.list .title:hover { color: var(--spot-mid); }
.list .snip { color: var(--text); font-size: 14.5px; margin-top: 3px; }
.pill {
  display: inline-block; border-radius: 999px; padding: 0 9px; font-size: 12px; font-weight: 700; line-height: 1.7;
  background: var(--spot-light); color: var(--spot-dark); vertical-align: middle;
}
.pill.new { background: #e5f4ea; color: var(--ok); }
.pill.changed { background: #fff1de; color: #8a5a17; }
.pill.removed { background: #fbe7e5; color: var(--bad); }
.pill.pdf { background: #f0ecf8; color: #59428f; }
.pill.osnovno { background: #e5f4ea; color: var(--ok); }
.pill.placljivo, .pill.trzno { background: #fff1de; color: #8a5a17; }
.pill.mentoriranje { background: var(--spot-light); color: var(--spot-dark); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs a {
  text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--spot-dark); font-size: 14.5px;
}
.tabs a.active { background: var(--spot); border-color: var(--spot); color: #fff; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.doc p { margin: 0 0 .75em; }
.doc ul { padding-left: 1.3em; }
.table-wrap { overflow-x: auto; margin: .4em 0 1em; }
.doc table { border-collapse: collapse; font-size: 14.5px; }
.doc td { border: 1px solid var(--soft); padding: 5px 8px; vertical-align: top; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 20px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.facts b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.diff { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.diff .add { background: #e7f6ec; color: #155c32; display: block; }
.diff .del { background: #fdecea; color: #8c1d18; display: block; text-decoration: line-through; text-decoration-color: rgba(140,29,24,.35); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 18px 0 0; }
.area { margin: 0 0 26px; }
.area > h2 { display: flex; gap: 10px; align-items: baseline; }
.area > h2 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.topic { padding: 9px 0; border-top: 1px solid var(--soft); }
.topic:first-child { border-top: 0; }
.topic .links { margin-top: 3px; font-size: 13.5px; }
.topic .links a { margin-right: 10px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 10px; margin: 0 0 12px; }
.group h3 { display: flex; gap: 8px; align-items: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- quiz ---- */
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; max-width: 760px; }
.quiz-progress { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; margin: 0 0 18px; }
.quiz-progress span { display: block; height: 100%; background: var(--spot); width: 0; transition: width .3s; }
.quiz-q { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0 0 18px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; color: var(--text);
}
.option:hover:not(:disabled) { border-color: var(--spot); }
.option .letter {
  flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--spot-light); color: var(--spot-dark); font-weight: 800;
  display: grid; place-items: center;
}
.option.right { border-color: var(--ok); background: #eef8f1; }
.option.right .letter { background: var(--ok); color: #fff; }
.option.wrong { border-color: var(--bad); background: #fdf0ef; }
.option.wrong .letter { background: var(--bad); color: #fff; }
.option:disabled { cursor: default; }
.explain { margin-top: 16px; background: var(--spot-light); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }
.score { font-size: 2.6rem; font-weight: 800; color: var(--spot); }
.area-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 18px; }
.area-pick label {
  display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; font-size: 14.5px;
}
.area-pick input { accent-color: var(--spot); }
.area-pick label:has(input:checked) { border-color: var(--spot); background: var(--spot-light); }

/* ---- mobile ---- */
@media (max-width: 860px) {
  .app { display: block; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; width: 82vw; max-width: 300px; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .topbar {
    display: flex; align-items: center; gap: 10px; background: var(--spot-dark); color: #fff; padding: 10px 14px;
    position: sticky; top: 0; z-index: 20;
  }
  .topbar button { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  .topbar .brand { padding: 0; }
  .topbar .piko-mark { width: 30px; height: 30px; }
  .topbar .wordmark { font-size: 17px; }
  .page { padding: 22px 16px 50px; }
  .chat { min-height: calc(100vh - 56px); }
  .chat-inner { padding: 20px 16px; }
  .welcome { min-height: calc(100vh - 170px); }
  .welcome h1 { font-size: 1.65rem; }
  .hero-mark .piko-mark { width: 56px; height: 56px; }
  .composer-wrap { padding: 8px 12px 12px; }

  .quiz-card { padding: 20px 16px; }
}

/* ---- analytics ---- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 26px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 6px; }
.bar span { display: block; background: var(--spot); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---- checklists ---- */
.checklist { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; }
.checklist li {
  counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px 12px 58px; margin: 0 0 10px;
}
.checklist li::before {
  content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--spot-light); color: var(--spot-dark); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.checklist li.done::before { content: "✓"; background: var(--dot); color: #fff; }
.checklist li.done .step-title { text-decoration: line-through; text-decoration-color: rgba(27,73,90,.35); }
.checklist label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.checklist input { width: 18px; height: 18px; accent-color: var(--spot); }
.step-title { font-weight: 700; color: var(--spot-dark); font-size: 1.05rem; }
.when { display: inline-block; margin: 6px 0 0 28px; font-size: 13px; font-weight: 700; color: #8a5a17; background: #fff1de; border-radius: 999px; padding: 0 10px; }
.checklist p { margin: 6px 0 4px 28px; }
.checklist .meta { margin-left: 28px; }
.print-only { display: none; }
@media print {
  .side, .topbar, .no-print, .composer-wrap, .disclaimer { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .checklist li { break-inside: avoid; border-color: #bbb; }
  .checklist input { display: none; }
}

/* ---- learning path ---- */
.path-progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.path-progress .quiz-progress { flex: 1; min-width: 200px; margin: 0; height: 8px; }
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.path a {
  display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; text-decoration: none; color: var(--text);
}
.path a:hover { border-color: var(--spot); box-shadow: 0 3px 14px rgba(27,73,90,.07); color: var(--text); }
.path-num {
  flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--spot-light); color: var(--spot-dark); font-weight: 800;
  display: grid; place-items: center; font-size: 17px;
}
.path li.started .path-num { background: #fff1de; color: #8a5a17; }
.path li.passed .path-num { background: var(--dot); color: #fff; }
.path-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.path-title { font-weight: 700; color: var(--spot-dark); font-size: 1.08rem; }
.path-goal { font-size: 14.5px; }
.mod-state { flex: 0 0 auto; text-align: right; max-width: 170px; }
.readings label { float: right; display: flex; gap: 6px; align-items: center; cursor: pointer; margin-left: 10px; }
.readings input { accent-color: var(--spot); width: 17px; height: 17px; }
#modState { margin: 0 0 8px; }
.certificate {
  background: var(--card); border: 2px solid var(--spot); border-radius: 22px; padding: 46px 40px; text-align: center; max-width: 760px;
  margin: 10px auto; position: relative; overflow: hidden;
}
.certificate::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,198,137,.35); }
.cert-mark .piko-mark { width: 60px; height: 60px; margin: 0 auto; }
.cert-kicker { text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-weight: 700; margin: 14px 0 0; }
.certificate h1 { font-size: 2.2rem; margin: 6px 0 10px; }
.cert-list { text-align: left; display: inline-block; margin: 10px auto 16px; }
@media (max-width: 860px) {
  .path a { flex-wrap: wrap; }
  .mod-state { max-width: none; text-align: left; flex-basis: 100%; padding-left: 54px; }
  .certificate { padding: 30px 18px; }
}
.feedback li { position: relative; padding-left: 48px; }
.fb-icon { position: absolute; left: 14px; top: 11px; font-size: 18px; }
.fb-comment { margin: 6px 0 0; background: #fff7ec; border-radius: 8px; padding: 6px 10px; font-size: 14.5px; }
.fb-answer { margin-top: 8px; padding: 12px 16px; font-size: 14.5px; }

/* ---- answer blocks: SPOT scope and one-click suggestions ---- */
.scope { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.scope-title { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--soft); }
.scope ul { list-style: none; margin: 0; padding: 4px 0; }
.scope li { display: flex; gap: 10px; align-items: baseline; padding: 6px 14px; font-size: 15px; }
.scope .tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.scope li.base .tag { background: #e5f4ea; color: var(--ok); }
.scope li.up .tag { background: #fff1de; color: #8a5a17; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.suggestion {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--spot-dark); border: 1px solid #bcd3dc; border-radius: 999px; padding: 6px 14px 6px 10px;
}
.suggestion svg { color: var(--dot); flex: 0 0 auto; }
.suggestion:hover { background: var(--spot); border-color: var(--spot); color: #fff; }
.suggestion:hover svg { color: #fff; }
@media (max-width: 860px) { .scope li { flex-direction: column; gap: 3px; } }

/* ---- meeting preparation ---- */
.lookup { position: relative; display: block; max-width: 640px; }
.lookup input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--card); }
.lookup input:focus { outline: 2px solid var(--spot-sky); border-color: transparent; }
.hits { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(27,73,90,.12); max-height: 340px; overflow-y: auto; }
.hits li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; }
.hits li:hover { background: var(--spot-light); }
.hits li.none { color: var(--muted); cursor: default; }
.new-client { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.new-client label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); flex: 1 1 200px; }
.new-client .lookup { max-width: none; }
.new-client input, .new-client select, .new-client .btn {
  height: 46px; box-sizing: border-box; font: inherit; font-size: 15.5px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); color: var(--ink);
}
.new-client .btn { border: 0; background: var(--spot); color: #fff; padding: 0 22px; }
.fin { border-collapse: collapse; background: var(--card); font-size: 14.5px; }
.fin th, .fin td { border: 1px solid var(--soft); padding: 6px 10px; text-align: right; }
.fin th:first-child, .fin td:first-child { text-align: left; }
.brief { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; }

.side-foot .project { display: block; margin-top: 8px; opacity: .75; }
.side-foot .project a { color: #dbe7eb; }

/* Language switch: two quiet pills in the sidebar footer, a short code in the mobile top bar. */
.lang-switch { display: flex; gap: 4px; margin-bottom: 10px; }
.lang-switch a { color: #b9cdd5; text-decoration: none; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }
.lang-switch a.on { color: #fff; background: rgba(255,255,255,.14); border-color: transparent; }
.lang-switch a:hover { color: #fff; }
.topbar-lang { margin-left: auto; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; padding: 3px 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
/* Dastabase apps switcher (owner 2026-11-09) */
.app-switch{position:fixed;top:10px;right:12px;z-index:60;font-family:inherit}
.app-switch>summary{list-style:none;cursor:pointer;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e3e3ee;box-shadow:0 1px 3px rgba(20,20,60,.08)}
.app-switch>summary::-webkit-details-marker{display:none}
.app-switch>summary svg{width:18px;height:18px;fill:#5b5b78}
.app-switch[open]>summary{background:#f1efff;border-color:#c9c3f5}
.app-switch-panel{position:absolute;right:0;top:46px;width:min(320px,calc(100vw - 24px));background:#fff;border:1px solid #e3e3ee;border-radius:14px;box-shadow:0 10px 30px rgba(20,20,60,.15);padding:10px}
.app-switch-title{margin:2px 6px 8px;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;color:#7a7a92}
.app-tile{display:flex;gap:10px;align-items:center;padding:8px;border-radius:10px;text-decoration:none;color:#23233d}
.app-tile:hover,.app-tile:focus{background:#f5f4fd}
.app-tile-current{background:#f1efff}
.app-mark{flex:none;width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}
.app-mark-dastabase{background:#23233d}.app-mark-merlin{background:#5b4fd6}.app-mark-baltazar{background:#0f8a6a}.app-mark-piko{background:#e0663a}.app-mark-sbem{background:#2a6fb5}
.app-name{display:flex;flex-direction:column;font-weight:600;font-size:.92rem;line-height:1.2}
.app-name small{font-weight:400;color:#7a7a92;font-size:.78rem}
@media print{.app-switch{display:none}}

/* apps switcher as a grid: icon above, name below (owner 2026-11-09) */
.app-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;width:min(300px,calc(100vw - 24px))}
.app-grid .app-switch-title{grid-column:1/-1}
.app-grid .app-tile{flex-direction:column;justify-content:flex-start;gap:6px;padding:12px 4px;text-align:center}
.app-icon{width:40px;height:40px;display:block}
.app-grid .app-name{font-size:.82rem;font-weight:500}

/* Spremembe: plain-language question box and active filter tags */
.ask-changes { margin: 4px 0 14px; }
.ask-box { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 8px 8px 12px; box-shadow: 0 4px 16px rgba(27,73,90,.07); }
.ask-box:focus-within { border-color: var(--spot-sky); box-shadow: 0 0 0 3px rgba(82,157,186,.18); }
.ask-box .piko-mark { width: 30px; height: 30px; }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; padding: 8px 2px; }
.ask-box select { flex: 0 1 230px; min-width: 0; max-width: 260px; border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: transparent; font: inherit; font-size: 14px; color: var(--spot-dark); padding: 8px 10px; cursor: pointer; }
.ask-box select:focus { outline: 0; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask-examples .chip { font-size: 13px; }
.understood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; }
.understood .tag { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; padding: 3px 10px; border-radius: 999px;
  background: var(--spot-light); color: var(--spot-dark); text-decoration: none; }
.understood .tag.removable:hover { background: #dfe9ed; }
.understood .tag b { margin-left: 5px; font-weight: 700; color: var(--spot); }
.understood .tag .vir-icon { width: 14px; height: 14px; margin-right: 5px; }
.understood .ask-chat { margin-left: auto; color: var(--spot); font-weight: 600; }
details.filters { margin: 0 0 20px; }
details.filters summary { cursor: pointer; color: var(--spot); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
details.filters .search-bar { margin-bottom: 0; }
@media (max-width: 600px) { .understood .ask-chat { margin-left: 0; flex-basis: 100%; } .ask-box .piko-mark { display: none; }
  .ask-box { flex-wrap: wrap; } .ask-box input { flex: 1 1 100%; } .ask-box select { flex: 1 1 0; max-width: none; border-left: 0; border-top: 1px solid var(--line); } }
.ask-examples .chip, .understood a { text-decoration: none; }

/* phone app install page */
.install-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }
.install-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.install-hero img { border-radius: 18px; box-shadow: 0 6px 18px rgba(27,73,90,.18); flex: 0 0 auto; }
.install-hero h1 { margin: 0 0 6px; }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 8px 0 18px; }
.install-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.15rem; }
.install-card ol { margin: 0; padding-left: 1.3em; line-height: 1.7; }
.install-card.mine { border-color: var(--spot-sky); box-shadow: 0 0 0 3px rgba(82,157,186,.15); }
.install-card .ico { vertical-align: -2px; color: var(--spot); }
.install-note { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; }
.install-note.ok { background: #e5f4ea; color: var(--ok); }
.btn.big { font-size: 1.05rem; padding: 12px 22px; }
@media (max-width: 600px) { .install-hero { flex-direction: column; align-items: flex-start; gap: 12px; } .install-hero img { width: 60px; height: 60px; } }
