#toasts {
	position: fixed;
	right: 10px;
	top: 5px;
	z-index: 1001;
}
#toasts > * {
	background-color: #000A;
	border-radius: 10px;
	clear: both;
	color: white;
	cursor: zoom-out;
	float: right;
	margin-top: 5px;
	padding: 3px 6px;
}
:root {
	--bg: #0e131b;
	--panel: #151c28;
	--line: #26303f;
	--text: #e8edf5;
	--muted: #93a0b4;
	--accent: #38bdf8;
	--ok: #34d399;
	--warn: #fbbf24;
	--bad: #f87171;
}
* {
	box-sizing: border-box;
}
html {
	height: 100%;
}
body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.5;
}
a {
	color: var(--text);
	text-decoration: none;
}
.shell {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px calc(24px + env(safe-area-inset-bottom));
}
.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	letter-spacing: .02em;
}
.brand-dot {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--accent);
	box-shadow: 0 0 10px rgba(56,189,248,.7);
}
.nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}
.nav a {
	padding: 6px 12px;
	border-radius: 8px;
	color: var(--muted);
}
.nav a .active {
	color: var(--text);
	background: var(--panel);
}
.nav a:hover {
	color: var(--text);
}
.nav-form {
	margin: 0;
}
.linkish {
	background: none;
	border: none;
	color: var(--muted);
	font: inherit;
	padding: 6px 12px;
	cursor: pointer;
}
.linkish:hover {
	color: var(--text);
}
.page {
	padding-bottom: 24px;
}
.muted {
	color: var(--muted);
}
.upper {
	text-transform: uppercase;
}
.center-note {
	text-align: center;
	padding: 60px 0;
}
.app-error {
	background: rgba(248,113,113,.12);
	border: 1px solid rgba(248,113,113,.4);
	color: #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	margin: 10px 0;
}
.auth {
	max-width: 420px;
	margin: 6dvh auto 0;
}
.auth-sub {
	color: var(--muted);
	margin-top: -6px;
}
.auth-alt {
	color: var(--muted);
	font-size: .92em;
}
.field {
	display: block;
	margin: 14px 0;
}
.field span {
	display: block;
	font-size: .88em;
	color: var(--muted);
	margin-bottom: 4px;
}
input,
select,
textarea {
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	font: inherit;
	padding: 10px 12px;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
}
.btn {
	display: inline-block;
	background: var(--accent);
	color: #06121c;
	border: none;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	padding: 10px 18px;
	cursor: pointer;
}
.btn:hover {
	filter: brightness(1.1);
}
.btn-small {
	padding: 6px 12px;
	font-size: .9em;
}
.btn-ghost {
	background: var(--panel);
	color: var(--text);
	border: 1px solid var(--line);
}
.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px;
	margin: 0 0 16px;
}
table.list {
	width: 100%;
	border-collapse: collapse;
	font-size: .95em;
}
table.list th {
	text-align: left;
	color: var(--muted);
	font-weight: 500;
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
}
table.list td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
}
.badge {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: .82em;
	font-weight: 600;
}
.b-ok {
	background: rgba(52,211,153,.15);
	color: var(--ok);
}
.b-warn {
	background: rgba(251,191,36,.15);
	color: var(--warn);
}
.b-bad {
	background: rgba(248,113,113,.15);
	color: var(--bad);
}
.b-exempt {
	background: rgba(56,189,248,.15);
	color: var(--accent);
}
.toast-error {
	color: #fecaca;
	display: block;
	max-width: 420px;
	padding: 4px 2px;
}
.live .mapbox {
	height: 52dvh;
}
#liveList {
	margin-top: 16px;
}
.mapbox {
	width: 100%;
	height: 62dvh;
	min-height: 320px;
	border-radius: 12px;
	border: 1px solid #26303f;
	overflow: hidden;
	background: #10161f;
}
.maplibregl-map {
	font-family: inherit;
}
.nav-shell {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
}
#navMap {
	position: absolute !important;
	inset: 0;
}
.nav-instr {
	position: absolute;
	top: calc(10px + env(safe-area-inset-top));
	left: 10px;
	right: 10px;
	z-index: 20;
	background: rgba(14,19,27,.92);
	border: 1px solid #26303f;
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 1.15em;
	line-height: 1.35;
	backdrop-filter: blur(6px);
}
#navInstrDist {
	color: #38bdf8;
	font-weight: 700;
	font-size: 1.2em;
}
.nav-bottom {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: calc(10px + env(safe-area-inset-bottom));
	z-index: 20;
	background: rgba(14,19,27,.92);
	border: 1px solid #26303f;
	border-radius: 14px;
	padding: 10px 14px;
	backdrop-filter: blur(6px);
}
.nav-stats {
	display: flex;
	gap: 18px;
	font-size: 1.05em;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
#navSpeed {
	font-weight: 700;
}
.nav-controls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.nav-hidden {
	display: none;
}
.grid-trip {
	display: grid;
	grid-template-columns: minmax(320px, 5fr) 7fr;
	gap: 16px;
}
.panel-title {
	margin: 0 0 10px;
}
.meta-status {
	margin-bottom: 8px;
}
.stops {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	counter-reset: stopnr;
}
.stop-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #26303f;
	counter-increment: stopnr;
}
.stop-row::before {
	content: counter(stopnr);
	min-width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #38bdf8;
	color: #06121c;
	font-weight: 700;
	font-size: .8em;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stop-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.stop-actions {
	display: flex;
	gap: 4px;
}
.stop-actions form {
	margin: 0;
}
.mini {
	background: #151c28;
	border: 1px solid #26303f;
	color: #93a0b4;
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
}
.mini:hover {
	color: #e8edf5;
}
.geo-wrap {
	position: relative;
	margin-bottom: 8px;
}
.geo-suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	background: #151c28;
	border: 1px solid #26303f;
	border-radius: 8px;
	overflow: hidden;
}
.geo-item {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	color: #e8edf5;
	padding: 8px 12px;
	cursor: pointer;
}
.geo-item:hover {
	background: #26303f;
}
.route-actions {
	display: flex;
	gap: 10px;
	margin: 12px 0;
}
.route-actions form {
	margin: 0;
}
.route-summary {
	margin-top: 4px;
}
.route-facts {
	display: flex;
	gap: 24px;
	font-size: 1.15em;
	margin-bottom: 6px;
}
.b-ghost {
	background: rgba(147,160,180,.15);
	color: #93a0b4;
}
.tryout {
	max-width: 760px;
	margin: 0 auto;
}
.try-kenteken {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}
.try-kenteken .field {
	flex: 1;
}
.try-kenteken .btn {
	margin-bottom: 14px;
}
.page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.page-head-small {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
}
.check input {
	width: auto;
}
.small {
	font-size: .85em;
}
.field-inline {
	display: flex;
	align-items: center;
	gap: 8px;
}
.field-inline span {
	color: #93a0b4;
}
.field-inline select {
	width: auto;
}
.zone-list {
	margin-top: 16px;
}
.ex-form {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.ex-ref {
	width: 110px;
}
.ex-date {
	width: 140px;
}
.ex-form input {
	padding: 5px 8px;
	font-size: .85em;
}
@media (max-width: 700px){
	.shell {
		padding: 0 10px 24px;
	}
	.top {
		flex-wrap: wrap;
	}
}
@media (max-width: 900px){
	.grid-trip {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 800px){
	.grid2 {
		grid-template-columns: 1fr;
	}
}
