:root {
  color-scheme: dark;
  --canvas: #040404;
  --glass-fill: linear-gradient(162deg, #ffffff08, transparent 52%, #0005), linear-gradient(#08080862, #08080862);
  --glass-raised: linear-gradient(180deg, #ffffff12, #ffffff05), #08080868;
  --glass-recess: #0006;
  --glass-edge: inset 0 0 0 1px #ffffff0c, inset 0 -2px 5px -3px #000;
  --glass-inset: inset 0 1px #ffffff14, inset 0 -1px #0008;
  --glass-shadow: var(--glass-edge), 0 16px 36px -22px #000f, 0 4px 12px #0006;
  --glass-rim: radial-gradient(ellipse 62% 28px at 19% 0%, #ffffff91, #ffffff22 50%, transparent 100%),
    radial-gradient(ellipse 45% 20px at 90% 100%, #ffffff38, transparent 100%);
  --glass-blur: blur(14px);
  --type: #f2f2f2;
  --soft: #c3c3c3;
  --muted: #ababab;
  --lime: #dfff51;
  --cyan: #91f0da;
  --amber: #efd07d;
  --red: #ff9b94;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --body-weight: 350;
  --label-weight: 425;
  --display: "HS Luna Obscura", var(--body);
  --radius: 16px;
  --instrument-radius: 20px 13px 20px 13px;
  --gutter: clamp(20px, 3.2vw, 50px);
  font-family: var(--body);
  font-weight: var(--body-weight);
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--type);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px; min-height: 100vh;
  background: radial-gradient(ellipse 72% 51% at 82% 8%, #151515, transparent 75%),
    radial-gradient(ellipse 58% 32% at 53% 70%, #0d0d0d, transparent 78%), var(--canvas);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; }
button:enabled { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3, strong, b { font-weight: var(--label-weight); }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.icon-art { position: relative; background: var(--interface-icons) no-repeat; background-size: 400% 400%; filter: drop-shadow(0 1px 2px #0006); }
.icon-art.icon-alert { filter: hue-rotate(-64deg) drop-shadow(0 1px 2px #0006); }
.icon-route-done::after { content: ""; position: absolute; inset: -2px -2px auto auto; width: 63%; height: 63%; background: var(--interface-icons) 100% 66.667% / 400% 400% no-repeat; filter: drop-shadow(0 1px 2px #000); }
.icon-chevron { display: inline-grid; place-items: center; }
.icon-chevron::before { content: ""; width: 40%; height: 40%; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-18%) rotate(45deg); }
.micro { font: 400 0.72rem/1.4 var(--body); letter-spacing: 0.055em; color: var(--muted); text-transform: uppercase; }
.dim { color: var(--muted); }
.success { color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.money { display: inline-flex; align-items: center; justify-content: end; gap: 5px; white-space: nowrap; vertical-align: middle; }
.currency-card {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 1.43em; height: .98em; border-radius: .14em;
  clip-path: polygon(0 0, 83% 0, 100% 25%, 100% 100%, 0 100%);
  background: linear-gradient(152deg, #f8f9fa, #c9cbd0 35%, #afb4ba 52%, #e5e7eb 80%, #b2b5ba);
  box-shadow: inset 0 1px #fff9, inset 0 -1px #62666d80;
  color: #24262b;
}
.currency-card::before { content: 'С'; font: 650 .81em/1 var(--body); }
.currency-card::after { content: ''; position: absolute; top: 50%; left: 51%; width: max(1px, .08em); height: .72em; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(16deg); }

.shell { display: grid; grid-template-columns: 11rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 23px 12px 19px; background: #0606068c; backdrop-filter: var(--glass-blur); box-shadow: inset -1px 0 #ffffff13, 8px 0 36px #0006; z-index: 2; }
.brand { display: flex; align-items: center; min-height: 34px; padding: 0; margin: 0 2px; border: 0; background: transparent; }
.brand img { display: block; width: 100%; height: auto; mix-blend-mode: lighten; }
.nav { display: grid; gap: 4px; margin-top: 53px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 43px; width: 100%; padding: 6px 10px; color: var(--soft); background: transparent; border: 0; border-radius: 10px 5px 10px 5px; text-align: left; font-size: 0.88rem; font-weight: var(--label-weight); line-height: 1.22; transition: background 160ms, color 160ms; }
.nav-item .icon { width: 25px; height: 25px; }
.nav-item [data-icon] { flex: none; }
.nav-item[data-view="dispatcher"] { gap: 6px; padding-inline: 7px; white-space: nowrap; }
.nav-lock { margin-left: auto; color: var(--muted); }
.nav-item .nav-lock .icon { width: 12px; height: 12px; }
.nav-primary { background: var(--glass-raised); color: var(--type); }
.nav-auxiliary { margin-top: 10px; }
.nav-item:hover { background: var(--glass-raised); color: var(--type); }
.nav-item.selected { background: var(--glass-raised); box-shadow: inset 2px 0 var(--lime), var(--glass-inset); color: var(--lime); }
.sidebar-bottom { display: grid; gap: 11px; margin-top: auto; padding-top: 15px; }
.connection { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--soft); font-size: 0.85rem; }
.connection i, .status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px #d9fb6680; }
.status-dot.waiting { background: var(--amber); box-shadow: 0 0 11px #efd07d80; animation: blink 2.5s ease-in-out infinite; }
.status-dot.neutral { background: var(--muted); box-shadow: none; }
.toggle { position: relative; margin-left: auto; width: 31px; height: 18px; border-radius: 999px; background: #0808088c; }
.toggle::before { content: ""; position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; border-radius: 50%; background: #a8a8a8; transition: transform 140ms, background 140ms; }
.toggle.on { background: #dfff5127; }
.toggle.on::before { transform: translateX(13px); background: var(--lime); }
.connection.disconnected i { background: var(--amber); box-shadow: none; }
.game-notices { display: grid; gap: 6px; margin: 12px var(--gutter) 0; }
.game-notices[hidden] { display: none; }
.game-notices > div, .trip-explainer, .answer-review {
  padding: 9px 12px; border-radius: 10px; background: var(--glass-raised); color: var(--soft); line-height: 1.4;
}
.game-notices > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.trip-explainer { margin-top: 12px; }
.board-notice { margin-top: 6px; color: var(--amber); font-size: .82rem; }
.answer-review { margin-block: 10px; }
.answer-review summary { cursor: pointer; color: var(--type); }
.answer-review p { margin-top: 6px; }
.franchise-nav {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 8px;
  border: 0; border-radius: 10px 5px 10px 5px; background: var(--glass-raised);
  color: #ffab6a; font-weight: var(--label-weight); font-size: .85rem; line-height: 1.18; text-align: left;
  box-shadow: 0 0 12px #ff924425, inset 0 0 0 1px #ff92444a; animation: franchise-glow 2.7s ease-in-out infinite;
}
.franchise-nav .icon { width: 22px; height: 22px; }
.franchise-nav:hover, .franchise-nav.selected { background: linear-gradient(155deg, #ff98452a, #0a0a0a9c); }
.franchise-nav.has-franchisees { color: var(--lime); background: var(--glass-raised); box-shadow: inset 0 0 0 1px #dfff5150; animation: none; }
.franchise-nav.has-franchisees:hover, .franchise-nav.has-franchisees.selected { box-shadow: inset 0 0 0 1px var(--lime); }
@keyframes franchise-glow {
  50% { box-shadow: 0 0 19px #ff924450, inset 0 0 0 1px #ff9244a3; }
}
.main-shell { min-width: 0; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px var(--gutter); background: #07070773; box-shadow: inset 0 -1px #ffffff13; backdrop-filter: var(--glass-blur); }
.wallet { display: flex; align-items: center; gap: 11px; }
.topbar-controls { display: flex; align-items: center; gap: 8px; }
.account-nav { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 9px 5px 9px 5px; background: var(--glass-raised); color: var(--soft); font-size: .81rem; font-weight: var(--label-weight); white-space: nowrap; }
.account-nav .icon { width: 21px; height: 21px; }
.account-nav:hover, .account-nav.selected { background: var(--glass-raised); color: var(--lime); }
.account-nav.signed-in .icon { color: var(--lime); }
.wallet .icon { color: var(--lime); width: 17px; height: 17px; }
.wallet { padding: 7px 12px; border-radius: 12px 6px 12px 6px; background: var(--glass-raised); box-shadow: var(--glass-inset); }
.wallet[hidden] { display: none; }
.wallet-label { font: 0.73rem var(--body); color: var(--soft); text-transform: uppercase; }
.wallet strong { font: 0.89rem var(--display); white-space: nowrap; }
.wallet .currency-card { margin-left: 4px; font-size: 1.08rem; }
.screen { width: min(100%, 1640px); margin: 0 auto; padding: 30px var(--gutter) 52px; }
.view-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
h1 { font: clamp(1.5rem, 2.78vw, 3rem)/1.12 var(--display); letter-spacing: -0.035em; }
.view-heading p { margin-top: 11px; color: var(--soft); font-size: 0.99rem; }
.panel, .garage-card, .market-item, .director-panel, .licence-card, .route-row, .scene-wrap { background: var(--glass-fill); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); }
:where(.panel:not(.repair-kit), .garage-card-body, .market-item, .director-panel, .licence-card, .route-row, .scene-wrap) { position: relative; }
:where(.panel:not(.repair-kit), .garage-card-body, .market-item, .director-panel, .licence-card, .route-row, .scene-wrap, .purchase-dialog, .walk-visual)::after {
  content: ""; position: absolute; z-index: 1; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--glass-rim); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.panel { min-width: 0; border-radius: var(--radius); }
.panel h2 { font-size: 1.14rem; letter-spacing: -0.025em; }
.panel-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel .panel-heading h2 { font: 0.92rem/1.3 var(--display); }
.section-heading h2 { font: 1.12rem/1.25 var(--display); letter-spacing: -0.03em; }
.tag, .status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 28px; padding: 3px 9px; border-radius: 999px; background: var(--glass-raised); box-shadow: var(--glass-inset); color: var(--soft); font: 0.73rem/1.25 var(--body); white-space: nowrap; }
.status-pill { gap: 9px; padding-inline: 11px; color: var(--type); font: var(--label-weight) 0.78rem/1.25 var(--body); letter-spacing: 0.015em; }
.status-pill.success { color: var(--lime); background: #dfff5114; }
.status-pill .icon { width: 15px; height: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 13px; border: 0; border-radius: 9px 4px 9px 4px; font: var(--label-weight) 0.79rem/1.2 var(--body); letter-spacing: 0.035em; text-transform: uppercase; transition: background 150ms, color 150ms, box-shadow 170ms, transform 150ms; }
.button .icon { width: 16px; height: 16px; }
.button .icon-art { width: 20px; height: 20px; }
.button:enabled:active { transform: translateY(1px); }
.button.outline { color: var(--type); background: var(--glass-raised); box-shadow: var(--glass-inset); }
.button.outline:enabled:hover { color: var(--lime); background: #ffffff14; }
.button.outline:disabled, .button.primary:disabled { color: #adadad; background: #ffffff0b; box-shadow: none; }
.button.primary { min-height: 42px; padding-inline: 17px; color: #090909; background: var(--lime); box-shadow: inset 0 1px #fff7, 0 2px 13px #dfff512a; }
.button.primary:enabled:hover { box-shadow: inset 0 0 0 1px #fff9, 0 2px 18px #dfff5155; }
.button.primary:focus-visible { outline-offset: -4px; outline-color: #171717; }
.button.danger { color: #ffc1bc; background: #482329; }
.button.danger:enabled:hover { color: #ffe3df; background: #672d35; }
.button.danger:focus-visible { outline-color: #ff8a80; }
.purchase-dialog {
  width: min(calc(100% - 32px), 440px);
  padding: clamp(16px, 4vw, 26px);
  border: 0;
  border-radius: var(--instrument-radius);
  background: var(--glass-fill), #0707079c;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  color: var(--type);
}
.purchase-dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
.purchase-dialog form { display: grid; gap: 14px; }
.purchase-dialog h2 { margin: 0; font: 1.15rem/1.3 var(--display); }
.purchase-dialog p { margin: 0; font-size: 1rem; }
.purchase-amount { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--glass-recess); color: var(--soft); }
.purchase-amount[hidden] { display: none; }
.purchase-amount strong { color: var(--type); font-family: var(--mono); }
.purchase-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.station { padding: 18px clamp(15px, 1.6vw, 25px); }
.station .panel-heading { margin-bottom: 16px; }
.fleet-meter { display: flex; align-items: center; gap: 14px; min-height: 92px; }
.fleet-meter > div:last-child { min-width: 0; }
.fleet-meter .micro { font-size: 0.63rem; }
.meter-title { margin: 3px 0; font: 500 clamp(1.14rem, 1.65vw, 1.6rem)/1.2 var(--mono); letter-spacing: -0.065em; }
.fleet-caption { color: var(--soft); font-size: 0.84rem; }
.fleet-caption b, [data-charge-time] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fleet-actions { margin-top: 16px; }
.fleet-actions .button { width: 100%; }
.dial {
  --dial-width: 5px;
  --dial-angle: calc(var(--level, 0) * 2.7deg);
  position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 1; border-radius: 50%;
  color: var(--charge-color, var(--lime));
  background: radial-gradient(circle at 50% 44%, color-mix(in srgb, currentColor 8%, #161616), #121212 61%, #252525);
  box-shadow: inset 0 0 0 1px #ffffff15, 0 4px 12px #0005;
}
.dial-arc { position: absolute; inset: 6px; border-radius: 50%; filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 52%, transparent)); }
.dial-arc::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 225deg, currentColor 0 var(--dial-angle), color-mix(in srgb, currentColor 19%, #202020) 0 270deg, transparent 0);
  mask: radial-gradient(circle closest-side, transparent calc(100% - var(--dial-width)), #000 calc(100% - var(--dial-width) + .6px) calc(100% - .45px), transparent);
}
.ring { width: clamp(72px, 6.7vw, 94px); font: 500 clamp(1.16rem, 2vw, 1.9rem)/1 var(--mono); letter-spacing: -.075em; }
.ring > span { position: relative; display: flex; align-items: baseline; color: var(--type); }
.ring-fractional > span { font-size: .84em; }
.ring small { margin-left: 2px; color: var(--soft); font: .6em var(--mono); letter-spacing: -.06em; }
.ring-small { --dial-width: 4px; width: 54px; font-size: .96rem; }
.ring-small .dial-arc { inset: 4px; }
.orders { min-width: 0; }
.orders .section-heading { margin-bottom: 11px; }
.route-list { display: grid; gap: 8px; }
.route-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 69px; padding: 9px 11px; border-radius: var(--radius); }
.route-row:not(.route-locked) .route-icon { color: var(--licence-color); }
.route-icon { width: 39px; height: 39px; display: inline-grid; place-items: center; flex: none; border-radius: 9px; color: var(--lime); background: var(--glass-recess); }
.route-locked .route-icon { color: var(--soft); }
.order-title h3 { font-size: 0.95rem; }
.order-title p { margin-top: 3px; color: var(--muted); font-size: 0.78rem; }
.order-energy { display: flex; justify-content: center; align-items: center; gap: 3px; white-space: nowrap; font: 0.84rem var(--mono); color: var(--soft); }
.order-energy .icon { width: 14px; height: 14px; color: var(--lime); }
.license-trip-range { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.license-trip-range > span { white-space: nowrap; }
.route-button { background: var(--glass-raised); color: var(--lime); box-shadow: var(--glass-inset); }
.route-button:hover { background: var(--lime); color: #090909; }
.route-row .button { min-height: 35px; font-size: 0.8rem; }

.trip-heading { flex-wrap: wrap; margin-bottom: 23px; }
.trip-heading .micro { display: block; margin-bottom: 8px; }
.calibration-source { margin-top: 6px; color: var(--soft); font-size: .9rem; }
.trip-status { flex-shrink: 0; }
.trip-controls { display: grid; justify-items: end; gap: 6px; margin-inline-start: auto; }
.cancel-calibration.button { min-height: 29px; padding: 4px 9px; font-size: .67rem; letter-spacing: .015em; text-transform: none; }
.trip-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 16px; }
.scene-wrap { overflow: hidden; min-width: 0; border-radius: var(--radius); }
.scene-image { isolation: isolate; position: relative; overflow: hidden; display: grid; align-items: center; min-height: 335px; aspect-ratio: 1.75; background: radial-gradient(ellipse at 50% 50%, #282828, #0b0b0b 72%); }
.scene-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.stage-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 19px; background: var(--glass-raised); color: var(--soft); font-size: 0.84rem; }
.stage-bars { display: flex; flex: 1; gap: 4px; }
.stage-bars span { flex: 1; min-width: 12px; height: 4px; background: #303030; border-radius: 999px; }
.stage-bars .current { background: var(--lime); }
.stage-bars .done { background: #dfff5166; }
.decision { padding: clamp(16px, 1.75vw, 27px); }
.decision h2 { margin: 9px 0 17px; font-size: clamp(1.16rem, 1.5vw, 1.48rem); line-height: 1.26; }
.answers { display: grid; gap: 8px; }
.answer { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 7px 9px; border: 0; border-radius: 10px; background: var(--glass-raised); box-shadow: var(--glass-inset); text-align: left; line-height: 1.3; font-size: 0.9rem; transition: background 150ms; }
.answer:enabled:hover { background: #dfff5122; }
.answer:disabled:not(.incorrect, .correct-answer) { color: var(--soft); }
.answer kbd { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: #0c0c0c5c; flex: none; color: var(--type); font: 0.72rem var(--mono); }
.answer.correct-answer { color: #fff2c4; background: #e8b73b3d; box-shadow: inset 0 0 0 1px #e8b73b94, var(--glass-inset); }
.answer.correct-answer kbd { color: #ffe392; background: #e8b73b29; }
.answer.incorrect { color: #ffccc5; background: #cb6c654b; }
.answer.incorrect kbd { color: #ffccc5; }
.answer.incorrect .icon { margin-left: auto; color: var(--red); width: 15px; height: 15px; }
.response { display: flex; align-items: center; gap: 8px; min-height: 43px; margin-top: 12px; padding: 8px 11px; border-radius: 10px; background: #dfff5110; font-size: 0.87rem; animation: frame-in 200ms ease-out; }
.response.failure { color: var(--red); background: linear-gradient(140deg, #c0726248, #6b32365c); }
.response .icon { width: 17px; height: 17px; }
.continue { margin-top: 9px; width: 100%; }
.auto-summary p { margin: 14px 0 16px; color: var(--soft); }
.auto-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: #dfff5114; color: var(--lime); box-shadow: 0 0 21px #dfff5120; }
.auto-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #313131; }
.auto-progress::before { content: ""; display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left; animation: progress 2.1s linear both; }
.trip-fleet { display: grid; grid-template-columns: minmax(255px, 360px); margin-top: 15px; }
#journal-title:focus { outline: none; }
.journal-list { display: grid; gap: 9px; }
.journal-entry { border-radius: var(--instrument-radius); }
.journal-entry[open] { background: radial-gradient(ellipse at 12% 10%, #ededed16, transparent 68%), var(--glass-fill); }
.journal-entry summary { position: relative; display: grid; grid-template-columns: minmax(125px, 1.5fr) repeat(5, minmax(0, 1fr)) 16px; gap: 7px 11px; align-items: center; padding: 14px clamp(12px, 1.6vw, 22px); list-style: none; cursor: pointer; border-radius: inherit; }
.journal-entry summary::-webkit-details-marker { display: none; }
.journal-entry summary:is(:hover, :focus-visible) { background: #ededed0e; }
.journal-entry summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.journal-ident { display: flex; gap: 8px; align-items: start; min-width: 0; }
.journal-ident > .icon { width: 18px; height: 18px; color: var(--cyan); margin-top: 1px; }
.journal-ident > div { display: grid; gap: 3px; }
.journal-ident strong { font-size: .91rem; }
.journal-ident span, .journal-ident time { color: var(--muted); font-size: .73rem; }
.journal-ident time { font-family: var(--mono); }
.journal-metric { min-width: 0; display: grid; justify-items: start; gap: 4px; }
.journal-metric small { color: var(--muted); font-size: .71rem; }
.journal-metric strong { font: 500 .84rem/1.2 var(--mono); }
.journal-metric.has-impact strong { color: var(--red); }
.journal-wear { display: contents; }
.journal-expand .icon { width: 16px; height: 16px; color: var(--soft); }
.journal-entry[open] .journal-expand .icon { transform: rotate(180deg); }
.report-details { margin: 0 clamp(12px, 1.6vw, 22px) 12px; padding: 11px; border-radius: 10px; background: var(--glass-recess); }
.report-costs { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 0; }
.report-costs > div { display: inline-flex; align-items: baseline; gap: 5px; font-size: .78rem; }
.report-costs dt { color: var(--muted); }
.report-costs dd { margin: 0; color: var(--type); font-family: var(--mono); white-space: nowrap; }
.report-incidents { display: grid; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; }
.report-incidents li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 9px; border-radius: 7px; background: #38212391; }
.report-incidents li > .icon, .incident-cost { color: var(--red); }
.report-incidents strong, .report-incidents small { display: block; }
.report-incidents strong { font-size: .83rem; }
.report-incidents small { margin-top: 4px; color: var(--soft); font-size: .73rem; }
.incident-cause { display: grid; gap: 5px; margin-top: 9px; padding: 8px 10px; border-radius: 8px; background: var(--glass-recess); color: var(--type); font-size: .79rem; line-height: 1.4; }
.incident-cause > strong, .incident-answer > span { color: var(--red); }
.incident-answer > span { display: block; margin-bottom: 2px; font-size: .71rem; }
.incident-cost { text-align: right; font-family: var(--mono); }
.report-clean, .report-note { margin-top: 9px; color: var(--soft); font-size: .78rem; }
.report-clean .icon { width: 15px; height: 15px; margin-right: 3px; color: var(--lime); }
.journal-empty, .journal-in-progress > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; }
.journal-empty > .icon { color: var(--cyan); }
.journal-empty p, .journal-in-progress small { color: var(--muted); font-size: .78rem; }
.journal-empty p { margin-top: 4px; }
.journal-empty > .button, .journal-in-progress .button { margin-left: auto; min-height: 32px; }
.journal-in-progress { margin-bottom: 12px; }
.journal-in-progress > div + div { margin-top: 4px; }
.journal-in-progress > div > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.journal-in-progress strong { font-size: .88rem; }
.journal-note, .journal-more { margin-top: 11px; }
.journal-note { color: var(--muted); font-size: .78rem; }
.journal-ident .journal-origin, .journal-origin { width: fit-content; max-width: 100%; border-radius: 6px; padding: 3px 6px; background: #ffffff12; color: var(--type); font-size: .69rem; }
.journal-ident .journal-origin.is-dispatcher, .journal-origin.is-dispatcher { background: #91f0da20; color: var(--cyan); }
.journal-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: 8px; padding: 12px; margin-bottom: 12px; }
.journal-filters label { display: grid; gap: 4px; min-width: 0; color: var(--soft); font-size: .76rem; }
.journal-filters input, .journal-filters select { width: 100%; min-width: 0; min-height: 34px; padding: 4px 6px; border-radius: 7px; border: 0; background: var(--glass-recess); color: var(--type); font: .79rem var(--body); }
.journal-filters option { background: #222; color: var(--type); }
.journal-filters > div { display: flex; align-items: end; gap: 5px; flex-wrap: wrap; }
.journal-filters .button { min-height: 34px; padding-inline: 8px; font-size: .68rem; }

.garage-heading { align-items: baseline; flex-wrap: wrap; gap: 6px 15px; margin-bottom: 20px; }
.garage-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; }
.garage-heading-actions .button { min-height: 34px; text-decoration: none; }
.garage-heading h1, .market-heading h1, .service-heading h1, .franchise-view h1 { font-size: clamp(1.76rem, 4vw, 3.52rem); text-transform: uppercase; }
.vehicle-tint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.filter-defs { position: absolute; }
.hazard {
  position: absolute; top: var(--lamp-top); left: var(--lamp-left); width: var(--lamp-width); height: .95%;
  border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--lamp-angle)); opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse, #ffecb9 5%, #ffc360 32%, #fc931ded 49%, #e977164b 69%, transparent 75%);
  filter: drop-shadow(0 0 .18cqw #fc90164f);
}
.hazard-near { --lamp-left: 45.3%; --lamp-top: 50.4%; --lamp-width: 2.5%; --lamp-angle: -51deg; }
.hazard-far { --lamp-left: 12.9%; --lamp-top: 51%; --lamp-width: 1.05%; --lamp-angle: -72deg; }
.signals-on .hazard { animation: hazards 1.83s cubic-bezier(.35, .05, .55, 1) infinite; }

.garage-fleet { margin-bottom: 16px; }
.garage-list { display: grid; gap: 11px; }
.garage-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(276px, 1fr); align-items: stretch;
  border-radius: var(--instrument-radius); overflow: hidden; background: transparent;
}
.garage-car-art { position: relative; min-width: 0; min-height: 211px; overflow: hidden; background: #000; }
.garage-car-art, .assignment-car { display: grid; place-items: center; }
.garage-photo-stage { position: relative; width: min(100%, 640px); container-type: inline-size; }
.garage-photo-stage img { display: block; width: 100%; height: auto; }
.vehicle-photo-number {
  position: absolute; top: 50%; left: 77.3%; transform: translate(-50%, -50%) rotate(-5deg) skewX(-12deg) scaleX(.84);
  color: #0d1109; font: 700 3.1cqw/1 var(--mono); letter-spacing: -.04em; mix-blend-mode: multiply; user-select: none; pointer-events: none;
}
.garage-card-body { min-width: 0; display: grid; align-content: center; gap: 13px; padding: clamp(13px, 1.8vw, 25px); border-radius: 0 13px 20px 0; background: var(--glass-fill); box-shadow: var(--glass-edge); }

.franchise-view { max-width: 940px; }
.franchise-panel { display: grid; gap: 14px; padding: clamp(15px, 2vw, 25px); margin-bottom: 13px; }
.franchise-link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.franchise-link-row input {
  flex: 1 1 16rem; min-width: 0; min-height: 42px; color: var(--type);
  padding: 8px 12px; border: 0; border-radius: 9px 4px 9px 4px;
  background: var(--glass-recess); font: .79rem var(--mono); text-overflow: ellipsis;
}
.franchise-link-row input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.franchise-note { color: var(--soft); font-size: .86rem; line-height: 1.5; }
.franchise-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 154px), 1fr)); gap: 8px; margin: 0; }
.franchise-rewards > div { display: grid; gap: 7px; padding: 13px; border-radius: 12px; background: var(--glass-recess); }
.franchise-rewards dt { color: var(--soft); font-size: .79rem; }
.franchise-rewards dd { margin: 0; font: 650 clamp(1.12rem, 2.4vw, 1.52rem)/1.25 var(--mono); }
.franchise-rewards > div:nth-child(2) dd { color: var(--lime); }
.franchise-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.franchise-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 11px 13px; border-radius: 10px; background: var(--glass-recess); }
.franchise-list li > div { display: grid; align-content: center; gap: 3px; }
.franchise-list li > div > span, .franchise-list time { color: var(--soft); font-size: .72rem; }
.franchise-list li strong { font-size: .88rem; overflow-wrap: anywhere; }

.account-view { max-width: 650px; }
.account-panel { display: grid; justify-items: start; gap: 15px; padding: clamp(16px, 3vw, 30px); border-radius: var(--instrument-radius); }
.account-switch, .account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-switch .button[aria-pressed="true"] { color: var(--lime); background: #dfff5118; }
.account-form { display: grid; justify-items: start; gap: 12px; width: min(100%, 390px); }
.account-form label { display: grid; gap: 6px; width: 100%; font-size: .86rem; font-weight: var(--label-weight); }
.account-form input {
  display: block; min-width: 0; width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 9px 5px 9px 5px;
  background: var(--glass-recess); color: var(--type); font: 400 1rem/1.3 var(--body);
}
.account-form input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.account-form input[name="code"] { width: min(100%, 13rem); font: 500 1.1rem var(--mono); letter-spacing: .19em; }
.account-help, .account-message { color: var(--soft); font-size: .86rem; line-height: 1.48; }
.account-help strong { overflow-wrap: anywhere; }
.account-help a { color: var(--lime); text-underline-offset: .15em; }
.account-message { color: var(--red); }
.account-message.success { color: var(--lime); }
.account-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; width: 100%; }
.account-profile > div { min-width: 0; overflow-wrap: anywhere; }
.account-profile p { margin-top: 3px; color: var(--soft); }
.account-emblem { display: grid; flex: none; place-items: center; width: 45px; height: 45px; border-radius: 12px 6px 12px 6px; background: var(--glass-raised); color: var(--lime); }
.account-progress { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 9px 13px; background: var(--glass-recess); border-radius: 9px; }
.account-progress strong { color: var(--lime); font: .9rem var(--mono); }
.account-password { width: 100%; border-top: 1px solid #ffffff16; padding-top: 15px; }
.account-password h2 { margin-bottom: 12px; }
.garage-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.garage-card-heading h2 { font: clamp(1.23rem, 2.1vw, 2.02rem)/1.11 var(--display); letter-spacing: -.055em; }
.garage-card-heading .status-pill { font-size: .75rem; }
.board-license { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--soft); font-size: .83rem; }
.board-license .icon { width: 17px; height: 17px; color: var(--licence-color); }
.board-license strong { color: var(--type); }
.garage-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.garage-charge, .garage-metric { min-width: 0; padding: 9px 11px; border-radius: 11px; background: var(--glass-recess); }
.garage-charge { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; padding-block: 7px; }
.garage-charge-detail, .garage-metric { display: grid; align-content: start; justify-items: start; gap: 4px; }
.garage-battery-icon { display: block; width: clamp(48px, 6.3vw, 88px); height: 49px; margin-left: auto; object-fit: contain; mix-blend-mode: lighten; }
.garage-charge .ring { --dial-width: 5px; width: 65px; font-size: 1.11rem; }
.garage-charge .micro, .garage-metric .micro { font-size: .70rem; }
.garage-charge small { color: var(--soft); font-size: .75rem; }
.garage-metric strong { font: 500 clamp(.99rem, 1.55vw, 1.42rem)/1.1 var(--mono); white-space: nowrap; }
.garage-metric strong small { color: var(--muted); font-size: .61em; }
.wear-track { --signal: var(--amber); width: 100%; }
.garage-metric .wear-track { height: 4px; margin-top: 2px; }
.garage-card-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.garage-card-actions .button { min-height: 37px; }
.button.active-trip-button { gap: 8px; background: linear-gradient(130deg, #163d65d9, #102a45d9); color: #eaf6ff; animation: active-trip-glow 2.8s ease-in-out infinite; }
.button.active-trip-button:hover { background: linear-gradient(130deg, #1d4b7bd9, #123253d9); }
.board-trip-clock { padding: 3px 5px; border-radius: 4px; background: #071c32a6; color: #ccecff; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes active-trip-glow {
  0%, 100% { box-shadow: 0 0 4px #338fff42, inset 0 0 7px #428fff23; }
  50% { box-shadow: 0 0 15px #3895ff77, inset 0 0 10px #72c5ff4d; }
}
.power-time { display: inline-block; color: var(--cyan); font: 500 .77rem var(--mono); }
.charging-dot { background: var(--cyan); box-shadow: 0 0 8px #84ffd68f; }
.power-flow .garage-charge { animation: power-pulse 2.4s ease-in-out infinite; }

.market-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.market-item {
  display: grid; grid-template-columns: minmax(112px, .86fr) minmax(0, 1.14fr); gap: 15px;
  min-height: 166px; padding: 11px; border-radius: var(--instrument-radius);
}
.market-art { position: relative; display: grid; place-items: center; min-width: 0; min-height: 141px; overflow: hidden; border-radius: 15px 6px 15px 6px; background: radial-gradient(ellipse at 48% 56%, #26262672, transparent 79%), var(--glass-recess); }
.market-art > img { width: 100%; height: 141px; padding: 7px; object-fit: contain; }
.market-art-car { background: #000; }
.market-item-body { align-self: center; }
.market-item h3 { font-size: clamp(.93rem, 1.38vw, 1.17rem); line-height: 1.26; }
.market-item p { margin-top: 4px; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.market-full { margin: 13px 0; color: var(--soft); }

.director-hero {
  isolation: isolate; position: relative; display: grid; align-items: center; overflow: hidden;
  min-height: clamp(84px, 10vw, 126px); margin-bottom: 13px; padding: clamp(15px, 2.5vw, 31px);
  border-radius: var(--instrument-radius); background: #0b0b0b;
  box-shadow: var(--glass-shadow);
}
.director-hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; filter: grayscale(1) brightness(.88); }
.director-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0b0b0b 1%, #0b0b0bda 33%, transparent 72%), linear-gradient(0deg, #0909095c, transparent 52%); }
.director-hero h1 { font-size: clamp(1.12rem, 2.7vw, 2.8rem); line-height: 1.12; }
.director-overview { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: 13px; margin-bottom: 13px; }
.director-content { display: grid; gap: 13px; }
.director-period { color: var(--muted); font-size: .77rem; line-height: 1.35; }
.director-panel .director-period { margin-top: 8px; }
.director-panel { min-width: 0; padding: clamp(13px, 1.65vw, 21px); border-radius: var(--instrument-radius); }
.director-panel .panel-heading { flex-wrap: wrap; }
.director-panel h2 { font: clamp(.85rem, 1.3vw, 1.01rem)/1.25 var(--display); }
.director-panel dl, .director-panel dd { margin: 0; }
.director-panel dd { font: 500 .88rem/1.2 var(--mono); }
.fleet-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.director-number { position: relative; display: grid; align-content: start; gap: 5px; min-width: 0; padding: 10px; border-radius: 11px 5px 11px 5px; background: var(--glass-recess); }
.director-number > span { color: var(--soft); font-size: .75rem; line-height: 1.2; }
.director-number > strong { font: clamp(1.24rem, 2.2vw, 1.95rem)/1 var(--display); letter-spacing: -.05em; }
.director-number > small { color: var(--muted); font-size: .69rem; }
.fleet-size { isolation: isolate; overflow: hidden; }
.fleet-size img { position: absolute; z-index: -1; right: -3px; bottom: -6px; width: min(60%, 135px); height: 62px; object-fit: contain; opacity: .75; mix-blend-mode: lighten; mask-image: radial-gradient(ellipse at 52% 61%, #000 46%, transparent 89%); }
.autopilot-now { margin-top: 12px; }
.autopilot-now > strong { color: var(--lime); }
.daily-finance { --revenue-color: var(--lime); --fines-color: #ff797f; container-type: inline-size; }
.chart-periods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chart-periods .button { min-height: 35px; padding-inline: 10px; text-transform: none; }
.chart-periods .button[aria-pressed="true"] { background: #dfff5124; color: var(--lime); }
.daily-key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--soft); font-size: .79rem; }
.daily-key > span { display: inline-flex; align-items: center; gap: 6px; }
.daily-period { margin: 17px 0 8px; color: var(--soft); font: .76rem/1.3 var(--body); }
.daily-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.daily-totals > div { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 10px; border-radius: 10px 4px 10px 4px; background: var(--glass-recess); }
.daily-totals dt { color: var(--soft); font-size: .78rem; }
.daily-totals dd { font: 500 clamp(.88rem, 2.5cqi, 1.4rem)/1.2 var(--mono); letter-spacing: -.04em; }
.daily-totals dd .money { flex-wrap: wrap; justify-content: start; }
.daily-totals :is(.gross, .profit) { color: var(--revenue-color); }
.daily-totals .penalties { color: var(--fines-color); }
@container (max-width: 660px) {
  .daily-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chart-key { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 2px; }
.chart-key.gross, .daily-bar.gross { background: var(--revenue-color); }
.chart-key.penalties, .daily-bar.penalties { background: var(--fines-color); }
.daily-plot { --plot-height: clamp(122px, 14vw, 184px); display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); margin: 24px 0 7px; }
.daily-empty .daily-plot { --plot-height: 103px; }
.daily-axis { position: relative; height: var(--plot-height); }
.daily-axis > span { position: absolute; right: 7px; transform: translateY(50%); color: var(--muted); font: .68rem var(--mono); white-space: nowrap; }
.daily-scroll { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #7775 transparent; overscroll-behavior-inline: contain; }
.daily-scroll:focus-visible { outline: 1px solid var(--lime); outline-offset: 2px; }
.daily-track { --column-min: 46px; position: relative; min-width: max(100%, calc(var(--column-min) * var(--bucket-count))); height: var(--plot-height); margin-bottom: 23px; }
[data-chart-period="7d"] .daily-track { --column-min: 31px; }
[data-chart-period="3m"] .daily-track, [data-chart-period="all"] .daily-track { --column-min: 56px; }
.daily-gridline { position: absolute; inset-inline: 0; border-top: 1px solid #ededed24; }
.daily-gridline:first-child { transform: translateY(1px); }
.daily-columns { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--bucket-count), minmax(0, 1fr)); gap: 3px; padding-inline: 1px; }
.daily-column { appearance: none; min-width: 0; position: relative; padding: 0; border: 0; border-radius: 6px 6px 0 0; background: transparent; }
.daily-column:is(:hover:enabled, [aria-pressed="true"]) { background: #ededed0b; }
.daily-column:disabled .daily-date { opacity: .65; }
.daily-column:focus-visible { outline-offset: -2px; }
.daily-bar { position: absolute; bottom: 0; height: var(--size); width: min(27%, 26px); border-radius: 4px 4px 0 0; }
.daily-bar.gross { right: calc(50% + 2px); }
.daily-bar.penalties { left: calc(50% + 2px); }
.daily-date { position: absolute; inset-inline: 0; bottom: -20px; text-align: center; color: var(--muted); font: .64rem var(--mono); white-space: nowrap; }
.daily-column[aria-pressed="true"] .daily-date { color: var(--type); }
.daily-inspection { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; min-height: 32px; padding: 8px 10px; border-radius: 8px; background: var(--glass-recess); color: var(--soft); font-size: .78rem; }
.daily-inspection strong { color: var(--type); }
.daily-inspection .money { color: var(--type); margin-left: 3px; }
.director-panel .expense-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 6px; margin-top: 12px; }
.expense-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 3px 12px; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--glass-recess); }
.expense-list dt { color: var(--soft); font-size: .81rem; }
.expense-list .expense-total { grid-column: 1 / -1; background: var(--glass-raised); }
.expense-list .expense-return { color: var(--lime); }
.board-income-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 9px; margin-top: 12px; }
.board-income-card { min-width: 0; padding: 11px; border-radius: 10px; background: var(--glass-recess); }
.board-income-card h3 { color: var(--soft); font-size: .84rem; }
.board-income-card h3 > .icon { width: 15px; height: 15px; color: var(--board-color); margin-right: 3px; }
.board-income-card p { margin-top: 7px; color: var(--muted); font-size: .8rem; }
.board-earned { display: grid; justify-items: start; gap: 4px; margin: 10px 0; }
.board-earned strong { color: var(--type); font: 500 1.25rem var(--mono); }
.board-earned > span, .board-income-card dt { color: var(--muted); font-size: .77rem; }
.board-income-card dl > div { display: flex; justify-content: space-between; gap: 6px; padding-top: 4px; }
.director-license-list { display: grid; gap: 6px; margin-top: 12px; }
.director-license { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: 9px 15px; padding: 9px 11px; border-radius: 9px 4px 9px 4px; background: var(--glass-recess); }
.director-license h3 { display: flex; align-items: center; gap: 6px; font-size: .84rem; }
.director-license h3 .icon { width: 15px; height: 15px; color: var(--license-accent); }
.director-license p { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.director-license dl { display: grid; grid-template-columns: minmax(0, .65fr) repeat(2, minmax(0, 1fr)); gap: 7px; }
.director-license dt { margin-bottom: 3px; color: var(--soft); font-size: .72rem; }
.director-license-locked { grid-template-columns: minmax(0, 1fr); }
.director-license-locked h3 .icon { color: var(--muted); }
.director-view .dispatcher-panel { display: flex; flex-direction: column; align-items: stretch; }
.dispatcher-panel .status-pill { min-height: 23px; gap: 5px; padding-inline: 7px; font-size: .62rem; }
.dispatcher-panel .status-pill .icon { width: 12px; height: 12px; }
.dispatcher-panel .dispatcher-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.dispatcher-stats dt { color: var(--muted); font-size: .72rem; }
.dispatcher-panel .dispatcher-stats dd { margin-top: 4px; color: var(--type); }
.dispatcher-link { align-self: start; min-height: 31px; margin-top: auto; font-size: .69rem; }
.director-view .dispatcher-panel .director-period { margin-bottom: 12px; }
.dispatcher-access { display: grid; grid-template-columns: minmax(80px, 235px) minmax(0, 1fr); align-items: center; gap: clamp(12px, 2.5vw, 30px); max-width: 790px; padding: clamp(12px, 2vw, 24px); border-radius: var(--instrument-radius); }
.dispatcher-cabinet { display: grid; place-items: center; height: clamp(135px, 25vw, 257px); border-radius: 13px; overflow: hidden; background: var(--glass-recess); }
.dispatcher-cabinet img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.dispatcher-access h2 { margin: 10px 0 7px; font: clamp(.87rem, 1.6vw, 1.17rem)/1.3 var(--display); }
.dispatcher-access p { color: var(--soft); font-size: .89rem; line-height: 1.45; }
.dispatcher-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-top: 15px; }
.dispatcher-overview { margin-bottom: 12px; padding: 3px 16px; }
.dispatcher-overview .dispatcher-stats { max-width: 480px; }
.dispatcher-overview .dispatcher-stats dd { margin-left: 0; font: 500 1.05rem var(--mono); }
.assignment-list { display: grid; gap: 10px; }
.assignment-card { display: grid; grid-template-columns: clamp(104px, 19vw, 230px) minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 2vw, 22px); max-width: 980px; padding: 10px 14px 10px 10px; border-radius: var(--instrument-radius); }
.assignment-car { position: relative; min-height: 95px; overflow: hidden; border-radius: 13px 6px 13px 6px; background: #000; }
.assignment-detail { min-width: 0; }
.assignment-detail .panel-heading { flex-wrap: wrap; margin-bottom: 9px; }
.assignment-detail .status-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.assignment-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dispatch-switch, .dispatch-picker summary { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px; border: 0; border-radius: 8px 4px 8px 4px; background: var(--glass-recess); color: var(--type); font: var(--label-weight) .77rem/1.3 var(--body); }
.dispatch-switch:disabled { color: var(--muted); }
.dispatch-switch .toggle { flex: 0 0 31px; }
.dispatch-picker { position: relative; max-width: 100%; }
.dispatch-picker summary { list-style: none; cursor: pointer; }
.dispatch-picker summary::-webkit-details-marker { display: none; }
.dispatch-picker summary .icon { width: 14px; height: 14px; color: var(--lime); }
.dispatch-picker[open] summary .icon { transform: rotate(180deg); }
.dispatch-options { display: grid; gap: 4px; width: min(235px, 65vw); max-width: 100%; max-height: min(46vh, 290px); overflow-y: auto; padding: 6px; margin-top: 4px; border-radius: 10px; background: var(--glass-fill), #090909bb; box-shadow: var(--glass-shadow); }
.dispatch-options .button { justify-content: space-between; min-height: 29px; padding: 5px 8px; text-transform: none; text-align: start; }
.dispatch-options .button[aria-pressed="true"] { color: var(--lime); background: #dfff5118; }
.dispatch-options p { padding: 4px; color: var(--muted); font-size: .76rem; }
.assignment-license { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-top: 8px; padding: 4px 8px; background: var(--glass-recess); border-radius: 10px 5px 10px 5px; }
.assignment-license img { width: 62px; height: 37px; object-fit: contain; filter: hue-rotate(var(--licence-hue)); }
.assignment-license small { display: block; color: var(--muted); font-size: .68rem; }
.assignment-license strong { color: var(--licence-color); font-size: .8rem; }
.status-pill.calibration-alert, .status-pill.wear-alert, .garage-metric.wear-alert { color: var(--notice-color); background: color-mix(in srgb, var(--notice-color) 14%, #171717); animation: board-alert 1.65s ease-in-out infinite; }
.calibration-alert { --notice-color: #ffdb56; }
.wear-alert { --notice-color: #ff6965; }
.calibration-alert .status-dot, .wear-alert .status-dot { background: var(--notice-color); box-shadow: 0 0 8px var(--notice-color); }
.status-dot[data-charge-dot] { background: var(--charge-color); box-shadow: 0 0 8px color-mix(in srgb, var(--charge-color) 55%, transparent); }
.garage-metric.wear-alert strong, .garage-metric.wear-alert .micro { color: var(--notice-color); }
@keyframes board-alert { 0%, 100% { box-shadow: inset 0 0 4px transparent; } 50% { box-shadow: inset 0 0 13px color-mix(in srgb, var(--notice-color) 48%, transparent), 0 0 9px color-mix(in srgb, var(--notice-color) 26%, transparent); } }
.director-panel .director-fleet-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13px; margin-top: 11px; }
.director-fleet-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 6px 0; }
.director-fleet-stats .ready { background: var(--lime); }
.director-fleet-stats .active { background: #92b9ee; }
.director-fleet-stats .charging { background: var(--cyan); }
.director-fleet-stats .depot { background: #8b989a; }
.director-fleet-stats dt { display: inline-flex; align-items: baseline; gap: 7px; color: var(--soft); font-size: .77rem; }
.director-fleet-stats dt i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 1px; }
.director-panel .panel-heading > .button { min-height: 28px; padding-inline: 8px; font-size: .65rem; white-space: nowrap; }
.service-sections { display: grid; gap: 13px; }
.service-card { padding: clamp(13px, 2.15vw, 21px); border-radius: var(--instrument-radius); }
.service-card .panel-heading { flex-wrap: wrap; min-height: 28px; }
.service-tip { margin-top: 9px; color: var(--soft); font-size: .9rem; line-height: 1.45; }
.stock-list { margin-top: 9px; }
.stock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 11px; padding: 9px 11px; border-radius: 11px; background: var(--glass-recess); }
.stock-row + .stock-row { margin-top: 6px; }
.stock-item { display: grid; flex: 1 1 15rem; grid-template-columns: auto clamp(42px, 5.5vw, 68px) minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.stock-art { display: block; width: 100%; height: 48px; object-fit: contain; }
.stock-name { overflow-wrap: break-word; }
.stock-name strong, .stock-name small { display: block; }
.stock-name small { color: var(--soft); margin-top: 2px; }
.stock-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.stock-controls .button[aria-expanded="true"] { color: var(--lime); background: #dfff5118; }
.stock-row > .depot-targets { flex: 0 0 100%; margin: 0; }
.stock-sell.button { min-height: 27px; padding: 4px 7px; font-size: .67rem; }
.repair-tools { display: flex; justify-content: end; margin: 0 10px 8px; }
.loader-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.depot-targets { grid-column: 1 / -1; min-width: 0; padding: 9px 11px 11px; border: 0; border-radius: 11px; background: var(--glass-recess); }
.depot-targets legend { padding-inline: 5px; color: var(--soft); font: .75rem var(--body); }
.depot-targets > div { display: flex; flex-wrap: wrap; gap: 7px; }
.depot-targets .button { flex-direction: column; gap: 3px; max-width: 100%; text-align: start; text-transform: none; }
.depot-targets .button small { color: var(--soft); font-size: .67rem; }
.repair-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 11px; margin-top: 11px; }
.repair-kit { min-width: 0; border-radius: var(--instrument-radius); background: var(--glass-recess); box-shadow: none; backdrop-filter: none; }
.repair-toggle { display: grid; grid-template-columns: clamp(90px, 14vw, 170px) minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 1.35vw, 16px); width: 100%; padding: 9px 11px; border: 0; border-radius: inherit; background: transparent; color: var(--type); text-align: start; transition: background 150ms; }
.repair-toggle:hover, .repair-toggle[aria-expanded="true"] { background: #dfff5112; }
.repair-art { display: grid; place-items: center; height: 76px; border-radius: 10px 5px 10px 5px; background: var(--glass-recess); }
.repair-art img { width: 100%; height: 76px; padding: 4px; object-fit: contain; }
.repair-readout { display: grid; gap: 4px; min-width: 0; max-width: 340px; }
.repair-readout strong { font: clamp(.73rem, 1.2vw, 1.02rem)/1.3 var(--display); letter-spacing: -.025em; }
.repair-reserve { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; }
.repair-reserve b { color: var(--lime); font: 600 .87rem var(--mono); font-variant-numeric: tabular-nums; }
.repair-track { display: block; }
.repair-choose { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font: .71rem var(--body); }
.repair-choose .icon { width: 15px; height: 15px; color: var(--lime); transition: transform 160ms; }
.repair-toggle[aria-expanded="true"] .repair-choose .icon { transform: rotate(180deg); }
.repair-kit .depot-targets { margin: 3px 10px 10px; }
.depot-loader { display: grid; grid-template-columns: clamp(68px, 12vw, 142px) minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 11px; padding: 9px 11px; border-radius: 12px 5px 12px 5px; background: var(--glass-recess); }
.depot-loader-art { position: relative; height: 75px; overflow: hidden; border-radius: 12px 5px 12px 5px; background: var(--glass-recess); }
.depot-loader-art img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.depot-loader-body p { color: var(--soft); font-size: .82rem; }
.loader-activity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; }
.loader-activity strong { color: var(--cyan); font: 600 .88rem var(--mono); font-variant-numeric: tabular-nums; }
.loader-progress { --signal: var(--cyan); max-width: 260px; margin-top: 7px; }
.loader-tools .button:not(.stock-sell) { min-height: 35px; }
.product-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-top: 12px; }
.product-footer .button { min-height: 32px; }
.product-footer strong { font: 500 1rem var(--mono); white-space: nowrap; }
.skills-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-bottom: 15px; padding: 15px 19px; }
.toast { position: fixed; z-index: 5; right: 25px; bottom: 24px; max-width: calc(100% - 50px); padding: 11px 16px; border-radius: 13px 6px 13px 6px; background: var(--glass-fill), #080808a8; backdrop-filter: var(--glass-blur); color: var(--type); box-shadow: inset 2px 0 var(--lime), var(--glass-shadow); animation: frame-in 220ms ease-out; }

.trip-radar { display: flex; align-items: center; gap: 13px; padding: 9px 16px; background: var(--glass-recess); }
.round-map { --map-yellow: #ffda60; flex: none; width: 112px; height: auto; }
.map-deck { fill: #151515; }
.map-lot { fill: #292929; }
.map-building { fill: #3d3d3d; }
.map-park { fill: #234039; }
.map-park-walk { fill: none; stroke: #4d6c60; stroke-width: .65; }
.map-terrain { fill: none; stroke: #31574c; stroke-width: 1; }
.map-water { fill: none; stroke: #234953; stroke-width: 17; }
.map-streets path { fill: none; stroke: #525252; stroke-width: 1.8; stroke-linecap: round; }
.map-streets .map-artery { stroke: #727272; stroke-width: 3.4; }
.map-streets .map-lane { stroke: #a0aaaa; stroke-width: .55; stroke-dasharray: 2 4; opacity: .7; }
.map-line-case, .map-line, .map-complete { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-line-case { stroke: #141414; stroke-width: 7; }
.map-line { stroke: #51a6ac; stroke-width: 3.9; }
.map-complete { stroke: #98fce5; stroke-width: 3.9; }
.map-start { fill: #0c1519; stroke: var(--cyan); stroke-width: 1.6; }
.map-end { fill: var(--map-yellow); stroke: #25302c; stroke-width: 1.3; }
.map-car rect { fill: var(--charge-color, var(--lime)); stroke: #172222; stroke-width: 1.4; }
.map-car path { fill: #4c6539; }
.map-rim, .map-pulse { fill: none; stroke: var(--map-yellow); }
.map-rim { stroke-width: 1.4; opacity: .72; }
.map-pulse { stroke-width: 2.5; filter: drop-shadow(0 0 4px #ffd455); animation: map-pulse 3s ease-in-out infinite; }
.map-ticks { fill: none; stroke: #ffe491; stroke-width: 1; opacity: .74; }
@keyframes map-pulse {
  0%, 100% { opacity: .13; }
  50% { opacity: .9; }
}
.radar-readout { display: grid; gap: 4px; }
.radar-readout .micro { color: var(--cyan); }
.radar-readout .status-dot { width: 5px; height: 5px; background: var(--cyan); }
.radar-readout strong { font: 500 0.87rem/1.4 var(--mono); }
.radar-readout > span:not(.micro) { color: var(--muted); font-size: .8rem; }

@keyframes hazards {
  0%, 17%, 83%, 100% { opacity: 0; }
  39%, 56% { opacity: 1; }
}
@keyframes power-pulse { 50% { box-shadow: var(--glass-inset), inset 8px 0 28px #76f7c92a; } }
@keyframes frame-in { from { opacity: 0.32; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0.48; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1180px) {
  .route-row { grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 7px; }
  .route-row .route-icon { width: 33px; height: 33px; }
  .route-row .button { padding-inline: 8px; }
}

@media (max-width: 1000px) {
  .shell { grid-template-columns: 9.8rem minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .nav-item { padding-inline: 9px; font-size: 0.87rem; gap: 8px; }
  .nav-item[data-view="dispatcher"] { font-size: 0.82rem; }
  .trip-grid { grid-template-columns: 1fr; }
  .scene-image { min-height: 270px; aspect-ratio: 2.15; }
  .decision .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .director-overview { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 15px; }
  .shell { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr); height: auto; padding: 12px 15px 8px; box-shadow: 0 8px 26px #0006; }
  .brand { margin: 0; width: 8.65rem; }
  .sidebar-bottom { display: contents; }
  .franchise-nav { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .connection { display: none; }
  .nav { grid-row: 2; grid-column: 1/-1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; gap: 4px; }
  .nav-item { min-height: 34px; font-size: 0.84rem; }
  .nav-item[data-view="dispatcher"] { white-space: normal; }
  .nav-auxiliary { margin-top: 0; }
  .topbar { min-height: 53px; padding-inline: 15px; }
  .screen { padding: 25px 15px 34px; }
  .nav-lock { margin-left: 0; }
}

@media (max-width: 550px) {
  .account-nav > span:last-child { display: none; }
  .topbar-controls { gap: 5px; }
  .garage-card { grid-template-columns: 1fr; }
  .garage-card-body { border-radius: 0 0 20px 13px; }
  .garage-car-art { min-height: clamp(145px, 43vw, 206px); }
  .director-license { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 410px) {
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  body { min-width: 0; }
  .topbar { gap: 7px; }
  .wallet { padding-inline: 7px; }
  .wallet strong { font-size: .79rem; }
}

@media (max-width: 810px) {
  .market-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 465px) {
  :root { --gutter: 12px; }
  .sidebar, .topbar, .screen { padding-inline: 12px; }
  .nav-item { gap: 5px; padding-inline: 6px; font-size: 0.8rem; }
  .nav-item .icon { width: 20px; height: 20px; }
  .wallet-label { display: none; }
  .wallet { gap: 6px; min-height: 33px; }
  .view-heading { margin-bottom: 16px; }
  .view-heading p { font-size: 0.9rem; }
  .franchise-list li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .franchise-list li > div:first-child { grid-column: 1 / -1; }
  .route-row { grid-template-columns: 33px minmax(0, 1fr) auto; gap: 7px 8px; }
  .route-row .button { grid-column: 2 / -1; justify-self: start; }
  .trip-heading { align-items: start; flex-wrap: wrap; }
  .trip-status { font-size: 0.65rem; }
  .trip-heading h1 { font-size: clamp(1.4rem, 5.7vw, 1.8rem); }
  .scene-image { min-height: 224px; aspect-ratio: 1.6; }
  .stage-strip { padding: 10px 13px; }
  .decision .answers { grid-template-columns: 1fr; }
  .repair-choose > span { display: none; }
  .depot-loader { grid-template-columns: 66px minmax(0, 1fr); gap: 8px 12px; }
  .depot-loader > .loader-tools { grid-column: 2; justify-self: start; }
  .market-item { grid-template-columns: minmax(88px, .72fr) minmax(0, 1fr); min-height: 129px; padding: 8px; gap: 9px; }
  .market-art { min-height: 110px; }
  .market-art > img { height: 110px; padding: 5px; }
  .assignment-card { grid-template-columns: minmax(70px, 101px) minmax(0, 1fr); }
  .assignment-card .ring { display: none; }
  .dispatcher-access { grid-template-columns: minmax(0, 1fr); }
  .dispatcher-cabinet { height: 130px; }
}

.ticket-image { display: block; height: clamp(205px, 33vw, 416px); min-height: 0; aspect-ratio: auto; padding: 16px; }
.text-ticket { display: grid; place-items: center; min-height: 135px; height: auto; padding: 32px 16px; }
.text-ticket-mark { display: grid; place-items: center; gap: 8px; color: var(--muted); font: .76rem var(--body); }
.text-ticket-mark .icon { width: 34px; height: 34px; color: var(--lime); }
.live-trip { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; gap: 12px; }
.live-trip-map { display: grid; align-items: center; padding: clamp(12px, 2vw, 24px); }
.live-trip-map .trip-radar { padding: 0; background: transparent; }
.live-trip-map .round-map { width: clamp(128px, 17vw, 202px); }
.live-trip-map .map-complete { filter: drop-shadow(0 0 2px #82fced); }
.live-trip-map .map-car { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--charge-color, var(--lime)) 72%, transparent)); }
.live-trip-timer { display: grid; padding: clamp(16px, 2.25vw, 27px); align-content: center; }
.trip-clock { max-width: 100%; color: var(--type); font: 600 clamp(2.1rem, 5vw, 4rem)/1.2 var(--mono); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.segment-track { --step: 9px; position: relative; height: 7px; }
.segment-track::before, .segment-track > span, .segment-track > span::before { content: ""; position: absolute; inset: 0; border-radius: 3px; }
.segment-track::before, .segment-track > span::before {
  mask: repeating-linear-gradient(90deg, #000 0 calc(var(--step) - 2px), transparent 0 var(--step));
}
.segment-track::before { background: #2d393b; }
.segment-track > span { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--signal, var(--lime)) 51%, transparent)); }
.segment-track > span::before { background: linear-gradient(180deg, color-mix(in srgb, var(--signal, var(--lime)) 65%, #fff), var(--signal, var(--lime))); clip-path: inset(0 calc(100% - var(--level, 0) * 1%) 0 0 round 3px); }
.live-track { --signal: var(--cyan); --step: 12px; margin: 12px 0 16px; }
.licence-track { --signal: var(--licence-color); }
.live-trip-fare { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--soft); font: .86rem var(--mono); }
.live-trip-fare strong { color: var(--type); }

.licence-guide { margin-bottom: 15px; padding: clamp(14px, 2vw, 22px); color: var(--soft); font-size: .9rem; line-height: 1.45; }
.licence-guide p + p { margin-top: 6px; }
.licence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 242px), 1fr)); gap: 14px; }
.licence-card { min-width: 0; display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--instrument-radius); }
.licence-selected { background: radial-gradient(ellipse at 16% 0%, #ededed17, transparent 66%), var(--glass-fill); }
.licence-art {
  position: relative; display: grid; place-items: center; height: clamp(152px, 17vw, 212px); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 53% 58%, #3838383a, transparent 68%), var(--glass-recess);
}
.licence-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 26px 11px 4px; object-fit: contain; filter: hue-rotate(var(--licence-hue)) drop-shadow(0 6px 8px #0009); }
.licence-reward-art img { padding: 0; filter: none; }
.licence-reward-art:has(img) { background: #000; }
.licence-reward-lock { display: grid; place-items: center; width: 58px; height: 58px; border-radius: var(--instrument-radius); background: var(--glass-raised); box-shadow: var(--glass-edge); }
.licence-reward-lock .icon { width: 30px; height: 30px; }
.licence-status { position: absolute; top: 12px; right: 12px; padding: 4px 7px; font-size: .68rem; min-height: 21px; backdrop-filter: var(--glass-blur); white-space: nowrap; }
.licence-status .status-dot:not(.neutral) { background: var(--licence-color); box-shadow: 0 0 9px color-mix(in srgb, var(--licence-color) 57%, transparent); }
.licence-body { padding: 15px; display: flex; flex: 1; min-width: 0; flex-direction: column; }
.licence-title { min-height: 2.5em; margin-bottom: 9px; font: clamp(.9rem, 1.4vw, 1.12rem)/1.25 var(--display); text-wrap: balance; }
.licence-tariff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 11px; padding: 8px 9px; border-radius: 8px; background: var(--glass-recess); font-size: .76rem; }
.licence-tariff dt { margin-bottom: 2px; color: var(--muted); font-size: .72rem; }
.licence-tariff dd { margin: 0; color: var(--type); }
.licence-fare { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.licence-progress { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--soft); font-size: .81rem; }
.licence-progress strong { color: var(--type); font: 500 .9rem var(--mono); white-space: nowrap; }
.licence-body .licence-track { margin: 9px 0 0; }
.licence-purchase { display: grid; gap: 8px; margin-top: auto; }
.licence-note { color: var(--soft); font-size: .76rem; line-height: 1.35; }
.licence-requirement { margin-top: 9px; }
.licence-body .button { min-height: 37px; font-size: .7rem; }
.licence-body .button .icon { width: 16px; height: 16px; }
.skill-next { display: flex; justify-content: space-between; gap: 6px; color: var(--soft); font-size: .8rem; margin-top: 11px; }
.skill-next strong { color: var(--type); font: 500 .8rem var(--mono); }

:is(.garage-charge, .garage-metric, .route-icon, .market-art, .director-number,
    .board-income-card, .director-license, .daily-totals > div, .daily-inspection,
    .expense-list > div, .licence-tariff, .report-details, .stock-row, .repair-kit,
    .depot-loader, .dispatch-switch, .dispatch-picker summary, .assignment-license,
    .account-progress, .account-form input, .franchise-rewards > div, .franchise-list li,
    .account-nav, .purchase-amount) {
  box-shadow: var(--glass-inset);
}

@media (max-width: 850px) {
  .journal-entry summary { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 10px; }
  .journal-ident { grid-column: 1 / -1; padding-right: 22px; }
  .journal-expand { position: absolute; top: 14px; right: 13px; }
}

@media (max-width: 550px) {
  .journal-entry summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journal-wear { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .report-incidents li { grid-template-columns: 17px minmax(0, 1fr); }
  .incident-cost { grid-column: 2; display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; text-align: left; }
  .live-trip { grid-template-columns: minmax(0, 1fr); }
  .live-trip-timer { grid-row: 1; }
  .director-hero { min-height: 91px; }
  .director-hero h1 { max-width: 14ch; }
  .director-hero-art { object-position: 63% 50%; }
  .director-hero::after { background: linear-gradient(90deg, #0b0b0bed, #0b0b0bbc 41%, #0b0b0b30 100%); }
  .daily-plot { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .fleet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-size { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill.calibration-alert, .status-pill.wear-alert, .garage-metric.wear-alert { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .signals-on .hazard { opacity: .48; }
}

.park-stopped { background: #000; }
.park-stopped .sidebar, .park-stopped .topbar, .park-stopped .game-notices { display: none; }
.park-stopped .shell, .park-stopped .main-shell { display: block; margin: 0; padding: 0; max-width: none; background: #000; }
.park-stopped #screen { display: grid; place-items: center; min-height: 100dvh; max-width: none; margin: 0; padding: 24px; background: #000; }
.park-recovery { text-align: center; max-width: 42rem; color: #fff; }
.park-recovery .button { margin: 8px; }
