/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}


.iso{
  --anatomy-page:#0b0b0b;--anatomy-card:#131313;--anatomy-text:#a3a3a3;--anatomy-strong:#e6e6e6;--anatomy-muted:#6e6e6e;
  --anatomy-paper:#131313;--anatomy-face:#1b1b1b;--anatomy-top:#1c1c1c;
  --anatomy-shade-0:#0f0f0f;--anatomy-shade-1:#121212;--anatomy-shade-2:#151515;--anatomy-shade-3:#181818;
  --anatomy-lit-top:#262626;--anatomy-lit-shade:#1d1d1d;
  --anatomy-hi:#d4d4d4;--anatomy-mid:#6a6a6a;--anatomy-lo:#3e3e3e;--anatomy-faint:#2a2a2a;--anatomy-lit:#ffffff;
  --anatomy-halo:#050505;--anatomy-halo-opacity:.9;--anatomy-dot:#e6e6e6;
  --anatomy-red:#ff6b6b;--anatomy-green:#6be0a0;--anatomy-blue:#6b9bff;
  --anatomy-weight:.6px;--anatomy-ease:cubic-bezier(.32,.72,0,1);
  --anatomy-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --anatomy-lift:inset 0 1px 0 0 #ffffff0a,inset 0 0 0 1px #ffffff06,0 0 0 1px #00000026,0 1px 1px -.5px #00000014,0 3px 3px -1.5px #00000014,0 6px 6px -3px #00000014,0 12px 12px -6px #00000014;
}
.iso[data-theme="light"]{
  --anatomy-page:#f2f2ef;--anatomy-card:#fbfbfa;--anatomy-text:#57575a;--anatomy-strong:#18181a;--anatomy-muted:#8c8c90;
  --anatomy-paper:#fbfbfa;--anatomy-face:#ffffff;--anatomy-top:#ffffff;
  --anatomy-shade-0:#dcdcd9;--anatomy-shade-1:#e5e5e2;--anatomy-shade-2:#ededea;--anatomy-shade-3:#f4f4f1;
  --anatomy-lit-top:#ffffff;--anatomy-lit-shade:#eeeeeb;
  --anatomy-hi:#26262a;--anatomy-mid:#8a8a8f;--anatomy-lo:#b4b4b8;--anatomy-faint:#d4d4d6;--anatomy-lit:#000000;
  --anatomy-halo:#8a8a80;--anatomy-halo-opacity:.32;--anatomy-dot:#3a3a3e;
  --anatomy-red:#e5484d;--anatomy-green:#30a46c;--anatomy-blue:#3e63dd;
  --anatomy-lift:inset 0 1px 0 0 #ffffff,0 0 0 1px #0000000f,0 1px 1px -.5px #0000000a,0 3px 3px -1.5px #0000000a,0 6px 6px -3px #0000000a,0 12px 12px -6px #0000000a;
}
.iso-svg{display:block;width:100%;height:auto;overflow:visible}
.iso-svg path,.iso-svg circle{vector-effect:non-scaling-stroke}
.iso-fill{fill:var(--anatomy-paper);stroke:none}
.iso-solid[data-lit]>.iso-fill{fill:var(--anatomy-face)}
.iso-shade,.iso-top{stroke:none}
.iso-shade[data-shade="0"]{fill:var(--anatomy-shade-0)}
.iso-shade[data-shade="1"]{fill:var(--anatomy-shade-1)}
.iso-shade[data-shade="2"]{fill:var(--anatomy-shade-2)}
.iso-shade[data-shade="3"]{fill:var(--anatomy-shade-3)}
.iso-top{fill:var(--anatomy-top)}
.iso-solid[data-lit]>.iso-top{fill:var(--anatomy-lit-top)}
.iso-solid[data-lit]>.iso-shade{fill:var(--anatomy-lit-shade)}
.iso-solid[data-seamless]>.iso-shade,.iso-solid[data-seamless]>.iso-top{stroke-width:.4;stroke-linejoin:round}
.iso-solid[data-seamless]>.iso-shade[data-shade="0"]{stroke:var(--anatomy-shade-0)}
.iso-solid[data-seamless]>.iso-shade[data-shade="1"]{stroke:var(--anatomy-shade-1)}
.iso-solid[data-seamless]>.iso-shade[data-shade="2"]{stroke:var(--anatomy-shade-2)}
.iso-solid[data-seamless]>.iso-shade[data-shade="3"]{stroke:var(--anatomy-shade-3)}
.iso-solid[data-seamless]>.iso-top{stroke:var(--anatomy-top)}
.iso-solid[data-seamless][data-lit]>.iso-top{stroke:var(--anatomy-lit-top)}
.iso-solid[data-seamless][data-lit]>.iso-shade{stroke:var(--anatomy-lit-shade)}
.iso-solid[data-lit]>.iso-edge{stroke:var(--anatomy-lit)}
.iso-halo{fill:var(--anatomy-halo);stroke:none;filter:blur(9px);opacity:var(--anatomy-halo-opacity);transform:translateY(3px)}
.iso-line{fill:none;stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight);stroke-linecap:round;stroke-linejoin:round}
.iso-line[data-tone="hi"]{stroke:var(--anatomy-hi)}
.iso-line[data-tone="mid"]{stroke:var(--anatomy-mid)}
.iso-line[data-tone="lo"]{stroke:var(--anatomy-lo)}
.iso-line[data-tone="faint"]{stroke:var(--anatomy-faint)}
.iso-line[data-tone="lit"]{stroke:var(--anatomy-lit)}
.iso-line[data-tone="red"]{stroke:var(--anatomy-red)}
.iso-line[data-tone="green"]{stroke:var(--anatomy-green)}
.iso-line[data-tone="blue"]{stroke:var(--anatomy-blue)}
.iso-line[data-dotted]{stroke-dasharray:.01 3.5;stroke-width:1}
.iso-line[data-dashed]{stroke-dasharray:3 3}
.iso-line[data-flow]{stroke-dasharray:2 6}
.iso-wire-end{fill:var(--anatomy-paper);stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight)}
.iso-wire[data-tone="hi"] .iso-wire-end{stroke:var(--anatomy-hi)}
.iso-wire[data-tone="mid"] .iso-wire-end{stroke:var(--anatomy-mid)}
.iso-wire[data-tone="faint"] .iso-wire-end{stroke:var(--anatomy-faint)}
.iso-wire[data-tone="lit"] .iso-wire-end{stroke:var(--anatomy-lit)}
.iso-dots circle{fill:var(--anatomy-dot);stroke:none;opacity:.32}
.iso-dots[data-tone="hi"] circle{opacity:.85}
.iso-dots[data-tone="mid"] circle{opacity:.45}
.iso-dots[data-tone="lo"] circle{opacity:.22}
.iso-dots[data-tone="faint"] circle{opacity:.12}
.iso-face-text{fill:var(--anatomy-mid);font-family:var(--anatomy-mono);letter-spacing:.04em}
.iso-face-text[data-tone="hi"]{fill:var(--anatomy-hi)}
.iso-face-text[data-tone="lo"]{fill:var(--anatomy-lo)}
.iso-face-text[data-tone="faint"]{fill:var(--anatomy-faint)}
.tb-body{fill:var(--anatomy-shade-2);stroke:none}
.tb-shine{fill:var(--anatomy-top);stroke:none}
.tb-shade{fill:var(--anatomy-shade-0);stroke:none}
.tb-ring{fill:none;stroke:var(--anatomy-lo);stroke-width:.45;stroke-linecap:butt;stroke-linejoin:round}
.tb-ring[data-tone="mid"]{stroke:var(--anatomy-mid)}
.tb-ring[data-tone="faint"]{stroke:var(--anatomy-faint)}
.tb-ring[data-tone="hi"]{stroke:var(--anatomy-hi)}
@keyframes iso-flow{to{stroke-dashoffset:-32}}
@keyframes iso-pulse{0%,100%{opacity:.18}12%{opacity:1}40%{opacity:.18}}
.iso-line[data-flow]{animation:iso-flow 1600ms linear infinite}
.iso-dots circle[data-pulse]{animation:iso-pulse 1600ms steps(1,end) infinite;animation-delay:var(--pulse-at,0ms)}
.iso-figure{margin:32px 0 36px}
.iso-plate{position:relative;padding:52px 24px;border-radius:0;background:var(--anatomy-card);box-shadow:0 0 0 1px var(--anatomy-mid);--anatomy-paper:var(--anatomy-card)}
.iso-plate-corners{position:absolute;inset:18px 20px;pointer-events:none}
.iso-plate-corner{position:absolute;color:var(--anatomy-muted);font-family:var(--anatomy-mono);font-size:10.5px;line-height:1;letter-spacing:.04em;white-space:nowrap}
.iso-plate-corner[data-corner="fig"]{top:0;left:0;color:var(--anatomy-text)}
.iso-plate-corner[data-corner="title"]{top:0;right:0;text-transform:uppercase;letter-spacing:.1em}
.iso-plate-corner[data-corner="hint"]{bottom:0;left:0;text-transform:uppercase;letter-spacing:.1em}
.iso-plate-corner[data-corner="readout"]{right:0;bottom:0;color:var(--anatomy-text);font-variant-numeric:tabular-nums}
.iso-plate .iso-svg{margin:0 auto}
.iso-legend{display:grid;gap:8px;margin-top:12px;color:var(--anatomy-muted);font-size:13px;line-height:1.55}
.iso-keys{display:flex;flex-wrap:wrap;gap:6px 18px}
.iso-key{display:inline-flex;align-items:center;gap:7px}
.iso-swatch{width:16px;height:10px;flex:none;overflow:visible}
.iso-swatch path{fill:none;stroke:var(--anatomy-hi);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.iso-swatch[data-mark="raised"] path,.iso-swatch[data-mark="flat"] path{stroke:var(--anatomy-mid)}
.iso-swatch[data-mark="lit"] path{stroke:var(--anatomy-lit)}
.iso-swatch[data-mark="dim"] path{stroke:var(--anatomy-lo)}
.iso-swatch[data-mark="dotted"] path{stroke-dasharray:.01 3;stroke-width:1.4}
.iso-swatch[data-mark="dashed"] path{stroke-dasharray:3 2.5}
.iso-swatch[data-mark="red"] path{stroke:var(--anatomy-red)}
.iso-swatch[data-mark="green"] path{stroke:var(--anatomy-green)}
.iso-swatch[data-mark="blue"] path{stroke:var(--anatomy-blue)}
.iso-swatch-crease{stroke:var(--anatomy-lo)!important}
@media (max-width:560px){.iso-plate{padding:48px 12px 70px}.iso-plate-corner[data-corner="hint"]{bottom:18px}}
@media (prefers-reduced-motion:reduce){.iso-line[data-flow],.iso-dots circle[data-pulse]{animation:none}}

:root{color-scheme:light;--page:#edf4f8;--card:#ffffff;--ink:#163442;--secondary:#49636e;--muted:#627781;--border:#dae5eb;--accent:#0066bf;--accent-wash:#e7f2fc;--white:#fff;--control:#f1f6fa;--surface-shadow:0 12px 36px rgb(22 52 66 / .055);--glass:#254858;--glass-shine:#547987;--metal-top:#cdd7d8;--metal-face:#acb8bc;--metal-dark:#697b81;--body-top:#fffffa;--body-face:#f3f4ee;--body-dark:#ced8d7;--under-top:#75868c;--under-face:#566971;--under-dark:#344852;--seat-top:#8aa7b5;--seat-face:#698797;--seat-dark:#4c6d7e}
body[data-theme=dark]{color-scheme:dark;--page:#111f28;--card:#182c36;--ink:#edf5f8;--secondary:#b2cad5;--muted:#a0b9c5;--border:#354c58;--accent:#79c5ff;--accent-wash:#233e50;--white:#1c2a31;--control:#203642;--surface-shadow:0 12px 36px rgb(0 0 0 / .14);--glass:#102d3b;--glass-shine:#3d6678;--metal-top:#7e969e;--metal-face:#526c77;--metal-dark:#2a4450;--body-top:#d0dcdd;--body-face:#adbdc2;--body-dark:#69818d;--under-top:#5d7884;--under-face:#3c5663;--under-dark:#233c48;--seat-top:#7299ae;--seat-face:#4c758d;--seat-dark:#31566d}
/* UI palette and train materials are shared by both themes. */
/* Geometry material ramps, inherited by the Anatomy solid renderer. */
.body{--anatomy-paper:var(--body-face);--anatomy-top:var(--body-top);--anatomy-shade-0:var(--body-dark);--anatomy-shade-1:#d7dfdf;--anatomy-shade-2:#e2e8e5;--anatomy-shade-3:var(--body-face)}
.metro-blue{--anatomy-paper:#238cbd;--anatomy-top:#49a5ce;--anatomy-shade-0:#105f8f;--anatomy-shade-1:#1574a5;--anatomy-shade-2:#2084b5;--anatomy-shade-3:#2894c2}
.concrete{--anatomy-paper:#cfd5d2;--anatomy-top:#e0e5e0;--anatomy-shade-0:#acb8b3;--anatomy-shade-1:#bbc6c0;--anatomy-shade-2:#c7d0ca;--anatomy-shade-3:#d4dbd4}
.platform{--anatomy-paper:#d0d3ca;--anatomy-top:#eaebe1;--anatomy-shade-0:#b2bcb1;--anatomy-shade-1:#c0c7bc;--anatomy-shade-2:#ccd2c6;--anatomy-shade-3:#dde0d5}
.tactile{--anatomy-paper:#c9b26d;--anatomy-top:#e6d18b;--anatomy-shade-0:#ad9858;--anatomy-shade-1:#c0aa66;--anatomy-shade-2:#d5bf79;--anatomy-shade-3:#ddca87}
.sign{--anatomy-paper:#156c98;--anatomy-top:#3a92b7;--anatomy-shade-0:#10496a;--anatomy-shade-1:#12597d;--anatomy-shade-2:#14678e;--anatomy-shade-3:#1a7da8}.sign .iso-face-text{fill:#fff;font-weight:600;letter-spacing:.04em}
.nose-white{fill:#f3f6f2;stroke:none}.windscreen-surround{fill:#142c3a;stroke:none}.front-glass{fill:#244c60;stroke:#244454;stroke-width:.45}.windscreen-wiper{fill:#8faeb9;stroke:none}.metro-blue .iso-face-text{fill:#f7b568;letter-spacing:.05em}
.steel{--anatomy-paper:var(--metal-face);--anatomy-top:var(--metal-top);--anatomy-shade-0:var(--metal-dark);--anatomy-shade-1:#83969e;--anatomy-shade-2:#a4b1b5;--anatomy-shade-3:var(--metal-face)}
.gunmetal,.equipment{--anatomy-paper:var(--under-face);--anatomy-top:var(--under-top);--anatomy-shade-0:var(--under-dark);--anatomy-shade-1:#405863;--anatomy-shade-2:#526972;--anatomy-shade-3:var(--under-face)}
/* Steel wheel faces are deliberately subdued beneath the carriage. */
.wheel{--anatomy-paper:#37474e;--anatomy-top:#66767b;--anatomy-shade-0:#29383f;--anatomy-shade-1:#3d4e56;--anatomy-shade-2:#4b5d65;--anatomy-shade-3:#53666d}
.wheel-rim{--anatomy-paper:#65757b;--anatomy-top:#89969a;--anatomy-shade-0:#3d5059;--anatomy-shade-1:#4c6069;--anatomy-shade-2:#5d7078;--anatomy-shade-3:#6d8087}
.wheel-contour{fill:none;stroke:#1e3038;stroke-width:.5}
.seat{--anatomy-paper:var(--seat-face);--anatomy-top:var(--seat-top);--anatomy-shade-0:var(--seat-dark);--anatomy-shade-1:#557785;--anatomy-shade-2:#6a8a97;--anatomy-shade-3:var(--seat-face)}
.floor{--anatomy-top:#bcc9c7;--anatomy-paper:#adbdbb}.plinth{--anatomy-top:#e1e4dd;--anatomy-paper:#d3d8d0;--anatomy-shade-0:#bdc7c3;--anatomy-shade-1:#cad1cb;--anatomy-shade-2:#d1d7d1;--anatomy-shade-3:#dce0d8}.sleeper{--anatomy-top:#a8b0aa;--anatomy-paper:#999f9a;--anatomy-shade-0:#7b8680;--anatomy-shade-1:#858e88;--anatomy-shade-2:#959d96;--anatomy-shade-3:#a1a8a0}.window{fill:var(--glass);stroke:var(--metal-dark);stroke-width:.55;stroke-linejoin:round}.window-glint{fill:var(--glass-shine);stroke:none;opacity:.5}.blue-fill{fill:#176d9c;stroke:none}.steel-fill{fill:var(--metal-dark);stroke:none}.vent{fill:var(--under-dark);stroke:none;opacity:.65}.headlight{fill:#fff8d6;stroke:none}.wheel-mark{fill:none;stroke:#c4c8b9;stroke-width:.65;stroke-linecap:butt;opacity:.75}.part{transition:opacity .3s}.iso-svg[data-focused] .part:not([data-active]){opacity:.35}.iso-svg[data-focused] .part[data-active]{filter:drop-shadow(0 0 1px var(--accent))}.iso-edge{stroke-width:.55}.iso-halo{opacity:.2}

/* src/ui/styles/fonts.css */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./font-400-vietnamese-AYP4TBQP.woff2") format("woff2");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./font-400-latin-ext-VIXFGEVI.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C4,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./font-400-latin-GO7MVAWD.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./font-500-vietnamese-4TYGC47D.woff2") format("woff2");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./font-500-latin-ext-4V547L43.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C4,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./font-500-latin-ICUK3VUJ.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./font-600-vietnamese-JNWISTGY.woff2") format("woff2");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./font-600-latin-ext-CBJZJMMX.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C4,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./font-600-latin-BUKYBXKC.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./font-700-vietnamese-2FUHI57A.woff2") format("woff2");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./font-700-latin-ext-O2T6GATN.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C4,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./font-700-latin-D4XLH5H5.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* src/ui/styles/base.css */
:root {
  --font-ui:
    "Be Vietnam Pro",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --radius-control: 10px;
  --radius-surface: 20px;
}
* {
  box-sizing: border-box;
}
.startup-status {
  margin: 0;
  padding: 12px 24px;
  font: 14px/1.5 system-ui, sans-serif;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
.iso-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  transition:
    background .2s,
    color .2s,
    border-color .2s;
}
a {
  color: inherit;
  text-decoration: none;
}
.app {
  max-width: 1920px;
  padding: 0 clamp(20px, 2.25vw, 48px);
  margin: auto;
}
.edition,
.small-label,
.eyebrow,
.number,
.detail-kicker,
.demo-tag {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
}
.edition {
  color: var(--secondary);
}
.icon-btn {
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  background: var(--card);
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
}
.icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.icon-btn:hover {
  background: var(--accent-wash);
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 36px 0 28px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
}
.line-badge {
  background: var(--accent);
  color: var(--page);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-weight: 700;
  border-radius: 50%;
  font-size: 11px;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(38px, 3.8vw, 62px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.04em;
  margin: 18px 0 17px;
}
h1 em {
  font: inherit;
  color: inherit;
}
.lede {
  font-size: 15px;
  color: var(--secondary);
  margin: 0;
  line-height: 1.65;
}
.intro-note {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--secondary);
  display: flex;
  gap: 16px;
  line-height: 1.9;
  padding-bottom: 2px;
}
.tiny-rule {
  width: 27px;
  height: 1px;
  background: var(--accent);
  margin-top: 10px;
}
body[data-mode=map] .intro {
  padding-top: 28px;
}
button {
  border-radius: var(--radius-control);
}
button:disabled {
  cursor: default;
}

/* src/ui/components/train-stage.css */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-surface);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}
.figure-main {
  min-width: 0;
}
.figure-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px 0;
  gap: 16px;
}
.muted {
  color: var(--muted);
}
.view-toggle {
  display: flex;
  gap: 3px;
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--control);
}
.view-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  min-height: 38px;
  font-size: 12px;
  color: var(--secondary);
}
.view-toggle button[aria-pressed=true] {
  background: var(--ink);
  color: var(--card);
}
.view-toggle button:hover {
  background: var(--accent-wash);
  color: var(--ink);
}
.iso-plate {
  padding: 0 16px;
  background: transparent;
  box-shadow: none;
  --anatomy-paper:var(--card);
}
.iso-stage {
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.iso-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.stage-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 9px 23px;
  font-size: 12px;
  color: var(--secondary);
}
.state-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .025em;
}
.state-badge i {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.state-badge i[data-moving=true] {
  box-shadow: 0 0 0 3px var(--accent-wash);
}

/* src/ui/components/operation.css */
.operation {
  padding: 20px 25px 16px;
  border-top: 1px solid var(--border);
}
.op-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.demo-tag {
  font-size: 11px;
  color: var(--muted);
}
.op-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.op-controls button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--control);
  border: 1px solid var(--border);
  padding: 10px;
  min-height: 44px;
  font-size: 13px;
  white-space: nowrap;
}
.op-controls button:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.op-controls button[aria-pressed=true] {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}
.op-controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
kbd {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  border: 1px solid var(--border);
  padding: 1px 3px;
  color: var(--muted);
}
.speed-control {
  flex: 1;
  min-width: 100px;
  margin: 0 13px;
}
.speed-control label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
  white-space: nowrap;
}
.speed-control output {
  color: var(--accent);
  font-family: var(--font-ui);
}
input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 24px;
  margin: 3px 0 0;
}
.live-speed {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}
.live-speed strong {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  min-width: 40px;
  text-align: right;
  letter-spacing: -.08em;
}
.live-speed > span {
  font-size: 11px;
  line-height: 1.5;
}
.op-status {
  font-size: 13px;
  color: var(--secondary);
  margin: 11px 0 0;
  min-height: 17px;
}

/* src/ui/modes/anatomy/styles.css */
.inspector {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 22px 24px;
}
.number {
  color: var(--muted);
}
.assembly-list {
  padding: 0 10px;
}
.assembly-list button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 16px 12px;
  min-height: 74px;
}
.assembly-list button:hover,
.assembly-list button[aria-pressed=true] {
  background: var(--accent-wash);
  border-color: transparent;
}
.assembly-number {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 3px;
}
.assembly-list strong {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.assembly-list small {
  font-size: 12px;
  color: var(--secondary);
  display: block;
  margin-top: 3px;
}
.select-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 17px;
}
.assembly-list [aria-pressed=true] .select-arrow {
  color: var(--accent);
}
.detail {
  padding: 27px 23px 20px;
  flex: 1;
}
.detail-kicker {
  font-size: 12px;
  color: var(--accent);
}
h2 {
  font-family: var(--font-ui);
  font-size: 28px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 15px 0;
}
.detail p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--secondary);
  margin: 0;
}
.detail-fact {
  border-top: 1px solid var(--border);
  margin-top: 23px;
  padding-top: 16px;
}
.detail-fact span {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}
.detail-fact strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
}
.text-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 22px;
  padding: 8px 0;
  min-height: 44px;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: var(--secondary);
}
.text-button:hover {
  color: var(--accent);
}
.text-button span {
  font-size: 19px;
}
.train-chapter {
  grid-column: 1 / -1;
  padding: 24px 24px 0;
  border-bottom: 1px solid var(--border);
}
.chapter-topics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
}
.chapter-topics button {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.chapter-topics button[aria-pressed=true] {
  background: var(--accent-wash);
  border-color: var(--accent);
  box-shadow: inset 0 -3px var(--accent);
}
.chapter-topics button:hover {
  background: var(--accent-wash);
}
.chapter-discovery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.chapter-discovery h2 {
  margin: 0 0 8px;
  font-size: 23px;
}
.chapter-discovery .assembly-subtitle {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
}
.assembly-fact {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.assembly-fact span {
  color: var(--muted);
}
.assembly-fact strong {
  font-weight: 500;
  line-height: 1.7;
}
.assembly-lessons {
  margin-top: 24px;
}
.assembly-lessons h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.assembly-lesson {
  margin-top: 8px;
  padding: 0 14px;
  background: var(--control);
  border-radius: var(--radius-control);
}
.assembly-lesson summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.assembly-lesson p {
  margin: 0;
  padding-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--secondary);
}
.assembly-lesson .topic-limit {
  font-size: 12px;
}
.exhibit-demo-controls .exploration-reset {
  justify-self: start;
  width: auto;
  margin: 0;
}
.chapter-discovery p {
  color: var(--secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 72ch;
}
.topic-observe {
  padding: 18px;
  border-radius: var(--radius-control);
  background: var(--accent-wash);
}
.topic-observe strong {
  display: block;
  margin-bottom: 8px;
}
#topic-action {
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  border: 0;
  font: inherit;
}
.chapter-discovery .topic-limit {
  grid-column: 1 / -1;
  font-size: 13px;
}
.chapter-sources {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
}
.chapter-sources summary {
  cursor: pointer;
  padding: 10px 0;
}
.chapter-sources a {
  color: var(--accent);
}
@media (max-width: 1100px) {
  .chapter-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .chapter-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapter-discovery {
    grid-template-columns: 1fr;
  }
}
.explore-navigation[hidden],
.train-chapter[hidden] {
  display: none;
}
body[data-mode=anatomy] #train-workspace {
  grid-template-columns: minmax(0, 1fr) 380px;
}
.chapter-inspector {
  padding: 24px;
  min-width: 0;
}
@media (max-width: 1100px) {
  body[data-mode=anatomy] #train-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .chapter-inspector {
    padding: 20px;
  }
}
@media (max-width: 900px) {
  body[data-mode=anatomy] #train-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter-inspector {
    display: block;
  }
}
@media (max-width: 550px) {
  .train-chapter {
    padding: 18px 14px 0;
  }
  .chapter-topics {
    margin-bottom: 18px;
  }
  .chapter-inspector {
    padding: 20px 14px;
  }
}
#train-workspace {
  margin-top: 20px;
}

/* src/ui/sections/context.css */
.context {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  padding: 30px 0 26px;
  margin-top: 4px;
  border-bottom: 1px solid var(--border);
}
.context-heading p {
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 1.25;
  margin: 9px 0 0;
}
.context-heading .small-label {
  color: var(--accent);
  font-size: 12px;
}
.fact {
  border-left: 1px solid var(--border);
  padding-left: 30px;
  align-self: center;
}
.fact strong {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -.04em;
  font-family: var(--font-ui);
}
.fact strong span {
  font-size: 15px;
}
.fact p {
  color: var(--secondary);
  font-size: 13px;
  margin: 5px 0 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 32px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
}
footer p {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}
footer div {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  gap: 25px;
  align-items: center;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  white-space: nowrap;
}
footer a:hover {
  text-decoration: underline;
}
footer a.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
footer a.social-link:hover {
  color: var(--accent);
}
footer a.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
footer a.social-link svg {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* src/ui/styles/responsive.css */
@media (max-width: 1200px) {
  .app {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .op-controls {
    flex-wrap: wrap;
  }
  .speed-control {
    flex: 1;
    margin: 0 0 0 12px;
  }
  .op-controls kbd {
    display: none;
  }
  .figure-top .small-label {
    font-size: 12px;
  }
  .figure-top {
    padding: 18px 18px 0;
  }
  .stage-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-bottom: 16px;
  }
  .operation {
    padding: 18px;
  }
  .inspector-heading,
  .detail {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inspector-heading {
    grid-column: 1/-1;
    padding-bottom: 12px;
  }
  .assembly-list {
    padding-bottom: 18px;
  }
  .detail {
    padding-top: 18px;
  }
  .stage-bottom {
    flex-direction: row;
    align-items: center;
  }
  .intro-note {
    display: none;
  }
  .op-controls {
    flex-wrap: nowrap;
  }
  .op-controls kbd {
    display: inline;
  }
  .context {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
  .fact {
    padding-left: 20px;
  }
  .fact p {
    max-width: 120px;
  }
  .fact strong {
    font-size: 28px;
  }
  .edition {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 550px) {
  .app {
    padding: 0 18px;
  }
  .intro {
    padding: 34px 0 27px;
  }
  .eyebrow {
    font-size: 12px;
  }
  h1 {
    font-size: 43px;
    margin-top: 17px;
  }
  .lede {
    font-size: 14px;
  }
  .desktop-break {
    display: none;
  }
  .figure-top {
    padding: 14px 14px 0;
    flex-wrap: wrap;
    gap: 9px;
  }
  .figure-top .small-label {
    font-size: 12px;
  }
  .view-toggle {
    margin-left: auto;
  }
  .view-toggle button {
    font-size: 12px;
    padding: 6px 9px;
    min-height: 36px;
  }
  .iso-plate {
    padding: 0 2px;
  }
  .iso-svg {
    min-height: 270px;
  }
  .stage-bottom {
    padding: 0 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
  }
  .operation {
    padding: 16px 14px;
  }
  .op-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  .op-controls button {
    flex: 1;
    justify-content: center;
    font-size: 12px;
  }
  .op-controls kbd {
    display: none;
  }
  .speed-control {
    margin: 8px 8px 0 0;
    flex-basis: 65%;
  }
  .speed-control label {
    font-size: 12px;
  }
  .live-speed {
    margin-top: 8px;
    min-width: 74px;
  }
  .live-speed strong {
    font-size: 29px;
  }
  .op-status {
    font-size: 12px;
    min-height: 30px;
  }
  .inspector {
    display: block;
  }
  .inspector-heading {
    padding: 19px 16px 12px;
  }
  .assembly-list {
    display: flex;
    overflow: auto;
    gap: 8px;
    padding: 0 14px 12px;
    scroll-snap-type: x mandatory;
  }
  .assembly-list button {
    min-width: 173px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
  }
  .assembly-number {
    display: none;
  }
  .assembly-list small {
    font-size: 12px;
  }
  .assembly-list strong {
    font-size: 12px;
  }
  .detail {
    border-top: 1px solid var(--border);
    padding: 20px 17px 13px;
  }
  .detail h2 {
    font-size: 27px;
  }
  .detail p {
    font-size: 12px;
  }
  .detail-fact {
    margin-top: 15px;
  }
  .text-button {
    margin-top: 10px;
  }
  .context {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 24px 0;
  }
  .context-heading {
    grid-column: 1/-1;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .context-heading p {
    margin: 0;
    font-size: 20px;
  }
  .fact {
    padding-left: 13px;
  }
  .fact:nth-child(2) {
    border-left: 0;
    padding-left: 0;
  }
  .fact strong {
    font-size: 25px;
  }
  .fact p {
    font-size: 12px;
    line-height: 1.6;
  }
  .fact strong span {
    font-size: 12px;
  }
  footer {
    font-size: 12px;
    padding-top: 19px;
  }
  footer div {
    gap: 20px;
  }
}

/* src/ui/components/camera-controls.css */
.figure-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.recenter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
}
.recenter-btn svg,
.angle-buttons svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.recenter-btn:hover:not(:disabled),
.angle-buttons button:hover:not(:disabled) {
  background: var(--accent-wash);
  color: var(--accent);
  border-color: var(--accent);
}
.recenter-btn:disabled,
.angle-buttons button:disabled {
  opacity: .45;
  cursor: default;
}
.iso-stage {
  cursor: grab;
  touch-action: pinch-zoom;
  user-select: none;
}
.iso-stage[data-dragging=true] {
  cursor: grabbing;
}
.iso-stage[data-free-camera=true] {
  touch-action: none;
}
.orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.orbit-canvas[hidden] {
  display: none;
}
.camera-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 25px 0;
  padding: 10px 0;
  font-size: 13px;
  color: var(--secondary);
}
.camera-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.camera-help .small-label {
  color: var(--muted);
}
.camera-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
  max-width: 100%;
}
.angle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 1;
  max-width: 100%;
}
.angle-buttons button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--control);
  color: var(--secondary);
}
@media (max-width: 1200px) {
  .camera-bar {
    margin-left: 18px;
    margin-right: 18px;
  }
}
@media (max-width: 550px) {
  .figure-actions {
    gap: 8px;
  }
  .camera-bar {
    margin: 14px 14px 0;
    gap: 10px;
  }
  .camera-help {
    width: 100%;
    font-size: 12px;
  }
  .camera-controls {
    margin-left: 0;
    gap: 8px;
  }
  .recenter-btn {
    font-size: 12px;
    padding: 8px 10px;
  }
}
[hidden] {
  display: none !important;
}
.camera-bar .view-toggle {
  margin-left: 0;
}
.camera-bar .view-toggle button {
  min-height: 44px;
}

/* src/ui/components/choice-picker.css */
.choice-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.choice-trigger:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.choice-trigger > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.choice-trigger svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.choice-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.choice-picker {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  color: var(--ink);
  background: var(--card);
  box-sizing: border-box;
  overflow: auto;
  box-shadow: var(--surface-shadow);
}
.choice-picker::backdrop {
  background: #101b2280;
}
.choice-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.choice-heading h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  margin: 6px 0 12px;
  letter-spacing: -.02em;
}
.choice-picker button {
  font: inherit;
  min-height: 44px;
  border-radius: var(--radius-control);
}
.choice-dismiss,
.choice-clear {
  border: 1px solid var(--border);
  background: var(--control);
  padding: 10px 12px;
}
.choice-clear {
  width: 100%;
  margin-top: 12px;
}
.choice-hint,
.choice-status {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.6;
  margin: 4px 0 16px;
}
.choice-search {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary);
  margin: 12px 0;
}
.choice-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.choice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.choice-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
}
.choice-option:hover:not(:disabled),
.choice-option[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.choice-option:disabled {
  cursor: default;
  background: var(--control);
}
.choice-option:disabled strong {
  color: var(--secondary);
}
.choice-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}
.choice-content strong {
  font-size: 16px;
  font-weight: 600;
}
.choice-description,
.choice-meta {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.6;
}
.choice-check {
  flex: 0 0 18px;
  color: var(--accent);
  font-size: 18px;
}
.choice-badge {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  min-height: 34px;
  padding: 0 3px;
  border-radius: 8px;
  color: white;
  background: var(--choice-color, var(--accent));
  font-size: 13px;
  font-weight: 600;
}
.choice-picker [hidden] {
  display: none !important;
}
.choice-picker :is(button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 550px) {
  .choice-picker {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    padding: 20px 18px max(20px, env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }
}

/* src/ui/sections/mode-switch.css */
.mode-bar {
  min-width: 0;
  margin: 0;
}
.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  background: transparent;
}
.mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.mode-switch button svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-switch button[aria-pressed=true] {
  color: var(--page);
  border-color: var(--accent);
  background: var(--accent);
}
.mode-switch button[aria-pressed=true] svg {
  stroke: currentColor;
}
.mode-switch button:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
}
.mode-switch button[aria-pressed=true]:hover:not(:disabled) {
  color: var(--page);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.mode-switch button:active:not(:disabled) {
  box-shadow: inset 0 0 0 1px currentColor;
}
.mode-switch button:disabled {
  opacity: .45;
  cursor: default;
}
.mode-description[hidden],
.intro[hidden],
.context[hidden] {
  display: none;
}
.intro h1 {
  font-size: clamp(30px, 3vw, 46px);
}
@media (max-width: 640px) {
  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px 0;
  }
  .mode-switch button {
    min-width: 0;
    gap: 6px;
    padding: 10px 8px;
    font-size: 13px;
    white-space: normal;
  }
  .mode-switch button svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
  .mode-switch button span {
    min-width: 0;
    text-align: start;
    overflow-wrap: anywhere;
  }
}
.explore-navigation {
  display: flex;
  margin: 14px 0 16px;
}
.experience-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--control);
}
.experience-switch button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}
.experience-switch button:hover:not(:disabled) {
  background: var(--accent-wash);
  color: var(--accent);
}
.experience-switch button[aria-pressed=true] {
  background: var(--accent);
  color: var(--page);
}
.experience-switch button:disabled {
  opacity: .45;
  cursor: default;
}
@media (max-width: 550px) {
  .experience-switch button {
    padding: 10px 14px;
    font-size: 13px;
  }
}
body[data-mode=anatomy] .masthead,
body[data-mode=journey] .masthead {
  border-bottom: 0;
}

/* src/ui/modes/journey/styles.css */
.journey-inspector {
  border-left: 1px solid var(--border);
}
.journey-summary {
  padding: 0 23px 24px;
}
.journey-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 29px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.journey-stats strong {
  font: 600 28px var(--font-ui);
  display: block;
}
.journey-stats span {
  display: block;
  color: var(--secondary);
  font-size: 13px;
  margin-top: 6px;
}
.journey-summary > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--secondary);
}
.journey-progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--secondary);
  margin-top: 22px;
}
.journey-summary progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 11px 0 23px;
  accent-color: var(--accent);
  border: 0;
  background: var(--border);
}
.journey-summary progress::-webkit-progress-bar {
  background: var(--border);
}
.journey-summary progress::-webkit-progress-value {
  background: var(--accent);
}
.train-formation {
  border-top: 1px solid var(--border);
}
.train-formation > div {
  position: relative;
  padding: 15px 0 15px 29px;
  border-bottom: 1px solid var(--border);
}
.train-formation > div > span {
  position: absolute;
  left: 0;
  top: 17px;
  color: var(--muted);
  font: 600 12px var(--font-ui);
}
.train-formation strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.train-formation small {
  display: block;
  font-size: 13px;
  color: var(--secondary);
  margin-top: 5px;
}
.journey-summary .journey-footnote {
  font-size: 12px;
  line-height: 1.65;
  margin: 19px 0 0;
}
.journey-route {
  flex: 1;
  font-size: 13px;
  color: var(--secondary);
  text-align: center;
  padding: 0 10px;
}
.journey-operation .op-controls {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .journey-inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .journey-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }
  .journey-stats {
    grid-column: 1/-1;
    margin-bottom: 18px;
  }
  .journey-summary h2 {
    grid-column: 1;
    margin-top: 12px;
  }
  .journey-summary > p {
    grid-column: 1;
  }
  .journey-summary .detail-kicker {
    grid-column: 1;
  }
  .journey-progress-heading,
  .journey-summary progress {
    grid-column: 1;
  }
  .train-formation {
    grid-column: 2;
    grid-row: 2/7;
  }
  .journey-summary .journey-footnote {
    grid-column: 1/-1;
  }
  .journey-inspector .inspector-heading {
    padding-bottom: 18px;
  }
}
@media (max-width: 550px) {
  .journey-summary {
    display: block;
    padding: 0 17px 20px;
  }
  .journey-summary h2 {
    font-size: 27px;
  }
  .journey-route {
    order: 3;
    flex-basis: 100%;
    text-align: left;
    padding: 4px 0 0;
  }
  .journey-operation .live-speed {
    margin-left: auto;
  }
  .journey-operation .op-controls button {
    flex: initial;
  }
  .journey-operation #journey-play {
    flex: 1;
  }
  .journey-operation #journey-restart {
    font-size: 13px;
  }
  .journey-operation .live-speed {
    min-width: 72px;
  }
  .journey-stats {
    gap: 20px;
  }
}

/* src/ui/styles/accessibility.css */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* src/ui/styles/localization.css */
.language-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.language-switch button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--secondary);
  font-size: 13px;
  white-space: nowrap;
}
.language-switch button[aria-pressed=true] {
  border-color: var(--border);
  background: var(--control);
  color: var(--ink);
}
.language-switch button:hover {
  background: var(--accent-wash);
  color: var(--accent);
}
.state-badge {
  white-space: normal;
  flex-shrink: 0;
  max-width: 100%;
}
.state-badge i {
  flex-shrink: 0;
}
.op-controls button {
  white-space: normal;
}
.speed-control label {
  white-space: normal;
}
.view-toggle button {
  min-height: 44px;
}
.journey-stats span {
  overflow-wrap: anywhere;
}
footer div {
  flex-wrap: wrap;
}
@media (max-width: 1200px) {
  .edition {
    display: none;
  }
}
@media (max-width: 550px) {
  .language-switch button {
    padding: 8px;
    font-size: 12px;
  }
  .camera-help {
    line-height: 1.6;
  }
  .state-badge {
    font-size: 12px;
  }
  .figure-top {
    align-items: flex-start;
  }
  .view-toggle button {
    min-height: 44px;
  }
  .op-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .demo-tag {
    font-size: 11px;
  }
}

/* src/ui/sections/header.css */
.masthead {
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}
.masthead-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
}
.mast-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
@media (max-width: 640px) {
  .masthead-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 12px;
    padding: 4px 0 10px;
  }
  .masthead-main > .mode-bar {
    grid-column: 1;
    grid-row: 1;
  }
  .mast-right {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    gap: 8px;
  }
}

/* src/ui/modes/map/styles.css */
.map-workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  grid-template-areas: "top top" "sidebar map" "summary summary" "access access" "route route" "station station" "project project" "note note";
  margin-top: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-surface);
  box-shadow: var(--surface-shadow);
}
.map-top {
  grid-area: top;
  background: var(--card);
  border-radius: var(--radius-surface) var(--radius-surface) 0 0;
}
.map-main {
  grid-area: map;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  position: static;
  border-left: 1px solid var(--border);
  container: metro-map-column / inline-size;
}
.map-inspector {
  grid-area: sidebar;
}
.map-playback-region {
  min-width: 0;
  border-top: 1px solid var(--border);
}
.map-route-details {
  grid-area: route;
  min-width: 0;
  padding: 0 25px;
  border-top: 1px solid var(--border);
}
.station-card {
  grid-area: station;
}
.map-heading {
  padding: 24px 25px 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.map-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 25px;
  border-top: 1px solid var(--border);
  background: var(--control);
  font-size: 12px;
  color: var(--secondary);
}
.map-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--secondary);
  min-width: 0;
}
.map-field select {
  appearance: auto;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  min-height: 44px;
  padding: 9px 12px;
  max-width: 100%;
  cursor: pointer;
}
.map-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.map-camera-actions {
  margin-inline-start: auto;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
}
.map-camera-actions,
.map-operation-buttons,
.map-zoom-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.map-camera-actions button,
.map-operation-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--page);
  font-size: 12px;
}
.map-camera-actions button:hover,
.map-operation-buttons button:hover {
  background: var(--accent-wash);
}
.map-camera-actions button[aria-pressed=true],
#map-play[aria-pressed=true] {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: var(--accent);
}
.map-camera-actions svg,
.map-operation-buttons svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.map-zoom-buttons button {
  width: 44px;
  font-size: 22px;
  padding: 0;
}
.metro-map {
  flex: none;
  height: clamp(420px, 75svh, 900px);
  width: 100%;
  background: #e8ebe5;
  isolation: isolate;
  font-family: inherit;
}
.metro-map:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.metro-map .leaflet-control-attribution {
  font-size: 10px;
  line-height: 1.5;
  padding: 3px 6px;
  background: rgba(255, 255, 255, .94);
  color: #37434c;
}
.metro-map .leaflet-control-attribution a {
  color: #155a82;
  text-decoration: underline;
}
.metro-map .leaflet-tile-pane {
  opacity: .9;
}
.map-operation {
  padding: 20px 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  background: var(--control);
}
.map-operation .map-field {
  flex: 1 1 200px;
}
.map-operation .map-playback-field {
  flex: 0 1 130px;
}
.map-train-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}
.map-inspector {
  border-left: 0;
  padding: 24px 22px;
  min-width: 0;
  align-self: start;
}
.map-line-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.map-line-stats strong {
  font-size: 16px;
  font-weight: 500;
}
.map-line-stats > span {
  font-size: 13px;
  color: var(--secondary);
}
.map-trip-summary {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.map-trip-summary > div:not(.map-trip-readout) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}
.map-trip-summary strong {
  font-weight: 550;
  font-size: 14px;
}
.map-trip-summary .small-label {
  color: var(--secondary);
}
.map-trip-summary progress {
  display: block;
  width: 100%;
  height: 4px;
  accent-color: var(--metro-line-color, #0076b8);
  border: 0;
}
.map-trip-readout {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--secondary);
}
.map-stations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}
.map-stations button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 8px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
}
.map-stations button:hover,
.map-stations button[aria-pressed=true] {
  background: var(--accent-wash);
}
.map-stations button[aria-pressed=true] {
  border-color: var(--accent);
  color: var(--accent);
}
.map-stations button.is-next .map-stop-number {
  background: var(--metro-line-color, #0076b8);
  color: #fff;
  border-color: var(--metro-line-color, #0076b8);
}
.map-stop-number {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 10px;
  font-family: ui-monospace, monospace;
}
.map-stop-number.has-station-code {
  flex-basis: auto;
  min-width: 28px;
  padding: 0 6px;
  height: 28px;
  border-radius: 8px;
  white-space: nowrap;
}
.map-station-detail {
  padding: 25px;
  border-top: 1px solid var(--border);
}
.map-station-detail h3 {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 500;
}
.map-station-detail p {
  font-size: 12px;
  margin: 5px 0;
  color: var(--secondary);
}
.map-station-detail .map-coordinates {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.map-data-note {
  grid-area: note;
  border-top: 1px solid var(--border);
  padding: 16px 25px;
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.7;
}
.map-data-note p {
  margin: 0 0 9px;
}
.map-data-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.metro-train-marker {
  background: transparent;
  pointer-events: none;
}
@media (max-width: 1200px) {
  .map-workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }
  .map-inspector {
    padding: 22px 18px;
  }
}
@media (max-width: 850px) {
  .map-main {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .map-workspace {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "sidebar" "map" "summary" "access" "route" "station" "project" "note";
  }
  .map-inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .metro-map {
    height: clamp(280px, 60svh, 600px);
  }
}
@media (max-width: 520px) {
  .map-heading,
  .map-toolbar,
  .map-operation {
    padding-left: 16px;
    padding-right: 16px;
  }
  .map-route-details,
  .map-station-detail,
  .map-data-note {
    padding-left: 16px;
    padding-right: 16px;
  }
  .map-stations {
    grid-template-columns: 1fr;
  }
  .map-camera-actions {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-end;
  }
  .metro-map {
    height: clamp(240px, 58svh, 480px);
  }
  .map-operation-buttons {
    width: 100%;
  }
  .map-operation-buttons button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-workspace button {
    transition: none;
  }
}

/* src/ui/modes/map/trip-planner.css */
.map-workspace[hidden],
.map-workspace [hidden] {
  display: none !important;
}
.map-workspace button:focus-visible,
.trip-itinerary summary:focus-visible,
.line-station-list summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.trip-planner h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.trip-intro,
.trip-feedback {
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
  margin: 0 0 18px;
}
.trip-inputs {
  display: grid;
  gap: 16px;
}
.trip-inputs .map-field {
  font-size: 13px;
}
.trip-inputs select {
  width: 100%;
  font-size: 14px;
}
.trip-endpoint-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
  border-radius: 50%;
  font: 600 12px ui-monospace, monospace;
}
.trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.trip-actions button,
.trip-fit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--page);
  font-size: 14px;
}
.trip-actions button:hover:not(:disabled),
.trip-fit:hover,
.map-experience-switch button:hover {
  background: var(--accent-wash);
}
.trip-actions button:disabled {
  opacity: .5;
  cursor: default;
}
.trip-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.trip-feedback {
  margin-bottom: 16px;
}
.trip-feedback.is-ready {
  color: var(--accent);
  background: var(--accent-wash);
  border-radius: 10px;
  padding: 12px;
}
.trip-boarding {
  border-radius: 12px;
  background: var(--accent-wash);
  padding: 14px;
}
.trip-boarding strong,
.trip-arrival strong {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 7px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.trip-boarding p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--secondary);
}
.trip-arrival {
  padding-top: 16px;
}
.trip-metrics {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 6px;
  font-size: 14px;
}
.trip-metrics strong {
  font-weight: 550;
}
.trip-metrics > span {
  color: var(--secondary);
}
.trip-count-note {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.trip-fit {
  width: 100%;
}
.trip-itinerary summary,
.line-station-list summary {
  min-height: 44px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
@media (max-width: 850px) {
  .trip-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .trip-boarding strong,
  .trip-arrival strong {
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .trip-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* src/ui/modes/map/station-marker.css */
.metro-station-marker {
  background: transparent;
}
.metro-station-marker span {
  display: grid;
  place-items: center;
  position: relative;
  box-sizing: border-box;
  width: var(--station-visual-size, 24px);
  height: var(--station-visual-size, 24px);
  margin: calc((var(--station-marker-size, 28px) - var(--station-visual-size, 24px)) / 2);
  white-space: nowrap;
  border-radius: 50%;
  border: 2px solid var(--metro-line-color, var(--accent));
  background: var(--card);
  color: var(--ink);
  font: 700 9px ui-monospace, monospace;
  box-shadow: 0 1px 5px #0002;
}
.metro-station-marker.is-selected span {
  background: var(--metro-line-color, var(--accent));
  color: #fff;
  outline: 3px solid #fff;
}
.metro-station-marker.is-transfer:not(.is-interchange) span {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 5px var(--metro-line-color);
}
.metro-station-marker.is-trip-endpoint span {
  font-size: 18px;
  background: var(--metro-line-color);
  color: #fff;
  outline: 4px solid #fff;
  box-shadow: 0 2px 6px #0003;
}
.metro-station-marker.is-trip-endpoint:focus-visible span {
  outline-color: var(--accent);
  outline-offset: 3px;
}
.metro-station-marker.is-outside-trip {
  opacity: .6;
}
.metro-station-marker.is-compact span {
  font-size: 0;
  box-shadow: none;
}
.metro-station-marker.is-compact.is-transfer span {
  outline: none;
  box-shadow: none;
}
.metro-station-marker:focus-visible span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.metro-station-marker.is-interchange span::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid var(--station-transfer-color, var(--metro-line-color));
  border-radius: 50%;
  pointer-events: none;
}
.metro-station-marker.is-interchange:not(.is-compact) span::after {
  inset: -5px;
}
.metro-station-marker.is-grouped-away {
  visibility: hidden;
  pointer-events: none;
}
.metro-station-tooltip {
  border: 0;
  padding: 6px 9px;
  color: var(--ink);
  font: 12px/1.4 var(--font-ui);
  white-space: pre-line;
  max-width: 320px;
}
.metro-interchange-picker {
  display: grid;
  gap: 8px;
  font-family: var(--font-ui);
}
.metro-interchange-picker button {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--metro-line-color);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}
.metro-interchange-picker button:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.metro-interchange-picker button span {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.5;
}
.metro-interchange-picker button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* src/ui/modes/map/trip-stops.css */
.trip-itinerary ol {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.trip-itinerary li {
  position: relative;
  min-width: 0;
}
.trip-itinerary li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 26px;
  bottom: -34px;
  width: 2px;
  background: var(--accent);
  opacity: .35;
  pointer-events: none;
}
.trip-stop-button {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  scroll-margin-block: 20px;
}
.trip-stop-button:hover,
.trip-stop-button[aria-pressed=true] {
  background: var(--accent-wash);
}
.trip-stop-button[aria-pressed=true] {
  border-color: var(--accent);
}
.trip-stop-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.trip-stop-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font: 600 12px ui-monospace, monospace;
}
.trip-stop-button.is-endpoint .trip-stop-badge {
  border-width: 2px;
}
.trip-stop-body {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.trip-stop-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.trip-stop-name {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.trip-stop-role {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
}
.trip-stop-button.is-endpoint .trip-stop-role {
  color: var(--accent);
}
.trip-stop-address {
  max-width: 70ch;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.trip-stop-action {
  align-self: center;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 520px) {
  .trip-stop-button {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px 14px;
  }
  .trip-stop-action {
    grid-column: 2;
    justify-self: start;
  }
}

/* src/ui/modes/map/station-card.css */
.station-summary {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 18px;
}
.station-summary h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 8px 0;
}
.station-summary p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.65;
  margin: 0 0 14px;
}
.station-card {
  scroll-margin-top: 20px;
}
.station-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.station-card .station-card-heading h3 {
  font-size: 24px;
  font-weight: 650;
}
.station-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.station-card-code {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--station-line-color, var(--accent));
  color: white;
  font-size: 13px;
  font-weight: 650;
}
.station-card .station-card-meta {
  color: var(--secondary);
  font-size: 13px;
  margin: 8px 0 0;
}
.station-card-heading .trip-fit {
  width: auto;
}
.station-card-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.station-card-heading h3 {
  scroll-margin-top: 20px;
}
.station-card-heading h3:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.station-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.station-card-body.has-media {
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
}
.station-card-information {
  min-width: 0;
}
.station-card .station-address {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  user-select: text;
  margin: 10px 0 18px;
  max-width: 70ch;
}
.station-card p {
  line-height: 1.65;
}
.station-location-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--secondary);
  font-size: 13px;
}
.station-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.station-card-actions .trip-actions {
  margin: 0;
}
.station-card-actions > button,
.station-nearby button,
.station-media-feedback button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--control);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.station-card-actions .station-map-action {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: var(--accent);
  font-weight: 650;
}
.station-card-actions > button:hover:not(:disabled),
.station-nearby button:hover,
.station-media-feedback button:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.station-card-actions > button:disabled {
  opacity: .5;
  cursor: default;
}
.station-nearby {
  margin-top: 22px;
}
.station-nearby h4 {
  font-size: 14px;
  margin: 0 0 10px;
}
.station-nearby ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}
.station-nearby li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.station-nearby strong {
  font-weight: 550;
}
.station-nearby p {
  font-size: 13px;
  color: var(--secondary);
  margin: 4px 0 0;
}
.station-entrances {
  margin-top: 20px;
}
.station-media-kind {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: var(--secondary);
  margin-bottom: 8px;
}
.station-media-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-size: 13px;
  margin-top: 16px;
}
.station-photo {
  min-width: 0;
  margin: 0;
}
.station-photo-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  background: var(--control);
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}
.station-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.station-photo-button img.is-loading {
  opacity: 0;
}
.station-photo-button > span {
  position: absolute;
  padding: 16px;
  font-size: 13px;
  color: var(--secondary);
}
.station-photo-button:disabled {
  cursor: default;
}
.station-photo figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 8px;
}
.photo-credit {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.photo-credit a,
.station-sources a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.station-entrances {
  border-top: 1px solid var(--border);
  padding-top: 4px;
}
.station-entrances summary {
  min-height: 44px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 13px;
}
.station-entrances ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.station-entrances li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.station-entrances strong {
  font-weight: 550;
}
.station-entrances button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--page);
}
.station-sources {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.6;
}
.photo-viewer {
  border-radius: var(--radius-surface);
  max-width: min(960px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 32px);
  padding: 20px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: auto;
}
.photo-viewer::backdrop {
  background: rgb(0 0 0 / .75);
}
.photo-viewer-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.photo-viewer-toolbar h3 {
  font-size: 18px;
  margin: 8px 0 16px;
}
.photo-viewer button {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--border);
}
.photo-viewer-image {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: var(--control);
}
.photo-viewer-image img {
  display: block;
  width: 100%;
  max-height: 65dvh;
  object-fit: contain;
}
.photo-viewer p {
  font-size: 13px;
  line-height: 1.6;
}
.photo-viewer :focus-visible,
.station-entrances summary:focus-visible,
.station-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.metro-entrance-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  background: var(--card);
  border: 2px solid var(--accent);
  font-size: 20px;
}
.metro-nearby-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgb(0 0 0 / .12);
}
@media (max-width: 850px) {
  .station-card-body,
  .station-card-body.has-media {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .station-photo {
    width: 100%;
    max-width: 560px;
  }
}

/* src/ui/modes/map/trip-preview.css */
.trip-address-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
}
.trip-address-hint:empty {
  display: none;
}
.trip-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 25px;
  background: var(--control);
}
.preview-heading {
  flex: 1 1 180px;
  min-width: 0;
}
.trip-preview h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 550;
}
.trip-preview .demo-tag {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 5px 7px;
}
.preview-actions {
  margin: 0;
}
.trip-preview > .map-field {
  flex: 0 1 150px;
}
.preview-readout {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
}
.preview-readout p {
  margin: 0;
}
.preview-actions button[aria-pressed=true] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}
.trip-preview p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
}
.preview-next {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.preview-next span {
  font: 500 12px var(--font-ui);
}
.preview-next strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.trip-preview progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 5px;
  accent-color: var(--accent);
}
@media (max-width: 520px) {
  .trip-preview {
    padding: 18px 16px;
  }
  .preview-heading,
  .preview-actions {
    flex-basis: 100%;
  }
  .preview-readout {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #preview-status {
    grid-column: 1 / -1;
  }
}

/* src/ui/modes/map/train-marker.css */
.metro-map-train {
  display: block;
  overflow: visible;
  fill: var(--line-color, var(--metro-line-color));
  stroke: white;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 3px #0005);
}
.metro-map-windows {
  fill: none;
  stroke: #173b4b;
  stroke-width: 3;
}
.metro-map-coupler {
  fill: none;
  stroke: #37434c;
  stroke-width: 3;
  stroke-linecap: round;
}
.metro-map-direction {
  stroke-width: 1;
}
.metro-train-marker.is-tracked .metro-map-car > rect {
  stroke: var(--ink);
  stroke-width: 3;
}

/* src/ui/modes/map/address-planner.css */
.address-planner {
  min-width: 0;
  padding: 0;
}
.address-heading h3,
.address-access h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
}
.address-heading p,
.address-note,
.address-status,
.address-service-alert p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--secondary);
}
.address-heading p {
  margin: 0 0 16px;
}
.address-inputs,
.address-access-legs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 24px;
}
.address-field {
  position: relative;
  min-width: 0;
}
.address-field label {
  font-size: 14px;
}
.address-field input {
  border-radius: var(--radius-control);
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
}
.address-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.address-status {
  margin: 8px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.place-input {
  position: relative;
}
.place-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1100;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--surface-shadow);
  border-radius: 12px;
  overflow: hidden;
}
.place-options li {
  padding: 12px;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.place-options li:hover,
.place-options li[aria-selected=true] {
  background: var(--accent-wash);
}
.place-options strong,
.place-options span {
  display: block;
  overflow-wrap: anywhere;
}
.place-options strong {
  font-size: 14px;
  font-weight: 550;
}
.place-options span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 4px;
}
.address-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.address-utilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.address-utilities button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}
.address-utilities svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.address-utilities .address-clear-action {
  border-color: transparent;
  background: transparent;
  color: var(--secondary);
}
.address-utilities .address-clear-action:hover:not(:disabled) {
  color: var(--ink);
  background: var(--accent-wash);
}
.address-bottom button:disabled {
  opacity: .5;
  cursor: default;
}
.address-bottom .address-primary {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  background: var(--accent);
  color: var(--page);
  border-color: var(--accent);
  font-weight: 600;
}
.address-bottom .address-primary:hover:not(:disabled) {
  background: var(--accent);
  opacity: .9;
}
.address-secondary {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--border);
  background: var(--page);
}
.address-secondary:hover:not(:disabled) {
  background: var(--accent-wash);
}
.address-location-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  max-width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  color: var(--accent);
  background: var(--accent-wash);
}
.address-location-button svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.address-location-button:hover:not(:disabled) {
  border-color: var(--accent);
}
.address-location-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.address-location-button:disabled {
  opacity: .6;
  cursor: default;
}
.address-summary h3 {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 12px;
}
.address-summary:focus-visible,
.address-access:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.journey-total {
  font-size: 22px;
  font-weight: 550;
  line-height: 1.4;
  margin: 0 0 8px;
}
.journey-notice {
  border-radius: 10px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
}
.journey-legs {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.journey-legs li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 20px;
}
.journey-legs li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  border-left: 2px dotted var(--border);
}
.journey-step {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  font: 600 12px var(--font-ui);
  color: var(--accent);
  background: var(--card);
}
.journey-step.is-rail {
  background: var(--accent);
  color: var(--page);
}
.journey-leg-content {
  min-width: 0;
}
.journey-leg-content .small-label {
  white-space: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
}
.journey-leg-content strong {
  display: block;
  font-size: 16px;
  font-weight: 550;
  margin: 4px 0 6px;
}
.journey-leg-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0;
}
.journey-leg-content .journey-leg-note {
  color: var(--secondary);
  font-size: 13px;
}
.journey-leg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.journey-leg-content button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--page);
  text-align: left;
}
.journey-leg-content button:hover {
  background: var(--accent-wash);
}
.address-service-alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 16px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
}
.address-service-alert p {
  margin: 0;
  color: var(--ink);
}
.address-service-alert .trip-actions {
  margin: 12px 0 0;
}
.address-attribution {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--secondary);
}
.address-attribution a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}
.address-access {
  grid-area: access;
  min-width: 0;
  border-top: 1px solid var(--border);
  padding: 20px 25px;
}
.address-access h3 {
  font-size: 18px;
}
.address-access-legs > div {
  border-radius: 12px;
  margin-top: 12px;
  padding: 14px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
}
.address-access-legs p {
  font-size: 14px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.address-access-legs .small-label {
  white-space: normal;
}
.connection-directions summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
}
.connection-directions summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.connection-directions ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.connection-directions li {
  padding: 5px 0;
}
.address-place-marker {
  border: 2px solid white;
  border-radius: 14px;
  box-sizing: border-box;
  background: #155a82;
  color: white;
  text-align: center;
  font: 600 11px/24px var(--font-ui);
  box-shadow: 0 1px 5px #0003;
}
.address-entrance-marker {
  display: grid;
  place-items: center;
  background: white;
  border: 2px solid;
  box-sizing: border-box;
  font-size: 18px;
}
@media (max-width: 650px) {
  .address-inputs,
  .address-access-legs {
    grid-template-columns: minmax(0, 1fr);
  }
  .address-access {
    padding: 18px 16px;
  }
}

/* src/ui/modes/map/navigation.css */
.map-page-title {
  min-width: 0;
}
.map-page-title h1 {
  font-size: clamp(26px, 2.2vw, 34px);
  margin: 0 0 8px;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.map-page-title p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--secondary);
  margin: 0;
}
.city-context {
  display: grid;
  gap: 6px;
  flex: 0 1 270px;
  min-width: 220px;
}
.city-context .choice-trigger {
  font-size: 16px;
  font-weight: 600;
}
.map-experience-switch {
  display: flex;
  gap: 28px;
  padding: 0 25px;
  border-bottom: 1px solid var(--border);
}
.map-experience-switch button {
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  font-size: 16px;
}
.map-experience-switch button[aria-pressed=true] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.map-experience-switch button:hover {
  color: var(--accent);
}
.map-planning-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.planning-method {
  margin-bottom: 18px;
}
.planning-method > span {
  display: block;
  color: var(--secondary);
  font-size: 13px;
  margin-bottom: 7px;
}
.trip-methods {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--control);
}
.trip-methods button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  background: transparent;
  color: var(--secondary);
}
.trip-methods button[aria-pressed=true] {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
  font-weight: 600;
}
.trip-methods button:hover {
  color: var(--accent);
}
.map-line-identity {
  flex: 1 1 290px;
  min-width: 0;
}
.map-line-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 14px;
}
.map-line-card[hidden] {
  display: none;
}
.map-line-content {
  flex: 1;
  min-width: 0;
}
.map-line-content > .small-label {
  display: block;
  color: var(--secondary);
}
.map-line-title {
  display: block;
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.map-line-card > .choice-badge {
  flex-basis: 36px;
  min-height: 36px;
}
.line-change {
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--accent-wash);
  color: var(--ink);
  text-align: left;
}
.line-change:hover,
.line-change[aria-expanded=true] {
  background: var(--card);
}
.line-change:active {
  background: var(--control);
}
.line-change:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.map-line-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.map-line-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.map-inspector .address-inputs {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.map-inspector .address-status {
  font-size: 13px;
}
.map-inspector .address-note {
  font-size: 13px;
}
.address-summary,
.station-trip-result {
  grid-area: summary;
  padding: 24px 25px;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.address-summary h3,
.station-trip-result h2 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 600;
}
.station-trip-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 24px;
}
.station-trip-result h2,
.station-trip-result .trip-metrics,
.station-trip-result > p,
.station-trip-result > button,
.station-trip-result .trip-actions {
  grid-column: 1 / -1;
}
.station-trip-result .trip-arrival {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.station-trip-result > .trip-fit {
  width: auto;
  justify-self: start;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--page);
}
.address-summary .journey-legs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.address-summary .journey-legs li {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.address-summary .journey-legs li::before {
  display: none;
}
@media (max-width: 850px) {
  .map-heading {
    gap: 18px;
  }
  .city-context {
    flex-basis: 260px;
  }
  .address-summary .journey-legs {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-planning-panel {
    max-width: 650px;
    margin: 0 auto;
  }
  .map-inspector .address-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .line-change {
    flex-wrap: wrap;
  }
  .map-line-action {
    margin-left: auto;
  }
  .map-workspace {
    margin-top: 16px;
  }
  .map-heading {
    padding: 20px 16px 12px;
  }
  .map-page-title h1 {
    font-size: 25px;
  }
  .city-context {
    flex: 1 1 100%;
    min-width: 0;
  }
  .map-experience-switch {
    padding: 0 16px;
    gap: 24px;
  }
  .map-experience-switch button {
    font-size: 15px;
  }
  .map-inspector .address-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
  .address-summary,
  .station-trip-result {
    padding: 20px 16px;
  }
  .station-trip-result {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* src/ui/modes/map/exploration.css */
.map-exploration {
  min-width: 0;
}
.map-exploration .map-line-identity {
  margin-bottom: 4px;
}
.map-exploration .map-line-card {
  flex-wrap: wrap;
  padding: 12px;
}
.map-exploration .map-line-card .map-line-action {
  margin-inline-start: auto;
}
.map-exploration .map-line-stats {
  padding: 14px 0;
}
.map-exploration .map-operation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0 0;
  background: transparent;
}
.map-exploration .map-operation-buttons,
.map-exploration .map-train-status {
  grid-column: 1 / -1;
}
.map-exploration .map-operation-buttons {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.map-exploration .map-operation-buttons button {
  min-width: 0;
  min-height: 48px;
  font-size: 13px;
  line-height: 1.5;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.map-exploration #map-play {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--page);
  font-weight: 600;
}
.map-exploration #map-play[aria-pressed=false]:hover:not(:disabled) {
  background: var(--secondary);
  border-color: var(--secondary);
}
.map-exploration #map-play[aria-pressed=true] {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}
.map-exploration #map-play[aria-pressed=true]:hover:not(:disabled) {
  background: var(--card);
}
.map-exploration .map-operation-buttons button:active:not(:disabled) {
  box-shadow: inset 0 0 0 2px currentColor;
}
.map-exploration .map-operation-buttons svg {
  flex: none;
}
.map-exploration .map-operation-buttons button span {
  overflow-wrap: anywhere;
}
.map-exploration #map-play-symbol {
  fill: currentColor;
}
.map-exploration #map-play[aria-pressed=true] #map-play-symbol {
  fill: none;
}
.map-exploration #map-restart {
  background: transparent;
  border-color: transparent;
  color: var(--secondary);
}
.map-exploration #map-restart:hover:not(:disabled) {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink);
}
.map-exploration .map-operation-buttons button:disabled {
  opacity: .45;
}
@media (prefers-reduced-motion: reduce) {
  .map-exploration .map-operation-buttons button {
    transition: none;
  }
}
.map-exploration .map-playback-field {
  grid-column: 1 / -1;
}
.map-exploration .map-field {
  font-size: 13px;
}
.map-exploration .map-trip-summary {
  padding: 16px 0;
}
.map-exploration .map-trip-summary > div:not(.map-trip-readout) {
  margin-bottom: 12px;
}
.map-exploration .map-stations {
  display: block;
  margin: 0;
}
.map-station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-bottom: 8px;
}
.map-station-grid button {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius-control);
}
.map-station-grid button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.map-exploration .line-station-list {
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.map-network-trains {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.map-network-line {
  display: flex;
  align-items: start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--control);
}
.map-network-line:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.map-network-line > span {
  min-width: 0;
}
.map-network-line strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.map-network-line > span > span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 4px;
}
.map-station-group {
  border-top: 1px solid var(--border);
}
.map-station-group summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.map-station-group summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 850px) {
  .map-exploration .map-network-trains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .map-exploration .map-network-trains {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 380px) {
  .map-exploration .map-operation-buttons {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* src/ui/modes/map/future.css */
.map-heading {
  flex-wrap: nowrap;
}
.map-page-title {
  flex: 1 1 0;
}
.map-header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.map-header-actions .city-context {
  flex: 0 0 250px;
  width: 250px;
  min-width: 0;
}
.map-network-switch {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
}
.map-network-switch button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
  white-space: nowrap;
}
.map-network-switch button[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 650;
}
.map-network-switch button:hover {
  border-color: var(--accent);
}
.future-panel {
  grid-area: project;
  min-width: 0;
  padding: 28px 25px;
  border-top: 1px solid var(--border);
}
.future-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.future-information-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
}
.future-information-heading > .small-label {
  grid-column: 1 / -1;
}
.future-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.future-status {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}
.future-introduction {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 8px 0 24px;
}
.future-view-note,
.future-updated {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
}
.future-facts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  overflow: hidden;
}
.future-facts > div {
  min-width: 0;
  padding: 20px;
}
.future-facts > div + div {
  border-inline-start: 1px solid var(--border);
}
.future-facts dt,
.future-phase-target dt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--secondary);
}
.future-facts dd {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.future-facts .future-opening-fact {
  background: var(--control);
}
.future-facts .future-target-note {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--secondary);
}
.future-phase-section,
.future-timeline {
  margin-top: 28px;
}
.future-panel h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.future-section-note {
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
}
.future-project-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.future-project-phase {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.future-phase-heading {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.future-phase-heading h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.future-phase-target {
  margin: 0;
}
.future-phase-target dd {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
}
.future-phase-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
}
.future-phase-distance {
  margin: 0;
  font-size: 13px;
  color: var(--secondary);
}
.future-phase-details {
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.65;
}
.future-phase-details p {
  margin: 0 0 12px;
  color: var(--secondary);
}
.future-panel summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  line-height: 1.6;
  align-content: center;
}
.future-panel summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.future-panel a {
  color: var(--accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.future-milestone-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.future-milestone-groups h4 {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}
.future-timeline ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.future-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 0 0 20px 24px;
  margin-left: 5px;
  border-left: 2px dashed var(--border);
}
.future-timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.future-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--card);
}
.future-timeline li[data-status=completed]::before {
  background: var(--accent);
}
.future-timeline li[data-status=underway]::before {
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.future-milestone-date {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--secondary);
}
.future-timeline strong {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
}
.future-milestone-status,
.future-timeline a {
  font-size: 12px;
  line-height: 1.6;
}
.future-milestone-status {
  color: var(--secondary);
}
.future-timeline li[data-status=underway] .future-milestone-status {
  color: var(--accent);
  font-weight: 650;
}
.future-history,
.future-project-details,
.future-sources {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.65;
}
.future-history > ol {
  padding: 8px 0 16px;
}
.future-detail-content {
  max-width: 80ch;
  padding-bottom: 8px;
}
.future-detail-content h4 {
  margin: 16px 0 6px;
  font-size: 14px;
}
.future-detail-content h4:first-child {
  margin-top: 4px;
}
.future-detail-content p {
  margin: 0 0 16px;
  color: var(--secondary);
}
.future-sources ul {
  padding-left: 18px;
  margin: 4px 0 16px;
}
.future-sources li + li {
  margin-top: 10px;
}
@supports not (grid-template-rows: subgrid) {
  .future-project-phase {
    display: flex;
    flex-direction: column;
  }
  .future-phase-details {
    margin-top: auto;
  }
}
@media (max-width: 650px) {
  .future-information-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .future-panel h2 {
    font-size: 22px;
  }
  .future-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .future-facts .future-opening-fact {
    grid-column: 1 / -1;
  }
  .future-facts > div {
    padding: 16px;
  }
  .future-facts > div:nth-child(2) {
    border-inline-start: 0;
  }
  .future-facts > div + div {
    border-top: 1px solid var(--border);
  }
  .future-facts dd {
    font-size: 22px;
  }
}
.map-empty h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.map-empty p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 850px) {
  .map-heading {
    flex-wrap: wrap;
  }
  .map-page-title {
    flex-basis: 100%;
  }
  .map-header-actions {
    flex: 1 1 100%;
  }
  .map-header-actions .city-context {
    flex: 1 1 230px;
    width: auto;
  }
}
@media (max-width: 520px) {
  .map-header-actions {
    flex-wrap: wrap;
  }
  .future-panel {
    padding: 24px 16px;
  }
}

/* src/ui/modes/map/journey-result.css */
.journey-overview {
  padding: 24px;
  border: 1px solid var(--accent);
  border-left-width: 5px;
  border-radius: 16px;
  background: var(--accent-wash);
}
.journey-overview-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.journey-overview-heading > div:first-child {
  min-width: 0;
}
.journey-overview .small-label {
  color: var(--secondary);
  white-space: normal;
}
.journey-overview .journey-total {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin: 8px 0 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.journey-overview .address-note {
  max-width: 70ch;
  margin: 6px 0;
  font-size: 13px;
}
.journey-main-actions {
  margin: 0;
  flex-shrink: 0;
}
.journey-main-actions button {
  background: var(--accent);
  color: var(--page);
  border-color: var(--accent);
  font-weight: 600;
}
.journey-main-actions button:hover:not(:disabled) {
  background: var(--accent);
  opacity: .9;
}
.journey-route-strip {
  display: grid;
  grid-template-columns: max-content auto minmax(0, 1fr) auto max-content;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.6;
}
.journey-access-preference {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.journey-access-preference-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}
.journey-custom-connections {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.journey-access-preference-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.journey-access-preference-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}
.journey-access-preference-options button[aria-pressed=true] {
  color: var(--page);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}
.journey-access-preference-options button:hover {
  border-color: var(--accent);
}
.journey-access-preference-options button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.journey-access-preference-options svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-overview .journey-access-preference > .address-note {
  margin-top: 10px;
}
.journey-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 550;
}
.journey-mode-chip svg,
.connection-modes svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-route-rail {
  min-width: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--metro-line-color);
}
.journey-route-rail b {
  display: block;
  overflow-wrap: anywhere;
}
.journey-station-role {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--secondary);
}
.journey-station-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  margin-top: 10px;
}
.journey-station-pair > div {
  min-width: 0;
}
.journey-station-arrow {
  align-self: center;
  color: var(--secondary);
}
.journey-station-button,
.journey-leg-content .journey-station-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  margin: 6px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  line-height: 1.5;
}
.journey-station-pair .journey-station-button {
  width: 100%;
}
.journey-station-button > span {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.journey-station-button svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  color: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-station-button .journey-station-chevron {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
}
.journey-station-button:hover,
.journey-leg-content .journey-station-button:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.journey-station-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.journey-station-button:active {
  background: var(--control);
}
.journey-exit-station {
  margin-top: 14px;
}
.journey-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.journey-metrics > div {
  flex: 1 1 130px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.journey-metrics dt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
}
.journey-metrics dd {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.journey-assumptions {
  margin-top: 14px;
}
.journey-connection-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--card);
}
.journey-connection-feedback > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.journey-connection-feedback .trip-actions {
  margin: 10px 0 0;
}
.journey-assumptions summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
}
.journey-overview .journey-notice {
  margin: 16px 0 0;
  background: var(--card);
  font-weight: 550;
}
.address-summary .journey-legs {
  gap: 16px;
  margin: 24px 0 0;
}
.address-summary .journey-legs li {
  padding: 18px;
  border-radius: 14px;
}
.address-summary .journey-leg-content > strong {
  font-size: 19px;
  margin: 6px 0 14px;
}
.journey-leg-content > [id$=-metrics] {
  font-size: 16px;
  font-weight: 650;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}
.connection-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.connection-modes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 115px;
  gap: 6px;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius-control);
}
.connection-modes button[aria-pressed=true] {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: var(--accent);
  font-weight: 650;
}
.connection-long-walk {
  margin: 12px 0;
  padding: 12px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.connection-long-walk p {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 8px;
}
.connection-long-walk button {
  color: var(--accent);
  font-weight: 600;
}
.connection-motor-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--control);
}
.journey-overview button:focus-visible,
.connection-modes button:focus-visible,
.connection-long-walk button:focus-visible,
.journey-assumptions summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  .address-summary .journey-legs {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey-overview-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 850px) {
  .journey-route-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey-route-strip > .journey-mode-chip {
    justify-self: start;
  }
  .journey-route-strip > span[aria-hidden] {
    justify-self: center;
    transform: rotate(90deg);
  }
}
@media (max-width: 600px) {
  .journey-station-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .journey-station-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}
@media (max-width: 520px) {
  .journey-access-preference-options {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }
  .journey-access-preference-options button {
    flex: 1 1 100px;
  }
}
@media (max-width: 520px) {
  .journey-overview {
    padding: 18px 16px;
  }
  .journey-overview-heading {
    gap: 12px;
  }
  .journey-main-actions,
  .journey-main-actions button {
    width: 100%;
  }
  .journey-route-strip {
    gap: 8px;
  }
  .journey-metrics {
    gap: 8px;
  }
  .journey-metrics > div {
    flex-basis: calc(50% - 4px);
    box-sizing: border-box;
    padding: 12px;
  }
  .journey-metrics dd {
    font-size: 21px;
  }
  .address-summary .journey-legs li {
    padding: 14px;
  }
}
.network-journey,
#journey-network-legs {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.network-leg {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ride-color, var(--accent));
  border-radius: 10px;
  background: var(--card);
}
.network-leg-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.network-leg-heading strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.network-leg > p {
  margin: 8px 0;
}
.network-leg-transfer {
  background: var(--control);
  border-left-color: var(--secondary);
}
.network-leg-metrics {
  font-weight: 600;
  font-size: 14px;
}
.network-transfer-stations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.network-leg a {
  font-size: 12px;
}
.network-journey-rail {
  min-width: 0;
}
.station-trip-result .network-journey {
  margin: 20px 0;
}
@media (max-width: 520px) {
  .network-transfer-stations {
    grid-template-columns: minmax(0, 1fr);
  }
  .network-leg {
    padding: 12px;
  }
}
.station-trip-result .network-journey {
  grid-column: 1 / -1;
}

/* src/ui/modes/map/connection-map.css */
.map-workspace {
  --connection-route-color: #475569;
}
.map-connection-swatch {
  width: 34px;
  height: 12px;
  flex: 0 0 34px;
  background: #fff;
  border-radius: 3px;
}
.map-connection-swatch path {
  fill: none;
  stroke: var(--connection-route-color);
  stroke-width: 3;
  stroke-linecap: round;
}
.connection-direction-arrow {
  pointer-events: none;
}
.connection-direction-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.connection-arrow-outline {
  stroke: #fff;
  stroke-width: 6;
}
.connection-arrow-stroke {
  stroke: var(--connection-route-color);
  stroke-width: 2.5;
}
.address-entrance-marker {
  border-color: var(--connection-route-color);
  color: var(--connection-route-color);
}
.map-map-footer .map-connection-status {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* src/ui/modes/map/legend.css */
.map-map-footer {
  flex: none;
  display: grid;
  gap: 16px;
  background: var(--control);
  padding: 16px 25px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--secondary);
}
.map-network-key {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.map-network-key li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 2px 10px;
  min-width: 0;
  line-height: 1.5;
}
.map-network-key .choice-badge {
  grid-row: 1 / 3;
  width: 28px;
  min-height: 28px;
}
.map-network-key-name {
  grid-column: 2;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.map-network-key-status {
  grid-column: 2;
  font-size: 12px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.map-line-swatch {
  flex: 0 0 24px;
  width: 24px;
  border-top: 3px solid var(--metro-line-color, #0076b8);
  display: block;
}
.map-line-swatch.is-tunnel {
  border-top-style: dashed;
}
.map-map-footer p {
  margin: 0;
}
.map-map-footer > button {
  justify-self: end;
}
.map-toolbar > .map-legend {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.map-toolbar-instructions {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
  line-height: 1.6;
}
.map-toolbar > .map-camera-actions {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}
@container metro-map-column (max-width: 960px) {
  .map-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .map-toolbar > .map-camera-actions {
    grid-column: 2;
  }
  .map-toolbar-instructions {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: start;
  }
}
@container metro-map-column (max-width: 720px) {
  .map-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-toolbar > .map-camera-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }
  .map-toolbar-instructions {
    grid-row: 3;
  }
}
@media (max-width: 520px) {
  .map-map-footer {
    padding: 14px 16px;
  }
}

/* src/ui/modes/infrastructure/styles.css */
.infrastructure-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}
.infrastructure-scene {
  min-width: 0;
  padding: 20px 24px;
}
.infrastructure-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.infrastructure-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.infrastructure-choice button,
.turnout-playback button,
.turnout-focus button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  padding: 10px 13px;
  font: inherit;
  font-size: 13px;
}
.infrastructure-choice button[aria-pressed=true],
.turnout-focus button[aria-pressed=true] {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: var(--accent);
}
.infrastructure-workspace button:hover:not(:disabled) {
  border-color: var(--accent);
}
.infrastructure-workspace button:disabled {
  opacity: .45;
  cursor: default;
}
.turnout-stage {
  position: relative;
  overflow: hidden;
  margin: 12px 0 0;
  border-radius: var(--radius-control);
}
.infrastructure-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.turnout-stage[data-free-camera=true] {
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.turnout-stage[data-dragging=true] {
  cursor: grabbing;
}
.infrastructure-camera {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.infrastructure-camera button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.infrastructure-camera button[data-infrastructure-camera=reset] {
  font-size: 13px;
}
.infrastructure-camera button:active:not(:disabled) {
  background: var(--accent-wash);
  color: var(--accent);
}
.infrastructure-camera button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.infrastructure-camera-hint {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 14px;
}
.turnout-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.turnout-svg {
  display: block;
  width: 100%;
  height: auto;
}
.turnout-svg .iso-edge {
  stroke-width: .55;
}
.turnout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 8px 0 20px;
  font-size: 12px;
  color: var(--secondary);
}
.turnout-legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.turnout-legend i {
  width: 22px;
  height: 0;
  display: inline-block;
}
.turnout-route-key {
  border-top: 2px dashed var(--accent);
}
.turnout-blade-key {
  border-top: 4px solid var(--accent);
}
.turnout-playback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#turnout-play {
  background: var(--accent);
  color: var(--page);
  border-color: var(--accent);
}
.turnout-status {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.7;
  min-height: 3.4em;
  margin-bottom: 0;
}
.infrastructure-inspector {
  padding: 26px 24px;
  border-left: 1px solid var(--border);
}
.infrastructure-inspector > h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 12px 0;
}
.infrastructure-inspector p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.turnout-focus {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}
.turnout-focus button {
  text-align: left;
}
.turnout-explanation h2 {
  font-size: 20px;
  margin: 0 0 10px;
}
.turnout-try {
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--accent-wash);
  margin-top: 24px;
  font-size: 14px;
}
.turnout-try p {
  margin-bottom: 0;
}
.turnout-sources {
  margin-top: 22px;
  font-size: 13px;
  color: var(--secondary);
}
.turnout-sources summary {
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
}
.turnout-sources a {
  display: block;
  padding: 6px 0;
  color: var(--accent);
}
body[data-mode=infrastructure] .masthead {
  border-bottom: 0;
}
.turnout-base {
  --anatomy-paper: var(--control);
  --anatomy-top: var(--control);
  --anatomy-shade-0: var(--border);
  --anatomy-shade-1: var(--border);
  --anatomy-shade-2: var(--control);
  --anatomy-shade-3: var(--control);
}
.turnout-bearer {
  --anatomy-paper: var(--metal-face);
  --anatomy-top: var(--metal-top);
  --anatomy-shade-0: var(--metal-dark);
  --anatomy-shade-1: var(--metal-dark);
  --anatomy-shade-2: var(--metal-face);
  --anatomy-shade-3: var(--metal-face);
}
.turnout-rail,
.turnout-plate,
.turnout-crossing,
.turnout-check {
  --anatomy-paper: var(--under-face);
  --anatomy-top: var(--metal-top);
  --anatomy-shade-0: var(--under-dark);
  --anatomy-shade-1: var(--metal-dark);
  --anatomy-shade-2: var(--metal-face);
  --anatomy-shade-3: var(--metal-face);
}
.turnout-fixing,
.turnout-undercarriage,
.turnout-actuator {
  --anatomy-paper: var(--under-dark);
  --anatomy-top: var(--under-top);
  --anatomy-shade-0: var(--under-dark);
  --anatomy-shade-1: var(--under-face);
  --anatomy-shade-2: var(--under-face);
  --anatomy-shade-3: var(--under-top);
}
.turnout-blade,
.turnout-linkage,
.turnout-blue {
  --anatomy-paper: var(--accent);
  --anatomy-top: var(--accent);
  --anatomy-shade-0: var(--under-dark);
  --anatomy-shade-1: var(--under-face);
  --anatomy-shade-2: var(--accent);
  --anatomy-shade-3: var(--accent);
}
.turnout-body {
  --anatomy-paper: var(--body-face);
  --anatomy-top: var(--body-top);
  --anatomy-shade-0: var(--body-dark);
  --anatomy-shade-1: var(--body-dark);
  --anatomy-shade-2: var(--body-face);
  --anatomy-shade-3: var(--body-face);
}
.turnout-glass {
  --anatomy-paper: var(--glass);
  --anatomy-top: var(--glass);
  --anatomy-shade-0: var(--glass);
  --anatomy-shade-1: var(--glass);
  --anatomy-shade-2: var(--glass);
  --anatomy-shade-3: var(--glass);
}
.turnout-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 6 5;
  opacity: .65;
}
.turnout-svg[data-focus=blades] .turnout-blade,
.turnout-svg[data-focus=blades] .turnout-linkage,
.turnout-svg[data-focus=crossing] .turnout-crossing,
.turnout-svg[data-focus=crossing] .turnout-check {
  filter: drop-shadow(0 0 2px var(--accent));
}
@media (max-width: 1100px) {
  .infrastructure-workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .infrastructure-scene,
  .infrastructure-inspector {
    padding: 20px 18px;
  }
}
@media (max-width: 900px) {
  .infrastructure-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .infrastructure-inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .turnout-focus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .infrastructure-scene,
  .infrastructure-inspector {
    padding: 16px 14px;
  }
  .infrastructure-toolbar {
    gap: 10px;
  }
  .infrastructure-choice {
    width: 100%;
  }
  .infrastructure-choice button {
    flex: 1;
    padding: 10px 8px;
  }
  .turnout-playback {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .turnout-focus {
    grid-template-columns: minmax(0, 1fr);
  }
}
.turnout-svg[data-focus=crossing] .turnout-crossing,
.turnout-svg[data-focus=crossing] .turnout-check {
  --anatomy-top: var(--accent);
}
.infrastructure-exhibit {
  display: contents;
}
.infrastructure-topics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 24px 8px;
}
.infrastructure-topics button {
  min-height: 48px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  font-size: 14px;
}
.infrastructure-topics button[aria-pressed=true] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 0 -2px var(--accent);
}
.infra-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.infra-toggle {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  font-size: 13px;
}
.infra-toggle[aria-pressed=true] {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}
.infra-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.infra-sliders label {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--secondary);
  min-width: 0;
}
.infra-sliders label > span {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.infra-sliders output {
  font-weight: 600;
  color: var(--ink);
}
.infra-sliders input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
}
.infra-sliders:empty {
  display: none;
}
.infra-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--control);
  font-size: 13px;
}
.infra-metrics dt {
  color: var(--secondary);
}
.infra-metrics dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
#infra-play {
  background: var(--accent);
  color: var(--page);
  border-color: var(--accent);
}
.infra-legend {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
}
.infra-trace,
.infra-load-trace,
.infra-current-trace,
.infra-gap-marker,
.infra-envelope {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.infra-current-trace {
  stroke-width: 2.6;
  stroke-dasharray: none;
}
.infra-flow-dot {
  fill: var(--accent);
  stroke: var(--card);
  stroke-width: 2;
}
.infra-gap-marker {
  stroke-width: 3;
  stroke-dasharray: none;
}
.infra-envelope {
  stroke-width: 1.2;
}
.turnout-foundation {
  --anatomy-paper:var(--metal-dark);
  --anatomy-top:var(--metal-face);
  --anatomy-shade-0:var(--under-dark);
  --anatomy-shade-1:var(--under-face);
  --anatomy-shade-2:var(--metal-dark);
  --anatomy-shade-3:var(--metal-face);
}
.turnout-ballast {
  --anatomy-paper:var(--metal-face);
  --anatomy-top:var(--metal-top);
  --anatomy-shade-0:var(--metal-dark);
  --anatomy-shade-1:var(--metal-dark);
  --anatomy-shade-2:var(--metal-face);
  --anatomy-shade-3:var(--metal-face);
}
.turnout-pad,
.turnout-drain {
  --anatomy-paper:var(--under-dark);
  --anatomy-top:var(--under-face);
  --anatomy-shade-0:var(--under-dark);
  --anatomy-shade-1:var(--under-dark);
  --anatomy-shade-2:var(--under-face);
  --anatomy-shade-3:var(--under-top);
}
.turnout-walkway,
.turnout-lining {
  --anatomy-paper:var(--body-dark);
  --anatomy-top:var(--body-face);
  --anatomy-shade-0:var(--metal-dark);
  --anatomy-shade-1:var(--body-dark);
  --anatomy-shade-2:var(--body-dark);
  --anatomy-shade-3:var(--body-face);
}
.turnout-tactile,
.turnout-edge {
  --anatomy-paper:#ad9858;
  --anatomy-top:#e6d18b;
  --anatomy-shade-0:#8d7b45;
  --anatomy-shade-1:#ad9858;
  --anatomy-shade-2:#c9b26d;
  --anatomy-shade-3:#ddca87;
}
.turnout-equipment,
.turnout-motor {
  --anatomy-paper:var(--under-face);
  --anatomy-top:var(--under-top);
  --anatomy-shade-0:var(--under-dark);
  --anatomy-shade-1:var(--under-face);
  --anatomy-shade-2:var(--under-face);
  --anatomy-shade-3:var(--under-top);
}
.infrastructure-svg[data-lesson-focus=rail] .turnout-rail,
.infrastructure-svg[data-lesson-focus=fastening] .turnout-pad,
.infrastructure-svg[data-lesson-focus=equipment] .turnout-equipment,
.infrastructure-svg[data-lesson-focus=equipment] .turnout-motor,
.infrastructure-svg[data-lesson-focus=trackbed] .turnout-rail,
.infrastructure-svg[data-lesson-focus=services] .turnout-drain {
  --anatomy-top:var(--accent);
}
@media (max-width: 550px) {
  .infrastructure-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 14px 4px;
  }
  .infrastructure-topics button {
    font-size: 13px;
  }
  .infra-metrics {
    font-size: 12px;
    padding: 12px;
  }
}
.infrastructure-svg[data-lesson-focus=supports] .turnout-bearer,
.infrastructure-svg[data-lesson-focus=foundation] .turnout-foundation,
.infrastructure-svg[data-lesson-focus=fastening] .turnout-fixing,
.infrastructure-svg[data-lesson-focus=supply] .turnout-actuator,
.infrastructure-svg[data-lesson-focus=support] .turnout-foundation,
.infrastructure-svg[data-lesson-focus=services] .turnout-walkway {
  --anatomy-top:var(--accent);
}
@media (min-width: 1300px) {
  .infrastructure-topics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* src/ui/modes/station/styles.css */
.station-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}
.station-topics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 24px 8px;
}
.station-topics button {
  min-height: 48px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.station-topics button[aria-pressed=true] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 0 -2px var(--accent);
}
.station-workspace button:hover:not(:disabled) {
  border-color: var(--accent);
}
.station-workspace button:disabled {
  opacity: .45;
  cursor: default;
}
.station-scene-column {
  min-width: 0;
  padding: 20px 24px;
}
.station-figure {
  margin: 0;
}
.station-stage {
  margin: 0;
  background: var(--card);
}
.station-figure figcaption {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
}
.station-scene-column > .exhibit-controls {
  margin: 16px 0 0;
}
.station-inspector {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  min-width: 0;
}
.station-inspector h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.station-inspector h2 {
  font-size: 16px;
  margin: 24px 0 12px;
}
.station-inspector p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.station-comparison > p {
  font-size: 12px;
}
.station-control-label {
  display: block;
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 8px;
}
.station-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.station-route-description {
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
  margin: 0;
}
.station-progress {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--secondary);
}
.station-progress > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.station-progress input {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
}
.station-route-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--secondary);
}
.station-route-stages li {
  padding: 5px 0;
}
.station-route-stages li[aria-current=step] {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.station-status {
  margin: 0;
  min-height: 3.3em;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}
.station-lesson {
  margin-top: 18px;
  font-size: 14px;
}
.station-lesson summary {
  min-height: 44px;
  display: list-item;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
}
.station-lesson p {
  margin: 0;
}
#station-play {
  background: var(--accent);
  color: var(--page);
  border-color: var(--accent);
}
@media (max-width: 1100px) {
  .station-workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .station-scene-column,
  .station-inspector {
    padding: 20px 18px;
  }
  .station-topics {
    padding: 20px 18px 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .station-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .station-inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 550px) {
  .station-scene-column,
  .station-inspector {
    padding: 16px 14px;
  }
  .station-topics {
    padding: 16px 14px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station-access-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .station-inspector h1 {
    font-size: 24px;
  }
}
body[data-mode=station] .masthead {
  border-bottom: 0;
}
.station-primary-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.station-access-experiment {
  font-size: 13px;
  color: var(--secondary);
}
.station-access-experiment > summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--accent);
}
.station-access-experiment > p,
.station-access-experiment .station-comparison > p {
  font-size: 12px;
  line-height: 1.7;
}
.station-access-experiment .station-comparison h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 12px;
}
.station-structure-copy {
  padding: 14px;
  background: var(--accent-wash);
  border-radius: var(--radius-control);
}

/* src/ui/modes/operations/styles.css */
.operations-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}
.operations-topics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 24px 8px;
}
.operations-topics button {
  min-height: 48px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.operations-topics button[aria-pressed=true] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 0 -2px var(--accent);
}
.operations-workspace button:hover:not(:disabled) {
  border-color: var(--accent);
}
.operations-workspace button:disabled {
  opacity: .45;
  cursor: default;
}
.operations-scene-column {
  min-width: 0;
  padding: 20px 24px;
}
.operations-figure {
  margin: 0;
}
.operations-figure .turnout-stage {
  margin: 0;
  background: var(--card);
}
.operations-figure figcaption,
.operations-note,
#operations-incident-status {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.operations-track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  color: var(--ink);
}
.operations-figure figcaption p {
  margin: 6px 0 0;
}
.operations-scene-column > .exhibit-controls {
  margin: 16px 0 0;
}
.operations-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.operations-settings > label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary);
}
.operations-settings label > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.operations-settings output {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.operations-settings input {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
}
.operations-control-label {
  display: block;
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 8px;
}
.operations-inspector {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  min-width: 0;
}
.operations-inspector h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.operations-inspector h2,
.operations-live h2 {
  font-size: 14px;
  margin: 20px 0 12px;
}
.operations-inspector p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.operations-inspector .operations-note {
  font-size: 12px;
}
.operations-inspector .infra-metrics {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.operations-inspector dd {
  overflow-wrap: anywhere;
}
.operations-lesson {
  margin-top: 18px;
}
.operations-lesson summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.operations-lesson p {
  margin: 0;
}
.operations-live h2 {
  margin-top: 0;
}
.operations-live dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.operations-live dt {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.5;
}
.operations-live dd {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
#operations-play {
  background: var(--accent);
  color: var(--page);
  border-color: var(--accent);
}
#operations-status {
  margin: 0;
  min-height: 1.7em;
}
body[data-mode=operations] .masthead {
  border-bottom: 0;
}
@media (max-width: 1100px) {
  .operations-workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .operations-topics {
    padding: 20px 18px 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .operations-scene-column,
  .operations-inspector {
    padding: 20px 18px;
  }
}
@media (max-width: 900px) {
  .operations-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .operations-inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 550px) {
  .operations-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 14px 0;
  }
  .operations-scene-column,
  .operations-inspector {
    padding: 16px 14px;
  }
  .operations-settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .operations-inspector h1 {
    font-size: 24px;
  }
  .operations-live dd {
    font-size: 17px;
  }
}

/* src/ui/modes/city/styles.css */
.city-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}
.city-topics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 24px 8px;
}
.city-topics button {
  min-height: 48px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.city-topics button[aria-pressed=true] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 0 -2px var(--accent);
}
.city-workspace button:hover:not(:disabled) {
  border-color: var(--accent);
}
.city-workspace button:focus-visible,
.city-workspace a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.city-workspace button:disabled {
  opacity: .45;
  cursor: default;
}
.city-scene-column {
  min-width: 0;
  padding: 20px 24px;
}
.city-figure {
  margin: 0;
}
.city-figure .turnout-stage {
  margin: 0;
  background: var(--card);
  aspect-ratio: 1000/580;
}
.city-figure .turnout-svg {
  width: 100%;
  height: 100%;
}
.city-figure figcaption,
.city-note {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.city-scene-column > .exhibit-controls {
  margin: 16px 0 0;
}
.city-connections button {
  min-height: 44px;
}
.city-evidence-jump {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
}
.city-inspector {
  padding: 22px 24px;
  min-width: 0;
  border-left: 1px solid var(--border);
}
.city-inspector h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
  text-wrap: balance;
}
.city-inspector h2 {
  font-size: 14px;
  margin: 0 0 8px;
}
.city-inspector p,
.city-evidence p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.city-inspector .city-note,
.city-evidence .city-note {
  font-size: 12px;
}
.city-lesson {
  margin-top: 16px;
}
.city-lesson summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.city-lesson p {
  margin: 0;
}
.city-route {
  margin: 20px 0;
  padding: 16px;
  background: var(--accent-wash);
  border-radius: var(--radius-control);
}
.city-route p {
  margin: 0;
}
.city-route .city-note {
  margin-top: 10px;
}
.city-evidence {
  grid-column: 1/-1;
  padding: 28px 24px;
  min-width: 0;
  background: var(--card);
}
.city-evidence > h2 {
  font-size: 27px;
  line-height: 1.4;
  margin: 0 0 10px;
  text-wrap: balance;
}
.city-evidence > p {
  max-width: 85ch;
}
.city-cases {
  margin: 18px 0 24px;
}
.city-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.city-case-gallery {
  min-width: 0;
}
.city-case-gallery figure {
  margin: 0;
}
.city-case-gallery figure[hidden] {
  display: none;
}
.city-case-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  background: var(--control);
  aspect-ratio: 3/2;
  object-fit: contain;
}
.city-case-gallery figcaption p {
  margin: 10px 0 0;
  font-size: 13px;
}
.city-case-gallery .city-photo-credit {
  font-size: 12px;
  color: var(--secondary);
}
.city-photo-credit a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
}
.city-case-story {
  min-width: 0;
}
.city-evidence h3 {
  font-size: 25px;
  line-height: 1.4;
  margin: 5px 0;
}
.city-evidence h4 {
  font-size: 14px;
  margin: 20px 0 6px;
}
.city-case-story > p {
  margin: 8px 0;
}
.city-case-story .city-case-kind {
  margin-top: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
}
.city-case-lesson {
  margin-top: 20px;
  padding: 1px 16px 10px;
  background: var(--accent-wash);
  border-radius: var(--radius-control);
}
.city-case-lesson h4 {
  margin-top: 14px;
}
#city-case-sources {
  padding-left: 20px;
  margin: 0;
}
#city-case-sources li {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#city-case-sources a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
}
body[data-mode=city] .masthead {
  border-bottom: 0;
}
@media (max-width: 1100px) {
  .city-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .city-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px 18px 8px;
  }
  .city-scene-column,
  .city-inspector,
  .city-evidence {
    padding: 20px 18px;
  }
  .city-case-layout {
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .city-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .city-inspector {
    border-left: 0;
  }
}
@media (max-width: 650px) {
  .city-case-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 550px) {
  .city-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 14px 0;
  }
  .city-scene-column,
  .city-inspector,
  .city-evidence {
    padding: 16px 14px;
  }
  .city-inspector h1 {
    font-size: 24px;
  }
  .city-evidence > h2 {
    font-size: 23px;
  }
  .city-cases {
    gap: 8px;
  }
  .city-cases button {
    flex: 1 1 140px;
    text-align: left;
  }
}
.city-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.city-levels div {
  min-width: 0;
}
.city-levels dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.city-levels dd {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
}
@media (max-width: 550px) {
  .city-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.city-tod-primer {
  margin: 0 0 18px;
}
.city-tod-primer[hidden] {
  display: none;
}
.city-tod-primer summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.city-tod-primer > p {
  margin: 4px 0 12px;
}
.city-tod-principles {
  margin: 12px 0;
  padding-left: 18px;
}
.city-tod-principles li {
  margin: 10px 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.city-tod-principles strong {
  color: var(--ink);
  font-weight: 600;
}
.city-tod-primer .city-note a,
.city-tod-links a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
}
.city-tod-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: 13px;
  line-height: 1.7;
}
.city-studies {
  grid-column: 1/-1;
  min-width: 0;
  padding: 24px;
}
.city-studies > h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px;
  text-wrap: balance;
}
.city-studies > p,
.city-study-list > li > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--secondary);
}
.city-studies > p {
  max-width: 85ch;
}
.city-study-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.city-study-list li {
  min-width: 0;
}
.city-study-list h3 {
  font-size: 16px;
  line-height: 1.6;
  margin: 4px 0 8px;
  text-wrap: balance;
}
.city-study-list h3 a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
}
.city-study-list > li > .city-note {
  font-size: 12px;
  margin: 0;
}
.city-study-list > li > p {
  margin: 8px 0 0;
}
@media (max-width: 1100px) {
  .city-studies {
    padding: 20px 18px;
  }
}
@media (max-width: 750px) {
  .city-study-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 550px) {
  .city-studies {
    padding: 16px 14px;
  }
  .city-studies > h2 {
    font-size: 22px;
  }
}
.city-tod-resources {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
}
.city-resource-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--control);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  text-decoration: none;
}
.city-resource-button > span {
  min-width: 0;
}
.city-resource-button strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.city-resource-button small {
  display: block;
  margin-top: 3px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
}
.city-resource-button svg {
  flex: none;
  color: var(--accent);
}
.city-resource-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
  text-decoration: none;
}
.city-case-gallery [data-city-photo=shinjuku] img {
  aspect-ratio: auto;
}
.city-methods {
  grid-column: 1/-1;
  min-width: 0;
  padding: 0 24px 24px;
}
.city-methods .turnout-sources {
  margin: 0;
}
.city-methods summary {
  min-height: 44px;
  padding: 12px 0;
}
.city-methods p {
  max-width: 85ch;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
@media (max-width: 1100px) {
  .city-methods {
    padding: 0 18px 20px;
  }
}
@media (max-width: 550px) {
  .city-methods {
    padding: 0 14px 16px;
  }
}

/* src/ui/modes/region/styles.css */
.region-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}
.region-topics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 24px 8px;
}
.region-topics button {
  min-height: 48px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.region-topics button[aria-pressed=true] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 0 -2px var(--accent);
}
.region-workspace button:hover:not(:disabled) {
  border-color: var(--accent);
}
.region-workspace button:focus-visible,
.region-workspace a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.region-workspace button:disabled {
  opacity: .45;
  cursor: default;
}
.region-scene-column {
  min-width: 0;
  padding: 20px 24px;
}
.region-figure {
  margin: 0;
}
.region-figure .turnout-stage {
  position: relative;
  margin: 0;
  background: var(--card);
  aspect-ratio: 1000/580;
}
.region-figure .turnout-svg {
  width: 100%;
  height: 100%;
}
.region-labels {
  z-index: 1;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.region-labels span {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 125px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.region-figure figcaption,
.region-note {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.region-scene-column > .exhibit-controls {
  margin: 16px 0 0;
}
.region-evidence-jump {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
}
.region-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
}
.region-legend li:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--line-color);
}
.region-line-A {
  --line-color:#368bc9;
}
.region-line-B {
  --line-color:#d08841;
}
.region-line-C {
  --line-color:#9c78bb;
}
.region-line-route {
  --line-color:#c99529;
}
.region-inspector {
  padding: 22px 24px;
  min-width: 0;
  border-left: 1px solid var(--border);
}
.region-inspector h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
  text-wrap: balance;
}
.region-inspector h2 {
  font-size: 14px;
  margin: 0 0 8px;
}
.region-inspector p,
.region-evidence p,
.region-methods p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.region-inspector .region-note,
.region-evidence .region-note {
  font-size: 12px;
}
.region-lesson {
  margin-top: 16px;
}
.region-lesson summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.region-lesson p {
  margin: 0;
}
.region-route {
  margin: 20px 0;
  padding: 16px;
  background: var(--accent-wash);
  border-radius: var(--radius-control);
}
.region-route p {
  margin: 0;
}
.region-route .region-note {
  margin-top: 10px;
}
.region-route-stops {
  margin: 0;
  padding-left: 22px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.8;
}
.region-evidence {
  grid-column: 1/-1;
  padding: 28px 24px;
  min-width: 0;
}
.region-evidence > h2 {
  font-size: 27px;
  line-height: 1.4;
  margin: 0 0 10px;
  text-wrap: balance;
}
.region-evidence > p {
  max-width: 85ch;
}
.region-cases {
  margin: 18px 0 24px;
}
.region-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.region-case-gallery {
  min-width: 0;
}
.region-case-gallery figure {
  margin: 0;
}
.region-case-gallery figure[hidden] {
  display: none;
}
.region-case-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  background: var(--control);
}
.region-case-gallery figcaption p {
  margin: 10px 0 0;
  font-size: 13px;
}
.region-case-gallery .region-photo-credit {
  font-size: 12px;
}
.region-photo-credit a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
}
.region-case-story {
  min-width: 0;
}
.region-evidence h3 {
  font-size: 25px;
  line-height: 1.4;
  margin: 5px 0;
}
.region-evidence h4 {
  font-size: 14px;
  margin: 20px 0 6px;
}
.region-case-story > p {
  margin: 8px 0;
}
.region-case-story .region-case-kind {
  margin-top: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
}
.region-case-lesson {
  margin-top: 20px;
  padding: 1px 16px 10px;
  background: var(--accent-wash);
  border-radius: var(--radius-control);
}
.region-case-lesson h4 {
  margin-top: 14px;
}
.region-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.region-metrics div {
  min-width: 0;
}
.region-metrics dt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--secondary);
}
.region-metrics dd {
  margin: 6px 0 0;
  font-size: 27px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.region-metrics small {
  display: block;
  margin-top: 6px;
  color: var(--secondary);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
}
.region-sources {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.region-sources a {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.region-sources a:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.region-sources small {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
  font-size: 12px;
}
.region-methods {
  grid-column: 1/-1;
  min-width: 0;
  padding: 0 24px 24px;
}
.region-methods .turnout-sources {
  margin: 0;
}
.region-methods summary {
  min-height: 44px;
  padding: 12px 0;
}
.region-methods p {
  max-width: 85ch;
}
body[data-mode=region] .masthead {
  border-bottom: 0;
}
@media (max-width: 1100px) {
  .region-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .region-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px 18px 8px;
  }
  .region-scene-column,
  .region-inspector,
  .region-evidence {
    padding: 20px 18px;
  }
  .region-case-layout {
    gap: 24px;
  }
  .region-methods {
    padding: 0 18px 20px;
  }
}
@media (max-width: 900px) {
  .region-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .region-inspector {
    border-left: 0;
  }
}
@media (max-width: 650px) {
  .region-case-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 550px) {
  .region-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 14px 0;
  }
  .region-scene-column,
  .region-inspector,
  .region-evidence {
    padding: 16px 14px;
  }
  .region-inspector h1 {
    font-size: 24px;
  }
  .region-evidence > h2 {
    font-size: 23px;
  }
  .region-methods {
    padding: 0 14px 16px;
  }
  .region-labels span {
    font-size: 8px;
    max-width: 86px;
  }
  .region-cases {
    gap: 8px;
  }
  .region-cases button {
    flex: 1 1 140px;
    text-align: left;
  }
}
@media (max-width: 550px) {
  .region-labels [data-region-label=centre],
  .region-labels [data-region-label=civic] {
    display: none;
  }
}

/* src/ui/components/exhibit-controls.css */
.exhibit-controls {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 16px 24px 24px;
}
.infrastructure-scene > .exhibit-controls {
  margin: 16px 0 0;
}
.exhibit-controls .camera-bar {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.exhibit-controls .camera-controls {
  margin: 0;
  gap: 8px;
}
.exhibit-controls .camera-controls button:hover:not(:disabled) {
  background: var(--accent-wash);
  color: var(--accent);
  border-color: var(--accent);
}
.exhibit-controls .camera-controls svg {
  stroke-width: 1.5;
}
.exhibit-controls .camera-help,
.exhibit-controls .infrastructure-camera-hint {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.exhibit-controls .infrastructure-camera button:not(.recenter-btn) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--secondary);
}
.exhibit-controls .infrastructure-camera .recenter-btn {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
  background: var(--accent-wash);
  color: var(--accent);
}
.exhibit-demo-controls {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.exhibit-demo-controls .infra-options:empty {
  display: none;
}
.exhibit-controls .operation {
  padding: 0;
  border: 0;
}
.exhibit-demo-controls .op-heading,
.exhibit-demo-controls .op-status,
.exhibit-demo-controls .infra-sliders,
.exhibit-demo-controls .turnout-legend,
.exhibit-demo-controls .infra-legend,
.exhibit-demo-controls .turnout-status {
  margin: 0;
}
.exhibit-demo-controls .op-controls {
  flex-wrap: wrap;
}
.exhibit-demo-controls .view-toggle {
  justify-self: start;
  margin: 0;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.exhibit-demo-controls .view-toggle button {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  color: var(--ink);
  font-size: 13px;
}
.exhibit-demo-controls .view-toggle button[aria-pressed=true] {
  background: var(--accent-wash);
  color: var(--accent);
  border-color: var(--accent);
}
.infrastructure-scene > .turnout-stage {
  margin-top: 0;
}
#train-workspace .stage-bottom {
  padding-bottom: 0;
}
@media (max-width: 1100px) {
  .exhibit-controls {
    margin-left: 18px;
    margin-right: 18px;
  }
}
@media (max-width: 550px) {
  .exhibit-controls {
    margin: 16px 14px;
  }
  .exhibit-controls .camera-bar {
    gap: 12px;
  }
}

/* src/ui/components/topic-references.css */
.topic-references {
  grid-column: 1/-1;
  min-width: 0;
  padding: 28px 24px;
  background: var(--card);
}
.topic-references > h2 {
  font-size: 27px;
  line-height: 1.4;
  margin: 0 0 10px;
  text-wrap: balance;
}
.reading-intro,
.reading-note,
.reading-story p,
.reading-gallery figcaption {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.75;
}
.reading-intro {
  max-width: 85ch;
  margin: 0 0 24px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.reading-gallery,
.reading-story {
  min-width: 0;
}
.reading-gallery figure {
  margin: 0;
}
.reading-gallery figure[hidden] {
  display: none;
}
.reading-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  background: var(--control);
}
.reading-gallery figcaption p {
  margin: 10px 0 0;
  font-size: 13px;
}
.reading-gallery .reading-credit,
.reading-note {
  font-size: 12px;
}
.reading-credit a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
}
.reading-story .reading-kind {
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 6px;
}
.reading-story h3 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 14px;
  text-wrap: balance;
}
.reading-story h4 {
  font-size: 14px;
  margin: 20px 0 6px;
}
.reading-story p {
  margin: 8px 0;
}
.reading-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.reading-links a {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.reading-links a:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.reading-links small {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
  font-size: 12px;
}
.reading-note {
  margin: 24px 0 0;
  max-width: 90ch;
}
.reading-diagram-art {
  background: var(--control);
  border-radius: var(--radius-control);
  padding: 14px 0;
  aspect-ratio: 720/438;
  display: flex;
  align-items: center;
}
.reading-diagram-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--ink);
}
.reading-diagram-art text {
  font-family: var(--font-ui);
  font-size: 26px;
  fill: var(--ink);
}
.reading-diagram-art rect {
  fill: var(--card);
  stroke: var(--secondary);
  stroke-width: 2;
}
.reading-diagram-art circle {
  fill: var(--ink);
}
.reading-diagram-art .ref-soft {
  fill: var(--card);
}
.reading-diagram-art .ref-fill {
  fill: var(--accent-wash);
  stroke: var(--accent);
}
.reading-diagram-art .ref-car {
  fill: var(--card);
  stroke: var(--accent);
  stroke-width: 3;
}
.reading-diagram-art .ref-window,
.reading-diagram-art .ref-rail {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 5;
  stroke-linecap: round;
}
.reading-diagram-art .ref-shell {
  fill: var(--card);
  stroke: var(--secondary);
  stroke-width: 8;
}
.reading-diagram-art .ref-guide {
  fill: none;
  stroke: var(--secondary);
  stroke-dasharray: 7 7;
  stroke-width: 2;
}
.reading-diagram-art .ref-envelope {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-dasharray: 8 6;
}
.reading-diagram-art .ref-warn {
  fill: var(--accent-wash);
  stroke: var(--accent);
  stroke-width: 4;
}
.reading-diagram-art .ref-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
}
.reading-diagram-art .ref-arrowhead {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
@media (max-width: 1100px) {
  .topic-references {
    padding: 24px 18px;
  }
  .reading-layout {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 550px) {
  .topic-references {
    padding: 20px 14px;
  }
  .topic-references > h2 {
    font-size: 23px;
  }
  .reading-story h3 {
    font-size: 22px;
  }
}
.reading-jump {
  display: inline-block;
  min-height: 44px;
  padding: 12px 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
}

/* src/ui/sections/discovery.css */
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--secondary);
  font-size: 12px;
}
.page-static-note {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.8;
}
.page-breadcrumb:not(:empty) {
  padding: 16px 0 8px;
}
.page-breadcrumb a,
.discovery-source {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(32px, 5vw, 80px);
  margin: 48px 0;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
}
.page-discovery h2 {
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.35;
  margin: 0 0 20px;
  letter-spacing: -.025em;
}
.page-discovery h3 {
  font-size: 16px;
  margin: 24px 0 12px;
}
.page-discovery h4 {
  font-size: 15px;
  margin: 0 0 8px;
}
.discovery-guide p,
.discovery-topics dd {
  max-width: 78ch;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.8;
}
.discovery-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
}
.discovery-lines ol {
  padding-left: 24px;
  line-height: 1.9;
  font-size: 14px;
}
.discovery-lines p {
  margin: 0;
}
.discovery-topics {
  margin: 0;
}
.discovery-topics div {
  margin: 20px 0;
}
.discovery-topics dt {
  font-size: 14px;
  font-weight: 600;
}
.discovery-topics dd {
  margin: 8px 0 0;
}
.discovery-navigation {
  min-width: 0;
}
.discovery-navigation h3 {
  margin-top: 0;
}
.discovery-navigation > div + div {
  margin-top: 32px;
}
.discovery-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
}
.discovery-navigation a:hover,
.page-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.discovery-navigation a[aria-current=page] {
  font-weight: 700;
}
.discovery-navigation .discovery-language {
  margin-top: 24px;
}
@media (max-width: 800px) {
  .page-discovery {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
    margin: 32px 0;
  }
}

/* src/ui/styles.css */
