/* Leaflet 1.9.4 (BSD-2-Clause) */
/* 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 {
	
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	
	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 */
	
	}


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


/* ---- Bantay Tubig ---- */
:root{
  --ink:#10262b; --ink-2:#4a5f63; --paper:#ffffff; --sheet:#f6f8f7; --line:#d9e1df;
  --marking:#1f5fd1; --marking-ink:#ffffff; --marking-soft:#e3ecfb;
  --open:#e2571c; --verified:#c48a00; --crew:#7a3fc4; --fixed:#1f8f5a;
  --shadow:0 6px 24px rgba(16,38,43,.18);
  --font:"Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#e8f0ee; --ink-2:#a3b5b2; --paper:#16211f; --sheet:#1d2a28; --line:#2f3f3c;
    --marking:#5b8ff0; --marking-ink:#0b1a33; --marking-soft:#1f2f4d;
    --open:#ff7a3d; --verified:#e5a91a; --crew:#a77ae8; --fixed:#3cc17f;
    --shadow:0 6px 24px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --ink:#e8f0ee; --ink-2:#a3b5b2; --paper:#16211f; --sheet:#1d2a28; --line:#2f3f3c;
  --marking:#5b8ff0; --marking-ink:#0b1a33; --marking-soft:#1f2f4d;
  --open:#ff7a3d; --verified:#e5a91a; --crew:#a77ae8; --fixed:#3cc17f;
  --shadow:0 6px 24px rgba(0,0,0,.5);
  color-scheme: dark;
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{font-family:var(--font);color:var(--ink);background:var(--paper);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:2000;background:var(--paper)}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--marking);outline-offset:2px}

.app{height:100%;display:grid;grid-template-rows:auto 1fr}
header{display:flex;align-items:center;gap:14px;padding:10px 16px;background:var(--paper);border-bottom:1px solid var(--line);z-index:1000}
.wordmark{display:flex;align-items:baseline;gap:10px;min-width:0}
.wordmark b{font-stretch:68%;font-weight:800;font-size:30px;letter-spacing:-.01em;line-height:1;color:var(--marking)}
.wordmark span{font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spacer{flex:1}
.seg{display:inline-flex;border:1.5px solid var(--line);border-radius:999px;padding:2px;background:var(--sheet)}
.seg button{border:0;background:transparent;padding:5px 12px;border-radius:999px;font-size:14px;font-weight:600;color:var(--ink-2)}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}

main{position:relative;min-height:0;display:grid;grid-template-columns:1fr}
main.crew{grid-template-columns:minmax(340px,420px) 1fr}
#map{position:relative;min-height:0;background:#e8e6e1;z-index:0}
.leaflet-container{font-family:var(--font)}

/* center pin used while placing a report */
.place-pin{position:absolute;left:50%;top:50%;z-index:500;pointer-events:none;transform:translate(-50%,-100%);display:none}
.placing .place-pin{display:block}
.place-pin svg{display:block;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35))}
.place-pin::after{content:"";position:absolute;left:50%;bottom:-4px;width:10px;height:4px;border-radius:50%;background:rgba(0,0,0,.35);transform:translateX(-50%)}

/* report button */
.fab{position:absolute;z-index:600;left:50%;transform:translateX(-50%);bottom:calc(22px + env(safe-area-inset-bottom,0px));
  border:0;background:var(--marking);color:var(--marking-ink);font-weight:800;font-stretch:80%;font-size:20px;
  padding:16px 28px 16px 22px;border-radius:999px;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;white-space:nowrap}
.fab:active{transform:translateX(-50%) scale(.98)}
.placing .fab,.crew .fab{display:none}
.locate{position:absolute;z-index:600;right:12px;bottom:calc(96px + env(safe-area-inset-bottom,0px));width:46px;height:46px;border-radius:50%;
  border:1.5px solid var(--line);background:var(--paper);box-shadow:var(--shadow);display:grid;place-items:center}
.notice{position:absolute;z-index:650;left:50%;top:12px;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:8px 14px;border-radius:10px;font-size:14px;display:none;max-width:calc(100% - 24px)}


/* sheet */
.sheet{position:absolute;z-index:700;left:0;right:0;bottom:0;background:var(--paper);border-radius:20px 20px 0 0;box-shadow:var(--shadow);
  max-height:78%;overflow:auto;padding:8px 18px calc(18px + env(safe-area-inset-bottom,0px));display:none}
.sheet.show{display:block;animation:up .22s ease-out}
@keyframes up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sheet.show{animation:none}}
@media (min-width:760px){
  .sheet{left:16px;right:auto;bottom:16px;top:auto;width:400px;border-radius:18px;max-height:calc(100% - 32px)}
}
.grab{width:40px;height:4px;border-radius:2px;background:var(--line);margin:4px auto 10px}
.sheet h2{font-stretch:75%;font-weight:800;font-size:26px;line-height:1.1;margin:4px 0 6px}
.sheet p.lead{margin:0 0 14px;color:var(--ink-2)}
.step{font-size:13px;color:var(--ink-2);font-weight:600}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 16px}
.choice{border:2px solid var(--line);background:var(--sheet);border-radius:14px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:84px}
.choice[aria-pressed="true"]{border-color:var(--marking);background:var(--marking-soft)}
.choice b{font-size:15px;line-height:1.2}
.choice svg{width:26px;height:26px}
.sev{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 16px}
.sev .choice{min-height:0;align-items:center;text-align:center}
.drops{letter-spacing:1px;color:var(--marking);font-size:18px;line-height:1}
label.f{display:block;font-weight:600;font-size:14px;margin:12px 0 6px}
label.f small{font-weight:400;color:var(--ink-2)}
input[type=text],input[type=tel],textarea{width:100%;border:1.5px solid var(--line);background:var(--sheet);border-radius:12px;padding:11px 12px;font-size:16px}
textarea{resize:vertical;min-height:60px}
.photo{border:2px dashed var(--line);border-radius:14px;display:flex;align-items:center;gap:12px;padding:12px;background:var(--sheet);cursor:pointer}
.photo img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.photo input{position:absolute;opacity:0;width:1px;height:1px}
.row{display:flex;gap:10px;margin-top:16px}
.btn{border:0;border-radius:14px;padding:14px 16px;font-weight:700;font-size:16px;flex:1}
.btn.primary{background:var(--marking);color:var(--marking-ink)}
.btn.primary:disabled{opacity:.45;cursor:not-allowed}
.btn.ghost{background:var(--sheet);border:1.5px solid var(--line)}
.btn.small{padding:9px 12px;font-size:14px;flex:0 0 auto;border-radius:10px}
.close{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;border:0;background:var(--sheet);font-size:18px;line-height:1}
.sheet{position:absolute}
.dupe{background:var(--marking-soft);border-radius:14px;padding:14px;margin:6px 0 4px}
.dupe b{display:block;margin-bottom:4px}

/* detail */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;color:#fff}
.pill.open{background:var(--open)} .pill.verified{background:var(--verified)} .pill.crew{background:var(--crew)} .pill.fixed{background:var(--fixed)}
.timeline{list-style:none;padding:0;margin:14px 0;border-left:2px solid var(--line)}
.timeline li{position:relative;padding:0 0 10px 16px;font-size:14px;color:var(--ink-2)}
.timeline li::before{content:"";position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--line)}
.timeline li.done{color:var(--ink)}
.timeline li.done::before{background:var(--marking)}
.detail-photo{width:100%;max-height:220px;object-fit:cover;border-radius:14px;margin:8px 0}
.meta{font-size:14px;color:var(--ink-2)}

/* crew panel */
.panel{display:none;min-height:0;overflow:auto;border-right:1px solid var(--line);background:var(--paper)}
.crew .panel{display:block}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border-bottom:1px solid var(--line)}
.stat{background:var(--paper);padding:12px 16px}
.stat b{display:block;font-stretch:72%;font-weight:800;font-size:30px;line-height:1.05}
.stat span{font-size:13px;color:var(--ink-2)}
.panel-head{display:flex;align-items:center;gap:10px;padding:12px 16px 4px}
.panel-head h3{margin:0;font-size:17px}
.tog{font-size:14px;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.list{list-style:none;margin:0;padding:6px 8px 20px}
.item{display:grid;grid-template-columns:auto 1fr auto;gap:4px 12px;padding:12px 10px;border-radius:12px;border:1.5px solid transparent;cursor:pointer;align-items:start}
.item:hover{background:var(--sheet)}
.item.sel{border-color:var(--marking);background:var(--marking-soft)}
.item .dot{width:12px;height:12px;border-radius:50%;margin-top:6px}
.item h4{margin:0;font-size:15px;line-height:1.3}
.item .sub{grid-column:2/4;font-size:13px;color:var(--ink-2)}
.item .score{font-size:12px;font-weight:700;color:var(--ink-2);text-align:right;white-space:nowrap}
.actions{grid-column:2/4;display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.empty{padding:24px 16px;color:var(--ink-2)}
.foot{padding:4px 16px 20px;font-size:12px;color:var(--ink-2)}
.foot button{background:none;border:0;padding:0;color:var(--marking);text-decoration:underline;font-size:12px}

@media (max-width:759px){
  main.crew{grid-template-columns:1fr;grid-template-rows:42% 58%}
  main.crew #map{order:-1}
  .crew .panel{border-right:0;border-top:1px solid var(--line)}
  .wordmark span{display:none}
  .legend{font-size:12px;max-width:calc(100% - 70px)}
}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.leaflet-control-attribution{font-size:10px}

/* ---- additions for the hosted app ---- */
.seg a{display:inline-block;padding:5px 12px;border-radius:999px;font-size:14px;font-weight:600;color:var(--ink-2);text-decoration:none}
.seg a[aria-current="page"]{background:var(--ink);color:var(--paper)}
.dot.open{background:var(--open)} .dot.verified{background:var(--verified)}
.dot.crew{background:var(--crew)} .dot.fixed{background:var(--fixed)}
.sheet h2.sub-h{font-size:20px}
.sheet h2.mt{margin-top:10px}
.row.stack{flex-direction:column}
.err{color:var(--open);font-size:14px;font-weight:600;margin:10px 0 0}
.login{padding:24px 16px;max-width:420px}
.login h3{margin:0 0 4px;font-size:22px;font-stretch:75%;font-weight:800}
.login p{margin:0 0 12px;color:var(--ink-2);font-size:14px}
.login input[type=email],.login input[type=password]{width:100%;border:1.5px solid var(--line);background:var(--sheet);border-radius:12px;padding:11px 12px;font-size:16px}
.login .btn{width:100%;margin-top:16px}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink-2)}
.toolbar .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact{background:var(--sheet);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:10px 0;font-size:14px}
.contact a{color:var(--marking);font-weight:700}
.btn.danger{background:transparent;color:var(--open);border:1.5px solid var(--line)}
.panel-head .btn.small{margin-left:4px}
#map:has(.sheet.show) .fab{display:none}
/* small, low-key link to the crew page in the map's bottom-left corner */
.crew-link{position:absolute;z-index:600;left:8px;bottom:calc(4px + env(safe-area-inset-bottom,0px));font-size:11px;color:var(--ink-2);
  background:var(--paper);opacity:.85;padding:1px 6px;border-radius:6px;text-decoration:none}
.crew-link:hover,.crew-link:focus-visible{opacity:1;text-decoration:underline}
#map:has(.sheet.show) .crew-link,.placing .crew-link{display:none}
/* longer name: keep it on one line and make room on phones */
.wordmark b{white-space:nowrap}
a.wordmark{text-decoration:none;color:inherit}
@media (max-width:479px){
  header{gap:8px;padding:10px 12px}
  .wordmark b{font-size:25px}
  .seg button,.seg a{padding:5px 10px;font-size:13px}
  header nav.seg{display:none}   /* crew page: tap the name to go back to the map */
}

/* ---- map pins: colour + icon = type, badge = progress, size = reports ---- */
:root{--t-burst:#d6303f;--t-small:#1e7fd6;--t-meter:#0e8f7e;--t-nowater:#e07410;--t-done:#97a3a1;--badge-ink:#10262b}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--t-burst:#ef5664;--t-small:#4a9ff0;--t-meter:#25b4a0;--t-nowater:#f5973a;--t-done:#6b7876}}
:root[data-theme="dark"]{--t-burst:#ef5664;--t-small:#4a9ff0;--t-meter:#25b4a0;--t-nowater:#f5973a;--t-done:#6b7876}
.mk-wrap{background:none;border:0}
.mk{--s:32px;position:relative;width:var(--s);height:var(--s)}
.mk.z1{--s:35px}.mk.z2{--s:38px}.mk.z3{--s:41px}.mk.z4{--s:44px}
.mk-pin{width:100%;height:100%;border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2.5px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.35);display:grid;place-items:center;background:var(--t-small);transition:transform .15s}
.mk-ic{transform:rotate(45deg);display:grid;place-items:center;color:#fff;width:58%;height:58%}
.mk-ic svg{width:100%;height:100%;stroke-width:2.4}
.t-burst .mk-pin,.lg-dot.t-burst{background:var(--t-burst)}
.t-small .mk-pin,.lg-dot.t-small{background:var(--t-small)}
.t-meter .mk-pin,.lg-dot.t-meter{background:var(--t-meter)}
.t-nowater .mk-pin,.lg-dot.t-nowater{background:var(--t-nowater)}
.mk.s-fixed .mk-pin{background:var(--t-done)}
.mk.s-fixed{opacity:.8}
.mk-badge{position:absolute;right:-7px;top:-9px;width:19px;height:19px;border-radius:50%;background:#fff;color:var(--badge-ink);
  display:grid;place-items:center;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.mk-badge svg{width:12px;height:12px}
.mk.s-fixed .mk-badge{background:var(--fixed);color:#fff}
.mk.sel .mk-pin{box-shadow:0 0 0 3px var(--marking),0 2px 8px rgba(0,0,0,.4)}
.leaflet-marker-icon:hover .mk-pin,.leaflet-marker-icon:focus .mk-pin{transform:rotate(-45deg) scale(1.08)}
@media (prefers-reduced-motion:reduce){.mk-pin{transition:none}}

/* ---- map key ---- */
.legend{position:absolute;z-index:600;left:12px;top:12px;background:var(--paper);border:1px solid var(--line);border-radius:14px;
  box-shadow:var(--shadow);font-size:13px;max-width:calc(100% - 76px);overflow:hidden}
.lg-toggle{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:8px 12px;font-weight:700;font-size:13px;text-align:left}
.lg-mini{display:inline-flex;gap:3px}
.lg-dot{display:inline-block;width:9px;height:9px;border-radius:50%}
.lg-chev{margin-left:auto;display:grid;place-items:center;transition:transform .15s}
.lg-chev svg{width:12px;height:12px}
.legend.open .lg-chev{transform:rotate(180deg)}
.lg-body{padding:0 12px 10px;border-top:1px solid var(--line);max-height:min(62vh,520px);overflow:auto}
.lg-h{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2);margin:10px 0 4px}
.legend ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}
.legend li{display:flex;align-items:center;gap:8px;min-height:30px;line-height:1.2}
.legend li .mk{--s:22px;flex:0 0 auto;margin:6px 4px 2px 2px}
.legend li .mk-pin{border-width:2px;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.legend li .mk-badge{width:14px;height:14px;right:-6px;top:-7px}
.legend li .mk-badge svg{width:9px;height:9px}
.lg-note{margin:8px 0 0;font-size:12px;color:var(--ink-2)}
@media (max-width:759px){.legend{font-size:12px}.legend ul{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.lg-chev{transition:none}}
