/* ==========================================================================
   Yuanyu AI — Porcelain & Ink Design System (瓷白墨韵极简风 v2.0)
   Brand Mark: 款 3 · 现代建筑「元」 | Auth Redesign | Restrained Luxury Motion
   Palette: Deep Ink Teal (#0F2933) · Jade Emerald (#0F766E) · Champagne Gold (#DBB78B)
   ========================================================================== */

:root {
  --yy-ink: #0f2933;
  --yy-ink-hover: #173b49;
  --yy-ink-soft: #1b3d4b;
  --yy-jade: #0f766e;
  --yy-jade-bright: #2dd4bf;
  --yy-jade-soft: #ecfdf5;
  --yy-jade-border: #a7f3d0;
  --yy-gold: #c9a270;
  --yy-gold-light: #dbb78b;
  --yy-paper: #f6f8f9;
  --yy-surface: #ffffff;
  --yy-surface-subtle: #f1f5f7;
  --yy-line: #e2e8ee;
  --yy-line-strong: #cfd8e1;
  --yy-text: #0e222b;
  --yy-text-muted: #586c78;
  --yy-shadow-xs: 0 1px 2px rgba(15, 41, 51, 0.04);
  --yy-shadow-sm: 0 1px 2px rgba(15, 41, 51, 0.04), 0 6px 20px -12px rgba(15, 41, 51, 0.12);
  --yy-shadow-md: 0 2px 6px rgba(15, 41, 51, 0.05), 0 18px 40px -22px rgba(15, 41, 51, 0.2);

  --radius: 0.625rem;
  --background: var(--yy-paper);
  --foreground: var(--yy-text);
  --card: var(--yy-surface);
  --card-foreground: var(--yy-text);
  --popover: var(--yy-surface);
  --popover-foreground: var(--yy-text);
  --primary: var(--yy-ink);
  --primary-foreground: #ffffff;
  --secondary: #edf2f5;
  --secondary-foreground: var(--yy-ink);
  --muted: #eef3f6;
  --muted-foreground: var(--yy-text-muted);
  --accent: #e9f0f4;
  --accent-foreground: var(--yy-ink);
  --success: #0f766e;
  --success-foreground: #ffffff;
  --info: #0e7490;
  --info-foreground: #ffffff;
  --border: var(--yy-line);
  --input: var(--yy-line-strong);
  --ring: var(--yy-jade);
  --sidebar: #f1f5f7;
  --sidebar-foreground: #142c36;
  --sidebar-primary: var(--yy-ink);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e3ecf0;
  --sidebar-accent-foreground: var(--yy-ink);
  --sidebar-border: var(--yy-line);
  --sidebar-ring: var(--yy-jade);
}

.dark {
  --yy-ink: #e8f3f1;
  --yy-ink-hover: #ffffff;
  --yy-jade: #2dd4bf;
  --yy-jade-soft: rgba(45, 212, 191, 0.12);
  --yy-jade-border: rgba(45, 212, 191, 0.28);
  --yy-paper: #0a1014;
  --yy-surface: #11191f;
  --yy-surface-subtle: #152028;
  --yy-line: rgba(203, 224, 235, 0.1);
  --yy-line-strong: rgba(203, 224, 235, 0.18);
  --yy-text: #edf4f7;
  --yy-text-muted: #92a8b5;
  --yy-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --yy-shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.55);
  --yy-shadow-md: 0 20px 46px -18px rgba(0, 0, 0, 0.72);

  --background: var(--yy-paper);
  --foreground: var(--yy-text);
  --card: var(--yy-surface);
  --card-foreground: var(--yy-text);
  --popover: #141e25;
  --popover-foreground: var(--yy-text);
  --primary: #e8f3f1;
  --primary-foreground: #09181e;
  --secondary: #18252e;
  --secondary-foreground: var(--yy-text);
  --muted: #152129;
  --muted-foreground: var(--yy-text-muted);
  --accent: #1c2c36;
  --accent-foreground: #ffffff;
  --success: #2dd4bf;
  --success-foreground: #071b18;
  --border: var(--yy-line);
  --input: var(--yy-line-strong);
  --ring: var(--yy-jade);
  --sidebar: #070c0f;
  --sidebar-foreground: #d8e6ed;
  --sidebar-primary: #2dd4bf;
  --sidebar-primary-foreground: #061b18;
  --sidebar-accent: #14222b;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: var(--yy-line);
}

html, body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

table, td, th, .tabular-nums, .yy-price-cell, .yy-price-saving, [class*="price"], [class*="quota"] {
  font-variant-numeric: tabular-nums;
}

/* Brand mark crispness */
.yy-brand-mark {
  border-radius: 0.65rem !important;
  box-shadow: 0 2px 8px -3px rgba(15, 41, 51, 0.35), 0 0 0 1px rgba(219, 183, 139, 0.25);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.yy-brand:hover .yy-brand-mark,
.yy-brand-link:hover .yy-brand-mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px -6px rgba(15, 118, 110, 0.42), 0 0 0 1px rgba(219, 183, 139, 0.48);
}

/* ==========================================================================
   0. Signature Keyframes (Restrained Luxury Motion)
   ========================================================================== */
@keyframes yyUnblurIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes yyAuroraDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
  50% { transform: translate3d(-24px, 16px, 0) scale(1.07); opacity: 1; }
}

@keyframes yyAuroraDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(26px, -14px, 0) scale(1.08); opacity: 0.96; }
}

@keyframes yyFloatTop {
  0%, 100% { transform: translateY(-1.18rem) rotateX(48deg) rotateZ(-34deg); }
  50% { transform: translateY(-1.58rem) rotateX(48deg) rotateZ(-34deg); }
}

@keyframes yyFloatMid {
  0%, 100% { transform: translateY(0.02rem) rotateX(48deg) rotateZ(-34deg); }
  50% { transform: translateY(-0.24rem) rotateX(48deg) rotateZ(-34deg); }
}

@keyframes yyFloatBase {
  0%, 100% { transform: translateY(1.12rem) rotateX(48deg) rotateZ(-34deg); }
  50% { transform: translateY(0.94rem) rotateX(48deg) rotateZ(-34deg); }
}

@keyframes yyBeamSlide {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 0.9; }
  82% { opacity: 0.9; }
  100% { transform: translateX(260%); opacity: 0; }
}

@keyframes yyLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  50% { transform: scale(1.12); opacity: 0.85; box-shadow: 0 0 0 6px rgba(45, 212, 191, 0); }
}

@keyframes yyTickerReveal {
  0% { opacity: 0; transform: translateY(5px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ==========================================================================
   1. Scroll-Responsive Morphing Porcelain Glass Header
   ========================================================================== */
.yy-public-header {
  --background: rgba(255, 255, 255, 0.84) !important;
  --foreground: #0f2933 !important;
  --muted-foreground: #4c6270 !important;
  --accent: rgba(15, 41, 51, 0.06) !important;
  --border: rgba(226, 232, 238, 0.9) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(16px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(165%) !important;
  border-bottom: 1px solid rgba(226, 232, 238, 0.9) !important;
  box-shadow: 0 1px 0 rgba(15, 41, 51, 0.03), 0 8px 24px -20px rgba(15, 41, 51, 0.22) !important;
  color: #0f2933 !important;
  transition: background-color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.32s ease,
              padding 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.32s ease !important;
}

.yy-public-header > div {
  transition: max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.32s ease,
              border-color 0.32s ease,
              box-shadow 0.36s ease,
              padding 0.32s ease !important;
  border: 1px solid transparent;
}

.yy-public-header nav.yy-header-nav {
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Morph into floating frosted-glass capsule on scroll (desktop >= 960px) */
@media (min-width: 960px) {
  .yy-public-header.yy-header-scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    padding: 10px 20px 0 !important;
    pointer-events: none;
  }
  .yy-public-header.yy-header-scrolled > div {
    pointer-events: auto;
    max-width: 1180px !important;
    padding: 0 1.45rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(22px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(185%) !important;
    border: 1px solid rgba(207, 216, 225, 0.82) !important;
    box-shadow: 0 12px 34px -14px rgba(15, 41, 51, 0.22),
                0 2px 6px rgba(15, 41, 51, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  }
  .yy-public-header.yy-header-scrolled nav.yy-header-nav {
    height: 3.9rem !important;
  }
  .dark .yy-public-header.yy-header-scrolled > div {
    background: rgba(14, 23, 29, 0.86) !important;
    border-color: rgba(203, 224, 235, 0.16) !important;
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.65),
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }
}

.dark .yy-public-header {
  --background: rgba(10, 16, 20, 0.84) !important;
  --foreground: #edf4f7 !important;
  --muted-foreground: #96adb9 !important;
  --accent: rgba(255, 255, 255, 0.07) !important;
  --border: rgba(203, 224, 235, 0.1) !important;
  background: rgba(10, 16, 20, 0.84) !important;
  border-bottom-color: rgba(203, 224, 235, 0.1) !important;
  color: #edf4f7 !important;
}

.yy-public-header .yy-brand-type,
.yy-public-header .yy-brand-type strong,
.yy-public-header .yy-brand-type span {
  color: var(--foreground) !important;
}
.yy-public-header .yy-brand-type > span {
  color: var(--muted-foreground) !important;
  opacity: 0.86 !important;
  letter-spacing: 0.14em;
}

.yy-public-header .yy-nav-link {
  color: var(--muted-foreground) !important;
  font-weight: 500 !important;
  border-radius: 0.5rem !important;
  transition: color 0.16s ease, background-color 0.16s ease !important;
}
.yy-public-header .yy-nav-link:hover,
.yy-public-header .yy-nav-link[aria-current="page"],
.yy-public-header .yy-nav-link.active {
  color: var(--foreground) !important;
  background: var(--accent) !important;
}
.yy-public-header .yy-nav-link[aria-current="page"]:after {
  background: var(--yy-jade) !important;
  border-radius: 999px !important;
  height: 2px !important;
}

.yy-public-header a[href*="/sign-in"],
.yy-public-header button[data-slot="button"].bg-primary,
.yy-public-header a[data-slot="button"] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #163b48 0%, #0f2933 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0f2933 !important;
  border-radius: 0.55rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(15, 41, 51, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease !important;
}
.yy-public-header a[href*="/sign-in"]:hover,
.yy-public-header a[data-slot="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(15, 41, 51, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.dark .yy-public-header a[href*="/sign-in"],
.dark .yy-public-header a[data-slot="button"] {
  background: linear-gradient(180deg, #f3faf9 0%, #dceee9 100%) !important;
  color: #09181e !important;
  border-color: #dceee9 !important;
}

.yy-public-header button:not([data-slot="button"]) {
  color: var(--muted-foreground) !important;
}
.yy-public-header button:not([data-slot="button"]):hover {
  color: var(--foreground) !important;
  background: var(--accent) !important;
}
.yy-public-header .yy-menu-toggle {
  color: var(--foreground) !important;
}

/* Console workspace topbar */
.console-workspace > header {
  --background: rgba(255, 255, 255, 0.88) !important;
  --foreground: #0f2933 !important;
  --muted-foreground: #586c78 !important;
  --accent: #edf2f5 !important;
  --border: #e2e8ee !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e2e8ee !important;
  color: #0f2933 !important;
}
.dark .console-workspace > header {
  --background: rgba(10, 16, 20, 0.88) !important;
  --foreground: #edf4f7 !important;
  --muted-foreground: #92a8b5 !important;
  --accent: #18252e !important;
  --border: rgba(203, 224, 235, 0.1) !important;
  background: rgba(10, 16, 20, 0.88) !important;
  border-bottom-color: rgba(203, 224, 235, 0.1) !important;
  color: #edf4f7 !important;
}

/* ==========================================================================
   2. Homepage Hero — Architectural Grid + Drifting Aurora + Specular CTAs
   ========================================================================== */
.catalog-shell main,
.catalog-shell main:has(>.yy-hero .catalog-primary-button) {
  --home-paper: var(--yy-paper) !important;
  --home-card: var(--yy-surface) !important;
  --home-ink: var(--yy-text) !important;
  --home-muted: var(--yy-text-muted) !important;
  --home-rule: var(--yy-line) !important;
  --home-tint: #edf4f4 !important;
  --home-blue: #0f766e !important;
  --home-teal: #0f2933 !important;
  --home-subtle-teal: #ecfdf5 !important;
  --home-wash: #edf4f3 !important;
  --catalog-ink: var(--yy-text) !important;
  --catalog-surface: var(--yy-surface) !important;
  --catalog-secondary: var(--yy-text-muted) !important;
  --catalog-border: var(--yy-line) !important;
  background: var(--yy-paper) !important;
  color: var(--yy-text) !important;
}

.dark .catalog-shell main,
.dark .catalog-shell main:has(>.yy-hero .catalog-primary-button) {
  --home-paper: var(--yy-paper) !important;
  --home-card: var(--yy-surface) !important;
  --home-ink: var(--yy-text) !important;
  --home-muted: var(--yy-text-muted) !important;
  --home-rule: var(--yy-line) !important;
  --home-tint: #13282c !important;
  --home-blue: #2dd4bf !important;
  --home-teal: #99f6e4 !important;
  --home-subtle-teal: rgba(45, 212, 191, 0.12) !important;
  --home-wash: #0e1c22 !important;
}

.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(15, 41, 51, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(15, 41, 51, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7fafb 55%, #f4f7f8 100%) !important;
  background-size: 56px 56px, 56px 56px, 100% 100% !important;
  border-bottom: 1px solid var(--yy-line) !important;
}

/* Soft breathing jade & champagne ambient aurora orbs behind Hero */
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero::before,
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  will-change: transform, opacity;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero::before {
  width: 680px;
  height: 440px;
  top: -120px;
  right: -40px;
  background: radial-gradient(closest-side, rgba(15, 118, 110, 0.11), rgba(45, 212, 191, 0.04) 52%, transparent 74%);
  animation: yyAuroraDriftA 18s ease-in-out infinite;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero::after {
  width: 560px;
  height: 380px;
  top: -80px;
  left: -80px;
  background: radial-gradient(closest-side, rgba(201, 162, 112, 0.11), rgba(219, 183, 139, 0.03) 54%, transparent 74%);
  animation: yyAuroraDriftB 21s ease-in-out infinite;
}

.dark .catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero {
  background:
    linear-gradient(90deg, rgba(203, 224, 235, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(203, 224, 235, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #0d161b 0%, #0a1014 100%) !important;
  background-size: 56px 56px, 56px 56px, 100% 100% !important;
}
.dark .catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero::before {
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.13), transparent 72%);
}
.dark .catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero::after {
  background: radial-gradient(closest-side, rgba(219, 183, 139, 0.1), transparent 72%);
}

/* Staggered unblur entrance for Hero copy & stage */
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-copy .yy-eyebrow {
  color: var(--yy-jade) !important;
  font-weight: 600 !important;
  animation: yyUnblurIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero h1 {
  letter-spacing: -0.038em !important;
  color: var(--yy-text) !important;
  animation: yyUnblurIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-description {
  animation: yyUnblurIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-copy > div:last-child {
  animation: yyUnblurIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.21s both;
}

/* Specular Sheen Primary Buttons */
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .catalog-primary-button,
.catalog-primary-button,
.yy-gpt-launch a,
.yy-auth-form button[type="submit"] {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #163b48 0%, #0f2933 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0f2933 !important;
  border-radius: 0.625rem !important;
  box-shadow: 0 2px 8px rgba(15, 41, 51, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.2s ease !important;
}
.catalog-primary-button::after,
.yy-gpt-launch a::after,
.yy-auth-form button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 48%;
  background: linear-gradient(108deg, transparent 0%, rgba(243, 223, 194, 0.28) 48%, rgba(255, 255, 255, 0.22) 52%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.catalog-primary-button:hover::after,
.yy-gpt-launch a:hover::after,
.yy-auth-form button[type="submit"]:hover::after {
  transform: translateX(310%) skewX(-18deg);
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .catalog-primary-button:hover,
.catalog-primary-button:hover,
.yy-gpt-launch a:hover,
.yy-auth-form button[type="submit"]:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px -12px rgba(15, 41, 51, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.dark .catalog-primary-button,
.dark .yy-gpt-launch a,
.dark .yy-auth-form button[type="submit"] {
  background: linear-gradient(180deg, #f2faf8 0%, #d8ece7 100%) !important;
  color: #08181e !important;
  border-color: #d8ece7 !important;
}

.catalog-shell main:has(>.yy-hero .catalog-primary-button) .catalog-secondary-button,
.catalog-secondary-button {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px);
  color: var(--yy-text) !important;
  border: 1px solid var(--yy-line-strong) !important;
  border-radius: 0.625rem !important;
  box-shadow: var(--yy-shadow-xs) !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .catalog-secondary-button:hover,
.catalog-secondary-button:hover {
  background: var(--yy-surface) !important;
  border-color: var(--yy-ink) !important;
  transform: translateY(-1px);
  box-shadow: var(--yy-shadow-sm) !important;
}
.dark .catalog-secondary-button {
  background: rgba(17, 25, 31, 0.85) !important;
}

/* ==========================================================================
   3. Flagship Interactive Hero Art Stage (Canvas Horizon + 3D Emblem + Live Ticker)
   ========================================================================== */
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-art {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    radial-gradient(460px 320px at var(--mx, 66%) var(--my, 28%), rgba(219, 183, 139, 0.18), transparent 62%),
    radial-gradient(440px 320px at 26% 82%, rgba(15, 118, 110, 0.34), transparent 64%),
    linear-gradient(152deg, #0b1e26 0%, #12313d 54%, #08171d 100%) !important;
  border: 1px solid rgba(219, 183, 139, 0.28) !important;
  border-radius: 1.35rem !important;
  box-shadow: 0 28px 64px -28px rgba(8, 26, 33, 0.62),
              0 0 0 1px rgba(45, 212, 191, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  animation: yyUnblurIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  transition: border-color 0.28s ease, box-shadow 0.28s ease !important;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-art:hover {
  border-color: rgba(219, 183, 139, 0.44) !important;
  box-shadow: 0 32px 72px -28px rgba(8, 26, 33, 0.7),
              0 0 0 1px rgba(45, 212, 191, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* Delicate architectural grid + traveling top champagne-jade light beam */
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-art::before {
  background-image:
    radial-gradient(circle at 52% 44%, rgba(45, 212, 191, 0.13), transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px) !important;
  background-size: 100% 100%, 28px 28px, 28px 28px !important;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-art::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(219, 183, 139, 0.85), rgba(94, 234, 212, 0.85), transparent);
  animation: yyBeamSlide 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 3;
}

.yy-hero-canvas,
.yy-auth-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-hero-art > :not(.yy-hero-canvas) {
  position: relative;
  z-index: 2;
}

/* Isometric 3-layer levitating stack (Obsidian Jade + Frosted Champagne Crystal + 款 3 Mark) */
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-orbit-one {
  background: linear-gradient(140deg, #133c48 0%, #0f766e 62%, #5eb3a8 100%) !important;
  border: 1.5px solid rgba(219, 183, 139, 0.5) !important;
  box-shadow: 0 3px #0b2630, 0 6px #071b22, -8px 18px 26px rgba(3, 12, 16, 0.62) !important;
  animation: yyFloatBase 6.4s ease-in-out infinite;
  will-change: transform;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-orbit-two {
  background: linear-gradient(148deg, rgba(243, 223, 194, 0.34) 0%, rgba(15, 118, 110, 0.44) 58%, rgba(94, 234, 212, 0.34) 100%) !important;
  border: 1.5px solid rgba(219, 183, 139, 0.62) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 3px rgba(15, 58, 66, 0.72), 0 6px rgba(9, 32, 40, 0.8), 0 14px 24px rgba(4, 15, 20, 0.52) !important;
  animation: yyFloatMid 6.4s ease-in-out -1.1s infinite;
  will-change: transform;
}
.catalog-shell main:has(>.yy-hero .catalog-primary-button) .yy-art-symbol img {
  border: 1.5px solid rgba(243, 223, 194, 0.82) !important;
  box-shadow: 0 2px #9c7d56, 0 5px #143642, 0 14px 30px rgba(4, 15, 20, 0.62), 0 0 26px -4px rgba(219, 183, 139, 0.35) !important;
  animation: yyFloatTop 6.4s ease-in-out -2.2s infinite;
  will-change: transform;
}

/* Live Gateway Telemetry Mini-Film Bar inside .yy-hero-art */
.yy-hero-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.52rem 0.78rem;
  border-radius: 0.65rem;
  background: rgba(7, 21, 27, 0.62);
  border: 1px solid rgba(219, 183, 139, 0.22);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  color: #dcebe9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.yy-hero-live-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}
.yy-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2dd4bf;
  animation: yyLivePulse 2.4s ease-in-out infinite;
}
.yy-live-frame {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: yyTickerReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.yy-live-method {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: #f3dfc2;
  font-weight: 600;
}
.yy-live-detail {
  color: #b7d2d0;
}
.yy-live-badge {
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.14rem 0.46rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.28);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. GPT Launch Banner & Cursor-Spotlight Porcelain Cards
   ========================================================================== */
.yy-gpt-launch-card {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid var(--yy-line) !important;
  border-inline-start: 1px solid var(--yy-line) !important;
  border-radius: 0.95rem !important;
  background:
    radial-gradient(380px 180px at var(--mx, 92%) var(--my, 50%), rgba(15, 118, 110, 0.085), transparent 68%),
    var(--yy-surface) !important;
  color: var(--yy-text) !important;
  box-shadow: var(--yy-shadow-sm) !important;
  padding: 1.25rem 1.5rem !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}
.yy-gpt-launch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.55), rgba(201, 162, 112, 0.65), transparent);
  animation: yyBeamSlide 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.yy-gpt-launch-card:hover {
  border-color: rgba(15, 118, 110, 0.34) !important;
  box-shadow: var(--yy-shadow-md) !important;
  transform: translateY(-1.5px);
}
.yy-gpt-launch strong {
  color: var(--yy-jade) !important;
}
.dark .yy-gpt-launch-card {
  background:
    radial-gradient(380px 180px at var(--mx, 92%) var(--my, 50%), rgba(45, 212, 191, 0.12), transparent 68%),
    var(--yy-surface) !important;
  border-color: var(--yy-line) !important;
}

.catalog-model-card,
.catalog-surface,
.catalog-shell main:has(>.yy-hero .catalog-primary-button) article {
  position: relative;
  background:
    radial-gradient(340px 220px at var(--mx, 50%) var(--my, 0%), rgba(15, 118, 110, 0.055), transparent 68%),
    var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 0.95rem !important;
  box-shadow: var(--yy-shadow-sm) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.dark .catalog-model-card,
.dark .catalog-surface,
.dark .catalog-shell main:has(>.yy-hero .catalog-primary-button) article {
  background:
    radial-gradient(340px 220px at var(--mx, 50%) var(--my, 0%), rgba(45, 212, 191, 0.09), transparent 68%),
    var(--yy-surface) !important;
}
.catalog-model-card:hover,
.catalog-shell main:has(>.yy-hero .catalog-primary-button) article:hover {
  border-color: rgba(15, 118, 110, 0.38) !important;
  box-shadow: var(--yy-shadow-md) !important;
  transform: translateY(-2.5px);
}
.catalog-price-tier {
  border-radius: 0.75rem !important;
  border-color: var(--yy-line) !important;
}

/* Scroll-triggered unblur reveal classes (safe fallback guaranteed by JS) */
.yy-reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}
.yy-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   5. API Model Marketplace Pricing Table (.yy-price-compare)
   ========================================================================== */
.yy-market-filter {
  background: var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 0.95rem !important;
  box-shadow: var(--yy-shadow-xs) !important;
  padding: 1rem 1.15rem !important;
}
.yy-vendor-chip {
  border: 1px solid var(--yy-line) !important;
  border-radius: 999px !important;
  background: var(--yy-surface) !important;
  color: var(--yy-text-muted) !important;
  transition: all 0.16s ease !important;
}
.yy-vendor-chip:hover {
  border-color: var(--yy-line-strong) !important;
  color: var(--yy-text) !important;
}
.yy-vendor-chip[aria-pressed="true"],
.yy-vendor-chip.active,
.yy-vendor-chip[data-active="true"] {
  background: var(--yy-ink) !important;
  color: #ffffff !important;
  border-color: var(--yy-ink) !important;
}
.dark .yy-vendor-chip[aria-pressed="true"],
.dark .yy-vendor-chip.active,
.dark .yy-vendor-chip[data-active="true"] {
  background: #e8f3f1 !important;
  color: #08181e !important;
  border-color: #e8f3f1 !important;
}
.yy-price-compare {
  background: var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 0.95rem !important;
  box-shadow: var(--yy-shadow-sm) !important;
  overflow: hidden !important;
}
.yy-price-compare thead th {
  background: var(--yy-surface-subtle) !important;
  color: var(--yy-text-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-bottom: 1px solid var(--yy-line) !important;
}
.yy-price-compare tbody tr {
  transition: background-color 0.12s ease !important;
}
.yy-price-compare tbody tr:hover {
  background: #f4f8fa !important;
}
.dark .yy-price-compare tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}
.yy-price-saving {
  color: var(--yy-jade) !important;
}

/* ==========================================================================
   6. About Page Editorial Card Polish
   ========================================================================== */
.catalog-shell main .prose,
main article.prose,
main [class*="prose"] {
  max-width: 52rem !important;
  margin: 2rem auto 3rem !important;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 3.5vw, 3rem) !important;
  background: var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 1rem !important;
  box-shadow: var(--yy-shadow-sm) !important;
  line-height: 1.8 !important;
}
.catalog-shell main .prose h1,
.catalog-shell main .prose h2,
main [class*="prose"] h2 {
  color: var(--yy-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.85rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid var(--yy-line) !important;
}
.catalog-shell main .prose ul,
main [class*="prose"] ul {
  padding-left: 1.25rem !important;
  margin: 0.75rem 0 1.25rem !important;
}
.catalog-shell main .prose li,
main [class*="prose"] li {
  margin: 0.45rem 0 !important;
}
.catalog-shell main .prose li::marker,
main [class*="prose"] li::marker {
  color: var(--yy-jade) !important;
}
.catalog-shell main .prose a,
main [class*="prose"] a {
  color: var(--yy-jade) !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ==========================================================================
   7. Redesigned Auth Pages (.yy-auth / .yy-auth-story / .yy-auth-form)
      Obsidian Ink Architectural Stage + Unified Floating Porcelain Card
   ========================================================================== */
@media (min-width: 1024px) {
  .yy-auth {
    grid-template-columns: minmax(430px, 46%) 1fr !important;
    min-height: 100svh !important;
  }
}

.yy-auth-story {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    radial-gradient(520px 380px at var(--mx, 22%) var(--my, 18%), rgba(219, 183, 139, 0.2), transparent 64%),
    radial-gradient(520px 420px at 86% 86%, rgba(45, 212, 191, 0.2), transparent 64%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(155deg, #0b1f27 0%, #12313d 52%, #08181f 100%) !important;
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px, 100% 100% !important;
  border-right: 1px solid rgba(219, 183, 139, 0.16);
  padding: clamp(2.5rem, 4vw, 3.75rem) !important;
}
.yy-auth-story > :not(.yy-auth-canvas) {
  position: relative;
  z-index: 2;
}
.yy-auth-story .yy-brand-type strong {
  color: #ffffff !important;
}
.yy-auth-story .yy-brand-type > span {
  color: #a9c3c5 !important;
  opacity: 0.9 !important;
}
.yy-auth-story h2 {
  font-weight: 650 !important;
  letter-spacing: -0.028em !important;
  line-height: 1.32 !important;
  color: #f8fbfb !important;
  text-wrap: balance;
  animation: yyUnblurIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.yy-auth-story p {
  color: #a9c2c6 !important;
  line-height: 1.8 !important;
  animation: yyUnblurIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.13s both;
}

/* Frosted Dark-Glass Trust Panel injected inside .yy-auth-story */
.yy-auth-trust-panel {
  margin-top: 2rem;
  max-width: 25.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(219, 183, 139, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: yyUnblurIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.yy-auth-trust-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  color: #b7d2d4;
}
.yy-auth-trust-head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #e6f4f2;
}
.yy-auth-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.yy-auth-metric-val {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.yy-auth-metric-val.is-jade {
  color: #5eead4;
}
.yy-auth-metric-label {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  color: #9bb7bc;
}
.yy-auth-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.yy-auth-trust-chips span {
  font-size: 0.69rem;
  color: #d6e7e6;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right Porcelain Form Stage */
.yy-auth-form {
  position: relative !important;
  background:
    radial-gradient(540px 340px at 84% 12%, rgba(15, 118, 110, 0.085), transparent 66%),
    radial-gradient(460px 300px at 14% 88%, rgba(201, 162, 112, 0.075), transparent 64%),
    linear-gradient(rgba(15, 41, 51, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 41, 51, 0.024) 1px, transparent 1px),
    var(--yy-paper) !important;
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px, 100% 100% !important;
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem !important;
}
.dark .yy-auth-form {
  background:
    radial-gradient(540px 340px at 84% 12%, rgba(45, 212, 191, 0.09), transparent 66%),
    radial-gradient(460px 300px at 14% 88%, rgba(219, 183, 139, 0.07), transparent 64%),
    var(--yy-paper) !important;
}

/* Unified Floating White Porcelain Card wrapping Title + Subtitle + Form */
.yy-auth-form > div {
  width: 100% !important;
  max-width: 27.5rem !important;
  background: var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 1.25rem !important;
  padding: clamp(1.75rem, 3.2vw, 2.4rem) clamp(1.5rem, 3vw, 2.3rem) 1.85rem !important;
  box-shadow: 0 2px 6px rgba(15, 41, 51, 0.04),
              0 24px 56px -26px rgba(15, 41, 51, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  animation: yyUnblurIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.dark .yy-auth-form > div {
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.72),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.yy-auth-form h1,
.yy-auth-form h2 {
  letter-spacing: -0.025em !important;
  color: var(--yy-text) !important;
}
.yy-auth-form a {
  color: var(--yy-jade);
  transition: color 0.15s ease;
}
.yy-auth-form a:hover {
  color: var(--yy-ink);
}

.yy-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  min-height: 2.75rem !important;
  border-radius: 0.6rem !important;
  border-color: var(--yy-line-strong) !important;
  background-color: #fbfcfd !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}
.dark .yy-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  background-color: #0d151b !important;
}
.yy-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus {
  background-color: var(--yy-surface) !important;
  border-color: var(--yy-jade) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14) !important;
}

.yy-auth-card-foot {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yy-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--yy-text-muted);
}
.yy-auth-card-foot a {
  color: var(--yy-text) !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.yy-auth-card-foot a:hover {
  color: var(--yy-jade) !important;
  transform: translateX(-2px);
}

@media (max-width: 1023px) {
  .yy-auth-mobile-brand {
    top: 1.25rem !important;
    left: 1.25rem !important;
    z-index: 10;
  }
  .yy-auth-form {
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* Crisp Inputs & Focus Rings globally */
input[data-slot="input"],
textarea[data-slot="textarea"],
button[data-slot="select-trigger"] {
  border-color: var(--yy-line-strong) !important;
  border-radius: 0.55rem !important;
  background-color: var(--yy-surface) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
input[data-slot="input"]:focus,
input[data-slot="input"]:focus-visible,
textarea[data-slot="textarea"]:focus-visible {
  border-color: var(--yy-jade) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14) !important;
  outline: none !important;
}

/* ==========================================================================
   8. Console Workspace: Harmonized Obsidian-Ink Sidebar, Porcelain Canvas & Tables
   ========================================================================== */
body:not([data-theme-preset]) .console-workspace {
  --yy-work-canvas: #f6f8f9 !important;
  --foreground: #0e222b !important;
  --card-foreground: #0e222b !important;
  --muted: #edf2f5 !important;
  --muted-foreground: #586c78 !important;
  --border: #e2e8ee !important;
  --input: #cfd8e1 !important;
  --accent: #e9f0f4 !important;
  --accent-foreground: #0f2933 !important;
  --primary: #0f2933 !important;
  --primary-foreground: #ffffff !important;
  --ring: #0f766e !important;
}
.dark body:not([data-theme-preset]) .console-workspace {
  --yy-work-canvas: #0a1014 !important;
  --background: #11191f !important;
  --foreground: #edf4f7 !important;
  --card: #11191f !important;
  --card-foreground: #edf4f7 !important;
  --muted: #152129 !important;
  --muted-foreground: #92a8b5 !important;
  --border: rgba(203, 224, 235, 0.1) !important;
  --input: rgba(203, 224, 235, 0.18) !important;
  --accent: #1c2c36 !important;
  --accent-foreground: #ffffff !important;
  --primary: #e8f3f1 !important;
  --primary-foreground: #08181e !important;
}

.console-workspace [data-slot="sidebar-inner"],
.console-workspace [data-sidebar="sidebar"],
[data-sidebar="sidebar"][data-mobile="true"] {
  --sidebar: #0d232c !important;
  --sidebar-foreground: #dcebe9 !important;
  --sidebar-accent: rgba(45, 212, 191, 0.14) !important;
  --sidebar-accent-foreground: #ffffff !important;
  --sidebar-border: rgba(219, 183, 139, 0.16) !important;
  background: linear-gradient(180deg, #0d232c 0%, #0a1c23 100%) !important;
  border-right: 1px solid rgba(219, 183, 139, 0.14) !important;
}
.console-workspace [data-sidebar="group-label"],
[data-sidebar="sidebar"] .yy-console-heading p {
  color: #88a7ac !important;
}
.console-workspace [data-sidebar="menu-button"] {
  border-radius: 0.55rem !important;
  font-weight: 500 !important;
  color: #cfe0e0 !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}
.console-workspace [data-sidebar="menu-button"]:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
.console-workspace [data-sidebar="menu-button"][data-active="true"],
[data-sidebar="sidebar"][data-mobile="true"] [data-sidebar="menu-button"][data-active="true"] {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.2) 0%, rgba(219, 183, 139, 0.12) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: inset 2.5px 0 0 #2dd4bf, inset 0 0 0 1px rgba(45, 212, 191, 0.22) !important;
}

/* Mobile auth brand clean mark without redundant padding */
.yy-mobile-auth-brand img {
  background: transparent !important;
  padding: 0 !important;
}

/* Compact, non-obtrusive header quick links spacing */
.yy-public-header .yy-header-quick-link {
  color: var(--muted-foreground) !important;
}
.yy-public-header .yy-header-quick-link:hover {
  color: var(--foreground) !important;
  background: var(--accent) !important;
}

[data-slot="card"] {
  background: var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 0.9rem !important;
  box-shadow: var(--yy-shadow-xs) !important;
}

[data-slot="table-container"],
.console-workspace .rounded-md.border:has(> table),
.console-workspace .rounded-lg.border:has(> table) {
  background: var(--yy-surface) !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 0.85rem !important;
  box-shadow: var(--yy-shadow-xs) !important;
}
.console-workspace table thead th,
[data-slot="table-head"] {
  background: var(--yy-surface-subtle) !important;
  color: var(--yy-text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  height: 2.6rem !important;
  border-bottom: 1px solid var(--yy-line) !important;
}
.console-workspace table tbody tr,
[data-slot="table-row"] {
  border-bottom-color: var(--yy-line) !important;
  transition: background-color 0.12s ease !important;
}
.console-workspace table tbody tr:hover,
[data-slot="table-row"]:hover {
  background: #f4f8fa !important;
}
.dark .console-workspace table tbody tr:hover,
.dark [data-slot="table-row"]:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}
[data-slot="table-cell"] {
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}

[data-slot="badge"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}
[data-slot="dialog-content"] {
  border: 1px solid var(--yy-line) !important;
  border-radius: 1rem !important;
  box-shadow: 0 24px 60px -20px rgba(15, 41, 51, 0.3) !important;
}

button[data-slot="button"].bg-primary {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: 0.55rem !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 41, 51, 0.12) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}
button[data-slot="button"].bg-primary:hover {
  opacity: 0.92;
}

/* Preview-only compact floating indicator (bottom-left, low-profile & dismissible) */
#yy-preview-ribbon {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 39, 0.84);
  color: #e8f3f1;
  border: 1px solid rgba(219, 183, 139, 0.36);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.82;
  box-shadow: 0 8px 20px -10px rgba(11, 31, 39, 0.45);
  backdrop-filter: blur(10px);
  transition: opacity 0.18s ease;
}
#yy-preview-ribbon:hover {
  opacity: 1;
}
#yy-preview-ribbon button {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

/* Respect accessibility: disable motion cleanly if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .yy-reveal-pending {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* API Model Marketplace calling-group badges */
.yy-price-model-col {
  width: 21% !important;
}
.yy-price-discount-col {
  width: 19% !important;
}
.yy-price-group-hint {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
}
.yy-price-group-label {
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--yy-text-muted);
  line-height: 1.2;
}
.yy-price-group-name {
  display: inline-block;
  max-width: 100%;
  padding: 0.17rem 0.44rem;
  border-radius: 0.42rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.38;
  word-break: break-all;
  background: #edf6f5;
  color: #0f5f58;
  border: 1px solid rgba(15, 118, 110, 0.24);
}
.yy-price-group-name[data-special="true"] {
  background: #fdf7ee;
  color: #7c521e;
  border-color: rgba(201, 162, 112, 0.48);
}
.dark .yy-price-group-name {
  background: rgba(45, 212, 191, 0.12);
  color: #8ceee0;
  border-color: rgba(45, 212, 191, 0.28);
}
.dark .yy-price-group-name[data-special="true"] {
  background: rgba(219, 183, 139, 0.14);
  color: #f3dfc2;
  border-color: rgba(219, 183, 139, 0.34);
}
