:root {
  --asphalt: #080b0f;
  --asphalt-2: #0d1217;
  --panel: #12181d;
  --panel-2: #171e24;
  --line: #2a3239;
  --line-bright: #46515a;
  --bone: #f0eee6;
  --muted: #8f9aa1;
  --signal: #ff5630;
  --signal-soft: #ff7a58;
  --rep: #c8ff3d;
  --cyan: #6ee7f2;
  --phone-radius: 34px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #d7d1c5;
}

body {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 1px solid var(--rep);
  outline-offset: -3px;
}

svg {
  display: block;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.prototype-stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(52px, 7vw, 116px);
  padding: 16px 7vw;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(27, 31, 34, 0.08) 50%, transparent calc(50% + 1px)),
    #d7d1c5;
  color: #141719;
}

.prototype-notes {
  width: min(390px, 32vw);
  align-self: center;
}

.prototype-notes .kicker {
  width: max-content;
  margin: 0 0 22px;
  padding: 7px 10px 6px;
  color: #e63f20;
  border: 1px solid rgba(20, 23, 25, 0.24);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.prototype-notes h1 {
  margin: 0;
  max-width: 380px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 0.91;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.prototype-notes > p:not(.kicker):not(.prototype-foot) {
  max-width: 350px;
  margin: 24px 0 32px;
  color: #505457;
  font-size: 15px;
  line-height: 1.55;
}

.prototype-notes ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(20, 23, 25, 0.25);
}

.prototype-notes li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border-bottom: 1px solid rgba(20, 23, 25, 0.25);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prototype-notes li span {
  color: #e63f20;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
}

.prototype-foot {
  margin-top: 52px;
  color: #696e70;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.app-shell {
  position: relative;
  width: min(410px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 32px));
  min-height: 680px;
  flex: 0 0 auto;
  overflow: hidden;
  overflow: clip;
  color: var(--bone);
  background: var(--asphalt);
  border: 8px solid #171a1c;
  border-radius: var(--phone-radius);
  box-shadow:
    0 32px 72px rgba(36, 32, 27, 0.28),
    0 6px 18px rgba(36, 32, 27, 0.15),
    inset 0 0 0 1px #42474a;
  isolation: isolate;
}

.screen-glow {
  position: absolute;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.4);
}

.app-view {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--asphalt);
}

.app-view.is-active {
  display: block;
  animation: view-in 230ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-view {
  background: #0b0f12;
}

.map-canvas,
.map-canvas svg,
.map-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-canvas {
  overflow: hidden;
}

.map-canvas svg {
  transform: scale(1.04);
  transform-origin: 50% 43%;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.is-sheet-open .map-canvas svg {
  transform: scale(0.94) translateY(-26px);
}

.map-blocks path {
  fill: #10161a;
  stroke: #1e262b;
  stroke-width: 1;
}

.map-roads path {
  fill: none;
  stroke-linecap: round;
}

.map-roads.minor path {
  stroke: #252d33;
  stroke-width: 6;
}

.map-roads.major path {
  stroke: #3a444b;
  stroke-width: 10;
}

.map-roads.major path::after {
  stroke: #111;
}

.active-route {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  opacity: 0.94;
  animation: route-flow 12s linear infinite;
}

.route-shadow {
  stroke: #ff3c16;
  stroke-width: 10;
  stroke-dasharray: none;
  opacity: 0.07;
}

@keyframes route-flow {
  to { stroke-dashoffset: -140; }
}

.map-labels text {
  fill: #4f5a62;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.map-vignette {
  background:
    linear-gradient(to bottom, rgba(5, 8, 10, 0.52) 0, transparent 18%, transparent 64%, rgba(5, 8, 10, 0.75) 100%),
    linear-gradient(to right, rgba(5, 8, 10, 0.2), transparent 25%, transparent 75%, rgba(5, 8, 10, 0.28));
}

.pulse-topbar {
  position: absolute;
  z-index: 12;
  top: calc(12px + var(--safe-top));
  left: calc(13px + var(--safe-left));
  right: calc(13px + var(--safe-right));
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 8px;
}

.identity-button,
.icon-button,
.map-control {
  min-width: 44px;
  min-height: 44px;
}

.identity-button {
  display: grid;
  place-items: center;
}

.identity-ring {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 1px solid rgba(240, 238, 230, 0.58);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.identity-ring span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bone);
  color: #11161a;
  border-radius: 50%;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.car-chip {
  min-height: 48px;
  display: grid;
  grid-template-columns: 8px 1fr 17px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  text-align: left;
  background: #11171b;
  border: 1px solid rgba(240, 238, 230, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.car-chip > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.car-chip b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.car-chip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.car-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.car-status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--rep);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.1), 0 0 12px rgba(200, 255, 61, 0.35);
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  background: #11171b;
  border: 1px solid rgba(240, 238, 230, 0.18);
  border-radius: 50%;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  color: white;
  background: var(--signal);
  border: 2px solid var(--asphalt);
  border-radius: 9px;
  font-size: 8px;
  font-weight: 850;
}

.map-heading {
  position: absolute;
  z-index: 8;
  top: calc(100px + var(--safe-top));
  left: calc(18px + var(--safe-left));
  display: flex;
  align-items: baseline;
  gap: 7px;
  text-shadow: 0 2px 8px #000;
  transition: opacity 200ms ease;
}

.map-heading p {
  position: absolute;
  bottom: 23px;
  left: 0;
  width: max-content;
  margin: 0;
  color: var(--muted);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.live-pip {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 4px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 86, 48, 0.1);
  animation: live-breathe 1.8s ease-in-out infinite;
}

@keyframes live-breathe {
  50% { box-shadow: 0 0 0 9px rgba(255, 86, 48, 0); }
}

.map-heading strong {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.map-heading > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
}

.is-sheet-open .map-heading {
  opacity: 0;
}

.map-controls {
  position: absolute;
  z-index: 12;
  top: 116px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 200ms ease;
}

.map-control {
  width: 44px;
  display: grid;
  place-items: center;
  background: #11171b;
  border: 1px solid rgba(240, 238, 230, 0.17);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.map-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layer-control {
  position: relative;
  color: var(--muted);
}

.layer-control small {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 23px;
  padding: 2px 4px;
  color: #0a0d10;
  background: var(--bone);
  border-radius: 6px;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.is-sheet-open .map-controls {
  opacity: 0;
  pointer-events: none;
}

.marker-field {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.map-marker,
.you-marker {
  position: absolute;
  pointer-events: auto;
}

.map-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #071013;
  background: var(--bone);
  border: 3px solid #0a0d0f;
  border-radius: 50% 50% 50% 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
  transform: rotate(-45deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.map-marker b,
.map-marker small {
  position: relative;
  z-index: 2;
  transform: rotate(45deg);
}

.map-marker b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 950;
}

.map-marker small {
  position: absolute;
  right: -9px;
  top: -7px;
  min-width: 23px;
  padding: 3px 5px;
  color: var(--bone);
  background: #12181d;
  border: 1px solid #4b565e;
  border-radius: 9px;
  font-size: 7px;
  font-weight: 850;
}

.marker-halo {
  position: absolute;
  inset: -9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
}

.marker-drop {
  color: #fff;
  background: var(--signal);
}

.marker-rep {
  background: var(--rep);
}

.marker-fuel {
  color: #061114;
  background: var(--cyan);
}

.marker-fuel b {
  font-size: 9px;
}

.marker-shop {
  color: var(--bone);
  background: #283139;
}

.marker-a { left: 57%; top: 29%; }
.marker-b { left: 19%; top: 39%; }
.marker-c { right: 14%; top: 47%; }
.marker-d { left: 27%; top: 21%; }

.map-marker.is-focused {
  transform: rotate(-45deg) scale(1.16);
  filter: brightness(1.12);
}

.map-marker.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: rotate(-45deg) scale(0.6);
}

.you-marker {
  left: 49%;
  top: 51%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: rgba(110, 231, 242, 0.12);
  border: 1px solid rgba(110, 231, 242, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(110, 231, 242, 0.045);
}

.you-marker span {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border: 2px solid #e9ffff;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(110, 231, 242, 0.8);
}

.pulse-sheet {
  position: absolute;
  z-index: 16;
  right: 0;
  bottom: calc(77px + var(--safe-bottom));
  left: 0;
  height: 260px;
  padding: 0 calc(17px + var(--safe-right)) 15px calc(17px + var(--safe-left));
  background: var(--panel);
  border-top: 1px solid var(--line-bright);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.42);
  transition: height 390ms cubic-bezier(0.2, 0.86, 0.2, 1);
  touch-action: none;
}

.pulse-sheet::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 34px;
  width: 66px;
  height: 2px;
  background: var(--signal);
}

.pulse-view.is-sheet-open .pulse-sheet {
  height: calc(100% - 112px - var(--safe-top) - var(--safe-bottom));
}

.sheet-grab {
  width: 100%;
  min-height: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  cursor: ns-resize;
}

.sheet-grab span {
  width: 33px;
  height: 3px;
  background: #5d676e;
  border-radius: 2px;
}

.sheet-grab em {
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
}

.sheet-grab:focus-visible {
  outline: 0;
}

.sheet-grab:focus-visible span {
  background: var(--rep);
}

.pulse-sheet:hover .sheet-grab em,
.pulse-view.is-sheet-open .sheet-grab em {
  opacity: 1;
}

.pulse-content {
  height: calc(100% - 35px);
  overflow: hidden;
}

.pulse-view.is-sheet-open .pulse-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.pulse-content::-webkit-scrollbar {
  display: none;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-intro h1,
.page-topbar h1 {
  margin: 3px 0 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 29px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.pulse-intro h1 i {
  color: var(--signal);
  font-style: normal;
}

.pulse-metrics {
  display: flex;
  gap: 13px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 680;
  text-transform: uppercase;
}

.pulse-metrics span {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.pulse-metrics b {
  color: var(--bone);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
}

.activity-focus {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 75px;
  margin-top: 13px;
  padding: 9px 8px 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.activity-focus::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: var(--signal);
}

.focus-time {
  min-height: 47px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.focus-time b {
  color: var(--signal-soft);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.focus-time span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 6px;
  font-weight: 750;
}

.focus-copy {
  min-width: 0;
}

.activity-type {
  margin: 0 0 3px;
  color: var(--signal-soft);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.focus-copy h2 {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 7px;
}

.join-button {
  min-width: 54px;
  min-height: 38px;
  padding: 0 10px;
  color: #130b08;
  background: var(--signal);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.expanded-pulse {
  margin-top: 18px;
  padding-bottom: 35px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease 90ms, transform 220ms ease 90ms;
}

.pulse-view.is-sheet-open .expanded-pulse {
  opacity: 1;
  transform: translateY(0);
}

.section-rule {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-bright);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.section-rule button {
  min-height: 30px;
  color: var(--signal-soft);
  font-size: 7px;
  font-weight: 800;
}

.pulse-row {
  min-height: 67px;
  display: grid;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.pulse-row time {
  color: var(--muted);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
}

.pulse-row b {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.pulse-row p {
  margin: 0;
  color: var(--muted);
  font-size: 7px;
}

.row-code,
.tiny-avatar {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 900;
}

.row-code.rep {
  color: #101608;
  background: var(--rep);
  border-color: var(--rep);
}

.row-code.wrench {
  color: var(--cyan);
}

.tiny-avatar {
  color: #101418;
  background: var(--bone);
}

.bottom-rail {
  position: absolute;
  z-index: 32;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(78px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(12px + var(--safe-right)) var(--safe-bottom) calc(12px + var(--safe-left));
  background: linear-gradient(90deg, #090d10, #0d1317 50%, #090d10);
  border-top: 1px solid #313a40;
}

.rail-button {
  min-width: 0;
  min-height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6f7a81;
}

.rail-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-button span {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.rail-button.is-active {
  color: var(--bone);
}

.rail-button.is-active svg {
  stroke: var(--signal);
}

.rail-button:focus-visible {
  outline: 0;
  color: var(--rep);
}

.drop-trigger {
  position: relative;
  top: -16px;
  justify-self: center;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #170c08;
  background: var(--signal);
  border: 5px solid #090d10;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 121, 86, 0.7), 0 10px 24px rgba(255, 86, 48, 0.19);
}

.drop-trigger b {
  position: absolute;
  bottom: 10px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.drop-symbol {
  position: absolute;
  top: 13px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.drop-symbol::before,
.drop-symbol::after,
.drop-symbol i::before,
.drop-symbol i::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.drop-symbol::before { width: 2px; height: 7px; top: -5px; }
.drop-symbol::after { width: 2px; height: 7px; bottom: -5px; }
.drop-symbol i::before { height: 2px; width: 7px; left: -5px; }
.drop-symbol i::after { height: 2px; width: 7px; right: -5px; }

.page-topbar {
  position: relative;
  z-index: 3;
  min-height: calc(78px + var(--safe-top));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) calc(18px + var(--safe-right)) 12px calc(18px + var(--safe-left));
  border-bottom: 1px solid var(--line);
}

.page-topbar.with-back {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: end;
  gap: 10px;
}

.page-topbar.with-back > div {
  text-align: center;
}

.page-topbar h1 {
  font-size: 31px;
}

.page-topbar .icon-button {
  background: transparent;
  border-color: var(--line);
}

.context-band {
  min-height: 56px;
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  background: #11171b;
  border-bottom: 1px solid var(--line);
}

.context-band div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.context-band small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.context-band b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.context-band button {
  min-height: 44px;
  color: var(--signal-soft);
  font-size: 7px;
  font-weight: 850;
}

.market-scroll,
.garage-scroll,
.message-scroll,
.profile-scroll {
  height: calc(100% - 156px);
  overflow-y: auto;
  padding-bottom: 42px;
  scrollbar-width: none;
}

.market-scroll::-webkit-scrollbar,
.garage-scroll::-webkit-scrollbar,
.message-scroll::-webkit-scrollbar,
.profile-scroll::-webkit-scrollbar {
  display: none;
}

.market-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 18px 15px;
}

.market-summary b {
  color: var(--rep);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 42px;
  line-height: 0.8;
}

.market-summary span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
}

.listing {
  position: relative;
  margin: 0 17px;
  border-top: 1px solid var(--line-bright);
}

.listing-featured {
  min-height: 218px;
  overflow: hidden;
  background: #161c21;
  border-bottom: 1px solid var(--line);
}

.listing-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 100%;
  background:
    linear-gradient(128deg, transparent 0 48%, rgba(255, 255, 255, 0.03) 48% 52%, transparent 52%),
    #0c1115;
}

.wheel-art::before,
.wheel-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.wheel-art::before {
  width: 122px;
  height: 122px;
  left: -19px;
  top: 43px;
  background: repeating-conic-gradient(from 5deg, #909ba1 0 7deg, #20272c 7deg 22deg);
  border: 15px solid #050709;
  box-shadow: 0 0 0 2px #49535a, 13px 18px 24px rgba(0, 0, 0, 0.55);
}

.wheel-art::after {
  width: 30px;
  height: 30px;
  left: 42px;
  top: 104px;
  background: #0b0e11;
  border: 5px solid #bdc6ca;
}

.wheel-art i {
  position: absolute;
  right: 9px;
  width: 28px;
  height: 2px;
  background: var(--signal);
}

.wheel-art i:nth-child(1) { top: 44px; }
.wheel-art i:nth-child(2) { top: 52px; width: 17px; }
.wheel-art i:nth-child(3) { bottom: 43px; width: 39px; }

.listing-copy {
  position: absolute;
  right: 12px;
  bottom: 17px;
  width: 50%;
}

.listing p {
  margin: 0 0 6px;
  color: var(--rep);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.listing h2 {
  margin: 0 0 5px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.listing span {
  color: var(--muted);
  font-size: 7px;
}

.listing strong {
  display: block;
  margin-top: 15px;
  color: var(--bone);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
}

.listing-slim {
  min-height: 92px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 0;
}

.listing-slim .listing-index {
  color: #5d686f;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 9px;
}

.listing-slim h2 {
  font-size: 14px;
}

.listing-slim strong {
  align-self: center;
  margin: 0;
  color: var(--signal-soft);
  font-size: 11px;
}

.garage-scroll,
.profile-scroll,
.message-scroll {
  height: calc(100% - 102px - var(--safe-top) - var(--safe-bottom));
  padding-bottom: 105px;
}

.car-stage {
  position: relative;
  min-height: 294px;
  overflow: hidden;
  padding: 20px 17px 0;
  background:
    linear-gradient(155deg, transparent 0 49%, rgba(255, 255, 255, 0.025) 49% 50%, transparent 50%),
    #10161a;
  border-bottom: 1px solid var(--line);
}

.car-stage::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 19px;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 86, 48, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 0 11px #10161a, inset 0 0 0 12px rgba(255, 86, 48, 0.12);
}

.car-year {
  position: absolute;
  top: 19px;
  left: 16px;
  margin: 0;
  color: #2a3339;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 71px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.06em;
}

.car-silhouette {
  position: relative;
  z-index: 2;
  width: 112%;
  margin: 61px -6% 0;
  overflow: visible;
}

.car-body {
  fill: #d8d9d2;
  stroke: #f5f5ef;
  stroke-width: 2;
}

.car-window {
  fill: #11171b;
  stroke: #69747a;
  stroke-width: 2;
}

.car-line,
.car-shadow {
  fill: none;
  stroke: #6c7579;
  stroke-width: 2;
}

.car-shadow {
  stroke: rgba(0, 0, 0, 0.8);
  stroke-width: 13;
}

.tire { fill: #050708; }
.rim { fill: #757f84; stroke: #d9dfdf; stroke-width: 3; }

.car-title {
  position: absolute;
  z-index: 3;
  right: 17px;
  bottom: 15px;
  left: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.car-title h2 {
  margin: 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.car-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.car-title > span {
  padding: 5px 7px;
  color: #101408;
  background: var(--rep);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.car-stats {
  min-height: 73px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.car-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.car-stats div:last-child { border-right: 0; }

.car-stats b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 19px;
}

.car-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 6px;
  font-weight: 780;
  letter-spacing: 0.09em;
}

.build-next {
  padding: 19px 17px;
  border-bottom: 1px solid var(--line);
}

.build-next h2 {
  margin: 6px 0 14px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}

.build-track {
  height: 3px;
  overflow: hidden;
  background: #2b3339;
}

.build-track i {
  height: 100%;
  display: block;
  background: var(--signal);
}

.build-meta {
  min-height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.build-meta span {
  color: var(--muted);
  font-size: 7px;
}

.build-meta button {
  min-height: 30px;
  color: var(--signal-soft);
  font-size: 7px;
  font-weight: 850;
}

.garage-actions {
  padding: 0 17px;
}

.garage-actions button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.garage-actions span {
  color: #5e6970;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
}

.garage-actions b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.garage-actions small {
  color: var(--muted);
  font-size: 7px;
}

.message-scroll {
  padding: 8px 17px 105px;
}

.message-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.message-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #101418;
  background: var(--bone);
  border-radius: 50%;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.drop-avatar { color: white; background: var(--signal); }
.area-avatar { color: #0e1606; background: var(--rep); }
.shop-avatar { color: #061417; background: var(--cyan); }

.message-row > div p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 5px;
}

.message-row b { font-size: 11px; }
.message-row time { color: var(--muted); font-size: 7px; }
.message-row > div > span { color: var(--muted); font-size: 8px; }

.message-row > em {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--signal);
  border-radius: 9px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.message-row.is-live {
  border-left: 2px solid var(--signal);
  padding-left: 9px;
}

.profile-scroll {
  padding-bottom: 105px;
}

.profile-hero {
  padding: 23px 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: #11161a;
  background: var(--bone);
  border: 4px solid var(--asphalt);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-bright), 0 0 0 7px rgba(255, 86, 48, 0.1);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 950;
}

.profile-hero h2 {
  margin: 5px 0 3px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 27px;
  text-transform: uppercase;
}

.profile-hero > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.level-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  color: var(--muted);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 7px;
  font-weight: 850;
}

.level-line i {
  height: 3px;
  background: #2b3339;
}

.level-line i b {
  height: 100%;
  display: block;
  background: var(--signal);
}

.level-line strong {
  color: var(--bone);
  font-size: 8px;
}

.profile-split {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.profile-split div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.profile-split div:last-child { border-right: 0; }
.profile-split b { font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 20px; }
.profile-split span { margin-top: 3px; color: var(--muted); font-size: 6px; font-weight: 800; letter-spacing: .08em; }

.rep-wallet {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  color: #0d1405;
  background: var(--rep);
}

.rep-wallet strong {
  display: block;
  margin-top: 2px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 42px;
  line-height: 1;
}

.rep-wallet .eyebrow { color: #354016; }

.rep-wallet button {
  max-width: 128px;
  min-height: 45px;
  padding: 0 12px;
  color: var(--rep);
  background: #101608;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .06em;
}

.trust-strip {
  min-height: 75px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 18px;
  border-bottom: 1px solid var(--line);
}

.trust-strip svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-strip div { display: flex; flex-direction: column; gap: 4px; }
.trust-strip b { font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 11px; }
.trust-strip span { color: var(--muted); font-size: 7px; }

.drop-overlay {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 300ms, opacity 220ms ease;
}

.drop-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 5, 0.78);
}

.drop-dial-panel {
  position: relative;
  width: 100%;
  min-height: calc(590px + var(--safe-bottom));
  max-height: calc(100% - var(--safe-top));
  overflow: hidden;
  padding: 28px calc(17px + var(--safe-right)) calc(23px + var(--safe-bottom)) calc(17px + var(--safe-left));
  background: #11171b;
  border-top: 1px solid #5f696f;
  border-radius: 22px 22px 0 0;
  transform: translateY(102%);
  transition: transform 380ms cubic-bezier(0.18, 0.86, 0.2, 1);
}

.drop-overlay.is-open .drop-dial-panel {
  transform: translateY(0);
}

.drop-dial-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 50%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 86, 48, 0.08);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.dial-header {
  position: relative;
  z-index: 2;
  text-align: center;
}

.dial-header h2 {
  margin: 5px 0 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.drop-dial {
  position: relative;
  width: 330px;
  height: 330px;
  margin: 4px auto 0;
  border: 1px solid #303a40;
  border-radius: 50%;
  box-shadow: inset 0 0 0 30px #0d1216, inset 0 0 0 31px #283138;
}

.drop-dial::before,
.drop-dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.drop-dial::before {
  width: 208px;
  height: 208px;
  border: 1px dashed #303a40;
}

.drop-dial::after {
  width: 4px;
  height: 4px;
  background: var(--signal);
  box-shadow: 0 -104px 0 var(--signal), 90px 52px 0 #445058, -90px 52px 0 #445058;
}

.dial-center {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 116px;
  height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #180c08;
  background: var(--signal);
  border: 7px solid #11171b;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--signal-soft), 0 0 35px rgba(255, 86, 48, 0.2);
  transform: translate(-50%, -50%);
}

.dial-center small,
.dial-center span {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dial-center strong {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  line-height: .9;
  letter-spacing: -0.04em;
}

.dial-center span {
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(24, 12, 8, 0.4);
  font-size: 6px;
}

.dial-choice {
  --angle: calc(var(--slot) * 120deg - 90deg);
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  place-items: center;
  color: var(--muted);
  background: #161d22;
  border: 1px solid #3c474e;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-128px) rotate(calc(var(--angle) * -1));
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, scale 180ms ease;
}

.dial-choice span {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
}

.dial-choice svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dial-choice.is-current {
  color: #121707;
  background: var(--rep);
  border-color: var(--rep);
  scale: 1.08;
  box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.08);
}

.drop-context {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 0 0 0 11px;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
}

.drop-context span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 7px;
}

.drop-context span b {
  color: var(--bone);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
}

.drop-context button {
  min-width: 132px;
  min-height: 43px;
  padding: 0 12px;
  color: #180c08;
  background: var(--signal);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 7px;
}

.privacy-note svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(95px + var(--safe-bottom));
  max-width: calc(100% - 40px);
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #101408;
  background: var(--rep);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 170ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Clips: a single full-screen media surface, not another card feed. */
.clips-view {
  background:
    radial-gradient(circle at 50% 42%, rgba(70, 84, 91, .18), transparent 36%),
    linear-gradient(180deg, #0b1014, #050709 72%);
}

.clips-view::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(77px + var(--safe-bottom));
  opacity: .25;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}

.clip-empty-state {
  position: absolute;
  z-index: 2;
  inset: calc(68px + var(--safe-top)) var(--safe-right) calc(77px + var(--safe-bottom)) var(--safe-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.clip-empty-state > svg,
.view-empty-state > svg {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clip-empty-state h1,
.view-empty-state h2 {
  margin: 6px 0 8px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.clip-empty-state > p:not(.eyebrow),
.view-empty-state > p:not(.eyebrow) {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.clip-empty-state > button,
.view-empty-state > button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0 18px;
  color: #140c08;
  background: var(--signal);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

.clip-empty-state > button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.view-empty-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 25px 48px;
  text-align: center;
}

.market-empty-state {
  min-height: calc(100% - 61px);
}

.topbar-spacer {
  width: 46px;
  height: 46px;
}

.pulse-empty-copy {
  margin-top: 18px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.car-status-dot.is-empty {
  background: #59646a;
  box-shadow: none;
}

.comment-empty-copy {
  margin: 50px 0;
  color: var(--muted);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}

.user-clip {
  position: absolute;
  inset: 0 0 calc(77px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  background: #050709;
}

.user-clip video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020304;
}

.user-clip-meta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: rgba(6, 9, 11, .88);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}

.user-clip-meta small {
  color: var(--signal);
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .1em;
}

.user-clip-meta p {
  margin: 5px 0 0;
  font-size: 9px;
}

.user-clip-meta button {
  min-height: 42px;
  flex: 0 0 auto;
  color: var(--bone);
  font-size: 7px;
  font-weight: 900;
}

.user-vehicle-listing {
  margin: 0 17px 20px;
  overflow: hidden;
  background: #13191e;
  border: 1px solid #353e45;
}

.user-vehicle-listing > img {
  width: 100%;
  height: 174px;
  display: block;
  object-fit: cover;
  background: #080b0e;
}

.user-vehicle-listing > div {
  padding: 15px;
}

.user-vehicle-listing small {
  color: var(--rep);
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .1em;
}

.user-vehicle-listing h2 {
  margin: 6px 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.user-vehicle-listing p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.user-vehicle-listing > div > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.user-vehicle-listing strong {
  color: var(--signal-soft);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
}

.user-vehicle-listing span {
  color: var(--muted);
  font-size: 7px;
  text-align: right;
}

.clip-media,
.clip-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 77px - var(--safe-bottom));
}

.clip-media {
  object-fit: cover;
  object-position: 54% center;
}

.clip-shade {
  background:
    linear-gradient(180deg, rgba(2, 4, 5, .7) 0, transparent 24%, transparent 57%, rgba(3, 5, 6, .86) 100%),
    linear-gradient(90deg, transparent 58%, rgba(2, 4, 5, .3) 100%);
  pointer-events: none;
}

.clip-topbar {
  position: absolute;
  z-index: 4;
  top: calc(8px + var(--safe-top));
  right: calc(14px + var(--safe-right));
  left: calc(14px + var(--safe-left));
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.clip-feed-switch {
  min-width: 0;
  display: flex;
  align-items: center;
}

.clip-feed-switch button {
  position: relative;
  min-height: 44px;
  padding: 0 7px;
  color: rgba(240, 238, 230, .57);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  white-space: nowrap;
}

.clip-feed-switch button.is-active {
  color: var(--bone);
}

.clip-feed-switch button.is-active::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  height: 2px;
  background: var(--signal);
}

.post-clip-button {
  flex: 0 0 auto;
  min-width: 66px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #140c08;
  background: var(--signal);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

@media (max-width: 370px) {
  .clip-feed-switch button {
    padding: 0 5px;
    font-size: 8px;
  }

  .clip-feed-switch button.is-active::after {
    right: 5px;
    left: 5px;
  }

  .post-clip-button {
    min-width: 58px;
  }
}

.post-clip-button svg,
.sell-car-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
}

.clip-duration {
  position: absolute;
  z-index: 4;
  top: 65px;
  right: 17px;
  left: 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: rgba(240, 238, 230, .72);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
}

.clip-duration i {
  height: 1px;
  overflow: hidden;
  background: rgba(240, 238, 230, .25);
}

.clip-duration i b {
  display: block;
  height: 100%;
  background: var(--signal);
}

.clip-duration small {
  font-size: 7px;
}

.clip-actions {
  position: absolute;
  z-index: 5;
  right: 11px;
  bottom: 139px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.clip-actions > button {
  min-width: 52px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--bone);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .58));
}

.clip-actions svg {
  width: 25px;
  height: 25px;
  fill: rgba(5, 7, 9, .18);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clip-actions button[aria-pressed="true"] svg {
  color: var(--signal);
  fill: var(--signal);
}

.clip-actions button > span {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
}

.clip-actions .clip-profile {
  position: relative;
  min-height: 58px;
}

.clip-profile > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--bone);
  border: 2px solid var(--bone);
  border-radius: 50%;
  color: #12171b;
  font-size: 10px;
}

.clip-profile i {
  position: absolute;
  right: 4px;
  bottom: 5px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #140c08;
  background: var(--signal);
  border: 2px solid #101418;
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.clip-caption {
  position: absolute;
  z-index: 4;
  right: 78px;
  bottom: 96px;
  left: 17px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .72);
}

.clip-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clip-identity b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  letter-spacing: .02em;
}

.clip-identity span {
  padding: 3px 5px 2px;
  color: #182008;
  background: var(--rep);
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .08em;
  text-shadow: none;
}

.clip-caption > p {
  margin: 8px 0 9px;
  font-size: 11px;
  line-height: 1.45;
}

.clip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(240, 238, 230, .72);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
}

.clip-caption > button {
  min-height: 35px;
  padding: 0;
  color: var(--rep);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

/* Car Market: controls stay visible while listings do the scrolling. */
.market-topbar {
  min-height: calc(78px + var(--safe-top));
  padding-bottom: 12px;
}

.sell-car-button {
  min-width: 69px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #121608;
  background: var(--rep);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

.market-controls {
  min-height: 117px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 49px 50px;
  gap: 9px;
  padding: 9px calc(17px + var(--safe-right)) 9px calc(17px + var(--safe-left));
  background: #0d1216;
  border-bottom: 1px solid var(--line);
}

.market-search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #171d22;
  border: 1px solid #353e45;
}

.market-search svg,
.market-filter-button svg,
.vehicle-save svg,
.photo-count svg,
.sell-form-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-search input {
  width: 100%;
  color: var(--bone);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.market-search input::placeholder { color: #778188; }

.distance-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #12181d;
  border: 1px solid #353e45;
}

.distance-switch button {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #707b82;
  border-right: 1px solid #353e45;
}

.distance-switch button:last-child { border-right: 0; }

.distance-switch button.is-active {
  color: #151a09;
  background: var(--rep);
}

.distance-switch b {
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
}

.distance-switch small {
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
}

.market-filter-button {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--bone);
  background: #171d22;
  border: 1px solid #353e45;
}

.market-filter-button span {
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
}

.car-market-scroll {
  height: calc(100% - 272px - var(--safe-top) - var(--safe-bottom));
  padding: 0 0 44px;
  overscroll-behavior: contain;
}

.car-market-summary {
  min-height: 61px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
}

.car-market-summary > b {
  color: var(--rep);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 33px;
  line-height: 1;
}

.car-market-summary span,
.car-market-summary button {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.car-market-summary button { min-height: 44px; }

.vehicle-featured {
  margin: 0 17px 9px;
  background: #13191e;
  border: 1px solid #353e45;
}

.vehicle-photo-wrap {
  position: relative;
  height: 166px;
  overflow: hidden;
  background: #070a0d;
}

.vehicle-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.vehicle-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(4, 7, 9, .84));
  pointer-events: none;
}

.vehicle-distance,
.photo-count {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  padding: 5px 7px;
  color: #121608;
  background: var(--rep);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .06em;
}

.vehicle-distance { left: 10px; }

.photo-count {
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--bone);
  background: rgba(7, 10, 12, .78);
}

.photo-count svg { width: 12px; height: 12px; }

.vehicle-save {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--bone);
  background: rgba(7, 10, 12, .72);
  border: 1px solid rgba(240, 238, 230, .26);
}

.vehicle-save.is-saved {
  color: var(--signal);
}

.vehicle-save.is-saved svg {
  fill: currentColor;
}

.vehicle-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 13px;
}

.vehicle-body p,
.vehicle-body h2,
.vehicle-body dl { margin: 0; }

.vehicle-body > div > p {
  color: var(--muted);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .09em;
}

.vehicle-body h2 {
  margin-top: 2px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
}

.vehicle-body > strong {
  color: var(--rep);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 19px;
}

.vehicle-body dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vehicle-body dl div { padding: 8px 0; }
.vehicle-body dt { color: var(--muted); font-size: 6px; font-weight: 850; letter-spacing: .08em; }
.vehicle-body dd { margin: 2px 0 0; font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 11px; font-weight: 900; }

.seller-line {
  grid-column: 1 / -1;
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.4;
}

.verified-mark {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
  margin-right: 4px;
  color: #122006;
  background: var(--rep);
  border-radius: 50%;
  font-size: 7px;
}

.message-seller-button {
  grid-column: 1 / -1;
  min-height: 44px;
  margin-top: 5px;
  color: #190d08;
  background: var(--signal);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
}

.vehicle-row {
  min-height: 94px;
  display: grid;
  grid-template-columns: 49px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 17px;
  border-bottom: 1px solid var(--line);
}

.vehicle-color {
  width: 44px;
  height: 52px;
  background: #162c42;
  border: 1px solid #385269;
}

.vehicle-color.red { background: #4a1814; border-color: #74302a; }
.vehicle-color.silver { background: #565c60; border-color: #858d92; }
.vehicle-color.yellow { background: #665b17; border-color: #9a8c2c; }

.vehicle-row p,
.vehicle-row h2,
.vehicle-row span { margin: 0; }
.vehicle-row p { color: var(--rep); font-size: 6px; font-weight: 900; letter-spacing: .08em; }
.vehicle-row h2 { margin: 4px 0; font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 14px; }
.vehicle-row div > span { color: var(--muted); font-size: 7px; }
.vehicle-row strong { align-self: center; font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 13px; }

/* Bottom sheets for clip conversation/composer and vehicle listing. */
.clip-sheet-overlay,
.sell-car-overlay {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: flex;
  align-items: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 280ms, opacity 180ms ease;
}

.clip-sheet-overlay.is-open,
.sell-car-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.clip-sheet,
.sell-car-panel {
  position: relative;
  width: 100%;
  color: var(--bone);
  background: #11171b;
  border-top: 1px solid #68737a;
  border-radius: 20px 20px 0 0;
  padding-bottom: var(--safe-bottom);
  transform: translateY(102%);
  transition: transform 330ms cubic-bezier(.18, .86, .2, 1);
}

.clip-sheet-overlay.is-open .clip-sheet,
.sell-car-overlay.is-open .sell-car-panel { transform: translateY(0); }

.clip-sheet { height: min(560px, 68%); }

.clip-sheet > header,
.sell-car-panel > header {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 17px 9px;
  border-bottom: 1px solid var(--line);
}

.clip-sheet h2,
.sell-car-panel h2 {
  margin: 4px 0 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.clip-sheet > header > button,
.sell-car-panel > header > button {
  width: 44px;
  height: 44px;
  color: var(--muted);
  font-size: 27px;
  font-weight: 300;
}

.clip-comments-mode {
  height: calc(100% - 75px);
  display: flex;
  flex-direction: column;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 17px 0;
}

.comment-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
}

.comment-list article > span,
.comment-form > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #101418;
  background: var(--bone);
  border-radius: 50%;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 950;
}

.comment-list article > span.lime { background: var(--rep); }
.comment-list article > span.orange { color: #fff; background: var(--signal); }
.comment-list p { display: flex; gap: 7px; margin: 0; }
.comment-list b { font-size: 9px; }
.comment-list time { color: var(--muted); font-size: 7px; }
.comment-list em { display: block; margin-top: 5px; font-size: 9px; font-style: normal; line-height: 1.45; }
.comment-list button { min-height: 28px; padding: 0; color: var(--muted); font-size: 6px; font-weight: 900; letter-spacing: .1em; }

.comment-form {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: #0b1014;
  border-top: 1px solid #364047;
}

.comment-form input {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  color: var(--bone);
  background: #171d22;
  border: 1px solid #3a444b;
  border-radius: 0;
  outline: 0;
  font-size: 9px;
}

.comment-form button {
  min-height: 44px;
  color: var(--signal-soft);
  font-size: 7px;
  font-weight: 950;
}

.clip-compose-mode {
  height: calc(100% - 75px);
  overflow-y: auto;
  padding: 14px 17px 22px;
}

.clip-dropzone {
  width: 100%;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--bone);
  background: #0b1014;
  border: 1px dashed #59636a;
}

.clip-dropzone svg { width: 27px; height: 27px; fill: none; stroke: var(--signal); stroke-width: 1.7; }
.clip-dropzone b { font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 12px; letter-spacing: .06em; }
.clip-dropzone span { color: var(--muted); font-size: 7px; }

.compose-field,
.sell-form-grid label,
.sell-form-wide {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compose-field { margin-top: 13px; }
.compose-field > span,
.sell-form-grid label > span,
.sell-form-wide > span { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; }

.compose-field textarea,
.sell-form-wide textarea {
  min-height: 66px;
  resize: none;
  padding: 10px;
  color: var(--bone);
  background: #171d22;
  border: 1px solid #3a444b;
  outline: 0;
  font-size: 9px;
}

.compose-context {
  min-height: 58px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 0 11px;
  background: #0c1115;
  border: 1px solid var(--line);
}

.car-status-dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 4px rgba(110, 231, 242, .08); }
.compose-context div { display: flex; flex-direction: column; gap: 3px; }
.compose-context small { color: var(--muted); font-size: 6px; }
.compose-context b { font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; font-size: 10px; }
.compose-context button { min-height: 44px; color: var(--cyan); font-size: 6px; font-weight: 900; }

.clip-rules { display: flex; gap: 5px; margin: 10px 0; }
.clip-rules span { padding: 5px 6px; color: var(--muted); background: #0b1014; font-size: 6px; font-weight: 800; }
.publish-clip-button { width: 100%; min-height: 45px; color: #170c08; background: var(--signal); font-size: 8px; font-weight: 950; letter-spacing: .1em; }

.sell-car-panel {
  height: calc(100% - 64px - var(--safe-top));
  overflow: hidden;
}

.form-progress {
  height: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 17px;
  background: #11171b;
}

.form-progress i { background: #30383e; }
.form-progress i:first-child { background: var(--rep); }

#sell-car-form {
  height: calc(100% - 80px);
  overflow-y: auto;
  padding: 14px 17px 28px;
}

.sell-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 9px;
}

.sell-form-grid input,
.sell-form-grid select,
.sell-form-wide input {
  width: 100%;
  height: 43px;
  padding: 0 9px;
  color: var(--bone);
  background: #171d22;
  border: 1px solid #3a444b;
  border-radius: 0;
  outline: 0;
  font-size: 9px;
}

.sell-form-grid select { color-scheme: dark; }
.sell-form-wide { margin-top: 12px; }
.sell-form-wide em { color: var(--rep); font-size: 6px; font-style: normal; }
.sell-form-wide textarea { min-height: 84px; }

.sell-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 14px;
}

.sell-form-actions button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #4a555d;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .08em;
}

.sell-form-actions button[type="submit"] {
  color: #111608;
  background: var(--rep);
  border-color: var(--rep);
}

@media (max-height: 730px) {
  .clip-caption { bottom: 87px; }
  .clip-caption > p { margin: 5px 0 6px; }
  .clip-actions { bottom: 121px; gap: 2px; }
  .vehicle-photo-wrap { height: 145px; }
  .clip-sheet { height: 74%; }
}

@media (max-width: 820px) {
  .prototype-stage {
    padding: 0;
    background: var(--asphalt);
  }

  .prototype-notes {
    display: none;
  }

  .app-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pulse-topbar {
    top: calc(12px + var(--safe-top));
  }

  .bottom-rail {
    height: calc(78px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
  }

  .pulse-sheet {
    bottom: calc(77px + var(--safe-bottom));
  }
}

@media (max-height: 730px) {
  .pulse-sheet { height: 232px; }
  .pulse-intro h1 { font-size: 25px; }
  .activity-focus { min-height: 67px; margin-top: 9px; }
  .drop-dial-panel { min-height: calc(550px + var(--safe-bottom)); padding-top: 20px; }
  .drop-dial { width: 300px; height: 300px; }
  .dial-choice { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-114px) rotate(calc(var(--angle) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Account gate: the app remains inaccessible until the server confirms a real session. */
.auth-gate {
  position: absolute;
  z-index: 120;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  padding: calc(26px + var(--safe-top)) calc(22px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(22px + var(--safe-left));
  color: var(--bone);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 86, 48, .16), transparent 29%),
    linear-gradient(156deg, #11171b 0 34%, #080b0f 34% 100%);
  isolation: isolate;
}

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

.auth-road {
  position: absolute;
  z-index: -1;
  right: -126px;
  bottom: -235px;
  width: 420px;
  height: 760px;
  overflow: hidden;
  border: 1px solid rgba(240, 238, 230, .08);
  border-radius: 48% 48% 0 0;
  transform: rotate(22deg);
}

.auth-road::before,
.auth-road::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(240, 238, 230, .16), transparent);
}

.auth-road::before { left: 24%; }
.auth-road::after { right: 24%; }

.auth-road i {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 78px;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(255, 86, 48, .35);
}

.auth-road i:nth-child(1) { top: 44px; }
.auth-road i:nth-child(2) { top: 190px; }
.auth-road i:nth-child(3) { top: 336px; }

.auth-brand {
  min-height: 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(240, 238, 230, .17);
}

.auth-brand span {
  color: var(--signal);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.auth-brand small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .17em;
}

.auth-step {
  position: absolute;
  top: calc(118px + var(--safe-top));
  right: calc(22px + var(--safe-right));
  left: calc(22px + var(--safe-left));
  max-height: calc(100% - 164px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.auth-step::-webkit-scrollbar { display: none; }

.auth-step.is-active {
  animation: auth-step-in 280ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes auth-step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-step > h1 {
  margin: 8px 0 16px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(51px, 15vw, 68px);
  line-height: .84;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.auth-step > h1 i {
  color: var(--signal);
  font-style: normal;
}

.auth-copy {
  max-width: 305px;
  margin: 0 0 25px;
  color: #a3adb3;
  font-size: 12px;
  line-height: 1.55;
}

.auth-copy strong {
  color: var(--bone);
  overflow-wrap: anywhere;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form label {
  display: flex;
  justify-content: space-between;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.auth-form label:not(:first-child) {
  margin-top: 13px;
}

.auth-form label em {
  color: #68737a;
  font-style: normal;
}

.auth-form > input,
.auth-handle-field {
  width: 100%;
  height: 54px;
  color: var(--bone);
  background: rgba(19, 25, 30, .94);
  border: 1px solid #465159;
  border-radius: 0;
  outline: 0;
}

.auth-form > input {
  padding: 0 14px;
  font-size: 14px;
}

.auth-form > input:focus,
.auth-handle-field:focus-within {
  border-color: var(--rep);
  box-shadow: inset 3px 0 0 var(--rep);
}

#auth-code {
  color: var(--rep);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: .34em;
  text-align: center;
}

.auth-handle-field {
  display: flex;
  align-items: center;
}

.auth-handle-field span {
  padding-left: 14px;
  color: var(--signal);
  font-size: 17px;
  font-weight: 900;
}

.auth-handle-field input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 14px 0 5px;
  color: var(--bone);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.auth-form > button,
.auth-retry {
  width: 100%;
  min-height: 52px;
  margin-top: 11px;
  color: #160d08;
  background: var(--signal);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
}

.auth-form > button:disabled {
  color: #5e6468;
  background: #252c31;
  cursor: wait;
}

.auth-fine {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: #727d83;
  font-size: 8px;
}

.auth-fine svg,
.auth-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.auth-back {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 14px;
  padding: 0;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.auth-text-button {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.auth-status {
  position: absolute;
  right: calc(22px + var(--safe-right));
  bottom: calc(17px + var(--safe-bottom));
  left: calc(22px + var(--safe-left));
  min-height: 15px;
  margin: 0;
  color: var(--rep);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
}

.auth-status.is-error { color: var(--signal-soft); }

.auth-loader {
  width: 48px;
  height: 48px;
  display: block;
  margin-top: 33px;
  border: 1px solid #39434a;
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: auth-spin 850ms linear infinite;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

.driver-profile-card {
  min-height: 100%;
  padding: 34px 20px calc(116px + var(--safe-bottom));
  text-align: center;
}

.driver-profile-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: #141a08;
  background: var(--rep);
  border: 5px solid #0b0f12;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #63706f, 0 0 0 9px rgba(200, 255, 61, .07);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 950;
}

.driver-profile-card h2 {
  margin: 6px 0 3px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.driver-profile-card > strong {
  color: var(--signal-soft);
  font-size: 11px;
}

.driver-profile-card dl {
  margin: 29px 0 17px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.driver-profile-card dl div {
  min-height: 53px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.driver-profile-card dt {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
}

.driver-profile-card dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-profile-card > button {
  width: 100%;
  min-height: 48px;
  color: var(--muted);
  border: 1px solid #465159;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .11em;
}

@media (max-height: 700px) {
  .auth-step {
    top: calc(91px + var(--safe-top));
    max-height: calc(100% - 126px - var(--safe-top) - var(--safe-bottom));
  }

  .auth-step > h1 {
    font-size: 46px;
    margin-bottom: 12px;
  }

  .auth-copy { margin-bottom: 15px; }
  .auth-form > input,
  .auth-handle-field { height: 48px; }
  .auth-form > button,
  .auth-retry { min-height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-step.is-active,
  .auth-loader {
    animation: none !important;
  }
}
