/* SirusAI house style: Lato, Dark Blue carries, Bright Orange accents (one per block). */
:root {
  --sirus-blue: #000c6e;
  --sirus-blue-deep: #000850;
  --sirus-blue-light: #e6e8f5;
  --sirus-orange: #ff5500;
  --sirus-grey: #f5f6fa;
  --sirus-ink: #1d2433;
  --sirus-font: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --bg: var(--sirus-grey);
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: var(--sirus-ink);
  --muted: #5d6578;
  --line: #e3e6ef;
  --heading: var(--sirus-blue);
  --tint: var(--sirus-blue-light);
  --shadow: 0 1px 2px rgba(0, 12, 110, .06), 0 8px 24px rgba(0, 12, 110, .06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b24;
    --surface: #0e1438;
    --surface-2: #121a45;
    --text: #e7e9f4;
    --muted: #9aa1bd;
    --line: #232c5c;
    --heading: #ffffff;
    --tint: #1a2360;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--sirus-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--heading); margin: 0; letter-spacing: -.01em; }

/* --- Top bar ---------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px;
  background: var(--sirus-blue);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0);
  background-size: 18px 18px;
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; color: var(--sirus-blue);
  font-weight: 900; font-size: 20px;
}
.brand-name { font-weight: 900; font-size: 17px; line-height: 1.1; }
.brand-name span { color: var(--sirus-orange); }
.brand-app { font-size: 12px; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.status-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.switch-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 4px 12px 4px 6px; border-radius: 999px; font-size: 12px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.switch-chip input { position: absolute; opacity: 0; pointer-events: none; }
.switch-chip .track {
  position: relative; width: 30px; height: 18px; border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, .25); transition: background .15s;
}
.switch-chip .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.switch-chip input:checked + .track { background: var(--sirus-orange); }
.switch-chip input:checked + .track::after { transform: translateX(12px); }
.switch-chip input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.switch-chip input:disabled + .track { opacity: .5; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; }
.chip.off i { background: transparent; border: 1px solid #fff; }

/* --- Layout ----------------------------------------------------------------------------- */
.shell {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px; max-width: 1440px; margin: 0 auto; padding: 28px;
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .sidebar { order: 2; position: static !important; max-height: none !important; }
  .topbar { padding: 10px 16px; position: static; }
  .status-chips .chip:last-child { display: none; }
  .hero h1 { font-size: 24px; }
}

/* --- Sidebar ---------------------------------------------------------------------------- */
.sidebar {
  position: sticky; top: 88px; align-self: start; /* below the sticky top bar */
  max-height: calc(100vh - 116px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.sidebar-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sidebar-head h2 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.count { font-size: 12px; color: var(--muted); }
.search {
  width: 100%; font: inherit; font-size: 13px; color: var(--text);
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); margin-bottom: 10px; outline: none;
}
.search:focus { border-color: var(--sirus-blue); box-shadow: 0 0 0 3px rgba(0, 12, 110, .12); }
.history { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.history li {
  position: relative; padding: 10px 36px 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.link-danger {
  border: 0; background: none; padding: 2px 4px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--muted);
}
.link-danger:hover { color: var(--sirus-orange); text-decoration: underline; }
.delete-btn {
  position: absolute; top: 8px; right: 6px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); opacity: 0; transition: opacity .15s, background .15s;
}
.history li:hover .delete-btn, .delete-btn:focus-visible { opacity: 1; }
.delete-btn:hover { background: var(--surface); color: var(--sirus-orange); }
@media (hover: none) { .delete-btn { opacity: .7; } }
.history li:hover { background: var(--surface-2); border-color: var(--line); }
.history li.active { background: var(--tint); border-color: transparent; }
.history .h-title { font-weight: 700; font-size: 14px; color: var(--heading); }
.history .h-meta { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.history .h-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.history .empty-note { color: var(--muted); font-size: 13px; padding: 8px 4px; }

/* --- Hero / composer ---------------------------------------------------------------------- */
.hero h1 { font-size: 30px; font-weight: 900; line-height: 1.15; }
.lead { color: var(--muted); margin: 8px 0 18px; max-width: 70ch; }
.composer {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--sirus-blue); box-shadow: var(--shadow), 0 0 0 4px rgba(0, 12, 110, .1); }
.composer textarea {
  display: block; width: 100%; border: 0; outline: none; resize: vertical;
  font: inherit; font-size: 15px; color: var(--text); background: transparent;
  padding: 18px 20px; min-height: 140px;
}
.source-url-input {
  flex: 1; min-width: 240px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px;
}
.reference-field {
  display: grid; gap: 4px; padding: 0 20px 14px; font-size: 13px; font-weight: 700; color: var(--heading);
}
.reference-field input {
  font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
}
.reference-field .muted { font-size: 12px; font-weight: 400; }
.composer-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  transition: all .15s;
}
.toggle span b {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; background: var(--line); color: var(--muted);
}
.toggle input:checked + span { border-color: var(--sirus-blue); color: var(--heading); background: var(--tint); }
.toggle input:checked + span b { background: var(--sirus-blue); color: #fff; }
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 12, 110, .2); }
.hint { font-size: 12px; color: var(--muted); margin-left: auto; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 10px 22px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 14px; letter-spacing: .02em;
  background: var(--sirus-orange); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 85, 0, .28); transition: transform .1s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 85, 0, .34); }
.cta:disabled { cursor: wait; opacity: .85; transform: none; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%; display: none;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite;
}
.cta.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice {
  margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sirus-blue);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.notice.error { border-left-color: var(--sirus-orange); }
.btn-ghost {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--heading);
}
.btn-ghost:hover { border-color: var(--sirus-blue); }

/* --- Progress ----------------------------------------------------------------------------- */
.progress { display: flex; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; }
.step {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.step.active { color: var(--heading); font-weight: 700; border-color: var(--sirus-blue); }
.step.active .dot { background: var(--sirus-orange); animation: pulse 1s ease-in-out infinite; }
.step.done { color: var(--heading); }
.step.done .dot { background: var(--sirus-blue); }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }

/* --- Result ------------------------------------------------------------------------------- */
.result { margin-top: 28px; display: grid; gap: 20px; }
.empty {
  text-align: center; color: var(--muted); padding: 48px 16px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-mark {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  background:
    linear-gradient(135deg, transparent 45%, var(--sirus-orange) 45% 55%, transparent 55%),
    var(--tint);
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px;
}
/* The fit box gets a bounded column: with "auto" a long quote made it as wide as its text and
   squeezed the job title to one word per line. */
.job-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 20px; position: relative; overflow: hidden; align-items: start;
}
.job-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--sirus-blue);
}
@media (max-width: 900px) { .job-card { grid-template-columns: 1fr; } }
.fit-box { min-width: 0; overflow-wrap: anywhere; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job-title { font-size: 26px; font-weight: 900; margin: 4px 0 2px; line-height: 1.2; }
.company { font-size: 16px; color: var(--text); font-weight: 700; }
.company.muted { color: var(--muted); font-style: italic; }
.company-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.company-input {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; min-width: 240px; flex: 1;
}
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--tint); color: var(--heading); font-weight: 700;
}
.fit-box {
  padding: 16px 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.fit-box .label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.fit-box ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
.proposal-tag { font-size: 12px; font-style: italic; }
.company-decision { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.company-decision input {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 100%;
}
.company-decision .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.company-decision p { margin: 0; font-size: 12px; }
.notion-page .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.notion-preview {
  white-space: pre-wrap; max-height: 420px; overflow: auto; font-size: 12px; line-height: 1.45;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.company-list { display: grid; gap: 6px; margin-top: 10px; }
.company-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 6px 0; }
.company-row strong { min-width: 220px; }
.company-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.company-add input, .company-add select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px;
}
.company-add input { min-width: 260px; flex: 1; }
.callout {
  grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 14px;
}
.callout strong { color: var(--heading); }
/* Availability (fixed check): red when not available, neutral when it cannot be checked. */
.callout.availability { display: block; margin: 12px 0 0; }
.callout.availability.niet_beschikbaar { background: #fdecea; border-left: 4px solid #c62828; }
.callout.availability.niet_beschikbaar strong { color: #b71c1c; }
.callout.availability.beschikbaar { background: #e8f5e9; }
.unavailable-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: #fdecea; color: #b71c1c; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.hc-score .unavailable-tag { grid-column: 1 / -1; justify-self: start; margin: -2px 0 2px 32px; }
.facts { grid-column: 1 / -1; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.facts div span { display: block; font-size: 12px; color: var(--muted); }

/* Badges: GO solid blue, TWIJFEL orange outline, NO-GO ink. Fit uses the same scale. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: .03em;
  border: 1.5px solid transparent; white-space: nowrap;
}
.badge.sm { font-size: 11px; padding: 1px 8px; }
.badge.GO, .badge.sterk { background: var(--sirus-blue); color: #fff; }
.badge.TWIJFEL, .badge.mogelijk { border-color: var(--sirus-orange); color: var(--sirus-orange); background: transparent; }
.badge.onbekend { border-color: var(--muted); color: var(--muted); }
.badge.NO-GO, .badge.uitgesloten { background: var(--sirus-ink); color: #fff; }
@media (prefers-color-scheme: dark) {
  .badge.GO, .badge.sterk { background: #3a4bd8; }
  .badge.NO-GO, .badge.uitgesloten { background: #3b4266; }
}

.consultants { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
@media (max-width: 720px) { .consultants { grid-template-columns: 1fr; } }
.person-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--sirus-blue);
}
.person-head h3 { font-size: 19px; font-weight: 900; }
.person-head .role { font-size: 13px; color: var(--muted); }
.ring {
  --p: 0; margin-left: auto; flex: none;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--sirus-blue) calc(var(--p) * 1%), var(--line) 0);
}
.ring b {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--heading); font-size: 14px; font-weight: 900;
}
.verdict-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.verdict-line .why { font-size: 13px; color: var(--muted); }
.summary { margin: 10px 0 16px; }
.section-title {
  font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 8px;
}
.reqs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.req { border-bottom: 1px solid var(--line); }
.req details summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px; align-items: center; padding: 10px 2px;
}
.req details summary::-webkit-details-marker { display: none; }
.req details[open] summary, .req summary:hover { color: var(--heading); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.st-letterlijk .status-dot { background: var(--sirus-blue); }
.st-afgeleid .status-dot { background: transparent; border: 2px solid var(--sirus-blue); }
.st-ontbreekt .status-dot { background: transparent; border: 2px dashed var(--muted); }
.st-bevestigd_gat .status-dot { background: var(--sirus-orange); }
@media (prefers-color-scheme: dark) {
  .st-letterlijk .status-dot { background: #8d9bff; }
  .st-afgeleid .status-dot { border-color: #8d9bff; }
}
.req-text { font-size: 14px; }
.req-text .core { font-size: 10px; font-weight: 900; color: var(--sirus-orange); letter-spacing: .08em; margin-left: 6px; }
.req-text .years { color: var(--muted); font-size: 12px; margin-left: 4px; }
.years-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.years-tag.full { background: rgba(31, 140, 70, .14); color: #2f9a58; }
.years-tag.short { background: rgba(255, 85, 0, .14); color: var(--sirus-orange); }
.years-tag.unknown { background: var(--tint); color: var(--muted); font-weight: 500; }
.req-status { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.req-body { padding: 0 2px 12px 24px; font-size: 13px; color: var(--muted); }
.quote {
  margin: 4px 0; padding: 6px 10px; border-left: 3px solid var(--sirus-blue);
  background: var(--surface-2); color: var(--text); font-style: italic; border-radius: 0 6px 6px 0;
}
.src { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.questions { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.questions li {
  counter-increment: q; position: relative; padding: 8px 0 8px 34px; font-size: 14px;
}
.questions li::before {
  content: counter(q); position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--heading); font-size: 12px; font-weight: 900;
}
.warnings {
  margin-top: 16px; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  background: var(--surface-2); border: 1px dashed var(--line); color: var(--muted);
}
.warnings ul { margin: 0; padding-left: 18px; }
.plain { margin: 0; padding-left: 18px; font-size: 14px; }

.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }

/* --- v2: navigation, history cards, consultant tabs, grouped evidence, answers --------------- */
.nav-link {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28);
}
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, .12); }

.hcard { display: grid; gap: 4px; }
.hc-top { display: flex; align-items: flex-start; gap: 6px; }
.hc-title {
  font-weight: 900; font-size: 14px; color: var(--heading); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-company { font-size: 13px; color: var(--text); font-weight: 700; }
.hc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.hc-scores { display: grid; gap: 4px; margin-top: 4px; }
.hc-score { display: grid; grid-template-columns: 26px 1fr 34px; align-items: center; gap: 6px; font-size: 11px; }
.hc-score b { font-weight: 900; color: var(--heading); }
.hc-score .num { text-align: right; font-weight: 700; color: var(--heading); }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--sirus-blue); }
@media (prefers-color-scheme: dark) { .meter i { background: #8d9bff; } }
/* Each history item is its own bordered card with space in between, not only on hover. */
.history { display: grid; gap: 10px; padding: 2px; }
.history li.hcard {
  padding: 12px 12px 12px 14px;
  background: var(--surface);
  border: 1px solid rgba(0, 12, 110, .16);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 12, 110, .1);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.history li.hcard:hover {
  background: var(--surface);
  border-color: var(--sirus-blue);
  box-shadow: 0 4px 14px rgba(0, 12, 110, .1);
}
.history li.hcard.active {
  background: var(--tint);
  border-color: var(--sirus-blue);
  box-shadow: inset 4px 0 0 var(--sirus-orange);
}
.history .hc-meta { padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.sidebar { background: #eef0f7; }
@media (prefers-color-scheme: dark) {
  .sidebar { background: var(--surface); }
  .history li.hcard { background: var(--surface-2); border-color: #2e3870; }
  .history li.hcard:hover, .history li.hcard.active { border-color: #8d9bff; }
}
.history .delete-btn { position: static; opacity: .0; margin-left: auto; flex: none; }
.history li:hover .delete-btn, .history .delete-btn:focus-visible { opacity: 1; }
@media (hover: none) { .history .delete-btn { opacity: .7; } }

.tabs-card { padding: 0; overflow: hidden; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--surface-2); }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 14px 20px 12px; border: 0; border-bottom: 3px solid transparent; background: none;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.tab .ini {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; background: var(--line); color: var(--muted);
}
.tab .pct { font-weight: 900; }
.tab[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--sirus-orange); background: var(--surface); }
.tab[aria-selected="true"] .ini { background: var(--sirus-blue); color: #fff; }
.tab:hover { color: var(--heading); }
.tabpanel { padding: 22px 24px; }
.score-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.score-big { font-size: 34px; font-weight: 900; color: var(--heading); line-height: 1; }
.score-big small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.score-line .meter { flex: 1; min-width: 160px; height: 10px; }
.score-note { font-size: 12px; color: var(--muted); width: 100%; }

.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr; } }
.group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
}
.group.match .group-head { background: var(--tint); color: var(--heading); }
.group.gap .group-head { background: var(--surface-2); color: var(--heading); border-bottom: 2px solid var(--sirus-orange); }
.group-head .n { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
.group .reqs { border-top: 0; }
.group .req { padding: 0 12px; }
.group .req:last-child { border-bottom: 0; }
.group .empty-row { padding: 12px 14px; font-size: 13px; color: var(--muted); }

.qa { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: q; }
.qa > li {
  counter-increment: q; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 46px;
  position: relative; background: var(--surface);
}
.qa > li::before {
  content: counter(q); position: absolute; left: 14px; top: 12px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--heading); font-size: 12px; font-weight: 900;
}
.qa > li.saved { border-color: var(--sirus-blue); }
.qa .q { font-size: 14px; }
.qa textarea, .qa select, .admin textarea, .admin input[type="number"] {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 8px; outline: none;
}
.qa textarea:focus, .qa select:focus, .admin textarea:focus, .admin input:focus {
  border-color: var(--sirus-blue); box-shadow: 0 0 0 3px rgba(0, 12, 110, .1);
}
.qa .actions, .admin .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.btn-primary {
  font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; border: 0; border-radius: 8px;
  padding: 7px 14px; background: var(--sirus-blue); color: #fff;
}
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-accent { background: var(--sirus-orange); }
.proposal { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.proposal .label { font-size: 12px; font-weight: 900; color: var(--heading); text-transform: uppercase; letter-spacing: .06em; }
.proposal .why { font-size: 12px; color: var(--muted); margin-top: 6px; }
.saved-note { font-size: 13px; color: var(--heading); font-weight: 700; margin-top: 6px; }
.muted { color: var(--muted); font-size: 13px; }

/* --- Admin -------------------------------------------------------------------------------- */
.admin { max-width: 980px; margin: 0 auto; padding: 28px; display: grid; gap: 20px; }
.admin h1 { font-size: 28px; font-weight: 900; }
.admin h2 { font-size: 18px; font-weight: 900; }
.admin .card p { margin: 6px 0 0; }
.admin textarea { min-height: 360px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: 1.45; }
.admin .state { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--sirus-orange); }
.weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.weights label { font-size: 13px; font-weight: 700; color: var(--heading); }
.formula { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 14px; }
@media (max-width: 960px) { .admin { padding: 16px; } }

/* --- Stored posting: link and full text in the job card ----------------------------------- */
.source { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.source-line { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; flex-wrap: wrap; }
.source-label {
  flex: none; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}
.source-line a {
  color: var(--heading); font-weight: 700; overflow-wrap: anywhere;
  text-decoration-color: var(--sirus-orange); text-underline-offset: 3px;
}
.posting { margin-top: 10px; }
.posting summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--heading); }
.posting-text {
  margin-top: 8px; padding: 14px 16px; border-radius: 10px; max-height: 420px; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55;
}

/* --- Phase 2: Bizzy card ------------------------------------------------------------------- */
.bizzy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bizzy-head h3 { font-size: 18px; font-weight: 900; }
.bizzy-company { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.bc-name { font-size: 17px; font-weight: 900; color: var(--heading); }
.bizzy-company p { margin: 8px 0; font-size: 14px; }
.bizzy-company a, .contacts a { color: var(--heading); font-weight: 700; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; }
table.contacts { width: 100%; border-collapse: collapse; font-size: 13px; }
table.contacts th, table.contacts td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.contacts th { font-size: 12px; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
a.btn-primary { display: inline-block; text-decoration: none; }

/* --- Phase 3: documents --------------------------------------------------------------------- */
.doc-files { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-file {
  display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); min-width: 220px;
}
.doc-file:hover { border-color: var(--sirus-blue); }
.doc-file strong { color: var(--heading); }
.doc-file span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.doc-report { margin-top: 12px; }
.sev-fout strong { color: var(--sirus-orange); }
.docs details summary { cursor: pointer; font-weight: 700; color: var(--heading); margin-top: 8px; }

/* --- Phase 4: mail --------------------------------------------------------------------------- */
.mails input[type="text"], .mails input[type="email"], .mails select, .mails textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 8px; outline: none;
}
.mails textarea { font-family: inherit; line-height: 1.5; }
.mail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .mail-row { grid-template-columns: 1fr; } }
.mail-card, .mail-new { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: var(--surface); }
.mail-card.sent { background: var(--tint); border-color: transparent; }
.mail-card .label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 8px; }
.check-line[hidden] { display: none; }
.mail-when { flex-wrap: wrap; }
.mail-when label { display: inline-flex; align-items: center; gap: 4px; }
.days-input { width: 70px; }
.analysis-no { font-weight: 900; color: var(--sirus-orange); white-space: nowrap; }

/* --- Phase 5: login ------------------------------------------------------------------------- */
.login { max-width: 420px; margin: 60px auto; padding: 0 16px; }
.login h1 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.login label { display: block; font-weight: 700; margin-top: 12px; }
.login input {
  width: 100%; font: inherit; padding: 10px 12px; margin-top: 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}

/* --- New vs saved analysis ------------------------------------------------------------------- */
.new-analysis {
  width: 100%; margin-bottom: 14px; padding: 10px 14px; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 14px; background: var(--sirus-orange); color: #fff;
}
.new-analysis:hover { filter: brightness(1.05); }
.composer-head {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 20px 0;
}
.composer-title { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--heading); }
.saved-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 12px; background: var(--tint); border-left: 5px solid var(--sirus-blue);
}
.saved-banner.is-new { border-left-color: var(--sirus-orange); }
.saved-state { font-weight: 900; color: var(--heading); }
.saved-banner .btn-primary { margin-left: auto; }

/* --- Version footer and admin table ------------------------------------------------------- */
.app-footer {
  max-width: 1440px; margin: 0 auto; padding: 8px 28px 24px;
  font-size: 12px; color: var(--muted); text-align: right;
}
.version-table { border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.version-table th { text-align: left; padding: 6px 16px 6px 0; color: var(--muted); font-weight: 700; }
.version-table td { padding: 6px 0; color: var(--heading); font-weight: 700; }

/* --- Tabs and the contacts screen ------------------------------------------------------------ */
.contacts-page { max-width: 1440px; margin: 0 auto; padding: 28px; display: grid; gap: 20px; }
.contacts-page > * { min-width: 0; } /* let the table scroll inside its card, not the page */
.contacts-page h1 { font-size: 28px; font-weight: 900; }
.contacts-page h2 { font-size: 20px; font-weight: 900; margin-top: 4px; }
.contacts-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.contacts-toolbar input[type="search"] { flex: 1 1 280px; }
.contacts-page input[type="search"], .contacts-page input[type="text"], .contacts-page input[type="email"],
.contacts-page select, .contacts-page textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none;
}
.contacts-page input:focus, .contacts-page select:focus, .contacts-page textarea:focus {
  border-color: var(--sirus-blue); box-shadow: 0 0 0 3px rgba(0, 12, 110, .1);
}
table.book tr.filters th { padding: 4px 6px 8px; text-transform: none; letter-spacing: 0; }
table.book tr.filters input, table.book tr.filters select { width: 100%; min-width: 80px; padding: 5px 8px; font-size: 12px; border-radius: 8px; }
table.book button.sort {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  text-transform: inherit; letter-spacing: inherit; white-space: nowrap;
}
table.book tbody tr { cursor: pointer; }
table.book tbody tr:hover, table.book tbody tr.selected { background: var(--tint); }
table.book tbody tr:focus-visible { outline: 2px solid var(--sirus-blue); outline-offset: -2px; }
table.book .notes-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
#detail textarea, .new-contact textarea { width: 100%; }
.new-contact { border: 1px solid var(--line); border-radius: 12px; background: var(--tint); padding: 12px 14px; margin-bottom: 12px; }
.new-contact .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
#detail .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.edit-field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
#detail .edit-field input, #detail .edit-field select, #detail .edit-field textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; width: 100%;
}
@media (max-width: 960px) {
  .contacts-page { padding: 16px; }
  .edit-grid { grid-template-columns: 1fr; }
}
.sample-pick {
  margin-left: auto; max-width: 340px; font: inherit; font-size: 12px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px;
}
.composer-head { flex-wrap: wrap; }
.composer-close { margin-left: auto; padding: 4px 10px; font-size: 12px; }
.sample-pick:not([hidden]) + .composer-close { margin-left: 0; }
.new-analysis.active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.hero[hidden] { display: none; }
.doc-prompts { display: grid; gap: 22px; margin-top: 14px; }
.doc-prompt { border-top: 1px solid var(--line); padding-top: 16px; }
.doc-prompt h3 { font-size: 16px; font-weight: 900; }
.doc-prompt textarea { min-height: 220px; }
/* Claude model per task (Admin > Prompts) and the cost table (Admin > Kosten). */
.model-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; font-size: 14px; }
.model-pick-label { font-weight: 700; color: var(--heading); }
.model-pick select, .task-model-row select, #usage-days, #calls-days, #calls-task {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
}
.task-models { display: grid; gap: 10px; margin-top: 10px; }
.task-model-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.task-model-row strong { min-width: 290px; color: var(--heading); }
.inline-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
table.usage { border-collapse: collapse; width: 100%; font-size: 13px; }
table.usage th, table.usage td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.usage th { color: var(--heading); font-weight: 700; }
table.usage td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.usage td.nowrap { white-space: nowrap; }
.analytics-filters { display: flex; gap: 16px; flex-wrap: wrap; }
.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--heading); }
.placeholders { margin: 6px 0 0; padding-left: 18px; }
.placeholders code { color: var(--heading); font-weight: 700; }
.lang-pick {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
}
.choice-dialog {
  max-width: 520px; width: calc(100% - 32px); border: 0; border-radius: var(--radius);
  padding: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.choice-dialog::backdrop { background: rgba(0, 8, 80, .45); }
.choice-dialog h2 { font-size: 20px; font-weight: 900; }
.choice-dialog p { margin: 10px 0 0; }
.choice-dialog .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* Side panel (anonymous posting profile): slides in from the right over the page. */
.side-panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100vh; max-height: 100vh;
  width: min(760px, 100%); max-width: 100%; border: 0; padding: 24px 28px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow-y: auto;
  animation: side-panel-in .2s ease-out;
}
.side-panel::backdrop { background: rgba(0, 8, 80, .45); }
.side-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.side-panel-head h2 { font-size: 20px; font-weight: 900; margin: 0; }
.side-panel .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.teaser-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
@keyframes side-panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- Filters, pager, card extras and the overview table --------------------------------------- */
.history-filters { margin: 8px 0 10px; font-size: 13px; }
.history-filters summary { cursor: pointer; color: var(--heading); font-weight: 700; padding: 4px 0; }
.history-filters .btn-ghost { margin-top: 8px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.filter-field { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.filter-field select, .filter-field input {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; min-width: 0;
}
.filter-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); align-self: end; }
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; font-size: 13px; }
.pager select { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; background: var(--surface-2); color: var(--text); }
.pager-info { color: var(--muted); }
.pager .btn-ghost:disabled { opacity: .45; cursor: default; }
.hc-mail { font-size: 12px; color: var(--muted); }
.hc-score { grid-template-columns: 42px 1fr 34px; }
.cv-check { color: #1a9a4b; font-weight: 900; margin-left: 3px; }
.cv-check.dry { color: var(--muted); }
.history li.archived { opacity: .65; }
.agenda-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.agenda-head h2 { min-width: 180px; text-align: center; text-transform: capitalize; }
.agenda-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { min-height: 110px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; background: var(--surface); min-width: 0; }
.cal-day.other { opacity: .5; }
.cal-day.today { border-color: var(--sirus-orange); box-shadow: inset 0 0 0 1px var(--sirus-orange); }
.cal-date { font-size: 12px; font-weight: 900; color: var(--heading); }
.ev { display: block; font-size: 11px; line-height: 1.3; border-radius: 6px; padding: 2px 5px; text-decoration: none; overflow: hidden; }
.ev-title { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-detail { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.ev-mail { background: #e8edfb; color: #000c6e; }
.ev-follow { background: #edf8ef; color: #1d6b31; }
.ev-submit { background: #fdf0e3; color: #7a3d00; }
.submission { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.submission > .label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); }
.submission > p.muted { margin: 4px 0 8px; }
.submission .mail-card.sent { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.submission-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.submission-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
@media (max-width: 720px) { .submission-fields { grid-template-columns: 1fr; } }
.sent-submission { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.ov-submitted { font-size: 13px; line-height: 1.35; white-space: nowrap; }
.doc-export { font-size: 13px; margin: 8px 0; overflow-wrap: anywhere; }
.rematch { margin-top: 10px; }
.rematch .actions { align-items: center; flex-wrap: wrap; }
.sheet-line { flex-basis: 100%; font-size: 13px; }
.sheet-form { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px 12px; margin-top: 6px; }
.sheet-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sheet-form .wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .sheet-form { grid-template-columns: 1fr; } }
.channel-form { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: 6px; }
.ev-late { background: #fbeeed; color: #b3261e; }
.agenda-legend .ev { display: inline-block; font-weight: 700; }
@media (max-width: 720px) { .cal-day { min-height: 70px; } .ev-detail { display: none; } }
.shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.shortcut {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px 4px 4px; cursor: pointer;
}
.shortcut:hover { border-color: var(--sirus-blue); }
.work-followup { margin-top: 16px; scroll-margin-top: 90px; }
.work-docs, .work-mail { scroll-margin-top: 90px; }
.followup-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.followup-row label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.followup-row select, .followup-row input, .followup-note textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
}
.followup-note { margin-top: 12px; }
.followup-note textarea { width: 100%; }
.followup-note .actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.logbook { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.logbook li { display: grid; grid-template-columns: 150px 70px 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.log-when { color: var(--muted); }
.log-kind { font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--heading); }
.log-notitie .log-kind { color: var(--sirus-orange); }
.log-text { white-space: pre-wrap; }
@media (max-width: 720px) { .logbook li { grid-template-columns: 1fr; } }
.hc-follow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.status-select {
  font: inherit; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.status-select.st-opvolgen { border-color: #9cc9a6; background: #edf8ef; color: #1d6b31; }
.status-select.st-wissen { border-color: #e7b4b0; background: #fbeeed; color: #b3261e; }
.status-select.st-gesprek_gepland { border-color: #a9c2e6; background: #eef4fc; color: #1f4f8f; }
.status-select.st-goedgekeurd { border-color: #6fb582; background: #dff3e4; color: #14532a; }
.status-select.st-geweigerd,
.status-select.st-geweigerd_na_gesprek { border-color: #efc79a; background: #fdf3e8; color: #9a4a00; }
.reason-input {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; width: 100%; resize: vertical;
}
.ov-status { display: grid; gap: 4px; min-width: 170px; }
.ov-status .reason-input { font-size: 12px; min-height: 26px; }
.followup-reason { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.followup-tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
.followup-input {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px;
}
.followup-input.today { border-color: var(--sirus-orange); color: var(--sirus-orange); font-weight: 700; }
.followup-input.late { border-color: #e7b4b0; background: #fbeeed; color: #b3261e; font-weight: 700; }
.followup-tag.today { color: var(--sirus-orange); font-weight: 700; }
.followup-tag.late { color: #b3261e; font-weight: 700; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.btn-ghost.danger { color: #b3261e; border-color: #e7b4b0; }
table.overview tr.archived td { color: var(--muted); }
table.overview tbody tr { cursor: default; }
table.overview tbody tr.ov-row { cursor: pointer; }
table.overview tbody tr.ov-row:hover, table.overview tbody tr.ov-row.open { background: var(--tint); }
table.overview tr.ov-mails > td { background: var(--tint); padding: 10px 14px; }
.ov-mails .label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); margin-bottom: 6px; }
.sent-mails { display: grid; gap: 6px; }
.sent-mail { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 6px 10px; }
.sent-mail summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; cursor: pointer; font-size: 13px; }
.sm-when { color: var(--muted); min-width: 130px; }
.sm-to { font-weight: 700; color: var(--heading); }
.sm-subject { flex: 1; min-width: 160px; }
.work-sent { margin-top: 16px; scroll-margin-top: 90px; }
.ov-scores { display: flex; gap: 10px; flex-wrap: wrap; white-space: nowrap; }
.ov-score b { color: var(--heading); }

/* --- Employees ------------------------------------------------------------------------------- */
.employees-page h2 { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.employee-list { display: grid; gap: 14px; }
.employee { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.employee.off { opacity: .7; background: var(--surface-2); }
.employee-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.employee-photo-frame {
  width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--sirus-blue); border: 2px solid var(--line);
}
.employee-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The silhouette (as on the anonymous CV) has a wide empty margin: zoom in on head and shoulders. */
.employee-photo.silhouette { transform: scale(1.3) translateY(10%); }
.employee-main { flex: 1; min-width: 200px; }
.made-cvs-box { margin-top: 8px; }
/* Medewerkers > Bronnen controleren */
.profile-check { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.profile-check .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.profile-check textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.contradictions, .changes { padding-left: 20px; display: grid; gap: 12px; }
.contradiction .quotes { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 3px; font-size: 13px; }
.quote-missing { color: #b3261e; font-weight: 700; }
.extra-correction { display: grid; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.proposal h4 { margin: 14px 0 6px; }
.change-head { display: flex; gap: 8px; align-items: center; }
.change-new { display: grid; gap: 4px; font-size: 13px; margin: 4px 0; }
.change-target { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.change-target .check-row { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; }
.suggest-hint { font-size: 12px; }
.suggest-done { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #1d6b31; }
.made-cvs { display: grid; gap: 8px; margin-top: 8px; }
.made-cv { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.made-cv-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.made-cv-head a { font-weight: 700; color: var(--heading); }
.made-cv-date { margin-left: auto; font-size: 12px; }
.made-cv-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.employee-head h3 { font-size: 17px; font-weight: 900; }
.employee .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.employee details { margin-top: 10px; }
.employee summary { cursor: pointer; color: var(--heading); font-weight: 700; font-size: 13px; }
.switch-row { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13px; position: relative; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row .track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch-row .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch-row input:checked + .track { background: #1a9a4b; }
.switch-row input:checked + .track::after { transform: translateX(16px); }
.switch-row input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(0, 12, 110, .25); }
.uploader { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.employee-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.employee-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.employee-form .wide { grid-column: 1 / -1; }
.employee-form input, .employee-form select, .employee-form textarea, .uploader select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px;
}
@media (max-width: 720px) { .employee-form { grid-template-columns: 1fr; } }

/* --- Tabs: next to the logo, on the bottom edge of the top bar; the active tab joins the page -- */
.topbar { padding-bottom: 0; align-items: stretch; column-gap: 28px; }
.topbar .brand, .topbar .topbar-right { padding-bottom: 12px; align-self: center; }
.app-tabs {
  order: 2; flex: 1 1 auto; display: flex; align-items: flex-end; gap: 2px;
  min-width: 0; overflow-x: auto; scrollbar-width: none;
}
.topbar .topbar-right { order: 3; }
.app-tabs .nav-link {
  border: 0; border-radius: 10px 10px 0 0; padding: 9px 18px 10px; white-space: nowrap;
  color: rgba(255, 255, 255, .78); font-size: 14px; background: transparent;
}
.app-tabs .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.app-tabs .nav-link.active { color: var(--heading); background: var(--bg); }
.app-tabs .nav-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 960px) {
  /* Small screens: logo and status on top, the tabs on their own row below. */
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .app-tabs { order: 4; flex-basis: 100%; }
  .app-tabs .nav-link { padding: 8px 12px 9px; font-size: 13px; }
}
.file-picks { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.file-picks legend { font-size: 13px; color: var(--heading); font-weight: 700; padding: 0 4px; }
.file-picks input[type="file"] { font-size: 12px; max-width: 100%; }
.tag.dnc { background: #fde7e5; color: #b3261e; }
.dnc-row { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0 10px; }
.mail-new .label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); }
.mail-new p.muted { margin: 4px 0 8px; }
.mail-another { margin-top: 12px; }
.doc-options { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); margin: 10px 0; }
.doc-option { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; }
.doc-option-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); }
.doc-option-values { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.doc-choice { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.doc-remake { margin-top: 12px; }
.doc-remake summary { cursor: pointer; color: var(--heading); font-weight: 700; font-size: 13px; }
@media (max-width: 600px) { .doc-option { grid-template-columns: 1fr; gap: 4px; } }

/* --- Work cards: CV/letter and mail, each its own card with a light tint ---------------------- */
.work-card {
  margin-top: 18px; padding: 16px 18px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); border-left-width: 4px;
}
.work-docs { background: color-mix(in srgb, var(--sirus-blue) 5%, var(--surface)); border-left-color: var(--sirus-blue); }
.work-mail { background: color-mix(in srgb, var(--sirus-orange) 6%, var(--surface)); border-left-color: var(--sirus-orange); }
.work-card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--heading);
}
.work-step {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; color: #fff; background: var(--sirus-blue); letter-spacing: 0;
}
.work-mail .work-step { background: var(--sirus-orange); }
.work-card .doc-options, .work-card .mail-card, .work-card .mail-new { background: var(--surface); }
.work-card .mail-card.sent { background: var(--tint); }

/* --- Admin subtabs and backups ---------------------------------------------------------------- */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.subtabs button {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: none; border: 0;
  border-bottom: 3px solid transparent; padding: 8px 14px; cursor: pointer; margin-bottom: -1px;
}
.subtabs button:hover { color: var(--heading); }
.subtabs button.active { color: var(--heading); border-bottom-color: var(--sirus-orange); }
.admin h3 { font-size: 15px; font-weight: 900; margin: 18px 0 6px; color: var(--heading); }
.schedule-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: start; }
.schedule-form select, .schedule-form input[type="time"] { height: 38px; box-sizing: border-box; margin: 0; }
.schedule-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.schedule-form .wide { grid-column: 1 / -1; }
/* Checkbox and "Bewaar de laatste [n] geplande back-ups": one line, control between the words. */
.schedule-form label.filter-check, .schedule-form label.inline-field {
  display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px;
}
.schedule-form label.filter-check input[type="checkbox"] { width: auto; margin: 0; flex: none; }
.schedule-form label.inline-field input[type="number"] { width: 80px; margin: 0; }
.schedule-form select, .schedule-form input[type="time"], .schedule-form input[type="number"] {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px;
}
.mail-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mail-identity .wide { grid-column: 1 / -1; }
.mail-identity label { display: grid; font-size: 13px; color: var(--muted); }
.mail-identity input[type="text"] {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 4px; outline: none;
}
.admin .mail-identity textarea { min-height: 220px; }
.mail-identity .label, .mail-signature .label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); margin-bottom: 4px; }
@media (max-width: 720px) { .mail-identity { grid-template-columns: 1fr; } }
.logo-row .label { margin-bottom: 4px; }
.logo-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-box img { max-height: 60px; max-width: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.logo-row p { margin: 6px 0 0; font-size: 12px; }
.signature-preview { display: block; width: 100%; height: 60px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mail-signature { margin-top: 8px; }
.release-notes { display: grid; gap: 12px; margin-top: 12px; }
.release { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.release.current { border-color: var(--sirus-orange); box-shadow: inset 3px 0 0 var(--sirus-orange); }
.release-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.release-head strong { color: var(--heading); font-size: 15px; }
.release ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.release li { display: grid; grid-template-columns: 82px 1fr; gap: 8px; font-size: 14px; align-items: baseline; }
.release-kind { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 2px 8px; text-align: center; }
.kind-nieuw { background: #edf8ef; color: #1d6b31; }
.kind-opgelost { background: #e8edfb; color: #000c6e; }
@media (max-width: 720px) { .release li { grid-template-columns: 1fr; } }
.work-progress { display: grid; gap: 4px; margin-top: 10px; }
.work-progress-track { height: 8px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); overflow: hidden; }
.work-progress-track i {
  display: block; height: 100%; width: 0; border-radius: 999px; transition: width .5s linear;
  background: linear-gradient(90deg, var(--sirus-orange), #ff8a4d);
}
.work-progress-text { font-size: 12px; font-weight: 700; color: var(--heading); }
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; flex-direction: column;
  align-items: center; pointer-events: none;
}
.progress-bar[hidden] { display: none; }
.progress-track { width: 100%; height: 4px; background: rgba(255, 85, 0, .18); overflow: hidden; }
.progress-track i { display: block; width: 35%; height: 100%; background: var(--sirus-orange); animation: progress-slide 1.2s ease-in-out infinite; }
.progress-text {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--sirus-orange);
  border-radius: 0 0 8px 8px; padding: 2px 12px;
}
@keyframes progress-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .progress-track i { animation: none; width: 100%; opacity: .6; } }
.send-error { color: #b3261e; background: #fbeeed; border: 1px solid #e7b4b0; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; margin-top: 6px; }
.send-error[hidden] { display: none; }
.full-mail { display: grid; gap: 8px; margin-top: 8px; }
.full-mail .facts { margin: 0; }
tr.mail-open > td { background: var(--tint); }
.upload-label { cursor: pointer; display: inline-flex; align-items: center; }
.link-button { background: none; border: 0; color: var(--heading); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.backup-actions { white-space: nowrap; }
/* Busy / done / failed for the last backup action, right under the buttons. */
.backup-status {
  margin-top: 12px; padding: 10px 14px; border-radius: 12px; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sirus-blue);
}
.backup-status.ok { border-left-color: #1a8a4a; }
.backup-status.error { border-left-color: var(--sirus-orange); }
.backup-status .work-progress { margin-top: 0; }
.upload-label.disabled { opacity: .5; pointer-events: none; }
/* The logo block has the same width on every page, so the tabs next to it never shift. */
.topbar .brand { flex: 0 0 210px; min-width: 0; }
.brand-app { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .topbar .brand { flex: 0 1 auto; } }

/* --- Wider screens: a bit more room for the main view, more air between the history cards --- */
.shell { max-width: 1680px; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; }
.history { gap: 14px; padding: 4px 6px 4px 2px; }
.history li.hcard { padding: 14px 40px 14px 16px; }
.hcard { gap: 6px; }
.hc-scores { gap: 6px; margin-top: 6px; }
@media (max-width: 960px) { .shell { grid-template-columns: 1fr; } }

/* Online CV per employee (Medewerkers, 2026-11-24) */
.skill-profile-box { margin-top: 10px; }
.skill-profile-box > summary { font-weight: 700; color: var(--heading); cursor: pointer; }
.sp-stamp { font-weight: 400; font-size: 13px; }
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.sp-status { flex-basis: 100%; }
.sp-hero { background: linear-gradient(135deg, var(--sirus-blue), var(--sirus-blue-deep)); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.sp-headline { margin: 0 0 12px; font-size: 16px; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.sp-fact { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.sp-fact strong { font-size: 20px; font-weight: 900; color: var(--sirus-orange); }
.sp-fact span { font-size: 12px; opacity: .85; }
.sp-hero .muted { color: rgba(255, 255, 255, .75); }
.sp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.sp-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--tint); color: var(--text); }
.sp-hero .sp-chip { background: rgba(255, 255, 255, .15); color: #fff; }
.sp-chip.small { font-size: 11px; padding: 1px 8px; }
.sp-searchbar { padding: 12px 0 8px; }
.sp-search { width: 100%; font-size: 15px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.sp-search:focus { outline: none; border-color: var(--sirus-orange); }
.sp-answer { margin-top: 6px; font-weight: 700; color: var(--heading); min-height: 1.5em; }
.sp-none { color: var(--sirus-orange); }
.sp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sp-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.sp-group h4 { margin: 0 0 8px; color: var(--heading); display: flex; justify-content: space-between; }
.sp-group h4 .n { color: var(--muted); font-weight: 400; font-size: 12px; }
.sp-skill { display: grid; grid-template-columns: minmax(90px, 1.3fr) 1fr auto; grid-template-areas: "name bar years" "level last last"; column-gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); cursor: help; }
.sp-skill:last-child { border-bottom: 0; }
.sp-name { grid-area: name; font-weight: 700; font-size: 14px; }
.sp-warn { color: var(--sirus-orange); }
.sp-bar { grid-area: bar; height: 8px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.sp-bar i { display: block; height: 100%; border-radius: 4px; background: var(--sirus-blue); }
.lvl-expert .sp-bar i { background: var(--sirus-orange); }
.sp-years { grid-area: years; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sp-level { grid-area: level; font-size: 11px; color: var(--muted); }
.sp-last { grid-area: last; font-size: 11px; text-align: right; }
.sp-title { color: var(--heading); margin: 18px 0 8px; }
.sp-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--tint); }
.sp-timeline > li { position: relative; padding: 0 0 14px 12px; }
.sp-timeline > li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--sirus-orange); border: 3px solid var(--surface); }
.sp-role { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sp-role strong { color: var(--heading); font-size: 15px; }
.sp-projects { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.sp-projects > li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); }
.sp-projects > li.sp-hit { border-color: var(--sirus-orange); box-shadow: 0 0 0 2px rgba(255, 85, 0, .2); }
.sp-summary { font-size: 13px; }
@media (prefers-color-scheme: dark) {
  .sp-hero { background: linear-gradient(135deg, #1a2360, #0e1438); }
}

/* --- Analysis in six sections, each with its own light tint (Jan, 2026-11-24) ----------------- */
.sec { --hue: var(--sirus-blue); background: color-mix(in srgb, var(--hue) 6%, var(--surface)); border-left: 5px solid var(--hue); scroll-margin-top: 90px; }
.sec-1 { --hue: #000c6e; }
.sec-2 { --hue: #1f8c46; }
.sec-3 { --hue: #6b3fa0; }
.sec-4 { --hue: #ff5500; }
.sec-5 { --hue: #0f8a8a; }
.sec-6 { --hue: #6b7280; }
@media (prefers-color-scheme: dark) {
  .sec { background: color-mix(in srgb, var(--hue) 14%, var(--surface)); }
  .sec-1 { --hue: #6f7cff; }
}
.sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 900; color: var(--heading); }
.sec-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; color: #fff; background: var(--hue); }
.sec-sub { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--heading); }
.sec-sub:first-of-type { margin-top: 4px; }
.sec-subnum { font-size: 12px; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--hue); letter-spacing: 0; }
/* Inner blocks sit on the section tint as white panels. */
.sec .job-card, .sec .tabs-card, .sec .bizzy-card, .sec .followup, .sec .logbook-box, .sec .work-sent {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.sec .tabs-card { padding: 0; overflow: hidden; }
.sec .work-card { margin-top: 10px; }
.sec .work-docs { border: 0; padding: 0; background: none; margin-top: 0; }
.person-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.avatar.small { width: 26px; height: 26px; font-size: 11px; }
.log-count { margin: 12px 0 4px; }
/* The fit box moves under the title when the section is narrow, so the title keeps its width. */
.sec { container-type: inline-size; }
@container (max-width: 680px) {
  .sec .job-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sec { padding: 16px 14px; }
  .sec .job-card, .sec .bizzy-card, .sec .followup, .sec .logbook-box, .sec .work-sent { padding: 12px; }
}
