:root {
  --white: #ffffff;
  --ink: #0b0c0e;
  --ink-strong: #14161a;
  --ink-muted: #525866;
  --ink-subtle: #788091;
  --border: rgba(11, 12, 14, 0.12);
  --border-strong: rgba(11, 12, 14, 0.24);
  --surface-soft: #f5f6f8;
  --meadow-accent: #ff6b1a;
  --accent: #ff6b1a;
  --accent-hover: #e5580c;
  --accent-soft: #fff2ea;
  --danger: #c63e37;
  --radius-xl: 20px;
  --radius-md: 13px;
  --shadow-card: 0 20px 52px rgba(11, 12, 14, 0.24), 0 2px 8px rgba(11, 12, 14, 0.1);
  --shadow-pill: 0 8px 28px rgba(11, 12, 14, 0.18), 0 1px 3px rgba(11, 12, 14, 0.08);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #0b0c0e;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#world-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
  cursor: grab;
}

[hidden] {
  display: none !important;
}

/* ---------------- Top-Right Camera Controls ---------------- */
.cam-controls {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  max-width: calc(100vw - 28px);
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.cam-mode-group {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cam-mode-btn {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 590;
  letter-spacing: -0.01em;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.cam-mode-btn:hover:not(.is-active) {
  color: var(--ink);
}

.cam-mode-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.cam-mode-btn.is-demo-click {
  animation: cam-demo-press 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.cam-mode-btn.is-demo-click::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  pointer-events: none;
  animation: cam-demo-ripple 0.68s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cam-demo-press {
  0% {
    transform: scale(1);
  }
  26% {
    transform: scale(0.86);
  }
  62% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cam-demo-ripple {
  0% {
    opacity: 0.85;
    transform: scale(0.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cam-mode-btn.is-demo-click,
  .cam-mode-btn.is-demo-click::after {
    animation: none;
  }
}

.cam-recenter-btn {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 590;
  letter-spacing: -0.01em;
  padding: 6px 13px 6px 10px;
  min-height: 38px;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cam-recenter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 28, 18, 0.22);
}

.cam-recenter-btn:active {
  transform: translateY(0);
}

.cam-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cam-compass-svg {
  width: 17px;
  height: 17px;
}

.cam-avatar-btn {
  padding: 6px 13px 6px 10px;
  gap: 6px;
}

.avatar-swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b1a;
  border: 1px solid rgba(11, 12, 14, 0.28);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.online-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.cam-live-btn {
  text-decoration: none;
  background: rgba(11, 12, 14, 0.94);
  color: var(--white);
  border: 1px solid rgba(255, 107, 26, 0.45);
  padding: 6px 13px 6px 11px;
  gap: 7px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cam-live-btn:hover {
  background: #14171d;
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(255, 107, 26, 0.28), 0 2px 8px rgba(11, 12, 14, 0.34);
}

@media (max-width: 680px) {
  .cam-controls {
    top: max(10px, env(safe-area-inset-top, 10px));
    right: max(10px, env(safe-area-inset-right, 10px));
    max-width: calc(100vw - 20px);
    gap: 6px;
  }

  .cam-mode-btn {
    padding: 6px 9px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .cam-recenter-btn {
    padding: 6px 10px 6px 8px;
    font-size: 0.78rem;
  }

  .online-pill {
    padding: 6px 10px 6px 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .cam-controls {
    gap: 5px;
  }

  .cam-mode-btn {
    padding: 5px 8px;
    min-height: 30px;
    font-size: 0.76rem;
    gap: 4px;
  }

  #recenter-btn {
    padding: 0;
    width: 36px;
    min-height: 36px;
    justify-content: center;
  }

  #recenter-btn > span {
    display: none;
  }

  .cam-avatar-btn {
    padding: 0 9px;
    min-height: 36px;
    gap: 5px;
  }

  .cam-avatar-btn > span:not(.avatar-swatch-dot) {
    display: none;
  }

  .online-pill {
    min-height: 36px;
    padding: 5px 10px 5px 9px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .cam-live-btn {
    min-height: 36px;
    padding: 5px 11px 5px 9px;
    font-size: 0.76rem;
    gap: 6px;
  }
}

/* ---------------- Mobile First-Person Walk Joystick ---------------- */
.walk-joystick {
  position: fixed;
  left: max(18px, calc(env(safe-area-inset-left, 0px) + 18px));
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 22px));
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  border: 1.5px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 12;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.walk-joystick.is-active {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.98);
  cursor: grabbing;
}

.walk-joystick-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.walk-joy-chevron {
  stroke: #161b18;
  stroke-opacity: 0.42;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-opacity 0.1s ease;
}

.walk-joy-chevron.is-lit {
  stroke-opacity: 0.92;
}

/* ---------------- Bottom Dock & Pills ---------------- */
.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-walk-mobile="1"] .bottom-dock {
  left: auto;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 22px));
  transform: none;
  align-items: flex-end;
}

body[data-walk-mobile="1"] .dock-pill {
  max-width: calc(100vw - 168px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-pill {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 580;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dock-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(15, 28, 18, 0.22);
}

.dock-pill:active {
  transform: translateY(0);
}

.dock-pill-pick {
  cursor: default;
  padding: 8px 10px 8px 18px;
  gap: 10px;
}

.dock-pill-pick:hover {
  transform: none;
}

.dock-pill-building {
  cursor: default;
  pointer-events: none;
  padding: 9px 20px 9px 16px;
  gap: 11px;
}

.building-pill-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.22;
  gap: 2px;
  min-width: 0;
}

.building-pill-title {
  font-size: 0.91rem;
  font-weight: 610;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.building-pill-sub {
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  color: var(--meadow-accent);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-pill-ready {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b1a;
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.22);
  flex-shrink: 0;
}

.live-dot-pulse {
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.24);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 26, 0.44);
  }
}

.pill-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(11, 12, 14, 0.16);
  border-top-color: var(--accent);
  animation: pill-spin 0.78s linear infinite;
  flex-shrink: 0;
}

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

/* ---------------- Compact Bottom Building Box ---------------- */
.bottom-builder {
  pointer-events: auto;
  width: min(92vw, 396px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(22, 27, 24, 0.09);
  border-radius: var(--radius-xl);
  padding: 12px 14px 14px;
  box-shadow: var(--shadow-card);
  user-select: text;
}

.builder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.spot-chip-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 560;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.spot-chip-btn:hover {
  background: #edf1ed;
  border-color: var(--ink);
}

.icon-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(22, 27, 24, 0.1);
  background: var(--white);
  color: var(--ink-muted);
  font-size: 1.18rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.icon-close-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.builder-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 9px;
  align-items: stretch;
}

.drop-tile {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 64px;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.drop-tile:hover,
.drop-tile.dragover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.drop-tile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 540;
}

.upload-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-subtle);
}

.drop-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drop-preview-img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
}

.clear-img-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

#prompt-input {
  width: 100%;
  resize: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.15s ease;
}

#prompt-input::placeholder {
  color: var(--ink-subtle);
}

#prompt-input:focus {
  border-color: var(--ink);
}

.form-error {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--danger);
}

.upload-disclaimer {
  margin: 8px 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.upload-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upload-disclaimer a:hover {
  color: var(--ink);
}

.primary-btn {
  margin-top: 9px;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 0.91rem;
  font-weight: 590;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.primary-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* ---------------- Hover Card & Toast ---------------- */
.hover-card {
  position: fixed;
  z-index: 12;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px 13px;
  max-width: 280px;
  box-shadow: var(--shadow-pill);
  transform: translate(-50%, calc(-100% - 16px));
}

.hover-name {
  font-size: 0.86rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hover-feed {
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--meadow-accent);
}

.hover-status {
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.weave-toast {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 18px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  box-shadow: var(--shadow-pill);
  pointer-events: none;
  max-width: min(90vw, 520px);
  text-align: center;
}

@media (max-width: 780px) {
  .weave-toast {
    top: calc(max(12px, env(safe-area-inset-top, 12px)) + 48px);
  }
}

/* ---------------- Contextual Interaction Prompt ---------------- */
.interact-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 28;
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 27, 24, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 590;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 8px 15px 8px 10px;
  box-shadow: 0 10px 28px rgba(10, 18, 12, 0.28), 0 1px 3px rgba(10, 18, 12, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  transition: transform 0.14s ease, bottom 0.18s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

body[data-in-interior="1"] .bottom-dock {
  display: none !important;
}

body[data-in-interior="1"] .interact-prompt {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.interact-prompt:hover {
  background: rgba(22, 27, 24, 0.92);
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 14px 32px rgba(10, 18, 12, 0.34), 0 2px 5px rgba(10, 18, 12, 0.18);
}

.interact-prompt:active {
  transform: translateX(-50%) scale(0.97);
}

.interact-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  flex-shrink: 0;
}

body[data-walk-mobile="1"] .interact-prompt {
  padding: 9px 16px;
}

body[data-walk-mobile="1"] .interact-key {
  display: none;
}

/* ---------------- Subtle First-Person Esc Exit Hint ---------------- */
.walk-esc-hint {
  position: fixed;
  top: calc(max(14px, env(safe-area-inset-top, 14px)) + 54px);
  left: max(14px, env(safe-area-inset-left, 14px));
  z-index: 26;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(22, 27, 24, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 540;
  letter-spacing: -0.005em;
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 14px rgba(10, 18, 12, 0.14);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.walk-esc-hint[hidden] {
  display: none !important;
}

.walk-esc-hint:hover {
  background: rgba(22, 27, 24, 0.7);
}

.walk-esc-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 680;
  line-height: 1;
  color: #ffffff;
}

body[data-walk-mobile="1"] .walk-esc-hint {
  display: none !important;
}

@media (pointer: coarse) {
  .interact-prompt {
    padding: 9px 16px;
  }

  .interact-key {
    display: none;
  }

  .walk-esc-hint {
    display: none !important;
  }
}

/* ---------------- Character Customizer Modal (RE[INOVE]® Black & Orange) ---------------- */
.avatar-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  max-width: min(95vw, 760px);
  width: min(95vw, 760px);
  max-height: min(92dvh, 620px);
  overflow: visible;
  font-family: var(--font-sans);
}

.avatar-dialog:not([open]) {
  display: none !important;
}

.avatar-dialog::backdrop {
  background: rgba(6, 8, 12, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cb-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: #0b0d12;
  color: #ffffff;
  border: 1px solid rgba(255, 107, 26, 0.28);
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  height: min(90dvh, 584px);
  user-select: none;
}

.cb-stage {
  position: relative;
  background: radial-gradient(circle at 50% 35%, #1d2431 0%, #0d1016 64%, #07090d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.cb-stage:active {
  cursor: grabbing;
}

.cb-stage-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(11, 13, 18, 0.72);
  border: 1px solid rgba(255, 107, 26, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cb-stage-badge span {
  color: var(--accent);
}

.cb-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cb-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 15px 17px 14px;
  gap: 10px;
  background: #0e1117;
}

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

.cb-heading-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cb-kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cb-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

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

.cb-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cb-field-full {
  grid-column: 1 / -1;
}

.cb-field-label {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
}

.cb-name-input,
.cb-select-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #171b24;
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  outline: none;
  user-select: text;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.cb-select-input {
  cursor: pointer;
  user-select: none;
}

.cb-name-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 460;
}

.cb-name-input:focus,
.cb-select-input:focus {
  background: #1d222e;
  border-color: var(--accent);
}

.cb-close-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.cb-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.cb-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: #161a23;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cb-tab-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 4px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.cb-tab-btn:hover:not(.is-active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.cb-tab-btn.is-active {
  background: var(--accent);
  color: #ffffff;
}

.cb-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 3px;
}

.cb-group-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #141821;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cb-group-label {
  font-size: 0.71rem;
  font-weight: 680;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cb-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #1c212c;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 570;
  letter-spacing: -0.01em;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

.cb-chip:hover:not(.is-active) {
  border-color: rgba(255, 107, 26, 0.7);
  color: #ffffff;
}

.cb-chip:active {
  transform: scale(0.97);
}

.cb-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.cb-chip-preset {
  border-color: rgba(255, 107, 26, 0.34);
  background: rgba(255, 107, 26, 0.12);
  color: #ffd8c2;
}

.cb-chip-preset:hover {
  background: rgba(255, 107, 26, 0.24);
  border-color: var(--accent);
  color: #ffffff;
}

.cb-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  transition: opacity 0.15s ease;
}

.cb-swatches.is-dimmed {
  opacity: 0.36;
  pointer-events: none;
}

.cb-swatch-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 2px;
  flex-shrink: 0;
}

.cb-swatch {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cb-swatch:hover {
  transform: scale(1.1);
}

.cb-swatch.is-active {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px #0e1117, 0 0 0 4px var(--accent);
}

.cb-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.cb-btn {
  appearance: none;
  height: 37px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 0 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.cb-btn:active {
  transform: scale(0.98);
}

.cb-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #171b24;
  color: #ffffff;
}

.cb-btn-secondary:hover {
  background: #202633;
  border-color: rgba(255, 255, 255, 0.32);
}

.cb-btn-primary {
  flex: 1;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
}

.cb-btn-primary:hover {
  background: var(--accent-hover);
}

.cb-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .avatar-dialog {
    width: min(95vw, 440px);
    max-width: min(95vw, 440px);
    max-height: 92dvh;
  }

  .cb-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 196px minmax(0, 1fr);
    height: min(92dvh, 690px);
  }

  .cb-stage {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cb-panel {
    padding: 12px;
    gap: 8px;
  }

  .cb-identity-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

body[data-og-capture="1"] .reinove-topbar,
body[data-og-capture="1"] #reinove-info-card,
body[data-og-capture="1"] #expedicao-drawer,
body[data-og-capture="1"] .cam-controls,
body[data-og-capture="1"] .cam-live-btn,
body[data-og-capture="1"] #avatar-btn,
body[data-og-capture="1"] #online-pill,
body[data-og-capture="1"] #interact-prompt,
body[data-og-capture="1"] #walk-esc-hint,
body[data-og-capture="1"] .walk-esc-hint,
body[data-og-capture="1"] #avatar-dialog,
body[data-og-capture="1"] .avatar-dialog,
body[data-og-capture="1"] .walk-joystick,
body[data-og-capture="1"] .bottom-dock,
body[data-og-capture="1"] .hover-card,
body[data-og-capture="1"] .weave-toast {
  display: none !important;
}

/* ========================================================================
   RE[INOVE]® Institutional Topbar & Hub Navigation (Preto, Branco e Laranja)
   ======================================================================== */

.reinove-topbar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: max(14px, env(safe-area-inset-left, 14px));
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(720px, calc(100vw - 520px));
  pointer-events: none;
}

.reinove-brand-block {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-pill);
}

.reinove-wordmark {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}

.reinove-accent {
  color: var(--accent);
}

.reinove-tagline {
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 10px;
  white-space: nowrap;
}

.reinove-spaces-nav {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reinove-space-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  min-height: 30px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.reinove-space-btn:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.reinove-space-btn.is-focused {
  background: var(--ink);
  color: var(--white);
}

.reinove-space-btn-pets {
  color: var(--accent);
  font-weight: 700;
}

.reinove-space-btn-pets:hover {
  background: var(--accent);
  color: #ffffff;
}

.reinove-space-btn-pets.is-focused {
  background: var(--accent);
  color: #ffffff;
}

.reinove-assistant-trigger {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(255, 107, 26, 0.34), 0 2px 6px rgba(11, 12, 14, 0.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.reinove-assistant-trigger:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 107, 26, 0.42), 0 2px 8px rgba(11, 12, 14, 0.24);
}

.reinove-assistant-trigger:active {
  transform: translateY(0);
}

.reinove-trigger-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dock-pill-add {
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dock-pill-add:hover {
  background: var(--ink-strong);
}

/* ========================================================================
   Painel Lateral Interativo: Assistente RE[INOVE]® Expedição Delas
   ======================================================================== */

.expedicao-drawer {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  width: min(472px, calc(100vw - 28px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(11, 12, 14, 0.34), 0 4px 16px rgba(11, 12, 14, 0.14);
  overflow: hidden;
  user-select: text;
}

.expedicao-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  background: var(--ink);
  color: var(--white);
  border-bottom: 2px solid var(--accent);
}

.expedicao-header-copy {
  min-width: 0;
}

.expedicao-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.expedicao-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
}

.expedicao-subtitle {
  margin: 5px 0 0;
  font-size: 0.77rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.76);
}

.expedicao-close-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.expedicao-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.expedicao-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.expedicao-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 7px 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.expedicao-tab:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(11, 12, 14, 0.04);
}

.expedicao-tab.is-active {
  background: var(--ink);
  color: var(--white);
}

.expedicao-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.expedicao-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  overflow-y: auto;
  gap: 10px;
}

.expedicao-context-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 8px 11px;
  flex-shrink: 0;
}

.expedicao-context-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.expedicao-context-summary::-webkit-details-marker {
  display: none;
}

.expedicao-context-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.expedicao-context-grid {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.expedicao-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.expedicao-field-full {
  grid-column: 1 / -1;
}

.expedicao-field > span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.expedicao-field input,
.expedicao-field textarea,
.expedicao-composer textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  line-height: 1.38;
  padding: 7px 9px;
  outline: none;
  resize: none;
  transition: border-color 0.14s ease;
}

.expedicao-field input:focus,
.expedicao-field textarea:focus,
.expedicao-composer textarea:focus {
  border-color: var(--accent);
}

.expedicao-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.expedicao-starter-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 9px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.expedicao-starter-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.expedicao-thread {
  flex: 1;
  min-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 2px;
}

.expedicao-msg {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.expedicao-msg-user {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  align-self: flex-end;
  max-width: 92%;
}

.expedicao-msg-assistant {
  background: var(--surface-soft);
  color: var(--ink);
  align-self: stretch;
}

.expedicao-msg-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}

.expedicao-msg-user .expedicao-msg-meta {
  color: rgba(255, 255, 255, 0.68);
}

.expedicao-msg-text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.48;
  white-space: pre-line;
}

.expedicao-msg-summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.77rem;
  line-height: 1.42;
  color: var(--ink-muted);
}

.expedicao-msg-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expedicao-jump-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
}

.expedicao-jump-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.expedicao-followups {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expedicao-followup-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 9px;
  text-align: left;
  cursor: pointer;
}

.expedicao-followup-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.expedicao-composer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.expedicao-error {
  margin: 0;
  font-size: 0.77rem;
  color: var(--danger);
}

.expedicao-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.expedicao-model-note {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.expedicao-send-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 15px;
  cursor: pointer;
  transition: background-color 0.14s ease, opacity 0.14s ease;
}

.expedicao-send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.expedicao-send-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.expedicao-empty-state {
  padding: 22px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-soft);
}

.expedicao-empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.expedicao-empty-state p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--ink-muted);
}

.expedicao-audit-content,
.expedicao-plan-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expedicao-governance-banner {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
}

.expedicao-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

.expedicao-governance-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.expedicao-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.expedicao-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 11px 12px;
}

.expedicao-card-declared {
  background: var(--surface-soft);
}

.expedicao-card-verified {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.expedicao-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.expedicao-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.42;
  color: var(--ink);
}

.expedicao-list-empty {
  list-style: none;
  margin-left: -16px;
  color: var(--ink-muted);
  font-style: italic;
}

.expedicao-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expedicao-checklist li {
  padding-top: 7px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.4;
}

.expedicao-checklist li:first-child {
  padding-top: 0;
  border-top: none;
}

.expedicao-check-title {
  font-weight: 700;
  color: var(--ink);
}

.expedicao-check-reason {
  color: var(--ink-muted);
  font-size: 0.76rem;
  margin-top: 2px;
}

.expedicao-plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.expedicao-copy-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.expedicao-copy-btn:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.expedicao-phases {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expedicao-phase-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  padding: 12px;
}

.expedicao-phase-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.expedicao-phase-horizon {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.expedicao-phase-pillar {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.expedicao-phase-objective {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink);
}

.expedicao-phase-actions {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.79rem;
  line-height: 1.42;
  color: var(--ink);
}

.expedicao-phase-deliverable {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
  font-size: 0.77rem;
  color: var(--ink-muted);
}

.expedicao-phase-deliverable strong {
  color: var(--ink);
}

@media (max-width: 1240px) {
  .reinove-tagline {
    display: none;
  }

  .reinove-topbar {
    max-width: calc(100vw - 500px);
  }
}

@media (max-width: 1020px) {
  .reinove-topbar {
    max-width: calc(100vw - 28px);
    top: max(58px, calc(env(safe-area-inset-top, 14px) + 46px));
  }
}

@media (max-width: 860px) {
  .reinove-topbar {
    top: max(54px, calc(env(safe-area-inset-top, 10px) + 46px));
    left: max(10px, env(safe-area-inset-left, 10px));
    max-width: calc(100vw - 20px);
    gap: 6px;
  }

  .reinove-spaces-nav {
    overflow-x: auto;
    max-width: 100%;
  }

  .reinove-assistant-trigger {
    font-size: 0.76rem;
    padding: 6px 12px;
    min-height: 34px;
  }

  .expedicao-drawer {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: min(86dvh, 660px);
  }
}

/* ========================================================================
   Cartão Executivo Informativo RE[INOVE]® (Prédios, Mentores & Portal ao Vivo)
   ======================================================================== */

.reinove-info-card {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 16px));
  bottom: max(76px, calc(env(safe-area-inset-bottom, 20px) + 58px));
  width: min(416px, calc(100vw - 32px));
  max-height: min(80dvh, 640px);
  overflow-y: auto;
  z-index: 24;
  background: rgba(11, 13, 18, 0.96);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  padding: 15px 16px 16px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48), 0 4px 16px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  user-select: text;
}

.reinove-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.reinove-info-kicker {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.reinove-info-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.reinove-info-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.reinove-info-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.reinove-info-subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffb185;
  line-height: 1.35;
}

.reinove-info-desc {
  margin: 8px 0 0;
  font-size: 0.83rem;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.84);
}

.reinove-info-guidance {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 107, 26, 0.11);
  border: 1px solid rgba(255, 107, 26, 0.34);
  font-size: 0.79rem;
  line-height: 1.45;
  color: #ffe8db;
  white-space: pre-line;
}

.reinove-info-actions {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reinove-card-btn {
  appearance: none;
  text-decoration: none;
  width: 100%;
  min-height: 38px;
  border-radius: 11px;
  padding: 8px 13px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.reinove-card-btn:active {
  transform: scale(0.99);
}

.reinove-card-btn-primary {
  background: #ffffff;
  color: #0b0d12;
  border: 1px solid #ffffff;
}

.reinove-card-btn-primary:hover {
  background: #f2f4f7;
  transform: translateY(-1px);
}

.reinove-card-btn-secondary {
  background: #171b24;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.reinove-card-btn-secondary:hover {
  background: #202633;
  border-color: var(--accent);
}

.reinove-card-btn-live {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px rgba(255, 107, 26, 0.34);
}

.reinove-card-btn-live:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 107, 26, 0.44);
}

.reinove-card-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .reinove-info-card {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: max(72px, calc(env(safe-area-inset-bottom, 16px) + 54px));
    padding: 13px 14px 14px;
  }

  body[data-walk-mobile="1"] .reinove-info-card {
    bottom: auto;
    top: calc(max(10px, env(safe-area-inset-top, 10px)) + 148px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reinove-assistant-trigger,
  .expedicao-close-btn,
  .expedicao-tab,
  .expedicao-send-btn,
  .reinove-card-btn,
  .reinove-info-close {
    transition: none;
  }

  .live-dot-pulse {
    animation: none;
  }
}


