:root {
  --bg: #1c1f22;
  --surface: #25292d;
  --surface-2: #2d3237;
  --surface-3: #363c42;
  --border: #3b4248;
  --text: #e8ebed;
  --muted: #9ba4ac;
  --green: #9ad94f;          /* vert pomme */
  --green-strong: #86c63b;
  --green-soft: rgba(154, 217, 79, .14);
  --danger: #ef6a5f;
  --danger-soft: rgba(239, 106, 95, .14);
  --warn: #e7b450;
  --warn-soft: rgba(231, 180, 80, .15);
  --info: #6fb6e8;
  --info-soft: rgba(111, 182, 232, .15);
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
small, .muted { color: var(--muted); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* ---------- Boutons & formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #18200f; }
.btn.primary:hover { background: var(--green-strong); }
.btn.danger { background: transparent; border-color: rgba(239, 106, 95, .5); color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { width: auto; margin-top: 3px; accent-color: var(--green); }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; font-size: 14px; }
.form-error:empty { display: none; }

/* ---------- Page d'accueil / connexion ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  background:
    radial-gradient(circle at 20% 15%, rgba(154, 217, 79, .22), transparent 45%),
    linear-gradient(160deg, #2a2f34, #1a1d20);
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border);
}
.auth-hero h1 { font-size: 40px; max-width: 14ch; margin-top: 40px; }
.auth-hero h1 span { color: var(--green); }
.auth-hero p { color: var(--muted); max-width: 42ch; font-size: 16px; }
.auth-hero ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.auth-hero li { display: flex; gap: 10px; align-items: center; color: var(--text); }
.auth-hero li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 560px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 22px; }
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; margin-bottom: 24px; border: 1px solid var(--border); }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active { background: var(--surface-3); color: var(--text); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .2px; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--green); font-weight: 800; }

/* ---------- Layout appli ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh;
}
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--green-soft); color: var(--green); }
.sidebar .count { background: var(--green); color: #18200f; border-radius: 99px; font-size: 11px; padding: 1px 8px; font-weight: 800; }
.sidebar .me { margin-top: auto; padding: 12px; background: var(--surface-2); border-radius: 10px; font-size: 13px; }
.sidebar .me b { display: block; font-size: 14px; }
.sidebar .me .btn { margin-top: 10px; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.mobile-top { display: none; }

/* ---------- Composants ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card h2 { font-size: 16px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: block; color: var(--text); }
a.stat:hover { border-color: var(--green); text-decoration: none; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat b { display: block; font-size: 28px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat.accent { background: linear-gradient(140deg, rgba(154, 217, 79, .2), var(--surface) 70%); border-color: rgba(154, 217, 79, .4); }
.stat.accent b { color: var(--green); }

.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subtabs a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 600; }
.subtabs a:hover { color: var(--text); text-decoration: none; }
.subtabs a.active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.subtabs a i { font-style: normal; opacity: .7; margin-left: 4px; }

.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mission { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mission:hover { border-color: #4a5259; }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-size: 20px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.mission h3 { font-size: 16px; }
.mission h3 small { font-weight: 500; margin-left: 6px; font-size: 13px; }
.route { display: grid; gap: 8px; position: relative; padding-left: 20px; }
.route::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.route div { position: relative; }
.route div::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--green); background: var(--surface); }
.route div.end::before { background: var(--green); }
.route b { display: block; font-size: 14px; }
.route small { display: block; font-size: 13px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.notes { margin: 0; font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; }
.m-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.m-actions:empty { display: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-open { background: var(--green-soft); color: var(--green); }
.s-assigned { background: var(--info-soft); color: var(--info); }
.s-delivered { background: var(--warn-soft); color: var(--warn); }
.s-completed { background: rgba(255, 255, 255, .08); color: #cfd5da; }
.s-cancelled { background: var(--danger-soft); color: var(--danger); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
tfoot td { font-weight: 800; background: var(--surface-2); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.person-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; flex: none; }
.person dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.person dt { color: var(--muted); }
.person dd { margin: 0; word-break: break-word; }
.person blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--green); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.person .m-actions { margin-top: auto; }

.summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; }
.toolbar-sep { flex: 1; }
td .actions a.btn { flex: 1 1 auto; }

/* ---------- Modale & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 12, 14, .7); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow); }
.modal.sm { max-width: 440px; }
.modal header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal header h2 { font-size: 18px; }
.modal .body { padding: 20px 22px; }
.modal .body p { margin: 0 0 12px; color: var(--muted); }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--surface-3); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 9px; box-shadow: var(--shadow); max-width: 360px; animation: slide .2s; font-size: 14px; }
.toast.error { border-left-color: var(--danger); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } }

/* ---------- État des lieux ---------- */
.modal.lg { max-width: 840px; }
.sec { font-size: 15px; margin: 22px 0 10px; color: var(--green); }
.small-hint { font-size: 13px; margin-top: -4px !important; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; margin-bottom: 14px; }
.slot {
  position: relative; aspect-ratio: 4 / 3; margin: 0; border: 2px dashed var(--border); border-radius: 10px;
  background: var(--bg); cursor: pointer; overflow: hidden; color: var(--muted);
}
.slot:hover { border-color: var(--green); }
.slot.filled { border-style: solid; border-color: var(--green); }
.slot-img { position: absolute; inset: 0; display: grid; place-items: center; }
.slot-img img { width: 100%; height: 100%; object-fit: cover; }
.slot .plus { font-size: 30px; font-weight: 300; color: var(--muted); margin-top: -18px; }
.slot-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 12px; font-weight: 700;
  background: rgba(20, 23, 25, .85); color: var(--text); text-align: center;
}
.slot.filled .slot-label { background: rgba(134, 198, 59, .92); color: #18200f; }
.slot .rm {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 12px;
}
.radio-row { display: flex; gap: 10px 24px; flex-wrap: wrap; }
.radio-row .check { color: var(--text); margin: 0; }
.hint { background: var(--warn-soft); color: var(--warn) !important; padding: 10px 12px; border-radius: 9px; font-size: 13px; }
.upload-status { margin-right: auto; align-self: center; font-size: 13px; color: var(--green); }
.insp { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; background: var(--bg); }
.insp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.insp-head h3 { font-size: 16px; }
.insp .notes { margin: 0; }
.notes.damage { background: var(--danger-soft); color: #f4b4ae; }
.notes.ok { background: var(--green-soft); color: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.gallery a.dmg { border-color: var(--danger); }
.gallery a:hover { border-color: var(--green); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px; font-weight: 700; background: rgba(20, 23, 25, .8); color: var(--text); text-align: center; }

/* ---------- Mobile / PWA ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
button, a, label, select { touch-action: manipulation; }
.steps { padding-left: 20px; margin: 0 0 12px; color: var(--muted); display: grid; gap: 6px; }
.steps b { color: var(--text); }
.install-btn { margin-top: 8px; border-color: rgba(154, 217, 79, .45); color: var(--green); }
.menu-btn { width: 42px; height: 38px; padding: 0; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-scrim { display: none; }

.person.handled { opacity: .7; }
.person-head .badge { align-self: flex-start; }

/* Ebook */
.ebook {
  display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(120deg, rgba(154, 217, 79, .16), var(--surface) 65%); border: 1px solid rgba(154, 217, 79, .35);
  transition: border-color .15s, transform .1s;
}
.ebook:hover { text-decoration: none; border-color: var(--green); }
.ebook:active { transform: scale(.995); }
.ebook img { width: 84px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); background: var(--surface-2); }
.ebook-body { display: grid; gap: 3px; min-width: 0; }
.ebook-body small { color: var(--green); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ebook-body b { font-size: 16px; line-height: 1.3; }
.ebook-body p { margin: 0; color: var(--muted); font-size: 13px; }
.ebook-cta { margin-top: 6px; justify-self: start; background: var(--green); color: #18200f; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.ebook.compact img { width: 64px; }
.ebook.compact .ebook-body b { font-size: 15px; }
.sidebar nav a.nav-ebook { margin-top: 10px; border: 1px solid rgba(154, 217, 79, .35); color: var(--green); }
.sidebar nav a.nav-ebook span { font-size: 12px; }

/* Selfie & signatures */
.validate-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.slot.selfie { aspect-ratio: 3 / 4; }
.sig canvas { display: block; width: 100%; height: 170px; background: #fff; border-radius: 10px; border: 2px dashed var(--border); touch-action: none; cursor: crosshair; }
.sig.client canvas { height: 150px; }
.sig.signed canvas { border-style: solid; border-color: var(--green); }
.sig-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.sig.client { margin-bottom: 14px; }
.sig.client .field { margin-bottom: 8px; }
.validation { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 8px; }
.validation h4 { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.gallery a.sigimg { background: #fff; }
.gallery a.sigimg img { object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; }
  .sidebar { height: 100dvh; padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .sidebar nav a { padding: 12px 14px; font-size: 15px; }
  .mobile-top { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
  .main { padding-bottom: calc(50px + env(safe-area-inset-bottom)); padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
  /* Évite le zoom automatique d'iOS sur les champs */
  input, select, textarea { font-size: 16px; }
  .btn.sm { padding: 8px 12px; }
  #toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .modal footer { flex-wrap: wrap; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .page-head > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
  .auth-panel { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .auth-hero { padding-top: calc(28px + env(safe-area-inset-top)); }
  /* Tableaux → cartes */
  .table-wrap:has(.rtable) { background: none; border: 0; overflow: visible; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tfoot, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
  .rtable td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .rtable td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  .rtable td.act { justify-content: stretch; padding-top: 8px; }
  .rtable td.act::before { content: none; }
  .rtable td.act .btn { width: 100%; }
  .rtable tfoot tr { background: var(--green-soft); border-color: rgba(154, 217, 79, .4); }
  .rtable tfoot td:empty, .rtable tfoot td[colspan] { display: none; }
  .rtable tfoot td { color: var(--green); font-size: 16px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .auth-hero h1 { font-size: 28px; margin-top: 20px; }
  .auth-hero ul { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .mobile-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .main { padding: 20px 16px 50px; }
  .missions, .people { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .slots, .gallery { grid-template-columns: repeat(2, 1fr); }
  .validate-row { grid-template-columns: 1fr; }
  .slot.selfie { width: 150px; }
  .modal-backdrop:has(.modal.lg) { padding: 0; }
  .modal.lg { max-height: 100dvh; border-radius: 0; height: 100%; }
  .modal.lg header { padding-top: calc(18px + env(safe-area-inset-top)); }
  .summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary .stat:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 22px; }
  .page-head h1 { font-size: 22px; }
}
