@font-face {
	font-family: Fuelero;
	src: local('Inter'), local('Arial');
	font-display: swap;
}
:root {
	font-family: Fuelero, system-ui, sans-serif;
	color: #16383b;
	background: #eaf0f2;
	font-size: 16px;
	--ink: #083f42;
	--lime: #b6f16a;
	--muted: #586b70;
	--line: #e1e8e9;
	--control-radius: 10px;
	--control-size: 38px;
	--control-shadow: 0 0 0 1px #0000000b, 0 2px 5px #00000017, 0 5px 16px #0000000c;
	--sheet-height: 0px;
	--sheet-ease: cubic-bezier(.32, .72, 0, 1);
	/* The browser's grey tap flash: controls show their own :active state instead. */
	-webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
/* A swipe past the first tab bounces; it never turns into the browser's back navigation. */
html, body { overscroll-behavior-x: none; }
/* No font inflation when the phone turns (mobile-native skill). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible { outline: 3px solid #296ddd; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
#map { position: fixed; inset: 0; }
.map-brand { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2; }
@media (min-width: 701px) and (max-width: 1000px) and (orientation: landscape), (min-width: 701px) and (max-width: 1000px) and (pointer: fine) { .panel-visible .map-brand { left: calc(50% + 112px); } }
.brand { display: flex; align-items: center; text-decoration: none; }
/* Logo : goutte à facettes + lettrage (logo/), avec un halo blanc pour rester lisible sur la carte */
.brand-logo { display: block; height: 36px; width: auto; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px #ffffffd0); }
.map-tools { position: fixed; z-index: 3; top: 16px; right: 16px; display: flex; align-items: flex-start; gap: 8px; }
.map-control {
	width: var(--control-size); height: var(--control-size); flex-shrink: 0;
	border-radius: var(--control-radius); background: white; color: var(--ink);
	box-shadow: var(--control-shadow); display: grid; place-items: center;
}
.map-control svg, .icon-button svg {
	width: 20px; height: 20px; fill: none; stroke: currentColor;
	stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* Press feedback for every control, whatever the motion preference. */
.map-control:active, .icon-button:active { background: #e3ecea; }
.route-calculate:active, .search-row button:active { background: #0f5a5c; }
.disclosure summary:active { opacity: .7; }
/* Touch screens keep :hover after a tap: hover styles stay with mice and trackpads, touch gets :active. */
@media (hover: hover) and (pointer: fine) {
	.map-control:hover, .icon-button:hover { background: #f1f5f4; }
	.place-menu button:hover, .search-button:hover, .search-option:hover { background: #edf3f2; }
	.ai-actions button:hover, .ai-suggest button:hover { background: #e3ecea; }
	.station-pill:hover { background: #d3e9e1; border-color: #9fcdbd; }
	.app-menu-item:hover { background: #f1f5f4; }
	.route-remove:hover, .route-handle:hover { background: #eef4f3; color: var(--ink); }
	.place-menu.is-place button[data-place=to]:hover { background: #0f5a5c; }
	.fuel-menu button:hover { background: #edf3f2; }
	.text-button:hover { text-decoration-color: currentColor; }
	.suggestions li:hover { background: #eef4f3; }
	.filter-chip:hover { background: #dcedc6; }
	.filter-chip:hover svg { opacity: 1; }
	.station:hover { background: #f4f8f7; }
	.legend-scale:hover .price-handle::before { transform: scaleX(1.25); }
	.price-distribution button:hover span { opacity: 1; }
	.price-filter-chip:hover svg { opacity: 1; }
	.maplibregl-ctrl-attrib-button:hover { background-color: #f1f5f4; }
}
.fuel-toggle { width: auto; min-width: 86px; padding: 0 10px; display: flex; gap: 7px; font-size: 13px; }
.fuel-toggle .chevron { width: 14px; height: 14px; margin-left: 1px; }
.fuel-toggle[aria-expanded=true] .chevron { transform: rotate(180deg); }
.fuel-switcher { position: relative; }
.fuel-menu {
	position: absolute; top: calc(100% + 8px); right: 0; padding: 5px;
	background: white; border-radius: 15px; box-shadow: var(--control-shadow);
	width: 140px; display: grid; gap: 2px;
}
.fuel-menu button { background: white; color: var(--ink); min-height: 38px; border-radius: 10px; padding: 0 10px; text-align: left; font-size: 14px; }
.fuel-menu button:active { background: #edf3f2; }
.fuel-menu button[aria-pressed=true] { background: var(--ink); color: white; font-weight: 650; }
.place-menu {
	position: fixed; z-index: 5; padding: 5px; min-width: 190px;
	background: white; border-radius: 15px; box-shadow: var(--control-shadow);
	display: grid; gap: 2px;
}
.place-menu[hidden] { display: none; }
/* The menu opens under the finger of a long press, which goes on: Android would select the word under it (« Prix »,
   Kenzo, 22/11). Nothing in the menu is text to copy; the address field of home stays editable. */
.place-menu, .maplibregl-canvas-container { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.place-menu input { user-select: text; -webkit-user-select: text; }
.place-menu-title { margin: 0; padding: 6px 12px 4px; max-width: 260px; font-size: 13px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-menu.is-place button[data-place=to] { background: var(--ink); color: white; font-weight: 650; }
.place-menu button { background: white; color: var(--ink); min-height: 38px; border-radius: 10px; padding: 0 12px; text-align: left; font-size: 14px; white-space: nowrap; }
.place-menu button:focus-visible { background: #edf3f2; }
.place-menu button:active { background: #e1ecea; }
.panel {
	position: fixed; top: 72px; left: 16px; bottom: 16px; width: 388px;
	max-width: calc(100vw - 32px); background: white; border-radius: 18px;
	box-shadow: var(--control-shadow); z-index: 2; display: flex;
	flex-direction: column; overflow: hidden;
}
.panel-content { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.sheet-handle { display: none; }
.panel-header { display: flex; align-items: center; border-bottom: 1px solid var(--line); flex-shrink: 0; padding-right: 7px; }
.tabs { padding: 7px 4px 7px 7px; display: flex; flex: 1; min-width: 0; gap: 0; }
.tabs button { flex: 1 1 auto; white-space: nowrap; padding: 11px 3px; border-radius: 10px; background: white; color: var(--muted); font-size: 13px; font-weight: 650; }
.tabs button[aria-pressed=true] { background: var(--ink); color: white; }
.tabs-pill { display: none; }
.icon-button {
	width: 36px; height: 36px; display: inline-grid; place-items: center;
	flex-shrink: 0; background: #edf3f2; color: var(--ink); border-radius: 9px;
	text-decoration: none;
}
.panel-pin { background: white; }
.panel-pin[aria-pressed=true] { background: #e9f4d9; }
.panel-pin[aria-pressed=true] svg { fill: var(--ink); stroke: var(--ink); }
/* Search bar (search.mjs, Kenzo 16/11): menu, field for places and stations, route arrow. The panel sits under it. */
.search-box {
	position: fixed; z-index: 3; top: 16px; left: 16px; width: 388px; max-width: calc(100vw - 32px); height: 48px;
	display: flex; align-items: center; gap: 2px; padding: 0 5px; background: white; border-radius: 14px;
	box-shadow: var(--control-shadow);
}
.search-brand { display: none; }
/* Fuelero menu (menu.mjs): a drawer from the left, the map dimmed beside it. */
.app-menu { margin: 0; padding: 0; border: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; background: transparent; color: var(--ink); overflow: hidden; }
.app-menu::backdrop { background: transparent; }
/* One position drives the sheet and this dimming (menu.mjs place): they never drift apart during a swipe. */
.app-menu-scrim { position: absolute; inset: 0; background: #083f4252; }
.app-menu-sheet { position: absolute; top: 0; left: 0; bottom: 0; width: min(330px, 86vw); display: flex; flex-direction: column; background: white; box-shadow: 8px 0 32px #083f4233;
	touch-action: pan-y; will-change: transform;
	padding: calc(14px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
.app-menu header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.app-menu header img { height: 30px; width: auto; }
.app-menu-close { width: 40px; height: 40px; border-radius: 10px; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; }
.app-menu nav { display: grid; gap: 2px; }
.app-menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 8px 10px; margin: 0; border-radius: 12px;
	background: transparent; color: var(--ink); text-align: left; text-decoration: none; font: inherit; font-weight: 400; cursor: pointer; }
.app-menu-item > svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: #0b7a5c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-menu-item > span { display: grid; gap: 1px; min-width: 0; flex: 1; }
.app-menu-item strong { font-size: 15px; font-weight: 650; }
.app-menu-item small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.app-menu-item:active { background: #eef4f3; }
.app-menu-lang select { width: auto; min-height: 36px; padding: 4px 8px; font-size: 14px; }
.app-menu-legal { margin: auto 10px 0; padding-top: 16px; color: var(--muted); }
.app-menu-legal a { color: var(--muted); }

/* A label, so the global label margin and weight are reset: they pushed the placeholder and the lens down (Kenzo, 16/11). */
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 100%; margin: 0; font-size: 15px; font-weight: 400; cursor: text; }
.search-icon { display: grid; color: var(--muted); }
.search-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; padding: 0; }
.search-field input:focus-visible { outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-button { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: transparent; color: var(--ink); }
.search-button:active { background: #e3ecea; }
.search-route { color: #0b7a5c; }
.search-route svg { width: 22px; height: 22px; }
.search-results {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, calc(100dvh - 90px)); overflow-y: auto;
	padding: 5px; background: white; border-radius: 14px; box-shadow: var(--control-shadow);
}
.search-option { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.search-option > svg { flex-shrink: 0; color: var(--muted); }
.search-option[data-kind=station] > svg { color: #0b7a5c; }
.search-option span { display: grid; min-width: 0; }
.search-option strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-option small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-option[aria-selected=true] { background: #edf3f2; }
.search-box svg .fill, .ai-panel svg .fill, .search-option svg .fill { fill: currentColor; stroke: none; }
.search-box svg .soft, .search-option svg .soft { opacity: .7; }
.search-ai { color: #b8860b; }
.search-ai[aria-expanded=true] { background: #fbf3dc; }
.search-option[data-kind=ask] > svg { color: #b8860b; }
.search-option[data-kind=ask] small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Assistant (assistant.mjs): a card under the search bar, over the panel on a computer, over the map on a phone. */
.ai-panel {
	position: fixed; z-index: 5; top: 72px; left: 16px; width: 388px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100dvh - 88px));
	display: flex; flex-direction: column; background: white; border-radius: 16px; box-shadow: 0 12px 40px #083f4233, var(--control-shadow);
	overflow: hidden; color: var(--ink);
}
.ai-panel header { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 16px; border-bottom: 1px solid var(--line); }
.ai-panel header strong { font-size: 15px; }
.ai-beta { font-size: 11px; font-weight: 650; color: #8a6508; background: #fbf3dc; border-radius: 6px; padding: 2px 6px; margin-right: auto; }
.ai-reset { background: transparent; color: var(--muted); font-size: 13px; padding: 6px 8px; border-radius: 8px; }
.ai-close { width: 34px; height: 34px; border-radius: 9px; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.ai-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-log:empty { display: none; }
.ai-turn { max-width: 92%; font-size: 14px; line-height: 1.45; }
.ai-turn p { margin: 0 0 6px; } .ai-turn p:last-child { margin-bottom: 0; }
.ai-turn ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-user { align-self: flex-end; background: var(--ink); color: white; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.ai-assistant { align-self: flex-start; }
.ai-error { align-self: flex-start; background: #fff0d3; padding: 8px 12px; border-radius: 12px; }
.ai-step { color: var(--muted); font-style: italic; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-actions button { background: #edf3f2; color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 13px; text-align: left; }
.ai-actions .ai-show { background: transparent; text-decoration: underline; padding-inline: 4px; }
.ai-suggest { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 0; }
.ai-suggest:empty { display: none; }
.ai-suggest button { background: #f5f8f7; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; text-align: left; font-size: 14px; }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 14px; }
.ai-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 15px; color: var(--ink); }
.ai-form button { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--ink); color: white; font-size: 18px; }
.ai-form.busy button { opacity: .4; pointer-events: none; }
/* Station pill inside a sentence (assistant.mjs): a rounded button that reads as an object, not a footnote. */
.station-pill {
	display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: baseline; margin: 1px 0;
	padding: 1px 8px 1px 6px; border-radius: 999px; background: #e6f2ee; color: var(--ink); border: 1px solid #c9e2da;
	font: inherit; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer;
}
.station-pill svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: #0b7a5c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.station-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-pill:active { background: #d3e9e1; }
/* Ring on the map around a station named elsewhere (app.js flashStation). MapLibre places the marker with its own
   transform: the ring is a pseudo-element, so that the animation does not move it to the corner of the map. */
.station-flash { width: 56px; height: 56px; pointer-events: none; }
.station-flash::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #0b7a5c; box-shadow: 0 0 0 4px #b6f16a99; }
@media (prefers-reduced-motion: no-preference) {
	.station-flash.is-on::before { animation: station-flash 900ms cubic-bezier(.2, 0, 0, 1) infinite; }
	@keyframes station-flash { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
}
.search-place { display: block; width: 34px; height: 40px; padding: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 2px 3px #0005); }
.search-place svg { width: 100%; height: 100%; fill: #e5484d; stroke: white; stroke-width: 1.4; }
.search-place svg circle { fill: white; stroke: none; }
.panel-body { display: flex; flex: 1; min-height: 0; flex-direction: column; }
/* Each tab and the station sheet scroll on their own; the tabs sit side by side in the strip. */
.view-strip { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.view-pane { flex: 0 0 100%; min-width: 0; }
.detail-pane { flex: 1; min-height: 0; }
/* Vertical containment only: a sideways scroll must reach the strip. */
.view-pane, .detail-pane { padding: 22px; overflow: hidden auto; scrollbar-gutter: stable; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #bbc9c7 transparent; }
:is(.view-pane, .detail-pane)::-webkit-scrollbar { width: 6px; }
:is(.view-pane, .detail-pane)::-webkit-scrollbar-track { background: transparent; margin-block: 14px; }
:is(.view-pane, .detail-pane)::-webkit-scrollbar-thumb { background: #bbc9c7; border: 1px solid white; border-radius: 8px; }
:is(.view-pane, .detail-pane)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
h1 { margin: 0 0 14px; font-size: 24px; letter-spacing: -.6px; line-height: 1.2; }
.muted { color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.small { font-size: 12px; line-height: 1.55; }
label { display: block; font-size: 13px; font-weight: 650; margin: 12px 0 7px; }
input, select { min-height: 42px; max-width: 100%; padding: 10px 12px; border: 1px solid #becdd0; border-radius: 9px; background: white; color: var(--ink); }
select { width: 100%; }
.search-row { display: flex; gap: 6px; }
.search-row input { width: 100%; min-width: 0; }
.search-row button { background: var(--ink); color: white; border-radius: 9px; width: 44px; font-size: 25px; flex-shrink: 0; }
.fuel-group { margin: 16px 0; }
.route-form { margin-top: 4px; }
.text-button { background: none; padding: 2px 0; color: var(--ink); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: #b9c9c7; text-underline-offset: 3px; }
.text-button:active { text-decoration-color: currentColor; }
.route-summary .muted { margin-bottom: 8px; }
.route-options { display: flex; align-items: center; gap: 10px; }
.route-gmaps { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 650; color: #0b7a5c; }
.route-gmaps::after { content: '↗'; }
.route-options label { margin: 0; font-weight: 500; font-size: 12px; }
.route-options input { width: 82px; min-height: 34px; padding: 6px 10px; }
.route-calculate { width: 100%; padding: 12px; border-radius: 9px; margin-top: 12px; background: var(--ink); color: white; font-weight: 650; }
.route-calculate[aria-busy=true] { opacity: .7; }
.route-picking .maplibregl-canvas { cursor: crosshair !important; }
/* Route points (app.js renderRouteFields, Kenzo 20/11): a grip to drag, a dot, the field, pick on the map, remove. */
.route-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.route-field { position: relative; display: grid; grid-template-columns: 22px 12px minmax(0, 1fr) auto; align-items: center; gap: 6px;
	background: white; border-radius: 10px; }
.route-field:not(.is-dragging) { transition: transform 160ms cubic-bezier(.2, 0, 0, 1); }
.route-field.is-dragging { z-index: 2; box-shadow: var(--control-shadow); }
.route-field input { width: 100%; min-width: 0; }
.route-field input.is-mine { color: #0b7a5c; font-weight: 650; }
.route-field .suggestions { grid-column: 3 / -1; margin-top: 0; }
.route-handle { width: 22px; height: 40px; display: grid; place-items: center; padding: 0; background: transparent; border-radius: 6px; cursor: grab; touch-action: none; }
.route-handle span { width: 8px; height: 14px; background: radial-gradient(circle, #8aa0a3 1.3px, transparent 1.6px) 0 0 / 4px 4.67px; }
.route-field.is-dragging .route-handle { cursor: grabbing; }
.route-dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink); background: white; }
.route-field[data-role=stop] .route-dot { border-color: var(--muted); width: 8px; height: 8px; }
.route-field[data-role=end] .route-dot { border-color: #e5484d; background: #e5484d; }
.route-pick { width: 40px; height: 40px; border-radius: 9px; background: var(--ink); color: white; font-size: 23px; }
.route-pick[aria-pressed=true] { background: #b6f16a; color: var(--ink); }
.route-pick:active { background: #0f5a5c; }
.route-remove { width: 28px; height: 40px; padding: 0; background: transparent; color: var(--muted); font-size: 21px; border-radius: 6px; }
.route-add-stop { margin: 10px 0 0 40px; font-size: 13px; }
.suggestions { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid #becdd0; border-radius: 9px; background: white; }
.suggestions li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; cursor: pointer; min-width: 0; }
.suggestions li[aria-selected=true], .suggestions li:active { background: #eef4f3; }
.suggestions strong { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-heading { display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-top: 0; }
#route-controls { margin-bottom: 18px; }
.list-heading strong { font-size: 14px; margin-right: auto; }
.list-heading select { min-height: 36px; width: auto; border: 0; padding: 6px 0 6px 6px; font-size: 12px; }
/* Classes, not ids: the copy of the list that a swipe shows in the other tab has no ids. */
.list-heading .list-filter { background: white; width: 32px; height: 36px; }
.list-heading .list-filter[aria-pressed=true] { background: #e9f4d9; }
.favorites-filter[aria-pressed=true] svg { fill: var(--ink); }
.view-filter[aria-pressed=true] svg circle { fill: var(--ink); }
.fresh-filter svg text { fill: currentColor; stroke: none; font: 700 7.6px system-ui, sans-serif; letter-spacing: -.4px; }
.fresh-filter[aria-pressed=true] svg circle { fill: var(--ink); }
.fresh-filter[aria-pressed=true] svg text { fill: white; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 5px 0 9px; border-radius: 12px; background: #e9f4d9; color: var(--ink); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px #c9e2ae; }
.filter-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .6; }
.filter-chip:active { background: #dcedc6; }
.filter-chip:focus-visible { outline: 2px solid #296ddd; outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; margin: 10px 0; }
.check input { min-height: 18px; width: 17px; height: 17px; accent-color: var(--ink); flex-shrink: 0; }
.station { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 0; background: white; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink); }
.station:active { background: #f4f8f7; }
.station-main { flex: 1; min-width: 0; }
.station strong { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-line { display: flex; align-items: baseline; gap: 8px; }
.station-sub { margin-top: 1px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.station-city { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-meta { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.station-meta .freshness { display: inline; margin: 0; font-size: inherit; font-weight: 500; }
.station-extra { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.freshness { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; line-height: 1.45; color: #256348; }
.freshness::before, .collection-summary::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0; border-radius: 50%; background: currentColor; }
.freshness[data-tone=aging], .collection-summary[data-tone=aging] { color: #89521c; }
.freshness[data-tone=old], .freshness[data-tone=unknown] { color: #7b4940; }
.collection-summary { margin: 0 0 12px; font-size: 11px; line-height: 1.4; color: #256348; }
.freshness[data-compact=true]::before { content: none; }
.fuel-price .freshness { font-size: 11px; font-weight: 400; margin-top: 3px; text-align: right; }
.station .price { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 1px 6px; margin-right: -6px; border-radius: 6px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.station .price small { margin-left: -3px; font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
/* British pence: the tenth of a penny is drawn smaller, as on pump signs (149.9p). */
.price-tenth { font-size: .78em; }
.station .price.is-best small { color: #3d6a2c; }
.station .price.is-best { background: #e2f5d7; color: #1d5a0c; box-shadow: inset 0 0 0 1px #b9e2a2; }
.station .price.is-unavailable { font-size: 12px; font-weight: 600; color: #59696e; }
.price-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px #083f4226; }
.favorite-mark { font-size: 12px; color: #7b690b; }
.badge { display: inline-block; border-radius: 5px; background: #e2f5d7; color: #27510f; font-size: 11px; padding: 3px 5px; margin-top: 7px; }
.badge.warning { color: #7a4400; background: #fff0d3; }
.badge.unavailable { background: #eaeef0; color: #59696e; }
.empty { padding: 20px 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.notice { font-size: 12px; background: #f0f5f5; padding: 12px; border-radius: 8px; line-height: 1.5; margin-top: 12px; }
.notice.error { background: #fff0d3; }
.lang-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 13px; }
.lang-row select { width: auto; }
footer { font-size: 11px; line-height: 1.65; color: var(--muted); margin-top: 14px; }
footer a { text-underline-offset: 3px; }
.disclosure { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.disclosure summary { user-select: none; -webkit-user-select: none; cursor: pointer; min-height: 28px; line-height: 1.5; color: var(--ink); }
.disclosure[open] summary { margin-bottom: 10px; }
.disclosure p:last-child { margin-bottom: 0; }
.station-services, .source-details { margin-top: 0; padding-top: 0; border: 0; }
.station-services[open] { padding-bottom: 8px; }
.station-services summary, .source-details summary { font-weight: 600; }
.legend {
	position: fixed; bottom: 16px; right: 16px; width: 236px;
	z-index: 1; font-size: 11px; color: var(--ink);
}
.legend-title { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; text-shadow: 0 0 4px white, 0 0 8px white; }
.legend-title strong { font-size: 11px; }
.legend-title > span:not([hidden]) { color: #3d5355; margin-left: auto; font-size: 10px; }
/* Exchange rate under the title, only when pounds and euros share the scale (screenshots explain themselves). */
.legend-title:has(.legend-rate:not([hidden])) { flex-wrap: wrap; }
.legend-title > .legend-rate:not([hidden]) { flex-basis: 100%; order: 9; margin-left: 0; text-align: right; font-variant-numeric: tabular-nums; }
.legend-toggle { background: #ffffffeb; color: var(--ink); border-radius: 50%; width: 24px; height: 24px; margin: -3px 0 -3px 1px; box-shadow: 0 0 0 1px #00000012; font-size: 12px; font-weight: 700; }
.legend-scale {
	--cut: 100%;
	position: relative; height: 28px; font-variant-numeric: tabular-nums;
	cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none;
}
.price-excluded {
	position: absolute; top: 0; bottom: 0; left: var(--cut); right: 0; border-radius: 0 6px 6px 0;
	background: repeating-linear-gradient(-45deg, #e6ebe9e6 0 4px, #d3dbd8e6 4px 8px);
	box-shadow: inset 1px 0 0 #00000014; pointer-events: none;
}
.legend-scale:not(.is-dragging) .price-excluded { transition: left 220ms cubic-bezier(.2, 0, 0, 1); }
.price-handle {
	position: absolute; top: -5px; bottom: -5px; left: var(--cut); width: 28px; margin-left: -14px;
	display: flex; justify-content: center; cursor: ew-resize; outline: none; z-index: 1;
}
.price-handle::before {
	content: ''; width: 6px; border-radius: 3px; background: white;
	box-shadow: 0 0 0 1px #083f4229, 0 1px 4px #083f4259;
	transition: transform 160ms cubic-bezier(.2, 0, 0, 1), box-shadow 160ms;
}
.legend-scale:not(.is-dragging) .price-handle { transition: left 220ms cubic-bezier(.2, 0, 0, 1); }
.legend-scale.is-dragging .price-handle::before { transform: scaleX(1.4); box-shadow: 0 0 0 1px #083f4233, 0 2px 8px #083f4266; }
.price-handle:focus-visible::before { box-shadow: 0 0 0 2px white, 0 0 0 4px #296ddd; }
.price-handle-bubble {
	position: absolute; bottom: calc(100% + 6px); left: 50%; padding: 3px 7px; border-radius: 6px;
	background: var(--ink); color: white; font-size: 11px; font-weight: 700; white-space: nowrap;
	--bubble-shift: -50%; transform: translate(var(--bubble-shift), 4px) scale(.92); transform-origin: 50% 100%; opacity: 0; pointer-events: none;
	transition: opacity 140ms, transform 180ms cubic-bezier(.2, 0, 0, 1);
}
.legend-scale.is-dragging .price-handle-bubble, .price-handle:focus-visible .price-handle-bubble { opacity: 1; transform: translate(var(--bubble-shift), 0) scale(1); }
@media (prefers-reduced-motion: reduce) {
	.price-excluded, .price-handle, .price-handle::before, .price-handle-bubble { transition: none !important; }
	.price-filter-chip { animation: none; }
}
.legend-scale.is-filtered #legend-high { color: #5b6d6b; text-shadow: none; }
.price-filter-chip {
	display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 4px 2px 8px; border-radius: 999px;
	background: var(--ink); color: white; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 16px;
	animation: chip-in 180ms cubic-bezier(.2, 0, 0, 1);
}
.legend.is-dragging .price-filter-chip { visibility: hidden; }
.price-filter-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .8; }
@keyframes chip-in { from { opacity: 0; transform: scale(.85); } }
.price-ramp { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #168142, #f3b820, #d93731); box-shadow: var(--control-shadow); }
.legend-scale-labels { position: absolute; inset: 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 750; pointer-events: none; }
.legend-scale-labels span { color: white; font-size: 11px; text-shadow: 0 1px 3px #000b; }
.legend-content { position: absolute; bottom: calc(100% + 10px); right: 0; width: 272px; padding: 12px; background: white; border-radius: 12px; box-shadow: var(--control-shadow); font-size: 12px; line-height: 1.5; }
.legend-content p { margin: 0 0 8px; }
.legend-status { display: grid; grid-template-columns: 12px 1fr; gap: 7px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.rupture { background: #fff8eb; border: 2px solid #d47726; }
.dot.missing { background: white; border: 2px solid #9ca9a7; }
.dot.old { background: #b9c2bf; border: 1px solid #7f8d8b; }
.legend-distribution-title { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; margin-top: 7px; }
.price-distribution { height: 52px; display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid #b7c8c7; padding: 0 1px; margin: 6px 0 0; }
.price-distribution span { flex: 1; min-height: 2px; background: #168276; border-radius: 2px 2px 0 0; opacity: .72; }
.price-distribution button { flex: 1; display: flex; align-items: flex-end; min-width: 0; height: 100%; padding: 0; background: transparent; border-radius: 2px 2px 0 0; cursor: pointer; }
.price-distribution button:active span { opacity: 1; }
.price-distribution button:focus-visible { outline: 2px solid #296ddd; outline-offset: 1px; }
.price-distribution.has-selection button span { opacity: .28; }
.price-distribution.has-selection button[aria-pressed=true] span { opacity: 1; background: #0d5f56; }
.distribution-panel { margin: 12px 0 0; font-size: 11px; }
.distribution-bin.is-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.distribution-bin { min-height: 15px; margin: 4px 0 0; font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }
.skip { position: fixed; z-index: 10; top: -100px; left: 10px; background: white; padding: 14px; }
.skip:focus { top: 10px; }
.detail-actions { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.detail-actions #close-detail { margin-right: auto; }
.detail-actions .icon-button { width: 38px; height: 38px; }
.detail-actions .favorite-toggle[aria-pressed=true] { background: #e9f4d9; }
.favorite-toggle[aria-pressed=true] { color: #9a6a00; }
.favorite-toggle[aria-pressed=true] svg { fill: #e2ad2b; }
@media (prefers-reduced-motion: no-preference) {
	.favorite-toggle.pop svg { animation: favorite-pop 420ms cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes favorite-pop { 0% { transform: scale(.6); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
.details h1 { font-size: 24px; letter-spacing: -.5px; line-height: 1.2; margin: 0 0 5px; overflow-wrap: anywhere; }
.station-detail-city { font-size: 13px; font-weight: 500; line-height: 1.45; margin: 4px 0 0; overflow-wrap: anywhere; }
.station-detail-address { font-size: 12px; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin-top: 16px; }
.detail-price strong { font-size: 24px; line-height: 1.1; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.detail-price span { font-size: 12px; color: var(--muted); }
.detail-price .detail-age { margin-left: 7px; white-space: nowrap; }
.detail-age .freshness { display: inline; margin: 0; font-size: inherit; font-weight: 400; }
.detail-status { margin: 7px 0 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.detail-status[data-state=rupture], .detail-status[data-state=closed] { color: #97501a; }
.fuel-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 16px 0 20px; }
.fuel-price { min-width: 0; padding: 10px; background: #f4f7f6; color: var(--ink); border-radius: 10px; text-align: left; }
.fuel-price[aria-pressed=true] { background: #e9f4d9; box-shadow: inset 0 0 0 1px #9aaa79; }
.fuel-price-title { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; font-size: 12px; }
.fuel-price-amount { flex-shrink: 0; text-align: right; }
.fuel-price-title strong { font-variant-numeric: tabular-nums; }
.fuel-price small { display: block; margin-top: 4px; font-size: 10px; line-height: 1.45; color: var(--muted); }
.fuel-price[data-state=rupture] small, .fuel-price[data-state=closed] small { color: #97501a; }
.declaration-dates { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.declaration-dates dt, .declaration-dates dd { margin: 0; }
.access-route { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.access-route strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.detour-preview { background: #eff7dd; border-left: 3px solid #83ad3f; border-radius: 4px; padding: 9px 10px; margin: 12px 0; }
.history-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.history-heading label { margin: 0; font-size: 13px; }
.history-heading select { width: auto; min-height: 36px; font-size: 11px; padding: 6px; }
.details ul { font-size: 12px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.chart { height: 160px; margin: 12px 0; font-size: 12px; color: var(--muted); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: inherit; font-size: 12px; fill: #586b70; }
.chart { position: relative; }
.chart svg { touch-action: pan-y; cursor: crosshair; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.chart svg:focus { outline: none; }
.chart svg:focus-visible { outline: 2px solid #168276; outline-offset: 4px; border-radius: 4px; }
.chart-cursor { visibility: hidden; pointer-events: none; }
.chart-cursor path { stroke: #586b70; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-cursor circle { fill: #168276; stroke: #fff; stroke-width: 2; }
.chart-tip {
	position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; white-space: nowrap;
	background: var(--ink, #17282c); color: #fff; border-radius: 6px; padding: 4px 7px;
	font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.chart.is-pointing .chart-cursor, .chart.is-pointing .chart-tip { visibility: visible; }
.trend-heading { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.trend-controls { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.trend-controls label { margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.trend-controls select { width: auto; min-height: 36px; padding: 4px 8px; font-size: 16px; }
.trend-heading strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.trend-heading span { font-size: 12px; border-radius: 6px; background: #edf3f2; padding: 6px; }
.maplibregl-ctrl-top-right { top: 54px; right: 6px; }
.maplibregl-ctrl-group { border-radius: var(--control-radius); box-shadow: var(--control-shadow); overflow: visible; }
.maplibregl-ctrl-group:not(:empty) { box-shadow: var(--control-shadow); }
.maplibregl-ctrl-group button { width: var(--control-size); height: var(--control-size); }
.maplibregl-ctrl-group.is-oriented { opacity: 0; transform: scale(.8); pointer-events: none; visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
	.maplibregl-ctrl-group button:not(:disabled):hover { background-color: #f1f5f4; }
}
.maplibregl-ctrl-group button:first-child { border-radius: var(--control-radius) var(--control-radius) 0 0; }
.maplibregl-ctrl-group button:last-child { border-radius: 0 0 var(--control-radius) var(--control-radius); }
.maplibregl-ctrl-attrib-button:focus:not(:focus-visible), .maplibregl-ctrl-group button:focus:not(:focus-visible) { box-shadow: none; outline: none; }
.maplibregl-ctrl-attrib-button:focus-visible, .maplibregl-ctrl-group button:focus-visible { outline: 3px solid #296ddd; outline-offset: 3px; box-shadow: none; }
.maplibregl-ctrl-bottom-right { right: 6px; bottom: 66px; max-width: calc(100vw - 32px); }
.maplibregl-ctrl-attrib.maplibregl-compact {
	user-select: none; -webkit-user-select: none; background: transparent;
	border-radius: 50%; box-shadow: none; min-height: 24px; padding: 0 24px 0 0;
	font-size: 10px; max-width: calc(100vw - 32px);
}
.maplibregl-ctrl-attrib-button {
	width: 24px; height: 24px; border-radius: 50%; background-color: #ffffffeb;
	background-position: center; background-repeat: no-repeat;
	box-shadow: 0 0 0 1px #00000012;
}
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button,
.maplibregl-ctrl-attrib-button:active { background-color: #f1f5f4; }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner {
	position: absolute; bottom: 0; right: 30px; width: max-content;
	max-width: calc(100vw - 64px); padding: 2px 8px; line-height: 20px;
	background: #ffffffeb; border-radius: 12px; box-shadow: 0 0 0 1px #00000012;
}
/* Démarrage (Kenzo, 26/11) : les contrôles paraissent ensemble, une fois posés à leur place et à leur taille (app.js
   revealInterface), sans rejouer de transition vers cette place. */
.booting .search-box, .booting .map-tools, .booting .legend, .booting .panel, .booting .maplibregl-ctrl { visibility: hidden; }
.booting *, .booting *::before, .booting *::after { transition: none !important; animation: none !important; }
.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner { display: none !important; }
.maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show .maplibregl-ctrl-attrib-inner { display: block !important; }
/* Phone layout, also a tablet held upright (app.js mobile_layout). */
@media (max-width: 700px), (orientation: portrait) and (max-width: 1100px) and (pointer: coarse) {
	:root { --control-size: 42px; }
	.map-brand { display: none; }
	.map-tools { top: 8px; }
	.maplibregl-ctrl-top-right { top: 46px; }
	/* One row at the top (Kenzo, 20/11): the bar leaves room for the fuel and position buttons on its right, and spreads
	   over the whole row while it is used (focus, assistant). --tools-width is measured by app.js. */
	.search-box { top: 12px; left: 12px; right: calc(20px + var(--tools-width, 140px)); width: auto; max-width: none; height: 48px; padding-left: 10px;
		transition: right 220ms cubic-bezier(.32, .72, 0, 1); }
	/* The drop's menu gives the focus back to the drop when it closes: that focus does not spread the bar (Kenzo, 26/11). */
	.search-box:focus-within:not(:has(.search-brand:focus)), .ai-open .search-box, .search-box.has-results { right: 12px; z-index: 5; }
	@media (prefers-reduced-motion: reduce) { .search-box { transition: none; } }
	.search-brand { display: grid; place-items: center; width: 34px; height: 40px; margin-left: -6px; flex-shrink: 0; padding: 0; background: transparent; border-radius: 9px; }
	.search-brand:active { background: #e3ecea; }
	/* The account lives in the Fuelero menu on a phone (menu.mjs): no profile button over the map. */
	.account-button { display: none; }
	.search-brand img { width: 20px; height: auto; }
	.search-icon { display: none; }
	.search-field input { font-size: 16px; }
	.ai-panel { top: 68px; left: 12px; right: 12px; width: auto; max-width: none; max-height: calc(100dvh - 80px); z-index: 6; }
	.ai-form textarea { font-size: 16px; }
	.brand-logo { height: 31px; }
	.map-tools { top: 15px; right: 12px; gap: 7px; }
	.map-message { top: 68px; }
	.fuel-toggle { min-width: 0; font-size: 12px; padding: 0 8px; gap: 5px; }
	.fuel-toggle > svg:first-child { width: 18px; }
	.fuel-menu button { min-height: 44px; }
	.panel {
		top: auto; left: 0; right: 0; bottom: 0; z-index: 4;
		width: auto; max-width: none; height: var(--sheet-height); max-height: 100dvh;
		border-radius: var(--sheet-radius, 18px) var(--sheet-radius, 18px) 0 0; touch-action: pan-x pan-y;
	}
	.sheet-handle {
		display: flex; flex-shrink: 0; width: 100%; min-height: 26px;
		flex-direction: column; align-items: center; justify-content: center;
		gap: 6px; padding: 8px 12px; background: #0f5a5c; color: white;
		touch-action: none; cursor: ns-resize; user-select: none;
	}
	/* Entête pétrole : poignée et onglets sur le vert de la marque, liseré lime → vert d'eau au bord. */
	.panel { box-shadow: 0 -8px 28px #083f4240; }
	.panel::before {
		content: ''; position: absolute; z-index: 1; top: 0; left: 18px; right: 18px; height: 2px; border-radius: 2px;
		background: linear-gradient(90deg, #b6f16a00, #b6f16a, #5bd0a7, #5bd0a700); pointer-events: none;
	}
	.sheet-collapsed .sheet-handle { background: linear-gradient(180deg, #0f5a5c, #083f42); }
	.handle-bar { width: 36px; height: 4px; border-radius: 9px; background: #ffffff70; }
	.sheet-handle:focus-visible, .tabs button:focus-visible { outline-color: #b6f16a; }
	.sheet-handle:active { background: #0c4f51; }
	#sheet-caption { display: none; font-size: 13px; font-weight: 650; line-height: 1.5; }
	.sheet-collapsed .sheet-handle { flex: 1; cursor: pointer; }
	.sheet-collapsed #sheet-caption { display: block; }
	.sheet-collapsed .panel-content { display: none; }
	.panel-header { padding: 0 2px; background: linear-gradient(180deg, #0f5a5c, #083f42); border-bottom: 0; }
	.panel-pin { display: none; }
	.tabs { padding: 4px 6px 7px; }
	.tabs button { padding: 10px 2px; font-size: 13px; background: transparent; color: #c9e0dc; }
	.tabs button[aria-pressed=true] { background: var(--lime); color: var(--ink); }
	.tabs button:not([aria-pressed=true]):active { background: #ffffff1f; }
	/* The lime pill is a copy of the labels, clipped to the current tab: it follows a swipe between tabs. */
	.tabs { position: relative; }
	.tabs.has-pill button[aria-pressed=true] { background: transparent; color: #c9e0dc; }
	.tabs-pill { display: block; position: absolute; inset: 0; background: var(--lime); color: var(--ink); pointer-events: none; }
	.tabs-pill span { position: absolute; display: grid; place-items: center; font-size: 13px; font-weight: 650; white-space: nowrap; }
	.tabs-pill.is-sliding { transition: clip-path 220ms cubic-bezier(.2, 0, 0, 1); }
	/* The browser scrolls the strip: one tab per swipe, its momentum, a bounce only at both ends. */
	.view-strip { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
	.view-strip::-webkit-scrollbar { display: none; }
	.view-pane { scroll-snap-align: start; scroll-snap-stop: always; }
	/* A <select> lays out again on every move of the sheet: the tabs out of sight sit it out. */
	.panel.is-dragging .view-pane[inert] { content-visibility: hidden; }
	/* No stretch at the top of a tab: a drag down that has scrolled it back hands over to the sheet (app.js). */
	.view-pane, .detail-pane { padding: 18px 20px; overscroll-behavior-y: none; }
	h1 { font-size: 23px; }
	input, select { font-size: 16px; }
	.route-field { grid-template-columns: 28px 12px minmax(0, 1fr) auto; }
	.route-handle { width: 28px; height: 44px; }
	.route-pick { width: 42px; height: 42px; }
	.route-remove { width: 34px; height: 44px; }
	.list-heading select { font-size: 12px; }
	.panel-open { display: none; }
	.icon-button { width: 42px; height: 42px; }
	.detail-actions .icon-button { width: 42px; height: 42px; }
	.station { padding: 11px 0; }
	.fuel-price { padding: 12px 10px; }
	.history-heading select { font-size: 12px; }
	.legend { right: 12px; bottom: calc(var(--sheet-height) + 14px); width: 222px; }
	.legend-content { width: min(272px, calc(100vw - 24px)); }
	/* Under the row of controls (Kenzo, 20/11: it once hid behind « position »). */
	.maplibregl-ctrl-top-right { top: 52px; right: 2px; }
	.maplibregl-ctrl-bottom-right { right: 2px; bottom: calc(var(--sheet-height) + 64px); }
	.sheet-expanded .legend { display: none; }
	.sheet-free .panel, .sheet-free .legend, .sheet-free .maplibregl-ctrl-bottom-right { will-change: transform; }
}
@media (prefers-reduced-motion: no-preference) {
	.map-control, .icon-button, .fuel-menu button { transition: transform 120ms cubic-bezier(.2, 0, 0, 1), background-color 120ms ease; }
	.map-control:active, .icon-button:active { transform: scale(.96); }
	/* The sheet moves by transform only (freeSheet in app.js): one curve for it and what follows it. */
	.sheet-flying .panel, .sheet-flying .legend, .sheet-flying .maplibregl-ctrl-bottom-right {
		transition: transform 500ms var(--sheet-ease), border-radius 500ms var(--sheet-ease);
	}
	.maplibregl-ctrl-top-right .maplibregl-ctrl-group { transition: opacity 160ms ease, transform 160ms cubic-bezier(.2, 0, 0, 1), visibility 0s; }
	.maplibregl-ctrl-top-right .maplibregl-ctrl-group.is-oriented { transition: opacity 160ms ease, transform 160ms cubic-bezier(.2, 0, 0, 1), visibility 0s 160ms; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (forced-colors: active) {
	.map-control, .panel, .fuel-menu, .legend-content { border: 1px solid ButtonText; }
	button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
	.maplibregl-ctrl-attrib-button:focus-visible, .maplibregl-ctrl-group button:focus-visible { outline-color: Highlight; }
}

/* Short message over the map (toast.mjs, Kenzo 26/11): hugs its text, centred over the visible map, slides down from
   under the header and leaves the way it came; transitions only, so a new message or a grab retargets mid-flight. */
.map-message {
	position: fixed; z-index: 4; top: 68px; left: 16px; right: 16px; margin-inline: auto;
	display: flex; align-items: flex-start; gap: 6px; width: fit-content; max-width: min(400px, calc(100vw - 32px));
	padding: 11px 8px 11px 16px; border-radius: 14px; background: white; color: var(--ink);
	box-shadow: 0 0 0 1px #0000000d, 0 4px 12px #0000001a, 0 12px 32px #00000014;
	font-size: 14px; line-height: 20px; letter-spacing: -0.005em; text-wrap: pretty;
	touch-action: none; user-select: none; -webkit-user-select: none; cursor: default;
	transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms ease;
	@starting-style { opacity: 0; transform: translateY(-100%); }
}
.map-message > span { padding-block: 4px; min-width: 0; }
.map-message.error { background: #fff3dc; box-shadow: 0 0 0 1px #c9861f33, 0 4px 12px #0000001a, 0 12px 32px #00000014; }
.map-message.is-dragging { transition: none; }
.map-message[data-state="leaving"] { pointer-events: none; transition-duration: 220ms, 200ms; transition-timing-function: ease-in, ease; opacity: 0; transform: translateY(-100%); }
.map-message[data-exit="left"] { transform: translateX(calc(-100% - 32px)); }
.map-message[data-exit="right"] { transform: translateX(calc(100% + 32px)); }
.map-message button {
	flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0;
	background: transparent; border-radius: 8px; color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.map-message button svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .map-message button:hover { background: #0000000a; color: var(--ink); } }
@media (min-width: 701px) and (orientation: landscape), (min-width: 1101px), (min-width: 701px) and (pointer: fine) { .panel-visible .map-message { left: 420px; max-width: min(420px, calc(100vw - 436px)); } }
@media (prefers-reduced-motion: reduce) {
	.map-message { transition: opacity 200ms ease; @starting-style { transform: none; } }
	.map-message[data-state="leaving"], .map-message[data-exit] { transform: none; }
}

.station-logo { width: 28px; height: 28px; flex-shrink: 0; object-fit: contain; background: transparent; }
.detail-identity { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.detail-identity > div { min-width: 0; }
.detail-identity h1 { margin: 0; }
.detail-logo { width: 48px; height: 48px; border-radius: 8px; }

.legend.no-prices .price-ramp { background: #d5ddda; }
.legend.no-prices .price-handle, .legend.no-prices .price-excluded { display: none; }
.legend.no-prices .legend-scale { cursor: default; }

.rupture-icon { width: 14px; height: 14px; vertical-align: -3px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-control.location[aria-pressed=true] { color: #1a73e8; }
.user-location, .reference-location { pointer-events: none; border-radius: 50%; }
/* The position is a button: a tap opens its menu (« Définir comme domicile »); an approximate one is dragged. */
.user-location { pointer-events: auto; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: none; }
.user-location::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
.user-location.is-approximate { cursor: grab; }
.user-location.is-approximate:active { cursor: grabbing; }
.user-location svg { display: none; }
.user-location.at-home { display: grid; place-items: center; width: 26px; height: 26px; }
.user-location.at-home svg { display: block; width: 14px; height: 14px; fill: none; stroke: white; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.user-location.at-home.is-approximate svg { stroke: #1a73e8; }
.user-location:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-location {
	display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer;
	background: white; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 1px 4px #0004;
}
.home-location[hidden] { display: none; }
.home-location svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.place-menu-edit { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 6px 8px 4px; width: min(340px, calc(100vw - 32px)); }
.place-menu-edit label { grid-column: 1 / -1; font-size: 13px; font-weight: 650; color: var(--ink); }
.place-menu-edit input { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid #c9d6d4; border-radius: 10px; font-size: 16px; color: var(--ink); background: white; }
.place-menu .place-menu-edit button { background: var(--ink); color: white; font-weight: 650; }
.account-home-edit { display: flex; gap: 10px; align-items: center; }
.account-home-edit input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid #c9d6d4; border-radius: 10px; font-size: 16px; color: var(--ink); background: white; }
.place-menu-note { margin: 0; padding: 0 12px 6px; max-width: 240px; font-size: 12px; line-height: 1.35; color: #4d5f60; white-space: normal; }
.user-location {
	width: 18px; height: 18px; background: #1a73e8; border: 3px solid white;
	box-shadow: 0 1px 4px #0006, 0 0 0 9px #1a73e833;
	transition: background-color .5s, border-color .5s, box-shadow .5s;
}
/* Fix approximatif : point creux, sans halo ni pulsation, au centre du cercle de précision dessiné sur la carte. */
.user-location.is-approximate {
	background-color: #ffffffbf; border-color: #1a73e8b3;
	-webkit-backdrop-filter: blur(2px) saturate(1.4); backdrop-filter: blur(2px) saturate(1.4);
	box-shadow: 0 1px 3px #0003, inset 0 0 4px #1a73e840;
}
.reference-location {
	width: 16px; height: 16px; background: white;
	border: 4px solid var(--ink); box-shadow: 0 1px 4px #0005;
}
@media (prefers-reduced-motion: no-preference) {
	.user-location:not(.is-approximate) { animation: user-pulse 2.2s cubic-bezier(.2, 0, .4, 1) infinite; }
	@keyframes user-pulse {
		from { box-shadow: 0 1px 4px #0006, 0 0 0 0 #1a73e880; }
		to   { box-shadow: 0 1px 4px #0006, 0 0 0 22px #1a73e800; }
	}
}

/* Journal des pleins : bouton de la fiche station, onglet « Pleins » et formulaire. */
.note-fill { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 4px; padding: 11px; border-radius: 9px; background: var(--lime); color: var(--ink); font-weight: 650; }
.note-fill svg, .fill-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fills-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fills-head h1 { margin: 0; }
.fill-add { flex-shrink: 0; padding: 9px 14px; border-radius: 9px; background: var(--ink); color: white; font-weight: 650; font-size: 14px; }
.fill-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 6px; }
.fill-tiles div { padding: 10px 12px; border-radius: 10px; background: #f2f6f7; }
.fill-tiles dt { font-size: 12px; color: var(--muted); }
.fill-tiles dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.fill-chart-title { margin: 18px 0 0; font-size: 14px; }
.fills .chart { height: 150px; margin: 8px 0; }
.fill-row { display: block; width: 100%; padding: 10px 0; background: white; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink); }
.fill-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fill-line strong { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fill-total { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.fill-sub { margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fill-status { margin-top: 14px; }
.fill-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 12px 40px #00000040; }
.fill-dialog::backdrop { background: #062a2c88; }
.fill-form h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.4px; }
.fill-station-name { margin: 0 0 4px; line-height: 1.4; }
.fill-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.fill-wide { grid-column: 1 / -1; }
.fill-grid input, .fill-grid select { width: 100%; }
.fill-grid label { margin-top: 10px; }
.fill-form .check { font-size: 14px; margin: 14px 0 0; }
.fill-error { min-height: 1em; margin: 8px 0 0; color: #a3341b; }
.fill-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.fill-actions .fill-delete { margin-right: auto; color: #a3341b; }
.fill-cancel, .fill-save { padding: 11px 16px; border-radius: 9px; font-weight: 650; }
.fill-cancel { margin-left: auto; background: #eef3f4; color: var(--ink); }
.fill-delete + .fill-cancel { margin-left: 0; }
.fill-save { background: var(--ink); color: white; }
/* Cinq onglets sur les plus petits téléphones. */
@media (max-width: 360px) { .tabs button, .tabs-pill span { font-size: 12px; } }

/* Compte Fuelero (api.fuelero.com), encore derrière ?auth=nouveau. */
.account-box { margin-top: 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-actions button, .account-google, .account-passkey { padding: 11px 14px; border-radius: 9px; font-weight: 600; background: #eef3f4; color: var(--ink); }
.account-form .account-google, .account-form .account-passkey { display: block; width: 100%; margin-top: 10px; }
.account-form input { width: 100%; }
.account-form .fill-save { width: 100%; margin-top: 10px; }
.account-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; color: var(--muted, #5b6b66); font-size: 13px; }
.account-sep::before, .account-sep::after { content: ''; flex: 1; border-top: 1px solid #dfe7e8; }
.account-turnstile { margin-top: 10px; }
.account-turnstile:empty { margin: 0; }
#account-code { letter-spacing: .35em; font-size: 20px; text-align: center; }
/* Bouton compte : point vert une fois connecté. */
.account-button { position: relative; }
.account-button.signed-in::after { content: ''; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #2fa35a; box-shadow: 0 0 0 2px white; }
.account-form h2 { margin-top: 0; }
.account-links { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; }
.account-link { padding: 4px 0; background: none; color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.account-link:disabled { color: #7c8a87; text-decoration: none; }
.account-enter { animation: account-enter 220ms cubic-bezier(.2, 0, 0, 1); }
@keyframes account-enter { from { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .account-enter { animation: none; } }
.account-methods { display: flex; flex-direction: column; }
.account-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #dff3d0; color: #2b5d16; font-size: 11px; font-weight: 650; vertical-align: middle; }
.account-form .account-passkey.fill-save { background: var(--ink); color: white; }
.account-form .account-passkey.fill-save .account-badge { background: #b6f16a; color: #083f42; }
/* Contour de focus pour le clavier seulement ; la fenêtre elle-même n'en a pas. */
button:focus:not(:focus-visible), dialog:focus, dialog:focus-visible, .account-form:focus { outline: none; }
.account-passkeys { list-style: none; margin: 8px 0; padding: 0; font-size: 14px; }
.account-passkeys li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #e5ecec; }
.account-passkey-here { align-self: center; font-size: 14px; color: #2b5d16; font-weight: 600; }
.account-passkey-note:empty { display: none; }
.account-form h2:focus { outline: none; }

/* A narrow phone keeps only the field in the folded bar; the assistant and the route arrow come back as it spreads. */
@media (max-width: 380px) {
	.search-box:not(:focus-within):not(.has-results) .search-ai, .search-box:not(:focus-within):not(.has-results) .search-route,
	.search-box:has(.search-brand:focus):not(.has-results) .search-ai, .search-box:has(.search-brand:focus):not(.has-results) .search-route { display: none; }
	.ai-open .search-box .search-ai, .ai-open .search-box .search-route { display: grid; }
}
/* Phone on its side (Kenzo, 27/11): wider than 700 px, so the side panel, but only ~360–430 px high. The panel and
   search bar climb, the logo leaves the top, the price histogram of the list gives its place to the stations
   (the legend bar still filters by price), the evolution chart shrinks. Rotation stays free: car mounts are often landscape. */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 701px) {
	.map-brand { display: none; }
	.map-tools { top: 8px; }
	.maplibregl-ctrl-top-right { top: 46px; }
	.search-box { top: 8px; height: 44px; }
	.panel { top: 60px; bottom: 8px; border-radius: 16px; }
	.tabs { padding: 5px 4px 5px 5px; }
	.tabs button { padding: 8px 3px; }
	.view-pane, .detail-pane { padding: 12px 16px; }
	.distribution-panel { display: none; }
	.chart { height: 110px; margin: 8px 0; }
	.legend { bottom: 8px; }
}

/* The fix's margin under the locate button (app.js, syncAccuracyBadge): hovering or touching it draws the accuracy
   circle, hidden otherwise (Kenzo, 27/11, as on Sporedar). */
.map-control.location { position: relative; overflow: visible; }
.position-margin { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); padding: 1px 6px;
	border-radius: 99px; background: #1a73e8; color: white; font: 700 10px/1.4 system-ui, sans-serif; white-space: nowrap;
	box-shadow: var(--control-shadow); cursor: help; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.position-margin.approximate { background: white; color: #1a73e8; border: 1px solid #1a73e8; }
/* A larger touch target than the 15 px label, without growing it. */
.position-margin::after { content: ''; position: absolute; inset: -8px -6px; }
