/* 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;
		}
	}

/* Sidelight Fält – used outdoors, standing, often one-handed.
   Light high-contrast surfaces for sunlight, 17 px text, 52 px buttons, main actions at the bottom (thumb zone).
   System font (SF Pro on iPhone) so nothing has to load on site. */
:root{
  --bg:#f3f4f1; --surface:#ffffff; --ink:#0f1512; --muted:#3f4842; --line:#c9cfc7; --soft:#e7eae4;
  --accent:#a3301f; --accent-ink:#ffffff; --ok:#1d6b43; --ok-soft:#dcefe3; --miss:#a3301f; --miss-soft:#f6e1dd;
  --shadow:0 8px 28px rgba(15,21,18,.18);
  --font:-apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --bar:64px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#101412; --surface:#1a201c; --ink:#f1f3ef; --muted:#b9c2bb; --line:#38413b; --soft:#232a25;
    --accent:#e0604f; --accent-ink:#1a0d0a; --ok:#6fcf97; --ok-soft:#1d3426; --miss:#ff8a78; --miss-soft:#3a2420;
    --shadow:0 8px 28px rgba(0,0,0,.5);
    color-scheme:dark;
  }
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font:400 17px/1.45 var(--font);-webkit-text-size-adjust:100%}
body{overscroll-behavior-y:none}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}
.boot{padding:40px 20px;color:var(--muted)}
.tabular{font-variant-numeric:tabular-nums}

/* ---- frame: top bar, scrolling content, primary action + tab bar at the bottom */
.screen{min-height:100%;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px)}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 12px calc(6px) 6px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding-top:calc(6px + env(safe-area-inset-top,0px));margin-top:calc(-1 * env(safe-area-inset-top,0px))}
.top h1{flex:1;min-width:0;margin:0;font-size:17px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.back{min-width:48px;height:44px;border:0;background:none;color:var(--accent);font-weight:600;padding:0 8px;display:flex;align-items:center;gap:2px}
.saved{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:5px;white-space:nowrap}
.saved i{width:8px;height:8px;border-radius:50%;background:var(--ok)}
.saved.busy i{background:var(--muted)}
.content{flex:1;padding:16px 16px calc(var(--bar) + 96px + env(safe-area-inset-bottom,0px))}
.content.nobar{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.dock{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:0 12px env(safe-area-inset-bottom,0px);background:linear-gradient(transparent,var(--bg) 22%)}
.dock .primary{margin:14px 0 10px}
.tabs{display:grid;grid-template-columns:repeat(5,1fr);height:var(--bar);border-top:1px solid var(--line);background:var(--bg);margin:0 -12px;padding:0 4px}
.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--muted);font-size:12px;font-weight:600;position:relative}
.tabs a svg{width:24px;height:24px}
.tabs a.on{color:var(--accent)}
.tabs a .n{position:absolute;top:6px;right:calc(50% - 22px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:11px;line-height:18px;text-align:center;background:var(--soft);color:var(--ink)}
.tabs a .n.ok{background:var(--ok);color:#fff}
.tabs a .n.miss{background:var(--miss);color:#fff}

/* ---- buttons */
.primary{display:flex;width:100%;min-height:54px;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-weight:650;font-size:17px;padding:0 18px;box-shadow:var(--shadow)}
.primary:disabled{opacity:.5}
.btn{display:inline-flex;min-height:48px;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);font-weight:600;padding:0 16px}
.btn.wide{display:flex;width:100%}
.btn.accent{border-color:var(--accent);color:var(--accent)}
.btn svg,.primary svg{width:22px;height:22px;flex:none}
.link{border:0;background:none;color:var(--accent);font-weight:600;padding:10px 0;min-height:44px}

/* ---- text + cards */
h2{font-size:22px;line-height:1.2;margin:8px 0 6px;letter-spacing:-.01em}
.lead{color:var(--muted);margin:0 0 16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px}
.card h3{margin:0 0 4px;font-size:18px}
.card p{margin:0;color:var(--muted)}
.hint{color:var(--muted);font-size:15px;margin:2px 0 10px}
.section{margin:22px 0 10px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.section h2{margin:0}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:650;white-space:nowrap}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.miss{background:var(--miss-soft);color:var(--miss)}
.pill.soft{background:var(--soft);color:var(--muted)}

/* ---- form fields */
.field{display:block;margin-bottom:14px}
.field>span{display:block;font-size:14px;font-weight:650;margin-bottom:6px}
.input{width:100%;min-height:52px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);padding:12px 14px;font-size:17px}
.input:focus{border-color:var(--accent);outline:none}
textarea.input{min-height:96px;resize:vertical}
.big{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.numrow{display:flex;gap:8px;align-items:stretch}
.numrow .input{flex:1;min-width:0}
.sign{width:60px;flex:none;border:1.5px solid var(--line);border-radius:12px;background:var(--soft);font-size:26px;font-weight:700}
.reads{font-size:15px;margin-top:6px;color:var(--muted);min-height:22px}
.reads b{color:var(--ink)}
.reads.bad{color:var(--miss)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:48px;border:1.5px solid var(--line);border-radius:999px;background:var(--surface);padding:0 18px;font-weight:600}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* ---- visits list */
.visit{display:flex;gap:14px;align-items:center;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:10px}
.visit .meta{flex:1;min-width:0}
.visit b{display:block;font-size:18px}
.visit small{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.visit svg{width:20px;height:20px;color:var(--muted);flex:none}
.empty{text-align:center;padding:36px 16px;color:var(--muted)}
.tip{border:1.5px dashed var(--line);border-radius:16px;padding:14px 16px;margin-bottom:12px;font-size:15px;color:var(--muted)}
.tip b{color:var(--ink)}

/* ---- photo rows */
.item{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:10px}
.item .head{display:flex;gap:12px;align-items:flex-start}
.item .head .t{flex:1;min-width:0}
.item .head b{display:block;font-size:17px}
.item .head small{display:block;color:var(--muted);font-size:14px;line-height:1.35;margin-top:2px}
.shoot{flex:none;width:58px;height:58px;border-radius:14px;border:0;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center}
.shoot svg{width:28px;height:28px}
.thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:10px;padding-bottom:2px;scrollbar-width:none}
.thumbs::-webkit-scrollbar{display:none}
.thumbs button{flex:none;width:72px;height:72px;border:0;border-radius:10px;padding:0;overflow:hidden;background:var(--soft)}
.thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.counter{display:flex;align-items:baseline;gap:6px;margin-top:10px;font-variant-numeric:tabular-nums}
.counter b{font-size:30px;font-weight:700}
.bar{height:8px;border-radius:4px;background:var(--soft);overflow:hidden;margin-top:6px}
.bar i{display:block;height:100%;background:var(--ok);border-radius:4px}
.req{color:var(--miss);font-weight:650;font-size:13px}
.done{color:var(--ok);font-weight:650;font-size:13px}

/* ---- map screen */
.mapwrap{position:fixed;inset:0;z-index:5;background:#222}
#map{position:absolute;inset:0}
.mapbanner{position:fixed;left:12px;right:12px;top:calc(60px + env(safe-area-inset-top,0px));z-index:15;background:var(--surface);color:var(--ink);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);font-size:15px;display:flex;gap:10px;align-items:flex-start}
.mapbanner b{display:block;font-size:16px}
.mapbanner .x{margin-left:auto;border:0;background:none;color:var(--muted);font-size:22px;line-height:1;padding:0 2px;min-width:32px;min-height:32px}
.mapctl{position:fixed;right:12px;z-index:15;display:flex;flex-direction:column;gap:10px;bottom:calc(var(--bar) + 84px + env(safe-area-inset-bottom,0px))}
.round{width:52px;height:52px;border-radius:50%;border:0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);display:grid;place-items:center}
.round svg{width:24px;height:24px}
.seg{display:inline-flex;background:var(--soft);border-radius:12px;padding:3px}
.seg button{border:0;background:transparent;min-height:42px;padding:0 16px;border-radius:9px;font-weight:600;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.15)}
.pinwrap{background:none;border:0}
.pin{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;white-space:nowrap;font:700 13px/1 var(--font);pointer-events:auto}
.pin b{background:#fff;color:#0f1512;border-radius:8px 8px 0 0;padding:5px 7px 3px}
.pin i{font-style:normal;background:#0f1512;color:#fff;border-radius:0 0 8px 8px;padding:3px 7px 5px;font-variant-numeric:tabular-nums}
.pin::after{content:"";width:2px;height:12px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.4)}
.pin.ref b{background:#a3301f;color:#fff}
.pin.sel b{outline:3px solid #ffd23f}
.vtxwrap{background:none;border:0}
.vtx{position:absolute;left:-13px;top:-13px;width:26px;height:26px;border-radius:50%;background:#fff;border:4px solid var(--c);box-shadow:0 1px 4px rgba(0,0,0,.5);pointer-events:auto}
.vtx.found{background:var(--c)}
.vtx.first{width:34px;height:34px;left:-17px;top:-17px;border-width:5px;animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 8px rgba(255,255,255,.45)}}
@media (prefers-reduced-motion: reduce){.vtx.first{animation:none}}
.shapelbl{background:rgba(15,21,18,.78);color:#fff;border:0;border-radius:6px;box-shadow:none;font:700 13px/1.2 var(--font);padding:3px 7px}
.shapelbl::before{display:none}
.maptools{position:fixed;left:12px;right:12px;top:calc(60px + env(safe-area-inset-top,0px));z-index:16;display:flex;justify-content:center}
.maptools .seg{background:var(--surface);box-shadow:var(--shadow);width:100%}
.maptools .seg button{flex:1;padding:0 6px}
.hastools .mapbanner{top:calc(116px + env(safe-area-inset-top,0px))}
.legend{display:flex;gap:6px;align-items:center;font-size:14px;color:var(--muted)}
.gpsdot{fill:#2b7fff;fill-opacity:1;stroke:#fff;stroke-width:3}
.gpsacc{fill:#2b7fff;fill-opacity:.12;stroke:#2b7fff;stroke-opacity:.5;stroke-width:1}
.leaflet-container{font:inherit;background:#1d221f}
.leaflet-control-attribution{font-size:10px!important}

/* ---- bottom sheet */
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--surface);border-radius:20px 20px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.3);padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));max-height:88vh;overflow:auto;animation:up .22s ease-out}
.sheet::before{content:"";display:block;width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 12px}
.sheet h2{display:flex;align-items:center;gap:10px}
.sheet .tag{font-size:13px;font-weight:700;background:var(--ink);color:var(--bg);border-radius:6px;padding:3px 8px}
.sheet .tag.ref{background:#a3301f;color:#fff}
@keyframes up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion: reduce){.sheet{animation:none}}
.scrim{position:fixed;inset:0;z-index:35;background:rgba(0,0,0,.25)}

/* ---- point list */
.plist{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.plist td{padding:14px 6px;border-bottom:1px solid var(--line);vertical-align:middle}
.plist td:first-child{font-weight:700;width:48px}
.plist td.h{font-weight:650;width:90px;text-align:right}
.plist tr{cursor:pointer}

/* ---- photo viewer + toast */
.viewer{position:fixed;inset:0;z-index:60;background:#000;display:flex;flex-direction:column}
.viewer img{flex:1;min-height:0;object-fit:contain;width:100%}
.viewer .vbar{display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#000}
.viewer .vbar button{flex:1;min-height:52px;border-radius:12px;border:0;font-weight:650}
.toast{position:fixed;left:12px;right:12px;bottom:calc(var(--bar) + 84px + env(safe-area-inset-bottom,0px));z-index:70;background:var(--ink);color:var(--bg);border-radius:14px;padding:12px 14px 12px 16px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);font-size:15px}
.toast button{margin-left:auto;border:0;background:none;color:var(--bg);font-weight:700;text-decoration:underline;min-height:40px;padding:0 6px}

/* ---- review */
.check{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.check svg{width:24px;height:24px;flex:none;margin-top:1px}
.check .ok{color:var(--ok)}.check .miss{color:var(--miss)}
.check div{flex:1}
.check small{display:block;color:var(--muted);font-size:14px}
.check a{color:var(--accent);font-weight:600;text-decoration:none;font-size:15px;white-space:nowrap}
.progress{height:6px;border-radius:3px;background:var(--soft);overflow:hidden;margin-top:10px}
.progress i{display:block;height:100%;background:var(--accent)}
/* the sign-up form's checkboxes: a large tap target with the text beside it */
.check-line{display:flex;gap:10px;align-items:flex-start;margin:8px 0;font-size:15px;line-height:1.4;min-height:32px}
.check-line input{width:22px;height:22px;flex:none;margin:0;accent-color:var(--accent)}
.check-line a{color:var(--accent)}
