/* =========================================================================
 *  FAHRTENBUCH – Oberfläche (passt zum Cockpit: dunkel, Saira, Cyan)
 * ========================================================================= */
.ml-lb, .ml-lb-sheet-wrap, .ml-lb-still, .ml-lb-toast {
	--lb-bg: #070b0f;
	--lb-surface: #0e141a;
	--lb-surface-2: #141c24;
	--lb-line: rgba(255,255,255,0.09);
	--lb-text: #fff;
	--lb-dim: rgba(255,255,255,0.62);
	--lb-faint: rgba(255,255,255,0.42);
	--lb-primary: var(--primary, #00e5ff);
	--lb-on-primary: #04222a;
	--lb-red: #ff5a5a;
	--lb-amber: #ffc24b;
	--lb-green: #3ddc84;
	font-family: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}
.ml-lb *, .ml-lb-sheet-wrap *, .ml-lb-still * { box-sizing: border-box; }
html.ml-lb-lock, html.ml-lb-lock body { overflow: hidden; }

/* ---------- Vollbild-Ansicht ---------- */
.ml-lb {
	position: fixed; inset: 0; display: flex; flex-direction: column;
	background: linear-gradient(160deg, #0a0f14 0%, #05080b 100%); color: var(--lb-text);
	padding-top: env(safe-area-inset-top, 0px);
}
.ml-lb-head {
	flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 14px; border-bottom: 1px solid var(--lb-line);
}
.ml-lb-title { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }
.ml-lb-title.sm { font-size: 1rem; flex: 1; text-align: center; }
.ml-lb-head-acts { display: flex; gap: 8px; }
.ml-lb-icon {
	width: 42px; height: 42px; border-radius: 12px; cursor: pointer; flex-shrink: 0;
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
	color: #fff; font-size: 1.15rem; line-height: 1; font-family: inherit;
}
.ml-lb-icon:active { transform: scale(0.96); }
.ml-lb-scroll {
	flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 28px);
	max-width: 640px; width: 100%; margin: 0 auto;
}

/* ---------- Start-Karte ---------- */
.ml-lb-hero { margin-bottom: 16px; }
.ml-lb-start, .ml-lb-live {
	background: var(--lb-surface); border: 1px solid var(--lb-line); border-radius: 20px;
	padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.ml-lb-vchip {
	display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; text-align: left;
	padding: 12px 14px; border-radius: 14px; font-family: inherit; color: #fff;
	background: var(--lb-surface-2); border: 1px solid var(--lb-line);
}
.ml-lb-vchip-ico { font-size: 1.5rem; line-height: 1; }
.ml-lb-vchip-name { flex: 1; font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-lb-vchip-caret { color: var(--lb-faint); }
.ml-lb-go {
	width: 100%; padding: 18px; border: none; border-radius: 16px; cursor: pointer;
	font-family: inherit; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.02em; color: var(--lb-on-primary);
	background: var(--gradient-primary, linear-gradient(135deg, #00e5ff, #00b4d8));
	box-shadow: 0 8px 24px rgba(0,229,255,0.18);
}
.ml-lb-go:active { transform: scale(0.98); }

/* Laufende Fahrt */
.ml-lb-live { border-color: rgba(255,90,90,0.35); background: linear-gradient(160deg, rgba(255,90,90,0.08), var(--lb-surface) 60%); }
.ml-lb-live-top { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #ff8a8a; font-size: 0.92rem; }
.ml-lb-live-nums { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.ml-lb-live-nums span:first-child { font-size: 2.3rem; font-weight: 800; line-height: 1; }
.ml-lb-live-nums span:last-child { font-size: 1.3rem; font-weight: 700; color: var(--lb-dim); }
.ml-lb-live-sub { font-size: 0.88rem; color: var(--lb-dim); min-height: 1.2em; }
.ml-lb-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; display: inline-block; flex-shrink: 0; animation: ml-lb-blink 1.2s infinite; }
@keyframes ml-lb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Schalter ---------- */
.ml-lb-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: #fff; }
.ml-lb-switch.tight { align-self: end; padding-bottom: 12px; }
.ml-lb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ml-lb-switch-ui {
	width: 46px; height: 28px; border-radius: 999px; flex-shrink: 0; position: relative;
	background: rgba(255,255,255,0.14); transition: background .2s;
}
.ml-lb-switch-ui::after {
	content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
	background: #fff; transition: transform .2s;
}
.ml-lb-switch input:checked + .ml-lb-switch-ui { background: var(--lb-primary); }
.ml-lb-switch input:checked + .ml-lb-switch-ui::after { transform: translateX(18px); }
.ml-lb-switch input:focus-visible + .ml-lb-switch-ui { outline: 2px solid var(--lb-primary); outline-offset: 2px; }

/* ---------- Tabs ---------- */
.ml-lb-tabs {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px;
	background: var(--lb-surface); border: 1px solid var(--lb-line); border-radius: 14px;
	position: sticky; top: -14px; z-index: 2;
}
.ml-lb-tab {
	padding: 10px 4px; border: none; border-radius: 10px; cursor: pointer;
	font-family: inherit; font-size: 0.86rem; font-weight: 700; color: var(--lb-dim); background: transparent;
}
.ml-lb-tab.active { background: rgba(0,229,255,0.14); color: var(--lb-primary); }

/* ---------- Listen ---------- */
.ml-lb-month {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
	margin: 18px 2px 8px; font-size: 0.8rem; color: var(--lb-faint);
}
.ml-lb-month span:first-child { font-weight: 800; color: #fff; font-size: 0.92rem; }
.ml-lb-trip, .ml-lb-veh {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
	padding: 12px; margin-bottom: 8px; border-radius: 14px; font-family: inherit; color: #fff;
	background: var(--lb-surface); border: 1px solid var(--lb-line);
}
.ml-lb-trip:active, .ml-lb-veh:active { transform: scale(0.99); }
.ml-lb-veh.active { border-color: rgba(0,229,255,0.5); background: rgba(0,229,255,0.07); }
.ml-lb-trip-ico, .ml-lb-veh-ico {
	width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
	background: var(--lb-surface-2); font-size: 1.3rem;
}
.ml-lb-veh-ico { width: 48px; height: 48px; font-size: 1.6rem; }
.ml-lb-trip-main { flex: 1; min-width: 0; }
.ml-lb-trip-route { font-weight: 700; font-size: 0.97rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ml-lb-trip-meta { margin-top: 3px; font-size: 0.8rem; color: var(--lb-dim); line-height: 1.35; }
.ml-lb-badges { display: inline-flex; gap: 6px; margin-left: 4px; }
.ml-lb-trip-num { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.ml-lb-trip-num b { font-size: 1rem; }
.ml-lb-trip-num span { font-size: 0.78rem; color: var(--lb-faint); }
.ml-lb-chev { color: var(--lb-faint); font-size: 1.4rem; }
.ml-lb-plate {
	display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 700;
	background: #fff; color: #111; border: 1px solid #111; letter-spacing: 0.04em; vertical-align: 1px;
}
.ml-lb-hu { margin-top: 6px; display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--lb-dim); }
.ml-lb-hu.warn { background: rgba(255,194,75,0.14); color: var(--lb-amber); }
.ml-lb-hu.bad { background: rgba(255,90,90,0.16); color: var(--lb-red); }
.ml-lb-empty { text-align: center; padding: 36px 16px; color: #fff; font-weight: 700; line-height: 1.5; }
.ml-lb-empty span { display: block; margin-top: 6px; font-weight: 500; font-size: 0.88rem; color: var(--lb-dim); }
.ml-lb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.ml-lb-card { background: var(--lb-surface); border: 1px solid var(--lb-line); border-radius: 14px; padding: 12px; }
.ml-lb-card-k { font-size: 0.8rem; color: var(--lb-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-lb-card-v { font-size: 1.5rem; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ml-lb-card-v small { font-size: 0.75rem; font-weight: 600; color: var(--lb-dim); }
.ml-lb-card-s { font-size: 0.75rem; color: var(--lb-faint); }

/* ---------- Knöpfe ---------- */
.ml-lb-btn {
	padding: 13px 14px; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 700;
	border: 1px solid transparent; color: #fff; text-align: center;
}
.ml-lb-btn.block { display: block; width: 100%; margin-top: 10px; }
.ml-lb-btn.primary { background: var(--gradient-primary, linear-gradient(135deg, #00e5ff, #00b4d8)); color: var(--lb-on-primary); }
.ml-lb-btn.ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.ml-lb-btn.danger { background: rgba(255,90,90,0.1); border-color: rgba(255,90,90,0.4); color: #ff8a8a; }
.ml-lb-btn:active { transform: scale(0.98); }
.ml-lb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-lb-row3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.ml-lb-row3 .ml-lb-btn { padding: 12px 6px; font-size: 0.9rem; }

/* ---------- Formulare / Sheets ---------- */
.ml-lb-sheet-wrap {
	position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center;
	background: rgba(3,6,9,0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	animation: ml-lb-fade .18s ease;
}
@keyframes ml-lb-fade { from { opacity: 0; } to { opacity: 1; } }
.ml-lb-sheet {
	width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column;
	background: var(--lb-bg); border: 1px solid rgba(0,229,255,0.22); border-bottom: none;
	border-radius: 22px 22px 0 0; color: #fff;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	animation: ml-lb-up .22s ease;
}
@keyframes ml-lb-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
	.ml-lb-sheet-wrap { align-items: center; }
	.ml-lb-sheet { border-radius: 22px; border-bottom: 1px solid rgba(0,229,255,0.22); }
}
.ml-lb-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; flex-shrink: 0; }
.ml-lb-sheet-head span { font-size: 1.1rem; font-weight: 800; color: var(--lb-primary); }
.ml-lb-x {
	width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-family: inherit;
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 1rem;
}
.ml-lb-sheet-body { padding: 4px 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ml-lb-p { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.5; color: var(--lb-dim); }
.ml-lb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.ml-lb-field > span { font-size: 0.82rem; font-weight: 700; color: #fff; }
.ml-lb-field small { font-weight: 500; color: var(--lb-faint); }
.ml-lb-input, .ml-lb-select {
	width: 100%; min-width: 0; padding: 12px; border-radius: 11px; font-family: inherit; font-size: 1rem; color: #fff;
	background: var(--lb-surface-2); border: 1px solid rgba(255,255,255,0.14); -webkit-appearance: none; appearance: none;
}
.ml-lb-select {
	background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%), linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
	background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.ml-lb-tabbody > .ml-lb-select { margin-bottom: 4px; }
.ml-lb-input:focus, .ml-lb-select:focus { outline: none; border-color: var(--lb-primary); box-shadow: 0 0 0 3px rgba(0,229,255,0.15); }
.ml-lb-input.auto { color: var(--lb-primary); border-style: dashed; }
textarea.ml-lb-input { resize: vertical; line-height: 1.4; }
input[type="month"].ml-lb-input, input[type="datetime-local"].ml-lb-input { min-height: 46px; color-scheme: dark; }
.ml-lb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ml-lb-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ml-lb-grid3 .ml-lb-input { padding: 12px 9px; font-variant-numeric: tabular-nums; }
.ml-lb-hint { font-size: 0.8rem; line-height: 1.45; color: var(--lb-dim); margin: 2px 0 12px; }
.ml-lb-hint.warn { color: var(--lb-amber); }
.ml-lb-start .ml-lb-hint { margin: 0; text-align: center; }

.ml-lb-segs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ml-lb-segs.col { flex-direction: column; }
.ml-lb-seg {
	flex: 1 1 auto; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 700;
	background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.85);
	display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
}
.ml-lb-segs.col .ml-lb-seg { align-items: flex-start; text-align: left; }
.ml-lb-seg span { font-size: 1.5rem; line-height: 1.1; }
.ml-lb-seg small { font-weight: 500; font-size: 0.78rem; color: var(--lb-dim); }
.ml-lb-seg.active { background: rgba(0,229,255,0.12); border-color: var(--lb-primary); color: #fff; }
.ml-lb-sec { margin: 20px 2px 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lb-faint); }
.ml-lb-sec.first { margin-top: 4px; }

/* Tankstellen-Vorschläge */
.ml-lb-stations { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.ml-lb-stations .ml-lb-hint { width: 100%; margin: 4px 0 0; }
.ml-lb-stchip {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border-radius: 10px; cursor: pointer;
	font-family: inherit; color: #fff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); max-width: 48%;
}
.ml-lb-stchip b { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ml-lb-stchip span { font-size: 0.74rem; color: var(--lb-dim); }
.ml-lb-stchip.active { border-color: var(--lb-primary); background: rgba(0,229,255,0.1); }

/* ---------- Fahrt-Detail ---------- */
.ml-lb-route-wrap { background: var(--lb-surface); border: 1px solid var(--lb-line); border-radius: 18px; padding: 10px; }
.ml-lb-route { width: 100%; height: auto; display: block; }
.ml-lb-r-line { fill: none; stroke: var(--lb-primary); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ml-lb-r-gap { fill: none; stroke: rgba(255,255,255,0.45); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.ml-lb-r-start { fill: var(--lb-green); stroke: #070b0f; stroke-width: 2.5; }
.ml-lb-r-end { fill: var(--lb-red); stroke: #070b0f; stroke-width: 2.5; }
.ml-lb-r-mark circle { fill: var(--lb-amber); stroke: #070b0f; stroke-width: 2; }
.ml-lb-r-mark text { font: 800 9.5px "Saira", sans-serif; fill: #111; text-anchor: middle; }
.ml-lb-route-empty { padding: 40px 10px; text-align: center; color: var(--lb-dim); font-size: 0.9rem; }
.ml-lb-route-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 4px 2px; font-size: 0.8rem; color: var(--lb-dim); }
.ml-lb-route-legend .lg-start, .ml-lb-route-legend .lg-end { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ml-lb-route-legend .lg-start { background: var(--lb-green); }
.ml-lb-route-legend .lg-end { background: var(--lb-red); margin-left: 6px; }
.ml-lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ml-lb-stat { background: var(--lb-surface); border: 1px solid var(--lb-line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.ml-lb-stat span { display: block; font-size: 0.7rem; color: var(--lb-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.ml-lb-stat b { display: block; margin-top: 2px; font-size: 0.98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 360px) { .ml-lb-stats { grid-template-columns: repeat(2, 1fr); } }
.ml-lb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.ml-lb-ab { background: #1b5fb0; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #1b5fb0; border-radius: 6px; padding: 1px 8px; font-weight: 800; font-size: 0.9rem; }
.ml-lb-ab-km { font-size: 0.85rem; color: var(--lb-dim); margin-right: 10px; }
.ml-lb-note-gap { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 0.82rem; line-height: 1.45; color: var(--lb-dim); background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.2); }
.ml-lb-mark { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--lb-surface); border: 1px solid var(--lb-line); }
.ml-lb-mark-n { width: 26px; height: 26px; border-radius: 50%; background: var(--lb-amber); color: #111; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-lb-mark-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ml-lb-clipbtn {
	padding: 7px 11px; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 700;
	background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.4); color: var(--lb-primary);
}
.ml-lb-clipbtn.ghost { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: var(--lb-dim); }
.ml-lb-player { width: 100%; max-height: 45vh; border-radius: 12px; background: #000; margin: 4px 0 8px; }

/* ---------- Stillstand-Nachfrage ---------- */
.ml-lb-still {
	position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
	padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); pointer-events: none;
}
.ml-lb-still-box {
	pointer-events: auto; width: 100%; max-width: 460px; padding: 16px; border-radius: 18px;
	background: #10161d; border: 1px solid rgba(255,194,75,0.45); box-shadow: 0 12px 40px rgba(0,0,0,0.6); color: #fff;
	animation: ml-lb-up .25s ease;
}
.ml-lb-still-top { font-size: 1.15rem; font-weight: 800; color: var(--lb-amber); }
.ml-lb-still-sub { margin: 4px 0 14px; font-size: 0.9rem; line-height: 1.4; color: var(--lb-dim); }
.ml-lb-still .ml-lb-btn { padding: 15px 10px; font-size: 1rem; }

/* ---------- Toast ---------- */
.ml-lb-toast {
	position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 100300;
	transform: translateX(-50%) translateY(10px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
	display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 28px);
	background: rgba(20,26,32,0.97); color: #fff; padding: 11px 14px; border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-size: 0.92rem;
}
.ml-lb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.ml-lb-toast button {
	padding: 6px 10px; border-radius: 9px; border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 0.85rem;
	background: var(--primary, #00e5ff); color: #04222a; white-space: nowrap;
}

/* ---------- Cockpit: Fahrt-Leiste ---------- */
.ml-lb-tripbar { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; margin-right: 8px; }
.ml-lb-trippill {
	display: inline-flex; align-items: center; gap: 7px; min-width: 0; flex: 1 1 auto;
	padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums;
	background: rgba(255,90,90,0.12); border: 1px solid rgba(255,90,90,0.4); color: #fff;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ml-lb-trippill span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ml-lb-cp-acts { display: flex; gap: 6px; flex-shrink: 0; }
.ml-lb-cp-btn {
	width: 42px; height: 42px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; line-height: 1; font-family: inherit;
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff;
}
.ml-lb-cp-btn.stop { color: #ff8a8a; border-color: rgba(255,90,90,0.4); }
.ml-lb-cp-btn:active { transform: scale(0.95); }

/* Launcher bei laufender Fahrt */
#ml-dash-launch.ml-lb-running { background: #2a0f12; color: #fff; border: 1px solid rgba(255,90,90,0.55); font-variant-numeric: tabular-nums; }
#ml-dash-launch .ml-lb-dot { margin-right: 2px; }

/* ---------- Parkplatz-Merker ---------- */
#ml-lb-park-slot { margin: 12px 0 0; }
.ml-lb-park {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
	padding: 12px 14px; border-radius: 16px; font: inherit; color: var(--lb-text);
	background: rgba(0,229,255,0.07); border: 1px solid rgba(0,229,255,0.3);
}
.ml-lb-park-ico { font-size: 1.6em; line-height: 1; }
.ml-lb-park-left { font-weight: 800; font-size: .88em; color: var(--lb-primary); white-space: nowrap; }
.ml-lb-park-left.late { color: var(--lb-red); }
.ml-lb-park-add { margin-top: 0; }
.ml-lb-park-where { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.ml-lb-park-where b { font-size: 1.1em; }
.ml-lb-park-where span { color: var(--lb-dim); font-size: .88em; }
.ml-lb-park-photo img { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--lb-line); }
.ml-lb-sec small { font-weight: 500; color: var(--lb-faint); text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* ---------- Wartung & Termine ---------- */
.ml-lb-segs.wrap .ml-lb-seg { flex: 1 1 calc(50% - 8px); flex-direction: row; justify-content: flex-start; gap: 8px; text-align: left; }
.ml-lb-segs.wrap .ml-lb-seg span { font-size: 1.2rem; }
.ml-lb-maint {
	display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px;
	background: var(--lb-surface); border: 1px solid var(--lb-line); border-left: 4px solid rgba(255,255,255,0.15);
}
.ml-lb-maint.warn { border-left-color: var(--lb-amber); }
.ml-lb-maint.bad { border-left-color: var(--lb-red); }
.ml-lb-maint-ico { font-size: 1.5rem; }
.ml-lb-maint-acts { display: flex; flex-direction: column; gap: 6px; }
.ml-lb-vmaint { margin: -2px 0 12px; min-height: 40px; font-size: .9rem; }
.ml-lb-notes:empty { display: none; }
.ml-lb-notes { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.ml-lb-maintbar {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--lb-text);
	padding: 10px 14px; border-radius: 14px; background: rgba(255,194,75,0.08); border: 1px solid rgba(255,194,75,0.35);
}
.ml-lb-maintbar.bad { background: rgba(255,90,90,0.08); border-color: rgba(255,90,90,0.4); }
.ml-lb-maintbar > span:first-child { font-size: 1.4rem; }
.ml-lb-backup {
	display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: .88rem; color: var(--lb-dim);
	background: var(--lb-surface); border: 1px dashed rgba(255,255,255,0.18);
}
.ml-lb-backup-acts { display: flex; gap: 8px; }

/* ---------- Kosten ---------- */
.ml-lb-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ml-lb-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .84rem; }
.ml-lb-bar-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lb-dim); }
.ml-lb-bar-t { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.ml-lb-bar-t i { display: block; height: 100%; border-radius: 4px; background: var(--lb-primary); }
.ml-lb-bar-v { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ===== Parkschein per Park-App ===== */
.ml-lb-btn.pay { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.45); color: #c9f5da; }
.ml-lb-btn.pay small { display: block; font-weight: 600; font-size: 0.76rem; color: rgba(201,245,218,0.75); margin-top: 1px; }
.ml-lb-btn.pay.block { margin: 0 0 10px; }
.ml-lb-payrow { display: grid; grid-template-columns: 1fr 52px; gap: 8px; margin-bottom: 10px; }
.ml-lb-payrow .ml-lb-btn { padding-top: 9px; padding-bottom: 9px; }
.ml-lb-payrow .ml-lb-btn.ghost { font-size: 1.2rem; padding: 0; }
.ml-lb-payopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-lb-payopt {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
	min-height: 54px; padding: 8px 14px; border-radius: 12px; cursor: pointer; text-align: left;
	background: rgba(255,255,255,0.05); border: 1px solid var(--lb-line); color: #fff; font: inherit; font-size: 0.95rem;
}
.ml-lb-payopt small { color: var(--lb-faint); font-size: 0.76rem; }
.ml-lb-payopt:focus-visible, .ml-lb-btn.pay:focus-visible { outline: 2px solid var(--lb-primary); outline-offset: 2px; }

/* ===== Statistik ===== */
.ml-st-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ml-st-filters .ml-lb-select { margin: 0; }
.ml-st-range { margin-bottom: 0; flex-wrap: nowrap; }
.ml-st-range .ml-lb-seg { flex: 1; padding: 9px 6px; }
.ml-st-kpi { margin-top: 12px; }
.ml-st-sub { font-size: .8rem; color: var(--lb-faint); margin-top: 6px; }
.ml-st-teaser {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
	padding: 10px 12px; margin: 0 0 12px; border-radius: 14px; font: inherit; color: var(--lb-text);
	background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.22);
}
.ml-st-teaser > span:first-child { font-size: 1.4rem; }
.ml-st-teaser b { display: block; font-size: .95rem; }
.ml-st-teaser small { display: block; font-size: .78rem; color: var(--lb-dim); margin-top: 1px; }

/* Säulen */
.ml-st-cols { display: flex; align-items: stretch; gap: 4px; height: 150px; padding: 18px 0 0; }
.ml-st-col {
	flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
	padding: 0; border: none; background: none; cursor: pointer; font: inherit; color: var(--lb-faint);
	-webkit-tap-highlight-color: transparent; border-radius: 6px;
}
.ml-st-bar { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.ml-st-stack { display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; justify-content: flex-start; }
.ml-st-stack i { display: block; width: 100%; min-height: 2px; border-radius: 0; }
.ml-st-stack i:last-child { border-radius: 4px 4px 0 0; }
.ml-st-bar em {
	position: absolute; left: 50%; transform: translateX(-50%); top: -17px; font-style: normal;
	font-size: .7rem; font-weight: 700; color: var(--lb-dim); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ml-st-m { font-size: .68rem; text-align: center; line-height: 1; }
.ml-st-col.cur .ml-st-m { color: #fff; font-weight: 800; }
.ml-st-col.sel { background: rgba(255,255,255,0.06); }
.ml-st-col.sel .ml-st-m { color: var(--lb-primary); font-weight: 800; }
.ml-st-col:focus-visible { outline: 2px solid var(--lb-primary); outline-offset: 2px; }
.ml-st-cols.many { gap: 2px; }
.ml-st-cols.many .ml-st-bar em { font-size: .62rem; }
.ml-st-tip { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--lb-surface); border: 1px solid var(--lb-line); font-size: .82rem; color: var(--lb-text); font-variant-numeric: tabular-nums; }
.ml-st-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--lb-dim); margin: 12px 0 0; }
.ml-st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ml-st-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Verbrauch */
.ml-st-cons { background: var(--lb-surface); border: 1px solid var(--lb-line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.ml-st-cons-h { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.ml-st-cons-h span { color: var(--lb-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ml-st-cons .ml-st-tip { background: rgba(255,255,255,0.03); }
.ml-st-line { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.ml-st-avg { stroke: rgba(255,255,255,0.28); stroke-width: 1; stroke-dasharray: 4 4; }
.ml-st-avgt { fill: var(--lb-faint); font-size: 10px; font-weight: 700; }
.ml-st-path { fill: none; stroke: #0099b0; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ml-st-dot { fill: #0099b0; stroke: #0e141a; stroke-width: 2; }
.ml-st-hit { fill: transparent; }
.ml-st-pt { cursor: pointer; outline: none; }
.ml-st-pt.sel .ml-st-dot, .ml-st-pt:focus-visible .ml-st-dot { fill: #fff; r: 5; }
.ml-st-ax { fill: var(--lb-faint); font-size: 10px; }

/* Strecken */
.ml-st-route {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
	padding: 12px; margin-bottom: 8px; border-radius: 14px; font: inherit; color: #fff;
	background: var(--lb-surface); border: 1px solid var(--lb-line);
}
.ml-st-route-n { flex-shrink: 0; min-width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--lb-surface-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.ml-st-range-t { color: var(--lb-faint); }
.ml-st-foot { margin-top: 16px; text-align: center; }

/* ===== Fahrstil ===== */
.ml-lb-linkbtn { background: none; border: none; padding: 0 0 0 8px; color: var(--lb-primary); font: inherit; font-size: .74rem; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ml-lb-style { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--lb-surface); border: 1px solid var(--lb-line); }
.ml-lb-style-main b { display: block; font-size: 1.05rem; }
.ml-lb-style-main span { font-size: .82rem; color: var(--lb-dim); }
.ml-lb-ring { width: 64px; height: 64px; flex-shrink: 0; }
.ml-lb-ring.big { width: 72px; height: 72px; }
.ml-lb-ring .bg { fill: none; stroke: rgba(255,255,255,0.08); }
.ml-lb-ring .fg { fill: none; stroke: #0099b0; stroke-linecap: round; }
.ml-lb-ring text { fill: #fff; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.ml-lb-style-items { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.ml-lb-style-items > div { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 0 2px; }
.ml-lb-style-items span { color: var(--lb-dim); display: inline-flex; align-items: center; gap: 7px; }
.ml-lb-style-items b { font-variant-numeric: tabular-nums; text-align: right; }
.ml-lb-sw { width: 11px; height: 10px; display: inline-block; flex-shrink: 0; }
.ml-lb-sw.brake { background: #ff9f43; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ml-lb-sw.acc { background: #ffd84b; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ml-lb-style-tip { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.18); font-size: .86rem; line-height: 1.45; color: var(--lb-text); }
.ml-lb-r-brake { fill: #ff9f43; stroke: #070b0f; stroke-width: 1.2; stroke-linejoin: round; }
.ml-lb-r-acc { fill: #ffd84b; stroke: #070b0f; stroke-width: 1.2; stroke-linejoin: round; }
