:root {
  color-scheme: dark;
  --bg: #0b131e;
  --surface: #121e2c;
  --surface-2: #1a293a;
  --surface-3: #24374a;
  --ink: #eef5fa;
  --muted: #91a5b8;
  --line: #25384b;
  --accent: #36dacb;
  --accent-ink: #042e2c;
  --accent-soft: #173b40;
  --blue: #77b7ff;
  --warning: #f5bc6b;
  --warning-bg: #3a2b1d;
  --danger: #ff8c90;
  --danger-bg: #422730;
  --shadow: 0 12px 35px #02070d25;
  --app-height: 100dvh;
  --nav-height: 76px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #fff;
  --surface-2: #edf2f7;
  --surface-3: #e0e9f0;
  --ink: #172a3b;
  --muted: #62788c;
  --line: #dce5ed;
  --accent: #078c86;
  --accent-ink: #fff;
  --accent-soft: #e1f4ef;
  --blue: #276baf;
  --warning: #945910;
  --warning-bg: #fff1dc;
  --danger: #b93545;
  --danger-bg: #fff0f1;
  --shadow: 0 10px 30px #21395009;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
button {
  border: 0;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
  line-height: 1.45;
}
p {
  line-height: 1.55;
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
.small-icon {
  width: 19px;
  height: 19px;
}
.muted {
  color: var(--muted);
}
.caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gap-sm {
  gap: 8px;
}
.wrap {
  flex-wrap: wrap;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.spacer {
  height: 8px;
}
.text-accent {
  color: var(--accent);
}
#app {
  height: var(--app-height);
  max-height: var(--app-height);
  display: flex;
  flex-direction: column;
  position: relative;
}
#app > .page,
#app > .launch {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.app-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-bottom: 30px;
}
.page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 30px;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  min-height: 44px;
}
.page-header .caption {
  margin-top: 5px;
}
.page-header > .grow > h1 {
  overflow-wrap: anywhere;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -0.8px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.pilot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 9px;
  font-size: 10px;
  white-space: nowrap;
  letter-spacing: 0.1px;
  color: var(--muted);
}
.pilot i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.icon-button.ghost {
  background: transparent;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 14px;
}
.section-title:first-child {
  margin-top: 0;
}
.text-button {
  padding: 10px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  background: none;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.nav {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 7px max(5px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom))
    max(5px, env(safe-area-inset-left));
  z-index: 10;
}
.nav-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: 650px;
}
.nav-button {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--muted);
  background: none;
  position: relative;
  border-radius: 13px;
}
.nav-button .icon {
  width: 23px;
  height: 23px;
}
.nav-button.active {
  color: var(--accent);
}
.nav-button.active:before {
  content: '';
  position: absolute;
  top: -7px;
  width: 23px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.keyboard-open .nav {
  display: none;
}
.hero {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(125deg, #20374c 0%, #152a3e 48%, #112031 100%);
  overflow: hidden;
  border: 1px solid #3d5b70;
  color: #f1f8fc;
  box-shadow: 0 16px 40px #02080f20;
  padding: 23px 23px 18px;
  isolation: isolate;
}
.hero:after {
  content: '';
  position: absolute;
  inset: auto -12% -90% 15%;
  height: 380px;
  border-radius: 50%;
  background: #32d8ca12;
  filter: blur(20px);
  z-index: -1;
}
.hero .eyebrow {
  color: #8eafc6;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.hero h2 {
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -1px;
  margin-top: 8px;
}
.hero .submodel {
  font-size: 13px;
  color: #a8c0d2;
  margin-top: 6px;
}
.hero .icon-button {
  background: #ffffff0b;
  border: 1px solid #ffffff15;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  color: #b9cede;
}
.hero-car {
  width: 100%;
  height: 152px;
  object-fit: contain;
  display: block;
  margin: 7px auto -4px;
  filter: drop-shadow(0 10px 15px #04111b60);
}
.hero-stats {
  display: flex;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid #ffffff13;
  justify-content: space-between;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #c3d6e5;
  min-width: 0;
}
.hero-stat .icon {
  width: 16px;
  height: 16px;
  color: #719bb8;
}
.hero-empty {
  text-align: center;
  padding: 22px 18px;
}
.hero-empty .hero-car {
  height: 132px;
  opacity: 0.82;
  margin-top: 3px;
}
.hero-empty h2 {
  font-size: 24px;
}
.hero-empty p {
  font-size: 13px;
  color: #a8c0d2;
  margin: 8px auto 16px;
  max-width: 290px;
}
.hero-note {
  color: #849eb3;
  font-size: 9px;
  text-align: right;
  margin-top: 8px;
}
.car-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 13px;
}
.car-dot {
  width: 7px;
  height: 7px;
  border-radius: 5px;
  padding: 0;
  background: var(--surface-3);
}
.car-dot.active {
  width: 24px;
  background: var(--accent);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  border-radius: 20px;
  min-height: 141px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s,
    background 0.15s;
}
.tile:active {
  transform: scale(0.98);
}
.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 13px;
}
.tile:nth-child(2) .tile-icon {
  background: #28507c28;
  color: var(--blue);
}
.tile h3 {
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.2px;
}
.tile p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
  max-width: 140px;
}
.tile-soon {
  opacity: 0.62;
  cursor: default;
}
.soon {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--muted);
  position: absolute;
  right: 13px;
  top: 17px;
}
.home-tip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.home-tip .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 720;
  font-size: 14px;
  line-height: 1.35;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.button:active {
  transform: translateY(1px);
}
.button .icon {
  width: 20px;
  height: 20px;
}
.button.full {
  width: 100%;
}
.button.secondary {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.button.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.button.small {
  font-size: 12px;
  min-height: 39px;
  padding: 9px 13px;
  border-radius: 11px;
}
.button-row {
  display: flex;
  gap: 10px;
}
.button-row > * {
  flex: 1;
}
.button:disabled {
  transform: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.card-title h2 {
  font-size: 17px;
}
.car-row {
  position: relative;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 112px;
}
.car-row h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.car-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.car-row img {
  width: 112px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
}
.car-row > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  width: 100%;
  text-align: left;
}
.city-row > .icon:first-child {
  color: var(--accent);
}
.city-row strong {
  display: block;
  font-size: 14px;
}
.city-row .caption {
  font-size: 11px;
  margin-top: 4px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  gap: 12px;
}
.empty-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 22px;
  margin-bottom: 8px;
}
.empty-icon .icon {
  width: 34px;
  height: 34px;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
  max-width: 310px;
}
.empty .button {
  margin-top: 8px;
}
.empty.compact {
  padding: 24px 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 10px;
  padding: 5px 7px;
  color: var(--muted);
}
.tag.accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.details {
  margin: 0;
}
.details > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.details > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
  max-width: 60%;
}
.details > div:first-child {
  padding-top: 0;
}
.note {
  border-radius: 14px;
  background: var(--surface-2);
  padding: 13px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.note .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.note.warning {
  color: var(--warning);
  background: var(--warning-bg);
}
.note.error {
  color: var(--danger);
  background: var(--danger-bg);
}
.error-box {
  margin: 0 0 15px;
}
.notice-inline {
  font-size: 12px;
  color: var(--danger);
  margin: 7px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-height: 49px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  appearance: none;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  max-height: 230px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.field select {
  padding-right: 33px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237d97ac' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field .help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.segmented {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  padding: 10px 8px;
  min-height: 39px;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px #0000000c;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
  min-height: 36px;
}
.chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.suggestions {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  margin-top: 9px;
}
.suggestion {
  background: var(--surface);
  text-align: left;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  min-height: 49px;
  font-size: 14px;
}
.suggestion:last-child {
  border-bottom: 0;
}
.suggestion .caption {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.suggestion .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.form-footer {
  margin-top: 22px;
}
.field-errors {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
}
.review-badge {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 15px;
}
.review-badge .icon {
  width: 19px;
  height: 19px;
}
.chat-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: auto;
  padding: 17px 18px 0;
}
.chat-page .page-header {
  margin-bottom: 13px;
  flex-shrink: 0;
}
.chat-page .page-header h1 {
  font-size: 21px;
}
.chat-context {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 43px;
  flex-shrink: 0;
  margin-bottom: 12px;
  text-align: left;
  font-size: 12px;
}
.chat-context .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding-bottom: 16px;
}
.chat-intro {
  padding: 26px 9px 15px;
  text-align: center;
}
.assistant-mark {
  width: 57px;
  height: 57px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 19px;
  margin: 0 auto 15px;
}
.assistant-mark .icon {
  width: 29px;
  height: 29px;
}
.chat-intro h2 {
  font-size: 24px;
  letter-spacing: -0.65px;
}
.chat-intro p {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  margin: 10px auto 21px;
}
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prompt {
  padding: 12px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
}
.prompt .icon {
  width: 16px;
  color: var(--muted);
}
.message {
  margin: 16px 0;
  max-width: 94%;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.message.user {
  margin-left: auto;
  background: var(--accent-soft);
  padding: 12px 16px;
  border-radius: 17px 17px 4px 17px;
  color: var(--ink);
  width: fit-content;
}
.message.assistant {
  margin-right: auto;
}
.message-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.message-label .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.message-body {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 4px 17px 17px 17px;
}
.message-body p + p {
  margin-top: 10px;
}
.message-body h3 {
  font-size: 13px;
  color: var(--accent);
  margin: 15px 0 7px;
}
.message-body h3:first-child {
  margin-top: 0;
}
.message-bullet {
  position: relative;
  padding-left: 13px;
}
.message-bullet:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.message-time {
  font-size: 9px;
  opacity: 0.6;
  margin-top: 7px;
  text-align: right;
}
.typing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0;
}
.typing-dots {
  display: flex;
  gap: 4px;
}
.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 1.2s infinite;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
.quick-replies {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 11px 0;
}
.quick-replies .chip {
  color: var(--accent);
}
.chat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.composer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 12px 0 9px;
  background: var(--bg);
}
.composer-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
}
.composer textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  resize: none;
  min-height: 48px;
  height: 48px;
  max-height: 120px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 16px;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.composer .send {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
  padding: 12px;
  flex-shrink: 0;
}
.composer .caption {
  font-size: 9px;
  text-align: center;
  margin-top: 8px;
}
.chat-page .note {
  margin-bottom: 9px;
}
.chat-choose {
  padding: 20px 0;
}
.new-message {
  position: absolute;
  right: 25px;
  bottom: 170px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 10px 14px;
  color: var(--accent);
  box-shadow: var(--shadow);
  font-size: 12px;
}
.code-input {
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  letter-spacing: 1px;
  font-weight: 650;
}
.code-badge {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--accent);
}
.obd-card h3 {
  margin: 10px 0 13px;
  font-size: 16px;
}
.obd-source {
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.map-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}
.map-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
}
.map-badge.yandex {
  background: #ffdfdb;
  color: #de3d32;
}
.map-badge.gis {
  background: #daf6ca;
  color: #328438;
  font-size: 16px;
}
.map-link strong {
  font-size: 15px;
  display: block;
}
.map-link .caption {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.map-link > .icon {
  margin-left: auto;
  width: 18px;
  color: var(--muted);
}
.search-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.search-summary span {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
}
.history-item {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
}
.history-item .eyebrow {
  font-size: 9px;
  letter-spacing: 0.6px;
}
.history-item h3 {
  margin: 9px 0 6px;
  font-size: 15px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-item p {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-item .tag {
  margin-top: 11px;
}
.history-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.avatar .icon {
  width: 29px;
  height: 29px;
}
.profile-head h2 {
  font-size: 19px;
  margin-bottom: 5px;
}
.profile-head p {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}
.setting-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-height: 60px;
}
.setting:last-child {
  border-bottom: 0;
}
.setting > .icon:first-child {
  width: 21px;
  height: 21px;
  color: var(--muted);
}
.setting > .icon:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--muted);
}
.setting.danger {
  color: var(--danger);
}
.setting.danger > .icon {
  color: var(--danger);
}
.theme-button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
.theme-button .icon {
  width: 22px;
  height: 22px;
}
.version {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  padding: 23px 0 0;
  line-height: 1.8;
}
.legal h2 {
  font-size: 17px;
  margin: 22px 0 9px;
}
.legal p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.65;
}
.legal ul {
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.launch {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  min-height: 100%;
  max-width: 460px;
  gap: 14px;
}
.launch-mark {
  width: 76px;
  height: 76px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 24px;
  display: grid;
  place-content: center;
  font-size: 27px;
  letter-spacing: -7px;
  padding-right: 6px;
  font-weight: 800;
}
.launch-mark span {
  display: none;
}
.launch p {
  font-size: 13px;
  color: var(--muted);
}
.launch h1 {
  margin-top: 8px;
}
.loader {
  width: 27px;
  height: 27px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 12px auto;
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translate(-50%, 15px);
  max-width: min(90vw, 450px);
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 40;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 20px 100px #0008;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #040b15a8;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  margin: 7px 0 12px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
dialog .button-row {
  margin-top: 20px;
}
.modal-close {
  margin-left: auto;
  display: flex;
}
.modal-icon {
  display: grid;
  place-items: center;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 15px;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}
dialog .stack {
  gap: 10px;
}
.load-error {
  padding: 22px;
  text-align: center;
}
.load-error p {
  margin: 10px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.3;
    transform: translateY(-3px);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 650px) {
  .page {
    padding: 30px 32px 40px;
  }
  .page-header {
    margin-bottom: 27px;
  }
  .hero {
    padding: 27px 30px 20px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .hero-car {
    height: 190px;
  }
  .hero-stats {
    justify-content: flex-start;
    gap: 30px;
  }
  .hero-stat {
    font-size: 12px;
  }
  .tiles {
    gap: 16px;
  }
  .tile {
    padding: 22px;
    min-height: 156px;
  }
  .tile h3 {
    font-size: 18px;
  }
  .tile p {
    font-size: 12px;
    max-width: none;
  }
  .hero-empty .hero-car {
    height: 165px;
  }
  .card {
    padding: 24px;
  }
  .chat-page {
    padding: 25px 28px 0;
  }
  .chat-page .page-header {
    margin-bottom: 16px;
  }
  .chat-intro {
    padding-top: 45px;
  }
  .message {
    max-width: 86%;
  }
  .prompt-list {
    max-width: 400px;
    margin: auto;
  }
  .car-row img {
    width: 160px;
  }
  .form-narrow {
    max-width: 620px;
    margin: 0 auto;
  }
  .car-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .car-list .car-row {
    flex-wrap: wrap;
  }
  .car-list .car-row img {
    position: absolute;
    right: 12px;
    bottom: 15px;
    width: 110px;
    opacity: 0.5;
  }
  .car-list .car-row .grow {
    z-index: 1;
  }
  .car-list .car-row {
    min-height: 148px;
    align-items: flex-start;
  }
}
@media (max-width: 350px) {
  .page {
    padding: 20px 15px 24px;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .pilot {
    font-size: 8px;
    padding: 5px 6px;
  }
  .hero {
    padding: 20px 17px 15px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-car {
    height: 131px;
  }
  .hero-stat {
    font-size: 10px;
    gap: 4px;
  }
  .hero-stats {
    gap: 5px;
  }
  .tiles {
    gap: 10px;
  }
  .tile {
    padding: 16px 13px;
    min-height: 137px;
  }
  .tile h3 {
    font-size: 15px;
  }
  .tile p {
    font-size: 10px;
  }
  .tile-icon {
    margin-bottom: 11px;
  }
  .car-row img {
    width: 85px;
  }
  .car-row h3 {
    font-size: 16px;
  }
  .chat-page {
    padding-left: 13px;
    padding-right: 13px;
  }
  .form-grid {
    gap: 13px 10px;
  }
  .button-row {
    flex-wrap: wrap;
  }
  .button-row > * {
    min-width: 100px;
  }
}
@media (max-height: 520px) {
  .nav {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  .nav-button {
    min-height: 46px;
  }
  .chat-page .page-header {
    margin-bottom: 7px;
    min-height: 35px;
  }
  .chat-context {
    margin-bottom: 6px;
    padding: 7px 10px;
    min-height: 36px;
  }
  .composer {
    padding-top: 7px;
  }
  .composer .caption {
    display: none;
  }
}
