/* Carnet — one stylesheet. Tokens first; every colour below comes from them, so the
 * light and dark themes stay the same design. Fonts are served from our own server:
 * nothing is fetched from a font host (see the privacy page). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("vendor/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("vendor/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f6f3;
  --surface: #ffffff;
  --sunken: #eef0ec;
  --line: #e1e5df;
  --line-strong: #cdd3cb;
  --ink: #16201b;
  --muted: #5d6862;
  --faint: #8a948e;
  --accent: #1d6b58;
  --accent-ink: #ffffff;
  --accent-soft: #e2efe9;
  --mark: #ffe27a;
  --mark-ink: #3a2f00;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --bad: #b3261e;
  --bad-soft: #fbe9e7;
  --info: #2c5aa0;
  --info-soft: #e7eef9;
  --shadow:
    0 1px 0 rgba(22, 32, 27, 0.04), 0 12px 32px -12px rgba(22, 32, 27, 0.18);
  --shadow-panel: 0 24px 60px -20px rgba(22, 32, 27, 0.35);
  --radius: 12px;
  --ui:
    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --display:
    "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rail: 236px;
  --panel: 400px;
  --list-min: 880px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1311;
    --surface: #151b18;
    --sunken: #1b2320;
    --line: #26302b;
    --line-strong: #34403a;
    --ink: #e5ebe7;
    --muted: #9ba6a0;
    --faint: #6f7a74;
    --accent: #5cc2a5;
    --accent-ink: #0e1311;
    --accent-soft: #17302a;
    --mark: #6b5a12;
    --mark-ink: #fff3c4;
    --warn: #f0b95a;
    --warn-soft: #2b2314;
    --bad: #ff8f86;
    --bad-soft: #2e1816;
    --info: #8fb4f0;
    --info-soft: #172338;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-panel: 0 24px 60px -16px rgba(0, 0, 0, 0.75);
  }
}

/* ------------------------------------------------------------------ base */

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
  line-height: 1.2;
}
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
h2 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 1.4rem 0 0.6rem;
}
h2:first-child {
  margin-top: 0;
}
h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.1rem 0 0.4rem;
}
a {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.src {
  color: var(--faint);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.lede {
  color: var(--muted);
  margin: 0.2rem 0 1rem;
  max-width: 64ch;
}
.error {
  color: var(--bad);
  background: var(--bad-soft);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin: 0.8rem 0 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------- buttons */

button {
  cursor: pointer;
}
.button,
.ghost,
.pager button,
.filelist button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    background 0.15s,
    filter 0.15s;
}
.button:hover,
.ghost:hover,
.pager button:hover {
  border-color: var(--line-strong);
}
.button svg {
  width: 17px;
  height: 17px;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button.primary:hover {
  filter: brightness(1.07);
}
.button.subtle,
.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.big {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
}
button[disabled],
.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.linklike {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  text-align: left;
}
.linklike:hover {
  text-decoration: underline;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--faint);
}
.icon-button:hover {
  background: var(--sunken);
  color: var(--ink);
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.kbd {
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ shell */

.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}
body.no-run .app {
  grid-template-columns: minmax(0, 1fr);
}
body.no-run .rail,
body.no-run .tabs {
  display: none;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg {
  width: 16px;
  height: 16px;
}
.brand-name {
  font: 700 1.2rem/1 var(--display);
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.nav button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.nav button:hover {
  background: var(--sunken);
  color: var(--ink);
}
.nav button[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.count {
  margin-left: auto;
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
}
.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  font-size: 0.82rem;
  color: var(--faint);
}
.rail-foot a,
.rail-foot .linklike {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.82rem;
}
.rail-foot a:hover,
.rail-foot .linklike:hover {
  color: var(--ink);
}
.rail-foot .button {
  width: 100%;
}
.run-card {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.run-card b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

main {
  min-width: 0;
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 26px 32px 48px;
}
main > section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head .sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}
.page-head .sub.small {
  font-size: 0.82rem;
  color: var(--faint);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

/* ------------------------------------------------------------- 1. déposer */

.onboard {
  max-width: 640px;
  margin: 6vh auto 0;
}
.onboard h1 {
  font-size: 2.2rem;
  letter-spacing: -0.025em;
}
.brand-solo {
  padding: 0 0 6px;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 40px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.dropzone:hover,
.dropzone:focus,
.dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.dz-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 6px;
}
.dz-title {
  font-weight: 700;
  font-size: 1.05rem;
}
.dz-sub {
  color: var(--muted);
  font-size: 0.9rem;
}
.filelist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.filelist:empty {
  display: none;
}
.filelist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.filelist li:last-child {
  border-bottom: 0;
}
.filelist .fname {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filelist .fdetail {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.filelist button {
  padding: 0.25rem 0.55rem;
  font-weight: 500;
  color: var(--muted);
}
.filelist.locked button {
  visibility: hidden;
}
.onboard.busy .dropzone,
.onboard.busy #btnAnalyze {
  display: none;
}
.state {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px dashed var(--line-strong);
}
.state.done {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
}
.state.run {
  border: 2px solid var(--accent);
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}
.state.file {
  border: 0;
  background: var(--sunken);
  color: var(--muted);
}
.state svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--sunken);
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.4s ease;
}
.promise {
  margin: 0;
  color: var(--faint);
  font-size: 0.82rem;
  text-align: center;
}

/* ----------------------------------------------------------- 2. questions */

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  max-width: 920px;
}
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.review-card .bar {
  margin: 10px 0 18px;
}
.review-kind {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--warn);
}
.review-card h2 {
  font-size: 1.45rem;
  margin: 4px 0 8px;
}
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.review-actions .button {
  padding: 0.7rem 1.1rem;
}
.review-actions .button.big {
  width: auto;
  font-size: 0.95rem;
}
.review-actions .button.ghost {
  margin-left: auto;
  color: var(--muted);
}
.review-actions .kbd {
  color: inherit;
  border-color: currentColor;
  opacity: 0.7;
}
.review-actions .count {
  margin-left: 4px;
}
.bulk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.bulk-row span {
  flex: 1 1 220px;
}
.button.bulk {
  border-style: dashed;
  color: var(--accent);
  padding: 0.45rem 0.8rem;
}
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem;
}
table.compare th,
table.compare td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
}
table.compare thead th {
  background: var(--sunken);
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
table.compare tbody th {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  width: 130px;
}
table.compare .pill {
  text-transform: none;
  letter-spacing: 0;
}
#reviewBody h2 {
  font-size: 1rem;
  margin: 1.4rem 0 0.4rem;
}
table.compare tr:last-child > * {
  border-bottom: 0;
}
table.compare tr.alike td {
  background: var(--accent-soft);
}
table.compare .pill {
  margin-left: 4px;
}
.proof-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
figure.proof {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
figure.proof figcaption {
  padding: 6px 10px;
  background: var(--sunken);
}
.cropwrap {
  overflow-x: auto;
  background: #fff;
}
img.crop {
  display: block;
  max-width: none;
}
.change {
  font-size: 1.05rem;
  margin: 8px 0;
}
.change s {
  color: var(--bad);
}
.examples,
.example {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ------------------------------------------------------------- 3. carnet */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  margin-right: -1px;
}
.stat .label {
  font-size: 0.8rem;
  color: var(--muted);
}
.stat .value {
  font: 700 1.6rem/1.15 var(--display);
  letter-spacing: -0.02em;
}
.stat .hint {
  font-size: 0.8rem;
  color: var(--faint);
}
.stat.attention .value {
  color: var(--warn);
}
.stat .linklike {
  font-size: 0.8rem;
}
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.banner span {
  flex: 1;
}
.banner.warn {
  background: var(--warn-soft);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--warn) 25%, transparent);
}
.banner.info {
  background: var(--info-soft);
}
.banner.bad {
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 25%, transparent);
}
.viewbar {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.search:focus-within {
  border-color: var(--accent);
}
.search svg {
  width: 17px;
  height: 17px;
  color: var(--faint);
  flex: none;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  height: 100%;
}
select {
  height: 40px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a948e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 8px center / 16px;
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.87rem;
}
.chip:hover {
  border-color: var(--line-strong);
}
.chip[aria-pressed="true"],
.chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.chip input {
  accent-color: var(--accent);
  margin: 0;
}
.filters .result {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.8rem;
}
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card .tablewrap {
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
#customerTable tbody tr {
  cursor: pointer;
}
#customerTable tbody tr:hover td {
  background: var(--sunken);
}
#customerTable tbody tr[aria-selected="true"] td {
  background: var(--accent-soft);
}
#customerTable th {
  position: sticky;
  top: 0;
  z-index: 1;
}
#customerTable td {
  max-width: 320px;
}
#customerTable .num {
  text-align: right;
  white-space: nowrap;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--sunken);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.who .name {
  font-weight: 600;
}
.line2 {
  display: block;
  font-size: 0.8rem;
  color: var(--faint);
}
.phone {
  font-weight: 500;
  white-space: nowrap;
}
.none {
  color: var(--faint);
}
.place b {
  font-weight: 500;
}
.amount {
  font-weight: 600;
}
.pill,
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--sunken);
  color: var(--muted);
  vertical-align: 1px;
  white-space: nowrap;
}
.tag {
  margin-left: 6px;
}
.tag.mobile,
.pill.ok {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill.review {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill.blocking {
  background: var(--bad-soft);
  color: var(--bad);
}
.pill.info {
  background: var(--info-soft);
  color: var(--info);
}
.who .pill {
  margin-left: 6px;
}
.cards {
  display: none;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}
.pager:empty {
  display: none;
}
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------------ the fiche */

.drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  width: var(--panel);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  animation: panel-in 0.18s ease-out;
}
@keyframes panel-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
}
.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 14px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.drawer-head strong {
  flex: 1;
  font: 700 1.15rem/1.2 var(--display);
  letter-spacing: -0.01em;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
  overscroll-behavior: contain;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(10, 16, 13, 0.35);
}
.fiche-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.fiche-actions .button {
  padding: 0.6rem 0.6rem;
}
.kv {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.why {
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  background: var(--warn-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.why h2 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--warn);
}
.why p {
  margin: 0 0 8px;
  font-size: 0.88rem;
}
ul.remarks {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
ul.remarks li {
  margin: 4px 0;
}
details.details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
details.details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
details.details[open] summary {
  margin-bottom: 10px;
}
.dupe {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
}
.dupe-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.dupe-why {
  color: var(--muted);
  font-size: 0.85rem;
}
.dupe table {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- dialogs */

.sheet {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  width: min(460px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-panel);
}
.sheet::backdrop {
  background: rgba(10, 16, 13, 0.4);
}
.sheet form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet strong {
  font: 700 1.15rem/1.2 var(--display);
}
.sheet textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  resize: vertical;
}
#splitChoice {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#splitChoice label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
#splitChoice label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
#splitChoice input {
  accent-color: var(--accent);
}
.sheet-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  animation: toast-in 0.2s ease-out;
}
@keyframes toast-in {
  from {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* -------------------------------------------------------------------- map */

.map-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mapcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sunken);
}
#map {
  height: min(68vh, 720px);
  min-height: 360px;
}
.mapcard {
  position: relative;
}
.mapcard.loading::after {
  content: "Préparation de la carte…";
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  background: color-mix(in srgb, var(--sunken) 85%, transparent);
}
#mapDept:empty {
  display: none;
}
.map-note {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.map-note .legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-note .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.map-note .dot.exact {
  background: var(--accent);
}
.map-note .dot.street {
  background: var(--surface);
}
.map-note .dot.town {
  border-color: var(--faint);
  border-style: dashed;
  background: var(--surface);
}
#unplaced {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
#unplaced li {
  margin: 4px 0;
}
.leaflet-container {
  font: inherit;
  background: var(--sunken);
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
}
.leaflet-popup-content .button {
  margin-top: 8px;
}
.map-fiche {
  cursor: pointer;
}

/* ---------------------------------------------------------------- fichiers */

.verdict p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}
.verdict p:first-child {
  margin: 0;
  color: var(--ink);
  font: 700 1.1rem/1.3 var(--display);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.kpi .n {
  font: 700 1.5rem/1.15 var(--display);
}
.kpi .l {
  color: var(--muted);
  font-size: 0.82rem;
}
.kpi.good .n {
  color: var(--accent);
}
.kpi.warn .n {
  color: var(--warn);
}
.kpi.bad .n {
  color: var(--bad);
}
.panel-intro {
  color: var(--muted);
  margin-bottom: 8px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.barrow {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}
.barrow .track {
  height: 8px;
  border-radius: 999px;
  background: var(--sunken);
  overflow: hidden;
}
.barrow .lvl {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.barrow .val {
  color: var(--muted);
  white-space: nowrap;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips .chip b {
  color: var(--ink);
}
.note {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sunken);
  font-size: 0.88rem;
  margin: 8px 0;
}
.reading-alert {
  border-color: color-mix(in srgb, var(--bad) 30%, transparent);
  background: var(--bad-soft);
}
.reading-alert h2 {
  color: var(--bad);
}
.reading-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}
.reading-alert li {
  margin: 4px 0;
}
.reading-alert .who {
  display: inline;
  font-weight: 700;
}
.reading-alert .sev-blocking::marker {
  color: var(--bad);
}
.reading-alert .sev-warning::marker {
  color: var(--warn);
}
details.health {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
details.health:last-child {
  border-bottom: 0;
}
details.health summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-wrap: wrap;
}
details.health .badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--sunken);
}
details.health.sound .badge {
  background: var(--accent-soft);
  color: var(--accent);
}
details.health.localised .badge {
  background: var(--warn-soft);
  color: var(--warn);
}
details.health.corrupted .badge {
  background: var(--bad-soft);
  color: var(--bad);
}
details.health.export .badge {
  background: var(--info-soft);
  color: var(--info);
}
details.health ul.reasons,
ul.discarded {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
details.health h3 {
  margin-top: 0.8rem;
}
details.ledger {
  margin: 8px 0;
}
details.ledger summary {
  cursor: pointer;
  font-weight: 600;
}
ul.discarded .src {
  display: block;
}

/* ------------------------------------------------------------ privacy page */

.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.privacy h1 {
  margin-bottom: 0.6rem;
}
.privacy h2 {
  margin-top: 1.6rem;
}
.privacy li {
  margin: 6px 0;
}

/* ------------------------------------------------------------ wide screens */

@media (min-width: 1180px) {
  /* the fiche pushes the list aside, but only while the list keeps its room:
     never narrower than --list-min — past that, the fiche lies over its edge.
     No dimming: another row opens another fiche */
  body.panel-open main {
    --push: min(
      calc(var(--panel) + 16px),
      max(0px, calc(100vw - var(--rail) - var(--list-min) - 64px))
    );
    width: calc(100% - var(--push));
    margin-right: var(--push);
  }
  body.panel-open .scrim {
    display: none;
  }
}
@media (min-width: 1180px) and (max-width: 1599px) {
  /* a laptop screen: while a fiche is open, the list keeps who, how to reach,
     where and the amount — the other columns come back when it closes */
  body.panel-open #customerTable .extra {
    display: none;
  }
}

/* ----------------------------------------------------------------- phones */

.tabs {
  display: none;
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    display: none;
  }
  main {
    padding: 18px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.no-run main {
    padding-bottom: 32px;
  }
  h1 {
    font-size: 1.45rem;
  }
  .onboard {
    margin-top: 2vh;
  }
  .onboard h1 {
    font-size: 1.75rem;
  }
  .page-head {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .page-head #btnDownload span {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-bottom: 1px solid var(--line);
    margin-bottom: -1px;
  }
  .stat .value {
    font-size: 1.35rem;
  }
  .viewbar {
    flex-wrap: wrap;
  }
  .viewbar .search {
    flex: 1 1 100%;
  }
  .viewbar select {
    flex: 1;
  }
  .kbd {
    display: none;
  }
  .tablewrap#customerTableWrap {
    display: none;
  }
  .cards {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }
  .ccard {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
    width: 100%;
  }
  .ccard:last-child {
    border-bottom: 0;
  }
  .ccard .avatar {
    width: 36px;
    height: 36px;
  }
  .ccard-top {
    font-weight: 600;
    display: block;
  }
  .ccard .line2 {
    font-size: 0.85rem;
    color: var(--muted);
  }
  .ccard .end {
    text-align: right;
    font-size: 0.85rem;
  }
  .review-card {
    padding: 16px 14px 18px;
    border-radius: 14px;
  }
  .review-card h2 {
    font-size: 1.2rem;
  }
  .review-actions .button,
  .review-actions .button.big {
    flex: 1 1 100%;
  }
  .review-actions .button.ghost {
    margin: 0;
  }
  .review-actions .kbd {
    display: none;
  }
  table.compare tbody th {
    width: 84px;
  }
  .drawer {
    top: 8vh;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    animation: sheet-in 0.2s ease-out;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @keyframes sheet-in {
    from {
      transform: translateY(24px);
      opacity: 0;
    }
  }
  .kv {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  #map {
    height: 62vh;
  }
  .barrow {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .barrow .track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabs button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
  }
  .tabs button svg {
    width: 22px;
    height: 22px;
  }
  .tabs button[aria-current="page"] {
    color: var(--accent);
  }
  .tabs .count {
    position: absolute;
    top: 0;
    left: calc(50% + 6px);
    margin: 0;
    min-width: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 17px;
  }
}

/* the clusters of the map in the colours of the page, not the library's traffic lights */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--accent);
  color: var(--accent-ink);
  font: 700 12px/30px var(--ui);
}
.marker-cluster-large div {
  background-color: color-mix(in srgb, var(--accent) 80%, var(--ink));
}

/* a value the file got wrong, corrected on the fiche */
.fix {
  border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
  background: var(--bad-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.fix p {
  margin: 0 0 8px;
}
.fix-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fix-form input {
  flex: 1 1 160px;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.fix-form input:focus {
  border-color: var(--accent);
  outline: none;
}
.fix-form .error {
  flex-basis: 100%;
  margin: 0;
}

/* one choice among a few: the phone filter */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  flex-wrap: wrap;
}
.seg-label {
  padding: 0 8px 0 10px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
}
.seg {
  border: 0;
  background: none;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.87rem;
}
.seg:hover {
  color: var(--ink);
}
.seg[aria-checked="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Fichiers: what became of the lines, then one row per file */
.flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-title {
  margin: 0;
  font: 700 1.3rem/1.3 var(--display);
  letter-spacing: -0.015em;
}
.flow-title .arrow {
  color: var(--faint);
  margin: 0 4px;
}
.flow-bar {
  display: flex;
  gap: 3px;
  height: 14px;
}
.flow-bar span {
  flex-basis: 0;
  min-width: 4px;
  border-radius: 4px;
}
.seg-customers {
  background: var(--accent);
}
.seg-joined {
  background: color-mix(in srgb, var(--accent) 40%, var(--surface));
}
.seg-verify {
  background: var(--warn);
}
.seg-discarded {
  background: var(--line-strong);
}
.flow-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
}
.flow-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.flow-legend b {
  font-weight: 700;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.flow-facts {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.flow-ok {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}
.filerows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.filerow {
  border-bottom: 1px solid var(--line);
}
.filerow:last-child {
  border-bottom: 0;
}
.filerow summary {
  display: grid;
  grid-template-columns: 24px minmax(160px, 1.2fr) auto minmax(0, 2fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.filerow summary::-webkit-details-marker {
  display: none;
}
.filerow summary:hover {
  background: var(--sunken);
}
.filerow .fname {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.filerow .fdetail {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.level {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.level.sound {
  background: var(--accent-soft);
  color: var(--accent);
}
.level.localised {
  background: var(--warn-soft);
  color: var(--warn);
}
.level.corrupted {
  background: var(--bad-soft);
  color: var(--bad);
}
.level.export {
  background: var(--info-soft);
  color: var(--info);
}
.fnums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: flex-end;
  font-size: 0.85rem;
  color: var(--muted);
}
.fnum b {
  color: var(--ink);
  font-weight: 700;
}
.fnum.warn b {
  color: var(--warn);
}
.chev {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.15s;
}
.filerow[open] .chev {
  transform: rotate(90deg);
}
.filebody {
  padding: 4px 16px 16px 54px;
  font-size: 0.9rem;
}
.filebody h3 {
  font-size: 0.9rem;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
details.tech summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
details.tech[open] summary {
  margin-bottom: 12px;
}
details.tech p {
  margin: 0.3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .filerow summary {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
  }
  .filerow .level {
    grid-column: 2;
    grid-row: 2;
  }
  .filerow .fnums {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-start;
  }
  .filerow .chev {
    grid-column: 3;
    grid-row: 1;
  }
  .filebody {
    padding-left: 16px;
  }
}

.filebody ul.discarded .src {
  display: inline;
  margin-right: 8px;
}

.stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (min-width: 861px) {
  .stat:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
@media (max-width: 860px) {
  .wide-only,
  .seg-label {
    display: none;
  }
  .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 1 1 100%;
    border-radius: 12px;
  }
  .seg {
    border-radius: 9px;
    padding: 6px 4px;
  }
  .flow-legend {
    flex-direction: column;
    gap: 6px;
  }
  .flow-legend li {
    display: grid;
    grid-template-columns: 10px 1fr auto auto;
    gap: 8px;
  }
}

/* the manager's note on a fiche, and its line in the list */
.note-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}
.note-box label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.note-box textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  resize: vertical;
  font-size: 0.92rem;
}
.note-box textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.note-state {
  min-height: 1em;
  font-size: 0.78rem;
  color: var(--faint);
}
.note-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-style: normal;
}
.note-line svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ------------------------------------------------------------- account bar */

.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.account-name {
  margin-right: auto;
  font-weight: 600;
  color: var(--ink);
}
.account-bar a,
.account-bar .linklike {
  color: var(--muted);
  font-weight: 500;
}
.account-bar a:hover,
.account-bar .linklike:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------- mes carnets */

.my-carnets {
  margin: 8px 0 28px;
}
.my-carnets h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.carnet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.carnet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
}
.carnet-row + .carnet-row {
  border-top: 1px solid var(--line);
}
.carnet-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
}
.carnet-open:hover:not([disabled]) {
  background: var(--sunken);
}
.carnet-open[disabled] {
  cursor: default;
}
.carnet-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.carnet-facts {
  font-size: 0.85rem;
  color: var(--muted);
}
.carnet-row .icon-button svg {
  width: 18px;
  height: 18px;
}
.carnet-row.confirming .icon-button {
  color: var(--bad);
  background: var(--bad-soft);
}
.confirm-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bad);
}

/* an admin reading someone's carnet: nothing that changes it is offered */
body.read-only [data-nav="review"],
body.read-only #pendingBanner,
body.read-only #btnNew,
body.read-only .note-box,
body.read-only .fix-form {
  display: none !important;
}

/* ---------------------------------------------------- adding files to a carnet */

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.adding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .page-head #btnAddFiles span {
    display: none;
  }
  .head-actions {
    flex-wrap: nowrap;
  }
}
