/* Google Fonts are linked from index.html (non-blocking); keep the family list there. */
/* 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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* 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;
		}
	}

:root {
  --font-title-logo: 'Cinzel Decorative', 'Cinzel', serif;
  --font-title: 'Cinzel', serif;
  --font-serif: 'Cinzel', serif;
  --font-grimoire: 'MedievalSharp', cursive;
  --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --overlay-scrim: rgba(10, 8, 6, 0.72);
}

/* Base Typography Hierarchy */
h1 {
  font-family: var(--font-title-logo);
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

body, p, span, button, input, select, textarea, label, a {
  font-family: var(--font-sans);
}

.grimoire-flavor-text {
  font-family: var(--font-grimoire) !important;
  font-style: italic;
}

/* Tactile Active Press Feedback */
button:active,
a:active,
.btn-gold:active,
.btn-wax:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
}

/* Skeleton Loading Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-box {
  background: linear-gradient(90deg, var(--party-surface) 25%, var(--badge-bg) 50%, var(--party-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

/* ===================================================
   PARTY THEME DUAL SYSTEM: ADVENTURER VS HOST
   =================================================== */

/* ADVENTURER MODE (PLAYER): High-Contrast Warm Parchment (WCAG AA Compliant for Play Store) */
.theme-adventurer {
  --party-bg: #F4ECE0;
  --party-bg-card: #FFFFFF;
  --party-bg-card-hover: #F8F1E5;
  --party-surface: #EADCBF;
  
  --party-text: #1A1008; /* Dark Inkwell Charcoal: > 15:1 Contrast Ratio */
  --party-text-muted: #4A3525; /* Deep Oak Walnut: > 8:1 Contrast Ratio */
  --party-title-color: #6E1212; /* Deep Medieval Crimson Title: > 9:1 Contrast Ratio */
  
  --party-amber: #B85C00;
  --party-gold-light: #7E4300;
  --party-wax-red: #8B1111;
  
  --border-gold: #B8860B;
  --border-card: #D0BE9F;
  
  --header-bg: linear-gradient(180deg, #EAD8B8 0%, #DFCAAA 100%);
  --nav-bg: linear-gradient(180deg, #EAD8B8 0%, #D8C3A0 100%);
  --nav-text-active: #6E1212;
  --nav-text-inactive: #4A3525;
  --nav-active-bg: rgba(184, 92, 0, 0.18);
  --badge-bg: #F5E5C9;
  --badge-text: #6E1212;
  --badge-border: #B8860B;

  /* Safety Line & Veil Contrast Variables */
  --safety-line-title: #991B1B;
  --safety-line-bg: rgba(185, 28, 28, 0.1);
  --safety-line-border: rgba(185, 28, 28, 0.4);
  --safety-line-text: #7F1D1D;
  --safety-line-badge-bg: rgba(185, 28, 28, 0.15);

  --safety-veil-title: #92400E;
  --safety-veil-bg: rgba(180, 83, 9, 0.1);
  --safety-veil-border: rgba(180, 83, 9, 0.4);
  --safety-veil-text: #78350F;
  --safety-veil-badge-bg: rgba(180, 83, 9, 0.15);

  /* Link & neutral surface (replace the orphaned navy/slate literals) */
  --link: #1D4ED8;
  --surface-neutral: #DCD3C2;
  --border-neutral: #B8AC93;

  /* Modal / drawer scrim (replaces the ad-hoc rgba(10,12,22,0.9x) navy) */
  --scrim: rgba(26, 16, 8, 0.6);

  /* Informational accent (replaces the orphaned #3B82F6 / #93C5FD / #38BDF8) */
  --info: #1D4ED8;
  --info-bg: rgba(29, 78, 216, 0.12);
  --info-border: rgba(29, 78, 216, 0.4);

  /* Generic status colors (form feedback, escrow/karma states) */
  --success: #1B7F3A;
  --success-bg: rgba(27, 127, 58, 0.12);
  --success-border: rgba(27, 127, 58, 0.4);
  --warning: #92400E;
  --warning-bg: rgba(180, 83, 9, 0.12);
  --warning-border: rgba(180, 83, 9, 0.4);
  --danger: #991B1B;
  --danger-bg: rgba(185, 28, 28, 0.12);
  --danger-border: rgba(185, 28, 28, 0.4);

  background-color: var(--party-bg);
  color: var(--party-text);
}

.theme-adventurer input,
.theme-adventurer textarea,
.theme-adventurer select {
  background-color: #FFFFFF !important;
  color: #1A1008 !important;
  border: 1.5px solid #B8860B !important;
  font-weight: 600 !important;
}

.theme-adventurer input::placeholder,
.theme-adventurer textarea::placeholder {
  color: #4A3525 !important;
  opacity: 1 !important;
}

.theme-adventurer .btn-gold {
  background: linear-gradient(135deg, #B85C00 0%, #8C4000 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #D97724 !important;
  box-shadow: 0 4px 12px rgba(184, 92, 0, 0.35) !important;
}

.theme-adventurer .btn-wax {
  background: linear-gradient(135deg, #8B1111 0%, #630808 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #B8860B !important;
}

/* HOST MODE (GM): Dark Obsidian Oak & Crimson Wax */
.theme-host {
  --party-bg: #18110B;
  --party-bg-card: #281D14;
  --party-bg-card-hover: #36261A;
  --party-surface: #1E140C;
  
  --party-text: #FFF8E7;
  --party-text-muted: #D4C5B3;
  --party-title-color: #F4C430;
  
  --party-amber: #F4C430;
  --party-gold-light: #FFE082;
  --party-wax-red: #B81D1D;
  
  --border-gold: rgba(244, 196, 48, 0.45);
  --border-card: rgba(217, 119, 36, 0.45);
  
  --header-bg: linear-gradient(180deg, #2A1C12 0%, #1A110A 100%);
  --nav-bg: linear-gradient(180deg, #281D14 0%, #170E08 100%);
  --nav-text-active: #F4C430;
  --nav-text-inactive: #C9B29B;
  --nav-active-bg: rgba(244, 196, 48, 0.18);
  --badge-bg: rgba(244, 196, 48, 0.2);
  --badge-text: #F4C430;
  --badge-border: rgba(244, 196, 48, 0.4);

  /* Safety Line & Veil Contrast Variables */
  --safety-line-title: #FCA5A5;
  --safety-line-bg: rgba(239, 68, 68, 0.18);
  --safety-line-border: rgba(239, 68, 68, 0.5);
  --safety-line-text: #FECACA;
  --safety-line-badge-bg: rgba(239, 68, 68, 0.25);

  --safety-veil-title: #FDE68A;
  --safety-veil-bg: rgba(245, 158, 11, 0.18);
  --safety-veil-border: rgba(245, 158, 11, 0.5);
  --safety-veil-text: #FEF3C7;
  --safety-veil-badge-bg: rgba(245, 158, 11, 0.25);

  /* Link & neutral surface (replace the orphaned navy/slate literals) */
  --link: #60A5FA;
  --surface-neutral: #2A2A35;
  --border-neutral: #47475A;

  /* Modal / drawer scrim (replaces the ad-hoc rgba(10,12,22,0.9x) navy) */
  --scrim: rgba(0, 0, 0, 0.78);

  /* Informational accent (replaces the orphaned #3B82F6 / #93C5FD / #38BDF8) */
  --info: #60A5FA;
  --info-bg: rgba(96, 165, 250, 0.15);
  --info-border: rgba(96, 165, 250, 0.4);

  /* Generic status colors (form feedback, escrow/karma states) */
  --success: #4ADE80;
  --success-bg: rgba(74, 222, 128, 0.15);
  --success-border: rgba(74, 222, 128, 0.4);
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.15);
  --warning-border: rgba(251, 191, 36, 0.4);
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.15);
  --danger-border: rgba(248, 113, 113, 0.4);

  background-color: var(--party-bg);
  color: var(--party-text);
}

/* ==========================================================================
   PARTY ÉPURÉ — système visuel restreint (Claude Design, 2026-10-01)
   Source : Design/rework_epure/party-epure.css (+ notes, ratios, usage) —
   brief Design/CLAUDE_DESIGN_BRIEF_rework_epure.md. Placé APRÈS les blocs de
   thème et les surcharges .btn-gold / .btn-wax par thème.
   Ordre : 1. jetons communs · 2. jetons par thème · 3. classes ·
           4. désactivé · 5. mouvement réduit
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. JETONS COMMUNS (indépendants du thème)
   -------------------------------------------------------------------------- */
:root {
  /* Espacements — base 4 px, 6 crans */
  --space-1: 4px;   /* écart libellé ↔ compteur, piste d'un segmenté, padding de menu */
  --space-2: 8px;   /* écart icône ↔ libellé, entre puces, entre boutons d'une carte */
  --space-3: 12px;  /* écart entre cartes, padding d'une ligne-carte, padding horizontal de puce */
  --space-4: 16px;  /* intérieur de carte, marge d'écran, padding horizontal de rubrique */
  --space-5: 24px;  /* entre deux sections d'un écran, entre groupes de rubriques */
  --space-6: 32px;  /* respiration d'un état vide, haut/bas d'une feuille */

  /* Rayons — 4 crans */
  --radius-sm: 6px;     /* badges, entrées de menu, segments (dans leur piste) */
  --radius-md: 10px;    /* boutons, champs, menu flottant, piste de segmenté, visuel de carte */
  --radius-lg: 14px;    /* cartes et groupes de rubriques */
  --radius-pill: 999px; /* puces, pastilles, sélecteur de mode */

  /* Typographie — les 6 crans existants + 1 cran « micro » */
  --text-display: 1.75rem;    --leading-display: 1.15;  /* Cinzel Decorative 700 : logo, h1 (Moi) */
  --text-title: 1.25rem;      --leading-title: 1.25;    /* Cinzel 700 : titre d'écran, titre de la carte de partie */
  --text-subtitle: 1rem;      --leading-subtitle: 1.35; /* Jakarta 600 : titre de carte, de conversation, de section */
  --text-body: 0.9375rem;     --leading-body: 1.55;     /* Jakarta 400 : texte courant ; 600 pour une rubrique */
  --text-label: 0.8125rem;    --leading-label: 1.4;     /* Jakarta 600 : boutons secondaires, puces, segments, onglets */
  --text-meta: 0.8125rem;     --leading-meta: 1.4;      /* Jakarta 500 : dates, lieux, compteurs écrits, détails */
  --text-micro: 0.6875rem;    --leading-micro: 1;       /* Jakarta 700 : UNIQUEMENT chiffres de pastille et sélecteur de mode */

  /* Ombres — 2 crans */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Mouvement */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-slow: 300ms;
}


/* --------------------------------------------------------------------------
   2. NOUVEAUX JETONS PAR THÈME (ajouts seulement)
   --unread-*    pastille « non lu » (une seule couleur par thème)
   --select-*    puce / segment / « ⋯ » sélectionné ou ouvert
   --count-*     compteur d'une puce (ex. « Filtres 2 »)
   --menu-highlight  survol / focus d'une entrée de menu, d'une puce, d'un « ⋯ »
   --disabled-*  bouton ou contrôle désactivé
   --switch-*    sélecteur de mode de l'en-tête (remplace les hex en dur)
   -------------------------------------------------------------------------- */
.theme-adventurer {
  --unread-bg: #8B1111;              --unread-text: #FFFFFF;
  --select-bg: #FFFFFF;              --select-border: #B85C00;      --select-text: #6E1212;
  --count-bg: #B85C00;               --count-text: #FFFFFF;
  --menu-highlight: rgba(184, 92, 0, 0.14);
  --disabled-border: #8C6A2E;        --disabled-text: #4A3525;
  --switch-track: linear-gradient(180deg, #DFCAAA 0%, #CEB592 100%);
  --switch-border: #B8860B;
  --switch-thumb: linear-gradient(135deg, #8B1111 0%, #630808 100%);
  --switch-thumb-border: #B8860B;
  --switch-text-active: #FFFFFF;     --switch-text-inactive: #4A3525;
}

.theme-host {
  --unread-bg: #FF6B5B;              --unread-text: #1C140E;
  --select-bg: #36261A;              --select-border: #F4C430;      --select-text: #F4C430;
  --count-bg: #F4C430;               --count-text: #1C140E;
  --menu-highlight: rgba(244, 196, 48, 0.16);
  --disabled-border: #9C8768;        --disabled-text: #D4C5B3;
  --switch-track: linear-gradient(180deg, #18110B 0%, #0D0804 100%);
  --switch-border: rgba(244, 196, 48, 0.45);
  --switch-thumb: linear-gradient(135deg, #A65300 0%, #7A3800 100%); /* était #B85C00 → #8C4000 : 4,3:1 sous le libellé, 5,1:1 désormais */
  --switch-thumb-border: #F4C430;
  --switch-text-active: #FFF8E7;     --switch-text-inactive: #D4C5B3;
}

/* Valeurs de jetons existants modifiées : AUCUNE.
   La cire (--party-wax-red) reste à 2,5:1 (MJ) comme forme
   sur une carte : elle garde son rôle d'identité (sceau, bouton .btn-wax dont
   le libellé est à 6,5 et 5,2:1) et n'est plus utilisée pour une pastille ni
   pour un segment actif — ces rôles passent à --unread-bg et --select-*. */


/* --------------------------------------------------------------------------
   3. CLASSES (ne lisent que des jetons)
   -------------------------------------------------------------------------- */

/* 3.0 Utilitaires de mise en page ------------------------------------------ */
.p-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.p-section + .p-section { margin-top: var(--space-5); }
.p-section__title {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font: 600 var(--text-subtitle)/var(--leading-subtitle) var(--font-sans);
  color: var(--party-text);
}
.p-section__title svg { width: 18px; height: 18px; color: var(--party-amber); flex: none; }

/* 3.1 Carte unique ---------------------------------------------------------- */
.p-card {
  position: relative;
  display: block;
  background: var(--party-bg-card);
  color: var(--party-text);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  text-align: left;
  font: 400 var(--text-body)/var(--leading-body) var(--font-sans);
}
.p-card--interactive {
  width: 100%;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.p-card--interactive:hover { background: var(--party-bg-card-hover); }
.p-card--interactive:active { background: var(--party-bg-card-hover); transform: none !important; }

/* « En cours / en direct » : bord ambre + liseré gauche de 3 px (forme, pas seulement couleur) */
.p-card--live {
  border-color: var(--party-amber);
  box-shadow: inset 3px 0 0 var(--party-amber), var(--shadow-card);
}

/* Ligne-carte (conversation, table, membre) : compacte, sur une ligne */
.p-card--row {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3);
}
.p-card__avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--badge-bg); border: 1px solid var(--border-gold);
  color: var(--party-amber); overflow: hidden;
}
.p-card__avatar svg { width: 20px; height: 20px; }
.p-card__body { flex: 1; min-width: 0; }

/* Page de grimoire (carte de partie d'Explorer) : même bord, rayon, padding ;
   le double cadre est dessiné à l'intérieur, sans changer les dimensions */
.p-card--feature {
  border-color: var(--border-gold);
  box-shadow: inset 0 0 0 5px var(--party-bg-card),
              inset 0 0 0 6px var(--border-card),
              var(--shadow-card);
}
.p-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--party-surface);
  margin-bottom: var(--space-3);
}

/* Éléments de carte */
.p-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.p-card__title {
  margin: 0;
  font: 600 var(--text-subtitle)/var(--leading-subtitle) var(--font-sans);
  color: var(--party-text);
  overflow-wrap: anywhere;
}
.p-card--feature .p-card__title {
  font: 700 var(--text-title)/var(--leading-title) var(--font-title);
  color: var(--party-title-color);
}
.p-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3);
  margin-top: var(--space-1);
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.p-card__meta svg { width: 14px; height: 14px; color: var(--party-amber); flex: none; }
.p-card__meta > span { display: inline-flex; align-items: center; gap: var(--space-1); }
.p-card__rule { border: 0; border-top: 1px dashed var(--border-gold); margin: var(--space-3) 0; }
.p-card__actions {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4);
}
.p-card__actions > .btn-gold,
.p-card__actions > .btn-wax { flex: 1; min-height: 44px; }

/* Pas de carte dans la carte : le contenu répété d'une carte est une liste à filets
   qui va bord à bord (la carte reste le seul cadre). */
.p-card__list {
  list-style: none;
  margin: var(--space-3) calc(-1 * var(--space-4)) calc(-1 * var(--space-4));
  padding: 0;
}
.p-card__list > li,
.p-card__list > .p-card__item {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-4);
  border-top: 1px solid var(--border-card);
  font: 600 var(--text-body)/var(--leading-body) var(--font-sans);
}
.p-card__item-main { flex: 1; min-width: 0; }
.p-card__item-meta { font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }

/* 3.2 Rubriques (Moi) -------------------------------------------------------- */
.p-row-group {
  --p-badge-ring: var(--party-bg-card);
  background: var(--party-bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.p-row-group + .p-row-group { margin-top: var(--space-5); }
/* Rows with a "⋯" menu: the list opens below the card, not clipped by it. */
.p-row-group--menus { overflow: visible; position: relative; z-index: 2; }
.p-row {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  background: transparent;
  border: 0;
  color: var(--party-text);
  text-align: left;
  text-decoration: none;
  font: 600 var(--text-body)/var(--leading-body) var(--font-sans);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.p-row + .p-row { border-top: 1px solid var(--border-card); }
/* Member page lines (UserProfileModal, lot 6): same thin rule between rows. */
.member-line + .member-line { border-top: 1px solid var(--border-card); }
.p-row:hover, .p-row:active { background: var(--party-bg-card-hover); transform: none !important; }
.p-row:focus-visible { outline-offset: -2px !important; }
.p-row__icon { flex: none; width: 18px; height: 18px; color: var(--party-amber); }
.p-row__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-row__detail {
  flex: 0 1 auto; min-width: 0; max-width: 55%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.p-row__chevron { flex: none; width: 16px; height: 16px; color: var(--party-text-muted); }
.p-row--danger, .p-row--danger .p-row__icon { color: var(--danger); }
.p-row--danger:hover { background: var(--danger-bg); }
.p-row[aria-disabled="true"], .p-row:disabled { color: var(--disabled-text); cursor: not-allowed; }
.p-row[aria-disabled="true"] .p-row__icon, .p-row:disabled .p-row__icon { color: var(--disabled-border); }
.p-row[aria-disabled="true"]:hover, .p-row:disabled:hover { background: transparent; }
/* A row that is not a button itself: its action sits on its right (Me ▸ Account). */
.p-row--static { cursor: default; }
.p-row--static:hover, .p-row--static:active { background: transparent; }

/* 3.3 Menu « ⋯ » ------------------------------------------------------------- */
.p-menu-anchor { position: relative; display: inline-flex; flex: none; }
.p-menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--party-text-muted);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.p-menu-button svg { width: 20px; height: 20px; }
.p-menu-button:hover { background: var(--menu-highlight); color: var(--party-text); }
.p-menu-button[aria-expanded="true"] {
  background: var(--select-bg);
  border-color: var(--select-border);
  color: var(--select-text);
}
.p-menu-button:disabled, .p-menu-button[aria-disabled="true"] {
  background: transparent; border-color: transparent;
  color: var(--disabled-border); cursor: not-allowed;
}
.p-menu-button:disabled:active { transform: none !important; }

.p-menu {
  position: absolute; top: calc(100% + var(--space-1)); right: 0; z-index: 50;
  display: flex; flex-direction: column;
  width: max-content;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-1);
  background: var(--party-bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  animation: p-menu-in var(--duration-fast) var(--ease-standard);
}
.p-menu--up { top: auto; bottom: calc(100% + var(--space-1)); }
@keyframes p-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.p-menu-item {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--party-text);
  text-align: left;
  font: 500 var(--text-body)/var(--leading-body) var(--font-sans);
  cursor: pointer;
}
.p-menu-item svg { width: 16px; height: 16px; flex: none; color: var(--party-amber); }
.p-menu-item:hover, .p-menu-item:focus { background: var(--menu-highlight); outline: none; }
.p-menu-item:focus-visible { outline: 2px solid var(--party-amber) !important; outline-offset: -2px !important; }
.p-menu-item:active { transform: none !important; }
.p-menu-item--danger, .p-menu-item--danger svg { color: var(--danger); }
.p-menu-item--danger:hover, .p-menu-item--danger:focus { background: var(--danger-bg); }
.p-menu-item:disabled, .p-menu-item[aria-disabled="true"] {
  background: transparent; color: var(--disabled-text); cursor: not-allowed;
}
.p-menu-item:disabled svg, .p-menu-item[aria-disabled="true"] svg { color: var(--disabled-border); }
.p-menu-separator { height: 1px; margin: var(--space-1) var(--space-2); background: var(--border-card); border: 0; }

/* 3.4 Puce de filtre ---------------------------------------------------------- */
.p-chip-row {
  display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-2);
  overflow-x: auto; scrollbar-width: none;
  padding: 6px 0; /* laisse dépasser la zone de toucher de 44 px */
}
.p-chip-row::-webkit-scrollbar { display: none; }
.p-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  flex: none;
  min-height: 32px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: var(--party-text);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.p-chip::after { content: ""; position: absolute; inset: -6px 0; } /* zone de toucher 44 px */
.p-chip svg { width: 16px; height: 16px; flex: none; color: var(--party-amber); }
.p-chip:hover { background: var(--menu-highlight); }
.p-chip[aria-pressed="true"],
.p-chip[aria-checked="true"],
.p-chip--applied {
  background: var(--select-bg);
  border-color: var(--select-border);
  box-shadow: inset 0 0 0 1px var(--select-border); /* bord visuel de 2 px sans décaler la mise en page */
  color: var(--select-text);
}
.p-chip[aria-pressed="true"] svg, .p-chip[aria-checked="true"] svg, .p-chip--applied svg { color: var(--select-text); }
.p-chip:disabled, .p-chip[aria-disabled="true"] {
  background: transparent; border-style: dashed; border-color: var(--disabled-border);
  box-shadow: none; color: var(--disabled-text); cursor: not-allowed;
}
.p-chip__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--count-bg); color: var(--count-text);
  font: 700 var(--text-micro)/var(--leading-micro) var(--font-sans);
  font-variant-numeric: tabular-nums;
}

/* 3.5 Contrôle segmenté -------------------------------------------------------- */
.p-segmented {
  --p-badge-ring: var(--party-surface);
  display: flex; gap: var(--space-1);
  padding: var(--space-1);
  background: var(--party-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}
.p-segmented__item {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 44px;
  padding: 0 var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--party-text-muted);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}
.p-segmented__item > .p-segmented__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p-segmented__item svg { display: none; } /* pas d'icône dans un segment : à 375 px elle coûte le libellé */
.p-segmented__item:hover { color: var(--party-text); }
.p-segmented__item:active { transform: none !important; }
.p-segmented__item[aria-selected="true"],
.p-segmented__item[aria-pressed="true"],
.p-segmented__item[aria-checked="true"] {
  --p-badge-ring: var(--select-bg);
  background: var(--select-bg);
  color: var(--select-text);
  box-shadow: inset 0 0 0 1.5px var(--select-border), var(--shadow-card);
}
.p-segmented__item:disabled, .p-segmented__item[aria-disabled="true"] { color: var(--disabled-text); cursor: not-allowed; opacity: 1; }
/* 4 segments : largeur au contenu (un libellé long prend la place d'un court) */
.p-segmented--fit .p-segmented__item { flex: 1 1 auto; padding: 0 var(--space-1); }
/* Compteur neutre (une quantité, pas une alerte) */
.p-segmented__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; flex: none;
  border-radius: var(--radius-pill);
  background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--badge-border);
  font: 700 var(--text-micro)/var(--leading-micro) var(--font-sans);
  font-variant-numeric: tabular-nums;
}

/* 3.6 Pastilles de notification ----------------------------------------------- */
.p-badge-host { position: relative; display: inline-flex; }
.p-badge-count {
  position: absolute; top: -4px; right: -6px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--unread-bg); color: var(--unread-text);
  box-shadow: 0 0 0 2px var(--p-badge-ring, var(--party-bg));
  font: 700 var(--text-micro)/var(--leading-micro) var(--font-sans);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.p-badge-count--inline { position: static; box-shadow: none; flex: none; }
.p-badge-dot {
  position: absolute; top: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--unread-bg);
  box-shadow: 0 0 0 2px var(--p-badge-ring, var(--party-bg));
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   4. ÉTAT DÉSACTIVÉ des boutons principaux (par thème, en !important)
   Contour pointillé + fond transparent + texte atténué : lisible (≥ 8,6:1)
   et distinct d'un bouton secondaire à contour plein.
   Pas d'opacité en ligne sur ces boutons (retirées au lot 0b) ; opacity: 1
   reste en garde-fou si un `style` en remet une.
   -------------------------------------------------------------------------- */
.theme-adventurer .btn-gold:disabled, .theme-adventurer .btn-gold[aria-disabled="true"],
.theme-adventurer .btn-wax:disabled,  .theme-adventurer .btn-wax[aria-disabled="true"],
.theme-adventurer .btn-gold:disabled:hover, .theme-adventurer .btn-gold:disabled:active,
.theme-adventurer .btn-wax:disabled:hover,  .theme-adventurer .btn-wax:disabled:active,
.theme-host .btn-gold:disabled, .theme-host .btn-gold[aria-disabled="true"],
.theme-host .btn-wax:disabled,  .theme-host .btn-wax[aria-disabled="true"],
.theme-host .btn-gold:disabled:hover, .theme-host .btn-gold:disabled:active,
.theme-host .btn-wax:disabled:hover,  .theme-host .btn-wax:disabled:active {
  background: transparent !important;
  color: var(--disabled-text) !important;
  border: 1px dashed var(--disabled-border) !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}


/* --------------------------------------------------------------------------
   5. MOUVEMENT RÉDUIT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn-gold:hover, .btn-wax:hover,
  button:active, .btn-gold:active, .btn-wax:active { transform: none !important; }
  .p-card, .p-row, .p-chip, .p-segmented__item, .p-menu-button, .p-menu-item {
    transition-duration: 0.01ms !important;
  }
  .p-menu { animation: none !important; }
}

/* ===================================================
   ACCESSIBILITY & KEYBOARD FOCUS (:focus-visible)
   =================================================== */
:focus-visible {
  outline: 2px solid var(--party-amber) !important;
  outline-offset: 2px !important;
}

:focus:not(:focus-visible) {
  outline: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--party-amber) !important;
  outline-offset: 2px !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #120C07;
  color: #FFF8E7;
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 4px;
}

/* Mobile Frame Wrapper */
.mobile-app-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 960px;
  border-radius: 24px;
  border: 2px solid var(--border-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(217, 119, 36, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: var(--party-bg);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/*
 * System-bar safe areas. Android 15+ (and Capacitor 8) draw the WebView
 * edge-to-edge: the status bar and the 3-button / gesture navigation bar are
 * translucent overlays, and the page runs underneath them. index.html opts
 * into that with viewport-fit=cover, so the browser exposes the overlap as
 * env(safe-area-inset-*); Capacitor additionally injects the same values as
 * --safe-area-inset-* on <html> for WebViews that don't. Either way, nothing
 * here consumed them — the header sat under the clock and the bottom nav
 * under the back/home/recents buttons on a Pixel 9 Pro. Pad the shell, so the
 * app's own background shows behind the bars and every control is reachable.
 */
:root {
  --sa-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sa-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --sa-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --sa-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
}

@media (max-width: 768px) {
  .mobile-app-wrapper {
    max-width: 100vw;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    /*
     * The insets are a transparent BORDER, not padding: an overlay placed
     * with `position: absolute; inset: 0` fills its containing block's
     * padding box, which includes padding but not the border. With padding,
     * every full-screen sheet and modal (Me ▸ Reviews, Administration, …)
     * ran up under the status bar and its close button could not be tapped.
     * The wrapper's background still paints behind the bars (border-box).
     * `contain: layout` makes the wrapper the containing block of
     * `position: fixed` overlays too, so they stop at the same edges.
     */
    border-style: solid;
    border-color: transparent;
    border-width: var(--sa-top) var(--sa-right) var(--sa-bottom) var(--sa-left);
    contain: layout;
  }
}

/* Header — the bar itself; TopHeader sets its own themed background inline. */
.app-header {
  padding: 14px 18px 10px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  container-type: inline-size;
}
/* Logo · mode switch · bell · Friends · avatar do not fit a 375 px phone with
   the PARTY wordmark: below 420 px the logo stands alone. */
@container (max-width: 420px) {
  .app-header__wordmark { display: none; }
}

/* Meeting map — community pin is an inline SVG divIcon; Leaflet's default
   .leaflet-div-icon paints a white box behind it, so clear that. */
.party-community-pin {
  background: none;
  border: none;
}

/* Explorer ▸ Parties: one line per table; a tap unfolds the card under it */
.campaign-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.campaign-row { padding: 0; overflow: hidden; }
.campaign-row.is-open { border-color: var(--border-gold); }
.campaign-row__head {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.campaign-row__head:hover,
.campaign-row__head:active { background: var(--party-bg-card-hover); transform: none !important; }
.campaign-row__head:focus-visible { outline-offset: -2px !important; }
.campaign-row__thumb {
  flex: none; width: 44px; height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--party-surface);
}
.campaign-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* titles are capped (CAMPAIGN_TITLE_MAX) to fit; the ellipsis only catches older, longer ones */
.campaign-row__title {
  font: 600 var(--text-subtitle)/var(--leading-subtitle) var(--font-sans);
  color: var(--party-title-color);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.campaign-row__line {
  display: flex; align-items: baseline;
  min-width: 0;
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
/* the game name shortens with an ellipsis; the distance and the seats never do */
.campaign-row__system { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-row__distance { flex: none; white-space: pre; }
.campaign-row__state { flex: none; display: inline-block; margin-left: auto; padding-left: var(--space-2); font-weight: 600; white-space: nowrap; }
.campaign-row__state::first-letter { text-transform: uppercase; }
.campaign-row__state.is-in { color: var(--success); }
.campaign-row__state.is-pending { color: var(--party-amber); }
.campaign-row__state.is-full { color: var(--danger); }
/* "when I'm free": green = free, orange = maybe, a ring = time to be agreed */
.campaign-row__fit {
  flex: none; align-self: center;
  width: 8px; height: 8px; margin-right: 6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.campaign-row__fit.is-free { background: var(--success); }
.campaign-row__fit.is-maybe { background: var(--warning); }
.campaign-row__fit.is-tbd { border-color: var(--party-text-muted); }
.campaign-fit-legend {
  display: flex; flex-wrap: wrap; gap: 4px var(--space-3);
  margin: 0 2px 8px;
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.campaign-fit-legend > span { display: inline-flex; align-items: center; }
.campaign-fit-hidden {
  margin: 0 2px 8px;
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.campaign-fit-hidden > button {
  font: inherit; font-weight: 700;
  background: none; border: none; padding: 0;
  color: var(--party-amber); text-decoration: underline; cursor: pointer;
}

/* Explorer ▸ Filtres et Trier (lot 1) ----------------------------------------
   Filtres: a full-height sheet in three sections (Où, Quand, Pour qui), the
   live count in its footer. Trier: a bottom sheet of radios. */
.explorer-results {
  display: flex; align-items: center; gap: var(--space-1);
  min-height: 44px;
}
.explorer-results__count {
  flex: 1; min-width: 0;
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.explorer-results__action {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; justify-content: center;
  padding: 0 var(--space-2);
  background: transparent; border: 0; border-radius: var(--radius-sm);
  color: var(--party-title-color);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  cursor: pointer;
}
.explorer-results__action svg { width: 16px; height: 16px; flex: none; color: var(--party-amber); }
.explorer-results__action:hover { background: var(--menu-highlight); }
.explorer-results__action:disabled { color: var(--party-text-muted); cursor: default; background: transparent; }
.explorer-results__action .p-chip__count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; }

.filters-sheet__scrim {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; justify-content: center; align-items: stretch;
  background: var(--scrim); backdrop-filter: blur(8px);
}
.filters-sheet {
  display: flex; flex-direction: column;
  width: 100%; max-width: 480px; height: 100%;
  background: var(--party-bg);
  border-left: 1px solid var(--border-card); border-right: 1px solid var(--border-card);
}
.filters-sheet__header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  padding-top: calc(var(--space-2) + env(safe-area-inset-top, 0px));
  background: var(--party-surface);
  border-bottom: 1px solid var(--border-card);
}
.filters-sheet__title {
  margin: 0;
  font-family: var(--font-title); font-size: 1.15rem; color: var(--party-title-color);
}
.filters-sheet__icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: none; border: 0; color: var(--party-text-muted); cursor: pointer;
}
.filters-sheet__link {
  min-height: 44px; padding: 0 var(--space-1);
  background: none; border: 0;
  color: var(--party-title-color);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  text-decoration: underline; cursor: pointer;
}
.filters-sheet__link:disabled { color: var(--party-text-muted); text-decoration: none; cursor: default; }
.filters-sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--space-4); }
.filters-sheet__section {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4) 0;
}
.filters-sheet__section + .filters-sheet__section { border-top: 1px solid var(--border-card); }
.filters-sheet__section-title {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0;
  font-family: var(--font-title); font-size: 1rem; color: var(--party-title-color);
}
.filters-sheet__section-title svg { width: 18px; height: 18px; color: var(--party-amber); flex: none; }
.filters-sheet__label {
  margin: 0;
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  color: var(--party-text);
}
.filters-sheet__hint {
  margin: 0;
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.filters-sheet__hint > button {
  font: inherit; font-weight: 700; padding: 0;
  background: none; border: 0;
  color: var(--party-amber); text-decoration: underline; cursor: pointer;
}
.filters-sheet__place {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 52px; padding: 6px var(--space-3);
  background: var(--party-bg-card);
  border: 1px solid var(--border-card); border-radius: var(--radius-md);
}
.filters-sheet__place-text { flex: 1; min-width: 0; }
.filters-sheet__place-name {
  font: 600 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filters-sheet__place-source { font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.filters-sheet__place > svg { width: 18px; height: 18px; color: var(--party-amber); flex: none; }
.filters-sheet__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 var(--space-3); flex: none;
  background: var(--party-bg-card);
  border: 1px solid var(--border-gold); border-radius: var(--radius-md);
  color: var(--party-title-color);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  cursor: pointer;
}
.filters-sheet__btn svg { width: 16px; height: 16px; color: var(--party-amber); flex: none; }
.filters-sheet__btn--danger { border-color: var(--danger-border); color: var(--danger); background: var(--danger-bg); }
.filters-sheet__btn--danger svg { color: var(--danger); }
.filters-sheet__add {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 var(--space-1);
  background: none; border: 0;
  color: var(--party-title-color);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
  cursor: pointer;
}
.filters-sheet__add svg { width: 16px; height: 16px; color: var(--party-amber); }
.filters-sheet__add:disabled { cursor: default; color: var(--party-text-muted); }
.filters-sheet__switch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; min-height: 48px; padding: 0;
  background: none; border: 0; text-align: left;
  color: var(--party-text);
  font: 600 var(--text-body)/var(--leading-body) var(--font-sans);
  cursor: pointer;
}
.filters-sheet__track {
  position: relative; flex: none;
  width: 46px; height: 28px; border-radius: var(--radius-pill);
  background: var(--party-surface); border: 1px solid var(--border-gold);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.filters-sheet__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--party-text-muted);
  transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.filters-sheet__switch[aria-checked="true"] .filters-sheet__track { background: var(--select-border); border-color: var(--select-border); }
.filters-sheet__switch[aria-checked="true"] .filters-sheet__track::after { transform: translateX(18px); background: var(--party-bg); }
.filters-sheet__row-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; min-height: 48px; padding: 0;
  background: none; border: 0; text-align: left;
  color: var(--party-text);
  font: 600 var(--text-body)/var(--leading-body) var(--font-sans);
  cursor: pointer;
}
.filters-sheet__row-value {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0;
  font-weight: 500; color: var(--party-text-muted);
}
.filters-sheet__row-value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.filters-sheet__row-value svg { width: 16px; height: 16px; flex: none; transition: transform var(--duration-fast) var(--ease-standard); }
.filters-sheet__row-btn[aria-expanded="true"] .filters-sheet__row-value svg { transform: rotate(90deg); }
.filters-sheet__footer {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--party-surface);
  border-top: 1px solid var(--border-card);
}
.filters-sheet__footer .btn-gold { min-height: 52px; font-size: 0.95rem; }

.sort-sheet__scrim {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; justify-content: center; align-items: flex-end;
  background: var(--scrim);
}
.sort-sheet {
  display: flex; flex-direction: column; gap: var(--space-2);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  padding: var(--space-2) var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--party-bg);
  border: 1px solid var(--border-card); border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
.sort-sheet__grip { align-self: center; width: 40px; height: 4px; border-radius: var(--radius-pill); background: var(--border-card); margin: 2px 0 4px; }
.sort-sheet__option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  width: 100%; min-height: 60px; padding: var(--space-3);
  background: var(--party-bg-card);
  border: 1px solid var(--border-card); border-radius: var(--radius-md);
  text-align: left; cursor: pointer;
}
.sort-sheet__option[aria-checked="true"] { background: var(--select-bg); box-shadow: inset 0 0 0 2px var(--select-border); border-color: var(--select-border); }
.sort-sheet__dot {
  flex: none; width: 20px; height: 20px; margin-top: 1px; box-sizing: border-box;
  border-radius: 50%; border: 2px solid var(--border-gold); background: var(--party-bg);
}
.sort-sheet__option[aria-checked="true"] .sort-sheet__dot { border: 6px solid var(--select-border); }
.sort-sheet__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sort-sheet__label { font: 700 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text); }
.sort-sheet__hint { font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
/* « Où jouerez-vous ? » — first step of a new table (TableWhereStep, lot 5):
   radio cards like Trier's, chips for the rendez-vous, Continuer at the foot. */
.where-step { display: flex; flex-direction: column; gap: var(--space-3); min-height: 100%; }
.where-step__title { margin: 0; font: 700 var(--text-title)/var(--leading-title) var(--font-title); color: var(--party-title-color); }
.where-step__group { display: flex; flex-direction: column; gap: var(--space-2); }
.where-step__label { margin-top: var(--space-1); font: 600 var(--text-label)/var(--leading-label) var(--font-sans); color: var(--party-text); }
.where-step__hint { margin: 0; display: flex; align-items: center; gap: 6px; font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.where-step__info {
  margin: 0; padding: var(--space-2) var(--space-3);
  background: var(--party-bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text);
}
.where-step__switch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3); background: var(--party-bg-card);
  border: 1px solid var(--border-card); border-radius: var(--radius-md);
}
.where-step__footer {
  position: sticky; bottom: calc(-1 * var(--space-4)); margin-top: auto;
  padding: var(--space-3) 0 var(--space-4);
  /* solid: a disabled Continuer is see-through (the app's disabled style) */
  background: var(--party-bg);
  border-top: 1px solid var(--border-card);
}
.where-step__continue { width: 100%; min-height: 48px; font-size: var(--text-body); }
.where-option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  width: 100%; min-height: 56px; padding: var(--space-3);
  background: var(--party-bg-card);
  border: 1px solid var(--border-card); border-radius: var(--radius-md);
  text-align: left; cursor: pointer; color: var(--party-text);
}
.where-option[aria-checked="true"] { background: var(--select-bg); box-shadow: inset 0 0 0 2px var(--select-border); border-color: var(--select-border); }
.where-option__dot {
  flex: none; width: 20px; height: 20px; margin-top: 1px; box-sizing: border-box;
  border-radius: 50%; border: 2px solid var(--border-gold); background: var(--party-bg);
}
.where-option[aria-checked="true"] .where-option__dot { border: 6px solid var(--select-border); }
.where-option__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.where-option__title { font: 700 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text); }
.where-option__body { font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.where-search {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 46px; padding: 0 var(--space-3);
  background: var(--party-bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  color: var(--party-text-muted);
}
.where-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--party-text); font: 400 var(--text-body)/var(--leading-body) var(--font-sans); }
.where-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
/* name and meta, the join button on their right, then the note full width */
.where-result {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-3); background: var(--party-surface);
  border: 1px dashed var(--border-card); border-radius: var(--radius-md);
}
.where-result__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.where-result > .where-result__note { flex-basis: 100%; }
.where-result__name { font: 600 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text); }
.where-result__meta, .where-result__note { font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.where-result__note--pending { color: var(--party-amber); }
.where-result__note--error { color: var(--danger); }
.where-result__join { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3); font-size: var(--text-label); }
.where-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.where-chip { min-height: 40px; }
.where-summary {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3); background: var(--party-bg-card);
  border: 1.5px solid var(--border-gold); border-radius: 10px;
}
.where-summary__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.where-summary__title { font: 700 var(--text-label)/var(--leading-label) var(--font-sans); color: var(--party-title-color); }
.where-summary__meta { display: flex; align-items: center; gap: 5px; font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.where-summary__change {
  flex: none; min-height: 40px; padding: 0 var(--space-3);
  background: transparent; border: 1px solid var(--border-gold); border-radius: var(--radius-pill);
  color: var(--party-amber); font: 600 var(--text-label)/var(--leading-label) var(--font-sans); cursor: pointer;
}
/* « Ajouter une communauté » in three steps (CreateCommunityModal, lot 6):
   a full-height sheet, a 3-segment progress bar, the action at the foot. */
.cc-sheet {
  position: fixed; inset: 0; z-index: 2000; margin: 0 auto; width: 100%; max-width: 480px;
  display: flex; flex-direction: column; background: var(--party-bg); color: var(--party-text);
}
.cc-head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: calc(var(--space-1) + env(safe-area-inset-top, 0px)) var(--space-2) var(--space-1);
  background: var(--party-bg-card); border-bottom: 1px solid var(--border-card);
}
.cc-head__btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--party-text); cursor: pointer;
}
.cc-head__spacer { flex: none; width: 44px; }
.cc-head__title {
  flex: 1; min-width: 0; margin: 0; text-align: center;
  font: 700 var(--text-subtitle)/var(--leading-subtitle) var(--font-title); color: var(--party-title-color);
}
.cc-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: var(--space-3) var(--space-4) 0; }
.cc-progress__seg { height: 4px; border-radius: var(--radius-pill); background: var(--border-card); }
.cc-progress__seg--on { background: var(--party-title-color); }
.cc-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.cc-eyebrow { margin-bottom: calc(-1 * var(--space-3)); font: 600 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.cc-title {
  margin: 0; display: flex; align-items: center; gap: var(--space-2);
  font: 700 var(--text-title)/var(--leading-title) var(--font-title); color: var(--party-title-color);
}
.cc-kinds { display: flex; flex-direction: column; gap: var(--space-3); }
.cc-kind {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-4);
  background: var(--party-bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  text-align: left; cursor: pointer; color: var(--party-text);
}
.cc-kind[aria-checked="true"] { background: var(--select-bg); box-shadow: inset 0 0 0 2px var(--select-border); border-color: var(--select-border); }
.cc-kind__icon {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: var(--radius-lg); background: var(--party-surface); border: 1px solid var(--border-card);
}
.cc-kind__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-kind__title { font: 700 var(--text-subtitle)/var(--leading-subtitle) var(--font-sans); color: var(--party-text); }
.cc-kind__body { font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.cc-field { display: flex; flex-direction: column; gap: 6px; }
.cc-field__label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text); }
.cc-field__required { color: var(--party-amber); }
.cc-field__optional { font-weight: 500; color: var(--party-text-muted); }
.cc-input {
  width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 var(--space-3);
  background: var(--party-surface); color: var(--party-text);
  border: 1.5px solid var(--border-gold); border-radius: var(--radius-md);
  font: 400 var(--text-body)/var(--leading-body) var(--font-sans);
}
.cc-input[aria-invalid="true"] { border-color: var(--danger); }
.cc-hint { display: flex; align-items: center; gap: 5px; margin: 0; font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.cc-hint--danger { color: var(--danger); }
.cc-hint--ok { color: var(--success); }
.cc-place { display: flex; align-items: flex-start; gap: 6px; font: 600 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--success); }
.cc-place svg { flex: none; margin-top: 2px; }
.cc-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-1);
  border: 0; background: transparent; color: var(--party-title-color); cursor: pointer;
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
}
.cc-link--underline { text-decoration: underline; }
.cc-link--inline { display: inline; min-height: 0; padding: 0; text-decoration: underline; }
.cc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cc-day {
  min-height: 44px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--party-surface); color: var(--party-text); border: 1px solid var(--border-card);
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
}
.cc-day[aria-pressed="true"] { background: var(--select-bg); color: var(--select-text); border: 2px solid var(--select-border); }
.cc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.cc-note { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text); }
.cc-note svg { flex: none; margin-top: 2px; }
.cc-note--box { padding: var(--space-3); background: var(--party-bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.cc-publish {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4);
  background: var(--party-bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
}
.cc-publish__title { font: 600 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text); }
.cc-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 44px; cursor: pointer; font: 500 var(--text-body)/var(--leading-body) var(--font-sans); color: var(--party-text); }
.cc-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--party-amber); }
.cc-check__hint { display: block; font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.cc-claim { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--border-card); }
.cc-alert { display: flex; align-items: flex-start; gap: 6px; padding: var(--space-3); border-radius: var(--radius-md); font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); }
.cc-alert svg { flex: none; margin-top: 2px; }
.cc-alert--danger { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-border); }
.cc-alert--warning { color: var(--warning); background: var(--warning-bg); border: 1px solid var(--warning-border); }
.cc-dup { flex-direction: column; align-items: stretch; gap: var(--space-2); }
.cc-dup__hint { color: var(--party-text-muted); }
.cc-dup__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cc-chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3);
  background: var(--party-surface); color: var(--party-title-color);
  border: 1px solid var(--border-gold); border-radius: var(--radius-pill); cursor: pointer;
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
}
.cc-inline { display: inline-flex; align-items: flex-start; gap: 5px; }
.cc-created {
  display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4);
  background: var(--party-bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
}
.cc-created__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-created__name { font: 700 var(--text-subtitle)/var(--leading-subtitle) var(--font-title); color: var(--party-title-color); }
.cc-created__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--party-text-muted); }
.cc-created__status { display: inline-flex; align-items: center; gap: 4px; font: 600 var(--text-meta)/var(--leading-meta) var(--font-sans); color: var(--warning); }
.cc-foot {
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--party-bg-card); border-top: 1px solid var(--border-card);
}
.cc-foot--stack { display: flex; flex-direction: column; gap: var(--space-2); }
.cc-foot__main { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--text-body); }
.cc-foot__secondary {
  width: 100%; min-height: 48px; background: transparent; color: var(--party-text);
  border: 1px solid var(--border-card); border-radius: var(--radius-md); cursor: pointer;
  font: 600 var(--text-label)/var(--leading-label) var(--font-sans);
}
.campaign-row__panel {
  border-top: 1px dashed var(--border-gold);
  padding: var(--space-3);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: campaign-row-open var(--duration-fast) var(--ease-standard);
}
@keyframes campaign-row-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-row__panel { animation: none; }
}

/* Explorer ▸ Parties: a rendez-vous' date, a line that unfolds on its tables (lot 3) */
.campaign-group { padding: 0; overflow: hidden; }
.campaign-group.is-open { border-color: var(--border-gold); }
.campaign-group__head {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  background: var(--party-surface);
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.campaign-group__head:hover,
.campaign-group__head:active { background: var(--party-bg-card-hover); transform: none !important; }
.campaign-group__head:focus-visible { outline-offset: -2px !important; }
.campaign-group__date {
  flex: none; width: 44px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.campaign-group__weekday {
  font: 700 var(--text-micro)/var(--leading-micro) var(--font-sans);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--party-amber);
}
.campaign-group__day {
  font: 700 1.25rem/1.1 var(--font-title);
  color: var(--party-title-color);
}
.campaign-group__chevron {
  flex: none; width: 18px; height: 18px;
  color: var(--party-text-muted);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.campaign-group.is-open .campaign-group__chevron { transform: rotate(180deg); }
.campaign-group__panel {
  border-top: 1px solid var(--border-card);
  padding: var(--space-2);
  display: flex; flex-direction: column; gap: var(--space-2);
  animation: campaign-row-open var(--duration-fast) var(--ease-standard);
}
.campaign-group__propose {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1.5px dashed var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--party-title-color);
  font: 600 var(--text-body)/var(--leading-body) var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.campaign-group__propose svg { flex: none; width: 18px; height: 18px; color: var(--party-amber); }
.campaign-group__propose:hover { background: var(--party-bg-card-hover); }
@media (prefers-reduced-motion: reduce) {
  .campaign-group__panel { animation: none; }
  .campaign-group__chevron { transition: none; }
}

/* A table's community: a chip that opens its sheet (lot 3) */
.campaign-row__community { padding: 0 var(--space-3) var(--space-3) calc(44px + 2 * var(--space-3)); margin-top: calc(-1 * var(--space-2)); }
.community-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; min-height: 28px;
  padding: 0 10px;
  background: var(--badge-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--party-title-color);
  font: 600 var(--text-meta)/var(--leading-meta) var(--font-sans);
  vertical-align: middle;
  cursor: pointer;
}
.community-chip::after { content: ""; position: absolute; inset: -8px 0; } /* zone de toucher 44 px */
.community-chip svg { flex: none; width: 13px; height: 13px; color: var(--party-amber); }
.community-chip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-chip:hover { background: var(--menu-highlight); }

/* Explorer ▸ Communautés ▸ « Mes communautés » (lot 3) */
.my-community { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.my-community .p-card__body { display: flex; flex-direction: column; gap: 2px; }
/* a long name takes two lines rather than an ellipsis: the badges keep their room */
.my-community__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.my-community__meta {
  font: 500 var(--text-meta)/var(--leading-meta) var(--font-sans);
  color: var(--party-text-muted);
}
.my-community__badges { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.my-community__pill {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border-radius: var(--radius-sm, 6px);
  background: var(--party-surface); border: 1px solid var(--border-card);
  color: var(--party-text-muted);
  font: 600 var(--text-micro)/var(--leading-micro) var(--font-sans);
  white-space: nowrap;
}
.my-community__pill.is-urgent { background: var(--unread-bg); border-color: transparent; color: var(--unread-text); }
.my-community__pill.is-unread { background: var(--badge-bg); border-color: var(--badge-border); color: var(--badge-text); }
.my-community__chevron { flex: none; width: 18px; height: 18px; color: var(--party-amber); }
/* « Ajouter une communauté »: the last chip of the row, pushed to its end */
.p-chip--add { margin-left: auto; border-color: var(--border-gold); color: var(--party-title-color); }

.grimoire-page-title {
  font-family: var(--font-title);
  color: var(--party-title-color);
  font-size: 1.5rem;
  line-height: 1.25;
  border-bottom: 1.5px dashed var(--border-gold);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Signal Style Group Chat with Medieval Parchment Bubbles */
.signal-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--party-bg);
  transition: background-color 0.4s ease;
}

.signal-msg-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 8px;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.signal-msg-incoming {
  background: var(--party-bg-card);
  color: var(--party-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--border-gold);
}

.signal-msg-outgoing {
  background: linear-gradient(135deg, #9B1B1B 0%, #6B1111 100%);
  color: #FFF8E7 !important;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  border: 1px solid #D97724;
  box-shadow: 0 4px 14px rgba(155, 27, 27, 0.4);
}

/* OpenStreetMap Modal */
.leaflet-container {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  z-index: 10;
  /* Android WebView stops clipping the moving tiles (translate3d) to the
     rounded box while the page scrolls: they bled over the fields above
     (Me ▸ Profil, the bio). A mask makes the clip hold. */
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Badges & High-Contrast Buttons */
.badge-gold {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-gold {
  background: linear-gradient(135deg, #F4C430 0%, #D97724 100%);
  color: #1C140E !important;
  border: 1px solid #FFE082;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 36, 0.4);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFE082 0%, #E68A2E 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 36, 0.6);
}

.btn-wax {
  background: linear-gradient(135deg, #9B1B1B 0%, #6B1111 100%);
  color: #FFF8E7 !important;
  border: 1px solid #D97724;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(155, 27, 27, 0.5);
}

.btn-wax:hover {
  background: linear-gradient(135deg, #B82222 0%, #801414 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 27, 27, 0.7);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}
