/* ------------------------------------------------------------------ base */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --muted: #666666;
  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --soft: #f5f5f5;
  --off: #8c8c8c;
  --ok: #0b7a4a;      --ok-bg: #e5f4eb;
  --warn: #8a5a00;    --warn-bg: #fff2d1;
  --bad: #b3261e;     --bad-bg: #fdeceb;
  --info-bg: #f2f2f2;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-bottom: 72px; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-top: 40px; }
h2 { font-size: 1.35rem; margin-top: 2.2em; }
h3 { font-size: 1.05rem; margin-top: 1.6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 600px; }
.wrap.narrow-wide { max-width: 820px; }
.wrap.prose { max-width: 740px; }
.prose h2 { margin-top: 1.8em; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
.lead-sm { font-size: 1.1rem; color: var(--ink-2); }
.back { display: inline-block; margin-top: 24px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hbar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; font-size: 1.05rem; }
.brand img { border-radius: 8px; object-fit: contain; }
.nav { display: none; }
.nav a, .linklike { white-space: nowrap; text-decoration: none; color: var(--ink-2); font: inherit; font-weight: 500; padding: 8px 4px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .linklike:hover { color: var(--ink); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--ink); }
.nav a.btn { color: var(--bg); padding: 0 14px; }
.nav a.btn:hover { text-decoration: none; color: var(--bg); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.count-quiet { background: var(--soft); color: var(--ink-2); }
.menu-btn, .theme-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; transition: background .15s, border-color .15s; position: relative; }
.menu-btn:hover, .theme-btn:hover { border-color: var(--ink); }
.menu-ico { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-ico::before { top: -6px; }
.menu-ico::after { top: 6px; }
.theme-btn .ico-sun { display: none; }
[data-theme="dark"] .theme-btn .ico-sun { display: block; }
[data-theme="dark"] .theme-btn .ico-moon { display: none; }
.theme-btn .ico-lock { position: absolute; right: -2px; bottom: -2px; background: var(--bg); color: var(--ink); border-radius: 50%; padding: 2px; width: 17px; height: 17px; border: 1px solid var(--line-strong); }
.nav.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
.nav.is-open a, .nav.is-open .linklike { padding: 12px 0; width: 100%; text-align: left; }
.nav.is-open a.btn { width: auto; padding: 0 18px; margin-top: 6px; }
.hbar.wrap { max-width: 1320px; }
@media (min-width: 1080px) {
  body:not(.is-admin) .nav { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-left: auto; position: static; padding: 0; border: 0; background: none; width: auto; }
  body:not(.is-admin) .nav a, body:not(.is-admin) .nav .linklike { width: auto; padding: 8px 4px; }
  body:not(.is-admin) .nav a.btn { padding: 0 14px; margin: 0; }
  body:not(.is-admin) .menu-btn { display: none; }
  body:not(.is-admin) .brand { margin-right: 0; }
  body:not(.is-admin) .hbar { gap: 20px; }
}
@media (min-width: 1260px) {
  body.is-admin .nav { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-left: auto; position: static; padding: 0; border: 0; background: none; width: auto; }
  body.is-admin .nav a, body.is-admin .nav .linklike { width: auto; padding: 8px 4px; }
  body.is-admin .menu-btn { display: none; }
  body.is-admin .brand { margin-right: 0; }
  body.is-admin .hbar { gap: 20px; }
}

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 1rem/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger-outline { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger-outline:hover { background: var(--bad); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; align-items: center; }
.actions-sm { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ alertes */
.flashes { margin-top: 20px; display: grid; gap: 10px; }
.alert { padding: 14px 18px; border-radius: 12px; background: var(--info-bg); border: 1px solid var(--line); margin: 16px 0; max-width: 780px; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.alert-error { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.alert a { color: inherit; font-weight: 600; }

/* ------------------------------------------------------------------ pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }

/* ------------------------------------------------------------------ accueil */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-logo { border-radius: 16px; object-fit: contain; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.9rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 .45em; max-width: 12.5ch; font-weight: 750; }
.hero .actions { margin-top: 32px; gap: 10px; }
.hero .btn-lg { padding: 0 20px; font-size: 1rem; }
.route { margin: 0; }
.route svg { width: 100%; height: auto; display: block; overflow: visible; }
.route text { font: 600 14px var(--font); fill: var(--ink); }
.route-ghost { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: .006 .02; stroke-linecap: round; }
.route-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .35s cubic-bezier(.65, 0, .35, 1) forwards; }
.route-start circle { fill: var(--ink); }
.route-end path { fill: var(--ink); }
.route-end circle { fill: var(--bg); }
.route-end { opacity: 0; animation: arrive .5s 2.5s ease-out forwards; }
.route-price rect { fill: var(--ink); }
.route-price text { fill: var(--bg); font-size: 15px; }
.route-price { opacity: 0; animation: arrive .5s 1.3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2em; }
.split { display: grid; gap: 28px; }
.split > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.split h3 { margin-top: 0; }
@media (min-width: 800px) { .split { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(step); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.price-band { display: grid; gap: 24px; align-items: center; }
.price-band h2 { margin-bottom: .5em; }
.price-big { font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 750; letter-spacing: -0.06em; line-height: .9; margin: 0; }
@media (min-width: 800px) { .price-band { grid-template-columns: auto 1fr; gap: 64px; } }

/* ------------------------------------------------------------------ formulaires */
.form { display: grid; gap: 18px; margin: 24px 0; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
fieldset p { margin: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 4px; letter-spacing: -0.01em; }
.field { display: grid; gap: 6px; }
.field label, .field > span, label.field > span { font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
input[type="file"] { font: inherit; }
.hint { color: var(--muted); font-size: .92rem; margin: 0; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; background: transparent; font: 600 .85rem var(--font); color: var(--ink-2); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { background: var(--soft); }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline-form .field { min-width: 200px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.page-head h1 { margin-bottom: .2em; }

/* ------------------------------------------------------------------ listes, tableaux */
.cols { display: grid; gap: 40px; }
@media (min-width: 960px) { .cols { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; } }
.cols h2:first-child, .cols > div > h2:first-child, aside > h2:first-child { margin-top: 1.4em; }
.list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.row-link { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 4px; text-decoration: none; transition: background .15s; }
.row-link:hover { background: var(--soft); }
.unread .row-link { font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }
.empty { color: var(--muted); padding: 20px 0; }
.facts { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0 0 8px; }
.facts dt { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.facts dd { margin: 0; }
.recap { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.recap dt, .recap dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.recap dt { color: var(--muted); padding-right: 24px; }
@media (max-width: 560px) { .recap { grid-template-columns: 1fr; } .recap dt { border: 0; padding-bottom: 0; } }
.chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.chip-pending, .chip-a-pending { background: var(--warn-bg); color: var(--warn); }
.chip-confirmed, .chip-done, .chip-a-accepted { background: var(--ok-bg); color: var(--ok); }
.chip-in_progress { background: var(--ink); color: var(--bg); }
.chip-cancelled, .chip-full { background: var(--soft); color: var(--muted); }
.chip-refused, .chip-a-refused, .chip-a-suspended { background: var(--bad-bg); color: var(--bad); }
.table-wrap { overflow-x: auto; margin: 8px 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .85rem; padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 16px 0; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 500; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 650; }
.search, .filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 16px 0; }
.search input { max-width: 320px; }
.filters label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.filters input, .filters select { min-height: 40px; padding: 6px 10px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 24px 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 24px; margin: 24px 0; }
.panel > h2:first-child { margin-top: 1em; }
.disclose { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 20px 0; }
.disclose summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.disclose[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }

/* ------------------------------------------------------------------ carte E.Leclerc */
.photo-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-hidden:focus-visible + * , .photo-buttons label:focus-within { outline: 3px solid var(--ink); }
.card-thumb { display: block; max-width: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.card-thumb img, .card-view img, .card-preview img { display: block; width: 100%; height: auto; }
.card-view { margin: 24px 0; max-width: 440px; }
.card-view a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.card-preview { max-width: 440px; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); display: grid; place-items: center; z-index: 200; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 1.6rem; cursor: pointer; background: #fff; color: #000; }

/* ------------------------------------------------------------------ réservation : calendrier et créneaux */
.book-grid { display: grid; gap: 40px; margin-top: 16px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 64px; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h2 { margin: 0; font-size: 1.2rem; }
.cal-head-wide { max-width: 520px; margin-top: 24px; }
.cal-nav { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 1.6rem; border: 1.5px solid var(--line-strong); }
.cal-nav:hover { border-color: var(--ink); }
.cal-nav.off { opacity: .3; }
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.cal td { padding: 0; }
.day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; border: 1.5px solid transparent; color: var(--off); transition: background .12s, color .12s, border-color .12s; }
.day:hover { border-color: var(--ink); text-decoration: none; }
.day-available { color: var(--ink); font-weight: 700; border-color: var(--line-strong); }
.day-full { background: var(--soft); color: var(--off); text-decoration: line-through; text-decoration-thickness: 1px; }
.day-closed, .day-none, .day-past { color: var(--off); }
.day.is-today { border-color: var(--ink); }
.day.is-selected { background: var(--ink); color: var(--bg); border-color: var(--ink); text-decoration: none; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; border: 1.5px solid var(--line-strong); }
.swatch-available { border-color: var(--ink); }
.swatch-full { background: var(--soft); border-color: var(--soft); }
.swatch-off { background: transparent; border-style: dashed; }
.slots-panel h2 { margin-top: 0; }
.note { background: var(--soft); padding: 12px 16px; border-radius: 10px; }
.slots { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; max-width: 560px; }
.slot { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--bg); transition: background .15s, color .15s, transform .15s; }
.slot-time { white-space: nowrap; font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.slot-meta { margin-left: auto; font-size: .92rem; text-align: right; }
.slot-available:hover { background: var(--ink); color: var(--bg); text-decoration: none; transform: translateX(3px); }
.slot-off { border-color: var(--line); background: var(--soft); color: var(--off); cursor: not-allowed; user-select: none; }
.slot-off .slot-time { font-weight: 500; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; display: block; }
.pips i.on { background: currentColor; }
.distance { font-weight: 600; margin: 4px 0 0; }
.gps-result { margin: 10px 0 0; font-weight: 500; }
.gps-result.is-warn { color: var(--warn); }
.gps-result.is-ok { color: var(--ok); }

/* ------------------------------------------------------------------ admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 2px solid var(--ink); margin: 24px 0 8px; }
.stat { padding: 18px 20px 18px 0; display: grid; gap: 4px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 20px; }
@media (max-width: 640px) { .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.stat-n { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--ink-2); font-size: .92rem; }
.stat-s { color: var(--muted); font-size: .8rem; }
.chart { width: 100%; height: auto; max-width: 640px; }
.bar { fill: var(--ink); }
rect.bar { fill: var(--off); }
rect.bar-today { fill: var(--ink); }
.bar-n { font: 600 11px var(--font); fill: var(--ink); }
.bar-l { font: 500 10px var(--font); fill: var(--muted); }
.axis { stroke: var(--line-strong); stroke-width: 1; }
.bars { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 92px 1fr 28px; gap: 10px; align-items: center; font-size: .92rem; }
.bars-svg { width: 100%; height: 8px; }
.bars-bg { fill: var(--soft); }
.bars-fg { fill: var(--ink); }
.bars-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-admin { max-width: 880px; }
.cal-admin .day { aspect-ratio: auto; min-height: 76px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 8px 10px; }
.cal-admin .day-n { font-weight: 700; }
.cal-admin .day-meta { font-size: .8rem; font-weight: 500; }
.cal-admin .day-available { background: var(--bg); }
.cal-admin .long { display: none; }
@media (min-width: 700px) { .cal-admin .long { display: inline; } .cal-admin .short { display: none; } }
@media (max-width: 560px) { .cal-admin { border-spacing: 2px; } .cal-admin .day { min-height: 58px; padding: 6px; } }
.admin-slots { list-style: none; padding: 0; margin: 12px 0 32px; display: grid; gap: 10px; }
.aslot { border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px 18px; display: grid; gap: 10px; }
.aslot-full, .aslot-blocked, .aslot-closed, .aslot-past { border-color: var(--line); background: var(--soft); }
.aslot-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.aslot-clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .94rem; }
.aslot-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cap-form { display: inline-flex; gap: 6px; align-items: center; }
.cap-form input { width: 84px; min-height: 36px; padding: 4px 10px; }
.range-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.range-form label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; }
.range-form input { min-height: 40px; padding: 6px 10px; width: 110px; }
.range-row { padding: 12px 0; }
.week-row { border-top: 1px solid var(--line); padding: 8px 0 16px; }
.week-row h3 { margin: 12px 0 8px; }
.chips { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .92rem; }
.chips .x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink-2); }
.chips .x:hover { background: var(--ink); color: var(--bg); }
.logo-preview { border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .route-line { stroke-dashoffset: 0; }
  .route-end, .route-price { opacity: 1; }
}
@media print { .site-header, .site-footer, .nav, .actions { display: none; } }
