@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/Manrope-Variable.ttf") format("truetype");
}

/* ===== Design tokens (wave-9): light work tool, tinted neutrals, brand ink / mint / turquoise ===== */
:root {
  color-scheme: light;
  --bg: oklch(98.4% 0.006 175);
  --surface: oklch(99.6% 0.003 175);
  --rail: oklch(95.8% 0.014 172);
  --hover: oklch(95.6% 0.012 175);
  --line: oklch(91% 0.012 172);
  --line-strong: oklch(80% 0.022 172);
  --ink: #102c26;
  --muted: oklch(46% 0.03 178);
  --fill: #39f4d6;
  --accent-ink: #092d27;
  --accent: #00695f;
  --accent-soft: oklch(94.5% 0.04 178);
  --accent-line: oklch(72% 0.12 178);
  --warn: oklch(44% 0.1 70);
  --warn-bg: oklch(96.5% 0.035 85);
  --danger: oklch(42% 0.15 25);
  --danger-bg: oklch(96.5% 0.02 25);
  --ok: oklch(40% 0.1 160);
  --ok-bg: oklch(95.5% 0.04 160);

  /* legacy aliases used by older components */
  --sidebar: var(--surface);
  --raised: var(--hover);
  --border: var(--line);
  --warning: var(--warn);
  --mint: var(--surface);
  --mint-ink: var(--ink);
  --mint-muted: var(--muted);
  --mint-surface: var(--accent-soft);
  --mint-focus: var(--accent);
  --abyss: var(--bg);
  --pool: var(--surface);
  --line-legacy: var(--line);

  --radius: 6px;
  --radius-lg: 10px;
  --rail-w: 220px;
  --chat: 760px;
  --rail-panel: 320px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --t: 140ms;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-chat: 15px;
  --fs-h: 18px;
  --fs-title: 22px;
  --text-label: 12px;
  --text-meta: 13px;
  --text-ui: 14px;
  --text-body: 14px;
  --text-section: 18px;
  --text-welcome: 22px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-title: 650;
  --weight-wordmark: 750;
  --wordmark-weight: 750;
  --wordmark-track: -0.03em;
  --ctl: 44px;
}
@media (pointer: fine) and (min-width: 1024px) {
  :root { --ctl: 36px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--fs-base);
  line-height: 1.5;
  font-optical-sizing: auto;
  font-kerning: normal;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body, button, select, textarea, input, summary { font-family: inherit; }
body { min-height: 100dvh; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ico { width: 20px; height: 20px; flex: 0 0 20px; display: block; color: currentColor; }

/* ===== Base controls ===== */
.btn-quiet, button, select, summary, a.export {
  min-height: var(--ctl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--weight-medium);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
button:hover:not(:disabled), a.export:hover { background: var(--hover); }

.btn-primary {
  background: var(--fill);
  color: var(--accent-ink);
  border-color: var(--accent-line);
  font-weight: var(--weight-semibold);
}
.btn-primary:hover:not(:disabled) { background: color-mix(in oklch, var(--fill) 88%, var(--ink)); }
.btn-quiet { width: auto; display: inline-flex; }

button:focus-visible,
select:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:disabled, a[aria-disabled="true"], textarea:disabled, input:disabled, select:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.link-btn {
  display: inline-flex;
  width: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 8px;
}
.link-btn:hover:not(:disabled) { background: transparent; color: var(--ink); }
.icon-btn { width: var(--ctl); min-width: var(--ctl); padding: 0; flex: 0 0 auto; border-color: transparent; background: transparent; }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  height: 100dvh;
  max-width: 100%;
  overflow: hidden;
}

.rail {
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 4px; }
.mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: block;
  padding: 5px;
  background: var(--ink);
  border-radius: 8px;
}
.brand-text { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.wordmark {
  font-size: 17px;
  font-weight: var(--weight-wordmark);
  letter-spacing: var(--wordmark-track);
  line-height: 1.1;
}
.beta, .workspace-tag {
  font-size: var(--fs-sm);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.market { display: flex; flex-direction: column; gap: 4px; }
.market-btn {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--ctl);
  padding: 4px 10px 4px 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  justify-content: stretch;
}
.market-code {
  display: inline-grid;
  place-items: center;
  height: 24px;
  border-radius: 6px;
  background: var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.market-name { font-size: var(--fs-base); font-weight: var(--weight-semibold); }
.market-count { font-size: var(--fs-sm); color: var(--muted); }
.market-btn:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.market-btn[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.market-btn[aria-pressed="true"] .market-code { background: var(--fill); color: var(--accent-ink); }
.market-mini { display: none; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: var(--ctl);
  padding: 4px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: var(--weight-medium);
  text-align: left;
}
.rail-link:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.rail-link[aria-current="page"],
.rail-link[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: var(--weight-title);
}
.rail-link[aria-current="page"] .ico,
.rail-link[aria-pressed="true"] .ico { color: var(--accent); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.account-box { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.account-name { padding: 0 12px; font-size: var(--fs-sm); font-weight: var(--weight-semibold); color: var(--muted); overflow-wrap: anywhere; }
.account-box .error { margin: 4px 0; font-size: var(--fs-sm); }

.shell { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }

.head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px 12px;
  min-width: 0;
  flex-shrink: 0;
}
.head-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1 1 auto; }
.head h1 { font-size: var(--fs-h); font-weight: var(--weight-title); line-height: 1.25; letter-spacing: -0.01em; }
.head-market { font-size: var(--fs-sm); color: var(--muted); font-weight: var(--weight-medium); }
.head-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.status-chip {
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--hover);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.activity { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.work-toggle { flex: 0 0 auto; }

.flash, .error, .fail {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid color-mix(in oklch, var(--danger) 35%, var(--danger-bg));
  padding: 10px 12px;
  border-radius: var(--radius);
  margin: 0 0 12px;
  font-size: var(--fs-base);
}
#flash { margin: 0 32px 12px; }
.error { margin: 0 0 8px; }
.fail { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.subtabs {
  display: flex;
  gap: 4px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow-x: auto;
}
.subtab {
  min-height: var(--ctl);
  width: auto;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  white-space: nowrap;
}
.subtab:hover:not(:disabled) { background: transparent; color: var(--ink); }
.subtab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: var(--weight-title); }

.stage { flex: 1; min-height: 0; min-width: 0; display: flex; overflow: hidden; }
.stage-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 32px; overflow: hidden; }
.view-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; padding: 16px 0 32px; }
#view-agent.chat-mode { overflow: hidden; padding: 0; }
#view-agent:not(.chat-mode) { padding-top: 16px; }

.meta, .note, .empty, .pager, .hint, .cap, .counts, .context-line { color: var(--muted); font-size: var(--fs-base); }
.hint, .cap { font-size: var(--fs-sm); margin: 0 0 12px; }
.counts { margin: 0 0 16px; }
.context-line { margin: 0 0 12px; font-size: var(--fs-sm); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0 12px; }
.empty-copy { display: block; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.empty-actions button { width: auto; }
.loading { color: var(--muted); font-size: var(--fs-base); margin: 8px 0; }

/* work rail (Práce) */
.work-rail {
  flex: 0 0 var(--rail-panel);
  width: var(--rail-panel);
  min-width: 0;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.work-title { font-size: var(--fs-h); font-weight: var(--weight-title); }
#work-close { width: auto; }
.work-lock { padding: 8px 12px; border-radius: var(--radius); background: var(--hover); color: var(--muted); font-size: var(--fs-sm); }
.work-mission { overflow-wrap: anywhere; }
.work-steps, .work-recent, .plan-assumptions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.work-step, .work-run { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: var(--fs-base); }
.work-step-status { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* login */
.login-body { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); color: var(--ink); }
.login-card {
  width: min(100%, 400px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.login-card .brand { padding: 0; }
.login-card h1 { margin: 24px 0 8px; font-size: var(--fs-h); font-weight: var(--weight-title); }
.login-card .hint { margin: 0 0 16px; color: var(--muted); }
.login-card label { display: block; margin: 12px 0 4px; font-size: var(--fs-base); font-weight: var(--weight-semibold); }
.login-card input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.login-card .btn-row { margin-top: 16px; }
.login-card .error { margin-top: 12px; }


/* ===== Components kept from earlier waves (token-driven) ===== */
.row-main { cursor: pointer; }
.row-main:hover { background: var(--surface); }
.row-main[aria-selected="true"] {
  background: var(--raised);
}
.row-name { font-weight: 600; color: var(--ink); }
.row-date { color: var(--muted); font-size: 13px; }
.detail-cell { background: var(--surface); }
.detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 8px;
}
.detail p { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.detail h3 {
  margin: 8px 0 0;
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
}
.section-title {
  margin: 16px 0 8px;
  font-size: var(--text-section);
  font-weight: var(--weight-title);
}

.suppress-box,
.person-form,
.event-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  max-width: 520px;
}

.channel-plan p, .channel-plan a { margin: 8px 0 0; }

.msg-list,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-item,
.event-item,
.agent-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--sidebar);
  padding: 12px;
  min-width: 0;
}
.msg-head,
.agent-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.msg-title,
.agent-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.msg-meta,
.event-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.msg-body,
.event-body {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.agent-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.agent-row { padding: 12px; }
.agent-row .btn-primary { width: auto; min-width: 120px; }
.agent-row p { margin: 0; }
.agent-row .goal {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 8px;
  margin-right: 8px;
  background: var(--surface);
}
.badge-high {
  background: var(--fill);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.badge-stop {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
}
.badge-low { color: var(--muted); font-weight: 500; }

.crm-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.crm-split:not(.detail-open) { grid-template-columns: minmax(0, 1fr); }
.crm-split:not(.detail-open) .crm-detail { display: none; }
.crm-list,
.crm-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.crm-back { align-self: flex-start; margin-bottom: 8px; }
.crm-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.timeline { gap: 0; }
.event-item {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  margin: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.form-group:first-of-type { border-top: 0; padding-top: 0; }

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}
.settings-group {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
}
.settings-panel {
  max-width: 520px;
  margin-bottom: 16px;
}
.settings-panel label,
.settings-group > label {
  display: block;
  margin: 8px 0 4px;
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
  color: var(--muted);
}
#operator-language {
  max-width: 320px;
}
.chat-language {
  margin: 0;
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.integration-channel,
.owner-report {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.integration-channel h3,
.owner-report h3 {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}
.integration-status {
  margin: 0;
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
}
.integration-status[data-status="not_configured"],
.integration-status[data-status="missing"] { color: var(--muted); }
.integration-status[data-status="configured_unverified"] { color: var(--warning); }
.integration-status[data-status="verified"] { color: var(--ink); }
.integration-status[data-status="error"] { color: var(--danger); }
.integration-channel [data-integration-check],
#owner-report-preview,
#owner-report-copy,
#preferences-save {
  width: auto;
  min-width: 160px;
  align-self: start;
}
.owner-report-text {
  margin: 0;
  padding: 12px;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: var(--text-ui);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#preferences-feedback.is-error,
#integrations-feedback.is-error {
  color: var(--danger);
}
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.advanced {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.advanced > summary {
  list-style: none;
  justify-content: flex-start;
  width: 100%;
}
.advanced > summary::-webkit-details-marker { display: none; }

.facts {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 16px;
}
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#blockers {
  margin: 0 0 16px;
  padding-left: 20px;
}

a.ext {
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pager-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

a.export {
  margin-top: 16px;
  max-width: 240px;
}

h3 { font-size: var(--text-body); font-weight: var(--weight-semibold); margin: 16px 0 8px; }

button:disabled, a[aria-disabled="true"], textarea:disabled, input:disabled, select:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
  min-width: min(100%, 160px);
}

.brain-panel { min-width: 0; }
.brain-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.brain-item {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 10px 4px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brain-item.expanded { background: var(--sidebar); padding: 10px 8px; }
.brain-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.brain-item-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}
.brain-item .meta { font-size: 13px; }
.brain-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brain-item-actions button { width: auto; }
.brain-excerpt {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.brain-form,
.brain-memory {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin-bottom: 24px;
}
.brain-form label,
.brain-memory label,
#mission-advanced label {
  font-size: 14px;
  color: var(--muted);
}
#mission-advanced { border-top: 0; padding: 0; }
#mission-plan,
#mission-plan-missing { overflow-wrap: anywhere; }
#view-brain { gap: 0; }
#view-brain .section-title { overflow-wrap: anywhere; }
.brain-form input,
.brain-form textarea,
.brain-memory input,
.brain-memory textarea {
  width: 100%;
  max-width: 100%;
}
.brain-item-head .brain-item-title { width: 100%; }
.brain-expand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.brain-expand::after { content: '+'; flex-shrink: 0; color: var(--muted); }
.brain-expand[aria-expanded="true"]::after { content: '−'; }

.brand-doc {
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
}
.brand-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.brand-doc .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.brand-doc .word {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-wrap: wrap;
}
.brand-doc .word .mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.brand-doc .word .wordmark,
.brand-doc h1 {
  margin: 0;
  font-size: var(--text-welcome);
  font-weight: var(--wordmark-weight);
  letter-spacing: var(--wordmark-track);
  line-height: 1.05;
}
.brand-doc .tag {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.brand-doc .hero-figure {
  width: min(220px, 32vw);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.brand-doc .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.brand-doc .headline {
  margin: 32px 0 8px;
  font-size: 24px;
  font-weight: var(--weight-title);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-doc .deck {
  margin: 0 0 16px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
}
.brand-doc h2 {
  margin: 40px 0 12px;
  font-size: var(--text-section);
  font-weight: var(--weight-title);
  letter-spacing: 0;
}
.brand-doc p,
.brand-doc li { color: var(--muted); font-size: 15px; }
.brand-doc .lead { max-width: 65ch; }
.brand-doc .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: end;
  margin: 16px 0 8px;
}
.brand-doc .swatch {
  width: 120px;
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--ink);
}
.brand-doc .sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
}
.brand-doc .sizes figure {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.brand-doc .mark {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.brand-doc .phases {
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: phase;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.brand-doc .phases li {
  counter-increment: phase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.brand-doc .phases li::before {
  content: "0" counter(phase);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.brand-doc .motif {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-doc .note-outreach {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.brand-sculpture {
  width: min(420px, 100%);
}
.brand-sculpture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.swatch-bg { background: #121214; }
.swatch-sidebar { background: #1c1c20; }
.swatch-mint { background: #effff9; color: #102c26; }
.swatch-surface { background: #25252b; }
.swatch-raised { background: #33333b; }
.swatch-border { background: #484850; }
.swatch-ink { background: #f6f7f2; color: #102c26; }
.swatch-muted { background: #bfc3cb; color: #102c26; }
.swatch-accent { background: #39f4d6; color: #092d27; }
.swatch-accent-ink { background: #092d27; }
.swatch-mint-ink { background: #102c26; }
.swatch-warning { background: #edc78a; color: #102c26; }
.swatch-danger { background: #f2a5a5; color: #102c26; }
@media (max-width: 375px) {
  .brand-main { padding: 20px 12px 48px; }
  .brand-doc .hero { grid-template-columns: minmax(0, 1fr); }
  .brand-doc .hero-figure { width: min(140px, 40vw); }
}
@media (max-width: 320px) {
  .brand-doc .word .wordmark,
  .brand-doc h1 { font-size: 26px; }
  .brand-doc .headline,
  .brand-doc h2 { font-size: 20px; }
  .brand-doc .phases li { font-size: 14px; }
}
@media (min-width: 1440px) {
  .brand-main { max-width: 960px; padding-top: 48px; }
}


.brand-doc .swatch-ink,
.brand-doc .swatch-muted,
.brand-doc .swatch-mint,
.brand-doc .swatch-accent,
.brand-doc .swatch-warning,
.brand-doc .swatch-danger { color: var(--mint-ink); }
.brand-doc .sizes img { padding: 0; border: 0; background: none; border-radius: 0; }
.brand-doc .sizes img[width="24"] { width: 24px; height: 24px; }
.brand-doc .sizes img[width="32"] { width: 32px; height: 32px; }
.brand-doc .sizes img[width="64"] { width: 64px; height: 64px; }
.brand-doc a { color: var(--accent); }

/* Oslovení (autonomní oslovování) */
.osl-panel { overflow-y: auto; gap: 12px; }
#osl-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.osl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--sidebar);
  padding: 16px;
  min-width: 0;
}
.osl-h { margin: 0 0 12px; font-size: var(--text-section); font-weight: var(--weight-title); }
.osl-h2 { margin: 16px 0 8px; font-size: var(--text-body); font-weight: var(--weight-semibold); }
.osl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.osl-limit { justify-content: space-between; }
.osl-limit-label { font-size: var(--text-ui); font-weight: var(--weight-medium); }
.osl-sub { color: var(--muted); font-size: var(--text-meta); margin: 0; overflow-wrap: anywhere; }
.osl-counter { margin: 4px 0; font-size: var(--text-section); font-weight: var(--weight-semibold); }
.osl-switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.osl-switch-label { font-size: var(--text-body); font-weight: var(--weight-semibold); }
.osl-switch {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  min-width: 72px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--raised);
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.osl-switch-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.osl-switch[aria-checked="true"] { background: var(--fill); border-color: var(--accent); }
.osl-switch[aria-checked="true"] .osl-switch-knob { transform: translateX(28px); background: var(--accent-ink); }
.osl-switch:disabled { opacity: 0.6; cursor: progress; }
.osl-stepper { display: inline-flex; align-items: center; gap: 4px; }
.osl-stepper .osl-action { min-width: 44px; padding: 8px; }
.osl-limit-value { min-width: 44px; text-align: center; font-size: var(--text-section); font-weight: var(--weight-semibold); }
.osl-select { min-height: 44px; max-width: 100%; }
.osl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.osl-action, .osl-btn { width: auto; }
.osl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  background: transparent;
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.osl-btn:hover { background: var(--raised); }
.osl-note { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border); font-size: var(--text-meta); overflow-wrap: anywhere; }
.osl-note-warn { color: var(--warning); border-color: var(--warning); }
.osl-note-stop { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.osl-results { margin-top: 8px; }
.osl-run-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.osl-run-item { font-size: var(--text-meta); overflow-wrap: anywhere; }
.osl-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.osl-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
  background: var(--surface);
}
.osl-chip-name { font-weight: var(--weight-semibold); }
.osl-chip-mode { font-size: var(--text-meta); font-weight: var(--weight-semibold); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.osl-chip-hint { grid-column: 1 / -1; color: var(--muted); font-size: var(--text-meta); }
.osl-chip-auto .osl-chip-mode { background: var(--fill); color: var(--accent-ink); border-color: var(--accent); }
.osl-chip-manual .osl-chip-mode { color: var(--warning); border-color: var(--warning); }
.osl-chip-blocked .osl-chip-mode { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.osl-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.osl-task .msg-body { max-height: 240px; overflow-y: auto; }
.osl-copy-tmp { position: fixed; left: -9999px; top: 0; }
@media (max-width: 420px) {
  .agent-sub .tab .nav-ico { display: none; }
  .agent-sub .tab { padding: 6px 4px; font-size: 12px; }
  .osl-card { padding: 12px; }
  .osl-actions > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .osl-switch, .osl-switch-knob { transition: none; }
}

/* ===== Firmy: vyhledávač ===== */
.view-firmy { padding-top: 0; }
.co-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0 12px;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent); }
.searchbar input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-chat);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.searchbar input::placeholder { color: var(--muted); opacity: 1; }
.searchbar input::-webkit-search-cancel-button { cursor: pointer; }
.kbd {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--bg);
}
.co-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chip-select { position: relative; display: inline-flex; }
.chip-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.chip-select select {
  -webkit-appearance: none;
  appearance: none;
  min-height: var(--ctl);
  width: auto;
  max-width: 100%;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: var(--weight-medium);
}
.chip-select.is-active select { background: var(--accent-soft); border-color: var(--accent-line); font-weight: var(--weight-title); }
.chip-toggle { width: auto; display: inline-flex; border-radius: 999px; padding: 0 14px; }
.chip-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); font-weight: var(--weight-title); }
.chip-sort { margin-left: auto; }

.kpis { display: flex; flex-wrap: wrap; gap: 16px 0; list-style: none; margin: 8px 0 0; padding: 0; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 0 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; margin-right: 0; }
.kpi-label { font-size: var(--fs-sm); color: var(--muted); }
.kpi-value { font-size: var(--fs-h); font-weight: var(--weight-title); line-height: 1.2; }

.co-research { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.co-research-text { font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.co-research-text::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 8px; }
.co-research-text.is-idle::before { background: var(--line-strong); }
.co-research-text.is-warn { color: var(--warn); }
.co-research-text.is-warn::before { background: var(--warn); }
.co-where { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.where-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--hover); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--weight-medium); }

.assessment-notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 12px; margin-top: 12px; background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); }
.assessment-notice p { font-size: var(--fs-sm); }
.assessment-notice button { flex-shrink: 0; width: auto; }

.co-tablewrap { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.co-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.co-table th {
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  background: var(--bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.co-table td { padding: 10px 16px; vertical-align: middle; border-bottom: 1px solid var(--line); overflow: hidden; }
.co-table tbody tr:last-child td { border-bottom: 0; }
.co-table .c-name { width: 25%; }
.co-table .c-city { width: 11%; }
.co-table .c-region { width: 13%; }
.co-table .c-sector { width: 23%; }
.co-table .c-fit { width: 11%; }
.co-table .c-status { width: 9%; }
.co-table .c-found { width: 8%; }
.co-row { cursor: pointer; transition: background-color var(--t) var(--ease); }
.co-row:hover { background: var(--hover); }
.co-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.co-row[aria-current="true"] { background: var(--accent-soft); }
.co-name { display: block; font-weight: var(--weight-title); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-domain { display: block; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-cell { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sector-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.co-sector-line .co-cell { min-width: 0; }
.co-found { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--hover);
  color: var(--ink);
  flex: 0 0 auto;
}
.chip-source { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.chip-new { background: var(--accent-soft); color: var(--accent); }
.chip-contacted { background: var(--ok-bg); color: var(--ok); }
.chip-replied { background: var(--fill); color: var(--accent-ink); }
.chip-suppressed { background: var(--hover); color: var(--muted); }
.chip-memory { background: var(--accent-soft); color: var(--accent); }

.co-empty { padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.co-empty strong { color: var(--ink); font-size: var(--fs-h); font-weight: var(--weight-title); }
.co-empty .empty-actions { justify-content: center; }
.sk-row td { padding: 14px 16px; }
.sk-bar { display: block; height: 12px; border-radius: 6px; background: var(--hover); }
.sk-bar.w1 { width: 70%; } .sk-bar.w2 { width: 45%; margin-top: 8px; height: 10px; } .sk-bar.w3 { width: 60%; } .sk-bar.w4 { width: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .sk-bar { animation: sk 1.4s ease-in-out infinite; }
  @keyframes sk { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
}
.co-pager { justify-content: space-between; margin-top: 16px; }
.pager-btns { display: flex; gap: 8px; }
.pager-btns button { width: auto; }

/* ===== Drawer detail ===== */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: -16px 0 40px oklch(24% 0.03 178 / 0.1);
  z-index: 70;
}
.drawer:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) { animation: drawer-in 180ms var(--ease); }
  @keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-titles { flex: 1; min-width: 0; }
.drawer-title { font-size: var(--fs-h); font-weight: var(--weight-title); line-height: 1.3; overflow-wrap: anywhere; }
.drawer-sub { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.drawer-body { flex: 1; overflow: auto; padding: 0 24px 32px; }
.d-sec { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.d-sec:last-child { border-bottom: 0; }
.d-sec h3 { font-size: var(--fs-base); font-weight: var(--weight-title); margin: 0; }
.d-sec p, .d-sec li { font-size: var(--fs-base); overflow-wrap: anywhere; }
.d-muted { color: var(--muted); font-size: var(--fs-sm); }
.d-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-item { display: flex; flex-direction: column; gap: 2px; }
.d-item-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-sm); }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.d-actions button { width: auto; }
.d-note-form { display: flex; flex-direction: column; gap: 8px; }
.d-note-form textarea { min-height: 72px; resize: vertical; }
.d-body-pre { white-space: pre-wrap; background: var(--bg); border-radius: var(--radius); padding: 12px; font-size: var(--fs-base); }
.d-detail-legacy .detail { gap: 8px; padding: 0; }
.d-detail-legacy .detail h3 { margin: 4px 0 0; }
.scrim { display: none; }
@media (max-width: 1099px) {
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: oklch(24% 0.03 178 / 0.25); z-index: 65; }
}

/* ===== Chat ===== */
.chat-stage { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: var(--chat); margin-inline: auto; }
.mission { flex-shrink: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
.mission > summary {
  list-style: none;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-sm);
  padding: 0;
  min-height: var(--ctl);
  gap: 8px;
}
.mission > summary::-webkit-details-marker { display: none; }
.mission > summary::after { content: "+"; margin-left: auto; font-size: var(--fs-h); }
.mission[open] > summary::after { content: "−"; }
.mission-body { max-height: min(46vh, 380px); overflow: auto; padding: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.mission-body label { font-size: var(--fs-sm); color: var(--muted); }
.mission-body textarea, .mission-body select { width: 100%; }
#mission-advanced { border-top: 0; padding: 0; }
#mission-plan, #mission-plan-missing { overflow-wrap: anywhere; }

.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 0 8px; display: flex; flex-direction: column; scrollbar-width: thin; }
.chat-log { display: flex; flex-direction: column; gap: 24px; padding-bottom: 16px; }
.chat-log:empty { display: none; }
.msg { display: flex; gap: 12px; min-width: 0; }
.msg-u { justify-content: flex-end; }
.avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.avatar img { width: 18px; height: 18px; display: block; }
.avatar-lg { width: 48px; height: 48px; flex-basis: 48px; }
.avatar-lg img { width: 30px; height: 30px; }
.msg-main { min-width: 0; flex: 1; }
.msg-u .msg-main { flex: 0 1 auto; max-width: 85%; }
.bubble-user {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: var(--fs-chat);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.md { font-size: var(--fs-chat); line-height: 1.55; overflow-wrap: anywhere; max-width: 68ch; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; }
.md li { margin: 4px 0; padding-left: 2px; }
.md strong { font-weight: 700; }
.md h4 { margin: 16px 0 8px; font-size: var(--fs-chat); font-weight: 700; }
.md code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; background: var(--hover); border-radius: 4px; padding: 1px 5px; }
.md a { color: var(--accent); text-underline-offset: 3px; }
.md .chat-co {
  display: inline;
  min-height: 0;
  width: auto;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.md .chat-co:hover:not(:disabled) { background: color-mix(in oklch, var(--accent-soft) 70%, var(--fill)); }
.remembered { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.remembered-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: var(--fs-sm);
  font-weight: var(--weight-semibold);
}
.remembered-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.remembered-chip { min-height: 32px; border: 0; width: auto; display: inline-flex; background: var(--accent-soft); color: var(--accent); }
button.remembered-chip:hover:not(:disabled) { background: color-mix(in oklch, var(--accent-soft) 70%, var(--fill)); }
.typing { display: inline-flex; gap: 5px; padding: 10px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.35; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: dot 1.2s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes dot { 0%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }
}

.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 0; width: 100%; }
.chat-empty .empty-q { font-size: var(--fs-title); font-weight: var(--weight-title); letter-spacing: -0.015em; line-height: 1.25; }
.empty-sub { color: var(--muted); font-size: var(--fs-base); max-width: 48ch; }
.prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 8px; }
.prompt {
  min-height: 52px;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: var(--weight-medium);
  line-height: 1.35;
}
.prompt:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }

.plan-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 16px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.plan-card .facts { margin-bottom: 8px; }

.composer-wrap { flex-shrink: 0; padding: 8px 0 16px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.composer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px 12px 8px 16px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea {
  width: 100%;
  min-height: 44px;
  max-height: 200px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
textarea::placeholder { color: var(--muted); }
.composer textarea {
  border: 0;
  background: transparent;
  resize: none;
  padding: 2px 0;
  min-height: 28px;
  font-size: var(--fs-chat);
  line-height: 1.5;
  outline: none;
}
.composer-bar { display: flex; align-items: center; gap: 8px; }
.composer-mode { display: flex; gap: 2px; background: var(--hover); border-radius: 999px; padding: 2px; }
.mode { width: auto; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 0 12px; min-height: calc(var(--ctl) - 4px); font-size: var(--fs-sm); }
.mode[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: var(--weight-title); }
#chat-meta { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); }
#chat-send { width: var(--ctl); min-width: var(--ctl); padding: 0; border-radius: 50%; }
.chat-language { font-size: var(--fs-sm); color: var(--muted); text-align: center; }

/* ===== Generic tables in the older sections ===== */
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { font-weight: 600; color: var(--muted); font-size: var(--fs-sm); }
.co-table th, .co-table td { padding: 10px 16px; overflow-wrap: normal; }
.co-table th { padding: 10px 16px; }
.row-main { cursor: pointer; }
.row-main:hover { background: var(--hover); }
.detail-cell { background: var(--bg); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; align-items: end; }
.toolbar button { width: auto; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-base); color: var(--muted); min-width: min(100%, 160px); flex: 1; }
input[type="search"], input[type="text"], input[type="password"], input[type="datetime-local"], input[type="url"], select {
  min-height: var(--ctl);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.section-title { margin: 16px 0 8px; font-size: var(--fs-h); font-weight: var(--weight-title); }
h3 { font-size: var(--fs-base); font-weight: var(--weight-semibold); margin: 16px 0 8px; }
.badge { display: inline-block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-right: 8px; background: var(--hover); }
.badge-high { background: var(--fill); color: var(--accent-ink); }
.badge-stop { background: var(--hover); color: var(--muted); }
.badge-low { color: var(--muted); font-weight: 500; }

.osl-chip-info { background: var(--bg); }
.osl-chip-name { font-weight: var(--weight-semibold); }
.osl-chips { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.osl-where { margin-top: 16px; }
.osl-where-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Older sections: layout glue ===== */
.settings-panel { display: flex; flex-direction: column; gap: 4px; }
.settings-account { display: none; }
#view-brain, #view-settings, #view-obchody, #view-overview { padding-top: 16px; }
#view-settings .settings-stack { max-width: 720px; }
.agent-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.agent-panel[hidden] { display: none; }
#view-agent:not(.chat-mode) .agent-panel { overflow: auto; padding-top: 16px; padding-bottom: 32px; }
.brain-sub {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--hover);
  border-radius: 999px;
  padding: 2px;
  margin-bottom: 16px;
  align-self: flex-start;
  max-width: 100%;
}
.brain-sub .tab {
  width: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0 16px;
  min-height: calc(var(--ctl) - 4px);
}
.brain-sub .tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: var(--weight-title); }
.facts { font-size: var(--fs-base); }

/* map stays a dark island (labels in the graph are light) */
.bgm-map-column {
  --ink: #f6f7f2;
  --muted: #bfc3cb;
  --border: #2f4a44;
  --surface: #183029;
  --raised: #223f37;
  --bg: #0f1f1c;
  background: #0f1f1c;
}
.bgm-canvas { background: radial-gradient(ellipse at 50% 50%, #1b332d 0%, #0f1f1c 73%); }

@media (min-width: 1101px) { .crm-back { display: none; } }
@media (max-width: 1100px) {
  .crm-split { grid-template-columns: 1fr; }
  .crm-split.detail-open .crm-list { display: none; }
  .crm-split:not(.detail-open) .crm-detail { display: none; }
}
@media (min-width: 768px) {
  #view-overview th, #view-obchody th { white-space: nowrap; }
  .crm-list td:nth-child(3), .crm-list td:last-child button { white-space: nowrap; }
  .crm-list td:last-child { width: 88px; }
}

@media (prefers-reduced-motion: no-preference) {
  button, select, a.export, .co-row, .market-btn, .rail-link, .prompt { transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== Work rail overlay on narrower screens ===== */
@media (max-width: 1099px) {
  .work-rail {
    position: fixed;
    inset: 64px 12px 12px auto;
    width: min(360px, calc(100dvw - 24px));
    z-index: 60;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px oklch(24% 0.03 178 / 0.14);
  }
}

/* ===== Tablet: rail collapses to icons ===== */
@media (min-width: 768px) and (max-width: 1279px) {
  :root { --rail-w: 64px; }
  .rail { padding: 16px 8px; align-items: stretch; }
  .brand { padding: 0; justify-content: center; }
  .brand-text, .market-name, .market-count, .rail-label, .account-name { display: none; }
  .market-btn { grid-template-columns: 1fr; justify-items: center; padding: 4px; }
  .rail-link { justify-content: center; padding: 4px; }
  .head { padding-left: 24px; padding-right: 24px; }
  .stage-main, .subtabs { padding-left: 24px; padding-right: 24px; }
  #flash { margin-left: 24px; margin-right: 24px; }
  .status-chip { display: none; }
}
@media (max-width: 1279px) {
  .kpi { padding-right: 24px; margin-right: 24px; }
}

/* ===== Phone: bottom tab bar, fullscreen drawer ===== */
@media (max-width: 767px) {
  .app { display: flex; flex-direction: column; height: 100dvh; }
  .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 4px 8px env(safe-area-inset-bottom);
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    z-index: 60;
    overflow: visible;
  }
  .rail .brand, #market, .account-box { display: none; }
  .rail-nav { flex-direction: row; flex: 1; gap: 0; }
  .rail-foot { margin: 0; flex-direction: row; }
  .rail-link {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 2px;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
  }
  .rail-foot .rail-link { flex: 0 0 64px; width: 64px; }
  .rail-link .rail-label { font-size: 12px; }
  .rail-link[aria-current="page"], .rail-link[aria-pressed="true"] { border: 0; background: var(--surface); }
  .shell { padding-bottom: calc(60px + env(safe-area-inset-bottom)); flex: 1; }
  .head { padding: 12px 16px 8px; gap: 8px; }
  .head-meta, .head-market { display: none; }
  .market-mini { display: flex; flex-direction: row; gap: 2px; background: var(--hover); border-radius: 999px; padding: 2px; }
  .market-mini .market-btn { width: auto; grid-template-columns: auto; min-height: 40px; padding: 0 14px; border-radius: 999px; }
  .market-mini .market-btn[aria-pressed="true"] { background: var(--surface); }
  .stage-main, .subtabs { padding-left: 16px; padding-right: 16px; }
  #flash { margin: 0 16px 12px; }
  .settings-account { display: block; }
  .kbd { display: none; }
  .searchbar { height: 48px; }
  .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .kpi { padding: 0; margin: 0; border: 0; }
  .chip-sort { margin-left: 0; }
  .co-tablewrap { border-left: 0; border-right: 0; border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .co-table thead { display: none; }
  .co-table, .co-table tbody { display: block; }
  .co-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name name" "city status" "sector found";
    gap: 4px 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .co-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .co-table td.c-name { grid-area: name; }
  .co-table td.c-city { grid-area: city; color: var(--muted); font-size: var(--fs-sm); }
  .co-table td.c-status { grid-area: status; justify-self: end; }
  .co-table td.c-sector { grid-area: sector; }
  .co-table td.c-found { grid-area: found; justify-self: end; }
  .sk-row { display: block; padding: 12px 16px; }
  .sk-row td { display: block; padding: 4px 0; }
  .drawer { width: 100vw; border-left: 0; }
  .drawer-head { padding: 12px 8px 12px 16px; }
  .drawer-body { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
  .prompts { grid-template-columns: 1fr; }
  .chat-scroll { padding-top: 16px; }
  .composer-wrap { padding-bottom: 8px; }
  #chat-meta { display: none; }
  .composer-bar { justify-content: space-between; }
  .work-rail { inset: 56px 8px calc(68px + env(safe-area-inset-bottom)) auto; }
  .btn-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .view-firmy { padding-top: 0; }

  /* older tables become labelled blocks */
  table:not(.co-table), table:not(.co-table) thead, table:not(.co-table) tbody,
  table:not(.co-table) th, table:not(.co-table) td, table:not(.co-table) tr { display: block; }
  table:not(.co-table) thead { display: none; }
  table:not(.co-table) td { border-bottom: 1px solid var(--line); padding-left: 0; }
  table:not(.co-table) td::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 4px; }
  td.detail-cell::before { content: none; }
  .assessment-notice { flex-direction: column; align-items: stretch; }
}
@media (min-width: 768px) {
  .rail-nav .rail-link { min-height: var(--ctl); }
}

/* ===== wave-9 polish ===== */
a { color: var(--accent); text-underline-offset: 3px; }
.view-firmy > * { flex-shrink: 0; }
.d-item a, .d-sec p a { display: inline-flex; align-items: center; min-height: var(--ctl); overflow-wrap: anywhere; }
.drawer-sub a { display: inline-flex; align-items: center; min-height: var(--ctl); }
.market-mini .market-btn { min-height: var(--ctl); }
.composer textarea { min-height: var(--ctl); }
.mode { min-height: var(--ctl); }
.composer-mode { padding: 0; }
button.remembered-chip { min-height: var(--ctl); }
.brain-sub .tab { min-height: var(--ctl); }
.brain-sub { padding: 0; }
.co-where .where-chip, .osl-where-chips .where-chip { min-height: 0; }
.status-chip, .activity { font-variant-numeric: tabular-nums; }

/* ===== wave-9 polish ===== */
a { color: var(--accent); text-underline-offset: 3px; }
.view-firmy > * { flex-shrink: 0; }
.d-item a, .d-sec p a { display: inline-flex; align-items: center; min-height: var(--ctl); overflow-wrap: anywhere; }
.drawer-sub a { display: inline-flex; align-items: center; min-height: var(--ctl); }
.market-mini .market-btn { min-height: var(--ctl); }
.composer textarea { min-height: var(--ctl); }
.mode { min-height: var(--ctl); }
.composer-mode { padding: 0; }
button.remembered-chip { min-height: var(--ctl); }
.brain-sub .tab { min-height: var(--ctl); }
.brain-sub { padding: 0; }
.co-where .where-chip, .osl-where-chips .where-chip { min-height: 0; }
.status-chip, .activity { font-variant-numeric: tabular-nums; }

select { text-align: left; justify-content: flex-start; }
.chip-select select { text-align: left; }
@media (max-width: 767px) {
  .co-table td.c-name, .co-table td.c-city, .co-table td.c-sector, .co-table td.c-status, .co-table td.c-found { width: auto; }
  .co-row { width: 100%; }
  .chip-select { max-width: 100%; }
}

select { text-align: left; justify-content: flex-start; }
.chip-select select { text-align: left; }
@media (max-width: 767px) {
  .co-table td.c-name, .co-table td.c-city, .co-table td.c-sector, .co-table td.c-status, .co-table td.c-found { width: auto; }
  .co-row { width: 100%; }
  .chip-select { max-width: 100%; }
}

.fit { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; flex: 0 0 auto; background: var(--hover); color: var(--muted); }
.fit-mid { background: var(--accent-soft); color: var(--ink); }
.fit-hi { background: var(--fill); color: var(--accent-ink); }


/* ===== Wave-10: launch strip, region, fit meter, readable Obor, drawer lead ===== */
.co-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 8px 0 4px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: var(--fs-base);
  color: var(--ink);
}
.co-launch[hidden] { display: none; }
.co-launch.is-launch { background: var(--accent-soft); border-color: var(--accent-line); }
.launch-dot { width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: var(--line-strong); flex: 0 0 10px; }
.launch-dot.is-live { background: var(--accent); box-shadow: 0 0 0 4px oklch(72% 0.12 178 / 0.25); }
.launch-market { font-weight: var(--weight-title); font-size: var(--fs-base); }
.launch-seg { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.launch-seg::before { content: "·"; margin: 0 10px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .launch-dot.is-live { animation: launch-pulse 2.4s ease-in-out infinite; }
  @keyframes launch-pulse { 0%, 100% { box-shadow: 0 0 0 3px oklch(72% 0.12 178 / 0.28); } 50% { box-shadow: 0 0 0 6px oklch(72% 0.12 178 / 0.1); } }
}

.co-table th, .co-table td { padding: 12px 12px; }
.co-table th:first-child, .co-table td:first-child { padding-left: 16px; }
.co-table td { font-size: var(--fs-base); line-height: 1.35; }
.co-table th.c-fit, .co-table td.c-fit { padding-right: 8px; }
.co-domain-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.co-domain-line .co-domain { flex: 0 1 auto; min-width: 0; }
.co-src { flex: 0 0 auto; font-size: 12px; font-weight: var(--weight-semibold); color: var(--muted); padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 999px; line-height: 1.4; }
.co-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.co-region-narrow { display: none; font-size: var(--fs-sm); color: var(--muted); }
.co-tablewrap.is-loading .co-table tbody { opacity: 0.55; transition: opacity var(--t) var(--ease); }
.co-empty-mark { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.co-empty-mark::after { content: ""; position: absolute; width: 14px; height: 2px; background: var(--line-strong); right: -8px; bottom: 2px; transform: rotate(45deg); border-radius: 2px; }

.fitmeter { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fitmeter-track { width: 52px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; flex: 0 0 52px; }
.fitmeter-fill { display: block; height: 100%; border-radius: 999px; background: var(--line-strong); }
.fitmeter-hi .fitmeter-fill { background: var(--accent); }
.fitmeter-mid .fitmeter-fill { background: var(--accent-line); }
.fitmeter-num { font-size: var(--fs-base); font-weight: var(--weight-title); font-variant-numeric: tabular-nums; min-width: 2ch; color: var(--ink); }
.fitmeter-lo .fitmeter-num, .fitmeter-none .fitmeter-num { color: var(--muted); font-weight: var(--weight-semibold); }
.fitmeter-lg .fitmeter-track { width: 96px; height: 8px; flex-basis: 96px; }
.fitmeter-lg .fitmeter-num { font-size: var(--fs-h); }

.d-sec-lead {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--accent-line);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.d-sec:last-child.d-sec-lead { border-bottom: 1px solid var(--accent-line); }
.d-sec-lead h3 { font-size: var(--fs-h); }
.d-fit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.d-fit-sector { font-size: var(--fs-base); }
.d-fit-why { font-size: var(--fs-chat); line-height: 1.5; }
.d-fit-label { font-size: var(--fs-sm); font-weight: var(--weight-semibold); color: var(--muted); text-transform: none; margin-top: 4px; }
.d-usecases .d-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }

/* narrower than the full desktop layout: Region and Nalezeno fold away, region shows under the city */
@media (max-width: 1279px) {
  .co-table .c-region, .co-table .c-found { display: none; }
  .co-table .c-name { width: 29%; }
  .co-table .c-city { width: 16%; }
  .co-table .c-sector { width: 26%; }
  .co-table .c-fit { width: 16%; }
  .co-table .c-status { width: 13%; }
  .co-region-narrow { display: block; }
}
@media (max-width: 767px) {
  .co-row { grid-template-areas: "name name" "sector sector" "city fit" "status found"; }
  .co-table td.c-fit { grid-area: fit; justify-self: end; }
  .co-table td.c-found { display: block; }
  .co-table td.c-region { display: none; }
  .co-launch { padding: 10px 12px; font-size: var(--fs-sm); }
  .launch-seg::before { margin: 0 6px; }
}

.co-table .co-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.co-table .c-city .co-region-narrow { margin-top: 2px; }
.co-dash { color: var(--line-strong); }

/* informational, not an alarm */
.assessment-notice { background: var(--hover); color: var(--muted); }
