/* Phone first: one column, large tap targets, readable outdoors.
   Sizes and colours come from docs/mockup/README.md. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/atkinson-hyperlegible-next/atkinson-hyperlegible-next-latin-ext-400-normal.bcad3501e62c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/atkinson-hyperlegible-next/atkinson-hyperlegible-next-latin-400-normal.e8da57bc0c3d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/atkinson-hyperlegible-next/atkinson-hyperlegible-next-latin-ext-700-normal.521d9348d7ad.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/atkinson-hyperlegible-next/atkinson-hyperlegible-next-latin-700-normal.617b4197a93a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1f3a68;
  --amber: #f59e0b;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #4b5563;
  --border: #6b7280;
  --rule: #d1d5db;
  --anomaly: #b45309;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --blocked: #991b1b;
  --blocked-bg: #fee2e2;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --mission-bg: #dbe4f3;
  --radius: 14px;
  --tap: 44px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  /* Above the answer buttons, which are positioned and scroll under it. */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: env(safe-area-inset-top) 16px 0;
  background: var(--navy);
  color: #fff;
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* The chevron back to the previous page, left of the brand. */
.back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-left: -10px;
  color: #fff;
}

.back:hover {
  color: #fff;
}

.back svg,
.chevron,
.call svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand span {
  color: var(--amber);
}

.topbar-button {
  min-height: var(--tap);
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

p {
  margin: 0;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.muted {
  color: var(--muted);
}

.muted strong {
  color: var(--text);
}

.hint {
  color: var(--muted);
  font-size: 15px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
}

.card h1 {
  font-size: 24px;
}

/* Forms: one field per row, the label above its input. */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  font-size: 17px;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 18px;
}

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--blocked);
  font-size: 16px;
  font-weight: 700;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 0 16px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: #fff;
}

.button-outline,
.button-outline:hover {
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
}

/* « Continuer avec Google »: the mockup's grey border and dark text. */
.button-neutral,
.button-neutral:hover {
  margin-top: 0;
  border-color: var(--border);
  color: var(--text);
}

/* « ou », between the login form and the Google button. */
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.separator::before,
.separator::after {
  flex: 1;
  height: 1px;
  background: var(--rule);
  content: "";
}

.link-button {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: var(--tap);
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mission-bg);
  color: var(--navy);
  font-size: 16px;
}

.notice-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

/* The steps of an access request, on the waiting page. */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.steps li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.step-mark-current {
  border-color: var(--navy);
  color: var(--navy);
}

.step-mark-done {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

/* Vehicle list and vehicle page. */
.vehicle-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.vehicle-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vehicle-card-name {
  font-size: 19px;
  font-weight: 700;
}

.chip {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.chip-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.chip-blocked {
  background: var(--blocked-bg);
  color: var(--blocked);
}

.box-blocked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 2px solid var(--blocked);
  border-radius: var(--radius);
  background: var(--blocked-bg);
}

.box-blocked strong {
  color: var(--blocked);
}

/* What a later version will add, drawn as an empty slot. */
.coming {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 2px dashed #9ca3af;
  border-radius: var(--radius);
  color: var(--muted);
}

.nav-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  text-decoration: none;
}

.nav-list a + a {
  border-top: 1px solid var(--rule);
}

/* Carrosserie: one drawing per card, the sides full width and the front and rear side by side,
   the damages as numbered pins on them. */
.drawings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.drawing {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
}

.drawing-wide {
  grid-column: 1 / -1;
}

.drawing figcaption,
.card-heading {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.drawing-area {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

/* A drawing to tap: no double-tap zoom in the way. */
button.drawing-area {
  cursor: crosshair;
  touch-action: manipulation;
}

.drawing img {
  display: block;
  width: 100%;
  height: auto;
}

.pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pin-new {
  background: var(--anomaly);
}

/* Lets the part of a page that HTMX redraws keep the layout of its parent. */
.contents {
  display: contents;
}

.damage-list {
  gap: 8px;
}

.damage-row {
  display: flex;
  gap: 10px;
}

.damage-row > strong {
  min-width: 1.5em;
}

.new-damage {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.new-damage label {
  font-size: 15px;
}

.new-damage textarea {
  border-color: var(--anomaly);
}

.new-damage .link-button {
  align-self: flex-start;
  padding: 0;
}

.anomaly-note {
  color: var(--warning);
  font-size: 14px;
}

/* Numéros utiles. */
.number-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.number-section h2 {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.number-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
}

.number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px 8px 16px;
}

.number-row + .number-row {
  border-top: 1px solid var(--rule);
}

.number-row > div {
  display: flex;
  flex-direction: column;
}

.call {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
}

/* « En mission », and the departure button of the vehicle page. */
.chip-mission {
  background: var(--mission-bg);
  color: var(--navy);
}

.button-main {
  min-height: 64px;
  margin-top: 0;
  font-size: 21px;
}

.centered {
  display: flex;
  justify-content: center;
}

/* The steps of a departure. */
.topbar-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar-title strong {
  font-size: 18px;
}

.topbar-title span {
  color: var(--mission-bg);
  font-size: 14px;
}

.step-bar {
  display: flex;
  gap: 4px;
  margin-top: -14px;
}

.step-bar span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--rule);
}

.step-bar .done {
  background: var(--navy);
}

/* The page fills the screen, so that the footer of a short step sits at the bottom. */
body:has(.step-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body:has(.step-footer) .page {
  flex: 1;
  width: 100%;
}

.step-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

/* « Suivant » stays within reach at the bottom of the screen. */
.step-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -16px -24px;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.step-form .step-footer,
.page > .step-footer {
  margin-top: auto;
}

.step-footer .button {
  margin-top: 0;
}

.button-waiting,
.button-waiting:hover {
  border: 2px dashed var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  cursor: default;
}

input[type="number"] {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
}

.with-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

/* A choice among a few: radio inputs drawn as the mockup's buttons. */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choices legend {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
}

.choice {
  position: relative;
  font-weight: 400;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice > span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.choice-row strong {
  min-width: 64px;
}

.choice input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.choice input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  font-size: 16px;
}

.check input {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  accent-color: var(--navy);
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes:empty {
  display: none;
}

.box-warning {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 15px;
}

.box-warning-large {
  padding: 14px 16px;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}

.box-warning-large strong {
  color: var(--warning);
}

.todo,
.field-error {
  font-size: 15px;
  font-weight: 700;
}

.todo {
  color: var(--warning);
}

.field-error {
  color: var(--blocked);
}

.fuel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.fuel-value {
  font-size: 26px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  height: var(--tap);
  accent-color: var(--navy);
  cursor: pointer;
}

.fuel-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.summary > div {
  display: flex;
  flex-direction: column;
}

/* An item of the check-list: its two answers, and the comment an anomaly needs. */
.check-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item-inline {
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: var(--surface);
}

.check-question {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item-inline .check-question {
  flex-direction: row;
  align-items: center;
}

.check-label {
  flex: 1;
  font-weight: 700;
  line-height: 1.25;
}

.check-item-inline .check-label {
  font-size: 16px;
}

.answers {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.answers .choice > span {
  justify-content: center;
  min-height: 48px;
  padding: 4px 6px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.check-item-inline .choice > span {
  width: 84px;
}

.check-item-stacked .answers {
  gap: 10px;
}

.check-item-stacked .choice {
  flex: 1;
}

.check-item-stacked .choice > span {
  min-height: 56px;
}

.choice-anomaly input:checked + span {
  border-color: var(--anomaly);
  background: var(--anomaly);
}

/* The comment only shows, and only counts, once the anomaly is picked. */
.check-comment {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.check-item:has(.choice-anomaly input:checked) .check-comment {
  display: flex;
}

.check-comment label,
label[for="instructions"] {
  font-size: 15px;
}

textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.check-comment textarea {
  border-color: var(--anomaly);
}

.reminder {
  color: var(--muted);
  font-size: 14px;
}

.check-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.check-intro strong {
  flex-shrink: 0;
  font-size: 16px;
}

/* The récapitulatif: the call buttons, and who authorized. */
.call-buttons,
.choices-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choices-pair legend {
  grid-column: 1 / -1;
}

.choices-pair .choice > span {
  justify-content: center;
  font-weight: 700;
}

.call-buttons .button {
  min-height: 52px;
  margin-top: 0;
  padding: 0 8px;
  font-size: 16px;
}

.box-blocked .plain,
.box-warning-large .plain {
  color: var(--text);
}

.done-mark {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The return: the trip it closes, then the km, the fuel and where the vehicle is parked. */
.trip-banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #e8eef8;
  font-size: 15px;
}

.box-refused {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blocked-bg);
  color: var(--blocked);
  font-size: 15px;
  font-weight: 700;
}

.driven {
  color: var(--ok);
  font-size: 15px;
  font-weight: 700;
}

/* Why the fuel is low, and the place when it isn't the local: shown only once they apply. */
.fuel-why,
.parking-place {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.notes-low-fuel + .fuel-why,
.card:has(input[name="parking"][value="elsewhere"]:checked) .parking-place {
  display: flex;
}

.fuel-why label,
.parking-place label,
label[for="note"] {
  font-size: 15px;
}

.fuel-why textarea {
  border-color: var(--anomaly);
}

/* The vehicle page: what the last return left, and the slot of the return button. */
.tiles {
  display: grid;
  /* As wide as their values, so that the km stays on one line on a narrow phone. */
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
}

.tiles > div {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
}

.tiles span {
  color: var(--muted);
  font-size: 13px;
}

.tiles strong {
  white-space: nowrap;
}

.last-return {
  color: var(--muted);
  font-size: 14px;
}

.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 4px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

/* The home page: the driver's own open trip, with the way to its return. */
.own-trip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--mission-bg);
  color: var(--text);
  text-decoration: none;
}

.own-trip-action {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

/* Open incidents: the amber box of the vehicle page, and their count on the vehicle list. */
.box-incidents {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  background: var(--warning-bg);
}

.box-incidents svg {
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--warning);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.box-incidents > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.box-incidents strong {
  color: var(--warning);
}

.incident {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.incident-title {
  font-weight: 700;
}

.incident-count {
  color: var(--warning);
  font-size: 15px;
  font-weight: 700;
}

/* « Signaler un problème »: the categories as round chips. */
.chip-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip > span {
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

/* The header's menu: a <details> that opens without a script. */
.menu {
  position: relative;
}

.menu summary {
  display: flex;
  align-items: center;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu nav {
  position: absolute;
  top: 100%;
  right: -8px;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 6px 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(20 33 61 / 25%);
}

.menu nav a,
.menu nav button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu nav form {
  border-top: 1px solid var(--rule);
}

.notice-error {
  background: var(--blocked-bg);
  color: var(--blocked);
}

/* TECH's dashboard: filters, flags, the facts of a trip or an incident. */
h2 {
  margin: 0;
  font-size: 21px;
}

h3 {
  margin: 6px 0 0;
  font-size: 17px;
}

select,
input[type="date"] {
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.filters .button {
  margin-top: 0;
}

.dash-row {
  display: flex;
  flex-direction: column;
}

.chip-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

/* A trip more than a year old, that only the DLT reads. */
.chip-archived {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--rule);
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flag {
  padding: 2px 10px;
  border: 1px solid var(--anomaly);
  border-radius: 999px;
  color: var(--anomaly);
  font-size: 14px;
  font-weight: 700;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 14px;
}

.facts dd {
  margin: 0;
}

.answers-list,
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.answer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.answer-head strong {
  flex-shrink: 0;
}

.answer-anomaly .answer-head strong {
  color: var(--anomaly);
}

.answer-comment {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.authorization,
.comment {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  overflow-wrap: anywhere;
}

.disclosure summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.disclosure form {
  margin-top: 8px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--tap);
}

.pager a {
  font-weight: 700;
}

/* Under every page: the « Données personnelles » link. */
.footer {
  display: flex;
  justify-content: center;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted);
  font-size: 15px;
}

/* A page of plain text: « Données personnelles ». */
.prose p {
  margin: 0;
  line-height: 1.5;
}
