/* MLP852 team hub — same language as www.mlp852.com: mono type, black and white, red only for alerts.
   Compact layout (Nov 2026): no boxes around content, hairlines only where they help the eye follow a row. */
@font-face { font-family: "Inconsolata"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/inconsolata-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/inconsolata-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/inconsolata-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-display: swap; font-weight: 800; src: url(/assets/fonts/inconsolata-latin-800-normal.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #0d0d0d;
  --mute: #737373;
  --rule: #e8e8e8;
  --line: #f1f1f1;
  --soft: #f6f6f6;
  --hover: #f7f7f7;
  --faint: #c4c4c4;
  --red: #d4111e;
  --mono: "Inconsolata", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace;
  --gutter: clamp(14px, 3vw, 36px);
  --max: 1100px;
  --top-h: 50px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 15px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 32px var(--gutter); color: var(--mute); }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--mute); }
.small { font-size: 0.8667rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & inputs ---------- */
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 0.9333rem; line-height: 1.3; padding: 5px 12px; cursor: pointer;
  border: 1px solid var(--ink); text-decoration: none; white-space: nowrap;
}
.btn { background: var(--ink); color: var(--paper); }
.btn:hover { background: #2a2a2a; }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { background: none; border: 0; padding: 3px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--mute); font-size: 0.8667rem; }
.btn-quiet:hover { color: var(--ink); }
.btn-danger { border-color: var(--red); color: var(--red); background: var(--paper); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn[disabled], .btn-line[disabled] { opacity: 0.45; cursor: default; }
.field { display: grid; gap: 3px; margin-bottom: 10px; }
.field > span { font-size: 0.8rem; color: var(--mute); }
.input, select.input, textarea.input {
  width: 100%; padding: 5px 8px; border: 1px solid var(--rule); background: var(--paper); border-radius: 0; min-height: 34px;
}
.input:hover { border-color: var(--faint); }
.input:focus, .ctl:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
textarea.input { min-height: 64px; resize: vertical; line-height: 1.4; }
.ctl { border: 1px solid transparent; background: transparent; padding: 2px 4px; min-height: 28px; border-radius: 0; font-size: 0.8667rem; max-width: 100%; }
.ctl:hover { border-color: var(--rule); background: var(--paper); }
select.ctl { cursor: pointer; }
.row select.ctl { -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.err { color: var(--red); font-weight: 700; margin: 0 0 10px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); min-height: var(--top-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8667rem; white-space: nowrap; margin-inline-end: auto; }
.brand img { width: 30px; height: auto; }
.tabs { display: flex; gap: clamp(8px, 1.3vw, 18px); }
.tabs a { text-decoration: none; font-size: 0.9333rem; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--mute); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { border-bottom-color: var(--ink); font-weight: 700; color: var(--ink); }
.top__toggle { display: none; }
@media (max-width: 1100px) {
  .top__toggle { display: inline-flex; }
  .tabs { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 2px var(--gutter) 10px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .top.is-open .tabs { display: flex; }
  .tabs a { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .tabs a[aria-current] { border-bottom-color: var(--line); }
  .tabs a[aria-current]::before { content: "\2192\00a0"; }
}

/* ---------- page furniture ---------- */
.page { padding-block: clamp(20px, 3vw, 32px) 72px; }
.label { margin: 0; font-weight: 700; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; }
.label--sm { font-size: 1.0667rem; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; }
.head__note { color: var(--mute); font-size: 0.9333rem; }
.head__end { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cap { margin: 0 0 8px; font-size: 0.9333rem; font-weight: 700; color: var(--ink); }
.section { margin-top: clamp(24px, 3.4vw, 36px); }
.card { padding: 0; }
.grid { display: grid; gap: 12px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); }
@media (max-width: 860px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.empty { padding: 4px 0; color: var(--mute); font-size: 0.9333rem; }

/* ---------- overview ---------- */
.band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }
.band .stats { margin-top: 0; }
.mode { margin: 0; color: var(--mute); font-size: 0.9333rem; max-width: 100ch; }
.band .mode { max-width: 62ch; }
.mode b { color: var(--ink); }
.timeline { position: relative; margin: 18px 0 22px; height: 4px; background: var(--line); }
.timeline__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.timeline__tick { position: absolute; top: -3px; height: 12px; border-left: 1px solid var(--ink); }
.timeline__lbl { position: absolute; top: 10px; font-size: 0.7333rem; color: var(--mute); transform: translateX(-100%); white-space: nowrap; padding-right: 3px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 4vw, 44px); margin-top: 14px; }
.stat { text-decoration: none; display: block; padding: 2px 0; }
.stat b { display: block; font-size: clamp(1.4rem, 2.6vw, 1.8667rem); line-height: 1.1; font-weight: 800; }
.stat span { font-size: 0.8rem; color: var(--mute); }
.stat { text-align: end; }
.stat:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.stat.is-alert b { color: var(--red); }
.ov { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); }
@media (max-width: 900px) { .ov { grid-template-columns: minmax(0, 1fr); } }
.wsl { list-style: none; margin: 0; padding: 0; }
.wsl--2 { columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.wsl--2 li { break-inside: avoid; }
@media (max-width: 760px) { .wsl--2 { columns: 1; } }
.wsr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 52px minmax(110px, auto); gap: 12px; align-items: center; padding: 5px 0; text-decoration: none; font-size: 0.9333rem; }
.wsr:hover .wsr__name { text-decoration: underline; text-underline-offset: 3px; }
.wsr__name { font-weight: 500; min-width: 0; }
.wsr__n { text-align: end; font-variant-numeric: tabular-nums; color: var(--mute); }
.wsr__flag { font-size: 0.8rem; color: var(--mute); text-align: end; white-space: nowrap; }
.wsr__flag .miss { color: var(--red); font-weight: 700; }
@media (max-width: 520px) { .wsr { grid-template-columns: minmax(0, 1fr) 52px; } .wsr .bar, .wsr__flag { display: none; } }
.bar { height: 4px; background: var(--line); position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 4px 0; font-size: 0.8667rem; }
.feed--one li { padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time { color: var(--mute); font-size: 0.7667rem; margin-inline-start: 6px; white-space: nowrap; }
.feed a { text-decoration: none; }
.feed a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tracker ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: -6px 0 22px; }
.filters .flt select { font-size: 0.9333rem; min-height: 30px; padding: 2px 4px; color: var(--mute); border-color: transparent; background: var(--soft); }
.filters .flt select.is-set { color: var(--ink); font-weight: 700; }
.filters .flt select:hover { border-color: var(--rule); }
.filters .flt--q { flex: 1 1 200px; margin-inline-start: auto; max-width: 320px; }
.filters .flt--q input { min-height: 30px; padding: 3px 8px; font-size: 0.9333rem; }
.group { margin-bottom: 34px; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 2px; }
.group__title { font-weight: 700; font-size: 1.2rem; margin: 0; }
.group__meta { font-size: 0.8667rem; color: var(--mute); }
.sub { margin: 14px 0 2px; font-size: 0.8667rem; font-weight: 700; color: var(--ink); }
.sub span { font-weight: 400; color: var(--mute); margin-inline-start: 10px; font-size: 0.8rem; }
.sect { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.2; color: var(--mute); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 100px 84px; gap: 8px; align-items: center; padding: 0 6px; margin-inline: -6px; }
.row:hover { background: var(--hover); }
/* title and its details on one line; details shorten with … when space runs out */
.row__main { min-width: 0; padding: 3px 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.row__title { flex: 0 1 auto; min-width: 0; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 500; line-height: 1.3; }
.row__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.row.s-done .row__title { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--mute); }
.row.s-done .row__meta { opacity: 0.6; }
.row__meta { flex: 1 1 140px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.7667rem; color: var(--mute); line-height: 1.3; }
.row__meta > span[aria-hidden] { margin: 0 5px; }
.chip { display: inline; font-size: 0.7667rem; color: var(--ink); }
.chip--goal { font-weight: 700; }
.chip--late { color: var(--red); font-weight: 700; }
.chip--blocked { color: var(--red); font-weight: 700; }
.chip--doing { font-weight: 700; }
.row .ctl { min-height: 24px; font-size: 0.8rem; padding-block: 1px; }
.row select[data-field="status"] { color: var(--mute); }
.row select[data-field="status"].st-todo { color: var(--faint); }
.row:hover select[data-field="status"].st-todo { color: var(--mute); }
.row select[data-field="status"].st-blocked { color: var(--red); font-weight: 700; }
.row select[data-field="status"].st-doing { color: var(--ink); font-weight: 700; }
.row select[data-field="status"].st-done { color: var(--ink); }
.row.is-late input[type="date"] { color: var(--red); font-weight: 700; }
.row input[type="date"].is-default { color: var(--mute); }
/* no date: blank until the row is hovered */
.row input[type="date"].is-empty:not(:focus), .row input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
.row:hover input[type="date"].is-empty:not(:focus), .row:hover input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit { color: var(--faint); }
.row input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.row:hover input[type="date"]::-webkit-calendar-picker-indicator, .row input[type="date"]:focus::-webkit-calendar-picker-indicator { opacity: 0.6; }
.row .unassigned { color: var(--faint); }
.row:hover .unassigned { color: var(--mute); }
.rows { container-type: inline-size; }
@container (max-width: 700px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "m m m" "o d s"; row-gap: 0; padding: 5px 6px; }
  .row > .row__main { grid-area: m; }
  .row > [data-field="owner_id"] { grid-area: o; }
  .row > [data-field="due"] { grid-area: d; }
  .row > [data-field="status"] { grid-area: s; }
  .row .ctl { font-size: 0.8rem; min-height: 24px; padding-inline: 0; }
  .row__meta { flex-basis: 100%; }
  .row input[type="date"].is-empty:not(:focus), .row input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit { color: var(--faint); }
}
/* short list (overview: my next actions) */
.row--mini { grid-template-columns: minmax(0, 1fr) auto; }
.row--mini .row__due { font-size: 0.8rem; color: var(--mute); white-space: nowrap; }
.row--mini.is-late .row__due { color: var(--red); font-weight: 700; }
@container (max-width: 700px) { .row.row--mini { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; padding: 0 6px; } .row--mini > * { grid-area: auto !important; } }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 8, 8, 0.35); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); z-index: 61; border-left: 1px solid var(--ink); display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--rule); }
.drawer__head .cap { margin: 0; }
.drawer__body { overflow-y: auto; padding: 12px 16px 24px; flex: 1; }
.drawer__close { margin-inline-start: auto; }
.drawer .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.drawer .three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 10px; }
@media (max-width: 480px) { .drawer .three { grid-template-columns: 1fr 1fr; } .drawer .three > :last-child { grid-column: 1 / -1; } }
.drawer .section { margin-top: 18px; }
.title-input { font-weight: 800; font-size: 1.0667rem; min-height: 52px; }
.drawer .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.modal { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); padding: 18px; }
.modal h2 { margin: 0 0 10px; font-size: 1.2rem; }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox input { flex: 1; font-size: 0.8667rem; }
.thread { list-style: none; margin: 0 0 10px; padding: 0; }
.thread li { padding: 6px 0 6px 10px; border-left: 2px solid var(--rule); margin-bottom: 6px; }
.thread b { font-size: 0.8667rem; }
.thread time { font-size: 0.7667rem; color: var(--mute); margin-inline-start: 6px; }
.thread p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cform { display: flex; gap: 8px; align-items: flex-start; }
.cform textarea { min-height: 34px; flex: 1; }

/* ---------- KPIs ---------- */
.weekbar { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.weekbar b { min-width: 0; }
.weekbar .btn-quiet.arrow { text-decoration: none; font-size: 1.2rem; color: var(--ink); padding: 0 6px; }
.tablewrap { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 0.9333rem; }
table.t th, table.t td { padding: 4px 8px; text-align: start; vertical-align: middle; }
table.t th:first-child, table.t td:first-child { padding-left: 0; }
table.t thead th { font-size: 0.8rem; color: var(--mute); font-weight: 400; white-space: nowrap; padding-bottom: 6px; }
table.t thead th:first-child { color: var(--ink); font-weight: 700; font-size: 0.9333rem; }
table.t tbody tr:hover { background: var(--hover); }
table.t td.num, table.t th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t .kpi-name { font-weight: 700; }
table.t .kpi-note { display: inline-block; max-width: 44ch; margin-inline-start: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-size: 0.7667rem; color: var(--mute); font-weight: 400; }
table.t td { padding-block: 2px; }
table.t input.input { min-height: 24px; padding: 1px 6px; width: 100px; text-align: end; border: 0; border-bottom: 1px solid var(--faint); background: transparent; }
@media (max-width: 760px) { table.t .kpi-note { display: none; } }
/* KPI tables: same column widths in Sales and Buying so they line up */
table.t.kpi { table-layout: fixed; min-width: 760px; }
table.t.kpi th:nth-child(2), table.t.kpi th:nth-child(3) { width: 118px; }
table.t.kpi th:nth-child(4) { width: 78px; }
table.t.kpi th:nth-child(5) { width: 86px; }
table.t.kpi th:nth-child(n+6) { width: 66px; }
table.t.kpi td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin form .input { max-width: 380px; }
table.t input.input:hover { border-bottom-color: var(--ink); }
.hit { font-weight: 700; }
.miss { color: var(--red); font-weight: 700; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.spark i { width: 5px; background: var(--ink); display: block; min-height: 1px; }
.spark i.is-now { background: var(--red); }

/* ---------- SOPs ---------- */
.sop { margin: 0; }
.sop summary { list-style: none; cursor: pointer; padding: 5px 0; display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; }
.sop summary::-webkit-details-marker { display: none; }
.sop summary b { font-size: 1rem; }
.sop summary b::before { content: "+\00a0"; color: var(--faint); }
.sop[open] summary b::before { content: "\2212\00a0"; color: var(--ink); }
.sop summary:hover b { text-decoration: underline; text-underline-offset: 3px; }
.sop summary .muted { order: 2; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sop summary .sop__done { order: 3; }
.sop[open] summary { grid-template-columns: minmax(0, 1fr) auto; }
.sop[open] summary .muted { grid-column: 1 / -1; order: 4; white-space: normal; padding-left: 2ch; }
.sop__body { padding: 0 0 12px 2ch; }
.sop__body ol { margin: 4px 0 10px; padding-inline-start: 20px; }
.sop__body li { margin-bottom: 3px; }
.sop__done { font-size: 0.8rem; color: var(--mute); }
.matrix td.yes { text-align: center; font-weight: 800; }
.matrix td.no { text-align: center; color: var(--faint); }

/* ---------- discovery ---------- */
.q { padding: 8px 0 10px; }
.q__head { display: flex; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.q label { display: block; font-weight: 500; flex: 1; }
.q textarea.input { min-height: 32px; padding-block: 4px; }
.q .saved { font-size: 0.7333rem; color: var(--mute); white-space: nowrap; }
.q.is-answered label::before { content: "\2713\00a0"; }
.lead { font-size: 1.0667rem; line-height: 1.4; max-width: 80ch; margin: 0; color: var(--mute); }
.packnav { position: sticky; top: calc(var(--top-h) + 10px); }
.packlayout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.packnav a { display: block; text-decoration: none; padding: 3px 0; font-size: 0.8667rem; color: var(--mute); }
.packnav a:hover { color: var(--ink); }
@media (max-width: 860px) { .packlayout { grid-template-columns: minmax(0, 1fr); } .packnav { display: none; } }

/* ---------- plan ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-grid h3 { margin: 0 0 2px; font-size: 1rem; }
.plan-grid p { margin: 0; color: var(--mute); }
/* the plan reads as one centred document; every list shares the same label column */
.doc { max-width: 780px; margin-inline: auto; }
.doc .lead { color: var(--ink); font-weight: 700; font-size: 1.0667rem; line-height: 1.5; }
.doc dl.kv { grid-template-columns: 210px minmax(0, 1fr); }
.doc dl.kv dt a { text-decoration: none; }
.doc dl.kv dt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plan-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-grid--2 dl.kv { grid-template-columns: 1fr; gap: 0; }
.plan-grid--2 dl.kv dt { font-weight: 500; }
.plan-grid--2 dl.kv dd { margin-bottom: 6px; color: var(--mute); }
.avoid { margin: 0; padding-inline-start: 18px; }
.avoid li { margin-bottom: 3px; }
@media (max-width: 560px) { .doc dl.kv { grid-template-columns: 1fr; } .plan-grid--2 { grid-template-columns: 1fr; } }
dl.kv { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); gap: 4px 18px; margin: 0; }
dl.kv dt { font-weight: 700; }
dl.kv dd { margin: 0; color: #333; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; gap: 0; } dl.kv dd { margin-bottom: 8px; } }

/* ---------- people & admin ---------- */
.status { font-size: 0.8667rem; }
.status--active { font-weight: 800; }
.status--none { color: var(--mute); }
.tiers { counter-reset: tier; display: grid; gap: 10px 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier h3 { margin: 0 0 2px; font-size: 1rem; }
.tier p { margin: 0; color: #333; }
.tier h3::before { counter-increment: tier; content: counter(tier) "\00a0\00b7\00a0"; }
.tier .ok { font-weight: 800; }
.tier .warn { color: var(--red); font-weight: 700; }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: min(400px, 100%); }
.auth__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.auth__brand img { width: 46px; height: auto; }
.auth h1 { margin: 0 0 4px; }
.auth p { margin: 0 0 16px; color: var(--mute); }
.auth .btn { width: 100%; padding-block: 9px; }
.auth__foot { margin-top: 18px; font-size: 0.8667rem; color: var(--mute); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--paper); padding: 8px 14px; font-weight: 700; font-size: 0.9333rem; max-width: calc(100% - 28px); }
.toast.is-err { background: var(--red); }

@media print {
  html { font-size: 12px; }
  .top, .filters, .head__end, .btn, .btn-line { display: none !important; }
  .row { grid-template-columns: minmax(0, 1fr) 130px 100px 90px; }
  select, input { border: 0 !important; appearance: none; }
}
@media (max-width: 700px) { .stat { text-align: start; } }

/* overview: the two lower lists stay one line per item so the columns end level */
.row--mini .row__main { flex-wrap: nowrap; }
.row--mini .row__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row--mini .row__meta { flex: 0 1 auto; }
.cols2 > section > .cap, .doc .cap { margin-top: 0; }
.kv__sub { display: block; font-weight: 400; font-size: 0.8rem; color: var(--mute); }

/* our work: one line per thing we run */
.wkl { list-style: none; margin: 0; padding: 0; }
.wk { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 4px 0; }
.wk__name { font-weight: 700; text-decoration: none; }
.wk__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wk__what { color: var(--mute); }
.wk__st { font-size: 0.8rem; color: var(--mute); text-align: end; white-space: nowrap; }
@media (max-width: 640px) { .wk { grid-template-columns: minmax(0, 1fr) auto; } .wk__what { grid-column: 1 / -1; grid-row: 2; font-size: 0.8667rem; } }

/* home: four doors to everything we run */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 clamp(28px, 4vw, 44px); }
.door { display: flex; flex-direction: column; gap: 6px; min-height: 148px; padding: 18px 18px 16px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.door:hover { border-color: var(--ink); background: var(--hover); }
.door:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.door:first-child:hover { background: #2a2a2a; }
.door:first-child .door__what, .door:first-child .door__note { color: #bdbdbd; }
.door__name { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; }
.door__what { color: var(--mute); font-size: 0.9333rem; line-height: 1.4; }
.door__note { margin-top: auto; font-size: 0.8rem; color: var(--mute); }
.doc--home { max-width: none; }
.doc--home .section:first-child { margin-top: 0; }
@media (max-width: 900px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .door { min-height: 120px; padding: 14px; } .door__name { font-size: 1.0667rem; } }

/* search: one box in the top bar, results grouped by kind */
.top__in .brand { margin-inline-end: 0; }
.find { position: relative; margin-inline-end: auto; }
.find__in { width: clamp(130px, 13vw, 200px); height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--rule); border-radius: 0; background: var(--soft); color: var(--ink); font: inherit; font-size: 0.8667rem; }
.find__in::placeholder { color: var(--mute); }
.find__in:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.find__key { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.7333rem; line-height: 16px; padding: 0 5px; color: var(--mute); border: 1px solid var(--rule); background: var(--paper); pointer-events: none; }
.find__in:focus + .find__key, .find__in:not(:placeholder-shown) + .find__key { display: none; }
.hits { list-style: none; margin: 0; padding: 0; }
.hit { display: grid; gap: 1px; padding: 7px 0; }
.hit__t { font-weight: 700; text-decoration: none; }
.hit__t:hover { text-decoration: underline; text-underline-offset: 3px; }
.hit__sub { font-size: 0.8rem; color: var(--mute); }
.hit__s { font-size: 0.9333rem; line-height: 1.45; color: var(--mute); }
.hits--best .hit__t { font-size: 1.0667rem; }
mark { background: #fff1a6; color: inherit; padding: 0 1px; }
.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 35% { background: #fff1a6; } 100% { background: transparent; } }
@media (max-width: 1100px) {
  .find { flex: 1; min-width: 0; }
  .find__in { width: 100%; }
  .find__key { display: none; }
}
@media (max-width: 480px) { .top__in .brand span { display: none; } }
