@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(./fonts/barlow-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(./fonts/barlow-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(./fonts/barlow-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(./fonts/barlow-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url(./fonts/barlow-condensed-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(./fonts/barlow-condensed-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(./fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

/* Terrain — tableau de bord bureau.
   Direction : tableau de répartition d'un atelier de chauffagiste — ardoise, émail sarcelle, jaune « flamme de veilleuse »
   pour l'accent ; typographie Barlow (signalétique industrielle), chiffres en Barlow Condensed. */
:root {
  --ink: #1c2733;
  --ink-2: #4a5866;
  --ink-3: #7b8794;
  --line: #d9dee3;
  --line-2: #e8ebee;
  --bg: #eceff2;
  --panel: #ffffff;
  --slate: #1c2733;
  --slate-2: #263443;
  --teal: #0e6e78;
  --teal-soft: #e3f1f2;
  --flame: #f2b544;
  --green: #16855a;
  --blue: #2f64d6;
  --amber: #c98a12;
  --red: #c23b30;
  --grey: #8c959e;
  --r: 6px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; letter-spacing: 0.005em; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; margin-top: 14px; }
a { color: var(--teal); }
p { margin: 0.3em 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.bad { color: var(--red); font-weight: 600; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }

button, .btn { font: 600 14px var(--font); border-radius: var(--r); padding: 7px 13px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; }
button.primary, .btn.primary { background: var(--teal); color: #fff; }
button.primary:hover, .btn.primary:hover { background: #0b5c64; }
button.ghost, .btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
button.ghost:hover, .btn.ghost:hover { background: var(--panel); border-color: var(--ink-3); }
button.danger, .btn.danger { color: var(--red); }
button.sm { padding: 4px 9px; font-size: 13px; }
button:disabled { opacity: 0.5; cursor: default; }
input, select, textarea { font: 14px var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; background: #fff; }
input.day { padding: 6px 8px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
label.check { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- coquille */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.side { background: var(--slate); color: #c9d2db; display: flex; flex-direction: column; padding: 16px 10px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 22px var(--cond); color: #fff; padding: 0 8px 4px; }
.brand.big { font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.brand .burger { display: none; margin-left: auto; color: #fff; border-color: #3a4a5b; }
.side .org { font-size: 13px; color: #8fa0b1; padding: 0 8px 12px; border-bottom: 1px solid var(--slate-2); margin-bottom: 8px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; overflow: auto; }
.side a { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: var(--r); color: #c9d2db; text-decoration: none; font-weight: 500; }
.side a:hover { background: var(--slate-2); color: #fff; }
.side a.active { background: var(--teal); color: #fff; }
.side .count { background: var(--flame); color: var(--slate); border-radius: 9px; padding: 0 7px; font: 700 12px var(--cond); }
.side .me { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--slate-2); display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.side .me button { color: #c9d2db; border-color: #3a4a5b; }
.main { min-width: 0; }
.page { padding: 22px 26px 40px; max-width: 1180px; }
.page.wide { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub, .live-top .sub { color: var(--ink-2); max-width: 74ch; margin-top: 4px; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { padding: 18px; color: var(--ink-3); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r); }
.error-box { padding: 10px 12px; background: #fbeceb; color: var(--red); border-radius: var(--r); margin: 8px 0; }
.callout { background: var(--teal-soft); border-left: 3px solid var(--teal); padding: 10px 12px; border-radius: 0 var(--r) var(--r) 0; margin: 10px 0; }
.callout.bad { background: #fbeceb; border-color: var(--red); }
.callout pre, pre.callout { white-space: pre-wrap; font: 13px/1.4 ui-monospace, monospace; margin: 6px 0 0; }
pre.summary { font: 14px/1.5 var(--font); }
.h2 { margin: 22px 0 10px; }

/* ---------- pastilles et badges */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font); color: var(--ink); background: color-mix(in srgb, var(--c) 13%, white); border: 1px solid color-mix(in srgb, var(--c) 35%, white); padding: 2px 9px 2px 7px; border-radius: 12px; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pill.sm { font-size: 12px; padding: 1px 8px 1px 6px; }
.badge { display: inline-block; white-space: nowrap; font: 600 12px var(--font); padding: 1px 7px; border-radius: 4px; background: var(--line-2); color: var(--ink-2); margin: 1px 0; }
.badge.ok { background: #e2f3ea; color: #10663f; }
.badge.warn { background: #fbf0d9; color: #8a5d05; }
.badge.bad { background: #fbe4e2; color: #9d2b22; }
.badge.info { background: #e4ecfb; color: #234ea8; }
.bar { display: block; height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar .fill { display: block; height: 100%; background: var(--teal); }

/* ---------- en direct */
.live { padding: 18px 22px 22px; display: grid; gap: 14px; }
.live-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.counters { display: flex; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.counter { padding: 7px 14px 6px; border-left: 1px solid var(--line-2); display: grid; min-width: 86px; }
.counter:first-child { border-left: 0; }
.counter b { font: 600 28px/1 var(--cond); }
.counter span { font-size: 12px; color: var(--ink-3); }
.counter.teal b { color: var(--teal); } .counter.blue b { color: var(--blue); } .counter.green b { color: var(--green); } .counter.amber b { color: var(--amber); } .counter.grey b { color: var(--grey); } .counter.red b { color: var(--red); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr) minmax(260px, 0.75fr); gap: 14px; height: calc(100vh - 128px); min-height: 560px; }
.live-map, .fleet-map, .tl-map { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; }
.fleet-map { height: 440px; }
.live-list { overflow: auto; display: grid; gap: 8px; align-content: start; padding-right: 2px; }
.live-alerts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; overflow: auto; }
.live-alerts h2 { margin-bottom: 8px; }
.tech { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--tc); border-radius: var(--r); padding: 10px 12px 8px; cursor: pointer; }
.tech.sel { box-shadow: 0 0 0 2px var(--flame); }
.tech header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tech h3 { margin: 0; font-size: 19px; }
.tech-body { margin-top: 4px; font-size: 14px; }
.tech .lbl { font: 600 12px var(--font); color: var(--ink-3); margin-right: 4px; }
.tech .eta { color: var(--blue); font-weight: 600; }
.tech .meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.tech footer { display: flex; gap: 6px; margin-top: 6px; }
.warn-line { color: var(--red); font-weight: 600; font-size: 13.5px; }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alert { border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--r); padding: 7px 9px; font-size: 13.5px; display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; }
.alert.critical { border-left-color: var(--red); background: #fffafa; }
.alert.info { border-left-color: var(--grey); }
.alert time { font: 600 14px var(--cond); color: var(--ink-2); }
.alert-actions { grid-column: 2; display: flex; gap: 6px; margin-top: 3px; }

/* ---------- carte */
.map-wrap { position: relative; height: 100%; min-height: 300px; }
.map { position: absolute; inset: 0; background: #e9edf0; }
.map.schematic, .schematic { background: repeating-linear-gradient(0deg, #f3f5f6 0 39px, #e7ebee 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, #e7ebee 39px 40px); }
.map-note { position: absolute; left: 10px; bottom: 10px; z-index: 500; background: #fff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 4px; font-size: 12px; color: var(--ink-2); }
.mk-tech { width: 38px; height: 38px; border-radius: 50%; background: var(--fill); border: 4px solid var(--ring); box-shadow: 0 1px 4px rgba(28, 39, 51, 0.35); display: grid; place-items: center; color: #fff; font: 700 14px var(--cond); position: relative; }
.mk-tech.stale { filter: grayscale(1); opacity: 0.6; }
.mk-tech.sel { box-shadow: 0 0 0 3px var(--flame), 0 1px 4px rgba(0, 0, 0, 0.35); }
.mk-tech em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font: 600 11px var(--font); font-style: normal; padding: 0 5px; border-radius: 3px; white-space: nowrap; }
.mk-client { width: 14px; height: 14px; border-radius: 3px; background: #fff; border: 3px solid var(--ink-2); transform: rotate(45deg); }
.mk-client.done { border-color: var(--green); background: var(--green); }
.mk-site { width: 22px; height: 22px; border-radius: 5px; background: var(--teal); color: #fff; display: grid; place-items: center; font: 700 13px var(--cond); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.mk-town { font: 600 12px var(--font); color: #5f6c78; text-align: center; text-shadow: 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.legend { position: absolute; z-index: 500; left: 56px; top: 10px; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; max-width: calc(100% - 70px); font-size: 12px; }
.leaflet-container { font-family: var(--font); }

/* ---------- tableaux */
.table-wrap { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
table.grid { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--panel); }
.grid th { text-align: left; font: 600 12.5px var(--font); color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #f7f8f9; }
.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid tr.clickable { cursor: pointer; }
.grid tr.clickable:hover td { background: #f5fafa; }
.grid tr.diff td { background: #fff7f6; }
.grid tr.missing td { background: #fffbef; }
.grid td.corrected { color: var(--blue); font-weight: 600; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* ---------- chronologie */
.tl-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 14px; height: calc(100vh - 150px); min-height: 520px; }
.tl-events { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow: auto; }
.events { list-style: none; padding: 0; margin: 8px 0; border-left: 2px solid var(--line); }
.events li { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 5px 0 5px 10px; position: relative; font-size: 14px; }
.events li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; }
.events li.refused::before { background: var(--red); }
.events time { font: 600 15px var(--cond); color: var(--ink-2); }
.replay { position: absolute; z-index: 600; left: 12px; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; display: flex; gap: 10px; align-items: center; }
.replay input { flex: 1; padding: 0; }
.replay label { display: inline; font-weight: 600; color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; font-size: 14px; }

/* ---------- documents */
.filters { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 12px; flex-wrap: wrap; }
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.side-card h2 { font-size: 17px; margin: 4px 0 6px; }
.doc-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); gap: 18px; align-items: start; }
.doc-page { position: relative; margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; line-height: 0; }
.doc-page img { width: 100%; height: auto; display: block; }
.bbox { position: absolute; border: 2px solid var(--teal); background: rgba(14, 110, 120, 0.1); border-radius: 2px; }
.bbox.low { border-color: var(--amber); background: rgba(201, 138, 18, 0.12); border-style: dashed; }
.bbox span { position: absolute; left: -2px; top: -18px; background: var(--teal); color: #fff; font: 600 11px/16px var(--font); padding: 0 5px; border-radius: 2px 2px 0 0; white-space: nowrap; }
.bbox.low span { background: var(--amber); }
.doc-side { display: grid; gap: 8px; }
.compare td:first-child { color: var(--ink-2); white-space: nowrap; }
.conf { font: 600 11px var(--font); color: var(--green); margin-left: 4px; }
.conf.low { color: var(--amber); }
input.cell { width: 100%; padding: 4px 6px; font-size: 13px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 8px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- planning, messages, divers */
.planning { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.plan-col h2 { border-left: 5px solid var(--tc); padding-left: 8px; margin-bottom: 8px; }
.plan-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; display: grid; grid-template-columns: 82px 1fr auto; gap: 8px; margin-bottom: 6px; align-items: start; }
.plan-item.st-DONE { opacity: 0.75; }
.plan-time { font: 600 15px var(--cond); color: var(--ink-2); }
.plan-item select { font-size: 12px; padding: 3px 4px; max-width: 120px; }
.chat { display: grid; grid-template-columns: 220px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); height: calc(100vh - 170px); min-height: 420px; }
.chat-list { list-style: none; margin: 0; padding: 6px; border-right: 1px solid var(--line); }
.chat-list li { padding: 8px 10px; border-radius: var(--r); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.chat-list li i { width: 9px; height: 9px; border-radius: 50%; }
.chat-list li.sel { background: var(--teal-soft); font-weight: 600; }
.chat-thread { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.chat-msgs { overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 70%; padding: 8px 11px; border-radius: 10px; background: var(--line-2); align-self: flex-start; }
.bubble.out { background: var(--teal); color: #fff; align-self: flex-end; }
.bubble time { font-size: 11px; opacity: 0.75; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.gaps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.gaps li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--grey); border-radius: var(--r); padding: 8px 10px; font-size: 14px; }
.signals { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.signal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.signal.dismissed { opacity: 0.7; }
.signal header { display: flex; gap: 10px; align-items: center; }
.signal header > div { flex: 1; }
.signal > p { margin-top: 8px; font-size: 14px; max-width: 90ch; }
.conf-dot { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--amber) calc(var(--v) * 360deg), var(--line-2) 0); display: block; mask: radial-gradient(circle at center, transparent 9px, #000 10px); -webkit-mask: radial-gradient(circle at center, transparent 9px, #000 10px); }
.sig-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sig-actions input { flex: 1; min-width: 220px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; }
.kpi b { font: 600 30px/1.05 var(--cond); }
.kpi span { color: var(--ink-3); font-size: 13px; }
.criteria li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; display: flex; justify-content: space-between; }
.lessons li { background: #fffaf0; border-left: 3px solid var(--flame); padding: 8px 10px; border-radius: 0 var(--r) var(--r) 0; }
.btn.file { position: relative; overflow: hidden; margin-bottom: 8px; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
fieldset { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 14px; margin: 0; }
legend { font: 600 18px var(--cond); padding: 0 6px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 14px; }
.setting small { display: block; color: var(--ink-3); font-size: 12px; }
.setting .inp { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); }
.setting input[type="number"] { width: 84px; }
.setting > span { flex: 1 1 50%; min-width: 0; }
.setting > select, .setting > input:not([type="checkbox"]), .setting > .inp { flex: 0 1 auto; max-width: 55%; min-width: 0; }
fieldset { min-width: 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(28, 39, 51, 0.45); display: grid; place-items: center; z-index: 2000; padding: 16px; }
.modal { background: #fff; border-radius: 8px; padding: 16px 18px; width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.form { display: grid; gap: 10px; }
.pairing { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.pairing .qr svg { width: 200px; height: 200px; }
.pin { font: 700 40px var(--cond); letter-spacing: 0.12em; color: var(--teal); }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--slate); padding: 16px; }
.login form { background: #fff; border-radius: 10px; padding: 26px 28px; width: min(400px, 100%); display: grid; gap: 12px; }
.login h1 { font-size: 22px; color: var(--ink-2); font-family: var(--font); font-weight: 500; }
.boot { min-height: 100vh; background: var(--bg); }
.embed-fleet { padding: 10px; }
body.embed { background: #fff; }

@media (max-width: 1200px) {
  .live-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .live-map { grid-column: 1 / -1; height: 420px; }
  .tl-grid, .doc-detail, .two-col, .docs-grid { grid-template-columns: 1fr; height: auto; }
  .tl-map { height: 420px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side ul, .side .me, .side .org { display: none; }
  .shell.nav-open .side ul, .shell.nav-open .side .me { display: grid; }
  .brand .burger { display: inline-flex; }
  .live-grid { grid-template-columns: 1fr; }
  .page, .live { padding: 14px 16px 28px; }
  .counters { flex-wrap: wrap; }
  .chat { grid-template-columns: 1fr; }
  .chat-list { display: flex; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .pairing { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
