/* The app's look: the round-3 mock's palette, type and spacing, on the plain elements every screen uses.
   Screens bring no CSS of their own. No framework, no build step. */

:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface2: #EFEAE0;
  --ink: #2B2620;
  --ink-soft: #75695A;
  --line: #E2DACB;
  --accent: #3E6B4F;
  --on-accent: #F7F4EE;
  --accent-soft: #E3ECE4;
  --warn: #B3841F;
  --bad: #B04A35;
  --van: #8A4B2A;
  --van-soft: #F3E3D8;
  --shadow: 0 4px 16px rgba(43, 38, 32, 0.14);
  --page: 430px; /* the mock's column */
  --tap: 44px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1813;
    --surface: #262219;
    --surface2: #312C21;
    --ink: #EDE6D8;
    --ink-soft: #A2967F;
    --line: #3B3426;
    --accent: #82B292;
    --on-accent: #16211A;
    --accent-soft: #2A3A2E;
    --warn: #D3A445;
    --bad: #D97B60;
    --van: #D9946A;
    --van-soft: #3A2A20;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- page ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* An element marked hidden stays hidden, whatever display its own rule gives it (a label, a block). */
[hidden] { display: none !important; }
/* Keeps a focused field or anchor clear of the sticky header and the bottom bar. */
html { scroll-padding: 72px 0 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
}
nav + main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--accent); font-weight: 600; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; }

/* ---------- the compact header: who is using the app ---------- */
body > header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  display: flex; align-items: center; gap: 6px;
}
body > header > strong { flex: 1 0 auto; font-size: 17px; letter-spacing: -0.01em; }
body > header > span {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
}
body > header form { flex: none; margin: 0; }
body > header button {
  width: auto; margin: 0; padding: 4px 10px; font-size: 12.5px; white-space: nowrap;
  background: var(--surface); color: var(--ink); border-color: var(--line);
}

/* ---------- the bottom bar: the five tabs ---------- */
body > nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: var(--page);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body > nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
body > nav li { flex: 1; min-width: 0; margin: 0; }
body > nav a {
  display: block; padding: 8px 0 10px; min-height: var(--tap); text-align: center; text-decoration: none;
  color: var(--ink-soft); font-size: 11px; font-weight: 600;
}
body > nav a span { display: block; font-size: 19px; line-height: 1.25; }
body > nav a[aria-current="page"] { color: var(--accent); }
@media (min-width: 431px) {
  body > nav { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---------- type ---------- */
h1 { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h2 { margin: 22px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
p { margin: 0 0 10px; }
small { color: var(--ink-soft); font-size: 12.5px; }
ins { text-decoration: none; color: var(--accent); font-weight: 600; }
code { font-size: 13px; background: var(--surface2); border-radius: 6px; padding: 1px 5px; word-break: break-all; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin: 4px 0; }

/* ---------- cards ---------- */
article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
article h2, article h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: normal; text-transform: none; color: var(--ink); }
article h2 a, article h3 a { color: var(--ink); text-decoration: none; }
article p { margin: 4px 0; font-size: 13.5px; color: var(--ink-soft); }
article > :last-child { margin-bottom: 0; }

/* A record's rows: label over value, as the mock's summary card. */
dl {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 14px; margin: 0 0 12px;
}
dt { padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
dd { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
dd:last-child { border-bottom: none; }

details {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 12px 0;
}
article details { border-bottom: none; margin: 8px 0 0; }
summary {
  display: flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "›"; font-size: 18px; transition: transform 140ms ease; }
details[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { summary::before { transition: none; } }

/* ---------- forms ---------- */
form { margin: 0 0 12px; }
fieldset {
  margin: 0 0 14px; padding: 4px 14px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
legend {
  padding: 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
label { display: block; margin: 10px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
input, select, textarea {
  display: block; width: 100%; min-height: var(--tap); margin: 0 0 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; /* iOS zooms into anything smaller */
}
fieldset input, fieldset select, fieldset textarea { background: var(--bg); }
label > input, label > select { margin: 4px 0 0; color: var(--ink); }
textarea { min-height: 88px; resize: vertical; }
input[type="number"], input[type="date"] { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 0.8; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* Django's own field help and field errors. */
.helptext { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-soft); }
.errorlist { margin: 0 0 6px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--bad); }

/* A choice the label wraps (checkbox, radio): one tappable row. */
input[type="checkbox"], input[type="radio"] {
  display: inline-block; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0;
  accent-color: var(--accent);
}
/* Hung in the label's left gutter, so a long label wraps under its own text, not under the box. */
label > input[type="checkbox"], label > input[type="radio"] { margin: 0 10px 0 -32px; vertical-align: -5px; }
label:has(> input[type="checkbox"], > input[type="radio"]) {
  display: block; min-height: var(--tap); margin: 0;
  padding: 10px 0 10px 32px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 400; color: var(--ink);
}
fieldset > label:has(> input[type="checkbox"], > input[type="radio"]):first-of-type { border-top: none; }

/* The form's first button is its main action; the ones after it are the alternatives. */
button {
  display: block; width: 100%; min-height: var(--tap); margin: 4px 0 10px; padding: 11px 16px;
  border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; text-align: center; cursor: pointer;
}
button ~ button, li button, dd button {
  background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600;
}
li form, dd form { display: inline; }
li button, dd button { display: inline-block; width: auto; margin: 0 0 0 6px; padding: 6px 12px; font-size: 13px; vertical-align: middle; }
button:disabled { opacity: 0.5; cursor: default; }

/* A search box: one field, no frame around it. */
form[role="search"] { display: flex; gap: 8px; }
form[role="search"] input { margin: 0; }
form[role="search"] button { width: auto; margin: 0; flex: none; }

/* ---------- warnings, errors and confirmations ---------- */
/* Warnings (role=status lists and notices) never block, so they never look like errors: the mock's warn colour. */
ul[role="status"], div[role="status"] {
  margin: 8px 0 12px; padding: 8px 12px; list-style: none;
  background: color-mix(in srgb, var(--warn) 14%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: 10px; color: var(--ink); font-size: 13.5px;
}
/* An error (role=alert) is a refusal: nothing was saved. */
[role="alert"] {
  margin: 8px 0 12px; padding: 8px 12px; list-style: none;
  background: color-mix(in srgb, var(--bad) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent);
  border-radius: 10px; color: var(--ink); font-size: 13.5px; font-weight: 600;
}
[role="alert"] li, [role="status"] p, ul[role="status"] li { margin: 2px 0; }
p[role="status"] {
  padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px;
}

/* ---------- a list of people or families to pick from (the login roster, the sheet's family search) ---------- */
main > ul {
  padding: 0 14px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
main > ul > li { margin: 0; padding: 0; border-top: 1px solid var(--line); }
main > ul > li:first-child { border-top: none; }
main > ul > li > a:first-child { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
main > ul > li:not(:has(> a)) { padding: 11px 0; }

/* ---------- views inside a screen (Semana / Mes) ---------- */
main nav {
  display: flex; gap: 3px; padding: 3px; margin: 0 0 12px;
  background: var(--surface2); border-radius: 10px; font-size: 0; /* hides the "·" between the links */
}
main nav a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 8px;
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
}
main nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- tables (the month grid) ---------- */
table {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px;
  margin: 0 0 8px; font-size: 12px; font-variant-numeric: tabular-nums;
}
th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding: 2px 0; }
td {
  vertical-align: top; text-align: center; padding: 5px 2px; border-radius: 8px;
  background: var(--surface); overflow-wrap: anywhere; line-height: 1.25;
}
td:empty { background: transparent; }
td small { font-size: 10px; }
td[aria-current="date"] { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- the second factor's QR code needs a light ground in dark mode too ---------- */
.qr svg { display: block; width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 8px; }

/* ---------- Habs: a night's rooms, "Por asignar" and the picker ---------- */
/* A second-rank action on its own (Quitar, Asignar todas): the alternatives' look. */
button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600; }
.night-nav { display: flex; align-items: center; gap: 8px; }
.night-nav strong { flex: 1; text-align: center; }
.night-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); text-decoration: none; font-size: 18px; }
.band h3 { margin-top: 18px; }
/* Every room as a tile, four to a phone row: its number, then its dogs or "libre". */
.rooms {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px;
  margin: 4px 0 8px; padding: 0; list-style: none;
}
.rooms li {
  margin: 0; min-height: var(--tap); padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere;
}
.rooms li b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.rooms li span { color: var(--ink-soft); }
.rooms li a { display: block; color: var(--ink); text-decoration: none; }
.rooms li.occupied { background: var(--accent-soft); border-color: transparent; }
.to-assign { padding: 8px 0; border-bottom: 1px solid var(--line); }
.to-assign p { margin: 0; color: var(--ink); }
.to-assign p strong { color: var(--ink); }
/* The suggestion and "Otra…", side by side. */
.choices { display: flex; gap: 8px; margin-top: 6px; }
.choices > * { flex: 1; }
.choices form { margin: 0; }
.choices button { margin: 0; }
.choices a {
  display: flex; align-items: center; justify-content: center; min-height: var(--tap);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none;
}
/* The picker's rooms: the dog's band in green, the others in amber (a warning, allowed). */
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.picks button {
  width: auto; min-width: var(--tap); margin: 0; padding: 8px 10px;
  background: var(--surface); font-variant-numeric: tabular-nums;
}
.picks.fits button { border-color: var(--accent); color: var(--accent); }
.picks.warn button { border-color: color-mix(in srgb, var(--warn) 60%, transparent); color: var(--warn); }

/* ---------- Hoy: the day's tasks, and a Stay's care plan ---------- */
.counters { display: flex; gap: 8px; margin: 0 0 4px; }
.counters span {
  flex: 1; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.counters b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tasks, .lines {
  margin: 0 0 8px; padding: 0 14px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.tasks > li, .lines > li { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.tasks > li:first-child, .lines > li:first-child { border-top: none; }
.lines p, .task-body p { margin: 0 0 2px; }
.lines form { display: block; margin: 4px 0 0; }
.lines button { margin: 0; width: auto; padding: 6px 12px; font-size: 13px; }
/* A task: what to do on the left, the one-tap tick on the right. */
.task { display: flex; align-items: center; gap: 10px; }
.task-body { flex: 1; min-width: 0; }
.task .when { font-variant-numeric: tabular-nums; margin-right: 4px; }
.task form { margin: 0; flex: none; }
.tick {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); min-height: var(--tap); margin: 0; padding: 0;
  border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); color: var(--accent);
  font-size: 20px; font-weight: 700; text-decoration: none;
}
.tick.done { border-color: transparent; background: var(--accent-soft); }
.task.closed .task-body { opacity: 0.7; }
.task.overdue .when { color: var(--bad); }
.chip {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--surface2); color: var(--ink); vertical-align: 1px;
}
.chip.warn { background: color-mix(in srgb, var(--warn) 22%, var(--bg)); }
.chip.bad { background: color-mix(in srgb, var(--bad) 18%, var(--bg)); color: var(--bad); }
.chip.red { background: var(--bad); color: var(--bg); }
.charge-pending { color: var(--warn); font-size: 13px; font-weight: 700; }
.batch label { margin-top: 4px; }
.batch-row { display: flex; gap: 8px; }
.batch-row select { margin: 0; flex: 1; min-width: 0; }
.batch-row button { margin: 0; width: auto; flex: none; }
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 8px; }
/* Armar corrales: each dog's corral and play group side by side; the escapist tag in the whiteboard's green. */
.placement .pick { display: grid; grid-template-columns: 2fr 1fr; gap: 0 8px; }
.placement .pick label { margin: 4px 0 0; }
.placement .pick select { margin: 4px 0 0; }
.chip.escapist { background: var(--accent-soft); color: var(--accent); }
#corrales h3 { margin-top: 12px; }
/* Llegadas and Salidas: the row's action (Recibir, Dar salida) where a task has its tick. */
.task .action {
  flex: none; display: flex; align-items: center; min-height: var(--tap); padding: 0 14px;
  border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-weight: 700; text-decoration: none;
}
/* A belongings line's "Es medicación → al plan": a quiet fold inside the line. */
.lines details { border: none; margin: 0; }
.lines summary { text-transform: none; letter-spacing: normal; font-weight: 600; color: var(--accent); }

/* ---------- Viajes: a day's trips, one trip's stops and the dogs aboard ---------- */
.chip.pickup { background: var(--accent-soft); color: var(--accent); }
.chip.delivery { background: var(--van-soft); color: var(--van); }
.chip.mixed { background: var(--surface2); color: var(--ink); }
.trip-card .over b { color: var(--bad); }
.trip-card .warn { color: var(--warn); }
.empty { color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
/* The aboard chart: one bar per moment (leaving, then after each stop), the 24-crate line dashed across. */
.aboard { margin: 4px 0 6px; }
.aboard .bars {
  position: relative; display: flex; align-items: flex-end; gap: 2px; height: 72px;
  padding: 0 1px; border-bottom: 1px solid var(--line);
}
.aboard .bars::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--crate-line); border-top: 1px dashed var(--bad);
}
.aboard .bars span { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--van); }
.aboard .bars span.over { background: var(--bad); }
.aboard figcaption { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.pairs li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stops {
  margin: 0 0 8px; padding: 0 14px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.stops > li { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.stops > li:first-child { border-top: none; }
.stops > li.empty { border: none; }
.stop { display: flex; gap: 10px; }
.stop .n {
  flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.stop-body { flex: 1; min-width: 0; }
.stop-body p { margin: 0 0 2px; }
.stop .when { font-variant-numeric: tabular-nums; font-weight: 600; }
.stop .when.suggested { color: var(--ink-soft); font-weight: 400; }
/* The admin's row: the planned time, then ↑ and ↓. */
.stop-actions { display: flex; gap: 6px; margin-top: 6px; }
.stop-actions form { margin: 0; }
.stop-actions form:first-child { flex: 1; }
.stop-actions input { margin: 0; font-variant-numeric: tabular-nums; }
.stop-actions button { width: var(--tap); margin: 0; padding: 0; font-size: 18px; background: var(--surface); color: var(--ink); border-color: var(--line); }
/* Viajes: what the driver has sent, per dog (story 59) */
.riders { list-style: none; margin: 4px 0; padding: 0; }
.riders li { margin: 0; padding: 2px 0; }
.riders .stage { display: inline-block; width: 1.2em; text-align: center; font-weight: 700; color: var(--ink-soft); }
.riders .boarded .stage { color: var(--van); }
.riders .handed_over .stage { color: var(--accent); }

/* ---------- Para decidir: Hoy's block, and the queue it opens ---------- */
.decidir, .queue {
  margin: 0 0 8px; padding: 0 14px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.decidir > li, .queue > li { margin: 0; border-top: 1px solid var(--line); }
.decidir > li:first-child, .queue > li:first-child { border-top: none; }
/* A group on Hoy: icon, title and count, the hint under them, and the chevron to open its list. */
.decidir a {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 10px 0;
  color: var(--ink); font-weight: 400; text-decoration: none;
}
.decidir .icon { flex: none; width: 24px; font-size: 20px; text-align: center; }
.decidir .what { flex: 1; min-width: 0; }
.decidir .t { font-weight: 700; }
.decidir .count {
  display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; text-align: center;
  background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.decidir small { display: block; }
.decidir .chev { flex: none; color: var(--ink-soft); font-size: 18px; }
/* A row of the queue: what it is, who proposed it, then its decisions, one tap each. */
.queue > li { padding: 12px 0; }
.queue p { margin: 0 0 2px; }
.queue s { color: var(--ink-soft); }
.queue form { display: block; margin: 0; }
.queue .choices { margin-top: 8px; }
.queue .choices button { width: 100%; margin: 0; padding: 11px 16px; font-size: 15px; }
/* `li button` makes a row's buttons quiet: the decision that says yes is the main one again. */
.queue .choices button:not(.secondary) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.amount { display: flex; gap: 8px; margin-top: 8px; }
.amount input { flex: 1; min-width: 0; margin: 0; font-variant-numeric: tabular-nums; }
.amount select { flex: none; width: auto; margin: 0; }

/* ---------- the booking's sheet: its actions, and cancelling ---------- */
/* A link that leads to an action reads as a button; cancelling wears the error colour, since it can't be undone. */
.actions a {
  display: flex; align-items: center; justify-content: center; min-height: var(--tap); margin: 4px 0 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.actions a.danger, button.danger { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); background: var(--surface); }

/* ---------- The dog's evaluation report: the adaptation outcome, then its observations, newest first ---------- */
.adaptation .choices { flex-wrap: wrap; }
.adaptation .choices button { margin: 0; }
.report {
  margin: 0 0 8px; padding: 0 14px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.report > li { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.report > li:first-child { border-top: none; }
.report p { margin: 0 0 2px; overflow-wrap: anywhere; }
