/* Prévia local do Elden: experiência espacial/orbital estilo Apple sobre base.css */

:root {
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --obs-canvas: #050706;
  --obs-surface: #121413;
  --obs-surface-2: #191c1b;
  --obs-ink: #f5f5f7;
  --obs-ink-2: #a0a4a2;
  --obs-ink-3: #868b89;
  --obs-line: rgb(255 255 255 / .10);
  --obs-spec: rgb(255 255 255 / .15);
}

@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring-apple: linear(
      0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%,
      0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%,
      0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%,
      1.001 85.6%, 1
    );
  }
}

/* ---------- Reforço sutil de leitura no Hero ---------- */
.hero::after {
  background:
    linear-gradient(180deg, rgb(13 19 17 / .62) 0%, rgb(13 19 17 / 0) 24%),
    linear-gradient(0deg, rgb(13 19 17 / .92) 0%, rgb(13 19 17 / .58) 44%, rgb(13 19 17 / .12) 72%);
}

@media (max-width: 699px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgb(13 19 17 / .62) 0%, rgb(13 19 17 / 0) 24%),
      linear-gradient(0deg, rgb(13 19 17 / .94) 0%, rgb(13 19 17 / .74) 54%, rgb(13 19 17 / .18) 82%);
  }
}

/* ---------- Slot e Chatbox no Hero (neutro obsidiana) ---------- */
.hero-chatbox-slot {
  width: min(100%, 580px);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.hero-chatbox {
  width: 100%;
  min-height: 92px;
  padding: 16px 18px 14px;
  border-radius: 20px;
  border: 1px solid var(--obs-spec);
  background: rgb(14 16 15 / .82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .10),
    0 28px 60px -24px rgb(0 0 0 / .80);
  color: var(--obs-ink);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 16px;
  touch-action: manipulation;
  transition:
    transform 160ms var(--ease-apple),
    border-color 200ms ease,
    background-color 200ms ease;
}

.hero-chatbox:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .hero-chatbox:hover {
    border-color: rgb(255 255 255 / .28);
    background: rgb(20 22 21 / .88);
  }
  .hero-chatbox:hover .hero-chatbox-send svg {
    transform: translateY(-1px);
  }
}

.hero-chatbox-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.hero-chatbox-caret {
  width: 1.5px;
  height: 1.15em;
  border-radius: 1px;
  background: rgb(245 245 247 / .85);
  flex: none;
}

.hero-chatbox-placeholder {
  font-size: 16px;
  line-height: 1.4;
  color: #d6d8d7;
  font-weight: 400;
}

.hero-chatbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-chatbox-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: #9ea3a0;
  font-variant-numeric: tabular-nums;
}

.hero-chatbox-meta svg {
  flex: none;
  opacity: .85;
}

.hero-chatbox-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--obs-ink);
  color: var(--obs-canvas);
  display: grid;
  place-items: center;
  flex: none;
}

.hero-chatbox-send svg {
  transition: transform 180ms var(--ease-apple);
}

.hero-subhint {
  font-size: 13px;
  color: var(--obs-ink-2);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-subhint a {
  color: var(--obs-ink);
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-color: rgb(255 255 255 / .36);
  transition: text-decoration-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-subhint a:hover {
    text-decoration-color: var(--obs-ink);
  }
}

@media (max-width: 699px) {
  .hero-chatbox {
    padding: 14px 16px 12px;
    min-height: 86px;
    gap: 14px;
  }
}

/* ---------- View Transitions internas (empty <-> searching <-> ready) ---------- */
html[data-pesquisa="open"][data-pesquisa-stage="empty"] #pesquisa-composer {
  view-transition-name: elden-composer;
}

html[data-pesquisa="open"][data-pesquisa-stage="empty"] #pesquisa-orbe {
  view-transition-name: none;
}

html[data-pesquisa="open"][data-pesquisa-stage="searching"] #pesquisa-composer,
html[data-pesquisa="open"][data-pesquisa-stage="ready"] #pesquisa-composer {
  view-transition-name: none;
}

html[data-pesquisa="open"][data-pesquisa-stage="searching"] #pesquisa-orbe,
html[data-pesquisa="open"][data-pesquisa-stage="ready"] #pesquisa-orbe {
  view-transition-name: elden-composer;
}

@keyframes elden-radius-to-orb {
  from { border-radius: 20px; }
  to { border-radius: 999px; }
}

::view-transition-group(elden-composer) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-timing-function: linear(
    0, 0.008, 0.032 2.8%, 0.125 6.4%, 0.56 19%,
    0.742 25.5%, 0.866 32%, 0.946 39%, 0.985 46%,
    1.006 54%, 1.012 63%, 1.004 76%, 1
  );
}

::view-transition-image-pair(elden-composer) {
  overflow: clip;
  border-radius: 20px;
}

html[data-pesquisa="open"][data-pesquisa-stage="searching"]::view-transition-image-pair(elden-composer),
html[data-pesquisa="open"][data-pesquisa-stage="ready"]::view-transition-image-pair(elden-composer) {
  border-radius: 999px;
  animation: elden-radius-to-orb 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-old(elden-composer),
::view-transition-new(elden-composer) {
  height: 100%;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*),
  ::view-transition-image-pair(*) {
    animation: none !important;
  }
}

/* ---------- Tela transformada (<dialog>) e camadas Apple Zoom ---------- */
dialog#tela-pesquisa {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  background: transparent;
  color: var(--obs-ink);
  --focus: var(--obs-ink);
  color-scheme: dark;
}

/* Nunca declarar display sem [open] em <dialog> */
dialog#tela-pesquisa[open] {
  display: block;
}

/* Contenção de scroll obrigatória sem mexer em overflow de html/body */
dialog#tela-pesquisa:modal {
  overscroll-behavior: contain;
}

dialog#tela-pesquisa::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: transparent;
}

dialog#tela-pesquisa ::selection {
  background: var(--accent);
  color: #fff;
}

.pesquisa-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
  opacity: 0;
  background: rgb(4 8 6 / .52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pesquisa-rim {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
  contain: layout style;
  display: none;
  opacity: 0;
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / .19);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .18),
    0 36px 96px -20px rgb(0 0 0 / .92),
    0 0 0 1px rgb(92 197 150 / .08);
}

.pesquisa-surface {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--obs-canvas);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.pesquisa-surface[data-animating="true"] {
  will-change: clip-path;
}

/* ---------- Topo da tela transformada ---------- */
.pesquisa-top {
  min-width: 0;
  border-bottom: 1px solid rgb(255 255 255 / .07);
  background: rgb(5 10 8 / .48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 20;
}

.pesquisa-top-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pesquisa-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--obs-ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 160ms ease, transform 150ms var(--ease-apple);
}

.pesquisa-back svg {
  transition: transform 180ms var(--ease-apple);
}

.pesquisa-back:active {
  transform: scale(0.97);
}

.hero-chatbox:focus-visible,
.pesquisa-back:focus-visible {
  outline: 2px solid var(--focus, var(--obs-ink));
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .pesquisa-back:hover {
    color: var(--obs-ink);
  }
  .pesquisa-back:hover svg {
    transform: translateX(-2px);
  }
}

.pesquisa-kbd {
  display: none;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / .12);
  color: var(--obs-ink-3);
  background: rgb(255 255 255 / .04);
}

@media (min-width: 760px) {
  .pesquisa-kbd {
    display: inline-block;
  }
}

.pesquisa-cta-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .12);
  color: var(--obs-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 150ms var(--ease-apple);
}

@media (min-width: 760px) {
  .pesquisa-cta-top {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13.5px;
  }
}

.pesquisa-cta-top:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .pesquisa-cta-top:hover {
    background: rgb(255 255 255 / .14);
    border-color: rgb(255 255 255 / .24);
  }
}

/* ---------- Fundo de fumaça verde volumétrica (WebGL / 2D fallback) ---------- */
.pesquisa-ambiente {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 100vw auto 100dvh;
}

.pesquisa-ambiente::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 75% at 50% 48%,
    transparent 32%,
    rgb(3 7 6 / .48) 100%
  );
}

.pesquisa-smoke {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Corpo da tela ---------- */
.pesquisa-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.pesquisa-scroll {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgb(255 255 255 / .18) transparent;
  scrollbar-width: thin;
  transition:
    transform 420ms var(--ease-apple),
    filter 420ms var(--ease-apple),
    opacity 300ms ease;
}

.pesquisa-body[data-detail="open"] .pesquisa-scroll,
.pesquisa-body[data-gate="open"] .pesquisa-scroll,
.pesquisa-body[data-conectar="open"] .pesquisa-scroll {
  transform: scale(0.92);
  filter: blur(8px);
  opacity: 0.22;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pesquisa-scroll {
    transition: opacity 150ms ease;
  }
  .pesquisa-body[data-detail="open"] .pesquisa-scroll,
  .pesquisa-body[data-gate="open"] .pesquisa-scroll,
  .pesquisa-body[data-conectar="open"] .pesquisa-scroll {
    transform: none;
    filter: none;
    opacity: 0.14;
  }
}

.pesquisa-stage {
  width: min(740px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  min-width: 0;
}

.pesquisa-body[data-state="empty"] .pesquisa-scroll,
.pesquisa-body[data-state="searching"] .pesquisa-scroll,
.pesquisa-body[data-state="ready"] .pesquisa-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.pesquisa-body[data-state="empty"] .pesquisa-stage {
  padding-block: clamp(24px, 5vh, 56px) clamp(32px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.pesquisa-body[data-state="searching"] .pesquisa-stage,
.pesquisa-body[data-state="ready"] .pesquisa-stage {
  padding-block: clamp(18px, 3.5vh, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.pesquisa-intro {
  min-width: 0;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.pesquisa-intro h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.07;
  text-wrap: balance;
  max-width: min(22ch, 100%);
  color: var(--obs-ink);
}

.pesquisa-intro p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--obs-ink-2);
  max-width: min(46ch, 100%);
  text-wrap: pretty;
}

.pesquisa-body[data-state="searching"] .pesquisa-intro,
.pesquisa-body[data-state="ready"] .pesquisa-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Composer (estado empty) ---------- */
.pesquisa-composer-host {
  min-width: 0;
  width: 100%;
}

.pesquisa-body[data-state="searching"] .pesquisa-composer-host,
.pesquisa-body[data-state="ready"] .pesquisa-composer-host {
  display: none;
}

.pesquisa-composer {
  width: 100%;
  min-width: 0;
  background: rgb(12 18 16 / .74);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid rgb(255 255 255 / .13);
  border-radius: 20px;
  padding: 16px 18px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .08),
    0 24px 56px -28px rgb(0 0 0 / .85);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pesquisa-composer:focus-within {
  border-color: rgb(255 255 255 / .34);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .10),
    0 0 0 3px rgb(255 255 255 / .06),
    0 24px 56px -28px rgb(0 0 0 / .85);
}

.pesquisa-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  max-height: 160px;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--obs-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  caret-color: var(--obs-ink);
  outline: none;
}

.pesquisa-composer textarea::placeholder {
  color: var(--obs-ink-3);
}

.pesquisa-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

/* Segmented control limpo (sem bordas em volta de cada item) */
.pesquisa-scopes {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px 4px;
  margin: -4px 0 -4px -4px;
}

.pesquisa-scopes::-webkit-scrollbar {
  display: none;
}

.scope-btn {
  flex: none;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--obs-ink-3);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-apple);
}

@media (max-width: 699px) {
  .scope-btn {
    min-height: 44px;
  }
}

.scope-btn:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .scope-btn:hover {
    color: var(--obs-ink);
  }
}

.scope-btn[aria-pressed="true"] {
  background: rgb(255 255 255 / .11);
  color: var(--obs-ink);
}

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

.pesquisa-enter-hint {
  display: none;
  font-size: 12px;
  color: var(--obs-ink-3);
  white-space: nowrap;
}

@media (min-width: 920px) {
  .pesquisa-enter-hint {
    display: inline;
  }
}

.pesquisa-submit {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  touch-action: manipulation;
  transition: background-color 160ms ease, transform 140ms var(--ease-apple);
}

@media (max-width: 699px) {
  .pesquisa-submit {
    width: 44px;
    height: 44px;
  }
}

.pesquisa-submit:disabled {
  background: rgb(255 255 255 / .08);
  color: rgb(255 255 255 / .36);
  cursor: default;
}

.pesquisa-submit:not(:disabled):active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .pesquisa-submit:not(:disabled):hover {
    background: var(--accent-hi);
  }
}

/* ---------- Sugestões estilo Apple Spotlight (lista hairline, sem cards de IA) ---------- */
.pesquisa-sugestoes-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.pesquisa-body[data-state="searching"] .pesquisa-sugestoes-wrap,
.pesquisa-body[data-state="ready"] .pesquisa-sugestoes-wrap {
  display: none;
}

.pesquisa-sugestoes-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--obs-ink-3);
  padding-inline: 4px;
}

.pesquisa-sugestoes {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid rgb(255 255 255 / .08);
}

.sugestao-btn {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 13px 6px;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: transparent;
  color: var(--obs-ink-2);
  text-align: left;
  font-size: 14.5px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-apple);
}

.sugestao-btn span {
  min-width: 0;
  overflow-wrap: break-word;
}

.sugestao-btn svg {
  flex: none;
  color: var(--obs-ink-3);
  transition: transform 180ms var(--ease-apple), color 150ms ease;
}

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

@media (hover: hover) and (pointer: fine) {
  .sugestao-btn:hover {
    background: rgb(255 255 255 / .04);
    color: var(--obs-ink);
  }
  .sugestao-btn:hover svg {
    transform: translateX(2px);
    color: var(--obs-ink);
  }
}

/* ---------- Constelação orbital (searching e ready) ---------- */
.pesquisa-orbita {
  display: none;
  min-width: 0;
}

.pesquisa-body[data-state="searching"] .pesquisa-orbita,
.pesquisa-body[data-state="ready"] .pesquisa-orbita {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.orbita-head {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  max-width: min(52ch, 100%);
}

.orbita-ramo {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--obs-ink-2);
}

.orbita-query {
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: var(--obs-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.orbita-arena {
  position: relative;
  width: min(392px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
  --orbit-r: 146px;
}

/* Aura ótica estilo eclipse solar irradiando de trás da esfera do Elden */
.orbe-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms var(--ease-apple);
}

.pesquisa-body[data-state="searching"] .orbe-aura,
.pesquisa-body[data-state="ready"] .orbe-aura {
  opacity: 1;
}

/* Caminhos radiais conectando cada esfera diretamente à esfera do Elden */
.orbita-conexoes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.conexao-grupo {
  opacity: 0;
  transition: opacity 220ms ease;
}

.conexao-linha {
  stroke: url(#elden-grad-fio);
  stroke-width: 0.34;
  stroke-linecap: round;
  fill: none;
  transition: stroke 220ms ease, stroke-width 220ms ease;
}

.pesquisa-body[data-state="ready"] .conexao-linha {
  stroke: rgb(92 197 150 / .34);
}

.pesquisa-body[data-state="ready"] .conexao-grupo[data-has-items="true"] .conexao-linha {
  stroke: rgb(92 197 150 / .50);
}

.pesquisa-body[data-state="ready"] .conexao-grupo[data-active="true"] .conexao-linha {
  stroke: rgb(140 229 188 / .76);
  stroke-width: 0.52;
}

.orbita-satelites {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.orbe-braco {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--ang, 0deg));
}

.orbe-satelite {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) translateY(calc(-1 * var(--orbit-r)));
}

/* Esferas descobertas (obsidiana escura com alto contraste sobre a fumaça) */
.orbe-bola {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid rgb(225 247 236 / .18);
  background: radial-gradient(
    circle at 34% 26%,
    #141c19 0%,
    #090e0c 56%,
    #040706 100%
  );
  color: var(--obs-ink);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  opacity: 0;
  cursor: default;
  pointer-events: none;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .18),
    inset 0 -8px 18px -10px rgb(0 0 0 / .90),
    0 16px 34px -14px rgb(0 0 0 / .96);
  transform: rotate(calc(-1 * var(--ang, 0deg)));
  scale: 0.9;
  transition:
    opacity 260ms var(--ease-apple),
    scale 280ms var(--spring-apple),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.orbe-bola[data-status="done"] {
  border-color: rgb(92 197 150 / .36);
}

.pesquisa-body[data-state="ready"] .orbe-bola {
  pointer-events: auto;
  cursor: pointer;
}

.pesquisa-body[data-state="ready"] .orbe-bola[data-has-items="true"] {
  border-color: rgb(92 197 150 / .56);
  background: radial-gradient(
    circle at 34% 26%,
    #16221d 0%,
    #090f0c 56%,
    #040705 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .22),
    inset 0 -8px 18px -10px rgb(0 0 0 / .92),
    0 0 18px -8px rgb(92 197 150 / .38),
    0 16px 36px -14px rgb(0 0 0 / .98);
}

.pesquisa-body[data-state="ready"][data-gated="true"] .orbe-bola {
  opacity: 1;
  border-color: rgb(225 247 236 / .20);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .16),
    inset 0 -8px 18px -10px rgb(0 0 0 / .90),
    0 16px 34px -14px rgb(0 0 0 / .96);
}

.pesquisa-body[data-state="ready"] .orbe-bola:active {
  scale: 0.94 !important;
}

@media (hover: hover) and (pointer: fine) {
  .pesquisa-body[data-state="ready"] .orbe-bola:hover {
    scale: 1.09 !important;
    border-color: rgb(140 229 188 / .72);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / .28),
      0 0 22px -6px rgb(92 197 150 / .52),
      0 18px 36px -14px rgb(0 0 0 / .95);
  }
}

.orbe-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--obs-ink);
}

.orbe-sub {
  font-size: 10.5px;
  line-height: 1.1;
  color: var(--obs-ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.orbe-bola[data-has-items="true"] .orbe-sub {
  color: var(--obs-ink);
}

/* Núcleo monolítico em obsidiana fosca (eclipse solar sobre a coroa WebGL) */
.pesquisa-orbe {
  position: relative;
  z-index: 4;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 26%,
    #141c19 0%,
    #090e0c 54%,
    #040706 100%
  );
  border: 1px solid rgb(225 247 236 / .16);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .18),
    inset 0 -10px 22px -12px rgb(0 0 0 / .85),
    0 20px 44px -18px rgb(0 0 0 / .92);
  transition: border-color 600ms ease, box-shadow 600ms var(--ease-apple);
}

.pesquisa-body[data-state="searching"] .pesquisa-orbe {
  border-color: rgb(214 247 232 / .30);
}

.pesquisa-body[data-state="ready"] .pesquisa-orbe {
  border-color: rgb(225 247 236 / .16);
}

.orbe-pulso-achado {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgb(214 247 232 / .42);
  opacity: 0;
  pointer-events: none;
}

.orbe-pulso-achado.is-echoing {
  animation: echoAchado 680ms var(--ease-apple) forwards;
}

.orbe-nucleo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.orbe-marca {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  padding-left: 0.30em;
  color: var(--obs-ink);
  text-shadow: none;
  transition: text-shadow 600ms ease;
}

.pesquisa-body[data-state="searching"] .orbe-marca {
  text-shadow: 0 0 12px rgb(214 247 232 / .20);
}

.pesquisa-body[data-state="ready"] .orbe-marca {
  text-shadow: none;
}

/* Contador central crescendo durante os ~7.6s */
.orbita-contador {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.orbita-contador-num {
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--obs-ink);
  font-variant-numeric: tabular-nums;
}

.orbita-contador-legenda {
  font-size: 13px;
  color: var(--obs-ink-2);
}

.orbita-foot {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}

.orbita-status {
  font-size: 13.5px;
  color: var(--obs-ink-2);
  min-height: 20px;
  transition: opacity 180ms ease;
}

/* Callout "Dê à sua IA essa ferramenta" + botão de conectar adaptado ao tema obsidiana/esmeralda */
.orbita-ia-cta {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  padding: 14px 20px 16px;
  border-radius: 22px;
  background: radial-gradient(
    circle at 50% 0%,
    rgb(25 46 37 / .72) 0%,
    rgb(9 15 12 / .86) 100%
  );
  border: 1px solid rgb(92 197 150 / .26);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .10),
    0 20px 44px -18px rgb(0 0 0 / .90);
}

.orbita-ia-cta[hidden] {
  display: none;
}

.orbita-ia-titulo {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--obs-ink);
}

.orbita-conectar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgb(140 229 188 / .38);
  background: linear-gradient(180deg, #237554 0%, #1a5b41 100%);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .22),
    0 12px 28px -10px rgb(24 94 66 / .85);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 140ms var(--ease-apple);
}

.orbita-conectar-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .orbita-conectar-btn:hover {
    background: linear-gradient(180deg, #298660 0%, #1f6a4c 100%);
    border-color: rgb(140 229 188 / .62);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / .28),
      0 0 22px -6px rgb(92 197 150 / .46),
      0 14px 32px -10px rgb(24 94 66 / .95);
    transform: translateY(-1px);
  }
}

.orbita-conectar-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: none;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .18);
}

.orbita-conectar-ais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(5 10 8 / .42);
  border: 1px solid rgb(255 255 255 / .14);
}

.orbita-conectar-ais img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.orbita-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.orbita-btn-sec {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .14);
  background: transparent;
  color: var(--obs-ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 150ms var(--ease-apple);
}

.orbita-btn-sec[hidden] {
  display: none;
}

.orbita-btn-sec:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .orbita-btn-sec:hover {
    color: var(--obs-ink);
    border-color: rgb(255 255 255 / .28);
    background: rgb(255 255 255 / .06);
  }
}

@media (max-width: 699px) {
  .orbita-arena {
    width: min(318px, 100%);
    --orbit-r: 108px;
  }
  .orbe-aura {
    width: 246px;
    height: 246px;
  }
  .pesquisa-orbe {
    width: 98px;
    height: 98px;
  }
  .orbe-marca {
    font-size: 10.5px;
  }
  .orbe-bola {
    width: 74px;
    height: 74px;
  }
  .orbe-label {
    font-size: 11.5px;
  }
  .orbe-sub {
    font-size: 10px;
  }
}

@keyframes echoAchado {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.44);
  }
}

/* ---------- Painel espacial da esfera clicada (#esfera-detalhe) ---------- */
.esfera-detalhe {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgb(5 7 6 / .36);
}

.esfera-detalhe[hidden] {
  display: none;
}

.esfera-card {
  width: min(640px, 100%);
  max-height: min(76dvh, 640px);
  min-width: 0;
  background: #111312;
  border: 1px solid rgb(255 255 255 / .13);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .12),
    0 36px 80px -24px rgb(0 0 0 / .92);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 280ms var(--ease-apple),
    transform 380ms var(--spring-apple),
    filter 280ms var(--ease-apple);
}

@starting-style {
  .esfera-detalhe:not([hidden]) .esfera-card {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .esfera-card {
    transition: opacity 150ms ease;
  }
  @starting-style {
    .esfera-detalhe:not([hidden]) .esfera-card {
      opacity: 0;
      transform: none;
      filter: none;
    }
  }
}

.detalhe-head {
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.detalhe-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.detalhe-title-wrap h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--obs-ink);
}

.detalhe-sub {
  font-size: 13px;
  color: var(--obs-ink-2);
}

.detalhe-fechar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .10);
  background: rgb(255 255 255 / .07);
  color: var(--obs-ink);
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, transform 140ms var(--ease-apple);
}

.detalhe-fechar:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .detalhe-fechar:hover {
    background: rgb(255 255 255 / .14);
  }
}

.detalhe-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  min-width: 0;
}

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

.detalhe-tab {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--obs-ink-3);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 160ms ease, border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .detalhe-tab:hover {
    color: var(--obs-ink);
  }
}

.detalhe-tab[aria-selected="true"] {
  color: var(--obs-ink);
  border-bottom-color: var(--obs-ink);
}

.detalhe-conteudo {
  padding: 20px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgb(255 255 255 / .18) transparent;
  scrollbar-width: thin;
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
  transition: opacity 150ms ease, filter 150ms ease;
}

.detalhe-conteudo.is-swapping {
  opacity: 0.45;
  filter: blur(2px);
}

.detalhe-item {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  min-width: 0;
}

.detalhe-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detalhe-item-titulo {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--obs-ink);
  overflow-wrap: break-word;
}

.detalhe-item-trecho {
  margin: 0;
  font-size: 16px;
  line-height: 1.56;
  color: #e4e6e5;
  max-width: min(62ch, 100%);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.detalhe-item-nota {
  font-size: 14px;
  line-height: 1.5;
  color: var(--obs-ink-2);
  max-width: min(62ch, 100%);
  overflow-wrap: break-word;
}

.detalhe-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 4px;
  font-size: 13px;
  color: var(--obs-ink-3);
  font-variant-numeric: tabular-nums;
}

.detalhe-item-acoes {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detalhe-fonte-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .12);
  background: transparent;
  color: var(--obs-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  touch-action: manipulation;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-apple);
}

.detalhe-fonte-link:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .detalhe-fonte-link:hover {
    color: var(--obs-ink);
    background: rgb(255 255 255 / .06);
    border-color: rgb(255 255 255 / .24);
  }
}

.detalhe-copiar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .14);
  background: transparent;
  color: var(--obs-ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-apple);
}

@media (max-width: 699px) {
  .detalhe-copiar,
  .detalhe-fonte-link {
    min-height: 44px;
  }
  .detalhe-head {
    padding: 18px 20px 10px;
  }
  .detalhe-tabs {
    padding: 0 20px;
  }
  .detalhe-conteudo {
    padding: 18px 20px 22px;
  }
}

.detalhe-copiar:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .detalhe-copiar:hover {
    background: rgb(255 255 255 / .08);
    border-color: rgb(255 255 255 / .26);
  }
}

.detalhe-copiar[data-copied="true"] {
  border-color: rgb(92 197 150 / .55);
  color: var(--ok);
}

.detalhe-copiar[data-copied="error"] {
  border-color: rgb(255 255 255 / .36);
  color: var(--obs-ink-2);
}

.detalhe-vazio {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detalhe-vazio h4 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--obs-ink);
}

.detalhe-vazio p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--obs-ink-2);
  max-width: min(56ch, 100%);
}

.detalhe-vazio-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.detalhe-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, transform 140ms var(--ease-apple);
}

.detalhe-link-cta:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .detalhe-link-cta:hover {
    background: var(--accent-hi);
  }
}

.detalhe-alt-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .14);
  background: transparent;
  color: var(--obs-ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-apple);
}

.detalhe-alt-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .detalhe-alt-btn:hover {
    background: rgb(255 255 255 / .08);
    border-color: rgb(255 255 255 / .28);
  }
}

/* ---------- Modal de login na 2a pesquisa (#pesquisa-login-gate) ---------- */
.gate-card {
  width: min(460px, 100%);
  max-width: min(460px, 100%);
  grid-template-rows: auto auto;
}

.gate-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--ok);
  margin-bottom: 4px;
}

.gate-body {
  padding: 4px 24px 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.gate-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--obs-ink-2);
  text-wrap: pretty;
}

.gate-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gate-btn-primary,
.gate-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-apple);
}

.gate-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 8px 24px -8px rgb(27 94 69 / .65);
}

.gate-btn-sec {
  background: transparent;
  color: var(--obs-ink-2);
  border: 1px solid rgb(255 255 255 / .14);
}

.gate-btn-primary:active,
.gate-btn-sec:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .gate-btn-primary:hover {
    background: var(--accent-hi);
  }
  .gate-btn-sec:hover {
    color: var(--obs-ink);
    background: rgb(255 255 255 / .08);
    border-color: rgb(255 255 255 / .28);
  }
}

@media (max-width: 699px) {
  .gate-body {
    padding: 4px 20px 20px;
  }
}

/* ---------- Modal "Conectar o Elden na sua IA" adaptado ao tema escuro da busca ---------- */
.conectar-card {
  width: min(610px, 100%);
  max-width: min(610px, 100%);
  max-height: min(86dvh, 720px);
  grid-template-rows: auto minmax(0, 1fr);
}

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

.conectar-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .16);
}

.conectar-body {
  padding: 4px 24px 22px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 0;
}

.conectar-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--obs-ink-2);
  text-wrap: pretty;
}

.conectar-claude {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: radial-gradient(
    circle at 20% 20%,
    rgb(31 64 50 / .55) 0%,
    rgb(12 20 16 / .92) 100%
  );
  border: 1px solid rgb(92 197 150 / .36);
  color: var(--obs-ink);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .12),
    0 14px 30px -16px rgb(0 0 0 / .90);
  transition: border-color 160ms ease, transform 160ms var(--ease-apple), box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .conectar-claude:hover {
    border-color: rgb(140 229 188 / .68);
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / .18),
      0 0 22px -8px rgb(92 197 150 / .45),
      0 16px 34px -14px rgb(0 0 0 / .95);
  }
}

.conectar-claude-l {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.conectar-ai-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgb(255 255 255 / .07);
  border: 1px solid rgb(255 255 255 / .14);
  display: grid;
  place-items: center;
  flex: none;
}

.conectar-ai-icon img,
.conectar-mini-head img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  display: block;
}

.conectar-claude-l b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--obs-ink);
}

.conectar-claude-l span span {
  display: block;
  font-size: 12.5px;
  color: var(--obs-ink-2);
  margin-top: 2px;
}

.conectar-badge {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgb(140 229 188 / .34);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.conectar-addr-block {
  display: grid;
  gap: 6px;
}

.conectar-addr-lbl {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--obs-ink-3);
}

.conectar-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 13px;
  background: rgb(6 10 8 / .85);
  border: 1px solid rgb(255 255 255 / .14);
}

.conectar-addr code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  color: var(--obs-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conectar-copy-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgb(140 229 188 / .30);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 140ms var(--ease-apple);
}

.conectar-copy-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .conectar-copy-btn:hover {
    background: var(--accent-hi);
  }
}

.conectar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .conectar-grid {
    grid-template-columns: 1fr;
  }
}

.conectar-mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / .035);
  border: 1px solid rgb(255 255 255 / .11);
}

.conectar-mini-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--obs-ink);
}

.conectar-mini-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--obs-ink-2);
}

.conectar-mini-card strong {
  color: var(--obs-ink);
  font-weight: 500;
}

.conectar-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .14);
  color: var(--obs-ink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .conectar-go:hover {
    border-color: rgb(92 197 150 / .55);
    background: rgb(92 197 150 / .14);
    color: #fff;
  }
}

.conectar-toast {
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ok);
}

.conectar-toast:empty {
  display: none;
}

.conectar-foot {
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / .10);
  font-size: 12.5px;
  color: var(--obs-ink-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.conectar-foot a {
  color: var(--ok);
  font-weight: 500;
  text-decoration: none;
}

.conectar-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 699px) {
  .conectar-body {
    padding: 4px 18px 18px;
  }
  .orbita-conectar-btn {
    font-size: 13px;
    padding: 0 12px 0 10px;
  }
}
