/* LinkSyn 2.1 Design System — Swipeable Card Stage + "Become a Robot" Kit Store */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-subtle: #f8f9fb;
  --surface-hover: #f1f3f7;
  --obsidian: #0b1120;
  --obsidian-soft: #151e32;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);

  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-ring: rgba(37, 99, 235, 0.22);
  --cyan: #38bdf8;

  --amber: #b45309;
  --amber-bright: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-border: rgba(245, 158, 11, 0.28);

  --emerald: #047857;
  --emerald-soft: #ecfdf5;
  --danger: #be123c;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 22px 46px rgba(11, 17, 32, 0.24), 0 4px 14px rgba(11, 17, 32, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-num: 'SF Pro Display', 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;

  font: 14px/1.5 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4, p { margin: 0; }
svg { flex-shrink: 0; display: block; }
img { display: block; max-width: 100%; }

/* App Shell */
.device {
  --edge: clamp(14px, 3vw, 36px);
  --shell-max: 1300px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.status { display: none; }
.status-icons, .header-tools, .wordmark { display: flex; align-items: center; }
.status-icons { gap: 5px; }

/* Top Header */
.app-header {
  flex: 0 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 max(var(--edge), calc((100% - var(--shell-max)) / 2));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 20;
}

.wordmark {
  gap: 8px;
  white-space: nowrap;
  font: 700 21px/1 var(--font-num);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-symbol { width: 30px; height: 19px; object-fit: contain; }

.primary-nav-slot { display: none; }
.header-tools { gap: 8px; }

/* Prominent "Become a Robot" Header Pill */
.become-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #0b1120 0%, #172554 100%);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 680;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}
.become-pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.become-pill-btn .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: border-color 140ms, background-color 140ms;
}
.location:hover { border-color: var(--line-strong); background: var(--surface-subtle); }
.location svg:first-child { color: var(--accent); }

.header-tool, .back {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background-color 140ms;
}
.header-tool {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.header-tool:hover, .back:hover { background: var(--surface-hover); }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--obsidian);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}
.header-title { font-size: 16px; font-weight: 680; letter-spacing: -0.02em; }
.header-spacer { width: 38px; }

/* Main Scrollable Canvas */
#screen {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.16) transparent;
}
#screen::-webkit-scrollbar { width: 6px; height: 6px; }
#screen::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(15, 23, 42, 0.16); }

/* ==========================================================================
   HOME STUDIO — Swipeable Service Deck + Prominent Become-a-Robot Banner + Config Panel
   ========================================================================== */
.ls-home {
  width: min(calc(100% - 2 * var(--edge)), var(--shell-max));
  margin: 0 auto;
  padding: 18px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.ls-home-left {
  display: grid;
  gap: 18px;
  min-width: 0;
}

/* Deck Header & Filter Row */
.deck-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deck-heading { display: grid; gap: 2px; }
.deck-heading h1 {
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.deck-heading p {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-filter {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.scene-filter button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 140ms, color 140ms;
}
.scene-filter button[aria-pressed='true'] {
  background: var(--obsidian);
  color: #ffffff;
}

.deck-arrows {
  display: inline-flex;
  gap: 6px;
}
.deck-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
  transition: background-color 140ms, transform 140ms, border-color 140ms;
}
.deck-arrow:hover:not(:disabled) {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
  transform: scale(1.04);
}
.deck-arrow:disabled { opacity: 0.35; }

/* Swipeable Card Carousel — Native 60fps Momentum + Centered Snap */
.card-deck-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}

.card-deck {
  --card-w: clamp(276px, 38vw, 356px);
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 10px calc(50% - var(--card-w) / 2) 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.card-deck.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.card-deck::-webkit-scrollbar { display: none; }

.swipe-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--card-w);
  height: clamp(350px, 46vh, 430px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--obsidian);
  color: #ffffff;
  text-align: left;
  padding: 0;
  transform: scale(0.92);
  opacity: 0.72;
  will-change: transform, opacity;
  transition:
    box-shadow 220ms ease,
    border-color 180ms ease;
}

.swipe-card[aria-pressed='true'] {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow:
    0 22px 46px rgba(11, 17, 32, 0.28),
    0 0 0 4px rgba(56, 189, 248, 0.16);
}

.swipe-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 18%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.swipe-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 17, 32, 0.45) 0%, rgba(11, 17, 32, 0.05) 36%, rgba(11, 17, 32, 0.65) 70%, rgba(11, 17, 32, 0.94) 100%);
  pointer-events: none;
}

.swipe-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 16px 0;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 17, 32, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 650;
}
.card-chip.robot {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.52);
  color: #e0f2fe;
}
.card-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}
.card-chip-dot.human {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.swipe-card-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: 18px 20px 20px;
  display: grid;
  gap: 8px;
}

.swipe-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}
.swipe-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.swipe-card-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}
.swipe-card-price {
  font: 700 22px/1 var(--font-num);
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
}
.swipe-card-price sup { font-size: 12px; font-weight: 600; margin-right: 1px; }
.swipe-card-price small { font-size: 11px; font-weight: 500; color: #cbd5e1; margin-left: 1px; }

.swipe-card-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(241, 245, 249, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swipe-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  color: #e2e8f0;
}
.swipe-card-outfit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.swipe-card-outfit-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--swatch, #38bdf8);
}

/* Deck Dots + Quick Utility Strip */
.deck-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -8px;
}
.deck-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.deck-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.18);
  transition: width 220ms ease, background-color 220ms ease;
}
.deck-dot[aria-pressed='true'] {
  width: 24px;
  background: var(--obsidian);
}
.deck-quick-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.deck-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
}
.deck-mini-btn:hover { color: var(--ink); border-color: var(--line-strong); }

/* Prominent "Become a Robot" Hero Banner on Home */
.become-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #0b1120 0%, #111c36 55%, #172554 100%);
  color: #ffffff;
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.become-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow: 0 18px 40px rgba(11, 17, 32, 0.22);
}
.become-banner::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.26) 0%, transparent 70%);
  pointer-events: none;
}
.become-banner-copy { display: grid; gap: 6px; position: relative; z-index: 1; }
.become-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
}
.become-banner-copy h2 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 740;
  letter-spacing: -0.025em;
}
.become-banner-copy p {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}
.become-banner-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--obsidian);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

/* Right Sticky Studio Panel */
.studio-panel {
  position: sticky;
  top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}

.studio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.studio-header h2 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.studio-header p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.studio-duration {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
}

.studio-block { display: grid; gap: 10px; }
.studio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.studio-label h3 { font-size: 13px; font-weight: 700; color: var(--ink); }
.studio-label small { font-size: 11.5px; color: var(--ink-muted); }

/* Mode Selector Cards */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mode-grid.single { grid-template-columns: 1fr; }

.mode-btn {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  text-align: left;
  transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}
.mode-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.mode-btn[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.mode-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mode-btn-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.mode-btn[aria-pressed='true'] .mode-btn-name svg { color: var(--accent); }
.mode-btn-price {
  font: 700 20px/1 var(--font-num);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.mode-btn-price sup { font-size: 12px; font-weight: 600; margin-right: 1px; }
.mode-btn-sub {
  font-size: 11.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Silicon Points & Voucher Strip */
.voucher-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--amber-border);
  background: linear-gradient(135deg, #fffdf7 0%, #fffbeb 100%);
  text-align: left;
  width: 100%;
  transition: border-color 150ms, box-shadow 150ms;
}
.voucher-card:hover { border-color: rgba(217, 119, 6, 0.5); box-shadow: var(--shadow-xs); }
.voucher-card.ready {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}
.voucher-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.voucher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}
.voucher-card.ready .voucher-badge { color: var(--accent-deep); }
.voucher-action-hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--amber);
}
.voucher-card.ready .voucher-action-hint { color: var(--accent); }

.silicon-meter { display: grid; gap: 6px; }
.silicon-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
}
.silicon-meter-head strong {
  color: var(--ink);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.silicon-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.silicon-bars i {
  height: 5px;
  border-radius: 99px;
  background: rgba(180, 83, 9, 0.14);
}
.silicon-bars i.on {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Outfit Wardrobe Selector */
.outfit-picker { display: grid; gap: 10px; }
.outfit-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.outfit-option {
  display: grid;
  gap: 0;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  text-align: left;
  transition: border-color 150ms, background-color 150ms;
}
.outfit-option:hover { border-color: var(--line-strong); background: var(--surface); }
.outfit-option[aria-pressed='true'] {
  border-color: var(--obsidian);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--obsidian), var(--shadow-xs);
}
.outfit-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
  aspect-ratio: 4 / 3;
}
.outfit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.outfit-check {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--obsidian);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  display: grid;
  place-items: center;
}
.outfit-label {
  display: grid;
  gap: 1px;
  padding: 6px 5px 4px;
}
.outfit-label strong { font-size: 12px; font-weight: 680; color: var(--ink); line-height: 1.25; }
.outfit-label small { font-size: 10.5px; color: var(--ink-muted); }

.outfit-colors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
}
.outfit-colors > span { font-size: 12px; color: var(--ink-muted); margin-right: 2px; }
.outfit-colors button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 140ms, background-color 140ms;
}
.outfit-colors button i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(15, 23, 42, 0.2);
}
.outfit-colors button[aria-pressed='true'] {
  border-color: var(--obsidian);
  background: var(--obsidian);
  color: #ffffff;
}
.outfit-colors button[aria-pressed='true'] i { border-color: rgba(255, 255, 255, 0.7); }

/* Slot Bar inside Studio */
.slot-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  font-size: 13px;
  transition: border-color 140ms, background-color 140ms;
}
.slot-pill-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.slot-pill-left { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-secondary); }
.slot-pill-left svg { color: var(--accent); }
.slot-pill-val { font-weight: 680; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }

/* Studio Footer CTA */
.studio-footer {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.studio-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.studio-price-row span { font-size: 12.5px; color: var(--ink-muted); }
.studio-price-row strong {
  font: 700 28px/1 var(--font-num);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.studio-price-row strong sup { font-size: 15px; font-weight: 600; margin-right: 1px; }
.studio-price-row strong em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }

.city-closed-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px dashed var(--line-strong);
  display: grid;
  gap: 4px;
}
.city-closed-box strong { font-size: 14px; }
.city-closed-box p { font-size: 12.5px; color: var(--ink-muted); }

/* ==========================================================================
   BECOME A ROBOT — Hardware Kit Purchase Page
   ========================================================================== */
.become-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0b1120 0%, #13203d 60%, #172554 100%);
  color: #ffffff;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.become-hero-copy { display: grid; gap: 12px; }
.become-hero-copy h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.become-hero-copy p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}
.become-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.become-perk {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 4px;
}
.become-perk strong { font-size: 13px; color: #ffffff; }
.become-perk small { font-size: 11.5px; color: #94a3b8; }

.become-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0f172a;
  aspect-ratio: 4 / 3;
}
.become-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kit-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  text-align: left;
  transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}
.kit-card:hover { border-color: var(--line-strong); background: var(--surface); }
.kit-card[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.kit-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.kit-card-top strong { font-size: 16px; font-weight: 720; color: var(--ink); }
.kit-card-price { font: 700 22px/1 var(--font-num); color: var(--ink); }
.kit-card-price sup { font-size: 12px; margin-right: 1px; }
.kit-card-desc { font-size: 12.5px; color: var(--ink-secondary); }
.kit-spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-secondary);
}
.kit-spec-list li { display: flex; align-items: center; gap: 6px; }
.kit-spec-list svg { color: var(--accent); }

.size-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* Primary & Secondary Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--obsidian);
  color: #ffffff;
  font-size: 14px;
  font-weight: 660;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(13, 19, 33, 0.18);
  transition: transform 140ms ease, background-color 140ms, box-shadow 140ms;
}
.cta:hover:not(:disabled) {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(13, 19, 33, 0.24);
  transform: translateY(-1px);
}
.cta:active:not(:disabled) { transform: translateY(0); }
.cta.accent {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.cta.accent:hover:not(:disabled) { filter: brightness(1.06); }
.cta.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.cta.secondary:hover:not(:disabled) { background: var(--surface-hover); }
.cta:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  border-color: transparent;
}
.cta.icon-right svg { order: 1; }

/* Shared Reusable Components */
.page { display: grid; align-content: start; gap: 16px; padding: 20px var(--edge) 32px; }
.project-title h1 { font-size: 26px; font-weight: 720; letter-spacing: -0.035em; line-height: 1.18; }
.project-title p { margin-top: 5px; font-size: 13px; color: var(--ink-muted); }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.section-row h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }

.quiet-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 650;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
}
.quiet-button:hover { background: var(--surface-hover); color: var(--ink); }

.service-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.service-icon.small { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }

.price { font: 700 24px/1 var(--font-num); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price sup { font-size: 0.6em; vertical-align: 0.16em; margin-right: 1px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.panel-title { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.panel-title strong { font-size: 15px; font-weight: 700; }

.order-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-main strong { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; color: var(--ink); }
.order-main small { color: var(--ink-muted); font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.badge.attention { color: var(--amber); background: var(--amber-soft); }
.badge.closed { color: var(--ink-muted); background: var(--surface-hover); }
.badge.success { color: var(--emerald); background: var(--emerald-soft); }

.fields { display: grid; margin: 0; }
.field {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 0;
}
.field + .field { border-top: 1px solid var(--line); }
.field:first-child { padding-top: 2px; }
.field:last-child { padding-bottom: 2px; }
.field dt { color: var(--ink-muted); font-size: 12.5px; }
.field dd { margin: 0; text-align: right; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; color: var(--ink); }
.field dd small { display: block; color: var(--ink-muted); font-size: 11.5px; font-weight: 500; margin-top: 2px; }

.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.info-strip svg { margin-top: 1px; color: var(--accent); }
.info-strip span { min-width: 0; overflow-wrap: anywhere; }

.muted { font-size: 12.5px; color: var(--ink-muted); }
.empty { display: grid; justify-items: start; gap: 10px; }
.empty h2 { font-size: 17px; }
.empty p { max-width: 34ch; color: var(--ink-muted); font-size: 13px; }

.options { display: grid; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 4px;
  background: none;
  border: 0;
  text-align: left;
  transition: background-color 140ms;
}
.option + .option { border-top: 1px solid var(--line); }
.option:hover { background: var(--surface-subtle); }
.option > svg:last-child { color: var(--ink-muted); }

/* Progress Track */
.progress-track { height: 6px; border-radius: 99px; background: rgba(15, 23, 42, 0.08); overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #38bdf8); }

/* Robot Wallet Card */
.robot-wallet {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #172554 100%);
  color: #f8fafc;
  box-shadow: var(--shadow-md);
}
.robot-wallet .service-icon { background: rgba(255, 255, 255, 0.12); color: #38bdf8; }
.wallet-title { display: flex; align-items: center; gap: 10px; }
.wallet-title h2 { font-size: 16px; font-weight: 700; color: #ffffff; }
.wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-left: auto;
  color: #38bdf8;
  font: 700 30px/1 var(--font-num);
  font-variant-numeric: tabular-nums;
}
.wallet-balance small { color: #cbd5e1; font-size: 12px; font-weight: 500; }
.wallet-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
}
.wallet-progress-label strong { color: #fbbf24; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.robot-wallet .progress-track { background: rgba(255, 255, 255, 0.14); height: 6px; }
.robot-wallet .progress-track span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.robot-wallet .muted { color: #94a3b8; font-size: 12px; }

/* Navigation & Footer */
.app-footer {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 20;
}

.bottom-nav {
  display: flex;
  min-height: 58px;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding: 5px 10px max(4px, env(safe-area-inset-bottom, 0px));
}
.bottom-nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 68px;
  min-height: 46px;
  padding: 3px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  transition: color 140ms;
}
.bottom-nav button[aria-current='page'] { color: var(--ink); font-weight: 700; }
.nav-icon { min-width: 36px; height: 24px; display: grid; place-items: center; border-radius: 99px; }
.bottom-nav button[aria-current='page'] .nav-icon { background: var(--accent-soft); color: var(--accent); }

.gesture { height: 14px; display: grid; place-items: center; }
.gesture i { width: 104px; height: 4px; background: rgba(15, 23, 42, 0.22); border-radius: 99px; }

.action-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--edge) max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.action-footer .cta { flex: 1 1 auto; }
.footer-price { min-width: 82px; display: grid; gap: 2px; line-height: 1.15; }
.footer-price .muted { font-size: 11px; }

.mobile-dock { display: none; }

/* Sheets / Modals */
dialog {
  position: fixed;
  inset: auto 0 var(--sheet-keyboard-inset, 0px);
  width: 100%;
  max-width: 100%;
  height: fit-content;
  max-height: calc(var(--sheet-view-height, 100dvh) - 16px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  color: var(--ink);
  background: #ffffff;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.16);
  color-scheme: light;
}
dialog::backdrop {
  background: rgba(13, 19, 33, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet-inner {
  display: grid;
  gap: 14px;
  padding: 16px clamp(18px, 4vw, 26px) max(22px, env(safe-area-inset-bottom, 0px));
}
.glass-sheet-handle {
  justify-self: center;
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #cbd5e1;
  margin-bottom: -4px;
}
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-top h2 { font-size: 18px; font-weight: 720; letter-spacing: -0.025em; }
.sheet-top > .quiet-button { width: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
.glass-sheet-glyph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.glass-sheet-heading { flex: 1; min-width: 0; }
.glass-sheet-heading p { margin-top: 2px; font-size: 12px; color: var(--ink-muted); }

.sheet-inner p { color: var(--ink-secondary); font-size: 13px; }
.sheet-inner h3 { margin-bottom: -6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sheet-inner form { display: grid; gap: 10px; }
.sheet-inner label { font-size: 13px; font-weight: 650; }
.sheet-inner input, .sheet-inner textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-size: 15px;
}
.sheet-inner input:focus, .sheet-inner textarea:focus { background: var(--surface); border-color: var(--accent); }
.sheet-inner textarea { resize: vertical; min-height: 82px; }
.sheet-inner .error { color: var(--danger); font-size: 12.5px; font-weight: 600; }

/* Robot Condition & Lottery Sheet Rows */
.glass-condition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
}
.glass-condition > span:first-child { display: grid; gap: 3px; min-width: 0; }
.glass-condition b { font-size: 13.5px; color: var(--ink); }
.glass-condition small { font-size: 11.5px; color: var(--ink-secondary); }
.glass-ticket-progress { display: grid; gap: 5px; min-width: 72px; text-align: right; }
.glass-ticket-progress b { font-size: 13px; color: var(--amber); font-family: var(--font-num); }
.glass-ticket-progress .progress-track { height: 5px; background: rgba(180, 83, 9, 0.16); }
.glass-ticket-progress .progress-track span { background: linear-gradient(90deg, #f59e0b, #d97706); }

.glass-sheet-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.glass-line-glyph {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.glass-line-glyph.violet { background: #f3e8ff; color: #7c3aed; }
.glass-line-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.glass-line-copy b { font-size: 13.5px; }
.glass-line-copy small { font-size: 12px; color: var(--ink-muted); }
.glass-sheet-line .cta { min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 12.5px; box-shadow: none; }

.glass-human-alternative {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  text-align: left;
}
.glass-human-alternative:hover { background: var(--surface); border-color: var(--line-strong); }
.glass-human-alternative img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; object-position: top; }
.glass-human-alternative b { font-size: 13.5px; }
.glass-human-alternative small { margin-left: auto; font-weight: 700; color: var(--ink); font-family: var(--font-num); }
.glass-flow-actions { display: grid; gap: 10px; }

.equipment-detail img {
  width: 100%;
  max-height: min(42vh, 280px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--obsidian);
}
.equipment-detail dl { display: grid; gap: 10px; margin: 12px 0 0; }
.equipment-detail dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.equipment-detail dd { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-secondary); }

.scene-time-fields { display: grid; gap: 12px; }
.desk-date-list, .desk-time-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.desk-date, .desk-time {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-weight: 650;
}
.desk-date small { font-size: 11px; color: var(--ink-muted); font-weight: 500; }
.desk-date[aria-pressed='true'], .desk-time[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.desk-date:disabled, .desk-time:disabled { opacity: 0.45; }

.guide-list { display: grid; gap: 4px; }
.guide-list h3 { margin: 10px 0 4px; font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13.5px;
  font-weight: 550;
  text-align: left;
}
.preview-item:hover { background: var(--surface-hover); }
.preview-item svg:last-child { margin-left: auto; color: var(--ink-muted); }

.toast {
  position: fixed;
  z-index: 40;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--obsidian);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(13, 19, 33, 0.28);
  font-size: 13px;
  font-weight: 600;
}
.toast:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: sheet-up 180ms cubic-bezier(0.22, 1, 0.36, 1); }
  @keyframes sheet-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Interior Pages — Booking, Orders, Order Detail, Profile, and Performer Tasks */
#screen > .interior-page {
  width: min(calc(100% - 2 * var(--edge)), 1120px);
  margin: 0 auto;
  padding: 24px 0 40px;
  gap: 18px;
}

.interior-page > *, .booking-editor > *, .receipt-record > * { min-width: 0; }
.interior-page .project-title h1 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 720; letter-spacing: -0.035em; }

.editor-section, .booking-recap, .profile-wallet, .receipt-status, .ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.booking-editor, .receipt-record { display: grid; align-content: start; gap: 14px; }
.editor-section { padding: 18px; }
.editor-section h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* Schedule Picker */
.schedule { display: grid; gap: 10px; }
.schedule h2 { margin-bottom: 2px; }
.day-list, .time-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-size: 13.5px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  transition: border-color 140ms, background-color 140ms;
}
.choice small { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.choice:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface); }
.choice[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.choice[aria-pressed='true'] small { color: var(--accent); }
.choice:disabled { opacity: 0.45; }

/* Address & Outfit Rows */
.booking-addresses { display: grid; }
.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 140ms;
}
.address-row:hover { background: var(--surface-subtle); }
.booking-addresses .contact-row { border-top: 1px solid var(--line); border-radius: 0; }
.address-row > svg:first-child { color: var(--accent); }
.address-row > svg:last-child { color: var(--ink-muted); }

.outfit-review {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}
.outfit-review img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; object-position: top; }
.outfit-review > span:nth-last-child(2) { font-size: 12.5px; font-weight: 650; color: var(--accent); }

/* Booking Recap Sidebar */
.booking-recap { overflow: hidden; align-self: start; }
.recap-service { display: flex; align-items: center; gap: 14px; padding: 14px; }
.recap-photo { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; object-position: 60% 20%; background: var(--obsidian); }
.recap-copy { min-width: 0; }
.recap-copy p { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
.recap-copy h2 { font-size: 18px; font-weight: 720; margin-top: 2px; }
.recap-copy small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-muted); }
.recap-details { display: none; }
.interior-actions:empty { display: none; }

.booking-review { display: grid; gap: 14px; }
.booking-review-project {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}
.booking-review-project b { font-size: 16px; color: var(--ink); }
.booking-review-note { padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.booking-review > .cta { width: 100%; }

/* Orders Ledger & Empty State */
.empty-ledger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 240px;
  border-radius: var(--radius-xl);
  background: var(--obsidian);
  color: #ffffff;
  box-shadow: var(--shadow-stage);
}
.empty-ledger img {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 22%;
}
.empty-ledger::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0d1321 20%, rgba(13, 19, 33, 0.92) 46%, rgba(13, 19, 33, 0.35) 75%, transparent 100%);
}
.empty-ledger > div { width: min(62%, 420px); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.empty-ledger h2 { font-size: clamp(20px, 2.3vw, 28px); font-weight: 700; letter-spacing: -0.03em; }
.empty-ledger p { color: #cbd5e1; font-size: 13.5px; }
.empty-ledger .cta { background: #ffffff; color: var(--obsidian); min-height: 42px; margin-top: 4px; }
.empty-ledger .cta:hover { background: #f1f5f9; }

.ledger { overflow: hidden; }
.ledger-head { display: none; }
.ledger-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  row-gap: 6px;
  padding: 14px 16px;
  transition: background-color 140ms;
}
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row:hover { background: var(--surface-subtle); }
.ledger-service, .ledger-state { display: flex; align-items: center; gap: 10px; }
.ledger-date { grid-column: 1; grid-row: 2; padding-left: 48px; color: var(--ink-muted); font-size: 12px; }
.ledger-state { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 6px; }
.ledger-fee { grid-column: 2; grid-row: 2; justify-self: end; font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Order Detail Receipt */
.receipt-status {
  padding: 22px;
  align-self: start;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}
.receipt-symbol {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.receipt-status h1 { font-size: 23px; font-weight: 720; letter-spacing: -0.03em; }
.receipt-status p { margin-top: 6px; font-size: 13px; color: var(--ink-secondary); }
.receipt-panel .panel-title { border-bottom: 1px solid var(--line); margin-bottom: 6px; }

/* Timeline */
.steps { display: grid; list-style: none; padding: 4px 0 0; margin: 0; }
.steps li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  min-height: 36px;
  position: relative;
  font-size: 13px;
  color: var(--ink-muted);
}
.steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 24px;
  background: var(--line);
  top: 15px;
  left: 6px;
}
.steps .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: var(--surface);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.steps li[data-done] { color: var(--ink); }
.steps li[data-done] .dot { border-color: var(--accent); background: var(--accent); }
.steps li[data-current] { color: var(--ink); font-weight: 700; }
.steps li[data-current] .dot { border-color: var(--obsidian); background: #ffffff; box-shadow: 0 0 0 3px var(--accent-ring); }

/* Profile Workspace */
.profile-wallet { overflow: hidden; align-self: start; }
.profile-wallet .robot-wallet { border-radius: 0; box-shadow: none; }
.profile-wallet > .option { padding: 10px 18px; }
.profile-workspace .options { padding: 4px 16px; }

/* Performer Side (扮演端) */
.dark-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.dark-panel h1 { font-size: 22px; font-weight: 720; letter-spacing: -0.03em; }
.dark-kicker { color: #94a3b8; font-size: 12px; font-weight: 600; }
.tag-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-banner { display: grid; gap: 10px; }
.task-banner .clock { font: 700 34px/1.05 var(--font-num); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.task-banner .clock small { font-size: 14px; color: #94a3b8; font-weight: 500; }

.task-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-secondary);
}
.task-filter select {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.task-pool { display: grid; gap: 10px; }
.date-mark { font-size: 12px; font-weight: 700; color: var(--ink-muted); font-family: var(--font-num); }
.task-card {
  width: 100%;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: border-color 140ms, transform 140ms;
}
.task-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.task-time { font: 700 22px/1 var(--font-num); letter-spacing: -0.04em; color: var(--ink); }
.task-time small { display: block; margin-top: 4px; font: 500 11px/1.2 var(--font-sans); color: var(--ink-muted); }
.task-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.task-outfit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.task-outfit-chip img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; object-position: top; }

/* Responsive Interior Layouts */
@media (min-width: 650px) {
  .ledger-head, .ledger-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.5fr) minmax(140px, 1.1fr) minmax(70px, 0.6fr) 100px;
    gap: 14px;
    padding: 15px 20px;
    align-items: center;
  }
  .ledger-date, .ledger-state, .ledger-fee { grid-area: auto; padding: 0; }
  .ledger-fee { justify-self: start; }
  .ledger-head { font-size: 12px; font-weight: 650; color: var(--ink-muted); background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
  .ledger-date { font-size: 13px; }
}

@media (min-width: 760px) and (min-height: 470px) {
  #screen > .interior-page { padding-top: 28px; gap: 22px; }
  .booking-workspace, .receipt-workspace {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.95fr);
    align-items: start;
  }
  .booking-recap, .receipt-status { grid-column: 2; grid-row: 1; position: sticky; top: 20px; }
  .booking-editor, .receipt-record { grid-column: 1; grid-row: 1; }
  .recap-service {
    position: relative;
    isolation: isolate;
    align-items: flex-end;
    min-height: 170px;
    padding: 0;
    background: var(--obsidian);
  }
  .recap-service::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(13, 19, 33, 0.9) 0%, rgba(13, 19, 33, 0.15) 75%);
  }
  .recap-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; border-radius: 0; }
  .recap-copy { padding: 18px 20px; color: #ffffff; }
  .recap-copy p { color: #38bdf8; }
  .recap-copy small { color: #cbd5e1; }
  .recap-details { display: block; padding: 14px 20px; }
  .interior-actions .action-footer {
    border-top: 1px solid var(--line);
    padding: 16px 20px 20px;
    background: var(--surface-subtle);
  }
  .receipt-status .action-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 18px;
    padding: 16px 0 0;
    background: transparent;
  }
  .profile-workspace { grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.35fr); }
  .profile-workspace > .project-title { grid-column: 1 / -1; }
}

/* ==========================================================================
   ROBOT MODE — Live Map + Auto-Accept Waveform + Route + Leaderboard + My Gear
   ========================================================================== */
.robot-map-shell {
  width: min(calc(100% - 2 * var(--edge)), 1260px);
  margin: 0 auto;
  padding: 18px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 1fr);
  gap: 20px;
  align-items: start;
}

/* Futuristic Dark Tactical Map */
.tactical-map {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 52% 48%, #101e38 0%, #09101f 68%, #060a14 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 20px 50px rgba(8, 15, 30, 0.34);
  height: clamp(410px, 60dvh, 560px);
  color: #f8fafc;
}
.tactical-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated Route Dash & Radar Pulse */
.map-route-path {
  stroke-dasharray: 9 7;
  animation: route-flow 1.1s linear infinite;
}
@keyframes route-flow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}
.radar-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: radar-pulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.radar-ring.delay { animation-delay: 0.95s; }
@keyframes radar-pulse {
  0% { transform: scale(0.35); opacity: 0.85; }
  100% { transform: scale(2.8); opacity: 0; }
}

.map-hud-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
}
.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 16, 31, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 650;
}
.map-pill.live {
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}
.map-pill.route {
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}
.map-hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.map-hud-dot.live { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.map-hud-dot.route { background: #34d399; box-shadow: 0 0 10px #34d399; }

.map-route-banner {
  position: absolute;
  z-index: 3;
  inset: auto 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(9, 16, 31, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.map-route-banner strong { display: block; font-size: 13.5px; color: #ffffff; }
.map-route-banner small { font-size: 11.5px; color: #94a3b8; }
.map-eta-badge {
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  font: 700 13px/1.2 var(--font-num);
  white-space: nowrap;
}

/* Right / Bottom Robot Dispatch Console */
.dispatch-console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

.robot-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.robot-stat-box {
  padding: 11px 10px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.robot-stat-box small { font-size: 11px; color: var(--ink-muted); }
.robot-stat-box strong {
  font: 750 18px/1.1 var(--font-num);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Auto-Accept Live Waveform Card */
.waveform-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #0b1120 0%, #13213e 65%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  display: grid;
  gap: 14px;
}
.waveform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.waveform-head strong { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.waveform-head small { font-size: 11.5px; color: #7dd3fc; }

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 54px;
  padding: 6px 0;
}
.waveform-bars i {
  display: block;
  width: 5px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  animation: wave-bounce 1.05s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes wave-bounce {
  0%, 100% { height: 10px; opacity: 0.45; }
  50% { height: 46px; opacity: 1; }
}

.waveform-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.waveform-actions .cta.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}
.waveform-actions .cta.secondary:hover { background: rgba(255, 255, 255, 0.16); }

/* Active Matched Order Card */
.matched-order-card {
  border-radius: 18px;
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.matched-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.matched-payout {
  font: 760 22px/1 var(--font-num);
  color: var(--emerald);
}
.matched-payout small { font-size: 11px; color: var(--ink-muted); font-weight: 500; margin-left: 3px; }
.matched-outfit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.matched-outfit-row img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; object-position: top; }

/* ==========================================================================
   ROBOT RANKING — Level System + Today's Star Podium + Quests
   ========================================================================== */
.rank-hero {
  border-radius: 22px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #0b1120 0%, #172554 62%, #1e1b4b 100%);
  color: #ffffff;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.rank-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  font-size: 12px;
  font-weight: 800;
}
.rank-xp-row { display: grid; gap: 6px; }
.rank-xp-head { display: flex; justify-content: space-between; font-size: 12px; color: #cbd5e1; }
.rank-xp-head strong { color: #fbbf24; font-family: var(--font-num); }
.rank-hero .progress-track { height: 7px; background: rgba(255, 255, 255, 0.14); }
.rank-hero .progress-track span { background: linear-gradient(90deg, #38bdf8, #fbbf24); }
.rank-tier-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.tier-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tier-chip.active {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.5);
}

/* Today's Star Top 3 Podium */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.podium-card {
  position: relative;
  padding: 14px 10px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}
.podium-card.first {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-color: rgba(245, 158, 11, 0.55);
  padding-top: 18px;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.14);
}
.podium-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--bg);
  color: var(--ink-secondary);
}
.podium-card.first .podium-medal { background: #f59e0b; color: #ffffff; }
.podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--line-strong);
}
.podium-card.first .podium-avatar { width: 56px; height: 56px; border-color: #f59e0b; }
.podium-name { font-size: 13px; font-weight: 720; color: var(--ink); }
.podium-earn { font: 760 17px/1 var(--font-num); color: var(--amber); }
.podium-meta { font-size: 11px; color: var(--ink-muted); }

.rank-list { display: grid; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row.is-me {
  margin-inline: -10px;
  padding: 11px 10px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.rank-num { width: 24px; text-align: center; font: 760 15px/1 var(--font-num); color: var(--ink-muted); }
.rank-row.is-me .rank-num { color: var(--accent); }
.rank-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; }
.rank-earn { font: 740 16px/1 var(--font-num); color: var(--ink); text-align: right; }
.rank-earn small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-muted); font-weight: 500; }

/* Quests / Missions */
.quest-list { display: grid; gap: 10px; }
.quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.quest-copy { display: grid; gap: 3px; min-width: 0; }
.quest-copy strong { font-size: 13.5px; color: var(--ink); }
.quest-copy small { font-size: 11.5px; color: var(--ink-muted); }
.quest-reward { font-size: 11.5px; font-weight: 700; color: var(--amber); }
.quest-item .cta { min-height: 36px; padding: 0 13px; border-radius: 999px; font-size: 12px; box-shadow: none; flex-shrink: 0; }

/* Robot Me — Owned Gear Grid */
.gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gear-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  overflow: hidden;
  display: grid;
}
.gear-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.gear-card-copy { padding: 8px 9px; display: grid; gap: 2px; }
.gear-card-copy strong { font-size: 12px; color: var(--ink); }
.gear-card-copy small { font-size: 10.5px; color: var(--emerald); font-weight: 600; }

/* Prominent Mode Switch Banner between Header & Profile Content */
.mode-switch-banner {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: linear-gradient(125deg, #0b1120 0%, #132240 58%, #1d4ed8 100%);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(11, 17, 32, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.mode-switch-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 16px 34px rgba(11, 17, 32, 0.24);
}
.mode-switch-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mode-switch-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
  display: grid;
  place-items: center;
}
.mode-switch-copy { display: grid; gap: 2px; min-width: 0; }
.mode-switch-copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 740;
  color: #ffffff;
}
.mode-switch-copy small {
  font-size: 12px;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mode-switch-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1120;
  font-size: 12.5px;
  font-weight: 720;
  white-space: nowrap;
}
@media (max-width: 759px) {
  .mode-switch-banner { padding: 13px 14px; gap: 10px; border-radius: 16px; }
  .mode-switch-icon { width: 38px; height: 38px; border-radius: 11px; }
  .mode-switch-copy strong { font-size: 14px; }
  .mode-switch-copy small { font-size: 11px; }
  .mode-switch-cta { padding: 7px 11px; font-size: 11.5px; }
}

/* Responsive Breakpoints — Desktop Navigation, Tablet, and Full Mobile Optimization */

@media (min-width: 760px) {
  .primary-nav-slot { display: block; }
  .device .app-header:has(.primary-nav-slot) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  .app-header .wordmark { justify-self: start; }
  .app-header .header-tools { justify-self: end; }

  .primary-nav-slot .bottom-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg);
  }
  .primary-nav-slot .bottom-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    min-width: 82px;
    padding: 0 13px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
  }
  .primary-nav-slot .bottom-nav button:hover { color: var(--ink); }
  .primary-nav-slot .bottom-nav button[aria-current='page'] {
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
  }
  .primary-nav-slot .nav-icon { min-width: 0; width: 16px; height: 16px; background: transparent !important; }
  .primary-nav-slot .nav-icon svg { width: 15px; height: 15px; }

  .app-footer { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gesture { display: none; }

  #screen > .page:not(.interior-page) {
    width: min(calc(100% - 2 * var(--edge)), 760px);
    margin: 0 auto;
    padding-top: 28px;
  }
  .action-footer { max-width: 760px; width: 100%; margin: 0 auto; padding: 12px 20px 18px; }

  dialog {
    inset: var(--sheet-view-top, 0px) 0 var(--sheet-keyboard-inset, 0px);
    margin: auto;
    width: min(490px, calc(100% - 48px));
    max-height: calc(var(--sheet-view-height, 100dvh) - 40px);
    border-radius: 24px;
    box-shadow: 0 24px 72px rgba(13, 19, 33, 0.24);
  }
  .glass-sheet-handle { display: none; }
}

@media (min-width: 760px) and (max-width: 1060px) {
  .ls-home {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 1fr);
    gap: 18px;
  }
  .swipe-card { flex-basis: 290px; height: 370px; }
}

/* ==========================================================================
   MOBILE LAYOUT (< 760px) — Zero Overflow, First-Screen Card + Mode + Outfit
   ========================================================================== */
@media (max-width: 759px) {
  .device { --edge: 14px; }

  .status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 22px;
    padding: 4px 18px 0;
    background: rgba(255, 255, 255, 0.92);
    font: 650 11.5px/1 var(--font-num);
  }

  /* Compact Single-Row Mobile Header (Fits cleanly down to 320px) */
  .app-header {
    flex: 0 0 calc(50px + env(safe-area-inset-top, 0px));
    height: calc(50px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) var(--edge) 0;
    gap: 6px;
    overflow: hidden;
  }
  .wordmark {
    font-size: 18px;
    gap: 5px;
    flex-shrink: 0;
  }
  .brand-symbol { width: 22px; height: 14px; }
  .header-tools {
    gap: 5px;
    min-width: 0;
    flex-shrink: 1;
  }
  .become-pill-btn {
    min-height: 30px;
    padding: 0 9px;
    gap: 4px;
    font-size: 11px;
    font-weight: 680;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  }
  .become-pill-btn .pulse-dot { width: 6px; height: 6px; }
  .location {
    min-height: 30px;
    padding: 0 8px;
    gap: 3px;
    font-size: 11.5px;
  }
  .location svg:first-child { display: none; }
  .header-tool {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
  }
  .header-tool svg { width: 15px; height: 15px; }
  .header-title {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .back, .header-spacer { min-width: 34px; width: 34px; min-height: 34px; }

  /* Reorder Home on Mobile: Filter -> Swipe Cards -> Config Studio -> Become Banner */
  .ls-home {
    width: 100%;
    max-width: 100%;
    padding: 10px var(--edge) 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ls-home-left {
    display: contents;
  }

  .deck-top {
    order: 1;
    gap: 8px;
  }
  .deck-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .deck-heading h1 { font-size: 18px; letter-spacing: -0.025em; }
  .deck-heading p { font-size: 11px; white-space: nowrap; }
  .deck-controls { width: 100%; }
  .scene-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 2px;
  }
  .scene-filter button {
    min-height: 28px;
    padding: 0 2px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .deck-arrows { display: none; }

  /* Full-bleed Horizontal Swipe Deck without causing page horizontal scroll */
  .card-deck-wrap {
    order: 2;
    width: calc(100% + 2 * var(--edge));
    margin-inline: calc(var(--edge) * -1);
    border-radius: 0;
    overflow: hidden;
  }
  .card-deck {
    --card-w: min(76vw, 300px);
    gap: 12px;
    padding: 4px calc(50% - var(--card-w) / 2) 14px;
  }
  .swipe-card {
    flex: 0 0 var(--card-w);
    height: clamp(244px, 34dvh, 300px);
    border-radius: 20px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .swipe-card[aria-pressed='true'] {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(11, 17, 32, 0.22), 0 0 0 3px rgba(56, 189, 248, 0.18);
  }
  .swipe-card-top { padding: 12px 12px 0; }
  .card-chip { padding: 4px 8px; font-size: 10.5px; }
  .swipe-card-body { padding: 12px 14px 14px; gap: 5px; }
  .swipe-card-meta { font-size: 11px; gap: 5px; }
  .swipe-card-title { font-size: 21px; }
  .swipe-card-price { font-size: 19px; }
  .swipe-card-desc { font-size: 11.5px; -webkit-line-clamp: 1; }
  .swipe-card-foot { padding-top: 6px; font-size: 10.5px; }

  .deck-footer-bar {
    order: 3;
    margin-top: -6px;
    gap: 8px;
  }
  .deck-dots { gap: 5px; }
  .deck-dot { width: 6px; height: 6px; }
  .deck-dot[aria-pressed='true'] { width: 18px; }
  .deck-quick-links { gap: 6px; }
  .deck-mini-btn { min-height: 28px; padding: 0 9px; font-size: 11px; }

  /* Config Studio immediately under cards on mobile */
  .studio-panel {
    order: 4;
    position: static;
    width: 100%;
    min-width: 0;
    padding: 14px 13px;
    border-radius: 18px;
    gap: 12px;
    box-shadow: var(--shadow-sm);
  }
  .studio-header, .studio-footer { display: none; }
  .studio-block { gap: 8px; }
  .studio-label h3 { font-size: 12.5px; }
  .studio-label small { font-size: 11px; }

  .mode-grid { gap: 8px; }
  .mode-btn {
    padding: 10px 10px;
    gap: 4px;
    border-radius: 12px;
    min-width: 0;
  }
  .mode-btn-top { gap: 4px; }
  .mode-btn-name { font-size: 12.5px; gap: 4px; white-space: nowrap; }
  .mode-btn-name svg { width: 14px; height: 14px; }
  .mode-btn-price { font-size: 17px; }
  .mode-btn-sub { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .voucher-card { padding: 11px 12px; gap: 8px; }
  .voucher-badge { font-size: 12px; }
  .voucher-action-hint { font-size: 11.5px; }
  .silicon-meter-head { font-size: 11px; }

  /* Outfit Picker Mobile Tightening */
  .outfit-options { gap: 6px; }
  .outfit-option { padding: 3px; border-radius: 11px; }
  .outfit-photo { border-radius: 8px; }
  .outfit-label { padding: 5px 3px 3px; }
  .outfit-label strong {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .outfit-label small {
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .outfit-colors { gap: 5px; }
  .outfit-colors button { min-height: 29px; padding: 0 9px; font-size: 11.5px; }

  .slot-pill-btn { min-height: 40px; padding: 6px 11px; font-size: 12px; }

  /* Become a Robot Banner below Config Studio on mobile */
  .become-banner {
    order: 5;
    grid-template-columns: 1fr;
    padding: 15px 14px;
    gap: 11px;
    border-radius: 18px;
  }
  .become-banner-copy h2 { font-size: 17px; }
  .become-banner-copy p { font-size: 12px; }
  .become-banner-cta { width: 100%; justify-content: center; padding: 10px 14px; font-size: 13px; }

  /* Mobile Sticky Booking Dock */
  .mobile-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px var(--edge);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }
  .mobile-dock-price {
    display: grid;
    gap: 1px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .mobile-dock-price small {
    font-size: 10.5px;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 135px;
  }
  .mobile-dock-price strong {
    font: 700 20px/1 var(--font-num);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .mobile-dock-price strong sup { font-size: 12px; font-weight: 600; margin-right: 1px; }
  .mobile-dock-price strong em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--ink-muted); }
  .mobile-dock .cta {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 62%;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 12px;
    white-space: nowrap;
  }

  /* Bottom Tab Bar Compact */
  .bottom-nav {
    min-height: 52px;
    padding: 3px 8px max(4px, env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav button { min-height: 42px; font-size: 10.5px; gap: 1px; }
  .nav-icon { height: 22px; }
  .nav-icon svg { width: 18px; height: 18px; }

  /* Mobile Interior Pages & Become-a-Robot Page */
  #screen > .interior-page {
    width: calc(100% - 2 * var(--edge));
    padding: 14px 0 24px;
    gap: 14px;
  }
  .page { padding: 14px var(--edge) 24px; gap: 14px; }
  .editor-section, .panel { padding: 14px; border-radius: 16px; }
  .recap-service { padding: 12px; gap: 11px; }
  .recap-photo { width: 64px; height: 64px; }
  .recap-copy h2 { font-size: 16px; }

  .become-hero {
    grid-template-columns: 1fr;
    padding: 16px 15px;
    gap: 14px;
    border-radius: 20px;
  }
  .become-hero-copy { gap: 8px; }
  .become-hero-copy h1 { font-size: 22px; }
  .become-hero-copy p { font-size: 12.5px; line-height: 1.5; }
  .become-hero-media { aspect-ratio: 16 / 10; }
  .become-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .become-perk { padding: 9px 8px; }
  .become-perk strong { font-size: 11.5px; }
  .become-perk small { font-size: 10px; line-height: 1.3; }

  .kit-grid { grid-template-columns: 1fr; gap: 10px; }
  .kit-card { padding: 14px; gap: 8px; }
  .kit-card-top strong { font-size: 15px; }
  .kit-card-price { font-size: 20px; }

  .empty-ledger { min-height: 185px; border-radius: 18px; }
  .empty-ledger > div { width: 82%; padding: 18px; }
  .empty-ledger h2 { font-size: 19px; }

  .ledger-row { padding: 12px 13px; }
  .task-card { grid-template-columns: 62px minmax(0, 1fr) 14px; padding: 12px; gap: 10px; }
  .task-time { font-size: 19px; }

  /* Mobile Modal Sheet Protection */
  .sheet-inner { padding: 14px 16px max(18px, env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .sheet-top h2 { font-size: 16.5px; }
  .glass-condition { padding: 11px 12px; gap: 8px; }
  .glass-sheet-line { gap: 9px; padding: 10px 0; }
  .glass-sheet-line .cta { flex-shrink: 0; white-space: nowrap; min-height: 36px; padding: 0 11px; font-size: 12px; }
  .glass-human-alternative { padding: 9px 10px; gap: 9px; }
  .glass-human-alternative b { font-size: 12.5px; }

  .action-footer { gap: 8px; padding: 8px var(--edge) max(8px, env(safe-area-inset-bottom, 0px)); }
  .action-footer .cta { min-height: 44px; font-size: 13.5px; padding: 0 12px; }
  .toast { bottom: 124px; font-size: 12px; padding: 8px 14px; }

  /* Mobile Robot Mode (Map + Waveform + Leaderboard + My Gear) */
  .robot-map-shell {
    width: 100%;
    padding: 10px var(--edge) 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tactical-map {
    height: clamp(270px, 40dvh, 340px);
    border-radius: 20px;
  }
  .map-hud-top { padding: 10px 12px; }
  .map-pill { padding: 5px 10px; font-size: 11px; }
  .map-route-banner { inset: auto 10px 10px 10px; padding: 10px 12px; }
  .dispatch-console { padding: 14px 13px; border-radius: 18px; gap: 12px; }
  .robot-stat-box { padding: 9px 8px; }
  .robot-stat-box strong { font-size: 16px; }
  .waveform-card { padding: 14px 13px; gap: 10px; }
  .waveform-bars { height: 42px; }
  .podium-grid { gap: 7px; }
  .podium-card { padding: 11px 6px; border-radius: 14px; }
  .podium-avatar { width: 40px; height: 40px; }
  .podium-card.first .podium-avatar { width: 48px; height: 48px; }
  .podium-name { font-size: 12px; }
  .podium-earn { font-size: 14.5px; }
  .gear-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .gear-card-copy { padding: 6px; }
  .gear-card-copy strong { font-size: 11px; }
}

/* Extra-Narrow Phones (<= 375px, e.g. iPhone SE / Mini) */
@media (max-width: 375px) {
  .device { --edge: 12px; }
  .wordmark { font-size: 16.5px; }
  .brand-symbol { width: 20px; height: 13px; }
  .become-pill-btn { padding: 0 7px; font-size: 10.5px; }
  .location { padding: 0 6px; font-size: 11px; }
  .swipe-card { flex: 0 0 82vw; height: 236px; }
  .become-perks { grid-template-columns: 1fr; }
  .mode-btn-price { font-size: 15.5px; }
  .waveform-actions { grid-template-columns: 1fr; }
}
