/* Live motion surfaces: approved spatial direction for login, AI discovery and listing. */
:root {
  --motion-x: 0;
  --motion-y: 0;
  --motion-gold: #d7aa35;
  --motion-gold-soft: #f5d77f;
  --motion-jade: #51bd98;
  --motion-ink: #181b21;
  --motion-muted: #7b8594;
  --motion-night: #171b22;
  --motion-night-soft: #222a35;
}

.motion-surfaces-ready [data-motion-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.988);
  transition:
    opacity 780ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion-surfaces-ready [data-motion-reveal].is-motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-motion-depth] {
  transform: translate3d(var(--motion-depth-x, 0), var(--motion-depth-y, 0), 0);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Public login and product story */
body.auth-landing-open {
  background: #e7edf6;
}

body.auth-landing-open .auth-gate {
  height: 100vh;
  background:
    radial-gradient(circle at 78% 14%, rgba(182, 201, 239, 0.66), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(218, 227, 243, 0.82), transparent 35%),
    linear-gradient(145deg, #f6f8fb 0%, #e9eef6 51%, #e2e8f2 100%);
}

.auth-landing::after {
  position: fixed;
  z-index: 60;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  content: "";
  pointer-events: none;
}

.auth-landing-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 36px));
  min-height: 58px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(247, 249, 253, 0.68);
  box-shadow: 0 18px 48px rgba(57, 68, 88, 0.1), inset 0 1px rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(145%);
  transform: translateX(-50%);
}

.auth-landing-header nav {
  gap: 28px;
}

.auth-landing-header nav a {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.auth-landing-hero {
  position: relative;
  width: min(1480px, calc(100% - 72px));
  min-height: 100vh;
  padding: 112px 0 58px;
}

.auth-landing-hero::after {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -12%;
  width: 62%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 202, 242, 0.38), transparent 69%);
  filter: blur(18px);
  content: "";
  pointer-events: none;
}

.auth-landing-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.auth-landing-kicker::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--motion-jade);
  box-shadow: 0 0 0 5px rgba(81, 189, 152, 0.1);
  content: "";
}

.auth-landing-hero-copy h1 {
  font-size: clamp(54px, 4.5vw, 76px);
  line-height: 0.99;
}

.auth-landing-hero-copy h1::first-line {
  letter-spacing: -0.07em;
}

.auth-landing-hero-actions > button,
.auth-landing-hero-actions > a,
.auth-showcase-copy > button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auth-landing-hero-actions > button:hover,
.auth-landing-hero-actions > a:hover,
.auth-showcase-copy > button:hover {
  transform: translateY(-2px);
}

.auth-landing-hero-side {
  min-height: 660px;
  perspective: 1300px;
}

.auth-workspace-visual {
  inset: 8px 0 8px -36px;
  border-radius: 36px;
  box-shadow: 0 38px 96px rgba(47, 61, 84, 0.2), inset 0 1px #fff;
}

.auth-workspace-orbit {
  animation: motion-orbit-breathe 8s ease-in-out infinite alternate;
}

.auth-workspace-sheen {
  position: absolute;
  z-index: 1;
  top: -30%;
  bottom: -30%;
  left: -35%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  animation: motion-scan 6.8s ease-in-out infinite;
  transform: rotate(14deg);
}

.auth-workspace-status i {
  animation: motion-status-pulse 2.8s ease-in-out infinite;
}

.auth-workspace-metric {
  animation: motion-card-float 5.6s ease-in-out infinite alternate;
}

.auth-workspace-metric-store {
  animation-delay: -2.4s;
}

.auth-card {
  border-radius: 28px;
  box-shadow: 0 34px 86px rgba(39, 51, 71, 0.24), inset 0 1px #fff;
}

.auth-motion-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #8792a1;
  font-size: 8px;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
}

.auth-motion-scroll b {
  font-weight: 750;
}

.auth-motion-scroll i {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(96, 111, 136, 0.24);
  border-radius: 999px;
}

.auth-motion-scroll i::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 99px;
  background: #8a96a7;
  animation: motion-scroll-dot 1.8s ease-in-out infinite;
  content: "";
  transform: translateX(-50%);
}

.auth-feature-section {
  position: relative;
  padding-block: 96px;
  background: rgba(246, 248, 252, 0.82);
}

.auth-feature-grid article {
  backdrop-filter: blur(18px) saturate(125%);
}

.auth-landing-showcase[data-motion-surface="discovery"],
.auth-landing-showcase[data-motion-surface="listing"] {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 120px max(54px, calc((100vw - 1400px) / 2));
}

.auth-landing-showcase[data-motion-surface="discovery"] {
  color: #f5f7fb;
  background:
    radial-gradient(circle at 18% 26%, rgba(91, 109, 156, 0.38), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(182, 137, 40, 0.2), transparent 31%),
    linear-gradient(145deg, #161a21, #222a35 54%, #171b22);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.auth-landing-showcase[data-motion-surface="discovery"]::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
  content: "";
  pointer-events: none;
}

.auth-landing-showcase[data-motion-surface="discovery"] > * {
  position: relative;
  z-index: 1;
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-copy h2,
.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-copy > ul strong {
  color: #f5f7fb;
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-copy > p,
.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-copy > ul small {
  color: #9eabbc;
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-copy > span {
  color: rgba(238, 242, 249, 0.72);
  background: rgba(255, 255, 255, 0.065);
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-copy > ul li {
  border-color: rgba(255, 255, 255, 0.09);
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-visual {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 38px 92px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(130%);
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-chart {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-chart > span {
  background: linear-gradient(180deg, #96b6ff, #5874c2 68%, #3a4b78);
  box-shadow: 0 12px 34px rgba(83, 112, 190, 0.28);
  animation: motion-bar-rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: bottom;
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-product {
  border-color: rgba(255, 255, 255, 0.14);
  color: #dfe7f1;
  background: rgba(35, 43, 56, 0.74);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-product b {
  color: #e5c769;
}

.auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-product span {
  color: #9da9b8;
}

.auth-landing-showcase[data-motion-surface="listing"] {
  background:
    radial-gradient(circle at 12% 88%, rgba(209, 220, 241, 0.84), transparent 35%),
    radial-gradient(circle at 88% 18%, rgba(183, 203, 240, 0.66), transparent 32%),
    linear-gradient(145deg, #f7f8fb, #e8edf5 56%, #f5f7fa);
}

.auth-landing-showcase[data-motion-surface="listing"] .auth-showcase-visual {
  border-color: rgba(255, 255, 255, 0.94);
  border-radius: 34px;
  background: rgba(249, 251, 255, 0.72);
  box-shadow: 0 38px 94px rgba(49, 63, 87, 0.18), inset 0 1px #fff;
  backdrop-filter: blur(26px) saturate(135%);
}

.auth-landing-showcase[data-motion-surface="listing"] .auth-listing-window::after {
  position: absolute;
  inset: auto 28% 18px 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d2a12c, #f4d77d);
  box-shadow: 0 0 18px rgba(210, 161, 44, 0.34);
  animation: motion-progress 3.4s ease-in-out infinite alternate;
  content: "";
}

/* Public extension release */
.auth-extension-release {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  border: 0;
  color: #eef3fa;
  background:
    radial-gradient(circle at 76% 10%, rgba(122, 151, 211, 0.24), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(200, 157, 48, 0.17), transparent 34%),
    linear-gradient(135deg, #171c24, #222b38 58%, #181d25);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.auth-extension-release::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 9%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(238, 210, 128, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(144, 167, 215, 0.045),
    0 0 0 92px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-extension-release::after {
  position: absolute;
  z-index: -1;
  top: -65%;
  bottom: -65%;
  left: -28%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-16deg);
  animation: motion-scan 8s ease-in-out infinite;
}

.auth-extension-release-heading > span {
  color: #e4bd52;
  letter-spacing: 0.12em;
}

.auth-extension-release-heading h2 {
  color: #f7f9fd;
  font-size: clamp(28px, 2.3vw, 38px);
  letter-spacing: -0.035em;
}

.auth-extension-release-heading h2 strong {
  color: #f0ce70;
}

.auth-extension-release-heading p {
  color: #aeb9c8;
}

.auth-extension-release li {
  color: #d9e1eb;
}

.auth-extension-release li::before {
  background: #e1b94c;
  box-shadow: 0 0 0 5px rgba(225, 185, 76, 0.08);
}

.auth-extension-release > a {
  position: relative;
  z-index: 1;
  min-width: 156px;
  min-height: 48px;
  border-color: rgba(241, 207, 112, 0.82);
  border-radius: 13px;
  color: #2c230e;
  background: linear-gradient(135deg, #f6dc87, #d7a932);
  box-shadow: 0 16px 36px rgba(185, 133, 23, 0.26), inset 0 1px rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.auth-extension-release > a:hover {
  box-shadow: 0 20px 42px rgba(185, 133, 23, 0.34), inset 0 1px rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
}

/* Active AI discovery workspace */
body[data-active-view="ai-selection"] .workspace {
  background:
    radial-gradient(circle at 12% 88%, rgba(209, 220, 241, 0.88), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(183, 203, 240, 0.66), transparent 32%),
    linear-gradient(145deg, #f7f8fb, #e8edf5 56%, #f5f7fa);
  transition: background 320ms ease, color 320ms ease;
}

body[data-active-view="ai-selection"] .workspace-taskbar,
body[data-active-view="ai-selection"] .workspace > .topbar {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(248, 250, 254, 0.82);
  box-shadow: 0 18px 46px rgba(53, 67, 91, 0.1), inset 0 1px #fff;
  backdrop-filter: blur(24px) saturate(128%);
}

body[data-active-view="ai-selection"] .workspace-heading h1,
body[data-active-view="ai-selection"] .workspace-heading .eyebrow {
  color: #20252d;
}

body[data-active-view="ai-selection"] .workspace-subtitle {
  color: #74808f;
}

body[data-active-view="ai-selection"] .workspace-heading-mark {
  border-color: rgba(198, 159, 69, 0.26);
  color: #9a6a09;
  background: rgba(255, 249, 229, 0.88);
}

body[data-active-view="ai-selection"] .workspace-task-tab-shell:not(.active) {
  color: #677486;
}

body[data-active-view="ai-selection"] .workspace-task-tab-shell.active {
  border-color: rgba(199, 208, 221, 0.88);
  color: #242a33;
  background: rgba(255, 255, 255, 0.94);
}

.ai-selection-panel.motion-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  color: #252b34;
  background: rgba(248, 250, 254, 0.66);
  box-shadow: 0 24px 66px rgba(53, 67, 91, 0.12), inset 0 1px #fff;
  backdrop-filter: blur(22px) saturate(125%);
}

.ai-selection-panel.motion-surface::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(205, 215, 228, 0.42);
  border-radius: inherit;
  background:
    linear-gradient(rgba(120, 141, 171, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 141, 171, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(248, 251, 255, 0.74), rgba(230, 236, 246, 0.42));
  background-size: 58px 58px, 58px 58px, auto;
  content: "";
  mask-image: linear-gradient(#000 0 92%, transparent);
}

.ai-selection-command-hero {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: 32px;
  align-items: stretch;
  margin: 0 22px 16px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 12%, rgba(184, 204, 244, 0.5), transparent 32%),
    linear-gradient(145deg, rgba(250, 252, 255, 0.9), rgba(228, 235, 247, 0.78));
  box-shadow: 0 26px 70px rgba(53, 67, 92, 0.13), inset 0 1px #fff;
}

.ai-selection-header {
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 10px 0;
}

.ai-selection-header .eyebrow,
.listing-motion-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 30px;
  border: 1px solid rgba(113, 127, 151, 0.13);
  border-radius: 999px;
  padding: 0 12px;
  color: #7b8594;
  background: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.ai-selection-header .eyebrow i,
.listing-motion-copy .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--motion-jade);
  box-shadow: 0 0 0 5px rgba(81, 189, 152, 0.1);
}

body .ai-selection-panel .ai-selection-header h2 {
  max-width: 620px;
  margin: 24px 0 0;
  color: #191c22;
  font-size: clamp(38px, 3.5vw, 54px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.03;
  text-wrap: balance;
}

body .ai-selection-panel .ai-selection-lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: #74808f;
  font-size: 14px;
  line-height: 1.85;
}

.ai-selection-header-actions {
  justify-content: flex-start;
}

.ai-selection-header-actions .badge {
  border-color: rgba(200, 159, 61, 0.22);
  color: #946509;
  background: rgba(255, 248, 222, 0.88);
}

.ai-selection-header-actions .primary-button {
  min-height: 46px;
  border-color: #d2a32f;
  border-radius: 13px;
  color: #30250c;
  background: linear-gradient(135deg, #f6db82, #d4a42c);
  box-shadow: 0 16px 34px rgba(184, 132, 22, 0.24), inset 0 1px rgba(255, 255, 255, 0.72);
}

.ai-selection-live-signal {
  position: relative;
  display: grid;
  overflow: hidden;
  align-content: space-between;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  padding: 28px;
  background: rgba(249, 251, 255, 0.82);
  box-shadow: 0 24px 58px rgba(54, 68, 92, 0.14), inset 0 1px #fff;
  backdrop-filter: blur(28px) saturate(130%);
}

.ai-selection-live-signal::after {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(122, 151, 211, 0.12), transparent);
  animation: motion-scan 5.5s ease-in-out infinite;
  content: "";
  transform: rotate(16deg);
}

.ai-selection-live-signal header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
}

.ai-selection-live-signal header > span {
  color: #8994a2;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ai-selection-live-signal header > strong {
  grid-column: 1;
  color: #252b34;
  font-size: 18px;
}

.ai-selection-live-signal header > b {
  display: inline-flex;
  grid-row: 1 / 3;
  grid-column: 2;
  align-items: center;
  gap: 7px;
  color: #398e70;
  font-size: 9px;
}

.ai-selection-live-signal header > b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55c59b;
  box-shadow: 0 0 18px #55c59b;
  animation: motion-status-pulse 2.6s ease-in-out infinite;
}

.ai-selection-signal-chart {
  display: flex;
  height: 188px;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(198, 208, 222, 0.72);
}

.ai-selection-signal-chart > i {
  position: relative;
  width: 14%;
  height: var(--signal-height);
  min-height: 20px;
  overflow: hidden;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #98b7ff, #5b76c5 68%, #3a4b78);
  box-shadow: 0 12px 34px rgba(83, 112, 190, 0.28);
  animation: motion-bar-rise 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--signal-delay);
  transform-origin: bottom;
}

.ai-selection-signal-chart > i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.34), transparent 62%);
  animation: motion-bar-sheen 3.8s ease-in-out infinite;
  content: "";
  transform: translateX(-120%);
}

.ai-selection-live-signal footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ai-selection-live-signal footer span {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(201, 211, 224, 0.72);
  border-radius: 14px;
  padding: 11px;
  color: #7c8796;
  background: rgba(255, 255, 255, 0.74);
  font-size: 9px;
}

.ai-selection-live-signal footer b {
  color: #2c3440;
  font-size: 18px;
}

.ai-selection-panel .ai-selection-toolbar,
.ai-selection-panel .ai-selection-kpis,
.ai-selection-panel .ai-selection-results,
.ai-selection-panel .ai-selection-log {
  margin-inline: 22px;
}

.ai-selection-panel .ai-selection-view-switch {
  margin: 0 22px 18px;
}

.ai-selection-panel .ai-selection-toolbar {
  border-color: rgba(201, 211, 224, 0.82);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(61, 76, 102, 0.09), inset 0 1px #fff;
  backdrop-filter: blur(20px);
}

.ai-selection-panel .ai-selection-toolbar label {
  color: #687586;
}

.ai-selection-panel .ai-selection-toolbar input,
.ai-selection-panel .ai-selection-toolbar select,
.ai-selection-panel .ai-selection-toolbar .suite-select-trigger {
  border-color: rgba(195, 205, 219, 0.88);
  border-radius: 11px;
  color: #26303c;
  background: rgba(255, 255, 255, 0.92);
}

.ai-selection-panel .ai-selection-toolbar input::placeholder {
  color: #929dab;
}

.ai-selection-panel .ai-selection-toolbar input:focus,
.ai-selection-panel .ai-selection-toolbar select:focus {
  border-color: rgba(232, 200, 102, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 200, 102, 0.1);
}

.ai-selection-panel .ai-selection-kpis {
  gap: 10px;
  margin-top: 12px;
}

.ai-selection-panel .ai-selection-kpis > div {
  min-height: 90px;
  border-color: rgba(201, 211, 224, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 36px rgba(61, 76, 102, 0.08), inset 0 1px #fff;
}

.ai-selection-panel .ai-selection-kpis span {
  color: #7f8b9a;
}

.ai-selection-panel .ai-selection-kpis strong {
  color: #28313d;
}

.ai-selection-panel .ai-selection-results {
  margin-top: 16px;
}

.ai-selection-panel .ai-selection-card {
  overflow: hidden;
  border-color: rgba(201, 211, 224, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 56px rgba(57, 72, 98, 0.1), inset 0 1px #fff;
  backdrop-filter: blur(18px);
  animation: motion-result-enter 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ai-selection-panel .ai-selection-card-image,
.ai-selection-panel .ai-selection-card-image img {
  border-radius: 14px;
}

.ai-selection-panel .ai-selection-card-image {
  background: linear-gradient(145deg, rgba(210, 222, 244, 0.82), rgba(247, 249, 253, 0.92));
}

.ai-selection-panel .ai-selection-card-head h3,
.ai-selection-panel .ai-selection-metrics strong {
  color: #28313d;
}

.ai-selection-panel .ai-selection-card-head p,
.ai-selection-panel .ai-selection-card-reason,
.ai-selection-panel .ai-selection-card-footer small,
.ai-selection-panel .ai-selection-metrics span,
.ai-selection-panel .ai-selection-card-concept {
  color: #74808f;
}

.ai-selection-panel .ai-selection-score {
  color: #a5720c;
}

.ai-selection-panel .ai-selection-score span {
  color: #7f8b9a;
}

.ai-selection-panel .ai-selection-metrics span,
.ai-selection-panel .ai-selection-card-concept {
  border-color: rgba(201, 211, 224, 0.72);
  background: rgba(244, 247, 251, 0.9);
}

.ai-selection-panel .ai-selection-log {
  border-color: rgba(201, 211, 224, 0.74);
  color: #74808f;
  background: rgba(237, 242, 249, 0.82);
}

/* Active listing workspace */
body[data-active-view="listing"] .workspace {
  background:
    radial-gradient(circle at 12% 88%, rgba(209, 220, 241, 0.88), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(183, 203, 240, 0.66), transparent 32%),
    linear-gradient(145deg, #f7f8fb, #e8edf5 56%, #f5f7fa);
  transition: background 320ms ease;
}

.listing-records-panel.motion-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(248, 250, 254, 0.6);
  box-shadow: 0 24px 66px rgba(53, 67, 91, 0.12), inset 0 1px #fff;
  backdrop-filter: blur(22px) saturate(125%);
}

.listing-records-panel.motion-surface::before {
  position: absolute;
  z-index: -1;
  inset: -18% -8% auto 42%;
  height: 560px;
  background: url("/assets/hero-orbit-v1.png") center / cover no-repeat;
  filter: blur(48px) saturate(0.66);
  opacity: 0.12;
  content: "";
  pointer-events: none;
}

.listing-records-panel > .panel-header {
  margin-bottom: 18px;
}

.listing-records-panel > .panel-header h2 {
  color: #20252d;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.listing-motion-hero {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(350px, 0.78fr) minmax(560px, 1.22fr);
  gap: 38px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  padding: 34px;
  background:
    radial-gradient(circle at 84% 12%, rgba(184, 204, 244, 0.5), transparent 32%),
    linear-gradient(145deg, rgba(250, 252, 255, 0.88), rgba(228, 235, 247, 0.74));
  box-shadow: 0 26px 70px rgba(53, 67, 92, 0.14), inset 0 1px #fff;
  perspective: 1200px;
}

.listing-motion-copy {
  display: grid;
  align-content: center;
}

.listing-motion-copy .eyebrow {
  border-color: rgba(113, 127, 151, 0.13);
  color: #7b8594;
  background: rgba(255, 255, 255, 0.58);
}

.listing-motion-copy h3 {
  max-width: 590px;
  margin: 24px 0 0;
  color: #191c22;
  font-size: clamp(38px, 3.8vw, 60px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.listing-motion-copy > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #74808f;
  font-size: 13px;
  line-height: 1.8;
}

.listing-motion-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.listing-motion-copy > div span {
  border: 1px solid rgba(117, 132, 157, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  color: #667382;
  background: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 780;
}

.listing-motion-pipeline {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  padding: 26px;
  background: rgba(249, 251, 255, 0.76);
  box-shadow: 0 30px 76px rgba(51, 65, 90, 0.17), inset 0 1px #fff;
  backdrop-filter: blur(26px) saturate(135%);
}

.listing-motion-pipeline::before {
  position: absolute;
  inset: -25%;
  background: url("/assets/hero-orbit-v1.png") center / cover no-repeat;
  filter: blur(42px) saturate(0.7);
  opacity: 0.14;
  content: "";
}

.listing-motion-pipeline > * {
  position: relative;
}

.listing-motion-pipeline > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
}

.listing-motion-pipeline > header span {
  color: #8994a2;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.listing-motion-pipeline > header strong {
  grid-column: 1;
  color: #252b34;
  font-size: 19px;
}

.listing-motion-pipeline > header b {
  display: inline-flex;
  grid-row: 1 / 3;
  grid-column: 2;
  align-items: center;
  align-self: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  color: #408e72;
  background: rgba(224, 246, 238, 0.9);
  font-size: 9px;
}

.listing-motion-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  margin: 26px 0 22px;
  border-radius: 999px;
  background: #e1e6ef;
}

.listing-motion-progress i {
  position: absolute;
  inset: 0 28% 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #d2a12c, #f4d77d);
  box-shadow: 0 0 18px rgba(210, 161, 44, 0.34);
  animation: motion-progress 3.4s ease-in-out infinite alternate;
}

.listing-motion-pipeline > section {
  display: grid;
  gap: 10px;
}

.listing-motion-pipeline > section > article {
  display: grid;
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(113, 128, 152, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86);
}

.listing-motion-pipeline > section > article > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #4e9c7e;
  background: rgba(225, 246, 239, 0.92);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.listing-motion-pipeline > section span {
  display: grid;
  gap: 3px;
}

.listing-motion-pipeline > section strong {
  color: #303640;
  font-size: 11px;
}

.listing-motion-pipeline > section small {
  color: #8792a0;
  font-size: 8px;
}

.listing-motion-pipeline > section > article > b {
  color: #4c9a7c;
  font-size: 9px;
}

.listing-records-panel .listing-record-metrics {
  gap: 10px;
}

.listing-records-panel .listing-record-metrics > div {
  border: 1px solid rgba(126, 144, 172, 0.14);
  border-top: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 34px rgba(55, 69, 94, 0.08), inset 0 1px #fff;
  backdrop-filter: blur(16px);
}

.listing-records-panel .listing-record-metrics > div::before {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d2a12c, #f4d77d);
  content: "";
}

.listing-records-panel .listing-record-metrics > div:nth-child(3)::before {
  background: linear-gradient(90deg, #3ca27d, #78d5b2);
}

.listing-records-panel .listing-record-metrics > div:nth-child(4)::before {
  background: linear-gradient(90deg, #d56058, #f4a49e);
}

.listing-records-panel .listing-record-toolbar {
  border-color: rgba(126, 144, 172, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px #fff;
  backdrop-filter: blur(16px);
}

.listing-records-panel .listing-record-toolbar input,
.listing-records-panel .listing-record-toolbar select,
.listing-records-panel .listing-record-toolbar .suite-select-trigger {
  border-color: rgba(119, 136, 162, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.listing-records-panel .listing-record-table-wrap {
  border-color: rgba(126, 144, 172, 0.14);
  border-radius: 20px;
  padding: 14px;
  background: rgba(232, 238, 248, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
}

.listing-records-panel .listing-history-card {
  border-color: rgba(118, 136, 164, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(59, 73, 98, 0.09), inset 0 1px #fff;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-records-panel .listing-history-card:hover {
  box-shadow: 0 22px 48px rgba(53, 68, 94, 0.14), inset 0 1px #fff;
  transform: translateY(-3px);
}

@keyframes motion-orbit-breathe {
  from { transform: scale(1.02) translate3d(-6px, 2px, 0); }
  to { transform: scale(1.075) translate3d(10px, -6px, 0); }
}

@keyframes motion-card-float {
  from { margin-top: -6px; }
  to { margin-top: 7px; }
}

@keyframes motion-status-pulse {
  50% { box-shadow: 0 0 0 9px rgba(81, 189, 152, 0.04), 0 0 16px rgba(81, 189, 152, 0.35); }
}

@keyframes motion-scroll-dot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes motion-scan {
  0%, 14% { left: -36%; }
  72%, 100% { left: 128%; }
}

@keyframes motion-bar-rise {
  from { opacity: 0.24; transform: scaleY(0.12); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes motion-bar-sheen {
  0%, 28% { transform: translateX(-120%); }
  74%, 100% { transform: translateX(140%); }
}

@keyframes motion-progress {
  from { right: 32%; }
  to { right: 12%; }
}

@keyframes motion-result-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1240px) {
  .auth-landing-hero { width: min(1160px, calc(100% - 48px)); }
  .ai-selection-command-hero,
  .listing-motion-hero { grid-template-columns: 1fr; }
  .ai-selection-header { min-height: 300px; }
  .listing-motion-copy { min-height: 310px; text-align: center; }
  .listing-motion-copy .eyebrow { margin-inline: auto; }
  .listing-motion-copy > p { margin-inline: auto; }
  .listing-motion-copy > div { justify-content: center; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-shell > .workspace {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }
  body.auth-landing-open .auth-gate { height: auto; min-height: 100vh; }
  .auth-landing-header { top: 12px; }
  .auth-landing-hero { padding-top: 104px; }
  .auth-motion-scroll { display: none; }
  .auth-landing-showcase[data-motion-surface="discovery"],
  .auth-landing-showcase[data-motion-surface="listing"] {
    min-height: auto;
    padding: 90px 34px;
  }
  .ai-selection-command-hero { padding: 30px; }
  .ai-selection-header { min-height: 270px; text-align: center; }
  .ai-selection-header .eyebrow { margin-inline: auto; }
  .ai-selection-lead { margin-inline: auto; }
  .ai-selection-header-actions { justify-content: center; }
  .ai-selection-panel .ai-selection-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-selection-panel .ai-selection-wide-field { grid-column: span 2; }
  .ai-selection-panel .ai-selection-results { grid-template-columns: 1fr; }
  .listing-motion-hero { padding: 26px; }
}

@media (max-width: 680px) {
  body:is([data-active-view="ai-selection"], [data-active-view="listing"]) .top-actions {
    width: max-content;
    grid-template-columns: repeat(3, 46px);
    justify-content: start;
  }
  body:is([data-active-view="ai-selection"], [data-active-view="listing"]) .topbar-ai-chat-button,
  body:is([data-active-view="ai-selection"], [data-active-view="listing"]) .topbar-store-pill,
  body:is([data-active-view="ai-selection"], [data-active-view="listing"]) .top-actions > #refreshBtn {
    width: 46px;
    min-width: 46px;
    overflow: hidden;
  }
  body:is([data-active-view="ai-selection"], [data-active-view="listing"]) .topbar-store-pill > span {
    display: none;
  }
  .auth-landing-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 8px 10px;
  }
  .auth-landing-hero {
    width: calc(100% - 24px);
    padding-top: 96px;
  }
  .auth-landing-hero-copy h1 { font-size: clamp(40px, 12vw, 52px); }
  .auth-landing-hero-side { min-height: 660px; }
  .auth-workspace-visual { inset: 6px 0; border-radius: 26px; }
  .auth-card { width: calc(100% - 24px); }
  .auth-landing-showcase[data-motion-surface="discovery"],
  .auth-landing-showcase[data-motion-surface="listing"] { padding: 72px 18px; }
  .auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-visual,
  .auth-landing-showcase[data-motion-surface="listing"] .auth-showcase-visual { min-height: 470px; }

  .ai-selection-panel.motion-surface,
  .listing-records-panel.motion-surface { border-radius: 20px; }
  .ai-selection-command-hero { gap: 20px; margin: 0 12px 14px; padding: 22px 16px; }
  .ai-selection-header { min-height: 280px; }
  .ai-selection-header h2 { font-size: clamp(38px, 12vw, 50px); }
  .ai-selection-live-signal { min-height: 330px; border-radius: 22px; padding: 20px; }
  .ai-selection-signal-chart { height: 168px; }
  .ai-selection-live-signal footer span:nth-child(3) { display: none; }
  .ai-selection-live-signal footer { grid-template-columns: repeat(2, 1fr); }
  .ai-selection-panel .ai-selection-toolbar,
  .ai-selection-panel .ai-selection-kpis,
  .ai-selection-panel .ai-selection-results,
  .ai-selection-panel .ai-selection-log,
  .ai-selection-panel .ai-selection-view-switch { margin-inline: 12px; }
  .ai-selection-panel .ai-selection-toolbar,
  .ai-selection-panel .ai-selection-kpis { grid-template-columns: 1fr; }
  .ai-selection-panel .ai-selection-wide-field { grid-column: auto; }
  .ai-selection-panel .ai-selection-card { grid-template-columns: 78px minmax(0, 1fr); padding: 11px; }
  .ai-selection-panel .ai-selection-card-image,
  .ai-selection-panel .ai-selection-card-image img { width: 78px; height: 78px; }

  .listing-records-panel.motion-surface { padding: 14px; }
  .listing-motion-hero { min-height: auto; gap: 20px; padding: 20px; border-radius: 20px; }
  .listing-motion-copy { min-height: 300px; }
  .listing-motion-copy h3 { font-size: clamp(38px, 11.5vw, 50px); }
  .listing-motion-pipeline { padding: 18px; border-radius: 20px; }
  .listing-motion-pipeline > header { grid-template-columns: 1fr; }
  .listing-motion-pipeline > header b { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .listing-motion-pipeline > section > article { grid-template-columns: 34px minmax(0, 1fr); }
  .listing-motion-pipeline > section > article > b { display: none; }
  .listing-records-panel .listing-record-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-records-panel .listing-record-toolbar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-surfaces-ready [data-motion-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-motion-depth] { transform: none !important; transition: none; }
  .auth-workspace-orbit,
  .auth-workspace-sheen,
  .auth-workspace-metric,
  .auth-motion-scroll i::after,
  .ai-selection-live-signal::after,
  .ai-selection-live-signal header > b i,
  .ai-selection-signal-chart > i,
  .ai-selection-signal-chart > i::after,
  .listing-motion-progress i,
  .auth-landing-showcase[data-motion-surface="discovery"] .auth-showcase-chart > span,
  .auth-landing-showcase[data-motion-surface="listing"] .auth-listing-window::after,
  .ai-selection-panel .ai-selection-card {
    animation: none !important;
  }
}
