:root {
  color-scheme: dark;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 90px;
  --bg: #0b0e12;
  --surface: #151a20;
  --surface-2: #1e252e;
  --line: #2d3541;
  --text: #f5f7fb;
  --muted: #a8b3c1;
  --red: #ff3b4f;
  --blue: #39a7ff;
  --yellow: #ffd24a;
  --green: #55e08b;
  --ink: #07090d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius-card: 8px;
  --radius-control: 7px;
  --radius-small: 5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 59, 79, 0.13), transparent 28%),
    linear-gradient(315deg, rgba(57, 167, 255, 0.13), transparent 30%),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-loading .app-shell,
.auth-required .app-shell {
  display: none;
}

.auth-ready .auth-gate {
  display: none;
}

.auth-gate {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  color: var(--text);
  font-size: 32px;
  line-height: 1.12;
}

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

.auth-card .primary-action {
  width: 100%;
  margin-top: 10px;
}

.auth-debug-button {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  border-radius: 999px;
}

.auth-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.workspace {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: calc(18px + var(--safe-top)) 18px calc(132px + var(--safe-bottom));
}

.topbar,
.page-title,
.section-head,
.garage-meta,
.garage-info,
.collection-panel,
.run-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -18px -18px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(244, 247, 251, 0.08);
  background: rgba(11, 14, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 2px solid var(--text);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, var(--red), var(--yellow));
  color: var(--ink);
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--blue);
}

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  margin-bottom: 16px;
}

.primary-action,
.composer button,
.post-dialog menu button:last-child,
.vehicle-dialog menu button:last-child {
  border: 0;
  background: var(--red);
  color: white;
  padding: 12px 16px;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(255, 210, 74, 0.9);
  border-radius: var(--radius-control);
}

.primary-action.small {
  padding: 10px 14px;
  font-size: 14px;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 900;
  border-radius: 999px;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 800;
  border-radius: var(--radius-control);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(620px, calc(100vw - 20px));
  padding: 8px;
  border: 1px solid rgba(244, 247, 251, 0.14);
  background: rgba(12, 15, 18, 0.9);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 900;
  border-radius: var(--radius-small);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  font-size: 14px;
}

.nav-item.active {
  color: var(--text);
  border-color: rgba(255, 210, 74, 0.35);
  background: linear-gradient(180deg, rgba(255, 210, 74, 0.14), rgba(255, 59, 79, 0.1));
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.car-card,
.panel,
.metric-panel,
.garage-card,
.collection-panel,
.plan-panel,
.run-board,
.chat-panel,
.thread-card,
.composer,
.timeline-item {
  border: 1px solid var(--line);
  background: rgba(21, 26, 32, 0.88);
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
}

.holo-card {
  position: relative;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 210, 74, 0.42);
  border-radius: var(--radius-card);
}

.holo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 26%, rgba(57, 167, 255, 0.2) 48%, transparent 58%, rgba(255, 210, 74, 0.16)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 18px 20px);
  animation: holoSweep 7s linear infinite;
}

.card-topline,
.car-card-footer,
.mini-stats,
.tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card-topline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.car-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 16px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 251, 0.18);
  background: #05070a;
  border-radius: var(--radius-small);
}

.car-art::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(255, 210, 74, 0.38);
  pointer-events: none;
}

.car-art img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.02);
  transition: transform 500ms ease, filter 500ms ease;
}

.placeholder-card .car-art {
  background:
    radial-gradient(circle at center, rgba(0, 122, 255, 0.1), transparent 44%),
    rgba(242, 242, 247, 0.82);
}

.placeholder-card .car-art img {
  width: min(44%, 150px);
  height: auto;
  padding: 8px;
  object-fit: contain;
  opacity: 0.18;
  transform: none;
}

.holo-card:hover .car-art img,
.garage-card:hover .garage-thumb img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.06);
}

.card-glare,
.shine-line {
  position: absolute;
  inset: -35%;
  z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.34) 48%, transparent 56%);
  transform: translateX(-55%) rotate(8deg);
  animation: cardGlare 5.4s ease-in-out infinite;
  pointer-events: none;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.spec-strip span,
.pill,
.tag-row span,
.badge-grid span {
  border: 1px solid rgba(244, 247, 251, 0.16);
  background: rgba(5, 7, 10, 0.72);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: var(--radius-small);
}

.spec-strip span {
  text-align: center;
}

.rarity {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 30px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 210, 74, 0.72);
  border-radius: var(--radius-small);
}

.rarity.rare {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 26%),
    linear-gradient(135deg, rgba(255, 210, 74, 0.2), rgba(57, 167, 255, 0.2));
}

.rarity.secret {
  border-color: var(--red);
  color: var(--red);
  text-shadow: 0 0 18px rgba(255, 59, 79, 0.78);
}

.card-bg-night .garage-card-frame,
.card-bg-night.holo-card {
  border-color: rgba(57, 167, 255, 0.46);
}

.card-bg-circuit .garage-card-frame,
.card-bg-circuit.holo-card {
  border-color: rgba(255, 59, 79, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 59, 79, 0.15), transparent 46%),
    rgba(21, 26, 32, 0.88);
}

.card-bg-garage .garage-card-frame,
.card-bg-garage.holo-card {
  border-color: rgba(57, 167, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(57, 167, 255, 0.16), transparent 48%),
    rgba(21, 26, 32, 0.88);
}

.card-bg-gold .garage-card-frame,
.card-bg-gold.holo-card {
  border-color: rgba(255, 210, 74, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 210, 74, 0.18), transparent 45%, rgba(255, 59, 79, 0.08)),
    rgba(21, 26, 32, 0.88);
}

.status-stack,
.feed-column,
.side-column,
.feed-list,
.board-list,
.timeline,
.garage-grid {
  display: grid;
  gap: 14px;
}

.metric-panel,
.panel,
.thread-card,
.chat-panel,
.timeline-item,
.plan-panel,
.collection-panel,
.vehicle-detail-panel {
  padding: 16px;
}

.metric-panel strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 24px;
}

.metric-label,
.thread-category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meter {
  display: none;
  height: 12px;
  border: 1px solid var(--line);
  background: #050607;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
}

.metric-panel.alert,
.collection-panel,
.plan-panel {
  border-color: rgba(255, 210, 74, 0.34);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--text);
  padding: 12px;
  font-size: 16px;
  outline: none;
  border-radius: var(--radius-control);
}

input:focus,
select:focus {
  border-color: var(--blue);
}

.post-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-card);
}

.post-card header,
.post-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.post-actions button,
.timeline-item button {
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-control);
}

.compact {
  margin-bottom: 14px;
}

.active-plan {
  color: var(--green);
  border-color: rgba(85, 224, 139, 0.55);
}

.crew-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.crew-row small {
  display: block;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #07090c;
  font-weight: 900;
}

.avatar.red {
  background: var(--red);
}

.avatar.blue {
  background: var(--blue);
}

.avatar.yellow {
  background: var(--yellow);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.page-title {
  margin-bottom: 14px;
}

.plan-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.plan-panel h3,
.plan-panel p {
  margin-bottom: 4px;
}

.garage-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  align-items: start;
  margin-bottom: 14px;
}

.garage-card {
  position: relative;
  padding: 10px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
  min-height: 560px;
  border-radius: var(--radius-card);
}

.garage-card.add-slot-card {
  min-height: 220px;
}

.garage-card.selected {
  border-color: rgba(57, 167, 255, 0.7);
}

.garage-card.collectible::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    conic-gradient(from 90deg, transparent, rgba(255, 210, 74, 0.22), transparent, rgba(57, 167, 255, 0.18), transparent, rgba(255, 59, 79, 0.18), transparent);
  opacity: 0.62;
  animation: cardAura 9s linear infinite;
}

.garage-card:hover {
  transform: translateY(-4px);
}

.add-slot-card {
  box-shadow: none;
  opacity: 0.72;
}

.add-slot-card:hover {
  opacity: 0.92;
}

.add-slot-card::before {
  display: none;
}

.add-slot-frame {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  height: 100%;
  padding: 18px;
  border: 1px dashed rgba(107, 114, 128, 0.34);
  background: rgba(242, 242, 247, 0.58);
  border-radius: var(--radius-card);
}

.add-slot-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
  background: rgba(0, 122, 255, 0.08);
  border-radius: 999px;
}

.add-slot-frame h3 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 18px;
}

.add-slot-frame p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.garage-card-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  min-height: 100%;
  height: auto;
  padding: 14px;
  border: 1px solid rgba(244, 247, 251, 0.16);
  background:
    linear-gradient(180deg, rgba(29, 35, 43, 0.92), rgba(9, 11, 15, 0.96)),
    var(--surface);
  border-radius: var(--radius-card);
}

.garage-card-frame.locked {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, rgba(29, 35, 43, 0.92), rgba(9, 11, 15, 0.96));
}

.garage-meta span,
.garage-meta strong {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.garage-thumb {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 251, 0.18);
  background: #05070a;
  border-radius: var(--radius-small);
}

.locked-card .garage-thumb {
  aspect-ratio: 16 / 9;
}

.garage-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease, filter 500ms ease;
}

.empty-garage-card .garage-thumb {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(0, 122, 255, 0.08), transparent 46%),
    rgba(242, 242, 247, 0.74);
}

.empty-garage-card .garage-thumb img {
  width: min(42%, 138px);
  height: auto;
  padding: 6px;
  object-fit: contain;
  opacity: 0.2;
}

.garage-thumb.mystery {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(57, 167, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #1d232b, #05070a);
}

.mystery-car {
  display: grid;
  place-items: center;
  width: 86px;
  height: 116px;
  border: 2px solid rgba(255, 210, 74, 0.52);
  color: var(--yellow);
  font-size: 56px;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(255, 210, 74, 0.18);
  border-radius: var(--radius-small);
}

.garage-info h3,
.garage-info p {
  margin-bottom: 4px;
}

.move-list {
  display: grid;
  gap: 8px;
}

.move-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 210, 74, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 210, 74, 0.12), transparent 38%),
    rgba(5, 7, 10, 0.56);
  padding: 9px;
  border-radius: var(--radius-small);
}

.move-cost {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 210, 74, 0.5);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(255, 210, 74, 0.08);
  border-radius: var(--radius-small);
}

.move-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.move-row p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.locked-move {
  opacity: 0.86;
}

.detail-grid span {
  border: 1px solid rgba(244, 247, 251, 0.12);
  background: rgba(5, 7, 10, 0.58);
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
  border-radius: var(--radius-small);
}

.detail-grid strong {
  display: block;
  color: var(--text);
  font-size: 10px;
}

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

.detail-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid rgba(244, 247, 251, 0.16);
  margin-bottom: 12px;
  border-radius: var(--radius-small);
}

.collection-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.collection-track span {
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.68);
  color: var(--muted);
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 900;
}

.collection-track .done {
  border-color: rgba(85, 224, 139, 0.56);
  color: var(--green);
  box-shadow: 0 0 22px rgba(85, 224, 139, 0.12);
}

.garage-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 430px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  margin-bottom: 14px;
  scroll-snap-type: x mandatory;
}

.garage-slide {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: rgba(21, 26, 32, 0.88);
  padding: 16px;
  min-height: 230px;
  border-radius: var(--radius-card);
}

.mini-pit-list,
.mission-list {
  display: grid;
  gap: 8px;
}

.mini-pit-item,
.mission-list span {
  border: 1px solid rgba(244, 247, 251, 0.12);
  background: rgba(5, 7, 10, 0.58);
  padding: 10px;
  border-radius: var(--radius-small);
}

.mini-pit-item span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}

.mini-pit-item strong,
.mini-pit-item small {
  display: block;
}

.mini-pit-item small {
  color: var(--muted);
}

.xp-meter {
  height: 14px;
  border: 1px solid var(--line);
  background: #050607;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
}

.xp-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--red));
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.reminder-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(57, 167, 255, 0.08), transparent 45%),
    rgba(21, 26, 32, 0.88);
  padding: 14px;
  border-radius: var(--radius-card);
}

.reminder-card span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.reminder-card strong {
  display: block;
  margin: 7px 0;
}

.reminder-card p,
.reminder-card small {
  margin: 0;
  color: var(--muted);
}

.reminder-card.soon {
  border-color: rgba(255, 59, 79, 0.62);
  box-shadow: 0 0 28px rgba(255, 59, 79, 0.12);
}

.pit-item small {
  color: var(--muted);
}

.talk-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.board-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.board-tabs button {
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

.board-tabs button.active {
  border-color: rgba(85, 224, 139, 0.58);
  background: rgba(85, 224, 139, 0.1);
  color: var(--green);
}

.talk-tabs button {
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

.talk-tabs button.active {
  border-color: rgba(255, 210, 74, 0.62);
  background: linear-gradient(135deg, rgba(255, 210, 74, 0.16), rgba(255, 59, 79, 0.1));
  color: var(--text);
}

.participant-stack {
  display: flex;
}

.participant-stack .avatar {
  margin-left: -10px;
  border: 2px solid var(--surface);
}

.chat-panel {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 74%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0a0d10;
  border-radius: var(--radius-card);
}

.chat-bubble.self {
  justify-self: end;
  background: rgba(57, 167, 255, 0.14);
  border-color: rgba(57, 167, 255, 0.45);
}

.direct-people {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px 0;
  padding-bottom: 2px;
}

.direct-people[hidden] {
  display: none;
}

.direct-people button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 150px;
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--text);
  padding: 9px;
  text-align: left;
  border-radius: var(--radius-control);
}

.direct-people button.active {
  border-color: rgba(57, 167, 255, 0.72);
  background: rgba(57, 167, 255, 0.12);
}

.direct-people small {
  display: block;
  color: var(--muted);
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(21, 26, 32, 0.88);
  padding: 10px;
  border-radius: var(--radius-card);
}

.chat-composer button {
  border: 0;
  background: var(--blue);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

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

.event-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 210, 74, 0.08), transparent 48%),
    rgba(21, 26, 32, 0.88);
  padding: 12px;
  border-radius: var(--radius-card);
}

.event-card span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.event-card h3,
.event-card p {
  margin-bottom: 4px;
}

.event-card small {
  color: var(--muted);
}

.event-card button {
  border: 1px solid rgba(85, 224, 139, 0.45);
  background: rgba(85, 224, 139, 0.1);
  color: var(--green);
  padding: 9px 12px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

.timeline-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.timeline-item time {
  color: var(--yellow);
  font-weight: 900;
}

.thread-topline,
.thread-meta,
.thread-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-topline {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.thread-meta {
  justify-content: flex-start;
  margin: 12px 0;
}

.thread-meta span {
  border: 1px solid rgba(244, 247, 251, 0.12);
  background: rgba(5, 7, 10, 0.58);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-small);
}

.thread-actions button {
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--text);
  padding: 9px 10px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

.thread-actions small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  border-style: dashed;
  text-align: center;
}

dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px - var(--safe-top) - var(--safe-bottom));
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  border-radius: var(--radius-card);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

dialog form {
  display: grid;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px calc(96px + var(--safe-bottom));
}

dialog menu {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 0 calc(18px + var(--safe-bottom));
  margin: 16px 0 0;
  background: linear-gradient(180deg, transparent, var(--surface) 20%);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.photo-picker {
  position: relative;
  display: grid;
  min-height: 210px;
  margin-bottom: 14px;
  border: 1px dashed rgba(255, 210, 74, 0.45);
  overflow: hidden;
  cursor: pointer;
  background: #05070a;
  border-radius: var(--radius-card);
}

.photo-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-picker img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.photo-picker span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 122, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  border-radius: var(--radius-control);
}

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

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

.form-grid .wide,
.choice-field.wide {
  grid-column: 1 / -1;
}

.wheel-picker {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  grid-template-areas:
    "up value down"
    "up hint down";
  align-items: center;
  gap: 8px;
  min-height: 74px;
  border: 1px solid rgba(255, 210, 74, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 210, 74, 0.08), transparent 45%, rgba(57, 167, 255, 0.08)),
    #0a0d10;
  padding: 8px;
  touch-action: none;
  user-select: none;
  border-radius: var(--radius-card);
}

.wheel-picker.scrolling {
  border-color: rgba(0, 122, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.native-year-picker,
.numeric-picker {
  grid-template-columns: 1fr;
  grid-template-areas:
    "value"
    "hint";
  touch-action: auto;
}

.native-picker-select,
.numeric-input-wrap input {
  grid-area: value;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 14px;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  border-radius: var(--radius-control);
}

.native-picker-select {
  appearance: auto;
}

.numeric-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.numeric-input-wrap input {
  text-align: right;
}

.numeric-input-wrap span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.wheel-picker button {
  border: 1px solid var(--line);
  background: rgba(21, 26, 32, 0.82);
  color: var(--text);
  min-height: 56px;
  font-size: 12px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

.wheel-picker button:first-of-type {
  grid-area: up;
}

.wheel-picker button:last-of-type {
  grid-area: down;
}

.wheel-picker strong {
  grid-area: value;
  align-self: end;
  color: var(--text);
  font-size: 20px;
  text-align: center;
  text-shadow: 0 0 18px rgba(57, 167, 255, 0.24);
}

.wheel-picker small {
  grid-area: hint;
  align-self: start;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.choice-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.choice-row.wrap {
  flex-wrap: wrap;
  overflow-x: visible;
}

.choice-row button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #0a0d10;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  border-radius: var(--radius-control);
}

.choice-row button.active {
  border-color: rgba(255, 210, 74, 0.65);
  background: linear-gradient(135deg, rgba(255, 210, 74, 0.18), rgba(255, 59, 79, 0.12));
  color: var(--text);
  box-shadow: 0 0 24px rgba(255, 210, 74, 0.1);
}

.hidden-input {
  display: none;
}

.hidden-input.visible {
  display: block;
}

.plus-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.plus-list span {
  border: 1px solid rgba(255, 210, 74, 0.25);
  background: rgba(255, 210, 74, 0.08);
  color: var(--yellow);
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: var(--radius-small);
}

.safety-note {
  border: 1px solid rgba(255, 210, 74, 0.25);
  background: rgba(255, 210, 74, 0.08);
  color: var(--yellow);
  padding: 10px;
  font-size: 13px;
  border-radius: var(--radius-small);
}

.publish-check {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(85, 224, 139, 0.32);
  background: rgba(85, 224, 139, 0.08);
  padding: 10px;
  border-radius: var(--radius-small);
}

.publish-check input {
  width: auto;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .garage-grid {
    grid-template-columns: 1fr;
  }

  .garage-grid {
    justify-items: center;
  }

  .garage-card {
    width: min(100%, 390px);
  }

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

@media (max-width: 680px) {
  .workspace {
    padding: calc(18px + var(--safe-top)) 12px calc(var(--bottom-nav-height) + 44px + var(--safe-bottom));
  }

  .topbar {
    margin: -14px -12px 16px;
    padding: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-copy p {
    margin-bottom: 0;
  }

  .topbar,
  .page-title,
  .plan-panel,
  .collection-panel,
  .run-board,
  .dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .primary-action {
    box-shadow: 4px 4px 0 rgba(255, 210, 74, 0.9);
  }

  .composer,
  .timeline-item,
  .form-grid,
  .side-column,
  .plus-list,
  .thread-actions {
    grid-template-columns: 1fr;
  }

  .thread-actions {
    display: grid;
  }

  .thread-actions small {
    margin-left: 0;
  }

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

  .detail-photo {
    height: 220px;
  }

  .holo-card {
    min-height: auto;
    padding: 14px;
  }

  .car-art {
    min-height: 210px;
    margin: 12px 0;
  }

  .car-art img {
    height: 210px;
  }

  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-track {
    justify-content: flex-start;
  }

  .bottom-nav {
    bottom: calc(14px + var(--safe-bottom));
    width: calc(100vw - 14px);
    gap: 4px;
    padding: 6px;
  }

  .nav-item {
    min-height: 54px;
    font-size: 10px;
  }
}

@keyframes cardGlare {
  0%,
  45% {
    transform: translateX(-65%) rotate(8deg);
  }

  72%,
  100% {
    transform: translateX(65%) rotate(8deg);
  }
}

@keyframes cardAura {
  to {
    transform: rotate(1turn);
  }
}

@keyframes holoSweep {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 180px 0, 0 120px;
  }
}

/* Light mobile app direction */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: #ffffff;
  --line: rgba(60, 60, 67, 0.16);
  --text: #111827;
  --muted: #6b7280;
  --red: #ff375f;
  --blue: #007aff;
  --yellow: #f5b700;
  --green: #34c759;
  --ink: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  --radius-card: 22px;
  --radius-control: 16px;
  --radius-small: 12px;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 42%, #eef5ff 100%);
}

.topbar,
.bottom-nav {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(60, 60, 67, 0.12);
}

.brand-mark {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.18);
  color: white;
}

.eyebrow {
  color: var(--blue);
}

.primary-action,
.composer button,
.post-dialog menu button:last-child,
.vehicle-dialog menu button:last-child {
  background: var(--blue);
  box-shadow: none;
  border-radius: 999px;
}

.ghost-button,
.post-actions button,
.timeline-item button,
.thread-actions button,
.board-tabs button,
.talk-tabs button {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-color: var(--line);
}

.car-card,
.panel,
.metric-panel,
.garage-card,
.collection-panel,
.run-board,
.chat-panel,
.thread-card,
.composer,
.timeline-item,
.post-card,
.garage-slide,
.reminder-card,
.event-card,
dialog {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(60, 60, 67, 0.13);
  box-shadow: var(--shadow);
}

input,
select,
.board-tabs button,
.talk-tabs button,
.thread-actions button,
.post-actions button,
.timeline-item button {
  background: rgba(242, 242, 247, 0.92);
  color: var(--text);
  font-size: 16px;
}

.fuel-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.07);
  border-radius: var(--radius-card);
}

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

input:focus,
select:focus {
  border-color: rgba(0, 122, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.garage-card-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92)),
    var(--surface);
  border-color: rgba(60, 60, 67, 0.14);
}

.garage-card-frame.locked {
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.035) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.94));
}

.garage-thumb,
.car-art,
.photo-picker {
  background: #e5e7eb;
  border-color: rgba(60, 60, 67, 0.14);
}

.move-row,
.mini-pit-item,
.mission-list span,
.detail-grid span,
.thread-meta span,
.spec-strip span,
.pill,
.tag-row span,
.badge-grid span {
  background: rgba(242, 242, 247, 0.9);
  border-color: rgba(60, 60, 67, 0.12);
  color: var(--muted);
}

.move-row strong,
.detail-grid strong {
  color: var(--text);
}

.rarity {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
}

.nav-icon {
  border: 0;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
}

.nav-item.active {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  border-color: transparent;
}

.wheel-picker {
  background: rgba(242, 242, 247, 0.86);
  border-color: rgba(60, 60, 67, 0.14);
}

.wheel-picker button {
  background: white;
  color: var(--blue);
  border-color: rgba(60, 60, 67, 0.12);
}

.choice-row button.active,
.talk-tabs button.active,
.board-tabs button.active {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.24);
  color: var(--blue);
  box-shadow: none;
}

.chat-composer {
  background: rgba(255, 255, 255, 0.86);
}

.chat-composer button {
  background: var(--blue);
  color: white;
}

.chat-bubble {
  background: rgba(242, 242, 247, 0.94);
}

.chat-bubble.self {
  background: #007aff;
  border-color: #007aff;
  color: white;
}

.group-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.group-rooms[hidden] {
  display: none;
}

.group-rooms button {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(242, 242, 247, 0.92);
  color: var(--text);
  padding: 12px;
  text-align: left;
  border-radius: var(--radius-control);
}

.group-rooms button.active {
  border-color: rgba(0, 122, 255, 0.26);
  background: rgba(0, 122, 255, 0.11);
}

.group-rooms small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.direct-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  overflow: visible;
  margin: 12px 0;
  padding-bottom: 0;
}

.friend-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  background: rgba(242, 242, 247, 0.92);
  color: var(--text);
  padding: 12px;
  text-align: left;
  border-radius: var(--radius-control);
}

.friend-card.active {
  border-color: rgba(0, 122, 255, 0.32);
  background: rgba(0, 122, 255, 0.11);
}

.friend-card.blocked {
  opacity: 0.68;
}

.friend-card.muted {
  background: rgba(248, 250, 252, 0.72);
}

.friend-main {
  min-width: 0;
}

.friend-main strong,
.friend-main small {
  display: block;
}

.friend-main small {
  color: var(--muted);
  line-height: 1.45;
}

.friend-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.friend-actions .danger {
  grid-column: 1 / -1;
}

.ghost-button.mini {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  border-color: rgba(0, 122, 255, 0.22);
}

.ghost-button.danger {
  color: var(--red);
  border-color: rgba(255, 59, 48, 0.2);
}

.chat-bubble span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.chat-bubble.self span {
  color: rgba(255, 255, 255, 0.72);
}

.card-bg-holo .garage-card-frame,
.card-bg-holo.holo-card {
  border-color: rgba(0, 122, 255, 0.34);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(125deg, rgba(0, 122, 255, 0.18), rgba(255, 55, 95, 0.13) 42%, rgba(245, 183, 0, 0.2)),
    rgba(255, 255, 255, 0.92);
}

.card-bg-matte .garage-card-frame,
.card-bg-matte.holo-card {
  border-color: rgba(17, 24, 39, 0.18);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.86)),
    #111827;
  color: #f8fafc;
}

.card-bg-matte .garage-card-frame p,
.card-bg-matte .garage-card-frame small,
.card-bg-matte.holo-card p {
  color: rgba(248, 250, 252, 0.74);
}

.card-bg-neo .garage-card-frame,
.card-bg-neo.holo-card {
  border-color: rgba(0, 122, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.22), transparent 44%),
    linear-gradient(315deg, rgba(52, 199, 89, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.93);
}

.card-bg-sunset .garage-card-frame,
.card-bg-sunset.holo-card {
  border-color: rgba(255, 55, 95, 0.34);
  background:
    linear-gradient(140deg, rgba(255, 149, 0, 0.24), rgba(255, 55, 95, 0.18) 46%, rgba(255, 255, 255, 0.92));
}

.card-bg-carbon .garage-card-frame,
.card-bg-carbon.holo-card {
  border-color: rgba(100, 116, 139, 0.32);
  background:
    repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.92));
}

.card-bg-matte .move-row,
.card-bg-matte .tag-row span,
.card-bg-matte .spec-strip span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(248, 250, 252, 0.82);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar {
  display: none;
}

.workspace {
  padding-top: 18px;
}

.home-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  background: rgba(242, 242, 247, 0.88);
  color: var(--text);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#view-crew {
  min-height: calc(100dvh - var(--bottom-nav-height) - 48px);
  flex-direction: column;
}

#view-crew.active {
  display: flex;
}

#view-crew .page-title {
  margin-bottom: 10px;
}

#view-crew .run-board {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 18px;
  box-shadow: none;
}

#view-crew .run-board .eyebrow,
#talkDescription {
  display: none;
}

#view-crew .run-board h2 {
  font-size: 18px;
}

#view-crew[data-talk-mode="direct"] .event-list,
#view-crew[data-talk-mode="group"] .event-list,
#view-crew[data-talk-mode="direct"] .participant-stack,
#view-crew[data-talk-mode="group"] .participant-stack {
  display: none;
}

.chat-panel {
  flex: 1 1 auto;
  min-height: 260px;
  max-height: none;
  align-content: end;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-bubble {
  border: 0;
  border-radius: 20px 20px 20px 6px;
  background: #eef0f5;
  box-shadow: none;
}

.chat-bubble.self {
  border-radius: 20px 20px 6px 20px;
}

.chat-composer {
  position: sticky;
  bottom: calc(var(--bottom-nav-height) + 16px + var(--safe-bottom));
  z-index: 6;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  margin-top: 14px;
}

.chat-composer input {
  border-radius: 999px;
}

.chat-composer button {
  min-width: 64px;
  border-radius: 999px;
}

.direct-people,
.group-rooms,
.event-list {
  margin: 8px 0 10px;
}

.direct-people button,
.group-rooms button,
.event-card {
  border-radius: 18px;
  box-shadow: none;
}

.garage-card {
  padding: 12px;
  min-height: 560px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 238, 247, 0.78));
}

.garage-card.add-slot-card {
  min-height: 220px;
}

.garage-card-frame {
  gap: 12px;
  padding: 13px;
  border: 2px solid rgba(17, 24, 39, 0.11);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 0 0 7px rgba(255, 255, 255, 0.38);
}

.garage-card-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(245, 183, 0, 0.34);
  border-radius: 16px;
  pointer-events: none;
}

.garage-meta {
  padding: 0 4px;
  letter-spacing: 0.08em;
}

.garage-thumb {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.garage-card.empty-garage-card {
  border-color: rgba(17, 24, 39, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(242, 247, 252, 0.68));
}

.empty-garage-card.collectible::before {
  opacity: 0.12;
}

.empty-garage-card .garage-card-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.6)),
    var(--surface);
  border-color: rgba(0, 122, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 0 0 7px rgba(255, 255, 255, 0.28);
}

.empty-garage-card .garage-card-frame::after {
  border-color: rgba(0, 122, 255, 0.12);
}

.empty-garage-card .garage-meta span,
.empty-garage-card .garage-meta strong {
  color: rgba(11, 18, 32, 0.38);
}

.empty-garage-card .garage-thumb {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(0, 122, 255, 0.08), transparent 44%),
    rgba(242, 242, 247, 0.64);
  box-shadow: none;
}

.empty-garage-card .garage-thumb::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(0, 122, 255, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

.empty-garage-card .garage-thumb img,
.garage-thumb.photo img[src$="icon.svg"] {
  width: min(34%, 112px);
  height: auto;
  padding: 4px;
  object-fit: contain;
  opacity: 0.18;
}

.garage-upload-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(11, 18, 32, 0.62);
  text-align: center;
  pointer-events: none;
}

.garage-upload-copy strong {
  font-size: 14px;
}

.garage-upload-copy small {
  color: rgba(73, 86, 109, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.empty-garage-card .shine-line,
.empty-garage-card .move-list {
  display: none;
}

.empty-garage-card .tag-row {
  display: none;
}

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

.garage-onboarding-steps span {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.14);
  background: rgba(0, 122, 255, 0.06);
  color: rgba(73, 86, 109, 0.82);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 14px;
}

.garage-onboarding-steps strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
  border-radius: 50%;
}

.garage-card-cta {
  width: 100%;
  border: 0;
  background: var(--blue);
  color: white;
  padding: 13px 16px;
  font-weight: 900;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 122, 255, 0.18);
}

.empty-garage-card .garage-info {
  align-items: center;
  border-bottom: 0;
  text-align: center;
}

.empty-garage-card .garage-info h3 {
  color: rgba(11, 18, 32, 0.72);
}

.empty-garage-card .garage-info p {
  color: rgba(73, 86, 109, 0.72);
}

.garage-info {
  align-items: end;
  border-bottom: 1px solid rgba(245, 183, 0, 0.34);
  padding-bottom: 8px;
}

.garage-info h3 {
  font-size: 19px;
  letter-spacing: 0;
}

.rarity {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(245, 183, 0, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.move-row {
  grid-template-columns: 40px minmax(0, 1fr);
  border-top: 0;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
}

.move-cost {
  border-radius: 50%;
  background: rgba(245, 183, 0, 0.08);
}

.empty-garage-card .garage-info {
  align-items: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.empty-garage-card .garage-thumb img,
.empty-garage-card:hover .garage-thumb img {
  width: min(34%, 112px);
  height: auto;
  object-fit: contain;
  opacity: 0.18;
  transform: none;
  filter: none;
}

.empty-garage-card .garage-thumb::before {
  border-color: rgba(0, 122, 255, 0.3);
}

.empty-garage-card .tag-row {
  display: none;
}

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

.app-version {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(242, 242, 247, 0.86);
  color: var(--text);
  padding: 14px;
  text-align: left;
  border-radius: 18px;
}

.settings-row span {
  font-weight: 900;
}

.settings-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.settings-row select {
  min-width: 150px;
}

@media (max-width: 680px) {
  .garage-card {
    min-height: 540px;
  }

  .garage-card.empty-garage-card {
    min-height: 520px;
  }

  .garage-card.add-slot-card {
    min-height: 190px;
  }

  .chat-panel {
    min-height: 280px;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .fuel-fields {
    grid-template-columns: 1fr;
  }
}
