/* 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("/static/vendor/leaflet/images/layers.png");
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url("/static/vendor/leaflet/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("/static/vendor/leaflet/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;
		}
	}

:root {
  color-scheme:dark; --page:#0f2330; --paper:#172f3e; --ink:#edf8fc; --sub:#b2cbd8;
  --line:#37576a; --blue:#94d6ef; --blue-deep:#b7e6f7; --tint:#23465a;
  --signal:#ffbb85; --wash:#453027; --field:#203d4e; --soft:#1b3646;
  --primary-text:#102431; --frame-water:#224b62;
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem;
  --page-gutter:clamp(24px,3.75vw,48px); --form-inset:20px;
  font:100%/1.48 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;color:var(--ink);background:var(--page)}
h1,h2,h3,p{margin:0} a{color:var(--blue)} button,input,select,textarea{font:inherit;color:inherit}
button,summary,select{cursor:pointer} button{background:transparent;border:0;padding:0;line-height:1.3}
a,button,input,summary,select,textarea{touch-action:manipulation}
:focus-visible{outline:3px solid #197eae;outline-offset:3px} svg:not(.leaflet-pane > svg){width:1.3rem;height:1.3rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.symbols{display:none}.small{width:1rem;height:1rem}.skip{position:absolute;left:1rem;top:-8rem;z-index:1500;background:var(--paper);padding:1rem}.skip:focus{top:0}
.mast{background:var(--paper);border-bottom:1px solid var(--line)}.mast-inner,main{max-width:1184px;margin:auto;padding-inline:var(--page-gutter)}
.mast-inner{min-height:64px;display:flex;align-items:center;gap:var(--space-8)}.brand{display:inline-flex;align-items:center;gap:.55rem;color:var(--ink);text-decoration:none;font-size:1.35rem;letter-spacing:-.05em;min-height:44px}.brand img{width:36px}.brand b{font-weight:740}
.tabs{display:flex;gap:.4rem;align-self:stretch;align-items:center}.tabs a,.text-btn,.primary,.secondary,.more,.map-tool{display:inline-flex;align-items:center;justify-content:center;gap:.47rem;min-height:44px}
.tabs a{color:var(--sub);padding:.55rem 1rem;text-decoration:none;border-radius:12px;font-weight:600}.tabs a[aria-current=page]{color:var(--blue);background:var(--tint)}.tabs svg{width:1.18rem}
main{padding-bottom:4rem}.page-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-3);margin:var(--space-8) 0 var(--space-4)}.page-heading h1{font-size:1.75rem;line-height:2.25rem;letter-spacing:-.04em;font-weight:700}
.date-control{display:flex;align-items:center;position:relative;color:var(--sub);font-weight:580;gap:.3rem}.date-control select{appearance:none;min-height:44px;padding:0 1.35rem 0 .24rem;border:0;background:transparent;max-width:100%;font-weight:inherit}.date-control .small{position:absolute;right:0;pointer-events:none}
.profile-grid{display:grid;gap:var(--space-6);align-items:start}
.panel,.list-group{background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.report{padding:var(--space-6)}.lake-head,.section-title,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.lake-head{align-items:flex-start}
.muted,.list-caption,.map-hint{color:var(--sub)}.muted,.list-caption{font-size:.875rem}.list-caption{margin:.65rem .15rem}.section-title{min-height:44px;margin:0}.section-title h2{font-size:1.25rem;line-height:1.75rem;letter-spacing:-.03em}
.icon-btn,.map-tool{min-height:44px;min-width:44px;display:inline-grid;place-items:center;color:var(--blue);border-radius:12px}.icon-btn:hover,.text-btn:hover{background:var(--field)}.icon-btn[aria-pressed=true] svg{fill:currentColor}
.setting,.list-row{display:flex;gap:var(--space-3);align-items:center;min-height:56px;width:100%;text-align:left}.setting>svg{color:var(--sub)}.setting div,.list-row div{min-width:0;flex:1}
.setting small,.list-row small,.journal-item small,.map-sheet small{display:block;color:var(--sub);font-size:.86rem;line-height:1.4}.setting strong,.list-row strong{display:block;font-weight:620;line-height:1.3;overflow-wrap:anywhere}
.picker-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.primary,.secondary,.more{border-radius:11px;padding:.72rem .95rem;font-weight:620}.primary{color:var(--primary-text);background:var(--blue)}.primary:hover{background:var(--blue-deep)}.secondary,.more{background:var(--field);color:var(--blue)}.text-btn{color:var(--blue);font-size:.9rem;font-weight:620;border-radius:9px;padding:.25rem}.text-btn svg{width:1.05rem}
details>summary{min-height:44px;padding:.78rem 0;color:var(--blue);font-size:.9rem;font-weight:620}
.searchbox{display:flex;align-items:center;gap:var(--space-2);min-height:48px;padding:0 var(--space-3);border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--sub)}.searchbox:focus-within{outline:2px solid var(--blue)}.searchbox input{width:100%;min-width:0;height:46px;background:transparent;border:none;outline:0;font-size:1rem}
.segments{display:flex;border-radius:12px;background:var(--field);padding:3px;margin:0}.segments button{flex:1;min-width:0;min-height:44px;border-radius:9px;color:var(--sub);font-weight:620}.segments button[aria-pressed=true]{color:var(--blue-deep);background:var(--paper);box-shadow:0 1px 3px #1538481c}
.list-row,.setting,.journal-item,.empty{padding:var(--space-3) var(--space-4)}.list-row+.list-row,.setting+.setting,.journal-item+.journal-item{border-top:1px solid var(--line)}.list-row:hover,.setting:hover{background:var(--soft)}.water-symbol{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:var(--tint);color:var(--blue)}.list-row .end,.setting .end{width:1rem;color:var(--sub)}.km{color:var(--sub);font-size:.85rem;white-space:nowrap}.empty{color:var(--sub)}.more{width:100%}
.prefs{padding:.15rem}.profile-grid{grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr)}.diary-block{margin-top:var(--space-6)}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.journal-item { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--space-3); padding:var(--space-4); overflow-wrap:anywhere; }
.journal-head { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-1) var(--space-4); }
.journal-title { flex:1 1 10rem; min-width:0; font-size:1rem; line-height:1.4; font-weight:650; }
.journal-item button { min-height:44px; max-width:100%; text-align:left; font-weight:650; overflow-wrap:anywhere; }
.journal-item button:not(.primary) { color:var(--blue); }
.journal-depth { font-size:1.125rem; line-height:1.5; white-space:nowrap; }
.journal-context { flex:1 1 100%; display:grid; gap:var(--space-1); min-width:0; color:var(--sub); font-size:.875rem; line-height:1.45; }
.journal-note { white-space:pre-line; }
.journal-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2) var(--space-4); }
.journal-actions button { padding-block:var(--space-2); font-size:.875rem; }
#journal-edit-form { max-width:20rem; }
.map-layout{isolation:isolate;position:relative;border:1px solid var(--line);border-radius:20px;background:var(--frame-water);overflow:hidden}#map{height:clamp(360px,61vh,680px);background:var(--frame-water);z-index:0}
.map-sheet { position:relative; display:grid; grid-template-columns:minmax(0,1fr); align-content:center; gap:var(--space-4); padding:var(--space-4) var(--form-inset); min-height:84px; background:var(--paper); border-top:1px solid var(--line); }
.map-point-heading { display:grid; min-width:0; gap:var(--space-2); overflow-wrap:anywhere; }
.map-point-heading strong { line-height:1.35; }
.map-point-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.map-point-actions button, .map-route-action { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.map-route-action { display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:var(--space-2); text-decoration:none; text-align:center; }
.map-route-action svg { flex:none; width:1.05rem; height:1.05rem; }
@media (min-width:58rem) {
  .map-sheet { grid-template-columns:minmax(8.5rem,.95fr) minmax(0,1fr) minmax(0,1.8fr); align-items:center; gap:var(--space-6); }
  .map-point-actions { grid-column:-2; justify-self:end; }
}
@media (max-width:750px) {
  .map-point-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11.75rem),1fr)); }
}
.map-hint{margin:.55rem .1rem;font-size:.88rem}.map-tool{background:var(--paper);border:1px solid var(--line);box-shadow:0 2px 6px #15384828}
.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:11px!important}.leaflet-marker-icon.pin-marker{display:grid;place-items:center;background:var(--blue);color:var(--primary-text);border:2px solid white;box-shadow:0 1px 5px #163a4e77;border-radius:50%;font-weight:700;font-size:12px}.pin-marker.single::after{content:"";width:6px;height:6px;border-radius:50%;background:white}
dialog {
  --dialog-limit: min(90dvh, calc(var(--dialog-view-height, 100dvh) - 16px));
  width: min(calc(100% - 24px), 480px); max-width: none; max-height: var(--dialog-limit); padding: 0; overflow: hidden;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 80px #10273629;
}
dialog::backdrop { background: #10273663; }
.dialog-shell { display: flex; flex-direction: column; min-width: 0; max-height: calc(var(--dialog-limit) - 2px); margin: 0; }
.dialog-shell .dialog-head {
  flex: none; padding: var(--space-3) var(--form-inset) var(--space-2); gap: var(--space-3); align-items: center;
}
.dialog-head > div { min-width: 0; }
.dialog-shell .dialog-head h2 { min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; letter-spacing: normal; }
.dialog-head .icon-btn { flex: none; }
#note-place { margin-top: var(--space-1); font-size: .8125rem; line-height: 1.25rem; overflow-wrap: anywhere; }
.dialog-content {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: var(--space-4);
  min-width: 0; min-height: 0; padding: 0 var(--form-inset) var(--space-4); overflow-y: auto;
  overscroll-behavior: contain; scroll-padding-block: var(--space-3); container-type: inline-size;
}
.dialog-footer {
  flex: none; display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-2); padding: var(--space-3) var(--form-inset) var(--space-4);
  border-top: 1px solid var(--line);
}
.dialog-footer .primary { min-width: 0; width: 100%; overflow-wrap: anywhere; }
.dialog-content summary { overflow-wrap: anywhere; }
.form-field, .form-group, .extra-fields, #share-options {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start;
}
.form-field, .form-group { gap: var(--space-2); }
.form-field { font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.extra-fields { gap: var(--space-4); padding-block: var(--space-2) var(--space-1); }
#share-options { gap: var(--space-3); }
.dialog-body label.check {
  display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; column-gap: var(--space-2);
  min-height: 44px; margin: 0; cursor: pointer; font-size: .875rem; line-height: 1.25rem; font-weight: 450;
}
.dialog-body input[type=checkbox] { margin: 0; width: 18px; height: 18px; }
.dialog-body input:not([type=checkbox],[type=search]), .dialog-body textarea, .dialog-body select,
.telegram-rule-form input[type=number], .telegram-rule-form select, #preview-edit-cm,
#journal-edit-form input, #map-admin-edit-form input {
  width: 100%; min-width: 0; min-height: 44px; font-size: 1rem; line-height: 1.5rem; font-weight: 450;
  border: 1px solid var(--line); background: var(--soft); border-radius: 9px; padding: var(--space-2) var(--space-3);
}
.dialog-body textarea { resize: vertical; }
#picker .dialog-content { gap: var(--space-2); }
#town-results { overflow: clip; }
#preview-edit-form { margin-top: var(--space-3); }
#note-error, #preview-edit-error, .journal-edit-error { color: var(--signal); font-size: .875rem; line-height: 1.25rem; }
#notice{position:fixed;left:50%;transform:translateX(-50%);bottom:1.2rem;z-index:1400;background:var(--tint);color:var(--ink);padding:.75rem 1rem;border:1px solid var(--line);border-radius:12px;width:max-content;max-width:min(90vw,520px);box-shadow:0 3px 14px #0004}
@media(max-width:750px){
 :root{--page-gutter:16px;--form-inset:16px}.mast-inner{min-height:54px}.brand{font-size:1.13rem}.brand img{width:29px;height:29px}.mast-inner{gap:var(--space-4)}
 .tabs{position:fixed;z-index:900;bottom:0;left:0;right:0;justify-content:space-around;gap:.1rem;background:var(--paper);border-top:1px solid var(--line);padding:.25rem max(6px,env(safe-area-inset-right)) max(.3rem,env(safe-area-inset-bottom))}
 .tabs a{min-width:26%;flex-direction:column;gap:.06rem;font-size:.75rem;padding:.3rem;min-height:44px}.tabs svg{width:1.3rem;height:1.3rem}.tabs a[aria-current=page]{background:transparent;color:var(--blue)}
 main{padding-bottom:calc(max(86px,4.5rem) + env(safe-area-inset-bottom))}.page-heading{margin:var(--space-4) 0 var(--space-3)}.page-heading h1{font-size:1.5rem;line-height:2rem}.date-control{font-size:.88rem}.date-control>svg:first-child{width:1rem}
 .profile-grid{grid-template-columns:minmax(0,1fr)}.panel,.list-group,.map-layout{border-radius:15px}.report{padding:16px}
 #map{height:clamp(270px,52dvh,600px)}.map-sheet .primary{padding:.65rem .75rem}.diary-block{margin-top:var(--space-6)}#notice{bottom:calc(max(76px,3.8rem) + env(safe-area-inset-bottom))}
}
@media(max-width:365px){.section-title{flex-wrap:wrap}.list-row{gap:.5rem}.water-symbol{width:28px}.date-control select{max-width:148px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:750px){.compact-extra{display:none}}
#map-tools { display:flex; gap:var(--map-tool-gap); pointer-events:auto; }
.map-tool { width:var(--map-tool-size); height:var(--map-tool-size); text-decoration:none; }
.map-tool svg { width:21px; height:21px; }
.map-tool:hover { background:var(--field); }
#map-tools [aria-pressed="true"] { outline:2px solid var(--ink); outline-offset:2px; }
#map-prompt {
  position:absolute; top:calc(var(--map-tool-inset) + var(--map-tool-size) + var(--map-tool-gap)); left:var(--map-tool-inset); z-index:2;
  width:max-content; max-width:calc(100% - var(--map-tool-size) - 3 * var(--map-tool-inset)); display:flex; align-items:center;
  gap:8px; border:1px solid var(--line); border-radius:12px;
  background:var(--paper); color:var(--ink); box-shadow:0 2px 6px #15384828; font-size:.875rem; line-height:1.4;
}
#map-prompt { max-height:calc(100% - 92px); overflow-y:auto; padding:4px 4px 4px 12px; }
#map-instruction { min-width:0; overflow-wrap:anywhere; }
#map-cancel { flex:none; width:44px; height:44px; }
#map-cancel svg { width:18px; height:18px; }
.choosing-point, .choosing-point .leaflet-interactive { cursor:crosshair; }
.choosing-point:focus-visible::after {
  content:""; position:absolute; top:50%; left:50%; translate:-50% -50%; z-index:625; pointer-events:none;
  width:16px; height:16px; border:2px solid var(--blue); border-radius:50%; box-shadow:0 0 0 2px var(--paper);
}
.choosing-point .leaflet-marker-pane .leaflet-interactive{pointer-events:none}
#notice { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-1) var(--space-3); overflow-wrap:anywhere; }
#notice button { min-height:44px; max-width:100%; padding-block:var(--space-2); color:inherit; text-decoration:underline; font-weight:620; text-align:left; }
#notice a { display:inline-flex; align-items:center; min-height:44px; color:inherit; font-weight:620; }
#notice .notice-close { display:inline-grid; place-items:center; min-width:44px; margin-inline-start:auto; }
#notice:has(.notice-close) {
  display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:start; gap:4px 8px;
  max-height:calc(100dvh - max(76px,3.8rem) - 24px - env(safe-area-inset-bottom));
  overflow-y:auto; overscroll-behavior:contain;
}
#notice:has(.notice-close) a { grid-column:1; }
#notice .notice-close { grid-column:2; grid-row:1 / 3; }
.water-screen { max-width: 42rem; margin: clamp(12px, 2.5vw, 24px) auto 0; }
#waters-screen { max-width: 70rem; }
.water-screen-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.water-screen-nav > .text-btn { padding-inline: var(--space-2); text-decoration: none; }
.water-screen-nav .date-control { color: var(--sub); }
.report-status { display: grid; gap: var(--space-2); padding: var(--space-4); }
.report-status h1, .water-screen .section-title h1 { font-size: 1.33rem; }
.report-status-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.report-status-actions:not(:has(:not([hidden]))) { display: none; }
.lake-head h1 { line-height: 1.14; overflow-wrap: anywhere; }
.lake-head h1::first-letter { text-transform: uppercase; }
.lake-head p:not(:empty) { margin-top: var(--space-1); }
.report {
  container: lake-report / inline-size;
  --report-inset: clamp(.85rem, 2.4cqi, 1.25rem);
  --danger-ink: #ffc0b2;
  --danger-wash: #492e2b;
}
#water-report {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  background: transparent;
}
.report-header { display: grid; gap: var(--space-3); }
.report-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.trip-mode {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  max-width: 100%;
  padding-inline: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--blue);
  font-size: .88rem;
  font-weight: 620;
  text-align: left;
  overflow-wrap: anywhere;
}
.trip-mode:hover { background: var(--field); }
.trip-mode svg { width: 1rem; height: 1rem; }
.trip-mode span { min-width: 0; }

.report-overview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--surface-radius, 15px);
  background: var(--soft);
}
.signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  padding: .8rem var(--report-inset);
  background: var(--tint);
  color: var(--blue-deep);
  overflow-wrap: anywhere;
}
.signal > svg { width: 1.2rem; height: 1.2rem; margin-top: .1rem; }
.signal strong { display: block; font-size: clamp(1rem, 4.3cqi, 1.3rem); font-weight: 760; line-height: 1.22; }
.signal p { margin-top: .2rem; font-size: .85rem; line-height: 1.4; text-wrap: pretty; }
.signal.stop { color: var(--danger-ink); background: var(--danger-wash); }
.signal.check { color: var(--signal); background: var(--wash); }

.report-conditions {
  display: grid;
  gap: var(--space-4);
  padding: .85rem var(--report-inset) .95rem;
  border-top: 1px solid var(--line);
}
.report-conditions:has(#ice-metric:not([hidden]) + #report-weather:not([hidden])) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.report-conditions > div {
  display: grid;
  align-content: start;
  justify-items: start;
  min-width: 0;
  gap: .2rem;
  overflow-wrap: anywhere;
}
#ice-metric:not([hidden]) + #report-weather { border-inline-start: 1px solid var(--line); padding-inline-start: var(--space-4); }
.metric-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--blue-deep);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.32;
}
.metric-label svg { flex: none; width: .95rem; height: .95rem; }
.metric-value {
  font-size: clamp(2rem, 10.1cqi, 3.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: 1.04;
}
.metric-sign { padding-inline-end: .1em; }
.metric-unit { font-size: .49em; letter-spacing: -.015em; }
.weather-values { display: grid; gap: .2rem; min-width: 0; }
.weather-value, .weather-wind { font-variant-numeric: tabular-nums; }
.weather-value {
  margin-block: .35rem .1rem;
  font-size: clamp(1.05rem, 4.7cqi, 1.6rem);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.metric-scope { color: var(--sub); font-size: .78rem; line-height: 1.38; }
.wind-direction { white-space: nowrap; }
.wind-direction svg {
  width: .88rem;
  height: .88rem;
  margin-inline-start: .17rem;
  vertical-align: -.2em;
  stroke-width: 2.2;
}
.metric-empty { margin-block: .2rem; font-size: 1rem; line-height: 1.3; }

.report-context, #source-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  align-items: start;
  gap: var(--space-4);
}
.report-context:not(:has(> :not([hidden]))) { display: none; }
.report-section {
  min-width: 0;
  padding: var(--report-inset);
  border: 1px solid var(--line);
  border-radius: var(--surface-radius, 15px);
  background: var(--paper);
  overflow-wrap: anywhere;
}
.report-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-size: clamp(1.0625rem, 2.2cqi, 1.25rem);
  font-weight: 720;
  line-height: 1.3;
}
.report-section-title svg { width: 1.15rem; height: 1.15rem; color: var(--blue); }
.report-section-title + :is(p, dl) { margin-top: var(--space-2); }
#restriction-title { font-weight: 670; }
.official-restriction[data-status="conditional"] #restriction-title { color: var(--signal); }
.official-restriction[data-status="prohibited"] #restriction-title { color: var(--danger-ink); }
#restriction-content {
  display: grid;
  gap: .45rem;
  margin-top: var(--space-1);
  color: var(--sub);
  font-size: .9rem;
  line-height: 1.5;
}
.restriction-fine { color: var(--ink); }
.restriction-sources { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); font-size: .8rem; }

.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: var(--space-2);
}
.report-actions :is(a, button) { padding: .6rem var(--space-3); font-size: .92rem; overflow-wrap: anywhere; }
#report-route { display: grid; }
#report-route:empty { display: none; }
.report-actions:has(#report-route:empty) { grid-template-columns: minmax(0, 1fr); }
.report-actions svg { width: 1.14rem; height: 1.14rem; }
#shared-content:not(:empty) { margin-top: var(--space-2); }
#shared-content ul { list-style: none; padding: 0; margin: 0; }
#shared-content li { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .65rem; padding-block: .4rem; border-top: 1px solid var(--line); font-size: .88rem; }
#shared-content li strong { white-space: nowrap; }
#shared-content li span { flex: 1 1 9rem; color: var(--sub); }
#shared-content li .text-btn { flex: none; }
.report-satellite { justify-self: start; }

@container lake-report (max-width: 36rem) {
  .report-tools { display: grid; }
  .trip-mode { justify-self: start; }
  .report-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@container lake-report (max-width: 20rem) {
  .report-conditions:has(#ice-metric:not([hidden]) + #report-weather:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  #ice-metric:not([hidden]) + #report-weather { border-inline-start: 0; border-top: 1px solid var(--line); padding: var(--space-3) 0 0; }
  .weather-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem var(--space-3); }
}
@container lake-report (max-width: 16rem) {
  .report-actions { grid-template-columns: minmax(0, 1fr); }
}
.list-options{display:flex;align-items:center;gap:var(--space-1) var(--space-2);justify-content:space-between;flex-wrap:wrap}.list-options .list-caption{margin:0}.list-options select{color:var(--blue);border:0;background:transparent;min-height:44px;font-size:.85rem;max-width:100%}.credits{color:var(--sub);font-size:.77rem;margin:0}.credits a{color:inherit}

/* The existing fields still handle form submission and browser validation. */
.picker-source { position: absolute !important; height: 1px !important; width: 1px !important; padding: 0 !important;
  margin: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.picker-wrap { display: inline-flex; min-width: 0; max-width: 100%; }
.picker-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-align: left; }
.picker-trigger > span { flex: 1; min-width: 0; }
.picker-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform 160ms ease-out; }
.picker-trigger[aria-expanded=true] .picker-chevron { transform: rotate(180deg); }
.picker-trigger[aria-invalid=true] { outline: 2px solid var(--signal); }
:is(.dialog-body, .telegram-rule-form) .picker-wrap { width: 100%; }
:is(.dialog-body, .telegram-rule-form) .picker-trigger { width: 100%; padding: var(--space-2) var(--space-3); background: var(--soft); border: 1px solid var(--line);
  border-radius: 9px; font-size: 1rem; line-height: 1.5rem; font-weight: 450; }
.dialog-body .picker-trigger > svg:first-child { width: 18px; height: 18px; color: var(--sub); }
.dialog-body .datetime-picker { display: grid; grid-template-columns: minmax(0,1fr) 7.5rem; gap: 8px; }
.dialog-body .datetime-picker input { min-width: 0; min-height: 44px; font-weight: 450; }
.picker-panel { --layer-start: -4px; position: fixed; inset: auto; margin: 0; padding: 5px; box-sizing: border-box;
  width: max-content; max-width: calc(100vw - 16px); overflow: auto; z-index: 1600; overscroll-behavior: contain;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 26px #15384828; animation: picker-appear 160ms ease-out; }
.picker-panel[data-side=top] { --layer-start: 4px; }
.picker-option { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 7px 10px; text-align: left; border-radius: 9px; font-size: .94rem; line-height: 1.38; }
.picker-option svg { width: 16px; height: 16px; visibility: hidden; }
.picker-option[aria-selected=true] { color: var(--blue); font-weight: 620; }
.picker-option[aria-selected=true] svg { visibility: visible; }
.picker-option:hover, .picker-option:focus-visible, .calendar-day:enabled:hover, .calendar-step:enabled:hover { background: var(--tint); }
.picker-panel :focus-visible { outline-width: 2px; outline-offset: -2px; }
.calendar-panel { width: 296px; padding: 10px; }
.calendar-nav, .calendar-week { display: grid; align-items: center; text-align: center; }
.calendar-nav { grid-template-columns: 38px 1fr 38px; gap: 4px; padding-bottom: 6px; }
.calendar-nav strong { font-size: .94rem; font-weight: 650; }
.calendar-nav strong::first-letter { text-transform: uppercase; }
.calendar-step, .calendar-day { display: inline-grid; place-items: center; width: 100%; min-height: 36px;
  font-size: .88rem; border-radius: 9px; }
.calendar-step svg { width: 16px; height: 16px; }
.calendar-step:first-child svg { transform: rotate(180deg); }
.calendar-week { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.calendar-week [role=columnheader] { font-size: .75rem; color: var(--sub); line-height: 28px; }
.calendar-day[aria-current=date] { font-weight: 750; color: var(--blue); }
.calendar-week [aria-selected=true] .calendar-day { background: var(--blue); color: var(--paper); font-weight: 650; }
.calendar-panel button:disabled, .picker-option:disabled { opacity: .43; cursor: default; }
@keyframes picker-appear { from { opacity: 0; transform: translateY(var(--layer-start)); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  .picker-trigger, .picker-option, .calendar-day { transition: background-color 160ms ease-out, color 160ms ease-out; }
}
@media(max-width:750px) {
  .picker-option { min-height: 44px; }
  .calendar-panel { width: min(344px,calc(100vw - 16px)); padding: var(--space-2); }
  .calendar-week { gap: 0; }
  .calendar-nav { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .calendar-step, .calendar-day { min-height: 44px; }
}
@media(max-width:350px) {
  .calendar-panel { width: calc(100vw - 4px); max-width: calc(100vw - 4px); padding: 3px; }
}
@media(prefers-reduced-motion:reduce) {
  .picker-panel { animation: none; }
  .picker-chevron { transition: none; }
}


@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: proportional-nums;
  font-kerning: normal;
}
.leaflet-container { font-variant-numeric: inherit; }
.lake-head h2 { font-size: clamp(1.55rem, 2.2vw, 2rem); }
.profile-grid > *, .lake-head > div, .page-heading > *, .section-title > * { min-width: 0; }
.page-heading h1, .section-title h2, .map-sheet strong { overflow-wrap: anywhere; }
.explore, .search-controls, .profile-grid > section, .profile-grid > div > section {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: var(--space-2);
}
.search-controls { container: lake-search / inline-size; }
@media (max-width: 750px) {
  .search-controls {
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--surface-radius, 15px);
    background: var(--soft);
  }
}
.profile-grid > div { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: var(--space-6); }
.profile-grid .list-caption, .profile-grid .diary-block { margin: 0; }
#profile { scroll-margin-block-start: 6rem; }
.profile-options #account-card, .profile-options .telegram-alerts { margin-bottom: 0; }
#profile-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--ink);
  text-decoration: none;
}
#profile-app:hover { background: var(--field); }
#profile-app img { display: block; border-radius: 8px; }
#profile-app > svg { width: 18px; height: 18px; color: var(--blue); }
.profile-app-copy { display: grid; gap: .125rem; line-height: 1.35; }
.profile-app-copy > span { color: var(--sub); font-size: .875rem; }
.segments button { padding-inline: var(--space-1); font-size: .875rem; line-height: 1.25rem; overflow-wrap: anywhere; }
.report-detail dl { margin: var(--space-2) 0 0; }
.report-detail-row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr);
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-top: 1px solid var(--line);
}
.report-detail-row:last-child { padding-bottom: 0; }
.report-detail dt { font-size: .84rem; color: var(--sub); }
.report-detail dd { margin: 0; font-size: .9rem; line-height: 1.5; }
.report-detail dd a { display: flex; align-items: center; width: fit-content; margin-top: var(--space-1); text-underline-offset: .15em; }
@media (pointer: coarse) {
  .report-detail dd a, .restriction-sources a { min-height: 44px; }
  .restriction-sources a { display: inline-flex; align-items: center; }
}
#data-licenses .dialog-content p { margin: 0 0 .6rem; color: var(--sub); font-size: .875rem; line-height: 1.5; }
@container lake-report (max-width: 24rem) {
  .report-detail-row { grid-template-columns: 1fr; gap: .15rem; }
}
@container lake-search (max-width: 18rem) {
  .segments { flex-wrap: wrap; gap: var(--space-1); }
  .segments button { flex: 1 1 max-content; }
}
.primary, .secondary, .icon-btn, .tabs a, .list-row, .setting, .segments button, .picker-trigger, .picker-option, .calendar-day {
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.primary:active, .secondary:active, .map-tool:active { transform: translateY(1px); }

.date-control .picker-trigger { font-size: .94rem; font-weight: 580; }
.date-control .picker-trigger > svg:first-child { width: 18px; height: 18px; }
.list-options .picker-trigger { color: var(--blue); font-size: .85rem; }

.map-frame {
  position:relative;
  --map-tool-size:44px;
  --map-tool-inset:min(var(--space-3),12px);
  --map-tool-gap:min(var(--space-2),8px);
}
.map-guide {
  --legend-symbol-size: .875rem;
  margin-top: var(--space-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.map-key-groups { display: grid; gap: 5px; padding: 8px 12px; }
.map-key-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.map-key-group h2 { flex: 0 0 6.25rem; max-width: 100%; margin: 0; color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 680; line-height: 1.4; }
.map-legend {
  display: flex;
  flex: 1 1 28rem;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sub);
  font-size: .8125rem;
  line-height: 1.4;
}
.map-legend li { display: inline-flex; align-items: flex-start; gap: 5px; max-width: 100%; overflow-wrap: anywhere; }
.map-legend li > :first-child { margin-top: 2px; }
.ice-closed { --ice-band:#812038; }
.ice-unknown { --ice-band:#53636e; }
.legend-swatch {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--legend-symbol-size);
  height: var(--legend-symbol-size);
  border: 1px solid #fff9;
  border-radius: 50%;
  background: var(--ice-band);
  color: white;
  font: 700 .625rem/1 system-ui;
}
.map-legend .legend-swatch svg { width: .6875rem; height: .6875rem; }
.map-legend .legend-icon, .map-guide .map-travel-note svg {
  width: var(--legend-symbol-size);
  height: var(--legend-symbol-size);
  color: var(--blue);
}
.map-travel-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 5px 12px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: .8rem;
  line-height: 1.4;
}
.map-travel-note svg { margin-top: 2px; }
.map-hint:empty { display: none; }
.map-frame #map-toolbar {
  position: absolute;
  inset: var(--map-tool-inset);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: var(--map-tool-gap);
  pointer-events: none;
}
#map-toolbar-row { display: flex; flex-wrap: wrap; gap: var(--map-tool-gap); width: fit-content; min-width: 0; max-width: 100%; }
#map-trip-date-slot { flex: none; pointer-events: auto; }
#map-trip-date-slot .picker-trigger {
  min-height: var(--map-tool-size);
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  white-space: nowrap;
}
#map-trip-date-slot .picker-trigger:is(:hover, [aria-expanded="true"]) { background: var(--tint); }
@media (max-width: 390px) {
  #map-trip-date-slot .picker-trigger { padding-inline: 8px; }
  #map-trip-date-slot .picker-chevron { display: none; }
}
#map-tools :is(#map-search, #map-layers)[aria-expanded="true"], #map-tools #map-layers.map-layer-active {
  border-color: var(--blue);
  background: var(--tint);
  color: var(--blue-deep);
}
.map-tool-panel {
  align-self: start;
  width: min(100%, 330px);
  min-height: 0;
  padding: var(--space-2);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 6px 20px #15384825;
  pointer-events: auto;
}
.map-tool-panel .searchbox { margin: 0; }
.map-search-results .list-row { min-height: 44px; padding: var(--space-2); }
.map-search-results .list-row + .list-row { border-top: 1px solid var(--line); }
.satellite-sources { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; border: 0; }
.satellite-sources label {
  display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding-inline: var(--space-2);
  border-radius: 8px; font-size: .9rem; cursor: pointer;
}
.satellite-sources label:has(:checked), .satellite-sources label:hover { background: var(--tint); }
.satellite-sources input { accent-color: var(--blue-deep); width: 16px; height: 16px; margin: 0; }
.satellite-sources small { margin-inline-start: auto; color: var(--sub); }
#satellite-optical-modes { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
#depth-choice { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
#map-toolbar-row > #depth-choice {
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); box-shadow: var(--glass-shadow); pointer-events: auto;
}
#map-toolbar-row > #depth-choice label {
  min-height: calc(var(--map-tool-size) - 2px); padding-inline: 10px; border-radius: 11px;
  color: var(--ink); font-weight: 650;
}
#depth-status { margin: 0; padding-inline: var(--space-2); color: var(--sub); font-size: .85rem; }
#depth-status:empty { display: none; }
#map-tools #map-layers.depth-active { border-color: var(--blue); background: var(--tint); color: var(--blue-deep); }
#map #depth-legend {
  max-width: min(22rem, calc(100vw - 90px)); margin: 0 0 5px var(--map-tool-inset);
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); font-size: .8rem; line-height: 1.35; pointer-events: none;
}
.map-frame:has(:is(#map-preview, #map-satellite, #map-search-panel):not([hidden])) #depth-legend { visibility: hidden; }
.map-satellite-date { pointer-events: auto; }
.map-satellite-date .picker-trigger { min-height: 44px; max-width: 100%; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.map-satellite-date .picker-trigger { font-size: .85rem; }
.map-satellite-date .picker-trigger svg { width: 16px; height: 16px; }
#satellite-map-message {
  align-self: start; max-width: min(100%, 320px); padding: 6px 9px; margin: 0; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .8rem;
}
#map-toolbar:has(.map-tool-panel:not([hidden])) #satellite-map-message { display: none; }
#sentinel2-coverage, #satellite-access, #map-search-status { margin-top: var(--space-2); color: var(--sub); font-size: .85rem; }
#satellite-method { margin-top: var(--space-2); color: var(--sub); font-size: .85rem; }
#satellite-method p { margin: 0 0 var(--space-1); }
#satellite-method a { text-decoration: underline; }
:is(#satellite-access, #map-search-status):empty { display: none; }
#satellite-access, #map-search-status { padding-inline: var(--space-2); }
#sentinel2-pricing { min-height: 44px; margin-inline: var(--space-2); }
.satellite-fallback { display: block; margin-top: .25rem; font-size: .8rem; }
#map .leaflet-bottom.leaflet-left:has(#satellite-map-legend:not([hidden])) {
  width: calc(100% - var(--map-tool-size) - 2 * var(--map-tool-inset));
}
#map #satellite-map-legend {
  max-width: calc(100% - var(--map-tool-inset)); margin: 0 0 6px var(--map-tool-inset);
  padding: 7px 10px; border: 1px solid #aecdd64d; border-radius: 10px;
  background: #102b3af5; color: #eef7fa; box-shadow: 0 2px 10px #09243638;
  font-size: .8125rem; line-height: 1.4; pointer-events: none;
}
.map-frame:has(:is(#map-preview, #map-search-panel, #map-satellite):not([hidden])) #satellite-map-legend {
  visibility: hidden;
}
#satellite-status { margin: 0; font-variant-numeric: tabular-nums; text-wrap: pretty; }
.sentinel2-legend {
  display: flex; flex-wrap: wrap; gap: 2px 11px;
  padding: 0; margin: 5px 0 0; list-style: none;
}
.sentinel2-legend li { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.sentinel2-legend li::before {
  content: ""; flex: none; width: .75rem; height: .75rem; border: 1px solid #a4bbc54d; border-radius: 3px; background: #2b86cf;
}
.sentinel2-legend li:nth-child(2)::before { background: #e0f6ff; }
.sentinel2-legend li:nth-child(3)::before { background: #6f7a87; }
.sentinel2-surface { image-rendering: pixelated; }
#map:has(.sentinel2-raster) .leaflet-marker-icon:not(:is(.preview-active, :focus-visible, :hover)) { opacity: .62; }
.measurement-chip { display: flex; align-items: center; gap: 4px; }
.measurement-chip svg { width: 13px; height: 13px; }
.leaflet-marker-icon.ice-chip { display:grid; place-items:center; background:var(--ice-band); color:#fff; border:2px solid #fff;
  border-radius:12px; box-shadow:0 1px 5px #14273677; font:700 13px/1 Onest,system-ui,sans-serif; white-space:nowrap; }
.ice-chip::after { content:""; position:absolute; top:100%; left:calc(50% - 1px); width:2px; height:9px; background:var(--ice-band); pointer-events:none; }
.leaflet-marker-icon.pin-marker.ice-unknown { background:var(--paper); border:2px solid var(--ice-band); color:var(--ink)!important; }
.pin-marker.single.ice-unknown::after { content:none; }
.leaflet-marker-icon.pin-marker.ice-neutral { border-width:1px; border-color:var(--blue); }
.ice-neutral svg { width:13px; height:13px; }
.ice-neutral-dot { width:4px; height:4px; border-radius:50%; background:var(--blue); }
.leaflet-marker-icon.preview-active, .leaflet-marker-icon:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ice-chip.preview-active, .ice-chip:focus-visible { outline-color:var(--ice-band); }
@media(pointer:coarse) {
  .leaflet-marker-icon.pin-marker::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  .leaflet-marker-icon.single::before { inset: -13px; }
  .ice-chip::before { content: ""; position: absolute; inset: -10px 0; }
}
#map-preview {
  position: absolute;
  z-index: 3;
  width: min(352px, calc(100% - 20px));
  max-height: calc(100% - 24px);
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--page);
  color: var(--ink);
  box-shadow: 0 8px 28px #0819239c;
  animation: appear-below 160ms ease-out;
}
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.preview-head h2 { min-width: 0; margin: 0; font-size: clamp(1.05rem, 5vw, 1.15rem); line-height: 1.25; letter-spacing: -.025em; }
.preview-head .icon-btn { flex: 0 0 44px; margin: -10px -8px -6px 0; color: var(--sub); }
.preview-head .icon-btn svg { width: 18px; height: 18px; }
#preview-location, #preview-scope { margin-top: var(--space-1); color: var(--sub); font-size: .8125rem; line-height: 1.4; }
#preview-guidance { margin-top: var(--space-2); color: var(--sub); font-size: .84rem; line-height: 1.35; }
#preview-guidance svg { display: none; width: 18px; height: 18px; }
#preview-guidance.danger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--signal);
  background: var(--wash);
  font-weight: 680;
}
#preview-guidance.danger svg { display: block; }
.preview-reading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); }
.ice-range-explanation { margin: 0; color: var(--sub); font-size: .8125rem; line-height: 1.4; white-space: pre-line; }
.preview-reading .ice-range-explanation { flex: 0 0 100%; margin-top: var(--space-1); }
#preview-ice { min-width: 0; font-size: clamp(2rem, 10vw, 2.375rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 760; }
#preview-ice.no-value { font-size: 1.18rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.preview-reading:has(.no-value) { align-items: flex-start; flex-direction: column; }
.preview-reading-meta { display: grid; gap: 2px; min-width: 0; color: var(--sub); font-size: .78rem; line-height: 1.35; }
.preview-reading:not(:has(.no-value)) .preview-reading-meta { flex: 1 1 6.25rem; }
#preview-ice-label { color: var(--ink); font-weight: 590; }
#preview-ice-time { font-variant-numeric: tabular-nums; }
#preview-ice-time:empty { display: none; }
#preview-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px var(--space-3);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: .8125rem;
  line-height: 1.4;
}
#preview-air, #preview-wind { color: var(--ink); font-weight: 610; }
#preview-weather-period { flex-basis: 100%; }
.preview-links { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: start; margin-top: var(--space-2); }
#preview-more[open] { grid-column: 1 / -1; }
#preview-more summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--blue-deep); font-weight: 650; }
.preview-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.preview-links .text-btn {
  min-width: 0;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--blue-deep);
  font-size: .8125rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.preview-links .text-btn:hover { background: var(--tint); }
#preview-detail svg { width: 15px; height: 15px; }
#preview-route { display: flex; }
#preview-route a { flex: 1; }
@keyframes appear-below { from { opacity: 0; transform: translateY(var(--layer-start,4px)); } to { opacity: 1; transform: translateY(0); } }
@supports (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion:no-preference) {
    dialog { opacity: 0; translate: 0 var(--dialog-travel,4px);
      transition: opacity 160ms ease-out, translate 160ms ease-out, display 160ms allow-discrete, overlay 160ms allow-discrete; }
    dialog[open] { opacity: 1; translate: 0 0; transition-duration: 220ms; }
    dialog::backdrop { opacity: 0; transition: opacity 160ms ease-out, display 160ms allow-discrete, overlay 160ms allow-discrete; }
    dialog[open]::backdrop { opacity: 1; transition-duration: 220ms; }
    @starting-style {
      dialog[open] { opacity: 0; translate: 0 var(--dialog-travel,4px); }
      dialog[open]::backdrop { opacity: 0; }
    }
  }
}
@media(max-width:750px) {
  .mast-inner { flex-wrap:wrap; gap:0 var(--space-3); padding-block:var(--space-1); }
  .mast-inner .brand { flex:none; white-space:nowrap; }
  .mast-inner .location { flex:1 1 0; min-width:min(100%,9rem); max-width:100%; justify-content:flex-end; }
  .date-control .picker-trigger { font-size: .86rem; }
  .section-title h2 { font-size: 1.125rem; line-height: 1.5rem; }
  #map-preview { left: 8px; right: calc(var(--map-tool-size) + 2 * var(--map-tool-inset)); bottom: 20px; width: auto; max-height:calc(100% - var(--space-3) - 72px); padding: 14px; border-radius: 15px; }
  .tabs a { min-width: 0; flex: 1 1 auto; padding-inline:0; overflow-wrap: anywhere; }
  dialog {
    --dialog-travel: 16px;
    --dialog-limit: calc(var(--dialog-view-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));
    inset-block-end: var(--dialog-keyboard-bottom,0px); width: min(calc(100% - 16px),480px);
    margin: auto auto max(8px,env(safe-area-inset-bottom));
  }
  .dialog-footer .primary { min-height: 48px; }
}
@media(prefers-reduced-motion:reduce) {
  .picker-panel, #map-preview { animation: none; }
  .primary, .secondary, .icon-btn, .tabs a, .list-row, .setting, .segments button, .picker-trigger, .picker-option, .calendar-day, .picker-chevron { transition: none; }
}

#map #depth-legend { pointer-events: auto; }
#depth-palette { width: 160px; padding: 5px 1px 1px; }
.depth-scale { height: 6px; border-radius: 4px; background: linear-gradient(90deg,#88e5e0,#417eb1 65%,#1a439b); }
.depth-keys { display: grid; grid-template-columns: 61% auto 1fr; font-size: .68rem; }
.depth-keys span:last-child { text-align: right; }
#depth-palette label { display: block; margin-top: 5px; }
#depth-palette label::before { content: ""; display: inline-block; width: 9px; height: 9px; background: #ffce67; margin-right: 5px; border-radius: 2px; }
#depth-limit { width: 100%; margin: 0; height: 21px; accent-color: var(--blue); cursor: pointer; }

.time-entry { display: block; position: relative; min-width: 0; }
.dialog-body .time-entry #note-clock {
  height: 100%; min-height: 44px; padding-inline: 12px 44px;
  line-height: 1.25;
}
.time-trigger {
  position: absolute; inset-block: 0; inset-inline-end: 0; display: grid; place-items: center;
  min-width: 44px; min-height: 44px; border-radius: 9px; color: var(--sub);
}
.time-trigger svg { width: 18px; height: 18px; }
.time-trigger:hover, .time-trigger[aria-expanded=true] { color: var(--blue); background: var(--tint); }
.time-entry [aria-invalid=true] { outline: 2px solid var(--signal); outline-offset: -2px; }
.time-entry-error { grid-column: 1 / -1; color: var(--signal); font-size: .875rem; line-height: 1.4; font-weight: 500; }
.time-panel {
  --clock-row: max(36px, 2.25rem);
  --clock-pad-ideal: calc(2 * var(--clock-row));
  /* Always reserve the column labels, the confirmation and the panel edges. */
  --clock-chrome: calc(2px + 24px + 1.25rem + 4px + 12px + max(44px, 2.75rem));
  --clock-pad: clamp(0px, (var(--picker-room, 100dvh) - var(--clock-chrome) - var(--clock-row)) / 2, var(--clock-pad-ideal));
  width: min(17rem, calc(100vw - 16px)); padding: 12px;
}
.time-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.time-column { min-width: 0; }
.time-column-title {
  display: block; margin: 0 0 4px; color: var(--sub); text-align: center;
  font-size: .8125rem; font-weight: 550; line-height: 1.25rem;
}
.time-wheel-frame {
  position: relative; overflow: hidden; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); background: var(--soft);
}
.time-wheel-frame::before {
  content: ""; pointer-events: none; position: absolute; inset-inline: 1px; top: var(--clock-pad);
  height: var(--clock-row); background: var(--tint);
}
.time-wheel {
  position: relative; height: calc(var(--clock-row) + 2 * var(--clock-pad));
  padding-block: var(--clock-pad); overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none; touch-action: pan-y; border-radius: inherit;
}
.time-wheel::-webkit-scrollbar { display: none; }
.time-wheel-option {
  display: block; width: 100%; height: var(--clock-row); padding: 0 8px; scroll-snap-align: center;
  color: var(--sub); user-select: none; font-size: 1rem; line-height: 1.2; text-align: center;
}
.time-wheel-option[aria-selected=true] { color: var(--blue-deep); font-weight: 650; }
.time-confirm { width: 100%; min-height: max(44px, 2.75rem); margin-top: 12px; }
.time-trigger:focus-visible { outline-offset: -3px; }
@media (max-width:750px), (pointer:coarse) {
  .time-panel { --clock-row: max(44px, 2.75rem); }
}
@media (max-height:559px) {
  .time-panel { --clock-pad-ideal: var(--clock-row); }
}
@container (max-width: 19rem) {
  .dialog-body .datetime-picker { grid-template-columns: minmax(0,1fr); }
}

@font-face {
  font-family: "Ice Rubik";
  src: url("/static/fonts/rubik-cyr.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Ice Rubik";
  src: url("/static/fonts/rubik-lat.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212;
}

:root {
  --header: #0c2a3c;
  --header-text: #f2faff;
  --header-muted: #c0d8e5;
  --focus: #8dd3f2;
  --ice-halo: #15384b;
  --panel-shine: #1d3a4b;
  --glass-line: #50768b;
  --surface-shadow: 0 8px 24px #050f1940;
  --glass-shadow: 0 5px 16px #0e3c552e;
  --primary-light: #c0eefb;
  --primary-base: #92cee7;
  --primary-hover: #b1e6f8;
  --dock-glass: #122b3ae8;
  --display-font: "Ice Rubik", Onest, "Segoe UI", sans-serif;
  --surface-radius: 23px;
}

body {
  min-height: 100dvh;
  background: radial-gradient(ellipse at 88% 2%, var(--ice-halo), transparent 65%),
              var(--page);
}

:focus-visible { outline-color: var(--focus); }

.mast {
  background: var(--header);
  border-bottom-color: #b0d7e629;
}

.mast-inner {
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  gap: var(--space-4);
}

.brand { justify-self: start; }

.mast-inner .brand img {
  display: block;
  width: 104px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 14px #06152145;
  filter: none;
}

.tabs { gap: var(--space-2); }

.tabs a {
  color: var(--header-muted);
  border: 1px solid transparent;
  border-radius: 30px;
}

.tabs a:hover { background: #d5f4ff14; }

.tabs a[aria-current="page"] {
  color: var(--header-text);
  border-color: #c8efff40;
  background: linear-gradient(170deg, #a4dce83b, #5ca3c527);
  box-shadow: inset 0 1px 0 #e7f8ff21;
}

.mast :focus-visible, .page-heading :focus-visible { outline-color: #a4def7; }

.page-heading {
  min-height: 107px;
  margin: 20px 0;
  padding: 18px clamp(18px, 3.5vw, 36px);
  color: var(--header-text);
  background:
    linear-gradient(100deg, #0b2637 7%, #0b2637ea 35%, #0b26376b 77%, #0b263731),
    linear-gradient(0deg, #0929397a, transparent),
    url("/static/brand/ice-cover.webp") center 56% / cover no-repeat,
    var(--header);
  border: 1px solid #5a91a8;
  border-radius: var(--surface-radius);
  box-shadow: inset 0 1px 0 #ebfaff2f, var(--surface-shadow);
}

.page-heading h1, .lake-head h1, .section-title h2, .preview-head h2,
.dialog-shell .dialog-head h2, .metric-value, #preview-ice:not(.no-value) {
  font-family: var(--display-font);
}

.page-heading h1 {
  color: inherit;
  font-size: clamp(2.05rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 850;
  text-wrap: balance;
}

.date-control { color: inherit; }

.date-control :is(.picker-trigger, select:not(.picker-source)) {
  padding: 0 12px;
  border: 1px solid #d5eeff55;
  border-radius: 28px;
  background: #0d2f43d9;
  color: inherit;
  box-shadow: inset 0 1px 0 #e6f9ff24;
}

.date-control :is(.picker-trigger, select:not(.picker-source)):hover { background: #1a4762; }

.lake-head h1 {
  font-size: clamp(1.52rem, 2.6vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -.039em;
}

.section-title h2 { font-weight: 740; }
.dialog-shell .dialog-head h2 { font-weight: 720; }

.panel, .list-group, .map-layout {
  border-radius: var(--surface-radius);
  box-shadow: var(--surface-shadow);
}

.report {
  background: var(--paper);
}

#save-lake {
  flex: none;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
}

#save-lake:hover { background: var(--tint); }

.searchbox {
  border-radius: 15px;
  box-shadow: inset 0 1px 0 var(--glass-line);
}

.searchbox input::placeholder { color: var(--sub); opacity: 1; }

.segments {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--field);
}

.segments button { border-radius: 11px; }

.segments button[aria-pressed="true"] {
  box-shadow: inset 0 1px 0 var(--glass-line), 0 1px 4px #0d3a5123;
}

.water-symbol { border-radius: 12px; }
.primary, .secondary, .more { border-radius: 14px; }

.primary {
  color: var(--primary-text);
  background: linear-gradient(168deg, var(--primary-light), var(--primary-base));
  box-shadow: inset 0 1px 0 #f1fbff42, 0 2px 6px #13526e22;
}

.primary:hover { background: var(--primary-hover); }
.secondary:hover, .more:hover { background: var(--tint); }

.map-color-filters { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
#map .ice-basemap .leaflet-tile { filter:url("#ice-tiles-night"); }

.map-tool, #map .leaflet-control-zoom a {
  background: var(--paper);
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 var(--glass-line), var(--glass-shadow);
}

.map-tool:hover, #map .leaflet-control-zoom a:not(.leaflet-disabled):hover { background: var(--field); }

#map-tools [aria-pressed="true"] {
  color: var(--primary-text);
  background: var(--primary-base);
  outline-color: var(--paper);
}

#map .leaflet-control-zoom {
  display:grid;
  gap:var(--map-tool-gap);
  margin:0 var(--map-tool-inset) var(--map-tool-inset) 0;
  background:transparent;
  border:0;
  box-shadow:none;
}

#map .leaflet-control-zoom a {
  display:grid;
  place-items:center;
  width:var(--map-tool-size);
  height:var(--map-tool-size);
  line-height:1;
  text-indent:0;
}
#map .leaflet-control-zoom svg { width:21px; height:21px; }
#map .leaflet-control-zoom a:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
#map .leaflet-control-zoom a:not(.leaflet-disabled):active { transform:translateY(1px); }
#map .leaflet-control-zoom .leaflet-disabled { background:var(--soft); color:var(--sub); cursor:default; }
#map .leaflet-control-zoom .leaflet-disabled svg { opacity:.5; }
#map .leaflet-control-attribution { background:var(--paper); color:var(--sub); }
#map .leaflet-control-attribution a { color:var(--blue-deep); }

#map .leaflet-tooltip { background: var(--paper); border-color: var(--line); color: var(--ink); }
#map .leaflet-tooltip-top::before { border-top-color: var(--paper); }
#map .leaflet-tooltip-bottom::before { border-bottom-color: var(--paper); }
#map .leaflet-tooltip-left::before { border-left-color: var(--paper); }
#map .leaflet-tooltip-right::before { border-right-color: var(--paper); }

.preview-head h2 { font-weight: 750; }
#preview-ice { font-variant-numeric: proportional-nums; }

dialog, .picker-panel { box-shadow: 0 14px 42px #082c4752; }
dialog::backdrop { background: #0a233665; }

@media (max-width: 750px) {
  :root { --surface-radius: 18px; }

  .mast-inner { display: flex; min-height: 58px; }
  .mast-inner .brand img { width: 88px; border-radius: 7px; }
  body:has(.water-screen:not([hidden])) .mast { border: 0; }
  body:has(.water-screen:not([hidden])) .mast-inner { min-height: 0; }
  body:has(.water-screen:not([hidden])) .mast .brand { display: none; }

  .tabs {
    gap: var(--space-2);
    box-shadow: 0 -4px 18px #13384d18;
  }

  .tabs a { color: var(--sub); border-radius: 14px; }
  .tabs a:hover { background: var(--field); }

  .tabs a[aria-current="page"] {
    color: var(--blue-deep);
    border-color: var(--line);
    background: var(--tint);
    box-shadow: inset 0 1px 0 var(--glass-line);
  }

  .tabs :focus-visible { outline-color: var(--focus); }

  @supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
    .tabs {
      background: var(--dock-glass);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }
  }

  .page-heading {
    min-height: 84px;
    padding: 14px 17px;
    margin: 14px 0;
  }

  .page-heading h1 { font-size: clamp(1.7rem, 6vw, 2.15rem); }

  .date-control :is(.picker-trigger, select:not(.picker-source)) {
    padding: 0 10px;
    font-size: .79rem;
  }

}

@media (forced-colors: active) {
  .mast, .page-heading { background: Canvas; color: CanvasText; }
  .page-heading :focus-visible, .mast :focus-visible { outline-color: Highlight; }
}

.account-card,.pilot-item,.pilot-list{display:grid;align-content:start;gap:var(--space-3);min-width:0}
.account-card,.pilot-item{padding:var(--space-5)}
.account-card{margin-bottom:var(--space-4);overflow-wrap:anywhere}
.account-signed-in{gap:var(--space-2)}
.account-fields{border-block:1px solid var(--line);min-width:0}
.account-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-3);padding-block:var(--space-3)}
.account-field+.account-field{border-top:1px solid var(--line)}
.account-field-text{display:grid;gap:.15rem;min-width:0}
.account-field-label,.account-field-note{color:var(--sub);font-size:.8125rem;line-height:1.4}
.account-field strong{line-height:1.35;font-weight:680}
.account-field-action{padding-inline:var(--space-2);text-decoration:none;white-space:nowrap}
.account-email{grid-template-columns:minmax(0,1fr);align-items:start;gap:var(--space-1)}
.account-email-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-1) var(--space-2)}
.account-email .account-field-action{justify-self:start;white-space:normal;text-align:left}
.email-status{padding:.15rem .55rem;border-radius:1rem;background:var(--field);color:var(--sub);font-size:.75rem;font-weight:620;line-height:1.4}
.email-status-verified{background:#21483e;color:#a7e4cf}
.account-session-actions .account-signout{margin-inline-start:auto;color:var(--sub);padding-inline:var(--space-2)}
.pilot-item{gap:var(--space-2);overflow-wrap:anywhere}
.pilot-item h3,.account-card h2{font-size:1.04rem;line-height:1.35}
.pilot-item h3 a{color:var(--ink);text-decoration:none}
.pilot-item h3 a:hover,.pilot-item h3 a:focus-visible{text-decoration:underline}
.pilot-actions{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}
.pilot-actions .primary{width:fit-content;padding-inline:var(--space-5)}
#news-screen>.pilot-list{max-width:760px;margin-top:var(--space-4)}
.form-error:empty{display:none}
.form-error{color:var(--signal)}
#auth-forgot{justify-self:start}
#auth-yandex { justify-self: center; min-height: 44px; max-width: 100%; padding: 0; border-radius: 12px; }
#auth-yandex img { display: block; max-width: 100%; height: auto; }
.pilot-list .text-btn{justify-self:start}
#archive-status:empty{display:none}
.archive-table-frame{
  overflow:hidden;margin-block:var(--space-2);
  border:1px solid var(--line);border-radius:12px;
}
.archive-table{width:100%;table-layout:fixed;border-spacing:0;font-size:.875rem;font-variant-numeric:tabular-nums}
.archive-table th,.archive-table td{text-align:left;padding:.45rem .55rem;vertical-align:top}
.archive-table th{background:var(--field);color:var(--blue-deep)}
.archive-table th:is(:first-child,:last-child){width:clamp(3.75rem,22%,10rem)}
.archive-table td{border-top:1px solid var(--line)}
.archive-table small{display:block;color:var(--sub)}
.telegram-alerts { padding-inline: var(--space-4); margin-bottom: var(--space-4); }
.telegram-alerts > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 56px; padding-block: var(--space-2); list-style: none;
  color: var(--ink); font-size: .9375rem; font-weight: 650;
}
.telegram-alerts > summary::-webkit-details-marker { display: none; }
.telegram-alerts > summary > svg { width: 16px; height: 16px; color: var(--blue); }
.telegram-alerts[open] > summary > svg { transform: rotate(180deg); }
.telegram-alert-body, .telegram-rules, .telegram-water-fields { display: grid; gap: var(--space-3); }
.telegram-alert-body { padding-block: var(--space-3) var(--space-4); border-top: 1px solid var(--line); }
.telegram-alert-body p { margin: 0; }
.telegram-alert-body > .pilot-actions:not(:has(> :not([hidden]))) { display: none; }
#telegram-add { justify-self: start; }
#telegram-rule-dialog .dialog-content { container-name: telegram-form; }
#telegram-rule-dialog p { margin: 0; }
#telegram-rule-remove { color: var(--signal); }
.telegram-water-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.telegram-thresholds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.telegram-thresholds .form-field > span { text-wrap: balance; }
@container telegram-form (min-width: 23rem) {
  .telegram-thresholds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  .telegram-thresholds .form-field { grid-template-rows: 1fr auto; align-content: stretch; }
}
.telegram-rules { margin: 0; padding: 0; list-style: none; }
.telegram-rule-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-3);
  border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
  color: var(--ink); text-align: left;
}
.telegram-rule-card:hover { background: var(--field); }
.telegram-rule-card > svg { width: 18px; height: 18px; color: var(--blue); }
.telegram-rule-copy { display: grid; gap: var(--space-1); overflow-wrap: anywhere; }
.telegram-rule-values {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2);
  color: var(--sub); font-size: .8125rem; line-height: 1.4;
}
.telegram-rule-values > span { padding: .125rem .375rem; border-radius: 6px; background: var(--paper); }
@media(max-width:720px){
  .tabs a{min-width:0;flex:1}
  .account-card,.pilot-item{padding:var(--space-4)}
}

#preview-visits {
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.visit-heading, .visit-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.visit-heading h3 {
  margin: 0;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 700;
}
.visit-heading .text-btn, .visit-report-head .text-btn {
  min-height: 44px;
  padding: 4px 0;
  text-align: right;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 650;
}
#visit-status, .visit-report-head, #visit-history summary {
  margin: 0;
  color: var(--sub);
  font-size: .8125rem;
  line-height: 1.35;
}
.visit-report time { color: var(--ink); font-weight: 650; }
.visit-report dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 6px 0 0;
  font-size: .875rem;
  line-height: 1.35;
}
.visit-report dt, .visit-approach-note { color: var(--sub); }
.visit-report dd { margin: 0; overflow-wrap: anywhere; }
.visit-approach-note { display: block; }
#visit-history summary, #visit-access-details summary {
  padding-block: 10px;
  cursor: pointer;
  color: var(--blue-deep);
}
#visit-previous .visit-report {
  border-top: 1px solid var(--line);
  padding-block: 8px;
}

#visit-dialog .dialog-content { gap: 12px; }
#visit-dialog .muted { margin: 0; font-size: .8125rem; line-height: 1.35; }
.visit-choices {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.visit-choices legend {
  margin-bottom: 5px;
  padding: 0;
  font-size: .875rem;
  font-weight: 650;
}
.visit-choices > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.visit-choices button {
  min-height: 44px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 570;
  line-height: 1.2;
}
.visit-choices button[aria-pressed="true"] {
  border-color: var(--blue-deep);
  background: var(--tint);
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px var(--blue-deep);
}
#visit-access-details summary { font-size: .875rem; line-height: 1.3; }
#visit-access-details textarea { width: 100%; }
.visit-day {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
#visit-dialog .visit-day input { width: auto; max-width: 100%; }
#visit-dialog #visit-error { color: var(--signal); }
#visit-remove { justify-self: center; min-height: 36px; }

#map-tools #map-layers.map-rp5-active {
  border-color: var(--blue);
  background: var(--tint);
  color: var(--blue-deep);
}

#rp5-layer {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

#rp5-settings {
  padding: 2px var(--space-2) var(--space-2);
}

#rp5-options summary {
  min-height: 36px;
  padding-block: 9px;
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}

#rp5-field-count {
  margin-inline-start: .4em;
  color: var(--sub);
  font-weight: 500;
  white-space: nowrap;
}

#rp5-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
}

#rp5-field-actions button {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-deep);
  background: var(--paper);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}

#rp5-field-actions button:is(:hover, :focus-visible) {
  background: var(--tint);
}

#rp5-fields {
  max-height: min(220px, 30dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 4px;
}

.rp5-field-group + .rp5-field-group {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.rp5-field-group legend {
  padding: 0 var(--space-2);
  color: var(--sub);
  font-size: .8rem;
  font-weight: 650;
}

.rp5-field-group input { flex: 0 0 16px; }
#rp5-status { margin: 6px 0 0; color: var(--sub); font-size: .82rem; }

.rp5-station-icon { background: none; border: 0; }

.rp5-pin {
  display: inline-grid;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid #587b90;
  border-radius: 9px;
  color: #f4fbff;
  background: #122e41;
  box-shadow: 0 2px 6px #081c2e70;
  white-space: nowrap;
  font: 600 10px/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.rp5-pin-main, .rp5-pin-meta { display: flex; align-items: center; gap: 7px; }
.rp5-pin-main { justify-content: space-between; min-height: 15px; }
.rp5-pin-meta { color: #bdcfda; }

.rp5-pin-reading { font-size: 14px; line-height: 1.1; font-weight: 750; }

.rp5-pin-stale { border-color: #b08955; }
.rp5-pin-age { display: inline-flex; align-items: center; gap: 4px; color: #ffda95; }

.rp5-pin-age::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.rp5-station-icon:focus-visible .rp5-pin { outline: 2px solid #fff; outline-offset: 2px; }

.rp5-station-popup :is(.leaflet-popup-content-wrapper, .leaflet-popup-tip) {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
}

.rp5-station-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rp5-station-popup .leaflet-popup-tip { border: 1px solid var(--line); }
.rp5-station-popup .leaflet-popup-content { margin: 0; }

.rp5-station-card {
  display: flex;
  flex-direction: column;
  max-height: min(var(--rp5-card-height), 50dvh);
  color: var(--ink);
}

.rp5-station-heading {
  flex: none;
  padding: 12px 48px 10px 14px;
  border-bottom: 1px solid var(--line);
}

.rp5-station-title {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rp5-station-time, .rp5-field-time {
  display: block;
  margin-top: 3px;
  color: var(--sub);
  font-size: .76rem;
  font-weight: 400;
}

.rp5-measurements {
  min-height: 0;
  margin: 0;
  padding-inline: 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--sub) transparent;
  font-size: .83rem;
}

.rp5-measurement { padding-block: 8px; }
.rp5-measurement + .rp5-measurement { border-top: 1px solid var(--line); }
.rp5-measurement dt { color: var(--sub); margin-bottom: 2px; }
.rp5-measurement dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

#map .rp5-station-popup .leaflet-popup-close-button {
  inset: 4px 4px auto auto;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: var(--ink);
  font: 1.3rem/40px system-ui, sans-serif;
}

#map .rp5-station-popup .leaflet-popup-close-button:is(:hover, :focus-visible) {
  background: var(--tint);
}

#map .rp5-station-popup :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}


dialog.ice-consent {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 480px);
  max-height: calc(100dvh - 32px);
  inset: 0;
  margin: auto;
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--line, #37576a);
  border-radius: 20px;
  background: var(--paper, #172f3e);
  color: var(--ink, #edf8fc);
  text-align: left;
  box-shadow: 0 16px 70px #051d2859;
}

.ice-consent::backdrop {
  background: #061b2ac7;
}

.ice-consent h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.2;
}

.ice-consent-copy p, .ice-consent-status {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.ice-consent-status:empty {
  display: none;
}

.ice-consent button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-base, #92cee7);
  color: var(--primary-text, #102431);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.ice-consent button:focus-visible {
  outline: 2px solid var(--focus, #8dd3f2);
  outline-offset: 3px;
}

.ice-consent button:disabled {
  opacity: .7;
  cursor: wait;
}

.ice-consent .ice-consent-cancel {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.map-howto-copy { line-height: 1.45; }
.map-howto-copy p { margin: 0 0 .6rem; }
.map-howto-copy ul { margin: 0; padding-inline-start: 1.25rem; }
.map-howto-copy li + li { margin-top: .45rem; }
.map-howto-copy li::marker { color: var(--blue, #92cee7); }
#map-howto { margin-block: .5rem 1rem; }
#map-howto summary { padding-block: .65rem; cursor: pointer; font-weight: 650; }
.ice-consent h3 { margin: 1rem 0 .5rem; font-size: 1.05rem; }

@media (max-width: 600px) {
  dialog.ice-consent:has(.map-howto-copy) {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 83dvh;
    padding: 18px max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-radius: 20px 20px 0 0;
  }
  .ice-consent:has(.map-howto-copy)::backdrop { background: #061b2a60; }
}

.ice-confidence { scroll-margin-block-start: var(--space-4); }
.confidence-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
}
#confidence-title:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.confidence-heading { display: grid; gap: .15rem; }
.confidence-heading > span { font-size: .76rem; font-weight: 560; line-height: 1.25; color: var(--sub); }
.confidence-heading strong { font-size: .97rem; font-weight: 670; line-height: 1.28; }
.confidence-preview { display: grid; gap: .15rem; text-align: right; line-height: 1.3; }
.confidence-preview[hidden] { display: none; }
.confidence-preview span { color: var(--sub); font-weight: 500; font-size: .7rem; }
.confidence-preview strong { color: var(--blue-deep); font-weight: 620; font-size: .83rem; font-variant-numeric: tabular-nums; }
.confidence-meter {
  width: 2rem; height: 2rem; display: flex; align-items: flex-end; justify-content: center;
  gap: 2px; padding: 8px 0; border-radius: 9px; background: var(--soft); color: var(--blue);
}
.confidence-meter i { width: 4px; background: var(--line); border-radius: 1px; }
.confidence-meter i:nth-child(1) { height: 6px; }
.confidence-meter i:nth-child(2) { height: 10px; }
.confidence-meter i:nth-child(3) { height: 15px; }
.ice-confidence:is([data-level="base"], [data-level="local"], [data-level="verified"]) .confidence-meter i:first-child,
.ice-confidence:is([data-level="local"], [data-level="verified"]) .confidence-meter i:nth-child(2),
.ice-confidence[data-level="verified"] .confidence-meter i:nth-child(3) { background: currentColor; }
.confidence-meter svg { display: none; width: 1.15rem; height: 1.15rem; }
.ice-confidence:is([data-level="measured"], [data-level="old"]) .confidence-meter { align-items: center; padding: 0; }
.ice-confidence:is([data-level="measured"], [data-level="old"]) .confidence-meter i { display: none; }
.ice-confidence:is([data-level="measured"], [data-level="old"]) .confidence-meter svg { display: block; }
.map-confidence-bars { display: inline-flex; align-items: flex-end; justify-content: center; gap: 1px; min-width: 13px; height: 13px; flex: none; }
.map-confidence-bars i { width: 3px; border: 1px solid currentColor; box-sizing: border-box; border-radius: 1px; opacity: .48; }
.map-confidence-bars i:nth-child(1) { height: 5px; }
.map-confidence-bars i:nth-child(2) { height: 8px; }
.map-confidence-bars i:nth-child(3) { height: 12px; }
.map-confidence-bars:is([data-level="base"], [data-level="local"], [data-level="verified"]) i:first-child,
.map-confidence-bars:is([data-level="local"], [data-level="verified"]) i:nth-child(2),
.map-confidence-bars[data-level="verified"] i:last-child { background: currentColor; opacity: 1; }
#preview-confidence { display: inline-flex; gap: .45rem; align-items: center; min-height: 34px; padding: 0 .15rem; color: var(--blue-deep); background: transparent; border: 0; font: inherit; font-size: .79rem; font-weight: 630; cursor: pointer; }
#preview-confidence[hidden] { display: none; }
#preview-confidence svg { width: .8rem; height: .8rem; }
#preview-confidence:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (pointer: coarse) { #preview-confidence { min-height: 44px; } }
.confidence-details { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.confidence-details :is(h3, h4, h5, h6) { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 680; }
.confidence-details p.confidence-caption { max-width: 75ch; margin: .35rem 0 0; color: var(--sub); font-size: .85rem; line-height: 1.55; }
.confidence-inputs dl {
  display: grid; grid-template-columns: fit-content(43%) minmax(0, 1fr); gap: .42rem .85rem;
  margin: .7rem 0 0; font-size: .83rem; line-height: 1.45;
}
.confidence-inputs dt { color: var(--sub); }
.confidence-inputs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.confidence-inputs time { display: block; font-size: .76rem; color: var(--sub); }
.confidence-checks, .confidence-method { border-top: 1px solid var(--line); padding-top: .9rem; min-width: 0; }
.confidence-checks > h4, .confidence-replay > h4 { margin-top: .65rem; }
.confidence-visits { margin-top: var(--space-3); }
.confidence-visits h6 { margin-top: var(--space-2); color: var(--sub); }
.confidence-visit-list { list-style: none; padding: 0; margin: .25rem 0; }
.confidence-visit-list li { display: grid; gap: .12rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .79rem; }
.confidence-visit-list small { font-size: .75rem; color: var(--sub); }
.confidence-visit-list a { width: fit-content; color: var(--blue-deep); }
.confidence-horizons {
  list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  margin: .65rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.confidence-horizons li { min-width: 0; display: grid; align-content: start; gap: .2rem; padding: .5rem .65rem; }
.confidence-horizons li + li { border-inline-start: 1px solid var(--line); }
.confidence-horizons .is-selected { background: var(--soft); }
.confidence-horizons .is-selected .confidence-period { color: var(--blue-deep); }
.confidence-period { color: var(--sub); font-size: .76rem; font-weight: 620; }
.confidence-horizons strong { line-height: 1.2; color: var(--ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.confidence-horizons strong small { font-size: .73rem; font-weight: 550; }
.confidence-count { font-size: .71rem; line-height: 1.3; color: var(--sub); }
.confidence-replay { margin-top: 1rem; }
.confidence-replay a { color: var(--blue-deep); text-underline-offset: .15em; }
@container lake-report (min-width: 52rem) {
  .confidence-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .confidence-checks { border-top: 0; border-inline-start: 1px solid var(--line); padding: 0 0 0 var(--space-4); }
  .confidence-method { grid-column: 1 / -1; }
}
@container lake-report (max-width: 20rem) {
  .confidence-header { grid-template-columns: auto minmax(0, 1fr); column-gap: .5rem; }
  .confidence-preview { grid-column: 2; justify-self: start; text-align: start; }
  .confidence-heading strong { font-size: .89rem; }
  .confidence-horizons li { padding: .45rem .35rem; }
  .confidence-inputs dl { column-gap: .55rem; }
}

#map-search-panel > a { align-self: flex-start; text-decoration: none; }
#map-nearby-caption {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px var(--space-2) 2px;
  color: var(--ink);
}
#map-nearby-caption small { color: var(--sub); font-size: .8rem; }
.map-search-results .map-result-facts { color: var(--ink); }
.map-search-results [data-restriction="prohibited"] { color: var(--signal); }
#map-screen .map-frame { --map-brand-width: calc(var(--map-tool-size) * 362 / 170); }
#map-brand { width: var(--map-brand-width); height: var(--map-tool-size); min-height: 0; }
#map-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
}
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) #map-brand { display: none; }
#map-toolbar > #map-search-panel { margin-inline-start: calc(var(--map-brand-width) + var(--map-tool-gap)); }
#map-tools :is(#map-search, #map-weather, #map-weight),
#map-tools .picker-trigger {
  gap: 6px;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
}
#map-tools :is(.map-tool, .picker-trigger) > svg:first-child,
#account-avatar > svg { width: 18px; height: 18px; }
#map-tools .picker-chevron { width: 14px; height: 14px; }
#map-tools .picker-trigger > svg:first-child, #map-weight > svg { color: var(--blue); }
#map-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(33vw, 330px);
  min-width: max-content;
  padding-inline: 12px;
  text-align: left;
}
#map-tools > #map-weight { flex: none; min-width: 0; }
#map-toolbar-row { width: 100%; }
#map-tools { display: flex; width: 100%; min-width: 0; align-items: center; gap: var(--map-tool-gap); pointer-events: none; }
#map-tools > * { flex: none; pointer-events: auto; }
#map-tools > #map-search { flex-shrink: 1; }
#map-tools #map-weather { margin-inline-start: auto; }
#map-weather {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: var(--map-tool-size);
  padding-inline: 8px;
}
#map-weather-values { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
#map-weather-values:empty { display: none; }
#map-weather-values strong { font-weight: inherit; }
#map-weather-wind { border-inline-start: 1px solid var(--line); padding-inline-start: 5px; color: var(--sub); }
#map-weather-values .wind-direction { display: inline-flex; align-items: center; gap: 3px; }
#map-weather-values .wind-direction svg, #map-weather-values .map-weather-saved { width: 14px; height: 14px; }
#map-weather-values .wind-direction svg { margin-inline-start: 0; stroke-width: 1.8; }
#map-tools #map-weather[aria-expanded="true"] { border-color: var(--blue); background: var(--tint); }
@media (max-width: 860px) {
  #map-toolbar #map-weather-wind { display: none; }
}
@media (max-width: 550px) {
  #map-weather-wind, #map-weather:has(#map-weather-values:not(:empty)) > svg { display: none; }
  #map-weather { padding-inline: 5px; }
}
#map-weight {
  width: auto;
  max-width: 46%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 9px;
  color: var(--ink);
}
#map-weight-value { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#weight { font-size: 1.125rem; }

#profile-link-slot { justify-self: end; margin-inline-start: auto; }
#profile-link-slot:empty { display: none; }
#profile-link {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--map-tool-size, 44px);
  height: var(--map-tool-size, 44px);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-deep);
  box-shadow: var(--glass-shadow);
  text-decoration: none;
}
#account-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--tint);
  font-size: .8125rem;
  font-weight: 700;
}
#profile-link:is(:hover, :focus-visible) { border-color: var(--blue); }

[data-map-tip] { position: relative; }
[data-map-tip]:not([aria-expanded="true"])::after {
  content: attr(data-map-tip);
  position: absolute;
  z-index: 1;
  top: calc(100% + 7px);
  inset-inline-end: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
}
[data-map-tip]:focus-visible::after { visibility: visible; }
@media (hover: hover) {
  [data-map-tip]:hover::after { visibility: visible; transition: visibility 0s 250ms; }
}

body:has(#map-screen:not([hidden])) > .mast { display: none; }
body:has(#map-screen:not([hidden], [data-full-viewport])) {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}
body:has(#map-screen:not([hidden], [data-full-viewport])) > main {
  display: grid;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#map-screen:not([data-full-viewport]),
#map-screen:not([data-full-viewport]) :is(.map-layout, .map-frame) { display: grid; min-width: 0; }
#map-screen:not([data-full-viewport]), #map-screen[data-desktop-fullscreen] {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}
#map-screen .map-layout { border: 0; border-radius: 0; box-shadow: none; }
#map-screen:not([data-full-viewport]) #map { height: auto; min-height: min(360px, 60dvh); }

#map-loading {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(22rem, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  text-align: center;
  pointer-events: none;
  animation: map-loading-appear 120ms 150ms both;
}
#map-loading-title { font-size: 1.0625rem; line-height: 1.3; }
#map-loading-message { margin: 0; color: var(--sub); font-size: .875rem; line-height: 1.45; }
.map-loading-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--blue-deep);
  border-radius: 50%;
  animation: map-loading-spin .85s linear infinite;
}
#map-loading[data-stage="ice"] {
  inset: calc(var(--map-tool-inset) + var(--map-tool-size) + var(--map-tool-gap)) var(--map-tool-inset) auto auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: calc(100% - 2 * var(--map-tool-inset));
  padding: 6px 9px;
  border-radius: 8px;
}
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) #map-loading[data-stage="ice"] {
  inset-block-start: calc(var(--map-top-controls) + var(--map-tool-size) + var(--map-tool-gap));
  inset-inline-end: var(--map-safe-right);
  max-width: calc(100% - var(--map-safe-left) - var(--map-safe-right));
}
#map-loading[data-stage="ice"] #map-loading-title { font-size: .8125rem; font-weight: 650; }
#map-loading[data-stage="ice"] .map-loading-spinner { flex: none; width: 14px; height: 14px; border-width: 2px; }
#map-loading[hidden] { display: none; }
@keyframes map-loading-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes map-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #map-loading, .map-loading-spinner { animation: none; }
}

#map-key-dock > summary { cursor: pointer; min-height: var(--layer-row-height); padding-inline: 8px; align-content: center; }
#map-key { padding: 0 8px; }
#map-key .map-key-group { gap: 5px 10px; padding-block: 4px; }
#map-key .map-key-group, #map-key .map-legend, #map-key .map-legend li, #map-key .map-travel-note { align-items: center; }
#map-key .map-key-group h2, #map-key .map-legend { flex: 0 1 auto; }
#map-key .map-legend li > :first-child, #map-key .map-travel-note svg { margin: 0; }
#map-key .map-travel-note svg { flex: none; }
#map-key-dock #map-howto { margin: 4px 8px; }
.map-layer-explanation { width: 100%; color: var(--sub); font-size: .8125rem; line-height: 1.45; }
.map-layer-explanation p { margin: 0 0 .45rem; }
.map-key-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 4px;
  text-align: start;
  line-height: inherit;
}
.map-key-info span {
  text-decoration: underline dotted;
  text-decoration-color: var(--blue);
  text-underline-offset: 3px;
}
.map-key-info:is(:hover, :focus-visible) { color: var(--blue-deep); }
#map-key-help { width: min(390px, calc(100% - 24px)); }
#map-key-help p { color: var(--sub); font-size: .9375rem; line-height: 1.5; }

.map-pick-guide {
  position: absolute;
  z-index: 3;
  inset: auto auto calc(var(--map-bottom-gap, 0px) + var(--map-drawer-visible-height, 0px) + var(--map-search-space, 0px) + 28px) var(--map-safe-left, var(--map-tool-inset));
  display: grid;
  gap: 4px;
  max-width: min(25rem, calc(100% - 2 * var(--map-tool-inset) - 52px));
  pointer-events: none;
}
#map-hint:not(:empty), #map-lake-guide {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
#map-lake-guide { font-size: .9rem; line-height: 1.4; pointer-events: auto; }
#map-lake-guide p { margin: 0; }
#map-installed { display: block; margin-bottom: 3px; }
#map-nearby { min-height: 44px; margin-bottom: -5px; pointer-events: auto; }
#map-screen:has(#map-preview:not([hidden]), #map-selection:not([hidden]), #map-prompt:not([hidden]),
    #map-search-panel:not([hidden]), #map-drawer[data-open],
    #current-legend:not([hidden]), #depth-legend:not([hidden]), #satellite-map-legend:not([hidden])) #map-lake-guide {
  display: none;
}
html[data-open-testing] #map-screen:has(#map-lake-guide:not([hidden])) #map #ice-surface-legend { display: none; }

#map-gps[aria-busy="true"] { opacity: .65; }
#map-gps[data-located] { background: var(--tint); border-color: var(--blue); color: var(--blue-deep); }
.map-user-dot,
.map-user-bearing { position: absolute; inset: 0; }
.map-user-dot {
  inset: 2px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1677e4;
  box-shadow: 0 1px 5px #072f68a0;
}
.map-user-bearing { rotate: var(--map-bearing, 0deg); }
.map-user-bearing::before {
  content: "";
  position: absolute;
  inset: -18px -5px 50%;
  background: #1677e4;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 40%;
}

body:has(#map-screen[data-full-viewport]:not([hidden])) { overflow: hidden; overscroll-behavior: none; }

#map-screen[data-full-viewport] {
  position: fixed;
  z-index: 20;
  inset: 0 0 var(--map-keyboard-inset, 0px);
  --map-grip-height: 48px;
  --map-safe-top: max(10px, env(safe-area-inset-top));
  --map-safe-left: max(12px, env(safe-area-inset-left));
  --map-safe-right: max(12px, env(safe-area-inset-right));
  --map-bottom-gap: max(var(--map-dock-height, 0px), env(safe-area-inset-bottom));
}
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) .map-frame {
  --map-controls-height: calc(var(--map-tool-size) + var(--map-tool-gap));
  --map-top-controls: calc(var(--map-safe-top) + var(--map-controls-height));
  --map-search-space: calc(var(--map-tool-size) + 10px);
  --map-search-bottom: calc(var(--map-bottom-gap) + 28px);
  --map-search-rail: calc(var(--map-tool-size) + 8px);
}
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]):has(#map-drawer[data-open]) .map-frame { --map-search-space: 0px; }
#offline-status:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px var(--page-gutter, 16px);
  color: var(--ink);
  background: var(--tint);
  font-size: .82rem;
  line-height: 1.25;
}
#offline-status button { min-height: 44px; flex: none; }
body:has(#map-screen[data-full-viewport]:not([hidden])) #offline-status:not([hidden]) {
  position: fixed;
  z-index: 25;
  inset: 0 0 auto;
  padding-top: max(2px, env(safe-area-inset-top));
}
body:has(#offline-status:not([hidden])) #map-screen[data-full-viewport] {
  inset-block-start: var(--offline-status-height, 48px);
}
#map-screen[data-full-viewport] .map-layout { width: 100%; height: 100%; border: 0; border-radius: 0; }
#map-screen[data-full-viewport] :is(.map-frame, #map) { width: 100%; height: 100%; }
#map-screen[data-full-viewport] .map-frame { --map-zoom-room: calc(3 * var(--map-tool-size) + 2 * var(--map-tool-gap)); }
.map-layout > #map-selection[data-point],
#map-screen[data-desktop-fullscreen] .map-layout > #map-selection {
  position: absolute;
  z-index: 3;
  inset: 10px auto auto 10px;
  width: min(21rem, calc(50% - 40px));
  min-height: 0;
  max-height: calc(100% - 20px);
  overflow: auto;
  overscroll-behavior: contain;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
}
#map-screen[data-desktop-fullscreen] .map-layout > #map-selection:not([data-point]) { top: 64px; }
.map-layout > #map-selection[data-off-map] { visibility: hidden; }
.map-layout > #map-selection[data-point] .map-point-heading { padding-inline-end: 32px; }
.map-point-close { position: absolute; top: 4px; right: 4px; color: var(--sub); }
.map-point-close svg { width: 18px; height: 18px; }
#map-selection[data-point] .map-point-actions {
  grid-column: 1;
  justify-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#map-selection[data-point] .map-point-actions > :not(.map-point-measure, .map-route-action.secondary) { flex-basis: 100%; }
#map-selection[data-point] .map-point-actions :is(.primary, .secondary) { gap: .35rem; padding: .5rem .65rem; font-size: .875rem; line-height: 1.25; }
.map-point-actions :is(.map-point-measure, .map-route-action) { white-space: nowrap; }
.map-point-measure svg { flex: none; width: 1rem; height: 1rem; }
.map-point-links { display: flex; flex-wrap: wrap; column-gap: var(--space-3); margin-block: -6px -9px; }
.map-point-links .text-btn { padding-inline: 0; font-size: .8125rem; }
.map-point-links .text-btn svg { width: .875rem; height: .875rem; }
#point-ice-range { font-size: 1.125rem; line-height: 1.25; }
#map-selection[data-point] .map-point-heading { min-height: 1.35rem; }
#map-quick-tools {
  position: absolute;
  z-index: 4;
  top: var(--map-safe-top);
  left: var(--map-safe-left);
  right: var(--map-safe-right);
  bottom: calc(var(--map-search-bottom) + var(--map-drawer-visible-height, 0px));
  pointer-events: none;
}
#map-quick-tools #map-tools {
  display: grid;
  grid-template-columns: var(--map-tool-size) auto minmax(0, 1fr) auto var(--map-tool-size);
  gap: 5px;
}
#map-quick-tools #map-tools > :is(#profile-link, #map-weight, #map-trip-date-slot, #map-layers) { grid-row: 1; }
#map-quick-tools #profile-link { grid-column: 1; }
#map-quick-tools #profile-link::after { inset-inline: 0 auto; }
#map-quick-tools #map-weight { grid-column: 2; max-width: 100%; }
#map-quick-tools #map-trip-date-slot { grid-column: 4; }
#map-quick-tools #map-layers { grid-column: 5; }
#map-quick-tools #map-weather {
  position: absolute;
  top: calc(var(--map-tool-size) + var(--map-tool-gap));
  right: 0;
  margin: 0;
}
#map-quick-tools #map-search {
  position: absolute;
  inset: auto var(--map-search-rail) 0 0;
  width: auto;
  min-width: 0;
  max-width: 330px;
}
#map-screen:has(#map-drawer[data-open]) #map-quick-tools #map-search {
  inset: calc(var(--map-tool-size) + var(--map-tool-gap)) auto auto 0;
  justify-content: center;
  width: var(--map-tool-size);
  padding: 0;
}
#map-screen:has(#map-drawer[data-open]) #map-quick-tools #map-search span { display: none; }
#map-quick-tools #map-trip-date-slot .picker-chevron { display: none; }
@media (max-width: 430px) {
  #map-quick-tools #map-weight svg,
  #map-quick-tools #map-trip-date-slot .picker-trigger > svg:first-child { display: none; }
  #map-quick-tools #map-weight,
  #map-quick-tools #map-trip-date-slot .picker-trigger { padding-inline: 7px; }
}
#map-quick-tools .map-tool:is([aria-expanded="true"], .map-layer-active, .depth-active, .map-rp5-active) {
  border-color: var(--blue);
  background: var(--tint);
  color: var(--blue-deep);
}
.map-frame > #map-search-panel {
  position: absolute;
  z-index: 4;
  bottom: calc(var(--map-search-bottom) + var(--map-tool-size) + 8px);
  left: var(--map-safe-left);
  width: min(330px, calc(100% - var(--map-safe-left) - var(--map-safe-right) - var(--map-search-rail)));
  max-height: max(66px, calc(100% - var(--map-top-controls) - var(--map-search-bottom) - var(--map-tool-size) - 16px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-frame > #map-search-panel > :not(.map-search-results) { flex: none; }
.map-frame > #map-search-panel .map-search-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#map-screen:is(:not([data-full-viewport]), [data-desktop-fullscreen]) .leaflet-bottom.leaflet-right {
  top: 50%;
  bottom: auto;
}
#map-screen:is(:not([data-full-viewport]), [data-desktop-fullscreen]) #map .leaflet-control-zoom {
  margin-bottom: 0;
  transform: translateY(-50%);
}
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) .leaflet-bottom.leaflet-right {
  right: var(--map-safe-right);
  bottom: calc(var(--map-bottom-gap) + var(--map-drawer-visible-height, 0px) + 8px);
  transition: bottom 220ms cubic-bezier(.2, .75, .25, 1);
}
#map-screen:has(#map-drawer[data-dragging]) .leaflet-bottom.leaflet-right { transition: none; }
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) .leaflet-control-zoom { margin: 0; }
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) #map-prompt {
  top: var(--map-top-controls);
  left: var(--map-safe-left);
  max-width: calc(100% - var(--map-safe-left) - var(--map-safe-right));
}

#map-drawer-layer {
  position: absolute;
  z-index: 5;
  inset: var(--map-safe-top) 0 var(--map-bottom-gap);
  overflow: hidden;
  pointer-events: none;
}
#map-drawer {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  max-height: min(67dvh, max(var(--map-grip-height), calc(100% - max(var(--map-controls-height), var(--map-zoom-room) + 8px))));
  border-radius: 23px 23px 0 0;
  background: var(--paper);
  box-shadow: 0 -3px 20px #0e2e482e;
  pointer-events: auto;
  transform: translate3d(0, var(--map-drawer-offset, calc(100% - var(--map-grip-height))), 0);
  transition: transform 220ms cubic-bezier(.2, .75, .25, 1);
}
#map-drawer[data-open] { transform: translate3d(0, var(--map-drawer-offset, 0px), 0); }
#map-drawer[data-dragging] { transition: none; }
#map-drawer:not(:has(#map-drawer-result > :not([hidden]), #map-drawer-layers > :not([hidden]),
    #map-enable-compass:not([hidden]), #sentinel2-day-field:not([hidden]), #satellite-map-message:not([hidden]))) {
  transform: none;
  background: none;
  box-shadow: none;
}
#map-drawer:not(:has(#map-drawer-result > :not([hidden]), #map-drawer-layers > :not([hidden]),
    #map-enable-compass:not([hidden]), #sentinel2-day-field:not([hidden]), #satellite-map-message:not([hidden]))) > :is(#map-drawer-handle, #map-drawer-content) {
  display: none;
}
#map-drawer-handle {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  width: 100%;
  flex: 0 0 var(--map-grip-height);
  border-radius: inherit;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  touch-action: none;
  cursor: grab;
}
#map-drawer-handle:active { cursor: grabbing; }
#map-drawer-handle:focus-visible { outline-offset: -4px; }
.map-drawer-grip { width: 34px; height: 4px; border-radius: 9px; background: var(--sub); opacity: .52; }
#map-drawer-content {
  min-height: 0;
  padding: 0 var(--map-safe-right) 12px var(--map-safe-left);
  overflow: auto;
  overscroll-behavior-y: contain;
}
#map-mobile-credits {
  position: absolute;
  left: var(--map-safe-left);
  bottom: calc(100% + 5px);
  max-width: calc(100% - var(--map-safe-left) - var(--map-safe-right));
}
#map-mobile-credits .leaflet-control-attribution {
  float: none;
  margin: 0;
  padding-inline: 4px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--sub);
  font-size: .6875rem;
  overflow-wrap: anywhere;
}
#map-mobile-credits a { color: var(--blue-deep); }

#map-drawer :is(#map-toolbar, #map-preview) { position: static; inset: auto; width: 100%; max-width: none; }
#map-drawer #map-toolbar { gap: 8px; pointer-events: auto; }
#map-drawer #map-toolbar:not(:has(#sentinel2-day-field:not([hidden]), #satellite-map-message:not([hidden]), #depth-choice:not([hidden]))) { display: none; }
#map-drawer #map-preview {
  max-height: none;
  margin-bottom: 10px;
  box-shadow: none;
  animation: none;
}
#map-drawer #map-station-result { position: relative; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
#map-drawer .rp5-station-card { max-height: none; }
#map-drawer .rp5-measurements { overflow: visible; }
#map-station-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; }
#map-drawer #map-selection { position: relative; min-height: 0; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
#map-drawer #map-selection[data-point] .map-point-heading { padding-inline-end: 32px; }
#map-drawer #map-drawer-layers { font-size: .85rem; }
#map-drawer #map-drawer-layers :is(#satellite-map-legend, #depth-legend) {
  visibility: visible;
  float: none;
  z-index: auto;
  padding-block: 4px;
}
#map-drawer #depth-palette { width: min(100%, 20rem); }
#map-drawer #depth-limit { height: 34px; }
#map-screen :is(.map-tool, .leaflet-control-zoom a), .map-detail-sheet { touch-action: manipulation; }

.map-detail-sheet {
  --dialog-travel: min(45dvh, 320px);
  position: fixed;
  inset: auto 0 var(--dialog-keyboard-bottom, 0px);
  width: min(100%, 32rem);
  max-height: min(78dvh, var(--dialog-limit, 100dvh));
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -12px 40px #0e2e4833;
}
.map-detail-sheet[open] { display: flex; flex-direction: column; translate: 0 var(--map-detail-offset, 0px); }
.map-detail-sheet[data-dragging] { transition: none; }
.map-detail-sheet::backdrop { background: #102a3a80; }
.map-detail-sheet[data-anchored] {
  --dialog-travel: 4px;
  z-index: 30;
  inset: var(--map-detail-top, auto) auto var(--map-detail-bottom, auto) var(--map-detail-left, 8px);
  width: min(30rem, calc(100% - 16px));
  max-height: var(--map-detail-height, calc(100% - 16px));
  margin: 0;
  border-radius: 18px;
  box-shadow: 0 12px 40px #0e2e4833;
}
.map-detail-sheet[data-anchored] .map-detail-grip { display: none; }
.map-detail-sheet[data-anchored] .map-detail-head { padding-top: 6px; }
.map-detail-grip { display: grid; flex: none; place-items: center; width: 100%; min-height: 44px; touch-action: none; cursor: grab; }
.map-detail-grip span { width: 34px; height: 4px; background: var(--sub); opacity: .52; border-radius: 9px; }
.map-detail-grip:focus-visible { outline-offset: -4px; }
.map-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); }
.map-detail-head h2 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.map-detail-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
#map-layer-dialog { --layer-row-height: 44px; }
#map-layer-dialog[data-anchored] {
  --layer-row-height: 36px;
  width: min(17.5rem, calc(100% - 16px));
}
#map-layer-dialog .map-detail-head { padding: 0 max(12px, env(safe-area-inset-right)) 2px max(12px, env(safe-area-inset-left)); }
#map-layer-dialog .map-detail-head h2 { font-size: 1rem; }
#map-layer-dialog .map-detail-head .icon-btn { width: var(--layer-row-height); height: var(--layer-row-height); }
#map-layer-dialog .map-detail-body {
  padding: 0 max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  scrollbar-width: thin;
}
#map-layer-dialog #map-satellite { width: 100%; padding: 0; border: 0; box-shadow: none; overflow: visible; }
.layer-group { min-width: 0; margin: 0; padding: 0; border: 0; }
#map-satellite #satellite-optical-modes { padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
#map-satellite .layer-item { gap: 0; margin: 0; padding: 0; border: 0; }
#map-satellite label.layer-toggle {
  gap: 9px;
  min-height: var(--layer-row-height);
  padding-inline: 8px;
  border-radius: 7px;
  line-height: 1.25;
}
.layer-toggle > span { flex: 1; min-width: 0; font-weight: 600; }
.layer-toggle > svg { width: 17px; height: 17px; flex: none; color: var(--blue); }
.layer-toggle small { font-size: .72rem; white-space: nowrap; }
html[data-open-testing] :is(#report-offer, #sentinel2-pricing, #telegram-alert-tariffs),
html[data-open-testing] #map-satellite .layer-toggle > small { display: none; }
#map-satellite .layer-toggle:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
#map-satellite .layer-toggle input {
  appearance: none;
  width: 32px;
  height: 19px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 8px center, var(--sub) 4.5px, transparent 5.2px), var(--soft);
  cursor: pointer;
}
#map-satellite .layer-toggle input:checked {
  border-color: var(--blue);
  background: radial-gradient(circle at 22px center, var(--header) 4.5px, transparent 5.2px), var(--blue);
}
@media (forced-colors: active) {
  #map-satellite .layer-toggle input { appearance: auto; width: 19px; }
}
.layer-description {
  margin: 3px 9px 5px 18px;
  padding: 5px 0 5px 13px;
  border-inline-start: 1px solid var(--line);
  color: var(--sub);
  font-size: .8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.layer-description p { margin: 0; }
#layer-login-prompt {
  margin: 0 8px 6px;
  padding: 8px 10px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--tint);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.4;
}
#layer-login-prompt p { margin: 0; }
#layer-login-button { min-height: 44px; padding-inline: 0; font-weight: 650; }
#map-satellite .layer-item:not(:has(> label input:checked)) > .layer-description,
#map-toolbar-row #depth-choice :is(.layer-description, .layer-toggle > svg) { display: none; }
#map-satellite #satellite-method { margin-top: 3px; font-size: .8125rem; }
#map-satellite #sentinel2-coverage { margin-top: var(--space-2); }
.layer-notes > summary { min-height: 44px; padding-block: 11px; color: var(--blue-deep); cursor: pointer; }
#map-satellite #rp5-settings { padding: 2px 0 2px 13px; }
#map-satellite #rp5-options summary { min-height: 44px; padding-block: 11px; }
#map-key-dock { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.local-place-pin {
  display: grid; place-items: center; border: 2px solid #e1fbff; border-radius: 50%;
  background: #24536a; color: white; box-shadow: 0 1px 5px #0e2634;
}
.local-place-pin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.local-place-row > div { min-width: 0; }
.local-place-row :is(strong,small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-place-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7em; overflow-y: auto; margin: 0; }
#local-place-dialog .dialog-footer { flex-wrap: wrap; }
#local-place-error { flex-basis: 100%; }
#map #ice-surface-legend, #map #current-legend {
  width: min(15rem, calc(100vw - 90px)); margin: 0 0 6px var(--map-tool-inset);
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: var(--glass-shadow);
  font-size: .8rem; line-height: 1.35;
}
#ice-surface-day, #current-day { color: var(--sub); }
#current-palette p, #current-status { margin: 4px 0 0; color: var(--sub); font-size: .75rem; }
#current-status:empty { display: none; }
.current-scale { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin-top: 6px; font-size: .72rem; font-variant-numeric: tabular-nums; }
.current-scale span { padding-top: 2px; border-top: 4px solid #79a8ff; }
.current-scale span:nth-child(2) { border-color: #42d5dc; }
.current-scale span:nth-child(3) { border-color: #ffc268; }
.current-scale span:nth-child(4) { border-color: #fa795e; }
#map #ice-surface-legend { width: min(13rem, calc(100vw - 90px)); padding: 6px 9px; }
.ice-surface-heading:not([hidden]) { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ice-surface-scale { height: 5px; margin-block: 5px 1px; border-radius: 3px; }
.ice-surface-keys { display: grid; grid-template-columns: 1fr auto 1fr; font-size: .72rem; font-variant-numeric: tabular-nums; }
.ice-surface-keys span:last-child { justify-self: end; }
#ice-ladoga-observation-key:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin-top: 3px; font-size: .72rem; }
#ice-ladoga-observation-key small { color: var(--sub); font-size: inherit; }
#ice-ladoga-observation-key span { display: inline-flex; align-items: center; gap: 4px; }
#ice-ladoga-observation-key span::before { content: ""; width: 10px; height: 8px; border: 1px solid #94adb9; border-radius: 2px; background: #225069; }
#ice-ladoga-observation-key span:last-child::before { background: repeating-linear-gradient(135deg, #e3f4f5 0 2px, #587381 2px 5px); }
#ice-ladoga-sentinel-credit { font-size: .72rem; }
#ice-estimate-key { margin: 3px 0 0; color: var(--sub); font-size: .72rem; }
#ice-surface-status { margin: 3px 0 0; }
#ice-surge-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: 4px; font-size: .75rem; }
#ice-surge-hour { max-width: 55%; min-height: 32px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
#ice-surface-status:empty { display: none; }
#map-screen[data-full-viewport]:not([data-desktop-fullscreen]) :is(#ice-surface-legend, #current-legend) {
  margin-bottom: calc(var(--map-bottom-gap) + var(--map-drawer-visible-height, 0px) + var(--map-search-space, 0px) + 38px);
}
.map-point-ice { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 650; }
.map-weather-current { display: flex; align-items: center; gap: var(--space-4); margin: 0 0 var(--space-4); }
.map-weather-reading { font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.map-weather-current[data-forecast] .map-weather-reading { font-size: clamp(1.35rem, 5vw, 2rem); }
.map-weather-facts { min-width: 0; display: grid; gap: 3px; color: var(--sub); font-size: .875rem; overflow-wrap: anywhere; }
.map-weather-place { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 650; }
.map-weather-hours {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 6px;
  margin: 0; padding: 2px 0 8px; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity; list-style: none;
}
.map-weather-hours li { display: grid; align-content: start; justify-items: center; gap: 3px; padding: 9px 5px; background: var(--field); border-radius: 11px; scroll-snap-align: start; }
.map-weather-hours :is(span, small) { color: var(--sub); text-align: center; font-size: .73rem; }
.map-weather-status { margin-block: 4px 12px; color: var(--sub); }

@media (max-width: 750px), (pointer: coarse) and (max-height: 520px) {
  #map-fullscreen { display: none; }
  #map { -webkit-touch-callout: none; }
  .map-detail-sheet { width: 100%; }
}

@media (min-width: 751px) and (pointer: coarse) and (max-height: 520px) {
  body:has(#map-screen[data-full-viewport]:not([hidden])) .tabs {
    position: fixed;
    z-index: 900;
    inset: auto 0 0;
    justify-content: center;
    padding: 2px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  body:has(#map-screen[data-full-viewport]:not([hidden])) .tabs a { color: var(--sub); }
  body:has(#map-screen[data-full-viewport]:not([hidden])) .tabs a[aria-current="page"] { color: var(--blue-deep); background: var(--tint); }
}

@media (max-height: 520px) {
  #map-screen[data-full-viewport] .map-frame { --map-zoom-room: var(--map-tool-size); }
  #map-screen[data-full-viewport]:not([data-desktop-fullscreen]) .map-frame {
    --map-search-rail: calc(3 * var(--map-tool-size) + 2 * var(--map-tool-gap) + 8px);
  }
  #map-screen[data-full-viewport] #map .leaflet-control-zoom { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  #map-drawer, #map-screen[data-full-viewport] .leaflet-bottom.leaflet-right { transition: none; }
}
.leaflet-marker-icon.admin-map-pin { display: grid; justify-items: center; align-content: end; background: none; border: 0; }
.admin-map-pin-label { display: grid; justify-items: stretch; position: relative; margin-bottom: 6px; border: 1px solid #879cab; border-radius: 6px; background: #15252f; box-shadow: 0 1px 5px #071018a6; }
.admin-map-pin-label::after { content: ""; position: absolute; top: 100%; left: calc(50% - 4px); border: 4px solid transparent; border-top: 6px solid #96acba; }
.mark-visibility { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; font: 600 12px/16px var(--font, system-ui), sans-serif; color: #e7edf0; white-space: nowrap; }
.mark-visibility::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #b7c1c7; }
.mark-visibility[data-visibility="private"]::before { background: #c8a9ff; }
.mark-visibility[data-visibility="public"]::before { background: #73e5b3; }
.mark-visibility[data-visibility="review"]::before { background: #ffd28b; }
.admin-mark-popup :is(.leaflet-popup-content-wrapper, .leaflet-popup-tip) {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
}
#map .admin-mark-popup .leaflet-popup-close-button { color: var(--sub); }
#map .admin-mark-popup .leaflet-popup-close-button:is(:hover, :focus-visible) { color: var(--ink); }
.admin-map-mark-list { display: grid; gap: 4px; max-height: min(36dvh, 240px); overflow: auto; }
.admin-map-mark-list button { display: flex; align-items: center; gap: 8px; min-height: 36px; border: 0; border-radius: 5px; padding: 4px; background: #20333e; color: #f0f5f8; cursor: pointer; }
.map-point-heading > .mark-visibility { width: fit-content; border-radius: 4px; background: #20333e; }
