:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --gold: #d4af37;
  --panel: rgba(255, 255, 255, .78);
  --line: rgba(29, 29, 31, .1);
  --shadow: 0 22px 70px rgba(29, 29, 31, .18);
  --plate-bg: #f9fafc;
  --plate-ink: #111827;
  --marker-place: #ffffff;
  --marker-place-ink: #243042;
}

body[data-skin="night-drive"] {
  color-scheme: dark;
  --bg: #07111e;
  --ink: #f4f8ff;
  --muted: #aab6c7;
  --blue: #4aa3ff;
  --gold: #ffd46b;
  --panel: rgba(10, 18, 31, .78);
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .44);
  --plate-bg: #e9f1ff;
  --plate-ink: #06101e;
  --marker-place: #162235;
  --marker-place-ink: #dbeafe;
}

body[data-skin="moto-neon"] {
  color-scheme: dark;
  --bg: #0d0d11;
  --ink: #fffaf0;
  --muted: #cfc6aa;
  --blue: #00a8ff;
  --gold: #ffd23f;
  --panel: rgba(20, 20, 25, .78);
  --line: rgba(255, 210, 63, .18);
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
  --plate-bg: #fff8d7;
  --plate-ink: #17140a;
  --marker-place: #1b1820;
  --marker-place-ink: #ffd23f;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overscroll-behavior: contain;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell,
.home-view {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.home-view::after {
  content: "";
  position: fixed;
  top: calc(env(safe-area-inset-top) + 184px);
  left: 0;
  right: 0;
  z-index: 12;
  height: 46px;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 36%, transparent), transparent);
}

.view[hidden],
[hidden] {
  display: none !important;
}

.auth-view {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 14px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 30%),
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 28%),
    var(--bg);
}

.auth-card {
  width: min(420px, 100%);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 13px;
  padding: 20px 20px calc(env(safe-area-inset-bottom) + 96px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--blue));
  font-weight: 950;
}

.auth-brand h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 68%, transparent);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  color: #fff;
  background: var(--blue);
}

.auth-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.auth-stepper[hidden] {
  display: none;
}

.auth-stepper span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .42);
  font-size: 12px;
  font-weight: 950;
}

.auth-stepper span.active {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-step-panel {
  display: grid;
  gap: 11px;
}

.auth-step-panel[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .64);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: color-mix(in srgb, var(--blue) 60%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent);
}

.register-vehicle-fields {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .44);
}

.register-vehicle-fields[hidden] {
  display: none;
}

.register-vehicle-fields legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.vehicle-register-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.register-consents {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.register-consents[hidden] {
  display: none;
}

.register-consents label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .42);
}

.register-consents input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.register-consents span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.register-photo-step {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 36%),
    rgba(255, 255, 255, .46);
}

.register-photo-step[hidden] {
  display: none;
}

.register-photo-step h2 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: clamp(24px, 7vw, 31px);
  letter-spacing: 0;
}

.register-photo-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.register-photo-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.register-success-step {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at 85% 8%, color-mix(in srgb, #34c759 18%, transparent), transparent 34%),
    rgba(255, 255, 255, .52);
}

.register-success-step[hidden] {
  display: none;
}

.register-success-step h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 7vw, 32px);
  letter-spacing: 0;
}

.register-success-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.register-success-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, .46);
}

.register-success-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.register-success-meta b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
}

.register-success-photo {
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px rgba(29, 29, 31, .12);
}

.register-success-photo[hidden] {
  display: none;
}

.vehicle-photo-preview {
  display: grid;
  place-items: center;
  min-height: 176px;
  border: 1px dashed color-mix(in srgb, var(--blue) 36%, var(--line));
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.42)),
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 32%);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  font-size: 38px;
  overflow: hidden;
}

.vehicle-photo-preview.has-photo {
  background-size: cover;
  background-position: center;
  border-style: solid;
}

.photo-step-actions {
  display: grid;
  gap: 8px;
}

.photo-step-actions button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

#skip-photo-step {
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
}

.auth-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-form-actions button:only-child,
.auth-form-actions #auth-submit:not([hidden]) {
  grid-column: auto;
}

#auth-submit:not([hidden]) {
  grid-column: 1 / -1;
}

.auth-form button,
.logout-button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

#auth-back {
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
}

.auth-form button:disabled {
  opacity: .64;
  cursor: default;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 850;
}

.auth-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(255, 255, 255, .62);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}


.map {
  position: fixed;
  inset: calc(env(safe-area-inset-top) + 196px) 0 0;
  z-index: 0;
  background: #dfe8f0;
}

.leaflet-tile-pane {
  filter: saturate(.9) contrast(.98) brightness(1.02);
}

body[data-skin="night-drive"] .leaflet-tile-pane,
body[data-skin="moto-neon"] .leaflet-tile-pane {
  filter: grayscale(.35) invert(.9) hue-rotate(180deg) brightness(.68) contrast(1.1);
}

.topbar,
.shortcut-strip,
.roadtalk-live,
.plate-cta,
.nav-dock,
.sheet {
  position: fixed;
}

.topbar {
  top: calc(env(safe-area-inset-top) + 10px);
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  z-index: 42;
}

.mini-brand {
  position: relative;
  justify-self: start;
}

.mini-brand button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  box-shadow: 0 12px 28px rgba(29, 29, 31, .1);
  backdrop-filter: blur(18px);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.mini-brand button span {
  font-weight: 950;
}

.mini-brand button b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-avatar,
.top-actions button,
.fp-marker span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--blue));
  font-weight: 900;
}

.vehicle-avatar {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .88);
  font-size: 18px;
  box-shadow:
    0 16px 38px rgba(0, 71, 145, .22),
    0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  cursor: pointer;
}

.vehicle-avatar::before {
  content: "🏍";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.94), transparent 24%),
    linear-gradient(135deg, #f8fafc, #dbeafe 42%, #0071e3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62);
  font-size: 22px;
}

.top-actions {
  grid-column: 2;
  display: flex;
  gap: 8px;
}

.top-actions button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(29, 29, 31, .12);
  backdrop-filter: blur(22px);
}

.mic-ai-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, #fff 12%);
  box-shadow: 0 12px 30px rgba(29, 29, 31, .12);
  backdrop-filter: blur(22px);
}

.mic-ai-button .mic-icon {
  font-size: 18px;
  line-height: 1;
}

.mic-ai-button .ai-badge {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  box-shadow: 0 6px 14px rgba(0, 113, 227, .28);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .02em;
}

.shortcut-strip {
  top: calc(env(safe-area-inset-top) + 58px);
  left: 10px;
  right: 10px;
  z-index: 36;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  grid-template-rows: 106px;
  gap: 0 8px;
  min-height: 122px;
  border: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
  border-radius: 20px;
  padding: 6px 0 8px 7px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 48%, transparent), color-mix(in srgb, var(--panel) 30%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 5px 16px rgba(29, 29, 31, .038);
  backdrop-filter: blur(20px) saturate(1.02);
  pointer-events: none;
}

.social-shelf-head {
  display: contents;
}

.active-profile-head {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: grid;
  justify-items: center;
  grid-template-rows: 76px 22px;
  align-content: start;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  padding: 3px 4px 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 30%, transparent), color-mix(in srgb, var(--panel) 18%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  pointer-events: auto;
}

.active-profile-photo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 23%, rgba(255,255,255,.94), transparent 23%),
    radial-gradient(circle at 57% 57%, #243042 0 9%, transparent 10%),
    linear-gradient(135deg, #f8fafc, #dbeafe 42%, var(--blue));
  box-shadow:
    0 12px 24px rgba(0, 113, 227, .14),
    0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
  font-size: 27px;
}

.active-profile-photo.has-photo {
  background-size: cover;
  background-position: center;
}

.active-profile-head b {
  max-width: 88px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-profile-head i {
  position: absolute;
  right: 8px;
  top: 60px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #fff;
  background: #34c759;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .04em;
}

.stories b {
  overflow: hidden;
  max-width: 92px;
  height: 20px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stories small {
  display: none;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.stories {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 26px 2px 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  pointer-events: auto;
}

.stories::-webkit-scrollbar { display: none; }

.stories button {
  flex: 0 0 auto;
  position: relative;
  display: grid;
  grid-template-rows: 76px 20px;
  justify-items: center;
  align-items: start;
  gap: 0;
  width: 92px;
  min-height: 96px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  scroll-snap-align: start;
}

.shortcut-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 10px 20px rgba(29, 29, 31, .1),
    0 0 0 2px color-mix(in srgb, var(--blue) 14%, transparent);
  font-size: 18px;
  font-weight: 950;
}

.stories button.active .shortcut-avatar {
  box-shadow:
    0 12px 24px rgba(29, 29, 31, .14),
    0 0 0 4px color-mix(in srgb, var(--blue) 24%, transparent);
}

.stories i {
  position: absolute;
  right: 6px;
  top: 56px;
  max-width: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  padding: 2px 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #179fff);
  box-shadow: 0 5px 10px rgba(0, 113, 227, .16);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.story-moto { background: linear-gradient(135deg, #1d1d1f, #0071e3); }
.photo-wisla { background: radial-gradient(circle at 46% 42%, rgba(255,255,255,.68) 0 6%, transparent 7%), linear-gradient(135deg, #0b6b59, #98e7ff 46%, #0b5fbe); }
.photo-silesia { background: radial-gradient(circle at 50% 38%, #f2f8ff 0 15%, transparent 16%), radial-gradient(circle at 62% 42%, rgba(255,255,255,.42), transparent 18%), linear-gradient(135deg, #0071e3, #09203b 72%); }
.photo-spot { background: radial-gradient(circle at 62% 38%, rgba(255,255,255,.62) 0 9%, transparent 10%), linear-gradient(135deg, #210f34, #a855f7 48%, #ff9f0a); }
.photo-roadtalk { background: radial-gradient(circle at 50% 42%, #f8fafc 0 10%, transparent 11%), linear-gradient(135deg, #07111e, #00a8ff 55%, #34c759); }
.photo-places { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.76), transparent 18%), linear-gradient(135deg, #dff8e8, #1f9d61 52%, #0f5132); }
.photo-reels { background: radial-gradient(circle at 64% 42%, #fff 0 10%, transparent 11%), conic-gradient(from 210deg, #1d1d1f, #d4af37, #0071e3, #1d1d1f); }
.photo-trip { background: radial-gradient(circle at 58% 40%, rgba(255,255,255,.58), transparent 16%), linear-gradient(135deg, #e7f0ff, #0071e3 52%, #08345f); }
.friend-kamil { background: radial-gradient(circle at 50% 34%, #f7c59f 0 18%, transparent 19%), radial-gradient(circle at 50% 62%, #111827 0 18%, transparent 19%), linear-gradient(135deg, #111827, #22c55e); }
.friend-anka { background: radial-gradient(circle at 50% 34%, #f3c4d9 0 18%, transparent 19%), radial-gradient(circle at 50% 62%, #111827 0 18%, transparent 19%), linear-gradient(135deg, #111827, #34d399); }
.friend-bmw { background: radial-gradient(circle at 50% 50%, #fff 0 20%, transparent 21%), conic-gradient(#111827, #0071e3 25%, #f8fafc 0 50%, #111827 0 75%, #0071e3 0); }

.roadtalk-live {
  display: none !important;
  top: calc(env(safe-area-inset-top) + 178px);
  left: 14px;
  z-index: 30;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: calc(100vw - 28px);
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: 0 12px 28px rgba(29, 29, 31, .14);
  backdrop-filter: blur(22px);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.roadtalk-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.plate-cta {
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  display: grid;
  grid-template-columns: 68px 42px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: min(420px, calc(100vw - 32px));
  min-height: 56px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, #12213a 30%, var(--blue) 10%);
  border-radius: 15px;
  padding: 5px;
  color: var(--plate-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.24)),
    var(--plate-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.85),
    inset 0 -10px 18px rgba(15,23,42,.035),
    0 12px 28px rgba(29, 29, 31, .18);
  transform: translateX(-50%);
  z-index: 40;
}

.plate-cta:active {
  transform: translateX(-50%) scale(.985);
}

.plate-cta .plate-country-chip {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 44px;
  border-radius: 10px 5px 5px 10px;
  align-self: stretch;
  color: #fff;
  background: #1f5fbd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
}

.plate-cta[data-country]:not([data-country="PL"]) .plate-country-chip {
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 86%, #fff 14%);
  border-right: 1px solid var(--line);
}

.plate-cta b {
  justify-self: center;
  padding: 0 8px;
  overflow: hidden;
  color: var(--plate-ink);
  font-size: clamp(12px, 3.3vw, 15px);
  font-weight: 950;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plate-mic-ai {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 38px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-style: normal;
}

.map-chips {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 204px);
  left: 12px;
  right: 12px;
  z-index: 22;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: none;
}

.map-chips::-webkit-scrollbar { display: none; }

.map-chips button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  box-shadow: 0 8px 18px rgba(29, 29, 31, .075);
  backdrop-filter: blur(18px) saturate(1.04);
  font-size: 14px;
  font-weight: 950;
  pointer-events: auto;
}

.trip-recorder-chip {
  gap: 7px;
  max-width: none;
}

.trip-recorder-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-recorder-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 42%, transparent);
}

.trip-recorder-chip.recording {
  color: #12351e;
  border-color: color-mix(in srgb, #34c759 44%, transparent);
  background: color-mix(in srgb, #ecfff3 70%, transparent);
}

.trip-recorder-chip.recording span {
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, .16);
}

.trip-recorder-chip.paused {
  color: #5b3d00;
  border-color: color-mix(in srgb, #ff9f0a 46%, transparent);
  background: color-mix(in srgb, #fff7e5 70%, transparent);
}

.trip-recorder-chip.paused span {
  background: #ff9f0a;
}

.trip-recorder-chip.saved {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 42%, transparent);
}

.trip-recorder-chip.saved span {
  background: var(--blue);
}

.gps-status {
  position: fixed;
  right: 12px;
  top: calc(env(safe-area-inset-top) + 252px);
  z-index: 23;
  min-height: 32px;
  border: 1px solid color-mix(in srgb, #34c759 32%, var(--line));
  border-radius: 999px;
  padding: 0 11px;
  color: #12351e;
  background: color-mix(in srgb, #ecfff3 64%, transparent);
  box-shadow: 0 8px 18px rgba(29, 29, 31, .075);
  backdrop-filter: blur(18px) saturate(1.04);
  font-size: 11px;
  font-weight: 950;
}

.show-my-vehicle {
  position: fixed;
  right: 12px;
  top: calc(env(safe-area-inset-top) + 292px);
  z-index: 24;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  box-shadow: 0 9px 20px rgba(29, 29, 31, .095);
  backdrop-filter: blur(18px) saturate(1.04);
  font-size: 12px;
  font-weight: 950;
}

.social-drawer {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  z-index: 43;
  pointer-events: none;
}

.social-drawer-handle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 68%, transparent);
  box-shadow: 0 12px 30px rgba(29, 29, 31, .12);
  backdrop-filter: blur(22px) saturate(1.05);
  font-size: 14px;
  font-weight: 950;
}

.social-drawer-handle span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 42%, transparent);
}

.social-drawer-handle i {
  font-style: normal;
}

.social-drawer-panel {
  pointer-events: auto;
  display: none;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: 24px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 0, color-mix(in srgb, var(--blue) 10%, transparent), transparent 30%),
    color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: 0 22px 68px rgba(29, 29, 31, .18);
  backdrop-filter: blur(28px) saturate(1.08);
}

.social-drawer[data-state="half"] .social-drawer-panel,
.social-drawer[data-state="full"] .social-drawer-panel {
  display: block;
}

.social-drawer[data-state="full"] {
  bottom: calc(env(safe-area-inset-bottom) + 74px);
}

.social-drawer[data-state="full"] .social-drawer-panel {
  max-height: min(58dvh, 520px);
  overflow-y: auto;
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
}

.social-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.social-drawer-header h2 {
  margin: 0;
  font-size: 22px;
}

.social-drawer-actions {
  display: flex;
  gap: 6px;
}

.social-drawer-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  font-size: 11px;
  font-weight: 900;
}

.feed-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.feed-filter-grid button {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 18px;
  padding: 10px 12px;
  color: var(--ink);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--panel) 68%, transparent));
  box-shadow: 0 10px 22px rgba(29, 29, 31, .08);
  text-align: left;
}

.feed-filter-grid button b {
  font-size: 15px;
  font-weight: 950;
}

.feed-filter-grid button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.feed-filter-grid button.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--blue) 70%, transparent);
  background: linear-gradient(135deg, var(--blue), #179fff);
}

.feed-filter-grid button.active span {
  color: rgba(255, 255, 255, .82);
}

.social-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 10px 0;
  scrollbar-width: none;
}

.social-tabs::-webkit-scrollbar,
.social-feed::-webkit-scrollbar { display: none; }

.social-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.social-tabs button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.social-feed {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.social-feed.full {
  display: grid;
  overflow: visible;
}

.social-card {
  flex: 0 0 190px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  box-shadow: 0 12px 30px rgba(29, 29, 31, .09);
}

.social-feed.full .social-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 118px;
}

.social-thumb {
  display: grid;
  align-items: end;
  min-height: 106px;
  padding: 9px;
  background: linear-gradient(135deg, #0071e3, #1d1d1f);
}

.social-thumb span {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(0, 0, 0, .34);
  font-size: 10px;
  font-weight: 950;
}

.social-card-body {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.social-card-body small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.social-card-body b {
  color: var(--ink);
  font-size: 15px;
}

.social-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.social-card-body button {
  justify-self: start;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.feed-reel .social-thumb { background: linear-gradient(135deg, #111827, #0071e3 52%, #d4af37); }
.feed-ride .social-thumb { background: linear-gradient(135deg, #0b6b59, #98e7ff 48%, #0b5fbe); }
.feed-photo .social-thumb { background: linear-gradient(135deg, #1d1d1f, #34c759); }
.feed-place .social-thumb { background: linear-gradient(135deg, #dff8e8, #1f9d61 58%, #0f5132); }
.feed-roadtalk .social-thumb { background: linear-gradient(135deg, #07111e, #00a8ff 55%, #34c759); }

.plate-mic-ai .ai-badge {
  position: absolute;
  right: -7px;
  bottom: -2px;
  min-width: 14px;
  border-radius: 999px;
  padding: 1px 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  font-size: 7px;
  font-weight: 950;
}

.nav-dock {
  display: none;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 8px);
  z-index: 46;
  width: min(360px, calc(100vw - 20px));
  transform: translateX(-50%);
  pointer-events: none;
}

.home-version {
  position: fixed;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 18;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  box-shadow: 0 8px 18px rgba(29, 29, 31, .08);
  backdrop-filter: blur(18px);
  font-size: 10px;
  font-weight: 900;
}

.menu-nav {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}

.menu-nav button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, #fff 12%);
  font-weight: 950;
}

.menu-nav button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.dock-handle {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 78px;
  min-height: 24px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 16px 38px rgba(29, 29, 31, .18);
  backdrop-filter: blur(24px);
}

.dock-handle span {
  display: block;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 48%, transparent);
}

.dock-handle b {
  display: none;
  font-size: 12px;
  font-weight: 950;
}

.nav-dock.open .dock-handle {
  grid-template-columns: 34px auto;
  width: auto;
  min-height: 34px;
  padding: 0 14px;
}

.nav-dock.open .dock-handle b {
  display: block;
}

.tabbar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(calc(100% + 18px));
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-dock.open .tabbar {
  opacity: 1;
  transform: translateY(0);
}

.tabbar button {
  min-height: 38px;
  border: 0;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}

.tabbar button.active {
  color: #fff;
  background: var(--blue);
}

.sheet {
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 8px);
  z-index: 60;
  max-height: min(calc(100dvh - env(safe-area-inset-top) - 160px), 520px);
  overflow-y: auto;
  padding: 12px 14px calc(env(safe-area-inset-bottom) + 90px);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 26px 26px 22px 22px;
  background:
    radial-gradient(circle at 12% 0, color-mix(in srgb, var(--blue) 12%, transparent), transparent 30%),
    color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 24px 80px rgba(29,29,31,.2);
  backdrop-filter: blur(30px) saturate(1.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 40px));
  transition: transform 180ms ease, opacity 180ms ease;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  border: 0;
  background: rgba(29, 29, 31, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.subview-bar,
.subsheet-bar {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr minmax(82px, auto);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 12px;
}

.subview-bar strong,
.subsheet-bar strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subview-bar button,
.subsheet-bar button {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  box-shadow: 0 8px 18px rgba(29, 29, 31, .08);
  font-size: 13px;
  font-weight: 950;
}

.ride-search-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ride-search-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ride-search-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 13px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 82%, #fff 18%);
  font-size: 15px;
  font-weight: 850;
}

.ride-search-form button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 950;
}

.vehicle-onboarding-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.vehicle-onboarding-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.vehicle-onboarding-form input,
.vehicle-onboarding-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 82%, #fff 18%);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.vehicle-onboarding-form input:focus,
.vehicle-onboarding-form select:focus {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}

.vehicle-onboarding-form button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-weight: 950;
}

.vehicle-onboarding-form button:disabled {
  opacity: .68;
}

.sheet-handle {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 10px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 38%, transparent);
}

.sheet-x {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .66);
  font-size: 11px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sheet h2,
.page-header h1 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: 0;
}

.sheet p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.sheet-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px auto;
  gap: 6px;
  margin: 8px 0;
  padding: 6px;
  border: 2px solid color-mix(in srgb, #12213a 18%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.54)),
    var(--plate-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.72),
    0 12px 30px rgba(29,29,31,.1);
}

.country-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 5px 0 8px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.country-row::-webkit-scrollbar { display: none; }

.country-row button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 84%, #fff 16%);
  font-size: 11px;
  font-weight: 950;
}

.country-row button span {
  margin-right: 3px;
}

.country-row button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.plate-ai-panel,
.ai-message-panel {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.plate-ai-panel b {
  font-size: 15px;
}

.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sheet-title-row h2 {
  margin-bottom: 0;
}

.sparkle-help {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background:
    radial-gradient(circle at 62% 28%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 28%),
    color-mix(in srgb, var(--panel) 82%, #fff 18%);
  box-shadow: 0 10px 22px rgba(29, 29, 31, .1);
  font-size: 17px;
  font-weight: 950;
}

.ai-examples,
.ai-intents,
.urgent-examples,
.voice-help {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ai-examples::-webkit-scrollbar,
.ai-intents::-webkit-scrollbar,
.urgent-examples::-webkit-scrollbar,
.voice-help::-webkit-scrollbar { display: none; }

.ai-examples button,
.ai-intents button,
.urgent-examples button,
.voice-help button,
.ai-message-button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 84%, #fff 16%);
  font-size: 12px;
  font-weight: 900;
}

.ai-message-button {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--ink));
}

.sheet-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  min-height: 40px;
  padding: 0 10px;
  color: var(--plate-ink);
  background: transparent;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sheet-search input::placeholder {
  color: rgba(17, 24, 39, .44);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.sheet-search button,
.sheet-actions button,
.wide-button,
.ride-card button {
  min-height: 36px;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.sheet-search .inline-mic-ai {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--blue);
  background: color-mix(in srgb, var(--panel) 82%, var(--blue) 10%);
}

.voice-search-form {
  grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
}

.voice-search-form button {
  padding: 0 12px;
}

.voice-command-button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  width: min(176px, 58vw);
  min-height: 92px;
  margin: 8px auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.3), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--ink));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 22px 58px color-mix(in srgb, var(--blue) 30%, transparent);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .08em;
}

.voice-command-button span {
  font-size: 24px;
}

.voice-search-talk .ai-badge {
  position: absolute;
  right: calc(50% - 38px);
  top: 25px;
  min-width: 20px;
  border-radius: 999px;
  padding: 3px 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  font-size: 9px;
  font-weight: 950;
}

.voice-result-card {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--blue) 12%, transparent), transparent 30%),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 48px rgba(29, 29, 31, .1);
}

.plate-sheet-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 7px 0 2px;
}

.plate-sheet-tools button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, #fff 12%);
  font-size: 12px;
  font-weight: 950;
}

.voice-result-card .sheet-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.voice-result-card .sheet-actions button {
  min-height: 38px;
  font-size: 12px;
}

.camera-mock {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 170px;
  margin: 14px 0;
  border: 1px dashed color-mix(in srgb, var(--blue) 42%, var(--line));
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent 48%, color-mix(in srgb, var(--blue) 18%, transparent) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, color-mix(in srgb, var(--blue) 18%, transparent) 49% 51%, transparent 52%),
    color-mix(in srgb, var(--panel) 86%, #fff 14%);
  text-align: center;
}

.camera-mock span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 14%, white 86%);
  box-shadow: 0 14px 34px rgba(0, 113, 227, .16);
  font-size: 30px;
}

.camera-mock b {
  font-size: 18px;
}

.camera-mock small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.voice-result-card h3 {
  margin: 0;
  font-size: 23px;
}

.voice-result-card small {
  color: var(--muted);
  font-weight: 850;
}

.voice-command-button.listening {
  background: linear-gradient(135deg, #ff4d4d, var(--gold));
  animation: micai-pulse 1s ease-in-out infinite;
}

.voice-command-button.processing {
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.voice-command-button.sent {
  background: linear-gradient(135deg, #22a06b, var(--blue));
}

.voice-note {
  text-align: center;
  font-size: 12px;
}

.micai-state {
  display: grid;
  gap: 3px;
  margin: 6px 0 8px;
  border: 1px solid color-mix(in srgb, #ff9f0a 26%, var(--line));
  border-radius: 15px;
  padding: 9px 10px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, #ff9f0a 10%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 74%, transparent);
}

.micai-state b {
  font-size: 13px;
}

.micai-state span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.micai-state button {
  justify-self: start;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, #fff 12%);
  font-size: 11px;
  font-weight: 900;
}

.micai-state.listening {
  border-color: color-mix(in srgb, #ff9f0a 34%, var(--line));
}

.micai-state.error {
  border-color: color-mix(in srgb, #ff9f0a 30%, var(--line));
}

.plate-normalized-preview {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  font-size: 12px !important;
  font-weight: 950;
}

.micai-confirm-card small {
  color: var(--blue);
}

.gps-card {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, #34c759 12%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 78%, transparent);
}

.gps-card b {
  color: var(--ink);
  font-size: 16px;
}

.gps-card span,
.gps-card small,
.gps-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.gps-card strong {
  color: var(--blue);
  font-size: 13px;
}

@keyframes micai-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.3),
      0 18px 46px color-mix(in srgb, var(--blue) 22%, transparent),
      0 0 0 0 rgba(255, 159, 10, .18);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.3),
      0 24px 62px color-mix(in srgb, var(--blue) 28%, transparent),
      0 0 0 10px rgba(255, 159, 10, 0);
  }
}

.recent-plates,
.place-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 8px 0 14px;
  padding-bottom: 2px;
}

.recent-plates button,
.place-filters button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-result {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.vehicle-result h3 {
  margin: 0;
  font-size: 34px;
}

.vehicle-result span,
.vehicle-result small,
.card-list small,
.card-list em,
.card-list span,
.profile-card span,
.mini-list span {
  color: var(--muted);
  font-size: 13px;
}

.verification-badge {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--ink) !important;
  font-weight: 950;
}

.sheet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.sheet-actions button:nth-child(n+2) {
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 86%, #fff 14%);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.place-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.mini-list article,
.vehicle-card,
.ride-card,
.place-card,
.empty-card,
.profile-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}

.wide-button {
  width: 100%;
}

.fp-marker {
  background: transparent;
}

.fp-marker span {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px rgba(29, 29, 31, .2);
  cursor: pointer;
  font-size: 10px;
}

.fp-marker-ym span {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0b1b31);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--blue) 18%, transparent),
    0 16px 32px rgba(0, 113, 227, .32);
  font-size: 12px;
}

.fp-marker-ym span::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border: 1px solid color-mix(in srgb, var(--blue) 34%, transparent);
  border-radius: 50%;
  animation: marker-pulse 1.9s ease-out infinite;
}

.fp-marker-leader span {
  color: #fff;
  background: linear-gradient(135deg, #101827, #243042);
}

.fp-marker-found span {
  color: #fff;
  background: linear-gradient(135deg, #168a55, #22c55e);
}

.fp-marker-live span {
  width: auto;
  min-width: 64px;
  height: 34px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0071e3);
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, .14),
    0 10px 22px rgba(29, 29, 31, .2);
  font-size: 9px;
}

.fp-marker-live span b,
.fp-marker-live span small {
  display: block;
  line-height: 1;
}

.fp-marker-live span b {
  font-size: 10px;
}

.fp-marker-live span small {
  opacity: .82;
  font-size: 8px;
  font-weight: 850;
}

.gps-debug {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: 14px;
  padding: 9px;
  background: color-mix(in srgb, var(--panel) 66%, transparent);
}

.gps-debug b {
  font-size: 12px;
}

.gps-debug span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fp-marker-place span {
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  color: var(--marker-place-ink);
  background: color-mix(in srgb, var(--marker-place) 92%, transparent);
  box-shadow: 0 7px 16px rgba(29, 29, 31, .14);
  font-size: 9px;
}

.fp-marker-spot span {
  color: #1d1d1f;
  background: linear-gradient(135deg, #fff7cc, var(--gold));
}

@keyframes marker-pulse {
  from {
    opacity: .6;
    transform: scale(.76);
  }
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

.section-block {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.channel-row,
.quick-alerts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 10px 0;
  padding-bottom: 2px;
}

.channel-row button,
.quick-alerts button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 900;
}

.sheet-status {
  min-height: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.helmet-card {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--gold) 34%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 90%, transparent);
}

.helmet-card span,
.helmet-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.helmet-card b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.place-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.place-actions button {
  min-height: 30px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 900;
}

.trip-recorder-panel {
  display: grid;
  gap: 12px;
}

.trip-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, #ff9f0a 24%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 74%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
}

.trip-meter strong {
  color: var(--ink);
  font-size: clamp(34px, 10vw, 48px);
  line-height: .9;
  letter-spacing: -.02em;
}

.trip-meter span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 950;
}

.trip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trip-stats article {
  display: grid;
  gap: 2px;
  min-height: 62px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 16px;
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 68%, transparent);
}

.trip-stats b {
  color: var(--ink);
  font-size: 17px;
}

.trip-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.visibility-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.visibility-row::-webkit-scrollbar { display: none; }

.visibility-row button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.visibility-row button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.privacy-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.privacy-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.trip-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-recorder-panel.saved .trip-meter {
  background:
    radial-gradient(circle at 20% 12%, color-mix(in srgb, #34c759 24%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 74%, transparent);
}

.talk-button {
  width: 100%;
  min-height: 64px;
  margin: 10px 0;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--ink));
  box-shadow: 0 18px 42px rgba(0, 113, 227, .28);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .08em;
}

.talk-button.listening {
  background: linear-gradient(135deg, #ff4d4d, var(--gold));
}

.talk-button.processing {
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.talk-button.sent {
  background: linear-gradient(135deg, #22a06b, var(--blue));
}

.voice-push-form {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.voice-push-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.voice-push-form input,
.voice-push-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, white 12%);
  outline: none;
}

.voice-push-form button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.plate-alert-form {
  display: grid;
  grid-template-columns: .8fr 1fr auto;
  gap: 6px;
  margin: 8px 0;
}

.plate-alert-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
}

.plate-alert-form button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.page-view {
  min-height: 100dvh;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 22px) 16px calc(env(safe-area-inset-bottom) + 92px);
  background:
    radial-gradient(circle at 20% 0, rgba(0, 113, 227, .12), transparent 32%),
    var(--bg);
}

.page-header {
  margin-bottom: 16px;
}

.card-list {
  display: grid;
  gap: 10px;
}

.vehicle-card strong {
  font-size: 24px;
}

.vehicle-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
}

.vehicle-card em {
  font-style: normal;
  font-weight: 900;
}

.vehicle-card button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 82%, #fff 18%);
  font-weight: 950;
}

.operator-view .page-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.operator-auth-screen .auth-card {
  max-width: 430px;
}

.operator-dev-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .54);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.operator-logout {
  min-height: 42px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  font-weight: 900;
}

.operator-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.operator-tabs::-webkit-scrollbar { display: none; }

.operator-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  font-weight: 950;
}

.operator-tabs button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.operator-content {
  display: grid;
  gap: 10px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operator-metric,
.operator-card,
.operator-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 14px 34px rgba(29, 29, 31, .08);
}

.operator-metric {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px;
}

.operator-metric span,
.operator-card span,
.operator-card small,
.operator-card em,
.operator-row small,
.operator-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.operator-metric b {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.operator-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.operator-card b,
.operator-row b {
  color: var(--ink);
  font-size: 15px;
}

.operator-card button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.62);
  font-weight: 900;
}

.operator-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.operator-row img,
.operator-thumb {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.operator-row img {
  object-fit: cover;
}

.operator-thumb {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0b1b31);
  font-size: 12px;
  font-weight: 950;
}

.vehicle-permission-card,
.vehicle-conflict-card,
.verification-options {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.vehicle-permission-card span,
.vehicle-conflict-card span,
.vehicle-permission-card small {
  color: var(--muted);
  font-size: 13px;
}

.vehicle-conflict-card {
  border-color: color-mix(in srgb, #ff9f0a 34%, var(--line));
  background: color-mix(in srgb, #ff9f0a 10%, var(--panel));
}

.verification-options button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 86%, #fff 14%);
  font-weight: 900;
  text-align: left;
  padding: 0 14px;
}

.filters,
.skin-switcher,
.shortcut-preferences {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.filters button,
.skin-switcher button,
.shortcut-preferences button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 900;
}

.filters .active,
.skin-switcher .active,
.shortcut-preferences .active {
  color: #fff;
  background: var(--blue);
}

.preference-card {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(29, 29, 31, .08);
}

.preference-card b {
  font-size: 16px;
}

.logout-button {
  width: 100%;
  margin-top: 14px;
  background: var(--ink);
}

.desktop-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--bg);
}

.desktop-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 460px);
  gap: 34px;
  align-items: center;
  max-width: 780px;
}

.desktop-card h1 {
  margin: 0 0 12px;
  font-size: 52px;
  line-height: .95;
}

.desktop-card p {
  color: var(--muted);
}

.desktop-actions {
  display: flex;
  gap: 10px;
}

.desktop-actions button,
.desktop-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 900;
}

.phone-preview {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 430px;
  padding: 18px;
  border: 10px solid var(--ink);
  border-radius: 36px;
  background: linear-gradient(160deg, #dbe8f6, #f7f8fb);
  box-shadow: var(--shadow);
}

.phone-preview b {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: var(--plate-bg);
  color: var(--plate-ink);
  text-align: center;
}

@media (max-width: 430px) {
  .home-view::after {
    top: calc(env(safe-area-inset-top) + 184px);
    height: 44px;
  }

  .map {
    inset: calc(env(safe-area-inset-top) + 196px) 0 0;
  }

  .topbar {
    left: 10px;
    right: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .mini-brand {
    padding: 8px 11px;
    font-size: 14px;
  }

  .vehicle-avatar {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .vehicle-avatar::before {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .top-actions button {
    width: 42px;
    height: 42px;
  }

  .shortcut-strip {
    top: calc(env(safe-area-inset-top) + 56px);
    left: 8px;
    right: 8px;
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-rows: 102px;
    min-height: 118px;
    padding: 6px 0 7px 6px;
  }

  .active-profile-photo {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

  .roadtalk-live {
    top: calc(env(safe-area-inset-top) + 164px);
    left: 10px;
    min-height: 30px;
    max-width: calc(100vw - 20px);
    font-size: 11px;
  }

  .shortcut-avatar {
    width: 70px;
    height: 70px;
  }

  .map-chips {
    top: calc(env(safe-area-inset-top) + 204px);
  }

  .gps-status {
    top: calc(env(safe-area-inset-top) + 252px);
    right: 10px;
  }

  .show-my-vehicle {
    top: calc(env(safe-area-inset-top) + 292px);
    right: 10px;
  }

  .social-drawer {
    left: 8px;
    right: 8px;
    bottom: calc(env(safe-area-inset-bottom) + 84px);
  }

  .social-drawer-panel {
    padding: 10px;
  }

  .social-card {
    flex-basis: 176px;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  .home-view::after {
    top: calc(env(safe-area-inset-top) + 178px);
    height: 42px;
  }

  .map {
    inset: calc(env(safe-area-inset-top) + 190px) 0 0;
  }

  .shortcut-strip {
    top: calc(env(safe-area-inset-top) + 54px);
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: 98px;
    min-height: 114px;
    padding-left: 6px;
  }

  .active-profile-photo {
    width: 68px;
    height: 68px;
    font-size: 25px;
  }

  .stories button {
    width: 88px;
    min-height: 92px;
  }

  .shortcut-avatar {
    width: 68px;
    height: 68px;
  }

  .stories b {
    font-size: 12px;
  }

  .stories small {
    font-size: 9px;
  }

  .stories i {
    top: 53px;
    right: 5px;
  }

  .roadtalk-live {
    display: none;
    top: calc(env(safe-area-inset-top) + 130px);
    max-width: 156px;
  }

  .plate-cta {
    grid-template-columns: 64px 40px 1fr;
    min-height: 56px;
    bottom: calc(env(safe-area-inset-bottom) + 16px);
    width: min(420px, calc(100vw - 32px));
    padding: 5px;
  }

  .plate-cta .plate-country-chip,
  .plate-mic-ai {
    height: 44px;
    min-height: 44px;
  }

  .plate-cta b {
    font-size: 12px;
    letter-spacing: .03em;
  }

  .map-chips {
    top: calc(env(safe-area-inset-top) + 198px);
  }

  .gps-status {
    top: calc(env(safe-area-inset-top) + 246px);
    max-width: calc(100vw - 24px);
  }

  .show-my-vehicle {
    top: calc(env(safe-area-inset-top) + 286px);
    max-width: calc(100vw - 24px);
  }

  .social-drawer-handle {
    min-height: 34px;
    font-size: 11px;
  }

  .social-drawer[data-state="half"] .social-drawer-panel {
    max-height: 236px;
    overflow-y: auto;
  }

  .sheet {
    max-height: min(calc(100dvh - env(safe-area-inset-top) - 150px), 430px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 92px);
  }

  .sheet h2 {
    font-size: 24px;
  }

  .voice-command-button {
    width: min(168px, 56vw);
    min-height: 88px;
    font-size: 18px;
  }

  .sheet-search {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .plate-sheet-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
