.spinner { width: 40px; height: 40px; border-radius: 50%; border: 5px solid #D8D4CA; border-top-color: var(--primary); animation: les-spin 0.9s linear infinite; flex: none; }
.spinner-sm { width: 26px; height: 26px; border-width: 4px; }
.spinner-on-dark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes les-spin { to { transform: rotate(360deg); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 26px; border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-size: 19px; font-weight: 700; color: var(--text); background: var(--surface); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.btn-ghost { background: transparent; color: var(--primary); }
/* «Удалить» — красная корзина (DeleteButton) */
.btn-trash { color: var(--danger); }
.btn-trash:not([disabled]):hover { background: var(--danger-soft); }
.btn[disabled] { opacity: 0.45; }
.btn:not([disabled]):active { transform: translateY(1px); }
.btn-primary:not([disabled]):hover { background: var(--primary-press); }
.btn-secondary:not([disabled]):hover { background: var(--hover); }

/* размеры и форма */
.btn-xl { min-height: 76px; font-size: 21px; padding: 0 28px; border-radius: 18px; }
.btn-small { min-height: 44px; font-size: 16px; padding: 0 10px; }
.btn-square { width: 62px; padding: 0; flex: none; }
.btn-block { width: 100%; }
.btn-left { justify-content: flex-start; white-space: normal; text-align: left; line-height: 1.2; }
.btn-tall { min-height: 120px; flex-direction: column; gap: 6px; white-space: normal; text-align: center; }
/* главное действие экрана — справа в нижней панели */
.btn-main { min-width: 260px; }

@media (max-width: 900px) {
  .btn-main { min-width: 240px; }
}
@media (max-width: 600px) {
  .btn-main { min-width: 0; flex-grow: 1; }
  /* распорка перед главной кнопкой (на планшете прижимает её вправо) делила с ней место — кнопка была не во всю ширину */
  .actionbar .spacer:has(~ .btn-main) { display: none; }
}
.toasts { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px + var(--sab)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast { background: #14161A; color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); max-width: min(560px, 90vw); }
.toast-error { background: var(--danger); }
/* 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;
		}
	}
/* Карта (Leaflet): крупные кнопки масштаба, булавка документа, «где я» */
.lmap { position: relative; isolation: isolate; height: 100%; min-height: 200px; background: #E9E6DC; }
/* своя группа наложения: кнопки Leaflet (масштаб) — внутри неё, всё поверх карты (карточка, «Подробнее», поиск) — выше */
.lmap-canvas { position: absolute; inset: 0; z-index: 0; background: #E9E6DC; font-family: var(--font); }
.lmap .leaflet-bar { border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); border-radius: 12px; overflow: hidden; }
/* кнопки масштаба — как поиск, фильтр, линейка и «где я» под ними и как подложка слева: 40 × 40 */
.lmap .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 22px; color: var(--text); }
/* «+» и «−» — значками ровно посередине (шрифтом на планшетах стояли выше и мелко; 23.11.2026) */
.lmap .leaflet-bar a:has(> .ic) { display: flex; align-items: center; justify-content: center; }
.lmap .leaflet-bar a > .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.lmap .leaflet-control-scale { margin: 0 0 10px 10px; }
.lmap .leaflet-control-scale-line { border-color: #3F454D; background: rgba(255, 255, 255, 0.8); font: 600 11px var(--font); color: #222; }
/* В одной строке справа: линейка, уровень масштаба, сведения о подложке. Карточки места остаются слева. */
.lmap .leaflet-bottom.leaflet-right:has(.leaflet-control-scale) { display: flex; align-items: flex-end; gap: 2px; padding: 0 4px 2px; }
.lmap .leaflet-right .leaflet-control-scale { order: 1; clear: none; float: none; margin: 0 2px 0 0; }
.lmap .leaflet-right:has(.leaflet-control-scale) .lmap-zoom-lvl { order: 2; margin: 0; }
.lmap .leaflet-right:has(.leaflet-control-scale) .lmap-credit { order: 3; margin: 0; }
/* строка «где я» внизу: масштаб, подпись подложки и уровень — над ней (её высота — --lmap-bottom-h, MapBottom); справа
   помещаются рядом со строкой (data-bottom-side) — в той же строке */
.lmap:has(.lmap-bottom) .leaflet-bottom { bottom: var(--lmap-bottom-h, 44px); }
.lmap[data-bottom-side] .leaflet-bottom.leaflet-right { bottom: 0; }
/* уровень масштаба — только под «i» (23.11.2026) */
.lmap:not(.lmap-info-open) .lmap-zoom-lvl { display: none; }
.lmap-measuring { cursor: crosshair !important; }
/* точка линейки: жёлтый кружок (перетаскивается), справа — расстояние от начала и крестик «убрать точку» */
.lmap-ruler-pt { background: none; border: 0; }
.lmap-ruler-pt > i { position: absolute; inset: 0; box-sizing: border-box; border-radius: 50%; background: #FDE047; border: 2px solid #111827; cursor: grab; }
.lmap-ruler-pt .lmap-ruler-tip { position: absolute; left: 15px; top: -5px; display: inline-flex; align-items: center; gap: 2px; padding: 0 1px 0 6px; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); font: 700 12px/20px system-ui, sans-serif; color: #111827; white-space: nowrap; }
.lmap-ruler-pt b[data-del] { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: #6B7280; font-size: 15px; cursor: pointer; }
.lmap-ruler-pt b[data-del]:hover { background: #F3F4F6; color: #B42318; }
@media (pointer: coarse) {
  .lmap-ruler-pt > i { inset: -5px; }
  .lmap-ruler-pt .lmap-ruler-tip { left: 18px; top: -9px; font-size: 14px; line-height: 30px; }
  .lmap-ruler-pt b[data-del] { width: 30px; height: 30px; font-size: 20px; }
}
/* есть палец (и сенсорный экран с мышью — ПК машины): точку линейки берут и не попав в кружок — невидимый круг 44 px;
   кнопки линейки и поставленной точки — 44 px */
@media (any-pointer: coarse) {
  .lmap-ruler-pt::before { content: ''; position: absolute; inset: -15px; border-radius: 50%; }
  .lmap-ruler { min-height: 50px; }
  .lmap-ruler button { min-height: 44px; min-width: 44px; justify-content: center; }
  .lmap-coord-pin button { min-height: 44px; }
  .lmap-coord-pin .lmap-coord-x { min-width: 44px; justify-content: center; }
}
/* уровень масштаба — в строку с подписью подложки */
.lmap .leaflet-right .lmap-zoom-lvl { clear: none; margin: 0 0 0 2px; padding: 0 5px; background: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 700; line-height: 1.4; color: #333; }
.lmap-ruler { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 4px 0 10px; border-radius: 10px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); font-size: 14px; }
.lmap-ruler button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.lmap-ruler button:hover { background: var(--hover); }
.lmap-ruler-area { color: var(--text-2); }
.lmap .leaflet-control-attribution { font-size: 11px; }
/* откуда подложка — маленьким «i», нажатие — текст (MapCredit) */
.lmap .leaflet-right .lmap-credit { clear: none; float: right; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin: 0 0 0 2px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.8); font: italic 700 12px/1 Georgia, serif; color: #333; cursor: pointer; pointer-events: auto; }
.lmap .leaflet-right .lmap-credit.open { padding: 0 6px; font: 600 11px/1.4 var(--font); }
@media (any-pointer: coarse) {
  .lmap .leaflet-right .lmap-credit { min-width: 24px; height: 24px; border-radius: 12px; }
}
.lmap-pin svg { width: 44px; height: 44px; fill: #fff; stroke: var(--danger); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.lmap-ctl .lmap-me { color: var(--info); }
/* «где я» и компас — последними в столбце: компас (карта повёрнута, «по ходу») — под «где я», а не между фильтром и линейкой */
.lmap-ctl .lmap-me { order: 80; }
.lmap-ctl .lmap-compass { order: 90; }
.leaflet-tooltip { font-family: var(--font); font-size: 15px; font-weight: 700; }

/* картинка без жестов: страница под ней листается, нажатие открывает карту */
.lmap-cover { position: absolute; inset: 0; z-index: 600; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lmap-static .leaflet-control-attribution { pointer-events: none; }

/* слои: подложка (схема / спутник / нет) и своя карта — значками */
.lmap-layers { position: absolute; z-index: 500; left: 10px; top: 10px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.lmap-base { display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); background: var(--surface); }
/* подсказка у точки документа: крупно; пальцем — нажатие на неё открывает документ */
.lmap .lmap-tip { font: inherit; font-size: 15px; font-weight: 700; padding: 6px 10px; border-radius: 10px; }
.lmap .leaflet-tooltip-interactive { cursor: pointer; }
/* подложка — три значка, мелко: не заслонять карту */
.lmap-base button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.lmap-base button + button { border-left: 1px solid var(--line); }
/* свои кнопки справа (поиск, фильтр, линейка, где я) — под кнопками масштаба (10 + 2 × 40 + 8), того же размера */
.lmap-ctl { position: absolute; z-index: 500; right: 10px; top: 98px; display: flex; flex-direction: column; gap: 8px; }
.lmap-static .lmap-ctl { top: 10px; }
.lmap-ctl .btn { min-height: 40px; width: 40px; border-radius: 12px; border-width: 1.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
/* внизу поверх карты — строка «где я»; кнопка «где я» — над ней */
.lmap-bottom { position: absolute; z-index: 550; left: 0; bottom: 0; max-width: 100%; pointer-events: none; }
.lmap-bottom > * { pointer-events: auto; }
.lmap-base button.on { background: var(--primary); color: #fff; }
.lmap .lmap-tip-tap { padding: 10px 14px; font-size: 16px; }

/* отладка своей карты: рамки тайлов и номера */
.lmap .lmap-dbg { box-sizing: border-box; border: 1px solid rgba(220, 0, 60, 0.75); color: #C00030; font: 600 12px/1.3 ui-monospace, Consolas, monospace; padding: 3px 5px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.lmap-dbg-info { padding: 8px 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); font: 600 14px ui-monospace, Consolas, monospace; user-select: all; }

/* внизу слева: отладка, поставленная точка, координаты под курсором */
.lmap-info { position: absolute; z-index: 600; left: 10px; bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.lmap-info > * { pointer-events: auto; }
.lmap-coord { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 10px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); font: 600 14px ui-monospace, Consolas, monospace; white-space: pre; }
.lmap-coord[hidden] { display: none; }
/* поставленная точка: координаты (нажатие — копировать), убрать, под ними — что здесь */
.lmap-pin-card { position: absolute; z-index: 600; right: 10px; bottom: 24px; width: max-content; max-width: min(460px, calc(100% - 20px)); max-height: calc(100% - 150px); overflow: auto; border-radius: 12px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.lmap-coord-pin { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--surface); }
.lmap-coord-pin button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: 600 14px ui-monospace, Consolas, monospace; cursor: pointer; }
.lmap-coord-pin button:hover { background: var(--hover); }
.lmap-coord-copy { flex: 1; }
.lmap-coord-copy > .ic:first-child { color: var(--danger); }
.lmap-coord-copy > .ic:last-child { color: var(--text-2); margin-left: auto; }
.lmap-coord-pin .lmap-coord-x { color: var(--text-2); }

/* фигуры: точка с буквой (делянка — зелёная, склад — тёмная), подписи выделов и участка */
.lmap-spot { display: grid; place-items: center; }
.lmap-spot span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); font-weight: 900; font-size: 17px; color: #fff; }
.lmap-spot-plot span { background: var(--primary); }
.lmap-spot-yard span { background: #3F454D; border-radius: 8px; }
.lmap-spot-end span { background: var(--danger); }
.lmap-spot-sm span { width: 22px; height: 22px; border-width: 2px; font-size: 11.5px; }
.lmap-spot-drag { cursor: grab; }
.lmap-spot-drag:active { cursor: grabbing; }
.lmap-line-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; background: #fff; border: 2px solid; border-radius: 999px; padding: 1px 8px; font-weight: 900; font-size: 13px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); cursor: pointer; }
.lmap-arrow svg { display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55)); }
.lmap .lmap-piece-label, .lmap .lmap-area-label { background: transparent; border: 0; box-shadow: none; padding: 0; font: inherit; font-weight: 800; color: #3E5238; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.lmap .lmap-piece-label::before, .lmap .lmap-area-label::before { display: none; }
.lmap .lmap-piece-label { font-size: calc(15px * var(--lmap-lz, 1)); color: #111111; }
.lmap .lmap-area-label { font-size: calc(17px * var(--lmap-lz, 1)); color: #111111; }
.lmap .lmap-area-label.lmap-label-sm { font-size: calc(12px * var(--lmap-lz, 1)); font-weight: 700; }
.lmap-static .lmap-info { bottom: 10px; }
.lmap:has(.lmap-bottom) .lmap-info { bottom: calc(var(--lmap-bottom-h, 44px) + 30px); }
/* нажатая фигура карты (полоса, волок, линия): без рамки фокуса браузера — квадрата вокруг фигуры */
.leaflet-container .leaflet-interactive:focus { outline: none; }
/* «где я» с курсом (GNSS программы на ПК): стрелка в синем круге */
.lmap-me-dir { display: grid; place-items: center; }
.lmap-me-dir span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1A56A0; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45); }
.lmap-me-dir svg { width: 16px; height: 16px; fill: #fff; }
/* машина по маяку (ПК машины): значок в тёмном круге, подпись справа */
.lmap-mach { overflow: visible; }
.lmap-mach-d { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #1F2328; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); box-sizing: border-box; }
.lmap-mach-d svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.lmap-mach-l { position: absolute; left: 48px; top: 5px; padding: 3px 10px; border-radius: 999px; background: #1F2328; color: #fff; font: 700 14.5px var(--font); white-space: nowrap; }
.lmap-mach-l small { color: #C9C6BD; font-size: 13.5px; font-weight: 600; }
.lmap-mach-faded { opacity: 0.6; }
/* подпись нажатой точки (пень; макет AdminFellTimeline.html, вариант C): точка — в оранжевом кольце, справа — тёмная плашка;
   нажатия — сквозь неё к карте */
.lmap-tag { width: 0; height: 0; overflow: visible; pointer-events: none; }
.lmap-tag::before { content: ""; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; box-sizing: border-box; border: 3px solid #C2410C; border-radius: 50%; }
.lmap-tag span { position: absolute; left: 20px; top: 0; transform: translateY(-50%); box-sizing: border-box; padding: 6px 10px; border-radius: 10px; background: #1F2328; color: #fff; font: 800 16px var(--font); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.lmap-tag span::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: #1F2328; border-left: 0; }
/* справа не влезает (узкий экран, точка у правого края) — слева от точки (tagSide) */
.lmap-tag-l span { left: auto; right: 20px; }
.lmap-tag-l span::before { left: auto; right: -7px; border-right: 0; border-left: 7px solid #1F2328; }
/* Склады на карте (ui/src/stock): метки слоя на обеих картах, окно создания, карточка, окна правки, цифровая клавиатура.
   Широкий экран — карточка справа, окно создания слева сверху; вертикальный или узкий — карточка снизу (60 % высоты),
   окно создания — сверху во всю ширину. Цвета склада — коричневые, как знак «С» склада на карте. */

/* ---------------------------------------------------------------- метки на карте */
.stk-icon { background: none; border: 0; }
.stk-lbl-at, .stk-area-at { position: relative; width: 0; height: 0; }
.stk-lbl { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: #8F6A3A; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28); color: #fff; font: 800 14px/1 var(--font, system-ui, sans-serif); white-space: nowrap; cursor: pointer; box-sizing: border-box; }
/* у области — посередине, у точки — под значком «С» */
.stk-lbl-center .stk-lbl { transform: translate(-50%, calc(-50% + var(--stk-dy, 0px))); }
.stk-lbl-below .stk-lbl { transform: translate(-50%, calc(25px + var(--stk-dy, 0px))); }
/* подпись сдвинута с подписи машины (marks.ts, declutterStockLabels) — плавно */
.stk-lbl[data-dy] { transition: transform 0.12s; }
/* ещё не отправлено на сервер (планшет) — голубым, как документы */
.stk-lbl.stk-unsent { background: var(--unsynced, #E8F1FB); color: #1A3E6E; border-color: #1A56A0; border-style: dashed; }
.stk-lbl.stk-sel { background: #5C4422; }
.stk-dim { opacity: 0.45; }
.stk-pt { display: grid; place-items: center; width: 42px; height: 42px; cursor: pointer; }
.stk-pt span { display: grid; place-items: center; width: 42px; height: 42px; box-sizing: border-box; border-radius: 10px; background: #8F6A3A; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); color: #fff; font: 900 20px/1 var(--font, system-ui, sans-serif); }
.stk-pt.stk-sel span { background: #5C4422; }
.stk-pt-big, .stk-pt-big span { width: 48px; height: 48px; }
/* мелкий склад (остальные на карте места): значок и подпись меньше */
.stk-pt-small { transform: scale(0.6); }
.stk-small .stk-lbl { height: 20px; padding: 0 7px; border-width: 1.5px; font-size: 11px; }
.stk-small.stk-lbl-below .stk-lbl { transform: translate(-50%, calc(15px + var(--stk-dy, 0px))); }
.stk-pt-big span { border-width: 5px; border-radius: 12px; font-size: 22px; cursor: grab; }
.stk-v { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: grab; }
.stk-v span { display: grid; place-items: center; width: 38px; height: 38px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 4px solid #6B4E26; color: #6B4E26; font: 900 19px/1 var(--font, system-ui, sans-serif); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.stk-v-last span { background: #6B4E26; color: #fff; }
.stk-v-sel span { width: 44px; height: 44px; border: 6px solid #1A56A0; }
.stk-v-first::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px dashed #6B4E26; pointer-events: none; }
.stk-delp { position: relative; width: 0; height: 0; }
.stk-delp .btn { position: absolute; left: 30px; top: -24px; white-space: nowrap; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
.stk-area { position: absolute; transform: translate(-50%, -50%); font: 900 22px/1 var(--font, system-ui, sans-serif); color: #4A3215; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 9px #fff; pointer-events: none; }

/* ---------------------------------------------------------------- общее */
.stk-sq { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #8F6A3A; color: #fff; }
.stk-sq .ic { width: 22px; height: 22px; }
.stk-sq.lg { width: 44px; height: 44px; border-radius: 12px; }
.stk-sq.k-fwd { background: #1B6644; }
.stk-sq.k-hand { background: #D9A233; }
.stk-sq.k-tablet { background: #1A56A0; }
.stk-sq.k-server { background: #62686F; }
.stk-sq.k-revert, .stk-sq.k-stock { background: #8F6A3A; }
.stk-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.stk-tag b { color: var(--text); }
.stk-tag.warn { background: var(--warn-bg); color: var(--warn-text); }
.stk-tag.bad { background: var(--danger-soft); color: var(--danger-text); }
.stk-bad { color: var(--danger); font-weight: 700; }
.stk-panel .grow, .stk-create .grow, .stk-dlg .grow { flex: 1; }

/* ---------------------------------------------------------------- меню «⋯» и окошко долгого нажатия */
.stk-menu-scrim { position: fixed; inset: 0; z-index: 1090; }
.stk-menu { position: absolute; z-index: 1100; right: 64px; top: 62px; min-width: 300px; display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.stk-menu button { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 19px; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.stk-menu button:hover { background: var(--hover); }
.stk-menu button .ic { width: 24px; height: 24px; color: var(--text-2); }
.stk-menu button.bad, .stk-menu button.bad .ic { color: var(--danger); }
.stk-menu button.hl { background: #F4ECE0; color: #4A3215; margin-bottom: 4px; }
.stk-menu button.coords { min-height: 40px; font-size: 15px; font-weight: 600; color: var(--muted); }
.stk-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 2px solid var(--surface-2); }
.stk-lp { right: auto; transform: translate(-50%, calc(-100% - 46px)); }
.stk-lp.below { transform: translate(-50%, 46px); }
.stk-lp-ring { position: absolute; z-index: 1095; width: 76px; height: 76px; margin: -38px 0 0 -38px; box-sizing: border-box; border-radius: 50%; border: 5px solid #1A56A0; background: rgba(26, 86, 160, 0.15); pointer-events: none; }

/* ---------------------------------------------------------------- окно создания */
.stk-create { position: absolute; z-index: 1000; left: 14px; top: 14px; width: 440px; max-width: calc(100% - 28px); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }
.stk-cp-top { display: flex; align-items: center; gap: 8px; }
.stk-namef { min-height: 60px; font-size: 22px; font-weight: 800; }
.stk-seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.stk-seg button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; background: var(--surface); font: inherit; font-size: 18px; font-weight: 800; color: var(--text); cursor: pointer; }
.stk-seg button + button { border-left: 2px solid var(--line-strong); }
.stk-seg button.on { background: var(--primary); color: #fff; }
.stk-hint { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 18px; font-weight: 700; color: var(--text-2); }
.stk-hint .ic { width: 26px; height: 26px; color: #8F6A3A; flex: none; }
.stk-hint b { color: var(--text); font-weight: 900; }

/* ---------------------------------------------------------------- карточка */
.stk-panel { position: absolute; z-index: 1000; right: 0; top: 0; bottom: 0; width: min(600px, 52%); display: flex; flex-direction: column; background: var(--surface); border-left: 2px solid var(--surface-2); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.16); }
.stk-hd { position: relative; display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 6px 10px 6px 14px; border-bottom: 2px solid var(--surface-2); }
.stk-hd h2 { flex: 1; min-width: 0; margin: 0; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-tot { font-size: 22px; font-weight: 800; white-space: nowrap; }
.stk-tot small { font-size: 16px; color: var(--text-2); font-weight: 700; }
.stk-hd .btn.on { background: var(--surface-2); }
.stk-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 0; }
.stk-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.stk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stk-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font: inherit; font-size: 18px; font-weight: 800; color: var(--text-2); cursor: pointer; }
.stk-tabs button.on { background: #1F2328; border-color: #1F2328; color: #fff; }
.stk-tabs .ic { width: 22px; height: 22px; }
.stk-scroll { flex: 1 1 0; min-height: 0; overflow: auto; border: 2px solid var(--surface-2); border-radius: 14px; }
.stk-empty { padding: 18px 14px; }
.stk-foot { padding: 10px 14px 12px; }
.stk-foot .btn { min-height: 62px; }

.stk-comp .gh { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; background: var(--bg); font-size: 17px; font-weight: 800; }
.stk-comp .ssw { width: 28px; height: 8px; border-radius: 4px; flex: none; }
.stk-comp .v { margin-left: auto; display: flex; align-items: baseline; gap: 10px; font-weight: 800; white-space: nowrap; }
.stk-comp .v small { font-size: 14.5px; color: var(--text-2); font-weight: 700; }
.stk-comp .r { display: grid; grid-template-columns: 22px minmax(0, 1fr) 78px 92px 40px 22px; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 10px 0 14px; border: 0; border-top: 1px solid var(--surface-2); background: var(--surface); font: inherit; font-size: 18px; color: var(--text); text-align: left; cursor: pointer; }
.stk-comp .r:disabled { cursor: default; color: var(--text); }
.stk-comp .r:not(:disabled):hover { background: var(--hover); }
.stk-comp .r.short .n { color: var(--danger); }
.stk-comp .dt { width: 16px; height: 16px; border-radius: 50%; }
/* значок сортимента — буквы в рамке, без цвета (цвет — у породы) */
.stk-asm { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 2px; box-sizing: border-box; border: 1.5px solid var(--line-strong); border-radius: 5px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.stk-comp .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-comp .n { text-align: right; font-weight: 800; white-space: nowrap; }
.stk-comp .n small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stk-comp .chev { width: 22px; color: var(--line-strong); }
.stk-comp .tot { display: flex; align-items: center; min-height: 50px; padding: 0 14px; border-top: 2px solid var(--line); font-size: 18px; font-weight: 800; }
.stk-src { display: inline-grid; place-items: center; width: 36px; height: 28px; border-radius: 14px; }
.stk-src .ic { width: 20px; height: 20px; }
.stk-src.f { background: var(--info-soft); color: var(--info); }
.stk-src.h { background: #FFF0C9; color: #8A5A00; }
.stk-src.a { background: #EFE3FA; color: #6D28D9; }

.stk-hist .day { padding: 12px 14px 4px; font-size: 15px; font-weight: 800; color: var(--muted); }
.stk-hist .e { display: grid; grid-template-columns: 52px 38px minmax(0, 1fr) auto 50px; align-items: center; gap: 10px; min-height: 60px; padding: 4px 10px 4px 14px; border-top: 1px solid var(--surface-2); }
.stk-hist .t { font-size: 16px; font-weight: 700; color: var(--text-2); }
.stk-hist .w { min-width: 0; }
.stk-hist .w b { display: block; font-size: 17px; line-height: 1.25; }
.stk-hist .w small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.stk-hist .d { font-weight: 800; white-space: nowrap; font-size: 16px; }
.stk-hist .d.p { color: var(--primary); }
.stk-hist .d.m { color: var(--danger); }
.stk-hist .rv { width: 50px; min-height: 50px; padding: 0; }
.stk-hist .e.undone { opacity: 0.5; }
/* не отправлено на сервер (планшет) — голубым, как документы */
.stk-hist .e.unsent { background: var(--unsynced, #E8F1FB); }
.stk-tag.unsent { background: var(--unsynced, #E8F1FB); color: #1A3E6E; }
.stk-hist .e.undone .w b { text-decoration: line-through; }

/* ---------------------------------------------------------------- окна правки */
.stk-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; }
.stk-scrim { position: absolute; inset: 0; background: rgba(20, 22, 26, 0.5); }
.stk-dlg { position: relative; width: min(900px, calc(100vw - 24px)); max-height: calc(100% - 24px); box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; overflow: auto; border-radius: 26px; background: var(--surface); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.stk-dlg-sm { width: min(560px, calc(100vw - 24px)); }
.stk-dlg-h { display: flex; align-items: center; gap: 10px; }
.stk-dlg-h h2 { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 10px; font-size: 23px; }
.stk-dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; flex: none; }
.stk-text { margin: 0; font-size: 18px; color: var(--text-2); }
.stk-name { min-height: 60px; font-size: 22px; }
.stk-ed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.stk-fields { display: flex; flex-direction: column; gap: 14px; }
.stk-fl { display: flex; flex-direction: column; gap: 6px; }
.stk-fl .lbl { font-size: 16px; font-weight: 800; }
.stk-fl .was { font-size: 15px; font-weight: 600; color: var(--muted); }
.stk-rowf { display: grid; grid-template-columns: 66px minmax(0, 1fr) 66px; gap: 8px; align-items: center; }
.stk-rowf > .btn { min-height: 66px; width: 66px; padding: 0; font-size: 28px; }
.stk-acts { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.stk-numf { display: flex; align-items: center; gap: 4px; min-height: 66px; width: 100%; box-sizing: border-box; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--surface); font: inherit; font-size: 30px; font-weight: 800; color: var(--text); text-align: left; cursor: text; }
.stk-numf.foc { border: 3px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.stk-numf .ph { color: #A09B90; }
.stk-numf small { margin-left: auto; font-size: 16px; color: var(--muted); font-weight: 700; }
.stk-numf .caret { display: inline-block; width: 3px; height: 36px; background: var(--text); animation: stk-blink 1s steps(1) infinite; }
@keyframes stk-blink { 50% { opacity: 0; } }
.stk-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stk-pad button { min-height: 62px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; font-size: 26px; font-weight: 800; color: var(--text); cursor: pointer; }
.stk-pad button:active { background: var(--surface-2); }
.stk-pad button.f { background: var(--bg); }
/* «+ / −» — во всю ширину под цифрами */
.stk-pad button.w { grid-column: 1 / -1; min-height: 52px; font-size: 22px; }
/* без своей клавиатуры (админка: у компьютера она есть) — поля одни, окно уже */
.stk-dlg-nopad .stk-ed { grid-template-columns: minmax(0, 1fr); }
.stk-dlg.stk-dlg-nopad { max-width: 560px; }
.stk-numf.neg .v { color: var(--danger, #B3261E); }
.stk-pickb { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 0 14px 0 0; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--surface); font: inherit; font-size: 20px; font-weight: 800; color: var(--text); overflow: hidden; cursor: pointer; text-align: left; }
.stk-pickb i { align-self: stretch; width: 11px; flex: none; }
.stk-pickb small { margin-left: auto; font-size: 15px; color: var(--muted); font-weight: 700; }

/* выбор «порода · сортимент · длина» — как в «Трелёвке» */
.stk-cb { display: flex; flex-direction: column; gap: 10px; }
.stk-cb-species { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stk-cb-sp { position: relative; min-height: 64px; padding: 0 16px 0 28px; border-radius: 16px; border: 2px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 21px; font-weight: 800; color: var(--text); text-align: left; cursor: pointer; overflow: hidden; }
.stk-cb-sp::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--sp); }
.stk-cb-sp.on { border: 3px solid var(--primary); background: var(--selected); }
.stk-cb-as { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 10px; padding-top: 10px; border-top: 2px solid var(--surface-2); }
.stk-cb-as h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.stk-cb-as h3 .stk-asm { min-width: 28px; height: 24px; font-size: 13px; flex: none; }
.stk-cb-lens { display: flex; flex-wrap: wrap; gap: 10px; }
.stk-cb-len { min-width: 100px; min-height: 60px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 24px; font-weight: 800; color: var(--text); cursor: pointer; }
.stk-cb-len.on { border: 3px solid var(--primary); background: var(--selected); }

/* ---------------------------------------------------------------- снизу и сверху: вертикальный или узкий экран */
.stk-at-full { left: 0; right: 0; top: 0; bottom: 0; width: auto; border-left: 0; box-shadow: none; }
.stk-at-bottom { left: 0; right: 0; top: auto; width: auto; height: 60%; border-left: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18); }
.stk-create.stk-cpl-top { left: 10px; right: 10px; width: auto; max-width: none; }
@media (orientation: portrait), (max-width: 760px) {
  .stk-at-auto { left: 0; right: 0; top: auto; width: auto; height: 60%; border-left: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18); }
  .stk-at-auto .stk-hd { padding-top: 12px; }
  .stk-create.stk-cpl-auto { left: 10px; right: 10px; width: auto; max-width: none; }
  .stk-modal { align-items: flex-end; }
  .stk-dlg { width: 100%; max-height: 92%; border-radius: 26px 26px 0 0; }
  .stk-ed { grid-template-columns: 1fr; }
  .stk-cb-as { grid-template-columns: 1fr; }
}

/* карта «что где лежит» (И16): цвет по дням лежания, будущий — пунктиром, «вывозить первым» — оранжевая обводка */
.stk-lbl.stk-t-d0 { background: #BFE3CB; color: #14161A; }
.stk-lbl.stk-t-d1 { background: #F6D98C; color: #14161A; }
.stk-lbl.stk-t-d2 { background: #F4AE9E; color: #14161A; }
.stk-lbl.stk-t-fut { background: #fff; color: #5C4422; border: 2px dashed #8F6A3A; }
.stk-lbl.stk-first { box-shadow: 0 0 0 3px #E07B1F, 0 1px 4px rgba(0, 0, 0, 0.28); }
.stk-lbl[class*="stk-t-"].stk-sel { outline: 3px solid #14161A; outline-offset: 1px; }

/* выбор склада — планшет и ПК (21B, макет TabletStockPick.html): карта слева, список справа */
.spk { display: flex; flex-direction: column; background: #F2F1EC; padding: var(--sat) var(--sar) var(--sab) var(--sal); }
.spk-bar { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 0 18px; background: var(--surface); border-bottom: 2px solid #E4E2DB; }
.spk-bar h2 { margin: 0; flex: 1; font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* поиск — справа, где была лупа (1.11.2026): лупа с местом в начале поля, маленький ✕ — в конце */
.spk-q { flex: 0 1 520px; min-width: 0; min-height: 56px; padding: 0 8px 0 12px; gap: 8px; }
.spk-q:focus-within { border-color: var(--primary); }
.spk-q > .ic { color: var(--muted); }
.spk-q input { height: 52px; font: inherit; font-size: 20px; font-weight: 700; color: var(--text); }
.spk-q-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.spk-q-x .ic { width: 18px; height: 18px; }
/* место устройства — цветом лупы: зелёная — свежее, серая мигает — старое или ищется */
.spk-lens { fill: #3DA66A; stroke: none; }
.spk-lens.old { fill: #AEB3B9; animation: spk-pulse 1.2s infinite; }
@keyframes spk-pulse { 50% { opacity: .25; } }
/* тело — сеткой: список, под ним «Выбрать …»; с картой лёжа (1.11.2026) — карта шире (имени склада много места не надо), «Выбрать …»
   — только под картой, списку — вся высота; стоя — карта уже, «Выбрать …» во всю ширину */
.spk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.spk-body.with-map { grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); }
.spk-body.with-map > .spk-map { grid-column: 1; grid-row: 1; }
.spk-body.with-map > .spk-list { grid-column: 2; grid-row: 1 / span 2; }
.spk-body.with-map > .spk-foot { grid-column: 1; grid-row: 2; border-right: 2px solid #E4E2DB; }
@media (orientation: portrait) {
  .spk-body.with-map { grid-template-columns: minmax(320px, 44%) minmax(0, 1fr); }
  .spk-body.with-map > .spk-list { grid-row: 1; }
  .spk-body.with-map > .spk-foot { grid-column: 1 / -1; border-right: 0; }
}
/* клавиатура открыта (поиск) — карта ниже: её кнопки не вылезают на «Выбрать …» */
.spk-map { position: relative; min-height: 0; overflow: hidden; border-right: 2px solid #E4E2DB; }
.spk-map > * { position: absolute; inset: 0; }
.spk-list { min-height: 0; overflow: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.spk-it { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 88px; padding: 10px 18px 10px 14px; background: #fff; border: 2px solid #CCC8BE; border-radius: 18px; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.spk-it.on { border-color: #1B6644; box-shadow: 0 0 0 4px #DAEEE2; }
.spk-it.first { border-color: #E07B1F; background: #FFF7EE; overflow: hidden; }
.spk-it.first::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: #E07B1F; }
.spk-it.first.on { border-color: #1B6644; }
.spk-num { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 46px; padding: 0 8px; border-radius: 12px; background: #8F6A3A; color: #fff; font-size: 19px; font-weight: 900; white-space: nowrap; }
.spk-num.up { background: #5C4422; }
.spk-num.tmp { background: #E8F1FB; color: #1A56A0; }
.spk-mid { display: flex; flex-direction: column; min-width: 0; }
/* имя — главное: до двух строк, а не многоточием */
.spk-nm { font-size: 24px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spk-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.spk-d { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.spk-d.d0 { background: #E3EFE8; color: #1B6644; }
.spk-d.d1 { background: #F7E7C3; color: #7A4E00; }
.spk-d.d2 { background: #FBE0DA; color: #8E2414; }
.spk-d.gray { background: #ECEAE4; color: #4A4F56; }
.spk-d.firstpl { background: #E07B1F; color: #fff; }
.spk-m3 { font-size: 21px; font-weight: 800; white-space: nowrap; text-align: right; }
.spk-m3.neg { color: #8E2414; }
.spk-km { font-size: 17px; font-weight: 700; color: #4A4F56; white-space: nowrap; text-align: right; }
.spk-hidden { margin: 2px 4px 6px; font-size: 17px; font-weight: 700; color: #62686F; }
.spk-foot { display: flex; gap: 16px; padding: 14px 18px; background: var(--surface); border-top: 2px solid #E4E2DB; }
.spk-foot > * { flex: 1; min-width: 0; }
/* «Выбрать Н в С 82 кв.»: длинное имя — многоточием */
.spk-go { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* без номера — у строки одной колонкой меньше */
.spk-it.nonum { grid-template-columns: minmax(0, 1fr) auto auto; }
/* с картой список уже: м³ — под именем не помещается, прячется (видно на карте) */
.spk-body.with-map .spk-m3 { display: none; }
@media (max-width: 760px) {
  .spk-body.with-map { grid-template-columns: minmax(0, 1fr); }
  .spk-body.with-map > .spk-list { grid-column: 1; grid-row: 1; }
  .spk-body.with-map > .spk-foot { grid-column: 1; border-right: 0; }
  .spk-map { display: none; }
  .spk-bar { gap: 10px; padding: 0 12px; }
  /* длинное название («Куда возить по умолчанию») — в две строки, а не многоточием */
  .spk-bar h2 { font-size: 22px; flex: 1 1 0; min-width: 4.2em; white-space: normal; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  /* поиск на телефоне — во всю ширину вместо заголовка */
  .spk-bar.q h2 { display: none; }
  .spk-q { flex: 1 1 0; }
  .spk-it { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; min-height: 76px; }
  .spk-it.nonum { grid-template-columns: minmax(0, 1fr) auto; }
  .spk-it .spk-m3 { display: none; }
  .spk-num { min-width: 44px; font-size: 16px; }
  .spk-nm { font-size: 19px; }
  .spk-km { font-size: 15px; min-width: 0; }
}
/* выбор склада фишки: «Нижние / Верхние» — обратно и между нижними (30A) */
.spk-seg { display: inline-flex; flex: none; border: 2px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.spk-seg button { min-height: 48px; padding: 0 16px; border: 0; background: var(--surface); font: inherit; font-size: 18px; font-weight: 800; color: var(--text); cursor: pointer; }
.spk-seg button + button { border-left: 2px solid var(--line); }
.spk-seg button.on { background: var(--text); color: var(--surface); }
/* сколько дней лежит строка (админка, И6) */
.stk-comp .r .stk-days { flex: none; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 19px; white-space: nowrap; }
.stk-days.d0 { background: #E3EFE8; color: #1B6644; }
.stk-days.d1 { background: #F7E7C3; color: #7A4E00; }
.stk-days.d2 { background: #FBE0DA; color: #8E2414; }

/* радиус круга (админка): ползунок и метры */
.stk-rad { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.stk-rad input { flex: 1; min-width: 0; accent-color: var(--primary); }
.stk-rad b { min-width: 54px; text-align: right; white-space: nowrap; }
