/* AkOOre UI kit v1 — components (classes `k-*`).
   Visual reference: DOC_Design/AkOOre Design UI Kit.html (the § numbers below are
   its sections). Rules the picture does not show: DOC_Design/DOC_DESIGN_UI_KIT_RULES_NOT_IN_THE_VISUAL_KIT.md.
   Tokens live in akoore.css :root. A page never restyles a k- component; it
   picks a variant. Live sample of every component: /staff/ui_kit/.
   Class names never contain "ad", "ads", "sponsor" or "banner": ad blockers
   hide such names (EasyList generic rules). */

/* ── §5 Buttons — always pills. One blue per view; grey secondary;
   navy for "talk to a human"; Sun = AkBot only. ───────────────────────── */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 8px 16px; border: 0; border-radius: var(--r-pill);
  font: 800 14px/1.2 var(--font); text-decoration: none; cursor: pointer;
  background: var(--grey-btn); color: var(--navy); white-space: nowrap;
}
.k-btn:hover { background: var(--grey-btn-hover); }
.k-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.k-btn--primary { background: var(--blue); color: var(--white); }
.k-btn--primary:hover { background: var(--blue-hover); }
.k-btn--navy { background: var(--navy); color: var(--white); }
.k-btn--navy:hover { background: #2C4058; }
.k-btn--akbot { background: var(--sun); color: var(--navy); font-weight: 900; }
.k-btn--akbot:hover { background: #FFB800; }
.k-btn--delete { background: var(--coral-bg); color: var(--coral-text); }
.k-btn--delete:hover { background: #FBDADA; }
.k-btn--large { min-height: 48px; padding: 14px 24px; font-size: 16px; }
.k-btn--large.k-btn--primary { box-shadow: var(--shadow-primary); }
.k-btn:disabled, .k-btn[aria-disabled="true"] {
  background: var(--disabled-bg); color: var(--disabled-text); box-shadow: none; cursor: not-allowed;
}

/* ── §6 Tags & pills — the tint tells the meaning before the word does. ── */
.k-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 12px;
  border-radius: var(--r-pill); font: 800 13px/1.2 var(--font); white-space: nowrap;
  background: var(--grey-btn); color: var(--slate-text);
}
.k-pill--sun { background: #FFF4D1; color: #7A5A00; }        /* dates & context */
.k-pill--mint { background: var(--mint-bg); color: var(--mint-text); }   /* value */
.k-pill--sky { background: var(--sky); color: var(--blue-deep); }        /* effort / meta */
.k-pill--coral { background: var(--coral-bg); color: var(--coral-text); } /* problem */
.k-pill--amber { background: var(--amber-bg); color: var(--amber-text); } /* page 2 / warning */
.k-letter-dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--sky); color: var(--blue-deep); font: 900 14px var(--font);
}
.k-letter-dot--current { background: var(--sun); color: var(--navy); }
.k-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* ── §20 Severity & effort tags ─────────────────────────────────────── */
.k-sev, .k-effort {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 4px 12px;
  border-radius: var(--r-pill); font: 800 13px/1 var(--font); white-space: nowrap;
}
.k-sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.k-sev--critical { background: var(--coral-bg); color: var(--coral-text); }
.k-sev--soon { background: var(--amber-bg); color: var(--amber-text); }
.k-sev--good { background: var(--mint-bg); color: var(--mint-text); }
.k-sev--info { background: var(--grey-btn); color: var(--slate-text); }
.k-effort--copy { background: var(--sky); color: var(--blue-deep); }
.k-effort--content { background: #EFEAFB; color: var(--violet-text); }
.k-effort--developer { background: var(--amber-bg); color: var(--amber-text); }
.k-effort--outreach { background: #FBE8F1; color: var(--pink-text); }

/* ── §7 Forms & search ───────────────────────────────────────────────── */
.k-field { display: flex; flex-direction: column; gap: 6px; }
.k-field > label, .k-label { font: 800 13px/1.3 var(--font); color: var(--slate); }
.k-input {
  width: 100%; min-height: 44px; padding: 12px 14px; border: 2px solid transparent;
  border-radius: var(--r-field); background: var(--ground);
  font: 700 15px/1.3 var(--font); color: var(--navy);
}
.k-input:focus { outline: none; border-color: var(--sky-ring); background: var(--white); }
.k-search {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 4px 4px 16px;
  border-radius: var(--r-pill); background: var(--ground); border: 2px solid transparent;
}
.k-search:focus-within { border-color: var(--sky-ring); background: var(--white); }
.k-search input { flex: 1; min-width: 0; border: 0; background: none; font: 700 15px var(--font); color: var(--navy); }
.k-search input:focus { outline: none; }
.k-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--grey-btn); }
.k-seg > a, .k-seg > button, .k-seg > label {
  padding: 7px 14px; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer;
  font: 800 14px/1.2 var(--font); color: var(--slate-text); text-decoration: none;
}
.k-seg > [aria-selected="true"], .k-seg > [aria-current], .k-seg > label:has(input:checked) {
  background: var(--white); color: var(--blue-deep); box-shadow: 0 2px 6px rgb(20 60 120 / 10%);
}
.k-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-toggle { position: relative; width: 44px; height: 26px; flex: none; appearance: none; cursor: pointer;
  border-radius: var(--r-pill); background: #CBD7E3; transition: background .15s; }
.k-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--white); transition: transform .15s; }
.k-toggle:checked { background: var(--blue); }
.k-toggle:checked::after { transform: translateX(18px); }
.k-check-circle { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border: 2px solid #B8C6D4; border-radius: 50%; background: var(--white); color: transparent; }
.k-check-circle.is-done { border-color: var(--mint); background: var(--mint); color: var(--white); }

/* ── §8 Cards & tiles — white by default; one blue, one navy, one sun per screen. */
.k-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px;
  border-radius: var(--r-tile); background: var(--white); color: var(--navy); box-shadow: var(--shadow-tile);
}
a.k-tile { text-decoration: none; transition: box-shadow .15s; }
a.k-tile:hover { box-shadow: var(--shadow-tile-hover); }
.k-tile--hero { background: var(--blue); color: var(--white); box-shadow: none; }
.k-tile--dark { background: var(--navy); color: var(--white); box-shadow: none; }
.k-tile--sun { background: var(--sun); color: var(--navy); box-shadow: none; }
.k-tile__number { font: 900 34px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.k-tile__label { font: 800 13px/1.3 var(--font); color: var(--slate); }
.k-tile--hero .k-tile__label, .k-tile--dark .k-tile__label { color: rgb(255 255 255 / 78%); }
.k-section-card { padding: 28px; border-radius: var(--r-frame); background: var(--white); box-shadow: var(--shadow-tile); }
.k-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-inner); background: var(--row-tint);
}
.k-row__badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--sky); color: var(--blue-deep); font: 900 15px var(--font); }
.k-row__title { font: 800 16px/1.3 var(--font); color: var(--navy); }
.k-row__line { font: 400 14px/1.45 var(--font); color: var(--slate-text); }

/* ── §9 Chat bubbles — the corner nearest the speaker is 6px. ─────────── */
.k-bubble { display: flex; gap: 10px; align-items: flex-end; }
.k-bubble__body { padding: 12px 16px; border-radius: 22px 22px 22px 6px; font: 400 15px/1.5 var(--font);
  background: var(--sky); color: #173A5C; max-width: 62ch; }
.k-bubble__avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--blue); color: var(--white); font: 900 13px var(--font); }
.k-bubble--user { flex-direction: row-reverse; }
.k-bubble--user .k-bubble__body { background: var(--blue); color: var(--white); border-radius: 22px 22px 6px 22px; }
.k-bubble--advisor .k-bubble__body { background: var(--white); box-shadow: var(--shadow-tile); color: var(--navy); }
.k-bubble--advisor .k-bubble__avatar { background: var(--sun); color: var(--navy); }
[dir="rtl"] .k-bubble__body { border-radius: 22px 22px 6px 22px; }
[dir="rtl"] .k-bubble--user .k-bubble__body { border-radius: 22px 22px 22px 6px; }

/* ── §11 Page title row & page actions — Save · Delete · Refresh on the
   title's line, right-aligned, above the 2px rule that opens the content. */
.k-title-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
  padding-bottom: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--border);
}
.k-title-row__parent { display: inline-block; margin-bottom: 6px; font: 800 14px var(--font);
  color: var(--blue-deep); text-decoration: none; }
.k-title-row__parent:hover { text-decoration: underline; }
.k-title-row__kicker { margin: 0 0 4px; font: 800 14px/1.3 var(--font); color: var(--blue-deep); }
.k-title-row h1 { margin: 0; font: 900 clamp(26px, 3.4vw, 36px)/1.12 var(--font); letter-spacing: -.015em; color: var(--navy); }
.k-title-row__sub { margin: 6px 0 0; font: 700 14px/1.4 var(--font); color: var(--slate); }
.k-title-row__actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .k-title-row__actions { width: 100%; } }

/* ── §17 Finding headline ───────────────────────────────────────────── */
.k-finding__kicker { margin: 0 0 8px; font: 800 14px/1.3 var(--font); color: var(--blue-deep); }
.k-finding__sentence { margin: 0 0 10px; max-width: 28ch; font: 900 clamp(28px, 3.6vw, 40px)/1.12 var(--font);
  letter-spacing: -.015em; color: var(--navy); }
.k-finding__sentence .is-bad { color: var(--coral); }
.k-finding__sentence .is-warn { color: var(--amber); }
.k-finding__sentence .is-good { color: var(--mint); }
.k-finding__lead { margin: 0 0 16px; font: 400 18px/1.55 var(--font); color: var(--slate-text); }
.k-finding__pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── §14 Help box & §22 Guide box — one line that opens on click. ─────── */
.k-help, .k-guide {
  display: flex; align-items: stretch; gap: 0; width: 100%; padding: 6px; margin: 0 0 16px;
  border: 0; border-radius: 22px 22px 22px 6px; background: var(--sky); color: #173A5C;
  font: 400 15px/1.5 var(--font); text-align: start; cursor: pointer;
  /* The closed one-line text must never widen the grid or flex row it sits in. */
  contain: inline-size;
}
.k-help:hover, .k-guide:hover { background: #D9ECFC; }
.k-help:focus-visible, .k-guide:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.k-help__tab, .k-guide__tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px; padding: 6px 12px;
  border-radius: 16px 16px 16px 4px; font: 900 14px/1 var(--font);
}
.k-help__tab { background: var(--sun); color: var(--navy); }
.k-guide__tab { background: var(--navy); color: var(--white); }
.k-help__tab i, .k-guide__tab i {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 900 13px/1 var(--font); font-style: normal;
}
.k-help__tab i { background: var(--navy); color: var(--sun); }
.k-guide__tab i { background: var(--sun); color: var(--navy); }
.k-help__text, .k-guide__text { flex: 1; min-width: 0; padding: 7px 12px 7px 14px; }
.js .k-help[aria-expanded="false"] .k-help__text,
.js .k-guide[aria-expanded="false"] .k-guide__line {
  display: flex; gap: 6px; white-space: nowrap; overflow: hidden;
}
.js .k-help[aria-expanded="false"] .k-help__body,
.js .k-guide[aria-expanded="false"] .k-guide__question { overflow: hidden; text-overflow: ellipsis; }
.k-help__more, .k-guide__more { flex: none; color: var(--blue-deep); font-weight: 800; text-decoration: underline; }
html:not(.js) .k-help__more, html:not(.js) .k-guide__more,
.k-help[aria-expanded="true"] .k-help__more, .k-guide[aria-expanded="true"] .k-guide__more { display: none; }
.js .k-guide__open { display: none; }
.k-guide__open { margin-top: 12px; }
.k-guide[aria-expanded="true"] .k-guide__open { display: block; }
.k-guide__terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 6px 24px; margin: 6px 0 12px; }
.k-guide__terms dt { display: inline; font-weight: 900; }
.k-guide__terms dd { display: inline; margin: 0; }
.k-guide__label { margin: 8px 0 4px; font: 900 12px/1.3 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--blue-deep); }
.k-guide__evidence { display: flex; flex-wrap: wrap; gap: 6px; }
.k-guide__evidence span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--white); font: 800 13px var(--font); color: var(--slate-text); }
html.tips-off .k-help { display: none; }
[dir="rtl"] .k-help, [dir="rtl"] .k-guide { border-radius: 22px 22px 6px 22px; }

/* ── §18 Action plan & §19 Recommendation item ───────────────────────── */
.k-plan { display: grid; gap: 16px; }
.k-plan__group { padding: 20px 22px; border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow-tile); }
.k-plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.k-plan__name { font: 900 17px/1.2 var(--font); color: var(--navy); }
.k-plan__progress { margin-inline-start: auto; font: 800 13px var(--font); color: var(--slate); }
.k-plan__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--rule); }
.k-plan__line-title { font: 800 15px/1.35 var(--font); color: var(--navy); }
.k-plan__line.is-done .k-plan__line-title { color: var(--slate); text-decoration: line-through; }
.k-reco { padding: 20px 22px; border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow-tile); }
.k-reco__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.k-reco__title { margin: 0 0 12px; font: 900 20px/1.25 var(--font); color: var(--navy); }
.k-reco__part { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.k-reco__label { font: 900 12px/1.5 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.k-reco__text { font: 400 15px/1.55 var(--font); color: var(--navy); }
.k-reco__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--rule); }
@media (max-width: 600px) { .k-reco__part { grid-template-columns: 1fr; gap: 2px; } }

/* ── §21 Check card ─────────────────────────────────────────────────── */
.k-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.k-check { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--r-tile);
  background: var(--white); box-shadow: var(--shadow-tile); }
.k-check__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.k-check__title { flex: 1 1 100%; margin: 0; font: 900 17px/1.3 var(--font); color: var(--navy); }
.k-check__score { font: 900 28px/1 var(--font); font-variant-numeric: tabular-nums; }
.k-check__bar { height: 10px; border-radius: var(--r-pill); background: var(--chart-track); overflow: hidden; }
.k-check__bar i { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.k-check--critical .k-check__score, .k-check--critical .k-check__bar { color: var(--coral); }
.k-check--soon .k-check__score, .k-check--soon .k-check__bar { color: var(--amber); }
.k-check--good .k-check__score, .k-check--good .k-check__bar { color: var(--mint); }
.k-check--info .k-check__score, .k-check--info .k-check__bar { color: var(--slate); }
.k-check__what { margin: 0; font: 400 14px/1.5 var(--font); color: var(--slate); }
.k-check__found { margin: 0; font: 400 15px/1.5 var(--font); color: var(--navy); }
.k-check__fix { padding: 12px 14px; border-radius: 14px; background: var(--amber-bg); font: 400 15px/1.5 var(--font); }

/* ── §23 Long task & empty states ───────────────────────────────────── */
.k-task__bar { height: 10px; margin: 10px 0 6px; border-radius: var(--r-pill); background: var(--chart-track); overflow: hidden; }
.k-task__bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.k-task__step { font: 700 13px/1.4 var(--font); color: var(--slate); }
.k-empty { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-tile); background: var(--row-tint); }
.k-empty__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  font: 900 18px var(--font); background: var(--grey-btn-hover); color: var(--slate-text); }
.k-empty--good .k-empty__icon { background: var(--mint); color: var(--white); }
.k-empty__title { margin: 0 0 4px; font: 900 17px/1.3 var(--font); color: var(--navy); }
.k-empty__line { margin: 0 0 10px; font: 400 15px/1.5 var(--font); color: var(--slate-text); }

/* ── §24 Block identifiers — glyph circles ───────────────────────────── */
.k-glyph { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; color: var(--white); }
.k-glyph svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.k-glyph--small { width: 40px; height: 40px; }
.k-glyph--small svg { width: 19px; height: 19px; }
.k-glyph--read { background: var(--blue); }
.k-glyph--do { background: var(--sun); color: var(--navy); }
.k-glyph--measure { background: var(--navy); }
.k-glyph--talk { background: var(--mint); }
.k-glyph--system { background: #8C9CAD; }
.k-glyph--alert { background: var(--coral); }

/* ── §15 Lists — Essential · List · Table, behind one switch ─────────── */
.k-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.k-list-head h2, .k-list-head h3 { margin: 0; }
.k-list-head__sub { margin: 4px 0 0; font: 700 14px var(--font); color: var(--slate); }
.k-essential { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.k-essential__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 22px; background: var(--row-tint); }
.k-essential__key { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--grey-btn-hover); color: var(--navy); font: 900 18px var(--font); font-variant-numeric: tabular-nums; }
.k-essential__key--high { background: var(--sun); }
.k-essential__key--mid { background: var(--sky); color: var(--blue-deep); }
.k-essential__title { margin: 0; font: 900 18px/1.25 var(--font); color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-essential__verdict { margin: 2px 0 0; font: 400 15px/1.45 var(--font); color: var(--slate-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-essential__key-line { margin: 10px 0 0; font: 700 13px var(--font); color: var(--slate); }
@media (max-width: 600px) { .k-essential__row { grid-template-columns: 48px minmax(0, 1fr); }
  .k-essential__row > :last-child { grid-column: 1 / -1; justify-self: start; }
  .k-essential__key { width: 48px; height: 48px; font-size: 16px; } }
.k-cards { display: grid; gap: 12px; }
.k-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--white); }
.k-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.k-card__title { flex: 1 1 280px; margin: 0; font: 900 17px/1.3 var(--font); color: var(--navy); }
.k-card__path { display: block; font: 700 12px/1.4 var(--font); color: var(--slate); word-break: break-all; }
.k-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0; }
.k-fact { padding: 8px 12px; border-radius: 14px; background: var(--row-tint); }
.k-fact dt { font: 900 11px/1.4 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.k-fact dd { margin: 0; font: 900 16px/1.3 var(--font); color: var(--navy); font-variant-numeric: tabular-nums; }
.k-fact dd.is-good { color: var(--mint-text); } .k-fact dd.is-warn { color: var(--amber-text); } .k-fact dd.is-bad { color: var(--coral-text); }
/* The same fact, outside a <dl> (a fact that is also a link). */
.k-fact__label { display: block; font: 900 11px/1.4 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.k-fact__value { display: block; font: 900 16px/1.3 var(--font); color: var(--navy); font-variant-numeric: tabular-nums; }
.k-fact__value.is-good { color: var(--mint-text); } .k-fact__value.is-warn { color: var(--amber-text); } .k-fact__value.is-bad { color: var(--coral-text); }
.k-table-box { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--white); }
.k-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font: 400 14px/1.4 var(--font); }
.k-table th { padding: 11px 12px; background: var(--row-tint); font-weight: 900; text-align: start; color: var(--navy); white-space: nowrap; }
.k-table td { padding: 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.k-table td.is-number, .k-table th.is-number { text-align: end; font-variant-numeric: tabular-nums; }
.k-table th a { color: inherit; text-decoration: none; }
.k-table th[aria-sort] a, .k-table th[aria-sort] { color: var(--blue-deep); }
.k-table__open { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--grey-btn); color: var(--navy); cursor: pointer; font: 900 12px var(--font); }
.k-table__panel td { background: var(--row-tint); }

/* ── §16 Charts — small shapes shared by every report ───────────────── */
.k-chart { padding: 20px; border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow-tile); }
.k-chart__title { margin: 0; font: 900 18px/1.3 var(--font); color: var(--navy); }
.k-chart__sub { margin: 2px 0 14px; font: 700 13px/1.4 var(--font); color: var(--slate); }
.k-chart svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.k-bars { display: grid; gap: 10px; }
.k-bars__row { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr) auto; gap: 10px; align-items: center;
  font: 700 14px var(--font); color: var(--navy); }
.k-bars__track { height: 14px; border-radius: var(--r-pill); background: var(--grey-btn); overflow: hidden; }
.k-bars__track i { display: block; height: 100%; border-radius: inherit; background: var(--sky-ring); }
.k-bars__row:first-child .k-bars__track i, .k-bars__row.is-main .k-bars__track i { background: var(--blue); }
.k-bars__value { font-weight: 900; font-variant-numeric: tabular-nums; }
.k-meter__head { display: flex; justify-content: space-between; font: 800 13px var(--font); color: var(--slate); }
.k-meter__track { height: 8px; margin-top: 4px; border-radius: 4px; background: var(--chart-track); overflow: hidden; }
.k-meter__track i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.k-meter--warn .k-meter__track i { background: var(--amber); }
.k-meter--bad .k-meter__track i { background: var(--coral); }

/* ── §26 Add ToDo + Ask Advice — always both, always in this order ───── */
.k-pair { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.k-pair__todo { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 14px; border: 0;
  border-radius: var(--r-pill); background: var(--sky); color: var(--blue-deep); font: 800 13px var(--font); cursor: pointer; text-decoration: none; }
.k-pair__todo.is-added { background: var(--mint-bg); color: var(--mint-text); }
.k-pair__advice { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 14px; border: 0;
  border-radius: var(--r-pill); background: var(--sun); color: var(--navy); font: 900 13px var(--font); cursor: pointer; text-decoration: none; }
.k-pair__advice:hover { background: #FFB800; }

/* ── §12 Closing banner — the one full-blue moment of a page ─────────── */
.k-closing { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 64px); border-radius: 32px; background: var(--blue); color: var(--white); }
.k-closing::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--sun); }
.k-closing h2 { position: relative; z-index: 1; max-width: 16ch; margin: 0 0 20px; font: 900 clamp(26px, 4.4vw, 54px)/1.08 var(--font); color: var(--white); }
.k-closing__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.k-closing .k-btn--primary { background: var(--white); color: var(--blue); }
.k-closing .k-btn { background: var(--blue-deep); color: var(--white); }
.k-closing .k-btn.k-btn--primary { background: var(--white); color: var(--blue); }

@media print {
  .k-help, .k-guide { break-inside: avoid; }
  .k-help[aria-expanded="false"] .k-help__text, .k-guide[aria-expanded="false"] .k-guide__line { white-space: normal; }
  .k-pair, .k-title-row__actions { display: none; }
}

/* ── §10 App header — one white bar on every app page ────────────────── */
.k-appbar { position: relative; z-index: 40; background: var(--white); border-bottom: 1px solid var(--border); }
.k-appbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 12px clamp(16px, 3vw, 40px); }
.k-appbar__logo { margin-inline-end: 8px; font-size: 24px; }
.k-appbar__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  border-radius: var(--r-pill); font: 800 14px/1.2 var(--font); color: var(--navy); cursor: pointer;
  list-style: none; user-select: none; white-space: nowrap; }
.k-appbar__pill::-webkit-details-marker { display: none; }
.k-appbar__pill--grey { background: var(--grey-btn); }
.k-appbar__pill--grey:hover { background: var(--grey-btn-hover); }
.k-appbar__pill--sky { background: var(--sky); color: var(--blue-deep); }
.k-appbar__pill--sky:hover { background: #D9ECFC; }
.k-appbar__pill:focus-visible, .k-account__avatar:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.k-caret { font-size: 11px; opacity: .7; }
.k-switcher__initial { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 8px;
  background: var(--blue); color: var(--white); font: 900 12px var(--font); }
.k-switcher__name { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.k-menu__where { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }

.k-drop { position: relative; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }  /* undo the generic details {} rule */
.k-drop > summary { margin: 0; }
.k-drop > .k-drop__panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 50; }
.k-drop__panel { min-width: 260px; max-width: min(92vw, 360px); max-height: max(16rem, calc(100vh - 9rem)); overflow-y: auto;
  padding: 8px; border-radius: var(--r-card); background: var(--white); box-shadow: 0 16px 40px rgb(27 42 58 / 16%);
  overscroll-behavior: contain; }
.k-drop__heading { margin: 4px 10px 6px; font: 900 12px/1.4 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.k-drop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px;
  background: none; font: 700 14px/1.3 var(--font); color: var(--navy); text-align: start; text-decoration: none; cursor: pointer; }
.k-drop__item:hover, .k-drop__item:focus-visible { background: var(--row-tint); outline: none; }
.k-drop__item.is-current { background: var(--sky); color: var(--blue-deep); }
.k-drop__item--add { color: var(--blue-deep); font-weight: 800; border-top: 1px solid var(--rule); border-radius: 0 0 12px 12px; margin-top: 4px; }
.k-drop__check { margin-inline-start: auto; color: var(--blue); font-weight: 900; }
.k-drop__meta { margin-inline-start: auto; font: 700 12px var(--font); color: var(--slate); }

/* The menu: groups left, pages right. */
.k-menu > .k-drop__panel.k-menu__panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px;
  width: min(92vw, 720px); max-width: none; padding: 10px; }
.k-menu__groups { margin: 0; padding: 0 8px 0 0; list-style: none; border-inline-end: 1px solid var(--rule); }
.k-menu__group { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0;
  border-radius: 12px; background: none; font: 800 14px/1.3 var(--font); color: var(--navy); text-align: start; cursor: pointer; }
.k-menu__group:hover, .k-menu__group.is-open { background: var(--row-tint); }
.k-menu__group.is-empty { color: var(--disabled-text); }
.k-menu__here { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.k-menu__arrow { margin-inline-start: auto; color: var(--slate); }
.k-menu__panes { min-width: 0; }
.js .k-menu__pane { display: none; }
.js .k-menu__pane.is-shown { display: block; }
.k-menu__pane-title { margin: 6px 10px 8px; font: 900 18px/1.2 var(--font); color: var(--navy); }
.k-menu__heading { margin: 10px 10px 4px; font: 900 11px/1.4 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.k-menu__item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px;
  font: 700 14px/1.3 var(--font); color: var(--navy); text-decoration: none; }
a.k-menu__item:hover { background: var(--row-tint); }
.k-menu__item.is-current { background: var(--blue); color: var(--white); }
.k-menu__item.is-disabled { color: var(--disabled-text); cursor: not-allowed; }
@media (max-width: 700px) {
  .k-menu > .k-drop__panel.k-menu__panel { position: fixed; inset: 64px 8px auto 8px; width: auto; grid-template-columns: 1fr; }
  .k-menu__groups { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 8px; border: 0; border-bottom: 1px solid var(--rule); }
  .k-menu__group { width: auto; padding: 8px 12px; }
  .k-menu__arrow { display: none; }
}

/* Search + AkBot: the field's words become AkBot's question. */
.k-appbar__search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 320px; min-width: 0; margin-inline-start: auto; }
.k-appbar__search-field { flex: 1; min-height: 40px; padding-inline-start: 12px; }
.k-appbar__search-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--slate); stroke-width: 2.2; stroke-linecap: round; }
.k-appbar__results { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 50; width: 100%; max-width: none; }
.k-appbar__ask { border-top: 1px solid var(--rule); border-radius: 0 0 12px 12px; margin-top: 4px; }
.k-appbar__ask .k-bubble__avatar { width: 26px; height: 26px; font-size: 11px; }
.k-appbar__akbot { min-height: 40px; }
.k-appbar__ak { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun); color: var(--navy); font: 900 10px var(--font); }

/* Account menu (decision D8): language, text size, password, sign out. */
.k-account > .k-drop__panel { inset-inline-start: auto; inset-inline-end: 0; }
.k-account__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; list-style: none; cursor: pointer;
  background: var(--navy); color: var(--white); font: 900 15px var(--font); }
.k-account__avatar::-webkit-details-marker { display: none; }
.k-account__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  font: 700 14px var(--font); color: var(--navy); }
.k-account__select { width: auto; min-height: 36px; padding: 6px 10px; }

/* Zone pills: the zone's pages, flat, under the bar. */
.k-appbar__zone { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 clamp(16px, 3vw, 40px) 12px; }
.k-zone-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--grey-btn); font: 800 13px/1.2 var(--font); color: var(--navy); text-decoration: none; }
a.k-zone-pill:hover { background: var(--grey-btn-hover); }
.k-zone-pill.is-current { background: var(--blue); color: var(--white); }
.k-zone-pill.is-disabled { background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }

@media (max-width: 700px) {
  .k-appbar__search { flex-basis: 100%; order: 10; margin-inline-start: 0; }
  .k-account { margin-inline-start: auto; }
  .k-switcher__name { max-width: 12ch; }
  .k-menu__where { max-width: 14ch; }
}

/* §11 Page actions, until each page moves them onto its page_title_row. */
.k-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; margin: 0 0 12px; }
.k-page-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.k-page-actions input[type="text"] { min-height: 36px; padding: 6px 14px; border: 2px solid transparent; border-radius: var(--r-pill);
  background: var(--ground); font: 700 14px var(--font); }
.k-page-actions .btn { min-height: 36px; }

/* App pages use the width; reading pages keep their measure. */
.site-main--app { max-width: 1440px; padding-top: 28px; }

/* Public header (home, articles, sign-in): logo, links, article search, Start free. */
.site-header { gap: 12px 28px; }
.site-header .header-search { flex: 1 1 200px; max-width: 320px; min-height: 40px; margin-inline-start: auto; }
.site-header .site-nav { gap: 22px; }
.site-header .site-nav a, .site-nav__signin { font: 800 15px var(--font); color: var(--navy); text-decoration: none; }
.site-header .site-nav a:hover, .site-nav__signin:hover { color: var(--blue-deep); }
.site-footer__lang { width: auto; min-height: 32px; padding: 4px 10px; font-size: 13px; }
@media (max-width: 700px) { .site-header .header-search { order: 10; flex-basis: 100%; max-width: none; margin: 0; } }

/* Public pages (home, product): hero, sections, tiles grid, steps. */
.k-hero { padding: clamp(24px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.k-hero--compact { padding-top: 8px; }
.k-hero__title { margin: 14px 0 16px; max-width: 16ch; font: 900 clamp(40px, 7vw, 56px)/1.05 var(--font); letter-spacing: -.025em; color: var(--navy); }
.k-hero__lead { max-width: 52ch; margin: 0 0 24px; font: 400 clamp(17px, 2vw, 20px)/1.55 var(--font); color: var(--slate-text); }
.k-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.k-hero__note { max-width: 60ch; margin: 16px 0 0; font: 700 14px/1.5 var(--font); color: var(--slate); }
.k-public-section { margin: clamp(32px, 6vw, 64px) 0; }
.k-public-section__title { max-width: 24ch; margin: 0 0 20px; font: 900 clamp(26px, 3.6vw, 36px)/1.12 var(--font); letter-spacing: -.015em; }
.k-public-section__close { max-width: 60ch; margin: 20px 0 0; font: 400 17px/1.55 var(--font); color: var(--slate-text); }
.k-public-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 32px; }
.k-public-grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.k-public-grid .k-tile h2, .k-public-grid .k-tile h3 { margin: 4px 0 0; font: 900 21px/1.25 var(--font); }
.k-public-grid .k-tile p { margin: 0; font: 400 16px/1.55 var(--font); color: var(--slate-text); }
.k-public-grid .k-tile p.k-tile__label { color: var(--blue-deep); font-weight: 800; font-size: 14px; }
.k-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.k-steps li { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow-tile); }
.k-steps__n { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sky); color: var(--blue-deep); font: 900 17px var(--font); }
.k-steps li:first-child .k-steps__n { background: var(--sun); color: var(--navy); }
.k-steps h3 { margin: 6px 0 6px; font: 900 18px/1.25 var(--font); }
.k-steps p { margin: 0; font: 400 15px/1.55 var(--font); color: var(--slate-text); }
