/* Genesen OS web — page-specific styles for Today, People, Projects, Training, Settings.
   Loaded after shell.css; only adds what those pages need. */

/* ---------- page header extras ---------- */
.page-line { margin: 0 0 var(--s3); max-width: var(--measure); }
.page-line a { text-decoration: none; }
.page-link { margin-top: calc(-1 * var(--s2)); }
.page-link a { color: var(--muted); display: inline-flex; align-items: center; min-height: var(--tap); }
.page-link a:hover { color: var(--text); }
.page-footer { color: var(--muted); font-size: 0.9em; margin-top: var(--s5); max-width: none; }
.page-head .head-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* ---------- pills ---------- */
.pill {
  display: inline-block;
  font-size: 0.75em;
  padding: 1px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
  white-space: nowrap;
}
.pill-ok { border-color: var(--ok); color: var(--ok); }
.pill-warn { border-color: var(--warn); color: var(--warn); }
.pill-bad { border-color: var(--danger); color: var(--danger); }
.pill-accent { background: var(--accent-soft); border-color: transparent; color: var(--text); }
.status-word { font-size: 0.85em; white-space: nowrap; }
.status-word.ok { color: var(--ok); }
.status-word.warn { color: var(--warn); }
.status-word.bad { color: var(--danger); }

/* ---------- rows ---------- */
.row-meta { color: var(--muted); font-size: 0.85em; margin-top: 2px; overflow-wrap: anywhere; }
.row-meta > * + *::before { content: " · "; }
.row-link { text-decoration: none; color: inherit; display: flex; cursor: pointer; width: 100%; background: none; border: 0; border-top: 1px solid var(--line-soft); font: inherit; text-align: left; }
.row-link:first-of-type { border-top: 0; }
.row-link:hover .row-title { color: var(--accent); }
.row-link[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--s3); }
.row-link .chev { color: var(--muted); align-self: center; margin-left: var(--s2); }
.row.overdue .row-title::before { content: "⚠ "; color: var(--warn); }
.row-from { color: var(--muted); }
.row-from::after { content: " → "; }

/* ---------- Today: tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3) var(--s4); min-width: 0;
}
.tile b { display: block; font-weight: 400; font-size: 1.5em; line-height: 1.2; }
.tile span { color: var(--muted); font-size: 0.8em; }

/* ---------- Today: todos collapsed counts ---------- */
.counts-line { color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 var(--s2); }
.counts-line b { font-weight: 400; color: var(--text); }
.counts-line a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.counts-line a:hover { color: var(--text); text-decoration: underline; }
/* A card title that opens a page (Today → /todos): the text colour, an arrow, underline on hover. */
.card-head h2 .card-link { color: inherit; text-decoration: none; }
.card-head h2 .card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-head h2 .card-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.card-link-arrow { color: var(--muted); }
.bucket { margin-top: var(--s4); }
.bucket h3 { margin-bottom: var(--s1); }

/* ---------- Today: time blocks ---------- */
.blocks { list-style: none; padding: 0; margin: 0; }
.blocks li {
  display: flex; gap: var(--s2) var(--s3); align-items: center;
  padding: var(--s2) 0; border-top: 1px solid var(--line-soft); min-width: 0;
}
.blocks li:first-child { border-top: 0; }
.blocks .b-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.blocks li.deep .b-dot { background: var(--accent); }
.blocks li.shallow .b-dot { background: var(--warn); }
.blocks li.break .b-dot, .blocks li.shutdown .b-dot { background: var(--line); }
.blocks .b-time { white-space: nowrap; color: var(--muted); font-size: 0.9em; }
.blocks .b-label { flex: 1 1 8em; min-width: 0; overflow-wrap: anywhere; }
.blocks .b-type { text-transform: capitalize; }
.blocks li.running { box-shadow: inset 4px 0 0 var(--accent); padding-left: var(--s3); }
.blocks li.done .b-label, .blocks li.skipped .b-label { color: var(--muted); text-decoration: line-through; }
.chip { font-size: 0.75em; padding: 1px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); white-space: nowrap; margin-left: auto; }
.chip.now { background: var(--accent-soft); color: var(--text); }

/* ---------- Today: the Brief card (brief-today.md; a tap on a line opens its sheet) ---------- */
/* Headings in the text colour, 1em = 18 px (20 px with the larger size setting). */
.brief-h { color: var(--text); font-size: 1em; font-weight: 600; margin: var(--s4) 0 var(--s1); }
.brief-h:first-of-type { margin-top: 0; }
.brief-list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
/* Each line hangs off a 1.2em gutter: "•" for a line to read, "›" for one that opens. */
.brief-list li { display: block; position: relative; padding: 0 0 0 1.2em; border-top: 1px solid var(--line-soft); min-width: 0; overflow-wrap: anywhere; }
.brief-list li:first-child { border-top: 0; }
.brief-list li::before { content: "•"; position: absolute; left: 0.3em; top: var(--s1); color: var(--muted); pointer-events: none; }
.brief-list .brief-line { display: block; padding: var(--s1) 0; }
.brief-list li.tap { padding-left: 0; }
.brief-list li.tap::before { content: "›"; top: var(--s2); }
.brief-list li.tap > .line-btn { padding-left: 1.2em; }
.brief-list li.is-changed .brief-line, .brief-list li.is-later .brief-line, .brief-list li.is-past .brief-line { color: var(--muted); }
.brief-acted { color: var(--muted); font-size: 0.9em; white-space: nowrap; }
.brief-list li.brief-done::before { content: "▸"; }
.brief-list li.brief-done.is-open::before { content: "▾"; }
.brief-why { color: var(--warn); margin: 0 0 var(--s2); max-width: var(--measure); }
.brief-fault { color: var(--warn); margin: 0 0 var(--s2); max-width: var(--measure); }
.brief-foot { color: var(--muted); font-size: 0.9em; margin: var(--s3) 0 0; max-width: var(--measure); }
/* A whole row as one button or link (Brief lines, the /review Still waiting rows). */
.line-btn {
  display: block; width: 100%; min-height: var(--tap); padding: var(--s2) 0; margin: 0;
  text-align: left; background: none; border: 0; border-radius: 0;
  font: inherit; line-height: var(--lh); color: inherit; text-decoration: none; cursor: pointer;
}
.line-btn:hover { background: var(--surface-2); }
.line-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
/* The line sheet (pages.js lineSheet): the title in regular weight, so its lead stands out in bold.
   It is the brief line Ward reads first (2–3 lines on a phone): reading line height, not the h2's 1.3. */
.line-sheet .sheet-title { font-weight: 400; line-height: var(--lh); max-width: var(--measure); overflow-wrap: anywhere; }
/* The title takes the focus when the sheet opens (pages.js); the first Tab goes on to the buttons. */
.line-sheet .sheet-title:focus { outline: none; }
/* /review Still waiting: a row put off with Later stays, muted, with its Undo until a reload. */
.sw-row.is-later .row-title { color: var(--muted); }
.sw-row .sw-undo { flex: none; align-self: center; }
.line-raw { font-size: 1em; max-width: var(--measure); margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.line-meta { color: var(--muted); font-size: 0.9em; margin: 0 0 var(--s2); max-width: var(--measure); overflow-wrap: anywhere; }
.line-note { max-width: var(--measure); margin: var(--s2) 0; padding-left: var(--s3); border-left: 3px solid var(--warn); }
.line-members { margin: var(--s2) 0; max-width: var(--measure); }
.line-members .line-btn { border-top: 1px solid var(--line-soft); }
.line-members .line-btn:first-child { border-top: 0; }
.line-date { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.line-date .input { flex: 1 1 160px; width: auto; max-width: 220px; }
.line-result { margin: var(--s3) 0 0; max-width: var(--measure); }
.line-result:empty { display: none; }
.line-result .btn { margin-left: var(--s2); }
@media (max-width: 899px) {
  /* Phone: the brief is read first. The columns dissolve into the grid so the card can move up.
     The review card goes above it only while its draft is open (Fri → Mon 12:00). */
  .cols-3 > .col { display: contents; }
  #card-brief, #card-body { order: -1; }
  #card-review.card-accent { order: -2; }
}

/* ---------- Assistant: the chat (same shapes as the Koken chat, in the shell's fonts) ---------- */
.chat-log { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: var(--s4); overscroll-behavior: contain; }
.msg { max-width: var(--measure); }
.msg .who { font-size: 0.8em; color: var(--muted); margin-bottom: var(--s1); }
.msg .body { line-height: var(--lh); overflow-wrap: anywhere; }
.msg .body p + p, .msg .body p + ul, .msg .body ul + p, .msg .body ol + p, .msg .body pre { margin-top: var(--s2); }
.msg .body ul, .msg .body ol { padding-left: 1.3em; }
.msg .body li { margin: var(--s1) 0; }
.msg .body a.chat-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.msg .body code { font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.msg .body pre { font-size: 0.85em; background: var(--surface-2); padding: var(--s2) var(--s3); border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; }
/* who-* classes: `.check` alone is the shell's checkbox button */
.msg.who-ward { align-self: flex-end; background: var(--surface-2); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.msg.who-check .body { color: var(--muted); font-size: 0.9em; }
.msg.bad { border-left: 3px solid var(--danger); padding-left: var(--s3); }
.chatline { margin-top: var(--s3); }
.chat-in { margin-top: var(--s3); }
.chat-in textarea { width: 100%; }
.chat-buttons { margin-top: var(--s2); flex-wrap: wrap; }
.proposal { margin-top: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s2) var(--s3); }
.proposal-head { display: flex; justify-content: space-between; gap: var(--s2); color: var(--muted); font-size: 0.85em; margin-bottom: var(--s1); }
.proposal-row.done .row-title { color: var(--muted); }
.proposal-row .row-end { display: flex; gap: var(--s2); }
#chat-status .note { margin-top: var(--s3); }
#chat-status .note .row-actions { margin-top: var(--s2); }
@media (max-width: 899px) {
  .chat-log { max-height: 70vh; }
  .msg { max-width: none; }
  .chat-in textarea { font-size: 16px; }
}

/* ---------- Today: agenda ---------- */
.agenda-list { list-style: none; padding: 0; margin: 0; }
.agenda-list li { display: flex; gap: var(--s3); align-items: baseline; padding: var(--s2) 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.agenda-list li:first-child { border-top: 0; }
.agenda-list .a-day { flex: none; width: 4em; color: var(--muted); white-space: nowrap; }
.agenda-list li.is-today .a-day { color: var(--accent); }
.agenda-list .a-time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda-list .a-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.agenda-list .a-loc { color: var(--muted); font-size: 0.85em; display: block; }
.agenda-list .a-dur { flex: none; margin-left: auto; color: var(--muted); font-size: 0.9em; white-space: nowrap; }
.agenda-list li.free .a-main { color: var(--muted); }
/* Family calendar events (contract §2.21): greyed, with a small tag. */
.agenda-list li.is-family .a-main, .agenda-list li.is-family .a-time { color: var(--muted); }
.agenda-list .a-tag { margin-left: var(--s2); font-size: 0.8em; color: var(--muted); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0 0.5em; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg button {
  min-height: 36px; padding: var(--s1) var(--s3); border: 0; background: var(--surface); cursor: pointer; color: var(--muted); font-size: 0.9em;
}
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.paste-box { margin-top: var(--s3); }
.paste-box summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; color: var(--muted); font-size: 0.9em; }

/* ---------- Today: empty state ---------- */
.empty-card { text-align: left; }
.empty-card h2 { margin-bottom: var(--s2); }
.empty-card .row-actions { margin-top: var(--s3); }

/* ---------- master–detail (People, Projects) ---------- */
.back-bar { display: none; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s3); }
.back-bar a, .back-bar button { color: var(--muted); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; gap: var(--s2); background: none; border: 0; padding: 0 var(--s1); cursor: pointer; font: inherit; }
.back-bar .back-actions { display: flex; gap: var(--s3); align-items: center; }
.back-bar .back-actions a { color: var(--accent); }
.pane-detail .detail-head { margin-bottom: var(--s4); }
.pane-detail .detail-head h1 { margin: 0 0 var(--s1); font-size: 1.6em; }
.pane-detail .detail-sub { color: var(--muted); margin: 0 0 var(--s3); max-width: var(--measure); }
.pane-detail .detail-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.pane-detail .detail-note { color: var(--muted); font-size: 13px; margin: var(--s2) 0 0; max-width: none; }
.pane-detail .card { margin-bottom: var(--s4); }
@media (max-width: 899px) {
  /* phone: /people → list only, /people/<slug> → detail only with the ‹ bar */
  body[data-view="list"] .pane-detail { display: none; }
  body[data-view="detail"] .pane-list, body[data-view="detail"] .list-tabs, body[data-view="detail"] .list-head { display: none; }
  body[data-view="detail"] .back-bar { display: flex; }
  .pane-detail .detail-actions.wide-only { display: none; }
}
@media (min-width: 900px) {
  .back-bar { display: none !important; }
  .phone-only { display: none !important; }
}
.new-row { display: flex; gap: var(--s2); margin-bottom: var(--s3); }
.new-row .input { flex: 1; min-width: 0; }
.list-foot { margin-top: var(--s3); }

/* ---------- People: detail ---------- */
.section-title { color: var(--muted); font-size: 0.85em; margin: var(--s3) 0 var(--s1); }
.sessions details { border-top: 1px solid var(--line-soft); }
.sessions details:first-child { border-top: 0; }
.sessions summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; list-style: none; }
.sessions summary::-webkit-details-marker { display: none; }
.sessions summary .when { color: var(--muted); white-space: nowrap; }
.sessions summary .open-tag { margin-left: auto; color: var(--muted); font-size: 0.8em; }
.session-body { overflow-wrap: anywhere; max-width: var(--measure); padding: 0 0 var(--s3) var(--s4); color: var(--text); }
.notes-body { overflow-wrap: anywhere; max-width: var(--measure); cursor: text; }
.notes-body h3, .notes-body h4, .session-body h3, .session-body h4 { margin: var(--s4) 0 var(--s2); }
.md-box { color: var(--muted); }
.notes-body:hover { outline: 1px dashed var(--line); outline-offset: 6px; border-radius: 4px; }

/* ---------- markdown body ---------- */
.md-body { max-width: var(--measure); overflow-wrap: anywhere; }
.md-body > h1:first-child { display: none; }
.md-body h2 { margin-top: var(--s5); }
.md-body h3 { color: var(--text); }
.md-body p, .md-body ul, .md-body ol { margin-bottom: var(--s3); }
.md-body li { margin: var(--s1) 0; }
.md-body input[type="checkbox"] { width: 1.1em; height: 1.1em; vertical-align: middle; margin-right: var(--s2); }
.md-body table { border-collapse: collapse; font-size: 0.95em; }
.md-body th, .md-body td { padding: var(--s1) var(--s3); border-bottom: 1px solid var(--line-soft); text-align: left; }
.md-body code { font-family: inherit; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
.md-body pre { white-space: pre-wrap; background: var(--surface-2); padding: var(--s3); border-radius: var(--radius-sm); }
.md-body blockquote { margin: 0 0 var(--s3); padding-left: var(--s3); border-left: 3px solid var(--line); color: var(--muted); }
.editor { min-height: 40vh; font-size: 0.95em; }

/* ---------- key/value ---------- */
.kv { list-style: none; padding: 0; margin: 0 0 var(--s3); max-width: none; }
.kv li { display: flex; gap: var(--s3); padding: var(--s1) 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.kv li:first-child { border-top: 0; }
.kv .k { flex: none; width: 8em; color: var(--muted); font-size: 0.9em; }
.kv .v { flex: 1; overflow-wrap: anywhere; min-width: 0; }
.kv .v .btn-link { margin-left: var(--s2); }

/* ---------- journal ---------- */
.entry { padding: var(--s2) 0; border-top: 1px solid var(--line-soft); max-width: var(--measure); }
.entry:first-of-type { border-top: 0; }
.entry-when { color: var(--muted); font-size: 0.85em; }
.entry-title { margin: 2px 0 var(--s1); }
.entry-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.entry summary { cursor: pointer; list-style: none; display: flex; gap: var(--s3); align-items: baseline; min-height: 36px; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary .entry-when { flex: none; width: 4.5em; }
.entry summary .open-tag { margin-left: auto; color: var(--muted); font-size: 0.8em; }

/* ---------- Training: sessions table ---------- */
.sess-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.sess-table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 0.8em; padding: var(--s1) var(--s2); border-bottom: 1px solid var(--line); }
.sess-table td { padding: var(--s2); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.sess-table tr.done td { color: var(--muted); }
.sess-table tr.done .c-title { text-decoration: line-through; }
.sess-table tr.today td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.sess-table .c-athlete { white-space: nowrap; }
.sess-table .c-day, .sess-table .c-date { white-space: nowrap; color: var(--muted); }
.sess-table .c-items { color: var(--muted); font-size: 0.9em; overflow-wrap: anywhere; }
.sess-table .c-done { text-align: right; white-space: nowrap; }
.sess-table .row-tools { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; margin-top: var(--s1); font-size: 0.85em; color: var(--muted); }
.sess-table .row-tools .sep::before { content: "·"; }
.sess-table .row-tools .select { min-height: 32px; padding: 2px 1.8em 2px var(--s2); font-size: 0.9em; }
.sess-table .row-tools .btn-link { color: var(--muted); font-size: 1em; }
.sess-table .row-tools .btn-link:hover { color: var(--text); }
.sess-table .form-box { margin: var(--s2) 0 0; }
/* a skipped row (§2.11 `[-]`): muted, only the title span struck; the reason stays plain and readable */
.sess-table tr.skipped td { color: var(--muted); }
.sess-table tr.skipped .t-text { text-decoration: line-through; }
.sess-table .badge-skip { border-style: dashed; }
.sess-table .skip-reason { color: var(--text); font-size: 0.95em; font-style: normal; margin-top: var(--s1); max-width: 75ch; overflow-wrap: anywhere; }
/* the reason form, inline in place of the row (both roles) */
.sess-table .skip-box { max-width: var(--measure); }
.sess-table .skip-box p { margin: 0 0 var(--s2); }
.sess-table .skip-what { font-weight: 600; }
.sess-table .skip-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s2); }
.sess-table .skip-chip { font-size: 0.95em; border-radius: var(--radius-sm); background: var(--surface); }
.sess-table .skip-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.sess-table .skip-input { font-size: max(16px, 1em); margin-bottom: var(--s2); }
/* Pepijn's Overslaan / Weer open: a real button under the title, at least 36 px */
.sess-table .skip-tools { margin-top: var(--s2); }
.sess-table .skip-tools .btn { min-height: 40px; font-size: 0.95em; }
.sess-add { margin-top: var(--s3); }
/* Benchmarks: every value cell is a button (Ward), one cell = one line edit */
.bench-table tbody th { font-weight: 600; text-align: left; }
.bench-cell { background: none; border: 0; border-radius: var(--radius-sm); padding: var(--s1) var(--s2); margin: calc(-1 * var(--s1)) calc(-1 * var(--s2));
  min-height: var(--tap); width: calc(100% + 2 * var(--s2)); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.bench-cell:hover, .bench-cell:focus-visible { background: var(--surface-2); }
.bench-cell.empty { color: var(--muted); }
.bench-edit { min-width: 12em; }
.bench-edit .form-row { margin-top: var(--s1); }
/* Training: athlete switch + planning chat with Claude */
.tabs-athlete button { font-size: 1.05em; font-weight: 600; min-width: 6em; }
.plan-chat .pc-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-direction: column; gap: var(--s3); }
.plan-chat .pc-msg { max-width: 75ch; padding: var(--s2) var(--s3); border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.5; }
.plan-chat .pc-ward { border-left: 4px solid var(--accent); }
.plan-chat .pc-check { background: none; border: 1px dashed var(--line-soft); font-size: 0.9em; }
.plan-chat .pc-check.pc-error { border-color: var(--danger, #c0392b); }
.plan-chat .pc-who { font-weight: 600; margin-bottom: var(--s1); }
/* chat bubbles hold P.chatText markup (p, ul/ol, b, em, code, pre; Claude's h3/h4) */
.plan-chat .pc-text { white-space: normal; overflow-wrap: anywhere; }
.plan-chat .pc-text p, .plan-chat .pc-text ul, .plan-chat .pc-text ol { margin: 0 0 var(--s2); max-width: none; }
.plan-chat .pc-text > :last-child { margin-bottom: 0; }
.plan-chat .pc-text ul, .plan-chat .pc-text ol { padding-left: 1.3em; }
.plan-chat .pc-text ul { list-style: disc; }       /* inside .pc-list (an ol) the browser would draw circles */
.plan-chat .pc-text ol { list-style: decimal; }
.plan-chat .pc-text li { margin: var(--s1) 0; }
.plan-chat .pc-text code { font-size: 0.9em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.plan-chat .pc-text pre { font-size: 0.9em; background: var(--bg); padding: var(--s2) var(--s3); border-radius: var(--radius-sm); margin: 0 0 var(--s2); white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-chat .pc-text pre code { padding: 0; background: none; font-size: 1em; }
.plan-chat .pc-text h3, .plan-chat .pc-text h4 { color: var(--text); font-weight: 600; font-size: 1em; margin: var(--s3) 0 var(--s1); }
.plan-chat .pc-text > h3:first-child, .plan-chat .pc-text > h4:first-child { margin-top: 0; }
.plan-chat .pc-running { margin-top: var(--s3); font-weight: 600; }
.plan-chat .pc-proposal { margin-top: var(--s4); max-width: 80ch; }
.plan-chat .pc-proposal h3 { margin: 0 0 var(--s1); }
.plan-chat .pc-week { margin-top: var(--s2); }
.plan-chat .pc-week summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: var(--s1); }
.plan-chat .pc-week ul ul { color: var(--muted); }
.plan-chat .pc-warn li { margin-bottom: var(--s1); }
.plan-chat textarea { max-width: 75ch; }
@media (max-width: 899px) {
  /* phone: the same table becomes stacked rows (frame 3f) */
  .sess-table, .sess-table tbody, .sess-table tr, .sess-table td { display: block; }
  .sess-table thead { display: none; }
  .sess-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when check" "title check" "items check" "tools tools"; gap: 0 var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line-soft); }
  .sess-table tr:first-child { border-top: 0; }
  .sess-table td { padding: 0; border: 0; }
  .sess-table .c-athlete, .sess-table .c-day, .sess-table .c-date { display: none; }   /* folded into .c-when */
  .sess-table .c-when { grid-area: when; font-size: 0.85em; color: var(--muted); }
  .sess-table tr.row-edit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form"; }
  .sess-table tr.row-edit td { grid-area: auto; }
  .sess-table .c-title { grid-area: title; }
  .sess-table .c-items { grid-area: items; }
  .sess-table .c-done { grid-area: check; align-self: center; }
  .sess-table .c-tools { grid-area: tools; }
  .sess-table tr.today td:first-child { box-shadow: none; }
  .sess-table tr.today { box-shadow: inset 4px 0 0 var(--accent); padding-left: var(--s3); }
}
@media (min-width: 900px) {
  .sess-table .c-when { display: none; }
}

/* ---------- Settings ---------- */
.seg-choice { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; flex-wrap: wrap; }
.seg-choice label { display: inline-flex; align-items: center; min-height: 40px; padding: var(--s1) var(--s3); cursor: pointer; color: var(--muted); background: var(--surface); border-right: 1px solid var(--line-soft); }
.seg-choice label:last-child { border-right: 0; }
.seg-choice label.on { background: var(--accent-soft); color: var(--text); }
.seg-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sample { margin-top: var(--s3); max-width: var(--measure); color: var(--muted); font-size: 0.95em; }
.pw-form { margin-top: var(--s3); }
.pw-form summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--accent); }

/* ---------- action toast (with Undo) ---------- */
.toast-action { display: flex; align-items: center; gap: var(--s3); pointer-events: auto; }
.toast-action .btn { flex: none; }
.toast.show.toast-action { pointer-events: auto; }

/* "+ commitment" entry row under each commitments section */
.add-row { display: flex; gap: 8px; margin: 8px 0 4px; }
.add-row input { flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--input-bg, transparent); color: inherit; }
.add-row .btn-small { padding: 8px 14px; min-height: 40px; }

/* Close the loops after a 1-on-1: Done / Keep 4 weeks / New date per open commitment (person.js) */
.loop-help { margin: 0 0 var(--s3); padding-left: 1.2em; max-width: var(--measure); }
.loop-help li + li { margin-top: var(--s1); }
.loop-date .input { flex: 1 1 160px; width: auto; max-width: 220px; }
.loop-result { margin-top: var(--s2); color: var(--muted); }
.loop-result:empty { display: none; }

/* Training: Garmin next to Ward's sessions (docs/garmin-plan.md phase 3) */
.garmin-line { margin-top: var(--s1); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.garmin-week { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }

/* Training: the 42-day Garmin strip above the week tabs (public/garmin-strip.js, Ward only).
   One series per chart (sleep bars, weight dots); text and numbers stay in text colours. */
.gs-card > details > summary { cursor: pointer; list-style: none; }
.gs-card > details > summary::-webkit-details-marker { display: none; }
.gs-card > details:not([open]) > summary { margin-bottom: 0; }
.gs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 900px) { .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gs-block { min-width: 0; max-width: var(--measure); }
.gs-block h3 { margin: 0 0 var(--s1); font-size: 1em; font-weight: 600; }
.gs-line { margin: 0; }
.gs-nowrap { white-space: nowrap; }
.gs-note { margin: var(--s1) 0 0; font-size: 0.9em; color: var(--muted); }
.gs-key { display: inline-block; width: 20px; border-top: 2px solid var(--text); vertical-align: middle; margin-right: var(--s2); opacity: 0.75; }
.gs-axis { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s1); font-size: 0.85em; color: var(--muted); }
.gs-chart { display: block; width: 100%; height: auto; margin-top: var(--s2); overflow: visible; }
.gs-chart .gs-axisline { stroke: var(--line); stroke-width: 1; }
.gs-chart .gs-bar { fill: var(--accent); }
.gs-chart .gs-rule { stroke: var(--text); stroke-width: 2; opacity: 0.75; }
.gs-chart .gs-trend { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-chart .gs-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.gs-chart .gs-hit { fill: transparent; }
.gs-chart .gs-rule, .gs-chart .gs-trend { pointer-events: none; }   /* the hover goes to the day under it */
.gs-chart .gs-day:hover .gs-hit { fill: var(--accent-soft); }
.gs-more { margin-top: var(--s4); }
.gs-more > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--accent); }
.gs-table { max-width: 24rem; }

/* ---------- Weekly review (/review, contract §2.18) and its Today card ---------- */
.card-accent { border: 2px solid var(--accent); }
.review-card-top { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.top3-list { margin: 0; padding-left: 1.4em; max-width: var(--measure); }
.top3-list li { padding: var(--s1) 0; }
.prio { border-top: 1px solid var(--line-soft); padding: var(--s3) 0; }
.prio:first-of-type { border-top: 0; padding-top: 0; }
.prio-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.prio-n { font-weight: 600; min-width: 1.2em; }
.prio-off .prio-title { text-decoration: line-through; }
.prio .field { margin-bottom: var(--s2); }
.textarea-sm { min-height: 0; }
.rolled-row { border-top: 1px solid var(--line-soft); padding: var(--s3) 0; max-width: var(--measure); }
.rolled-row:first-of-type { border-top: 0; }
.rolled-row .seg-choice { margin-top: var(--s2); }
.question { margin-bottom: var(--s5); max-width: var(--measure); }
.q-label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.q-fact { color: var(--muted); font-size: 0.9em; margin: 0 0 var(--s2); }
.question-dyn { border-left: 3px solid var(--accent); padding-left: var(--s3); }
.score { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.score-label { min-width: 4.5em; color: var(--muted); }
.score-seg button { min-width: 40px; padding: var(--s1) var(--s2); }
.review-more { margin-top: var(--s3); }
/* /review card 4 · Meal prep (the Koken cockpit's 06 for the review's week). */
.mp .score-label { min-width: 6em; }
.mp .mp-seg { flex-wrap: wrap; }
.mp .mp-seg button { min-width: 44px; min-height: 44px; }
.mp-row { border-top: 1px solid var(--line-soft); padding: var(--s3) 0; max-width: var(--measure); }
.mp-row:first-of-type { border-top: 0; padding-top: 0; }
.mp-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.mp-stars { display: inline-flex; gap: 2px; }
.mp-star { min-width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.3em; color: var(--line); padding: 0; }
.mp-star.on { color: var(--accent); }
.mp-field { max-width: var(--measure); margin-top: var(--s1); }
.mp-sunday { margin-top: var(--s4); }
.mp-sunday .input { max-width: 8em; }
.mp-notes { margin: 0 0 var(--s3); padding: 0; list-style: none; max-width: var(--measure); }
.mp-notes li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s1) 0; border-top: 1px solid var(--line-soft); }
.mp-notes li:first-child { border-top: 0; }
.mp .new-row { max-width: var(--measure); }
.review-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3) var(--s4); margin-top: var(--s4);
}
.review-bar-text { min-width: 0; }
@media (max-width: 899px) {
  .review-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Koken hub (/koken, docs/koken-plan.md phase 8, layout spec 3i) ---------- */
/* Wide: two columns (left Nieuw recept, Deze week, Boodschappen; right Recepten, Meer).
   Phone: the columns dissolve into the grid and Deze week goes first. */
@media (max-width: 899px) {
  .kh-cols > .col { display: contents; }
  .kh-cols #kh-week { order: -1; }
}
.kh-status, .kh-facts { color: var(--muted); margin: 0 0 var(--s3); max-width: var(--measure); }
.kh-note { color: var(--muted); font-size: 0.9em; margin: var(--s2) 0 0; max-width: var(--measure); overflow-wrap: anywhere; }
.kh-error { color: var(--danger); max-width: var(--measure); }
/* Nieuw recept: the import form, the running job, the review and the pending concepts.
   Inputs stay at 16 px or more (no iOS zoom); on a phone the field and buttons are full width. */
/* Lines Ward reads or acts on stay at the reading size: notes in the card at 1em (muted),
   instructions (drift, a title to change) at 1em in the text colour. Only the counter and the
   pending row's meta stay small. */
.kh-imp .kh-note { font-size: 1em; }
.kh-hint { color: var(--text); margin: var(--s2) 0 0; max-width: var(--measure); overflow-wrap: anywhere; }
.kh-imp .kh-facts { overflow-wrap: anywhere; }
.kh-label { display: block; font-weight: 600; margin: var(--s3) 0 var(--s1); }
.kh-imp-form .kh-label { margin-top: 0; }
.kh-url, .kh-paste-title, .kh-paste-text { font-size: max(16px, 1em); max-width: var(--measure); }
.kh-edit { font-size: max(18px, 1em); line-height: 1.5; max-height: 60vh; max-width: var(--measure); }
.kh-field-error { color: var(--danger); margin: var(--s1) 0 0; }
.kh-paste { margin-top: var(--s4); max-width: var(--measure); }
.kh-paste summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--accent); }
.kh-counter { color: var(--muted); font-size: 0.9em; margin: var(--s1) 0 0; }
.kh-counter.kh-over { color: var(--danger); }
.kh-step { font-weight: 600; margin: 0 0 var(--s2); }
.kh-imp-title { margin: 0 0 var(--s2); max-width: var(--measure); overflow-wrap: anywhere; }
.kh-imp-list { color: var(--muted); padding-left: 1.3em; margin: var(--s2) 0 var(--s3); max-width: var(--measure); overflow-wrap: anywhere; }
.kh-error + .kh-imp-list { color: var(--danger); }
.kh-preview { border-left: 3px solid var(--line-soft); padding-left: var(--s3); margin: var(--s3) 0; max-width: var(--measure); overflow-wrap: anywhere; }
.kh-preview h1 { font-size: 1.15em; margin: 0 0 var(--s2); }
.kh-preview h2 { font-size: 1em; margin: var(--s4) 0 var(--s2); }
.kh-preview ul, .kh-preview ol { padding-left: 1.3em; }
.kh-where, .kh-saved { overflow-wrap: anywhere; max-width: var(--measure); }
.kh-where { margin-top: var(--s3); }
.kh-claude-draft { margin-top: var(--s3); max-width: var(--measure); }
.kh-claude-draft-text { font-size: max(16px, 1em); line-height: 1.5; max-height: 40vh; color: var(--muted); }
/* The review's actions under a long preview: sticky at the bottom of the screen (as .review-bar),
   above the tab bar on a phone, while the review box is in view. */
.kh-imp-bar {
  position: sticky; bottom: 0; z-index: 5;
  background: var(--surface); border-top: 1px solid var(--line-soft);
  padding: var(--s2) 0 var(--s3); margin-top: var(--s2);
}
.kh-imp-bar .row-actions { margin-top: 0; }
.kh-pending { margin-top: var(--s4); }
.kh-pending:empty { display: none; }
.kh-pending-head { font-size: 1em; margin: 0 0 var(--s2); }
.kh-pending-list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.kh-pending-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line-soft); }
.kh-pending-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.kh-pending-main .row-meta { color: var(--muted); font-size: 0.9em; }
@media (max-width: 899px) {
  .kh-imp-actions .btn { flex: 1 1 100%; }
  /* In the sticky bar the three buttons share a row (wrapping on a narrow phone), so the bar
     stays low. */
  .kh-imp-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .kh-imp-bar .kh-imp-actions .btn { flex: 1 1 auto; }
}
.kh-week-rows .k { width: 7.5em; }
@media (max-width: 599px) {
  /* Narrow phone: the row label above its parts, so the parts get the full width. */
  .kh-week-rows li { flex-direction: column; gap: var(--s1); }
  .kh-week-rows .k { width: auto; }
}
.kh-parts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.kh-part {
  min-height: var(--tap); padding: var(--s1) var(--s3); border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--text);
  cursor: pointer; text-align: left; overflow-wrap: anywhere;
}
.kh-part:hover { border-color: var(--muted); }
/* A component whose key cannot be an id: its name only, nothing to tap. */
.kh-part-plain { display: inline-flex; align-items: center; background: transparent; cursor: default; }
.kh-part-plain:hover { border-color: var(--line-soft); }
.kh-order { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.kh-order .pill { font-size: 0.85em; padding: 2px 12px; }
.kh-count { font-size: 1.15em; margin: 0 0 var(--s2); }
.kh-count b { font-weight: 600; }
.kh-search { margin-bottom: var(--s3); max-width: var(--measure); }
.kh-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.kh-chips:empty { display: none; }
.kh-chip {
  min-height: var(--tap); padding: var(--s1) var(--s3); border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 0.9em; cursor: pointer;
}
.kh-chip .n { color: var(--muted); margin-left: var(--s1); }
.kh-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.kh-list .kh-row { flex-direction: column; align-items: flex-start; min-height: var(--tap); padding: var(--s2) 0; }
.kh-list .kh-row .row-title { max-width: var(--measure); }
.kh-list .kh-row .row-meta { max-width: var(--measure); }
.kh-list .kh-row .badge { font-size: 0.85em; }
.kh-toggle { align-self: flex-start; margin-top: var(--s2); }
.kh-links .kh-link { min-height: var(--tap); align-items: center; color: var(--accent); }
.kh-sheet h3 { color: var(--text); margin: var(--s4) 0 var(--s2); }
.kh-sheet ul, .kh-sheet ol { padding-left: 1.3em; max-width: var(--measure); margin: 0 0 var(--s3); }
.kh-sheet li { margin: var(--s1) 0; }
.kh-sheet .md-body h2 { font-size: 1em; margin: var(--s4) 0 var(--s2); }

/* ---------- Pepijn's school lunch (/koken/pepijn, frame 3h; koken-pepijn.js) ----------
   Scoped to body.pp and .pp-* only. The shell sets the reading size on body, so the page sets
   20 px there (an inner scope would do nothing), also inside the shell sheet; his colour is the
   accent. Emoji 2.4 em, buttons and smileys at least 56 px, steps at 22 px. */
body.pp {
  --size: 20px;
  font-size: var(--size);
  --accent: var(--pepijn);
  --accent-soft: rgba(76, 194, 255, 0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body.pp { --accent-soft: rgba(11, 111, 168, 0.10); }
}
:root[data-theme="light"] body.pp { --accent-soft: rgba(11, 111, 168, 0.10); }
body.pp .sheet { font-size: var(--size); }
body.pp .card-head h2 { font-size: 1.2em; }
body.pp .btn.pp-big { min-height: 56px; min-width: 56px; padding: var(--s2) var(--s5); }
.pp-back { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); text-decoration: none; }
.pp-back:hover { color: var(--text); }
.pp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.pp-cards > .card { margin-bottom: 0; }
@media (max-width: 899px) {
  .pp-card { padding: var(--s3) var(--s4); }
}
@media (min-width: 1100px) {
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pp-lead { font-weight: 600; }
.pp-week, .pp-hint, .pp-empty { color: var(--muted); max-width: var(--measure); }
.pp-note { max-width: var(--measure); }
.pp-emoji { font-size: 2.4em; line-height: 1; vertical-align: middle; }
.pp-days, .pp-recipes, .pp-slots { list-style: none; padding: 0; margin: 0; }
.pp-days > li, .pp-recipes > li { border-top: 1px solid var(--line-soft); padding: var(--s1) 0; }
.pp-days > li:first-child, .pp-recipes > li:first-child { border-top: 0; }
.pp-row {
  display: flex; align-items: center; gap: var(--s2);
  width: 100%; min-height: 56px; padding: var(--s2);
  background: none; border: 0; border-radius: var(--radius-sm);
  color: inherit; font: inherit; text-align: left;
}
.pp-row[data-act] { cursor: pointer; }
.pp-row[data-act]:hover { background: var(--surface-2); }
.pp-row-main { flex: 1; min-width: 0; max-width: var(--measure); overflow-wrap: anywhere; }
.pp-day { flex: none; min-width: 3.2em; white-space: nowrap; }
.pp-row .pp-emoji, .pp-slot .pp-emoji { flex: none; }
.pp-name { display: block; }
.pp-today { box-shadow: inset 4px 0 0 var(--accent); }
.pp-chev { flex: none; color: var(--muted); font-size: 1.4em; }
.pp-cue { display: block; color: var(--muted); font-size: 0.9em; }
.pp-smileys { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0 0 var(--s2) var(--s2); }
.pp-smiley {
  min-width: 56px; min-height: 56px; padding: 0;
  border: 2px solid var(--line); border-radius: 999px; background: var(--surface-2);
  font-size: 1.6em; line-height: 1; cursor: pointer;
}
.pp-smiley.on { border-color: var(--accent); background: var(--accent); }
.pp-smiley:disabled { opacity: 0.6; cursor: default; }
.pp-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.pp-msg { margin-top: var(--s3); max-width: var(--measure); }
.pp-msg p { margin: 0 0 var(--s2); }
.pp-msg-ok { color: var(--ok); }
.pp-msg-err { color: var(--danger); }
.pp-count { font-weight: 600; margin: var(--s3) 0; }
.pp-slots { display: grid; gap: var(--s2); }
.pp-slot {
  display: flex; align-items: center; gap: var(--s2);
  width: 100%; min-height: 56px; padding: var(--s1) var(--s3);
  border: 2px dashed var(--line); border-radius: var(--radius-sm); background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pp-slot.on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.pp-slot:disabled { cursor: default; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.pp-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
  min-height: 56px; padding: var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
  color: inherit; font: inherit; text-align: center; cursor: pointer; overflow-wrap: anywhere;
}
.pp-tile:hover { border-color: var(--accent); }
.pp-tile:disabled { opacity: 0.6; cursor: default; }
.pp-steps { max-width: 48rem; }
.pp-steps-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin: var(--s2) 0 var(--s4); }
.pp-steps-title { font-size: 1.4em; font-weight: 600; margin: 0 0 var(--s2); }
.pp-h3 { color: var(--text); font-weight: 600; margin-top: var(--s4); }
/* Both lists sit the same distance under their heading: no list margin (an <ol> has 1em of its
   own, 22 px here), the first line 2px down, as in Wat heb je nodig. */
.pp-need { margin: 0; max-width: var(--measure); }
.pp-need li { padding: 2px 0; overflow-wrap: anywhere; }
.pp-step-list { margin: 0; font-size: 22px; padding-left: 1.4em; max-width: var(--measure); }
.pp-step-list li { padding: var(--s2) 0; overflow-wrap: anywhere; }
.pp-step-list li:first-child { padding-top: 2px; }
/* Pepijn's chat and Ward's concepts (frame 3h: Vraag het aan Claude, Concepten van Claude).
   #pp-cards flows into the board's grid (display: contents), so the two Claude cards follow
   Recepten in the same columns; [hidden] (shell.css) still hides it while the step view is open.
   Pepijn's bubbles in his colour on the right, Claude's on the left, the site's check small and
   muted; his question 20 px (never under 16 px: no zoom on a phone). */
.pp-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.pp-board > .pp-cards { display: contents; }
.pp-board > .card { margin-bottom: 0; }
@media (min-width: 1100px) {
  .pp-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-chat { grid-row: span 2; }   /* Ward's concepts follow Recepten, not the end of the chat */
}
.pp-chat-log { display: flex; flex-direction: column; gap: var(--s3); margin: var(--s3) 0; }
.pp-bubble {
  max-width: min(var(--measure), 90%); padding: var(--s2) var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
  line-height: var(--lh); overflow-wrap: anywhere;
}
.pp-bubble p, .pp-bubble ul, .pp-bubble ol { margin: 0 0 var(--s2); }
.pp-bubble > :last-child, .pp-controle > :last-child { margin-bottom: 0; }
.pp-bubble ul, .pp-bubble ol { padding-left: 1.3em; }
.pp-bubble pre { white-space: pre-wrap; font-size: 0.9em; }
.pp-who { font-size: 0.8em; color: var(--muted); margin-bottom: var(--s1); }
.pp-from-claude { align-self: flex-start; }
.pp-from-pepijn { align-self: flex-end; background: var(--accent-soft); border: 2px solid var(--pepijn); }
.pp-from-ward { align-self: flex-end; }
.pp-controle { align-self: flex-start; max-width: var(--measure); color: var(--muted); font-size: 0.9em; }
.pp-controle p, .pp-controle ul { margin: 0 0 var(--s1); }
.pp-controle.pp-fout { color: var(--danger); }
.pp-thinking { font-weight: 600; }
.pp-soft { color: var(--muted); }
.pp-chat-label { display: block; font-weight: 600; margin-bottom: var(--s1); }
.pp-chat-in { width: 100%; max-width: var(--measure); font-size: max(16px, var(--size)); }
.pp-left { font-weight: 600; margin: var(--s2) 0 0; }
.pp-notes { margin: var(--s1) 0 var(--s2); padding-left: 1.3em; max-width: var(--measure); }
.pp-notes li { overflow-wrap: anywhere; }
.pp-concept { border-top: 1px solid var(--line-soft); margin-top: var(--s4); padding-top: var(--s3); }
.pp-concept-title {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 1.15em; font-weight: 600; margin: 0 0 var(--s1); overflow-wrap: anywhere;
}
.pp-concept-title .pp-emoji { flex: none; }
.pp-concept-warn { color: var(--muted); max-width: var(--measure); }
.pp-concept-warn p { margin: var(--s2) 0 0; }
.pp-concept-preview { margin: var(--s3) 0; }
.pp-concept-preview > summary { min-height: var(--tap); cursor: pointer; font-weight: 600; }
.pp-concept-fields { display: flex; flex-wrap: wrap; gap: var(--s3); }
.pp-field { display: flex; flex-direction: column; gap: var(--s1); max-width: 100%; }
.pp-concept-emoji { width: 6em; font-size: 1.4em; }
.pp-concept-uur { width: 6em; }
