/* The dashboard's look (the overseer's work order of 6 November 2026, after the owner: "ik zie nergens ons logo"): the
   house style of mybitbuddy.nl (marketing/src/styles/global.css, the SoulBit business card): orange, charcoal and ink
   on white paper and a light mist, the slanted stripe of the card at the top, the logo in the header and Buddy at
   work. Mobile first, 44-pixel targets, light and dark mode, and motion only for those who did not ask for less.
   The old names (--bg, --panel, --accent …) stay as aliases, so every screen's own stylesheet keeps working. */
:root {
  color-scheme: light dark;
  /* Brand colours, as on mybitbuddy.nl */
  --orange: #ff914d;
  --orange-soft: #ffe4d3;
  --orange-ink: #b4530f;
  --charcoal: #4e4e4e;
  --ink: #2f2f2f;
  --silver: #a6a6a6;
  --paper: #ffffff;
  --mist: #f4f4f2;
  --on-orange: #2f2f2f;
  --shadow: 0 1px 2px rgb(47 47 47 / 0.06), 0 4px 16px rgb(47 47 47 / 0.07);
  --shadow-lift: 0 2px 4px rgb(47 47 47 / 0.08), 0 10px 28px rgb(47 47 47 / 0.12);
  --brand-stripe: linear-gradient(115deg, #ff914d 0 58%, #4e4e4e 58% 86%, #a6a6a6 86% 100%);
  --brand-font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* The names every screen uses */
  --bg: var(--mist);
  --panel: var(--paper);
  --text: #333333;
  --muted: #6b6b6b;
  --line: #e4e4e0;
  /* Text, borders and small fills: the darker orange, readable on white (4.9:1); text on it is white. */
  --accent: var(--orange-ink);
  --accent-text: #ffffff;
  --warn: #b3261e;
  --ok: #2e7d4f;
  --radius: 12px;
  --radius-small: 8px;
  font-family: var(--brand-font);
  font-size: 15px;
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --orange-soft: #3a2a20;
    --orange-ink: #ff914d;
    --charcoal: #d6d6d6;
    --ink: #f3f3f3;
    --paper: #1f1f1f;
    --mist: #171717;
    --text: #e6e6e6;
    --muted: #a9a9a9;
    --line: #343434;
    --accent-text: #1a1a1a;
    --warn: #ff8a80;
    --ok: #7fd1a1;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 16px rgb(0 0 0 / 0.35);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.45), 0 10px 28px rgb(0 0 0 / 0.5);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
/* The screen gets focus when it changes (so a screen reader starts there); that needs no ring around the whole screen. */
main:focus { outline: none; }

/* The header: the card's stripe on top, the logo, the site and the credits. */
.top { position: relative; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; padding: 14px 20px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.top::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand-stripe); }
.top .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; overflow: visible; }
.logo-bracket { fill: none; stroke: currentColor; stroke-width: 8px; stroke-linecap: square; }
.logo-body { fill: #ff914d; }
.logo-eye { fill: #2f2f2f; }
.logo-bit { fill: var(--charcoal); transform-box: fill-box; transform-origin: center; }
.logo-my { color: var(--orange-ink); }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .logo-bit { animation: logo-bit 0.8s ease-in-out; }
  @keyframes logo-bit { 50% { transform: translate(3px, -4px) rotate(18deg); } }
}
.site-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.site-pick select { width: auto; max-width: 60vw; min-height: 40px; padding: 6px 34px 6px 14px; border-radius: 999px; background: var(--mist); font-weight: 700; color: var(--ink); }
#credits { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--ink); font-size: 14px; font-weight: 700; }
#credits:empty { display: none; }
#credits::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); transform: rotate(14deg); }

.muted { color: var(--muted); }
/* The way back in a header (the owner's admin page, beheer.html). */
.top .back { margin-left: auto; color: var(--accent); font-weight: 600; }

/* The shell on a laptop: the menu, the screen, and Buddy beside it. */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; min-height: calc(100vh - 68px); }
#tabs { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--paper); border-right: 1px solid var(--line); }
#tabs button { position: relative; min-height: 44px; text-align: left; background: none; border: 0; padding: 8px 14px; border-radius: var(--radius-small); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
#tabs button:hover { background: var(--mist); }
#tabs button[aria-current="page"] { background: var(--orange-soft); color: var(--ink); }
#tabs button[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
main { padding: 28px 32px 40px; max-width: 960px; }
aside { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); border-left: 1px solid var(--line); }
/* On a laptop Buddy stays in view beside a long screen: the panel stays put and its conversation scrolls inside it. */
@media (min-width: 1101px) { aside#buddy { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; } }
h1 { margin: 0 0 16px; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
h2 { margin: 24px 0 10px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h3 { color: var(--ink); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; }
label { display: block; margin: 12px 0 6px; font-weight: 700; color: var(--ink); }
label.inline { display: inline-flex; gap: 6px; font-weight: 400; margin: 6px 12px 6px 0; align-items: center; }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); outline: none; }
textarea { min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
/* Buddy's part of the CSS in Uiterlijk (WP2): read-only, as the textarea looks, and it wraps on a phone. */
pre.code { margin: 0 0 12px; padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
/* Buttons: the main action in the brand's orange with dark text, as on mybitbuddy.nl; the others outlined. */
button.primary, button.secondary, button.danger { min-height: 44px; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--accent); transition: background-color .15s, color .15s, transform .1s; }
button.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
button.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button.secondary { background: var(--paper); color: var(--accent); }
button.secondary:hover { background: var(--orange-soft); }
button.danger { background: none; color: var(--warn); border-color: var(--warn); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--mist); }
.badge.live { border-color: transparent; background: var(--orange-soft); color: var(--accent); }
.preview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.thumbs figure { margin: 0; }
/* The style recipes on Uiterlijk: a row of 44 pixels at least, its name and its line. */
.recipes { display: grid; gap: 8px; margin: 0 0 12px; }
.recipe-choice { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.recipe-choice span { display: grid; gap: 2px; }
.block-warning { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--warn); font-weight: 600; }
/* The AI mark on a photo, as the site shows it (template/src/styles/site.css, .ai-mark). */
.thumb-photo { position: relative; }
.thumb-photo .ai-mark { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 999px; background: rgb(255 255 255 / 0.92); color: #1b1b1b; font-size: 11px; font-weight: 700; line-height: 1; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); background: var(--line); }
.thumbs figcaption { font-size: 13px; color: var(--muted); }
.thumbs .face-blur { display: block; }
/* "Definitief verwijderen" under each photo, and its confirmation (build-status question 28): 44-pixel targets. */
.thumbs figure button { width: 100%; min-height: 44px; margin-top: 6px; font-size: 16px; }
.erase figure { margin: 0 0 12px; max-width: 320px; }
.erase img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); background: var(--line); }
.erase figcaption { font-size: 14px; color: var(--muted); }
.face-switch { font-weight: 600; }
.face-switch + .small { margin-top: 0; font-size: 13px; }
.blur-note { font-size: 13px; }
.chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; }
/* Buddy's words drawn as he means them (editor/rich-text.js): paragraphs and lists, close together in a bubble. */
.msg.buddy { white-space: normal; }
.msg.buddy p { margin: 0 0 6px; }
.msg.buddy ul, .msg.buddy ol { margin: 0 0 6px; padding-left: 20px; }
.msg.buddy li { margin: 2px 0; }
.msg.buddy > :last-child { margin-bottom: 0; }
/* An open place of Buddy's ({{vraag: …}}), everywhere the same chip (the live sketch has .live-question). */
.buddy-question { background: var(--orange-soft); color: var(--ink); border-radius: 4px; padding: 0 4px; }
/* What Buddy still misses after the first version: a list, each question with its "Beantwoord". */
.open-questions { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.open-questions li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); }
.open-questions li > span { flex: 1 1 200px; min-width: 0; }
.open-questions button { flex: 0 0 auto; white-space: nowrap; }
.msg.me { background: var(--ink); color: var(--paper); align-self: flex-end; max-width: 90%; border-bottom-right-radius: 4px; }
.msg.buddy { background: var(--mist); border: 1px solid var(--line); max-width: 95%; border-bottom-left-radius: 4px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 8px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lift); font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
/* A new version of the dashboard (editor.js, newVersion): one line with Ververs, until the customer refreshes. */
.app-update { position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; width: max-content; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lift); }
.app-update p { margin: 0; font-weight: 600; }
@media (width < 700px) { .app-update { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* A new screen comes in with a small rise, so a tap feels answered; not for whoever asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  #main > *:not(#pending) { animation: screen-in .28s ease-out both; }
  #main > *:nth-child(2) { animation-delay: .03s; }
  #main > *:nth-child(3) { animation-delay: .06s; }
  @keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }
  .card, .starter-card { transition: box-shadow .15s, border-color .15s; }
}

/* "Buddy werkt" (editor/activity.js): Buddy in the mood of the running step, and the steps as a list. */
.activity { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; margin: 0 0 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.activity[data-state="working"] { border-color: var(--orange); }
.activity-buddy { flex: none; padding-top: 8px; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { margin: 0 0 6px; color: var(--ink); font-weight: 800; }
.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.activity-line { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-line:last-child { border-bottom: 0; }
.activity-words { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.activity-detail { font-size: 13px; }
/* The mark before a step: an orange bit that turns while it runs, a check when done, a cross when it failed. */
.activity-mark { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; background: var(--orange); transform: rotate(14deg); }
.activity-line[data-state="done"] .activity-mark { background: none; border: solid var(--ok); border-width: 0 3px 3px 0; width: 8px; height: 14px; margin: 3px 4px 0 3px; transform: rotate(45deg); border-radius: 0; }
.activity-line[data-state="failed"] .activity-mark { background: var(--warn); transform: none; border-radius: 50%; }
.activity-line[data-state="done"] .activity-text { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .activity-line { animation: activity-in .35s ease-out both; }
  .activity-line[data-state="running"] .activity-mark { animation: activity-turn 1.1s ease-in-out infinite; }
  @keyframes activity-in { from { opacity: 0; transform: translateY(6px); } }
  @keyframes activity-turn { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(104deg) scale(.85); } }
}

/* The welcome on Overzicht: Buddy, the site and where it stands. */
.hello { display: flex; gap: 18px; align-items: center; padding: 20px 22px; margin: 0 0 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hello::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--brand-stripe); }
.hello-buddy { flex: none; }
.hello-text { min-width: 0; }
.hello h1 { margin: 0 0 4px; }
.hello p { margin: 0; }
.hello .site-link { font-weight: 700; overflow-wrap: anywhere; }
@media (width < 700px) { .hello { padding: 16px; gap: 12px; } .hello h1 { font-size: 24px; } }
@media (max-width: 1100px) { .layout { grid-template-columns: 200px minmax(0, 1fr); } aside { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
@media (width < 700px) { .layout { grid-template-columns: minmax(0, 1fr); } main { padding: 18px 16px 24px; } h1 { font-size: 24px; } }
.short { min-height: 100px; }
aside textarea { min-height: 80px; }
/* Screens built mobile first (docs/mobile.md section 3): designed at 360 pixels, controls at least 44 by 44 pixels,
   nothing that works only on hover, form fields at 16 pixels so a phone does not zoom in. */
.screen { max-width: 40rem; }
.screen .big { font-size: 28px; font-weight: 700; margin: 4px 0; }
.screen button, .screen .button { min-height: 44px; min-width: 44px; padding: 10px 16px; font-size: 16px; }
.screen a.button { display: inline-flex; align-items: center; text-decoration: none; border-radius: 999px; font-weight: 700; }
.screen a.button.primary { background: var(--orange); color: var(--on-orange); }
/* Beheer's bar for a session that ran out (editor/beheer.js, showSignedOut): above the page, with a link a thumb can hit. */
.signed-out { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; background: var(--paper); border-bottom: 2px solid var(--warn); }
.signed-out p { margin: 0; font-weight: 700; }
.signed-out a.button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--orange); color: var(--on-orange); }
.screen input, .screen select, .screen textarea { font-size: 16px; min-height: 44px; }
.screen table { font-size: 15px; }
.screen table.numbers td:last-child { white-space: nowrap; }
.screen .answer { white-space: pre-wrap; overflow-wrap: anywhere; }
/* DNS records: a long host or value breaks inside the cell, so the screen never scrolls sideways at 360 pixels. */
.screen table.records td { overflow-wrap: anywhere; word-break: break-word; }
/* A mailbox password, shown once (Mail): large, selectable, breaks on a narrow screen. */
.screen .secret code { font-size: 20px; user-select: all; overflow-wrap: anywhere; }
.screen ul.mailboxes { padding-left: 0; list-style: none; }
/* The Google profile task (Overzicht): each detail with its copy button, wrapping on a narrow screen. */
dl.details { display: grid; grid-template-columns: 1fr; gap: 4px 12px; }
dl.details dt { font-weight: 600; margin-top: 8px; }
dl.details dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
dl.details .value { white-space: pre-line; overflow-wrap: anywhere; flex: 1 1 12rem; }
dl.details button, .card.task button, .task-done button { min-height: 44px; min-width: 44px; font-size: 16px; }
.screen label.check { display: flex; gap: 8px; align-items: flex-start; min-height: 44px; }
.screen label.check input { min-height: 24px; min-width: 24px; margin-top: 2px; }
.screen ul.mailboxes li { margin-bottom: 12px; }
/* The intake in the middle of the screen (editor.js, intakeView) and the owner's admin page (beheer.js). */
.intake-chat { min-height: 240px; max-height: 55vh; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; padding: 6px 10px; }
/* The warning before automatic publishing in an advice profession: a bar and the word "Let op", not colour alone. */
.risk-warning { border-left: 4px solid var(--warn); padding: 4px 12px; margin: 8px 0; }
.risk-warning[hidden] { display: none; }
/* Its choices are tapped: a whole row of 44 pixels, not only the round button. */
.publishing label.inline { display: flex; min-height: 44px; margin: 0; }
legend { font-weight: 600; padding: 0 4px; }
main.admin { margin: 0 auto; }
/*
 * The admin page uses the screen's width (the overseer, 7 November 2026: a column of 550 pixels on a 1512 screen, a
 * table cell broke per letter). Its tables read as tables: a long word breaks only when it would stick out, so a
 * column is never narrower than its words, and a table wider than a phone scrolls inside its own box. Forms keep a
 * line length that reads.
 */
main.admin { max-width: 1280px; overflow-wrap: break-word; }
main.admin .screen { max-width: none; }
main.admin form, main.admin .admin-detail, main.admin .bulk-upload > p, main.admin .template-move { max-width: 48rem; }
main.admin .table-wrap { overflow-x: auto; margin: 8px 0 16px; }
main.admin .table-wrap table { min-width: 36rem; }
main.admin table th, main.admin table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
main.admin table input[type="file"] { max-width: 16rem; }
main.admin .admin-nav { align-items: center; }
main.admin .admin-nav button { margin-left: auto; min-height: 46px; }
/* A ticket older than the promise of one working day (config/support.json). */
main.admin .over-promise { border-left: 4px solid var(--warn); padding-left: 10px; }
main.admin .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent); text-decoration: none; }
.admin-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
/* The DSA deadline stands above every view; red when it is near or past, or a report is serious. */
.deadline { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.deadline.urgent { border: 2px solid var(--warn); color: var(--warn); }
.late { color: var(--warn); font-weight: 600; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-item { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.admin-detail:empty { display: none; }
.photo-erase { flex: 1 1 100%; }
/* Text from customers, reporters and authorities: kept as typed, never rendered. */
.quoted { white-space: pre-wrap; overflow-wrap: anywhere; }
.history { padding-left: 18px; }
/* The dashboard shell (docs/dashboard.md, order step 2; docs/mobile.md section 3). On a laptop: the side menu in
   groups, the screen, and Buddy beside it. Under 700 pixels: one column, a bar at the bottom with five items, the
   site's screens as a menu on Overzicht, Buddy full screen from the bar, and the bar out of the way while typing. */
[hidden] { display: none !important; }
.site-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.site-pick select { width: auto; max-width: 60vw; }
/* The menu's groups (editor.js, navGroup): a button that folds a group open and shut, with a turning mark; the screens
   under it, set in a little. */
.nav-section { margin-top: 6px; }
#tabs .nav-group, .menu-groups .nav-group { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--radius-small); background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-align: left; cursor: pointer; }
#tabs .nav-group:hover, .menu-groups .nav-group:hover { background: var(--mist); color: var(--ink); }
.nav-group::after { content: ''; width: 7px; height: 7px; margin-left: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.nav-group[aria-expanded='true']::after { transform: rotate(45deg); }
.nav-group span:first-child { flex: 1; }
.nav-items { display: flex; flex-direction: column; gap: 2px; padding-left: 6px; }
.menu-groups .nav-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 0 8px; }
.menu-groups .nav-items[hidden] { display: none; }
.menu-groups .nav-items button { min-height: 52px; padding: 10px 14px; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; }
.menu-groups .nav-group { font-size: 13px; background: var(--panel); border: 1px solid var(--line); }
#bar, .only-narrow { display: none; }
#offline { margin: 0; padding: 10px 20px; background: var(--ink); color: var(--paper); font-weight: 600; }
main { min-width: 0; overflow-wrap: anywhere; }
@media (width < 700px) {
  .top { gap: 8px 12px; padding: 14px 16px 10px; }
  .top .brand { font-size: 17px; }
  .logo-mark { width: 32px; height: 32px; }
  .top select { font-size: 16px; min-height: 44px; }
  #tabs, aside#buddy { display: none; }
  #bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(47 47 47 / 0.06); padding-bottom: env(safe-area-inset-bottom); }
  #bar button { min-height: 58px; min-width: 44px; padding: 6px 2px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  #bar button[aria-current="page"] { color: var(--ink); font-weight: 800; box-shadow: inset 0 4px 0 var(--orange); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.typing #bar { display: none; }
  body.typing { padding-bottom: 0; }
  /* A toast stays above the bar, so every confirmation and error is seen on a phone. */
  #toast { bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 20; }
  body.typing #toast { bottom: 16px; }
  .menu-groups.only-narrow { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
  .menu-grid.only-narrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
  .menu-grid button { min-height: 56px; padding: 10px 14px; text-align: left; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .back.only-narrow { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; font-size: 16px; }
  body[data-screen="buddy"] main { display: none; }
  body[data-screen="buddy"] .top { display: none; }
  body[data-screen="buddy"] .layout { min-height: 0; }
  body[data-screen="buddy"] aside#buddy { display: flex; height: calc(100dvh - 64px - env(safe-area-inset-bottom)); border: 0; }
  aside#buddy textarea { font-size: 16px; }
  aside#buddy button { min-height: 44px; font-size: 16px; }
}

/* Credits as a usage screen (R3 section 3): one bar in three parts, the days per kind as a list with a small bar, on a
   laptop a stacked chart above the list. Each colour has its words next to it; the colours are for scanning only. */
:root { --k-posts: #ff914d; --k-chat: #4e4e4e; --k-changes: #b4530f; --k-images: #ffc29b; --c-carried: #ffc29b; --c-month: #ff914d; --c-bought: #4e4e4e; --c-used: #dcdcd8; }
@media (prefers-color-scheme: dark) {
  :root { --k-posts: #ff914d; --k-chat: #d6d6d6; --k-changes: #ffc29b; --k-images: #b4530f; --c-carried: #ffc29b; --c-month: #ff914d; --c-bought: #d6d6d6; --c-used: #444444; }
}
.credits .meter { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 12px 0 8px; }
.credits .meter .seg.used, .credits .dot.used { background: var(--c-used); }
.credits .meter .seg.carried, .credits .dot.carried { background: var(--c-carried); }
.credits .meter .seg.month, .credits .dot.month { background: var(--c-month); }
.credits .meter .seg.bought, .credits .dot.bought { background: var(--c-bought); }
.credits .seg.posts, .credits .dot.posts { background: var(--k-posts); }
.credits .seg.chat, .credits .dot.chat { background: var(--k-chat); }
.credits .seg.changes, .credits .dot.changes { background: var(--k-changes); }
.credits .seg.images, .credits .dot.images { background: var(--k-images); }
.credits .dot { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 6px; flex: none; }
.credits ul.legend, .credits ul.totals, .credits ul.days, .credits ul.kinds { list-style: none; padding: 0; margin: 8px 0; }
.credits ul.legend li, .credits ul.kinds li { padding: 2px 0; }
.credits ul.totals { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.credits ul.totals li { display: inline-flex; align-items: center; }
.credits .note { color: var(--warn); }
.credits ul.days > li { border-bottom: 1px solid var(--line); }
.credits ul.days summary { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 8px; align-items: center; min-height: 44px; padding: 6px 0; cursor: pointer; list-style: none; }
.credits ul.days summary::-webkit-details-marker { display: none; }
/* A day opens: a marker before the date, turned when it is open, so it does not depend on the browser's own. */
.credits ul.days summary .day::before { content: '▸'; display: inline-block; width: 1.1em; color: var(--muted); transition: transform .15s; }
.credits ul.days details[open] summary .day::before { transform: rotate(90deg); }
.credits ul.days .num { text-align: right; }
.credits .daybar { grid-column: 1 / -1; display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--line); }
.credits ul.kinds { padding: 0 0 8px; }
.credits .chart { display: none; }
.credits table.recent td:first-child { white-space: nowrap; }
/* Storage and traffic per site (B12): a bar per limit, full width on a phone, filled to the share and never past it. */
.credits .site-choice { display: flex; flex-direction: column; gap: 4px; margin: 20px 0 0; max-width: 24rem; }
/* Every site's credits and "Overzetten" between them (owner, 6 November 2026). */
.credits ul.site-credits { list-style: none; padding: 0; margin: 8px 0; max-width: 32rem; }
.credits ul.site-credits li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.credits ul.site-credits .num { flex: none; }
.credits form.transfer { max-width: 24rem; }
.credits form.transfer .row { margin-top: 12px; }
.credits .limits h3 { margin: 16px 0 0; }
.credits .limit-label { margin: 12px 0 0; }
.credits .limitbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 6px 0 4px; }
.credits .limitbar .fill { background: var(--accent); }
.credits .limitbar.full .fill { background: var(--warn); }
.credits .small { font-size: 14px; margin: 0; }
.credits-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 12px; }
.credits-line p { margin: 0; }
.credits-line button { min-height: 44px; min-width: 44px; padding: 10px 16px; font-size: 16px; }
@media (min-width: 700px) {
  .credits .chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 4px 0; border-bottom: 1px solid var(--line); margin: 12px 0 4px; }
  .credits .chart .col { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; }
}

/* Saved by itself (decisions of 4 November 2026): what is not online yet, always in view at the top of the screen,
   with "Zet online"; each form says in one line whether it saved. */
.pending { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between;
  margin: 0 0 14px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 600; }
.pending[data-state="clear"] #pending-text::before { content: ''; display: inline-block; width: 7px; height: 13px; margin: 0 12px 2px 4px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg); vertical-align: middle; }
.pending[data-state="waiting"] { background: var(--orange-soft); border-color: var(--orange); }
.pending button { min-height: 44px; min-width: 44px; padding: 8px 16px; font-size: 16px; }
.save-status { margin: 8px 0 0; min-height: 1.5em; }
/* Versions and going back (B4): a card per version, the changes in plain words, the confirmation's list. */
.version-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.version h3 { margin: 0; font-size: 16px; }
.version p { margin: 4px 0; }
.version details summary, .version button { min-height: 44px; }
.version details summary { display: flex; align-items: center; cursor: pointer; color: var(--accent); }
.change-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.change-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
/* Why Buddy asks a question, folded under it (the btw-id's warning; the UX walkthrough, finding 11). */
.question-why summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--accent); font-weight: 600; }
.question-why p { margin: 4px 0 8px; }

/* Contact, "Kaart op je contactpagina": the map as the site will show it. */
.map-preview img { display: block; width: 100%; max-width: 32rem; height: auto; border-radius: var(--radius); }

/* The site's logo in Uiterlijk (src/editor/logo.ts): the share picture made from it, as wide as the card. */
.logo-form figure {
  margin: 0 0 1rem;
}

.logo-share {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line, #d8dde2);
  border-radius: 0.5rem;
}

/* Lettertypen in Uiterlijk (editor/lettertypen.js): each choice with a sample in its own letter. */
.fonts-card .font-choice { margin-top: 12px; }
.fonts-card .font-sample { margin: 8px 0 4px; overflow-wrap: anywhere; color: var(--ink); }
.fonts-card .font-sample.kop { font-size: 24px; line-height: 1.25; font-weight: 700; }
.fonts-card .font-sample.tekst { font-size: 17px; line-height: 1.55; }
