.btn-corte {
	background: linear-gradient(180deg, #35a7ff 80%, #1479c9 100%);
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 2px 8px rgba(20, 121, 201, 0.08);
	cursor: pointer;
	transition: background 0.18s, box-shadow 0.18s;
}
.btn-corte:hover, .btn-corte:focus {
	background: linear-gradient(180deg, #1479c9 80%, #35a7ff 100%);
	box-shadow: 0 4px 16px rgba(20, 121, 201, 0.16);
}
.split-iframe-box {
		position: relative;
		flex-shrink: 0;
		width: 100%;
		height: 260px;
		background: rgba(235, 240, 247, 0.94);
		border-top: 1px solid rgba(17, 30, 48, 0.12);
		z-index: 1;
		box-shadow: 0 -4px 24px rgba(4, 11, 22, 0.12);
		display: none;
		align-items: stretch;
		justify-content: center;
		flex-direction: column;
		transition: height 0.18s cubic-bezier(.4,1.3,.5,1);
		min-height: 120px;
		max-height: 90vh;
		overflow: hidden;
}

@media (max-width: 600px) {
	.split-iframe-box {
		height: 70vh !important;
		min-height: 250px;
		max-height: 95vh;
	}
	.split-iframe-box iframe {
		height: 100% !important;
		min-height: 200px;
	}
	#iframeSizeSelector {
		font-size: 1.1em;
	}
}
.split-iframe-box .drag-handle {
	width: 100%;
	height: 18px;
	cursor: ns-resize;
	background: linear-gradient(180deg, #dde3ee 60%, transparent 100%);
	border-top-left-radius: 18px;
	border-top-right-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}
.split-iframe-box .drag-bar {
	width: 48px;
	height: 5px;
	background: #b0b8c9;
	border-radius: 3px;
	margin: 0 auto;
	opacity: 0.7;
}
.split-iframe-box iframe {
	width: 100%;
	height: calc(100% - 18px);
	border: none;
	border-radius: 0 0 18px 18px;
	background: transparent;
}

:root {
	--bg-top: #08111f;
	--bg-mid: #10233c;
	--panel: rgba(9, 20, 35, 0.84);
	--panel-soft: rgba(255, 255, 255, 0.9);
	--panel-border: rgba(255, 255, 255, 0.16);
	--text-main: #f5f7fb;
	--text-dark: #132033;
	--text-muted: #6a768a;
	--orange: #ff8a1f;
	--orange-deep: #ff6b00;
	--blue: #35a7ff;
	--blue-deep: #1479c9;
	--green: #1fbf75;
	--green-deep: #15955a;
	--slate: #708397;
	--yellow: #ffd54a;
	--danger: #db4d4d;
	--shadow-lg: 0 24px 60px rgba(4, 11, 22, 0.28);
	--shadow-md: 0 14px 34px rgba(4, 11, 22, 0.22);
	--radius-xl: 26px;
	--radius-lg: 18px;
	--radius-md: 14px;
	--safe-top: max(12px, env(safe-area-inset-top));
	--safe-right: max(12px, env(safe-area-inset-right));
	--safe-bottom: max(12px, env(safe-area-inset-bottom));
	--safe-left: max(12px, env(safe-area-inset-left));
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	font-family: 'IBM Plex Sans', sans-serif;
	margin: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100dvh;
	background:
		radial-gradient(circle at top left, rgba(255, 138, 31, 0.22), transparent 26%),
		radial-gradient(circle at top right, rgba(53, 167, 255, 0.18), transparent 24%),
		linear-gradient(180deg, var(--bg-top), var(--bg-mid));
	color: var(--text-main);
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 96px);
	pointer-events: none;
	z-index: 0;
}

.app-chrome {
	position: relative;
	z-index: 10;
	padding: 0;
	pointer-events: auto;
	flex: 0 0 auto;
}

.main-layout {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	position: relative;
	z-index: 2;
}

.header-shell {
	display: block;
}

.header,
.side-panel,
.leaflet-control-zoom,
.leaflet-popup-content-wrapper {
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-left: 0;
	border-right: 0;
	border-top: 0;
	border-radius: 0;
	background: linear-gradient(180deg, rgba(8, 19, 35, 0.98), rgba(16, 35, 60, 0.96));
	box-shadow: none;
	pointer-events: auto;
}

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.brand-block {
	min-width: 0;
	max-width: 360px;
}

.brand-kicker {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 2px;
}

.brand-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.brand-title {
	margin: 0;
	font-family: 'Sora', sans-serif;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.brand-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(255, 138, 31, 0.16);
	border: 1px solid rgba(255, 174, 94, 0.32);
	color: #ffe0bb;
	font-size: 10px;
	font-weight: 600;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.page-message {
	display: none;
	align-items: center;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	border: 1px solid transparent;
	max-width: 560px;
}

.page-message.is-visible {
	display: inline-flex;
}

.page-message.is-success {
	background: rgba(31, 191, 117, 0.14);
	border-color: rgba(31, 191, 117, 0.28);
	color: #d8ffea;
}

.page-message.is-warning {
	background: rgba(255, 138, 31, 0.14);
	border-color: rgba(255, 138, 31, 0.3);
	color: #ffe2bf;
}

.page-message.is-error {
	background: rgba(219, 77, 77, 0.14);
	border-color: rgba(219, 77, 77, 0.3);
	color: #ffd4d4;
}

.modal-shell {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 9000;
}

.modal-shell.is-open {
	display: flex;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 11, 22, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.modal-card {
	position: relative;
	z-index: 1;
	width: min(100%, 460px);
	padding: 20px;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(248, 250, 254, 0.98), rgba(237, 242, 248, 0.96));
	color: var(--text-dark);
	box-shadow: 0 32px 80px rgba(4, 11, 22, 0.36);
	border: 1px solid rgba(18, 33, 51, 0.1);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.modal-kicker {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: #8b5a13;
}

.modal-title {
	margin: 0;
	font-family: 'Sora', sans-serif;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
}

.modal-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5b70;
}

.modal-body p {
	margin: 0;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.modal-actions .btn {
	min-width: 140px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	cursor: pointer;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.2);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 28px rgba(0, 0, 0, 0.24);
	filter: saturate(1.08);
}

.btn-list { background: linear-gradient(135deg, #ff9f2f, #ff6e1d); }
.btn-trash { background: linear-gradient(135deg, #8d9aa8, #677382); }
.btn-gps { background: linear-gradient(135deg, #a261ff, #6f3ccc); }
.btn-gps.is-active { background: linear-gradient(135deg, #29c97f, #159d5f); }
.btn-center { background: linear-gradient(135deg, #47c2ff, #1885d2); }
.btn-config { background: linear-gradient(135deg, #ffe16c, #f8bf1f); color: #192335; }
.btn-danger { background: linear-gradient(135deg, #f36b6b, #c93b3b); }
.btn-stealth {
	background: linear-gradient(135deg, #dde4ec, #bcc7d4);
	color: #233247;
	border-color: rgba(20, 34, 52, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 14px rgba(20, 34, 52, 0.08);
	font-size: 10px;
	letter-spacing: 0.08em;
}

.btn-stealth.is-active {
	background: linear-gradient(135deg, #8e9cad, #6d7b8d);
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(20, 34, 52, 0.16);
}

.btn-api-merge { background: linear-gradient(135deg, #8ad14b, #4f9823); }
.btn-cloud-upload { background: linear-gradient(135deg, #45cf8d, #189e61); }
.btn-cloud-download { background: linear-gradient(135deg, #4fb7ff, #1d7fd1); }
.btn-menu-toggle { background: linear-gradient(135deg, #c7d2de, #8e9cad); color: #152133; }
.btn-block { width: 100%; }

.floating-menu-toggle {
	position: fixed;
	top: calc(var(--safe-top) + 6px);
	right: 18px;
	z-index: 7000;
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(8, 19, 35, 0.9);
	color: #f5f7fb;
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	box-shadow: var(--shadow-md);
	cursor: pointer;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.menu-hidden .app-chrome {
	display: none;
}

.menu-hidden .floating-menu-toggle {
	display: inline-flex;
}

.menu-hidden .leaflet-control-container .leaflet-top.leaflet-left {
	top: calc(var(--safe-top) + 10px);
}

body.panic-mode [data-panic-hide="true"] {
	display: none !important;
}

#map {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	width: 100%;
	z-index: 1;
	filter: saturate(1.05) contrast(1.02);
}

.leaflet-control-container .leaflet-top.leaflet-left {
	top: 88px;
}

.leaflet-control-container .leaflet-top.leaflet-right {
	top: 88px;
	right: 12px;
	z-index: 3;
}

.leaflet-control-zoom {
	border: 1px solid rgba(10, 22, 38, 0.12) !important;
	border-radius: 18px !important;
	overflow: hidden;
	box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
	width: 44px !important;
	height: 44px !important;
	line-height: 44px !important;
	background: rgba(255, 255, 255, 0.88) !important;
	color: #192538 !important;
	border-bottom: 1px solid rgba(25, 37, 56, 0.08) !important;
}

.leaflet-top.leaflet-left .leaflet-control-layers {
	margin-top: 10px;
	border-radius: 14px;
	box-shadow: var(--shadow-md);
}

.leaflet-popup-content-wrapper {
	border-radius: 24px;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 26px 54px rgba(10, 18, 30, 0.26);
}

.leaflet-popup-content {
	width: 350px !important;
	margin: 0 !important;
}

.leaflet-popup-tip {
	background: rgba(255, 255, 255, 0.94);
}

.leaflet-routing-container {
	background: rgba(8, 19, 35, 0.96) !important;
	color: #e8f1ff !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 14px !important;
	box-shadow: 0 16px 34px rgba(3, 9, 18, 0.45) !important;
}

.leaflet-routing-container,
.leaflet-routing-container * {
	color: #e8f1ff !important;
}

.leaflet-routing-alt,
.leaflet-routing-geocoders,
.leaflet-routing-error {
	background: transparent !important;
	border-bottom: 1px solid rgba(232, 241, 255, 0.16) !important;
}

.leaflet-routing-alt:last-child {
	border-bottom: 0 !important;
}

.leaflet-routing-alt h2,
.leaflet-routing-alt h3 {
	color: #ffffff !important;
	font-weight: 700 !important;
}

.leaflet-routing-alt table,
.leaflet-routing-alt tr,
.leaflet-routing-alt td {
	background: transparent !important;
	color: #e8f1ff !important;
	border-color: rgba(232, 241, 255, 0.14) !important;
}

.leaflet-routing-icon {
	filter: invert(1) brightness(1.2);
}

.leaflet-routing-collapse-btn {
	color: #ffffff !important;
}

.pop-container {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.96));
	color: var(--text-dark);
}

.pop-top-tags {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.tag-peri,
.tag-sa {
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	border: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tag-peri {
	background: #ffeaa8;
	color: #553800;
}

.tag-sa {
	color: #fff;
}

.pop-name {
	font-family: 'Sora', sans-serif;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	color: #132033;
}

.pop-info {
	padding: 6px 10px;
	background: rgba(245, 247, 251, 0.5);
	border-left: 3px solid #35a7ff;
	border-radius: 4px;
	font-size: 11px;
	color: #132033;
	line-height: 1.35;
}

.pop-info strong {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
	color: #0a152e;
}

.btn-dir {
	display: block;
	padding: 9px 10px;
	border-radius: 18px;
	text-decoration: none !important;
	color: #152033 !important;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	background: linear-gradient(135deg, rgba(255, 194, 107, 0.18), rgba(53, 167, 255, 0.08));
	border: 1px solid rgba(21, 32, 51, 0.1);
}

.pop-row {
	display: flex;
	gap: 6px;
	width: 100%;
}

.btn-act {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 7px;
	border: none;
	border-radius: 14px;
	color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.btn-act-label {
	font-size: 10px;
	letter-spacing: 0.02em;
	text-align: center;
	white-space: nowrap;
}

.bg-d { background: linear-gradient(135deg, #214974, #12325d); }
.bg-url { background: linear-gradient(135deg, #9156c4, #7132a9); }
.bg-info { background: linear-gradient(135deg, #3e9cda, #2b74b8); }
.bg-wa { background: linear-gradient(135deg, #29c97f, #159d5f); }
.bg-call { background: linear-gradient(135deg, #3eaff4, #2679d5); }
.bg-app { background: linear-gradient(135deg, #5d6677, #394252); }
.bg-no-esta { background: linear-gradient(135deg, #95a0ad, #6f7d8c); }
.bg-terminar { background: linear-gradient(135deg, #1ac67b, #0f9f60); }

.periodicidad-editor {
	margin-top: 6px;
	padding: 6px;
	border-radius: 14px;
	background: rgba(235, 241, 250, 0.75);
	border: 1px solid rgba(21, 42, 69, 0.12);
}

.periodicidad-editor .pop-row {
	margin-top: 4px;
}

.periodicidad-editor .pop-row:first-child {
	margin-top: 0;
}

.periodicidad-editor select.btn-act {
	padding-right: 30px;
}

.periodicidad-editor select.btn-act option,
.periodicidad-editor select.btn-act optgroup {
	color: #132033;
	background: #f6f9ff;
}

.iframe-box {
	display: none;
	overflow: hidden;
	height: 250px;
	margin-top: 6px;
	border-radius: 18px;
	border: 1px solid rgba(17, 30, 48, 0.12);
	background: rgba(235, 240, 247, 0.94);
}

.moto-icon {
	font-size: 30px !important;
	text-shadow: 0 6px 16px rgba(13, 27, 43, 0.34);
}

.route-point-marker {
	background: transparent;
	border: none;
}

.route-point-dot {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #e53935;
	border: 2px solid #ffffff;
	box-shadow: 0 4px 10px rgba(229, 57, 53, 0.45);
}

.panel-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: 'Sora', sans-serif;
	font-size: 15px;
}

.panel-close {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 12px;
	background: rgba(20, 34, 52, 0.08);
	color: #172335;
	font-size: 18px;
	cursor: pointer;
}

.panel-close-light {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--text-muted);
}

.config-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
}

.config-field {
	min-width: 0;
}

.config-field.is-hidden {
	display: none;
}

.config-field-wide {
	grid-column: span 2;
}

.config-actions-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}

.panic-unlock-box {
	display: none;
}

.panic-unlock-box.is-visible {
	display: flex;
}

.config-actions-row .btn,
.config-actions-row .file-input {
	flex: 1;
	min-width: 0;
}

.side-panel-config {
	background: rgba(247, 249, 253, 0.96);
	border-right: 1px solid rgba(18, 33, 51, 0.08);
	color: var(--text-dark);
}

.side-panel-head-config {
	background: linear-gradient(135deg, rgba(71, 194, 255, 0.92), rgba(24, 133, 210, 0.84));
}

.side-panel-config .side-panel-content {
	padding: 14px;
	background: transparent;
}

.side-panel-config .config-grid {
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
}

.side-panel-config .config-field-wide {
	grid-column: span 1;
}

.side-panel-config .config-actions-row > * {
	flex: 1 1 100%;
	width: 100%;
}

.side-panel-config .btn {
	min-width: 0;
	white-space: normal;
	line-height: 1.2;
	text-align: center;
}

.side-panel-config .summary-box {
	width: 100%;
	background: linear-gradient(135deg, rgba(10, 21, 36, 0.96), rgba(16, 35, 60, 0.92));
	border-color: rgba(53, 167, 255, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	color: var(--text-main);
}

.side-panel-config .summary-row,
.side-panel-config .summary-row span,
.side-panel-config .summary-row b {
	color: var(--text-main);
}

.side-panel-config .summary-row span {
	letter-spacing: 0.06em;
	color: rgba(245, 247, 251, 0.78);
}

.side-panel-config .summary-row b {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
}

.field-control,
.file-input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(20, 34, 52, 0.12);
	background: rgba(255, 255, 255, 0.96);
	font: inherit;
	color: var(--text-dark);
}

.summary-box {
	margin-top: 2px;
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(20, 34, 52, 0.06), rgba(255, 138, 31, 0.08));
	border: 1px solid rgba(20, 34, 52, 0.08);
}

.summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	color: var(--text-dark);
}

.side-panel {
	position: relative;
	top: auto;
	bottom: auto;
	left: auto;
	width: 380px;
	max-width: 32vw;
	display: none;
	transform: none;
	opacity: 1;
	pointer-events: auto;
	overflow: hidden;
	flex-direction: column;
	background: rgba(10, 21, 36, 0.9);
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-top: 0;
	border-bottom: 0;
	border-left: 0;
	border-radius: 0;
	box-shadow: none;
	z-index: 2;
}

.side-panel.open {
	display: flex;
}

.point-popout-dock {
	display: none;
	position: fixed;
	right: 14px;
	bottom: 14px;
	top: auto;
	left: auto;
	flex: none;
	width: 386px;
	max-width: min(392px, 35vw);
	max-height: calc(100dvh - 120px);
	margin: 0;
	overflow: hidden;
	flex-direction: column;
	background: rgba(10, 21, 36, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	box-shadow: 0 18px 44px rgba(5, 11, 21, 0.45);
	z-index: 6200;
	pointer-events: auto;
}

.point-popout-dock.is-open {
	display: flex;
}

.point-popout-dock-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 16px 12px;
	background: linear-gradient(135deg, rgba(39, 57, 84, 0.95), rgba(18, 31, 49, 0.9));
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-family: 'Sora', sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #f2f6ff;
}

.point-popout-dock-close {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.point-popout-dock-body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 10px;
	background: rgba(8, 19, 35, 0.9);
}

.point-popout-dock-body .pop-container {
	min-height: auto;
	max-width: 350px;
	margin: 0 auto;
	border-radius: 16px;
}

.side-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 16px;
	font-family: 'Sora', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.side-panel-head-list {
	background: linear-gradient(135deg, rgba(255, 138, 31, 0.92), rgba(255, 107, 0, 0.82));
}

.side-panel-head-trash {
	background: linear-gradient(135deg, rgba(118, 132, 149, 0.92), rgba(86, 98, 113, 0.84));
}

.side-panel-head-cancel {
	background: linear-gradient(135deg, rgba(222, 66, 66, 0.94), rgba(169, 31, 31, 0.88));
}

.side-panel-head-admin {
	background: linear-gradient(135deg, rgba(34, 121, 95, 0.94), rgba(16, 84, 66, 0.88));
}

.side-panel-search {
	padding: 14px 16px 0;
	background: rgba(10, 21, 36, 0.9);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-search-input {
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	font: inherit;
	font-size: 14px;
	color: var(--text-dark);
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.panel-search-input::placeholder {
	color: #6d7989;
}

.panel-search-input:focus {
	border-color: rgba(53, 167, 255, 0.42);
	box-shadow: 0 0 0 3px rgba(53, 167, 255, 0.14);
}

.side-panel-content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

.side-panel-content::-webkit-scrollbar {
	width: 8px;
}

.side-panel-content::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
}

.list-card,
.trash-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--text-dark);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.panel-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 20px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.88);
}

.panel-empty strong {
	font-family: 'Sora', sans-serif;
	font-size: 16px;
	font-weight: 700;
}

.panel-empty span {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.64);
}

.list-card {
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.list-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.list-card-main,
.trash-card-main {
	min-width: 0;
}

.list-card-name,
.trash-card-name {
	display: block;
	font-family: 'Sora', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #182538;
	margin-bottom: 4px;
}

.list-card-address,
.trash-card-address {
	display: block;
	font-size: 12px;
	color: #667284;
	line-height: 1.4;
}

.list-card-badge,
.restore-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 800;
}

.list-card-badge {
	background: linear-gradient(135deg, rgba(255, 138, 31, 0.16), rgba(255, 107, 0, 0.24));
	color: #a04f00;
}

.restore-btn {
	border: none;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, #2dc985, #199e64);
	box-shadow: 0 10px 22px rgba(32, 165, 103, 0.26);
}

.admin-remove-btn {
	background: linear-gradient(135deg, #db5a5a, #b22727);
	box-shadow: 0 10px 22px rgba(178, 39, 39, 0.28);
}

.admin-sync-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.admin-sync-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(24, 37, 56, 0.08);
	color: #314055;
}

.admin-sync-status {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	background: rgba(255, 255, 255, 0.12);
	color: #eaf3ff;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-sync-status.is-neutral {
	background: rgba(255, 255, 255, 0.12);
	color: #eaf3ff;
}

.admin-sync-status.is-ok {
	background: rgba(43, 160, 112, 0.2);
	border-color: rgba(87, 210, 158, 0.34);
	color: #d8ffef;
}

.admin-sync-status.is-error {
	background: rgba(184, 57, 57, 0.22);
	border-color: rgba(235, 105, 105, 0.38);
	color: #ffe4e4;
}

hr {
	width: 100%;
	border: none;
	border-top: 1px solid rgba(21, 32, 51, 0.12);
	margin: 4px 0;
}

@media (max-width: 900px) {
	.app-chrome {
		padding: 0;
	}

	.header-shell {
		display: block;
	}

	.header {
		padding: calc(var(--safe-top) + 8px) 14px 12px;
		border-radius: 0;
	}

	.header-main {
		align-items: flex-start;
		flex-direction: column;
	}

	.header-actions {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
		gap: 8px;
		justify-content: stretch;
		width: 100%;
	}

	.header-actions .btn {
		width: 100%;
		min-width: 0;
	}

	.side-panel {
		width: 340px;
		max-width: 42vw;
	}

	.side-panel-config {
		width: 360px;
	}

	.leaflet-control-container .leaflet-top.leaflet-left {
		top: 82px;
	}

	.config-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	/* Botones legibles y sin desbordes en móvil. */
	.config-actions-row .btn,
	.config-actions-row .btn-act,
	.config-grid .btn,
	.config-grid .btn-act {
		font-size: 11px;
		min-height: 40px;
		padding: 8px 10px;
		border-radius: 10px;
		line-height: 1.2;
		width: 100%;
		box-sizing: border-box;
	}
		/* Mejorar distribución de botones en el sidebar para móvil */
		.pop-row {
			flex-direction: column;
			gap: 8px;
		}
		.pop-row .btn-act,
		.pop-row .btn-dir {
			width: 100%;
			min-width: 0;
			margin-bottom: 6px;
			box-sizing: border-box;
		}
	body {
		background:
			radial-gradient(circle at top left, rgba(255, 138, 31, 0.18), transparent 22%),
			radial-gradient(circle at top right, rgba(53, 167, 255, 0.14), transparent 18%),
			linear-gradient(180deg, #08111f, #10233c);
	}

	.app-chrome {
		padding: 0;
	}

	.header-shell {
		display: block;
	}

	.header {
		gap: 10px;
		padding: calc(var(--safe-top) + 6px) 12px 10px;
		border-radius: 0;
		align-items: flex-start;
		flex-direction: column;
	}

	.brand-kicker {
		font-size: 10px;
		letter-spacing: 0.18em;
		margin-bottom: 4px;
	}

	.brand-title-row {
		gap: 8px;
	}

	.brand-title {
		font-size: 24px;
		line-height: 1;
	}

	.brand-pill {
		padding: 6px 10px;
		font-size: 11px;
	}

	.brand-copy {
		display: none;
	}

	.page-message {
		max-width: none;
		width: 100%;
	}

	.modal-shell {
		padding: 16px;
	}

	.modal-card {
		padding: 18px;
		border-radius: 22px;
	}

	.modal-title {
		font-size: 22px;
	}

	.modal-actions {
		flex-direction: column-reverse;
	}

	.modal-actions .btn {
		width: 100%;
	}

	.header-actions {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
		gap: 8px;
		justify-content: stretch;
		width: 100%;
	}

	.header-actions .btn {
		width: 100%;
		min-width: 0;
		min-height: 42px;
		padding: 8px 8px;
		font-size: 10px;
		letter-spacing: 0.03em;
		border-radius: 12px;
	}

	#desktopMenuToggle {
		grid-column: 1 / -1;
	}

	.side-panel {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		height: min(78dvh, calc(100dvh - 88px));
		max-height: calc(100dvh - 88px);
		max-width: none;
		display: none;
		transform: translateY(100%);
		opacity: 1;
		pointer-events: auto;
		touch-action: pan-y;
		border-radius: 24px 24px 0 0;
		border-right: 0;
		border-bottom: none;
		box-shadow: var(--shadow-lg);
		z-index: 6000;
	}

	.side-panel.open {
		display: flex;
		transform: translateY(0);
	}

	.point-popout-dock {
		display: none !important;
	}

	.side-panel-head {
		padding: 16px 16px 14px;
		font-size: 16px;
	}

	.side-panel-search {
		padding: 12px 14px 0;
	}

	.side-panel-content {
		min-height: 0;
		padding: 14px;
		padding-bottom: calc(18px + var(--safe-bottom));
	}

	.config-panel {
		width: 100%;
		padding: 12px 0 0;
		border-radius: 16px;
	}

	.config-grid {
		grid-template-columns: 1fr;
	}

	.config-field-wide {
		grid-column: span 1;
	}

	.config-actions-row {
		flex-direction: column;
	}

	.side-panel-config .config-actions-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		align-items: stretch;
	}

	.side-panel-config .config-actions-row > * {
		width: 100%;
		min-width: 0;
	}

	.side-panel-config .config-actions-row > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.field-control,
	.file-input,
	.panel-close {
		min-height: 46px;
	}

	.leaflet-control-container .leaflet-top.leaflet-left {
		top: 126px;
		left: 10px;
	}

	.leaflet-control-container .leaflet-top.leaflet-right {
		top: 126px;
		right: 10px;
	}

	.leaflet-popup-content {
		width: min(340px, calc(100vw - 20px)) !important;
	}

	.leaflet-popup-content-wrapper {
		border-radius: 20px;
	}

	.pop-container {
		padding: 10px;
		gap: 4px;
	}

	.pop-name {
		font-size: 15px;
	}

	.pop-row {
		flex-wrap: nowrap;
	}

	.pop-row .btn-act,
		.pop-row .btn-dir {
		min-height: 34px;
		flex: 1 1 0 !important;
	}

	.pop-row > .btn-act:only-child,
	.pop-row > .btn-dir:only-child {
		flex: 1 1 100% !important;
	}

	.pop-row .bg-call,
		.pop-row .bg-app {
		flex: 1 1 calc(50% - 4px) !important;
	}

	.pop-row .bg-wa,
		.pop-row .bg-no-esta,
		.pop-row .bg-terminar {
		flex: 1 1 calc(50% - 4px);
	}

	.list-card,
		.trash-card,
		.panel-empty {
		border-radius: 18px;
		padding: 14px;
	}

	.restore-btn,
		.list-card-badge {
		min-width: 40px;
		min-height: 40px;
	}
}