:root {
	color-scheme: dark;
	--bg: #121714;
	--panel: #1b221d;
	--panel-2: #242d26;
	--line: #344036;
	--text: #edf2e8;
	--muted: #a1b0a4;
	--accent: #f6b65d;
	--green: #b6d99c;
	--red: #f29b83;
	--radius: 16px;
	font:
		16px/1.5 "Segoe UI",
		system-ui,
		-apple-system,
		sans-serif;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background:
		radial-gradient(ellipse at 70% -30%, #3a422b66, transparent 65%),
		var(--bg);
	color: var(--text);
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
button,
input,
select {
	font: inherit;
}
a {
	color: inherit;
}
button,
input,
select,
a {
	-webkit-tap-highlight-color: transparent;
}
button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 15px;
	color: var(--text);
	background: var(--panel-2);
	border: 1px solid var(--line);
	border-radius: 9px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 650;
	transition:
		background 0.15s,
		border-color 0.15s,
		transform 0.15s;
}
button:hover {
	background: #364033;
	border-color: #8a855c;
	transform: translateY(-1px);
}
button:active {
	transform: translateY(1px);
}
button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}
input,
select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 12px;
	border: 1px solid #46544a;
	border-radius: 9px;
	background: #141b16;
	color: var(--text);
	font-size: 16px;
}
input:focus,
select:focus {
	border-color: var(--accent);
}
input::placeholder {
	color: #84968a;
}
button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #241e12;
	font-weight: 750;
}
button.primary:hover {
	background: #ffca80;
}
button.text-button {
	background: transparent;
	border-color: transparent;
	color: var(--muted);
	padding-inline: 6px;
}
.green {
	color: var(--green);
}
.negative {
	color: var(--red);
}
.accent {
	color: var(--accent);
}
.muted {
	color: var(--muted);
}
.small,
small {
	font-size: 12px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
[hidden] {
	display: none !important;
}
em {
	font-style: normal;
	color: var(--accent);
}
h1,
h2,
h3,
p {
	margin-top: 0;
}
h1 {
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.15;
	letter-spacing: -0.035em;
	margin-bottom: 10px;
}
h2 {
	font-size: 21px;
	letter-spacing: -0.025em;
	margin-block: 24px 14px;
}
h3 {
	font-size: 18px;
	letter-spacing: -0.02em;
	line-height: 1.35;
	margin-bottom: 12px;
}
p {
	color: var(--muted);
	margin-bottom: 14px;
}
strong,
b {
	font-weight: 700;
}
header {
	height: 86px;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #171e19f5;
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 16px max(28px, calc((100vw - 1600px) / 2));
}
.brand {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	font-size: 17px;
	font-weight: 850;
	letter-spacing: 0.055em;
	line-height: 1.2;
	white-space: nowrap;
}
.brand small {
	display: block;
	font-size: 8px;
	letter-spacing: 0.18em;
	color: var(--muted);
	margin-top: 5px;
}
.brand-mark {
	width: 43px;
	height: 43px;
	display: grid;
	place-items: center;
	background: var(--accent);
	color: #161e18;
	border-radius: 12px;
}
.brand-mark svg {
	width: 33px;
}
#summary {
	margin-left: auto;
	font-size: 13px;
	max-width: 230px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	color: var(--muted);
}
#balance {
	color: var(--accent);
	font-size: 18px;
	white-space: nowrap;
}
.version {
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--muted);
	white-space: nowrap;
}
main {
	width: min(100%, 1600px);
	margin: auto;
	display: grid;
	grid-template-columns: 192px minmax(0, 1fr);
	gap: 0 30px;
	padding: 28px;
	flex: 1;
	align-content: start;
}
#auth:empty {
	display: none;
}
#notice {
	grid-column: 1/-1;
	border: 1px solid #687d56;
	background: #263824;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}
#notice button {
	min-height: 32px;
	padding: 2px 8px;
	border: 0;
	background: none;
	font-size: 24px;
}
#notice[data-type="error"] {
	background: #422c25;
	border-color: #975744;
	color: #ffd1b8;
}
#nav {
	grid-column: 1;
	grid-row: 2/5;
	align-self: start;
	position: sticky;
	top: 114px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	padding-right: 15px;
	border-right: 1px solid var(--line);
}
#nav:empty {
	display: none;
}
#nav button {
	justify-content: flex-start;
	background: transparent;
	border-color: transparent;
	padding: 12px;
	white-space: nowrap;
	color: var(--muted);
	font-weight: 550;
	min-height: 46px;
}
#nav button:hover {
	background: #2b3428;
}
#nav button.active {
	background: #f6b65d14;
	color: var(--accent);
	border-color: #f6b65d22;
}
#nav button small {
	margin-left: auto;
	background: #d2dfcd0c;
	border-radius: 5px;
	padding: 0 6px;
}
.nav-icon {
	font-size: 19px;
	width: 22px;
	text-align: center;
	color: inherit;
}
.nav-label {
	font-size: 9px;
	color: var(--muted);
	letter-spacing: 0.16em;
	padding: 4px 12px 15px;
}
.nav-bottom {
	border-top: 1px solid var(--line);
	margin-top: 23px;
	padding: 20px 10px;
	display: flex;
	gap: 12px;
	font-size: 11px;
	color: var(--muted);
	align-items: center;
}
.nav-bottom strong {
	display: block;
	color: var(--text);
}
#view {
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
	outline: none;
}
#map-section {
	grid-column: 2;
	position: relative;
	margin-top: 4px;
}
#map {
	height: 430px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: #222c23;
	z-index: 1;
}
#map-fallback {
	position: absolute;
	z-index: 2;
	inset: 40% 15%;
	text-align: center;
	padding: 16px;
	background: var(--panel);
	border-radius: 12px;
}
.truckpin {
	display: grid;
	place-items: center;
	background: #202c20;
	border: 2px solid var(--accent);
	border-radius: 50%;
	color: var(--accent);
	box-shadow: 0 3px 12px #0008;
}
.truckpin svg {
	width: 28px;
}
.truckpin.other {
	color: #acbdb9;
	border-color: #738c83;
}
footer {
	width: min(100%, 1600px);
	margin: auto;
	padding: 22px 28px;
	color: var(--muted);
	font-size: 10px;
	letter-spacing: 0.05em;
	display: flex;
	gap: 20px;
	align-items: center;
	border-top: 1px solid #34403677;
}
footer a {
	margin-left: auto;
}
footer b {
	color: var(--accent);
}
#connection {
	margin-left: auto;
}
#connection.offline {
	color: var(--red);
}
.eyebrow {
	font-size: 10px;
	letter-spacing: 0.14em;
	font-weight: 750;
	color: var(--accent);
}
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.section-heading h1 {
	margin-top: 7px;
}
.section-heading p {
	font-size: 13px;
	margin-bottom: 0;
}
.section-heading > .tag {
	flex-shrink: 0;
}
.tag {
	display: inline-block;
	font-size: 9px;
	letter-spacing: 0.08em;
	font-weight: 750;
	border: 1px solid #6f805e55;
	background: #a0b28c0b;
	border-radius: 5px;
	padding: 5px 8px;
	vertical-align: middle;
	line-height: 1.2;
}
.tag.green {
	border-color: #6f945b55;
	background: #95c9770e;
}
.tag.locked {
	color: #b9b9aa;
}
.tag.danger {
	color: var(--red);
	border-color: #9c5a46;
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
	gap: 18px;
	margin-bottom: 24px;
}
article {
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(140deg, #242d2466, transparent 75%), var(--panel);
	overflow-wrap: anywhere;
}
article > p:last-child {
	margin-bottom: 0;
}
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}
.stat {
	padding: 19px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	min-width: 0;
}
.stat small {
	display: block;
	color: var(--muted);
}
.stat strong {
	display: block;
	font-size: clamp(22px, 2.3vw, 30px);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.045em;
	overflow-wrap: anywhere;
	margin: 8px 0;
}
.stat strong small {
	display: inline;
	font-size: 16px;
	font-weight: 500;
	color: var(--muted);
}
.stat span {
	display: block;
	font-size: 10px;
	color: var(--muted);
}
.stat:first-child strong {
	color: var(--accent);
}
.subheading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 26px 0 14px;
}
.subheading h2 {
	margin: 0;
}
.subheading > span {
	font-size: 11px;
}
.counter {
	font-size: 12px;
	color: var(--muted);
	border: 1px solid var(--line);
	padding: 2px 8px;
	border-radius: 6px;
	margin-left: 6px;
}
.dashboard-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 18px;
	margin-bottom: 26px;
}
.company-progress {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 22px;
}
.company-progress > div {
	flex: 1;
	min-width: 160px;
}
.company-progress h3 {
	margin-block: 4px 10px;
}
.company-progress > button {
	margin-left: auto;
}
.dispatch-shortcut {
	background: linear-gradient(110deg, #3a4328, #202820);
	padding: 22px;
}
.dispatch-shortcut h3 {
	margin-block: 8px 16px;
	max-width: 280px;
}
.level-badge {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 42px;
	flex-shrink: 0;
	background: #f6b65d19;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	color: var(--accent);
	font-size: 19px;
	font-weight: 800;
}
.level-badge.large {
	width: 58px;
	height: 64px;
	font-size: 29px;
}
.level-badge.huge {
	width: 100px;
	height: 110px;
	font-size: 54px;
}
.level-hero {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-bottom: 22px;
	padding: 32px;
}
.level-hero > div {
	flex: 1;
}
.level-hero h2 {
	margin-top: 9px;
}
.level-hero p {
	font-size: 13px;
	margin-top: 10px;
	margin-bottom: 0;
}
progress {
	display: block;
	width: 100%;
	height: 7px;
	accent-color: var(--accent);
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #3d493c;
}
progress::-webkit-progress-bar {
	background: #3d493c;
}
progress::-webkit-progress-value {
	background: var(--accent);
	border-radius: 10px;
}
.empty {
	border: 1px dashed #58634b;
	border-radius: var(--radius);
	background: #b4d79805;
	text-align: center;
	padding: 30px 20px;
	margin-bottom: 20px;
}
.empty-icon {
	font-size: 34px;
	color: var(--accent);
	display: block;
	margin-bottom: 6px;
}
.empty h3 {
	margin: 0 0 8px;
}
.empty p {
	font-size: 13px;
	max-width: 500px;
	margin: 0 auto 18px;
}
.empty p:last-child {
	margin-bottom: 0;
}
.trip-card .tag {
	margin-bottom: 14px;
}
.trip-card > p {
	font-size: 13px;
}
.trip-meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 14px 0 5px;
	font-size: 13px;
}
.trip-card > small {
	color: var(--muted);
	font-size: 11px;
}
.map-legend {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
}
.map-legend i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}
.map-legend i.other {
	background: #8a9f93;
	margin-left: 8px;
}
.tutorial {
	background: linear-gradient(120deg, #383b2466, #232d22);
	border: 1px solid #8b825344;
	border-radius: 14px;
	margin-bottom: 26px;
	padding: 15px 20px;
}
.tutorial-head {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 10px;
	color: var(--muted);
	margin-bottom: 7px;
}
.tutorial-head .text-button {
	margin-left: auto;
	min-height: 30px;
	font-size: 11px;
}
.tutorial-content {
	display: flex;
	align-items: center;
	gap: 16px;
}
.tutorial-content > div {
	flex: 1;
}
.tutorial-content h2 {
	font-size: 17px;
	margin: 0 0 5px;
}
.tutorial-content p {
	font-size: 12px;
	max-width: 700px;
	margin: 0;
	color: #b7c3b4;
}
.tutorial-content > button {
	flex-shrink: 0;
	font-size: 12px;
}
.step-number {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid #9e915466;
	border-radius: 50%;
	font-weight: 750;
	color: var(--accent);
	flex-shrink: 0;
}
.step-track {
	display: flex;
	gap: 6px;
	margin-top: 16px;
}
.step-track span {
	height: 3px;
	flex: 1;
	background: #48503b;
	border-radius: 4px;
}
.step-track .done {
	background: var(--green);
}
.step-track .current {
	background: var(--accent);
}
.product {
	padding: 0;
	overflow: hidden;
}
.photo {
	height: 175px;
	position: relative;
	overflow: hidden;
	background: radial-gradient(at 50% 50%, #566448, #222b23);
	border-bottom: 1px solid var(--line);
}
.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 2;
	transition: transform 0.5s;
}
.product:hover .photo img {
	transform: scale(1.025);
}
.photo img.failed {
	display: none;
}
.photo-fallback {
	position: absolute;
	inset: 25%;
	display: grid;
	place-items: center;
	opacity: 0.5;
	color: var(--accent);
}
.photo-fallback svg {
	width: 90px;
}
.photo.compact {
	height: 120px;
	border: 0;
	border-radius: 8px;
	margin-bottom: 15px;
}
.product-body {
	padding: 20px;
}
.product-tags {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.product-body > h3 {
	margin-bottom: 10px;
}
.product-body > p {
	font-size: 12px;
}
.specs {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	color: var(--muted);
	font-size: 11px;
	margin: 20px 0;
}
.specs strong {
	display: block;
	color: var(--text);
	font-size: 17px;
}
.product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.product-footer > strong {
	font-size: 21px;
	letter-spacing: -0.035em;
	color: var(--accent);
	white-space: nowrap;
}
.product-footer button {
	font-size: 12px;
	padding: 9px 13px;
}
.equipment .photo {
	height: 150px;
}
.vehicle-meters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-block: 16px;
}
.vehicle-meters label {
	display: block;
	font-size: 10px;
	color: var(--muted);
	font-weight: 400;
}
.vehicle-meters strong {
	color: var(--text);
	display: block;
	font-size: 14px;
	margin: 4px 0 8px;
}
.equipment-row {
	display: flex;
	gap: 16px;
	font-size: 12px;
	border-block: 1px solid var(--line);
	padding: 12px 0;
	margin-bottom: 12px;
	color: var(--muted);
}
.equipment-row strong {
	color: var(--text);
	margin-left: 6px;
}
.documents {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 10px;
	margin-bottom: 12px;
	color: var(--muted);
}
.workshop {
	border-top: 1px solid var(--line);
	padding-top: 12px;
	margin-bottom: 16px;
}
.workshop summary {
	cursor: pointer;
	font-size: 13px;
	padding: 7px 0;
	color: var(--accent);
}
.workshop-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 9px;
}
.workshop-grid button {
	padding: 8px;
	font-size: 10px;
}
.attach-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 7px;
}
.attach-form select {
	font-size: 12px;
	padding: 10px;
}
.attach-form button {
	font-size: 12px;
	padding: 8px;
}
.attach-form label {
	display: block;
}
.actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.actions .text-button {
	font-size: 11px;
}
.filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 15px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	margin-bottom: 12px;
	align-items: center;
}
.filters > label {
	flex: 1;
	min-width: 150px;
}
.filters input,
.filters select {
	font-size: 13px;
	padding: 10px;
}
.filters .search-filter {
	flex: 1.5;
}
.filters .checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	flex: 0 0 auto;
	min-width: 0;
}
.checkbox input {
	width: 17px;
	height: 17px;
	accent-color: var(--accent);
}
.result-count {
	font-size: 11px;
	color: var(--muted);
	margin: 16px 0;
}
.offer {
	padding: 20px;
}
.offer.starter {
	border-color: #a29b60;
	background: linear-gradient(135deg, #859b4d16, var(--panel));
}
.offer-top,
.offer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.offer-top .small {
	font-size: 10px;
}
.route-title {
	display: flex;
	gap: 13px;
	margin-top: 20px;
	margin-bottom: 18px;
}
.route-title h3 {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 17px;
	margin: 0;
}
.route-dots {
	display: flex;
	flex-direction: column;
	font-size: 15px;
	line-height: 20px;
	align-items: center;
	color: var(--accent);
	width: 12px;
	flex-shrink: 0;
}
.route-dots i {
	width: 1px;
	background: #859475;
	height: 16px;
}
.offer-price {
	font-size: 26px;
	letter-spacing: -0.03em;
	color: var(--accent);
	display: block;
	margin-bottom: 8px;
}
.offer > p {
	font-size: 12px;
}
.offer-requirements {
	display: flex;
	gap: 9px;
	flex-wrap: wrap;
	font-size: 10px;
	color: var(--muted);
	padding-bottom: 15px;
	border-bottom: 1px solid var(--line);
}
.offer-bottom {
	padding-top: 16px;
}
.offer-bottom small {
	font-size: 10px;
	color: var(--muted);
}
.offer-bottom button {
	font-size: 12px;
}
.info-panel {
	padding: 20px;
	border: 1px solid #65745655;
	background: #a6bb8208;
	border-radius: 12px;
	margin: 20px 0;
}
.info-panel p {
	font-size: 13px;
	margin: 6px 0 0;
}
.ledger {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}
.ledger-row {
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 18px;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}
.ledger-row:last-child {
	border: 0;
}
.ledger-row > div {
	min-width: 0;
	overflow-wrap: anywhere;
}
.ledger-row small {
	display: block;
	color: var(--muted);
	margin-top: 4px;
	font-size: 10px;
}
.ledger-row > b {
	white-space: nowrap;
}
.rank-row {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 10px;
	padding: 20px;
}
.rank-row > div {
	flex: 1;
	min-width: 0;
}
.rank-row small {
	display: block;
	color: var(--muted);
	margin-top: 5px;
	font-size: 11px;
}
.rank-row > b {
	color: var(--accent);
	white-space: nowrap;
}
.rank-row.mine {
	border-color: #a8ad6877;
	background: #93a8610c;
}
.rank-number {
	font-size: 26px;
	color: var(--muted);
	font-weight: 800;
	letter-spacing: -0.06em;
}
.achievement-icon {
	float: right;
	color: #70816c;
	font-size: 34px;
	margin-top: -30px;
}
.achievement-icon.unlocked {
	color: var(--accent);
	filter: drop-shadow(0 0 12px #f6b65d44);
}
.tutorial-list {
	padding-left: 24px;
}
.tutorial-list li {
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}
.tutorial-list p {
	font-size: 13px;
	margin-block: 5px 0;
}
.tutorial-list li.done > strong {
	color: var(--green);
}
.credit {
	font-size: 11px;
	overflow-wrap: anywhere;
	margin-bottom: 12px;
}
.skip-link {
	position: fixed;
	top: -100px;
	z-index: 3000;
	padding: 12px;
	background: var(--accent);
	color: var(--bg);
}
.skip-link:focus {
	top: 10px;
	left: 10px;
}
#activity {
	position: fixed;
	z-index: 3000;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #f6b65d33;
	overflow: hidden;
}
#activity > span:first-child {
	display: block;
	height: 100%;
	width: 35%;
	background: var(--accent);
	animation: loading 1.1s linear infinite;
}
@keyframes loading {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(390%);
	}
}
dialog {
	width: min(540px, calc(100% - 28px));
	max-height: calc(100dvh - 40px);
	padding: 25px;
	border: 1px solid #66745a;
	border-radius: 18px;
	background: var(--panel);
	color: var(--text);
	box-shadow: 0 30px 100px #0009;
	overflow: auto;
}
dialog::backdrop {
	background: #050d09bb;
	backdrop-filter: blur(5px);
}
.modal-head,
.modal-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.modal-actions {
	margin-top: 22px;
	justify-content: flex-end;
}
.modal-head h2 {
	margin: 0;
}
.modal-head > button {
	background: transparent;
	font-size: 26px;
	padding: 0 8px;
	min-height: 32px;
}
.modal-head {
	align-items: center;
	margin-bottom: 20px;
}
dialog p {
	font-size: 13px;
}
.modal-head ~ form {
	margin-top: 20px;
}
.quote-route {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-bottom: 12px;
}
.quote-route span {
	color: var(--accent);
	padding-inline: 6px;
}
.quote-details {
	margin: 20px 0;
}
.quote-details > div {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	border-bottom: 1px solid var(--line);
	padding: 10px 0;
	font-size: 13px;
}
.quote-details dt {
	color: var(--muted);
}
.quote-details dd {
	margin: 0;
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
}
.quote-details .quote-total {
	font-size: 18px;
	padding-top: 15px;
}
.issue-list {
	background: #ce9b4910;
	border: 1px solid #ad8c4b55;
	border-radius: 10px;
	padding: 14px;
	font-size: 13px;
}
.issue-list ul {
	margin: 8px 0 0;
	padding-left: 20px;
}
form {
	display: grid;
	gap: 15px;
}
label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	font-weight: 650;
	color: #ced9ce;
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.search-row {
	display: flex;
	gap: 8px;
}
.search-row button {
	flex-shrink: 0;
}
#results {
	display: grid;
	gap: 5px;
	max-height: 150px;
	overflow: auto;
	font-size: 12px;
}
#results:empty {
	display: none;
}
#results button {
	font-size: 11px;
	text-align: left;
	justify-content: flex-start;
}
#base-feedback {
	font-size: 11px;
	color: var(--muted);
}
body[data-mode="login"] main,
body[data-mode="company"] main {
	display: block;
	max-width: 1220px;
	padding-block: 36px;
	align-content: center;
}
body[data-mode="login"] #view,
body[data-mode="company"] #view {
	display: none;
}
body[data-mode="admin"] main {
	display: block;
}
body[data-mode="admin"] #view {
	display: block;
}
.welcome {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 22px;
	overflow: hidden;
	min-height: 590px;
	box-shadow: 0 30px 90px #0004;
}
.welcome-art {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: 32px;
	isolation: isolate;
}
.welcome-art > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -3;
	filter: saturate(0.6);
}
.photo-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #111c1855, #111c18d9 65%, #111c18);
	z-index: -2;
}
.welcome-art:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, #15201844, transparent);
}
.welcome-art > .eyebrow {
	font-size: 9px;
}
.welcome-copy {
	padding: 55px 0 25px;
}
.welcome-copy .tag {
	color: #d8e8d0;
	border-color: #c1daa844;
	background: #14291b66;
}
.welcome-copy h2 {
	font-size: clamp(33px, 4.3vw, 54px);
	letter-spacing: -0.05em;
	line-height: 1.06;
	margin: 20px 0;
}
.welcome-copy > p {
	font-size: 14px;
	color: #bfcebd;
}
.welcome-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}
.welcome-meta span {
	font-size: 9px;
	border: 1px solid #b3c7a838;
	padding: 7px 9px;
	border-radius: 5px;
	background: #1c2a1ee8;
}
.mini-truck {
	width: 48px;
	color: var(--accent);
	position: absolute;
	bottom: 18px;
	right: 24px;
	animation: drive 5s ease-in-out infinite;
}
.mini-truck svg {
	width: 48px;
}
@keyframes drive {
	50% {
		transform: translateX(-28px);
	}
}
.welcome-form {
	padding: 42px;
	align-self: center;
	min-width: 0;
}
.welcome-form h1 {
	margin-top: 12px;
	font-size: 31px;
}
.intro {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 26px;
}
.auth-tabs {
	display: flex;
	border-bottom: 1px solid var(--line);
	margin-bottom: 24px;
}
.auth-tabs button {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	flex: 1;
	color: var(--muted);
}
.auth-tabs button.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.welcome-form form > button.primary {
	margin-top: 8px;
	padding: 13px;
}
.auth-note {
	font-size: 11px;
	margin: 20px 0 8px;
}
.welcome-form > .text-button {
	font-size: 11px;
	min-height: 36px;
}
.capital {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
	background: #a3c07f0b;
	border: 1px solid #80976555;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 22px;
	font-size: 12px;
	color: var(--green);
}
.capital strong {
	font-size: 22px;
	white-space: nowrap;
}
#map-section {
	grid-row: 3;
}
#notice {
	grid-row: 1;
}
#nav {
	grid-row: 2/4;
}
@media (min-width: 1450px) {
	.grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.grid:has(> .equipment) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 1100px) {
	main {
		gap: 0 20px;
		grid-template-columns: 165px minmax(0, 1fr);
		padding: 22px;
	}
	header {
		padding-inline: 22px;
		gap: 14px;
	}
	#summary {
		max-width: 150px;
	}
	.stats {
		gap: 10px;
	}
	.stat {
		padding: 15px;
	}
	.stat strong {
		font-size: 24px;
	}
	.dashboard-grid {
		grid-template-columns: 1fr;
	}
	.tutorial-content > button {
		max-width: 140px;
	}
	.company-progress {
		flex-wrap: nowrap;
	}
	.company-progress > button {
		font-size: 11px;
	}
	.welcome-form {
		padding: 30px;
	}
}
@media (max-width: 780px) {
	header {
		height: 74px;
		padding: 10px 14px;
		gap: 12px;
	}
	.brand {
		font-size: 14px;
	}
	.brand-mark {
		width: 35px;
		height: 35px;
	}
	.brand-mark svg {
		width: 28px;
	}
	.brand small {
		font-size: 7px;
	}
	.version,
	#summary {
		display: none;
	}
	#balance {
		font-size: 15px;
		margin-left: auto;
	}
	header > button {
		min-height: 40px;
		font-size: 11px;
		padding: 7px 9px;
	}
	main {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 16px;
		width: 100%;
	}
	#nav {
		display: flex;
		flex-direction: row;
		gap: 4px;
		overflow-x: auto;
		position: sticky;
		top: 74px;
		z-index: 800;
		max-width: calc(100vw - 32px);
		width: 100%;
		background: #161e18f5;
		backdrop-filter: blur(12px);
		border: 1px solid var(--line);
		border-radius: 10px;
		padding: 5px;
		margin-bottom: 22px;
		scrollbar-width: thin;
	}
	#nav button {
		font-size: 12px;
		padding: 8px 11px;
		flex-shrink: 0;
		min-height: 42px;
	}
	.nav-label,
	.nav-bottom,
	#nav button small {
		display: none;
	}
	.nav-icon {
		font-size: 16px;
		width: 17px;
	}
	#view {
		width: 100%;
	}
	.section-heading {
		gap: 12px;
		align-items: flex-start;
	}
	.section-heading > .tag {
		font-size: 8px;
		max-width: 120px;
		line-height: 1.5;
	}
	.section-heading h1 {
		font-size: 28px;
	}
	.section-heading p {
		font-size: 12px;
	}
	.stats {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.stat {
		padding: 15px;
	}
	.stat strong {
		font-size: 26px;
	}
	.grid {
		gap: 14px;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
	}
	.tutorial {
		padding: 13px 15px;
		margin-bottom: 22px;
	}
	.tutorial-content {
		flex-wrap: wrap;
		gap: 12px;
	}
	.tutorial-content > div {
		min-width: 180px;
	}
	.tutorial-content > button {
		margin-left: 48px;
		max-width: none;
	}
	.tutorial-content p {
		font-size: 12px;
	}
	.tutorial-content h2 {
		font-size: 16px;
	}
	.tutorial-head .tag {
		font-size: 8px;
	}
	.tutorial-head > span:nth-child(2) {
		font-size: 9px;
	}
	.dashboard-grid {
		gap: 14px;
	}
	.company-progress > button {
		display: none;
	}
	.level-hero {
		padding: 22px;
		gap: 18px;
	}
	.level-badge.huge {
		width: 68px;
		height: 78px;
		font-size: 38px;
	}
	.level-hero h2 {
		font-size: 20px;
	}
	.level-hero p {
		font-size: 11px;
	}
	.filters {
		gap: 8px;
		padding: 12px;
	}
	.filters > label {
		min-width: 120px;
	}
	.filters .search-filter {
		flex-basis: 100%;
	}
	.filters .checkbox {
		padding-block: 6px;
	}
	.subheading {
		align-items: flex-start;
	}
	.subheading h2 {
		font-size: 19px;
	}
	.subheading > .muted {
		max-width: 105px;
		text-align: right;
	}
	.map-legend {
		font-size: 9px !important;
		gap: 5px;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
	#map-section {
		width: 100%;
	}
	#map {
		height: 350px;
	}
	footer {
		padding: 20px 16px;
		gap: 12px;
		flex-wrap: wrap;
		font-size: 9px;
	}
	footer a {
		margin-left: 0;
	}
	#connection {
		margin-left: auto;
	}
	.welcome {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin: auto;
		min-height: 0;
	}
	.welcome-art {
		min-height: 200px;
		padding: 23px;
		background: #273725;
	}
	.welcome-art > img {
		object-position: 50% 45%;
		opacity: 0.65;
	}
	.welcome-copy {
		padding: 8px 0 0;
	}
	.welcome-copy .tag,
	.welcome-meta,
	.mini-truck {
		display: none;
	}
	.welcome-copy h2 {
		font-size: 32px;
		margin: 8px 0;
	}
	.welcome-copy h2 br {
		display: none;
	}
	.welcome-copy h2 br:after {
		content: " ";
	}
	.welcome-copy > p {
		font-size: 12px;
		margin: 0;
	}
	.welcome-form {
		padding: 28px;
	}
	.welcome-form h1 {
		font-size: 29px;
	}
	body[data-mode="login"] main,
	body[data-mode="company"] main {
		padding: 22px 16px;
	}
	.welcome-art > .eyebrow {
		font-size: 8px;
	}
	body[data-mode="company"] .welcome-art {
		display: none;
	}
	.form-row {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.photo {
		height: 190px;
	}
	.rank-row {
		gap: 14px;
		padding: 16px;
	}
	.rank-row strong {
		font-size: 14px;
	}
	.rank-row > b {
		font-size: 12px;
	}
	.rank-number {
		font-size: 23px;
	}
	.ledger-row {
		padding: 14px;
		font-size: 12px;
	}
	.ledger-row > b {
		font-size: 13px;
	}
	.modal-head {
		gap: 10px;
	}
	.modal-head h2 {
		font-size: 21px;
	}
	dialog {
		padding: 21px;
	}
	.modal-actions button {
		flex: 1;
	}
	.quote-details {
		font-size: 12px;
	}
	.quote-route {
		font-size: 19px;
	}
}
@media (max-width: 390px) {
	.brand {
		font-size: 11px;
		gap: 7px;
	}
	.brand small {
		font-size: 6px;
	}
	.brand-mark {
		width: 30px;
		height: 30px;
	}
	#balance {
		font-size: 13px;
	}
	header {
		gap: 7px;
		padding-inline: 10px;
	}
	.grid {
		grid-template-columns: 1fr;
	}
	.section-heading {
		flex-wrap: wrap;
	}
	.section-heading > .tag {
		max-width: none;
	}
	.stat strong {
		font-size: 23px;
	}
	.stat span {
		font-size: 9px;
	}
	.welcome-form {
		padding: 22px;
	}
	.welcome-copy h2 {
		font-size: 28px;
	}
	.capital {
		padding: 10px;
		font-size: 11px;
	}
	.capital strong {
		font-size: 19px;
	}
	.tutorial-head {
		gap: 8px;
	}
	.form-row {
		grid-template-columns: 1fr;
	}
	.quote-details > div {
		font-size: 12px;
	}
	.workshop-grid button {
		font-size: 11px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
@media (max-width: 390px) {
	.brand small {
		display: none;
	}
	.brand {
		letter-spacing: 0.02em;
	}
	.brand-mark {
		flex-shrink: 0;
	}
}
.credits-page {
	display: block;
	max-width: 1150px;
}
.credits-page h1 {
	margin-top: 12px;
}
.credits-page .grid {
	margin-top: 25px;
}
.credits-page article h3 {
	font-size: 15px;
}
.credits-page article p {
	font-size: 12px;
}
footer .sync-button {
	font-size: 10px;
	min-height: 30px;
	padding: 4px 7px;
}
.equipment .photo img {
	object-fit: contain;
	background: #212923;
}
.product:has(img[src*="man"]) .photo img,
.product:has(img[src*="tgx"]) .photo img {
	object-position: center 65%;
}
