:root {
  color-scheme: light;
  --bg: #f5efe1;
  --surface: #ffffff;
  --surface-soft: #fff7e6;
  --ink: #241b13;
  --muted: #7b6d5f;
  --line: #eadcc3;
  --line-strong: #d7bd8c;
  --teal: #b87918;
  --teal-dark: #6f4211;
  --indigo: #63513b;
  --amber: #d99b22;
  --rose: #b4515a;
  --steel: #806b50;
  --green-soft: #fff0c2;
  --amber-soft: #f9e2b1;
  --rose-soft: #f4e0e2;
  --shadow: 0 18px 46px rgba(74, 50, 20, 0.10);
  --shadow-strong: 0 24px 70px rgba(74, 50, 20, 0.18);
  --radius: 8px;
  --sidebar: 272px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(245, 200, 82, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(185, 109, 22, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(244, 235, 216, 1)),
    var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

.auth-screen {
  min-height: 100vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(380px, 1.1fr) minmax(340px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  color: #fff8e9;
  --mouse-x: 50%;
  --mouse-y: 48%;
  background:
    linear-gradient(rgba(245, 200, 82, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 200, 82, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(255, 213, 105, 0.22), transparent 30%),
    linear-gradient(135deg, #1b130c 0%, #352414 44%, #6b4314 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  animation: authGridDrift 18s linear infinite;
}

.auth-screen[hidden] {
  display: none;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 214, 99, 0.26), transparent 21rem),
    linear-gradient(115deg, transparent 18%, rgba(255, 232, 162, 0.12) 38%, transparent 58%);
  opacity: 0.9;
  transition: opacity 180ms ease;
}

.auth-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 221, 119, 0.09) 48%, transparent 54%),
    radial-gradient(circle at 12% 85%, rgba(255, 217, 132, 0.14), transparent 25%),
    radial-gradient(circle at 96% 44%, rgba(185, 109, 22, 0.14), transparent 28%);
  mix-blend-mode: screen;
  animation: authDataSweep 8s ease-in-out infinite;
}

.auth-canvas,
.qilin-3d-canvas,
.qilin-3d-stage,
.auth-mouse-glow,
.auth-noise,
.auth-data-tags,
.auth-transition {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-canvas {
  z-index: 0;
  opacity: 0.86;
}

.qilin-3d-canvas {
  z-index: 1;
  opacity: 0.52;
  filter: drop-shadow(0 0 18px rgba(157, 107, 255, 0.52));
}

.qilin-3d-stage {
  z-index: 1;
  left: 36%;
  top: 12%;
  width: min(820px, 55vw);
  height: min(520px, 58vh);
  opacity: 0.86;
  perspective: 900px;
  transform-style: preserve-3d;
}

.qilin-3d-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: qilinStageTurn 8.8s ease-in-out infinite;
}

.qilin-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 16px rgba(157, 107, 255, 0.72));
}

.qilin-layer-back {
  opacity: 0.32;
  transform: translate3d(-18px, 10px, -110px) scale(0.98);
}

.qilin-layer-mid {
  opacity: 0.62;
  transform: translate3d(0, 0, 0);
}

.qilin-layer-front {
  opacity: 0.46;
  filter: sepia(1) saturate(1.4) hue-rotate(340deg) drop-shadow(0 0 18px rgba(236, 190, 94, 0.65));
  transform: translate3d(22px, -16px, 120px) scale(1.02);
}

@keyframes qilinStageTurn {
  0%, 100% {
    transform: rotateX(6deg) rotateY(-16deg) rotateZ(-2deg) translate3d(0, 0, 0);
  }
  45% {
    transform: rotateX(-2deg) rotateY(14deg) rotateZ(1deg) translate3d(14px, -8px, 0);
  }
  65% {
    transform: rotateX(4deg) rotateY(8deg) rotateZ(-1deg) translate3d(-8px, 4px, 0);
  }
}

.auth-mouse-glow {
  z-index: 1;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 214, 99, 0.2), transparent 18rem);
  filter: blur(4px);
}

.auth-noise {
  z-index: 2;
  opacity: 0.28;
  background-image:
    repeating-radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.auth-data-tags {
  z-index: 2;
}

.auth-data-tags span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 5px 8px;
  border: 1px solid rgba(255, 211, 105, 0.16);
  border-radius: 999px;
  color: rgba(255, 239, 196, 0.46);
  background: rgba(8, 25, 25, 0.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: authTagFloat 9s ease-in-out infinite;
  animation-delay: var(--d);
}

.auth-art {
  position: relative;
  z-index: 3;
  max-width: 760px;
  display: grid;
  gap: 28px;
  animation: authReveal 780ms ease both;
}

.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-brand .brand-mark {
  background: rgba(221, 239, 233, 0.12);
  color: #ffe4a2;
  border: 1px solid rgba(255, 211, 105, 0.24);
  box-shadow: 0 0 28px rgba(244, 200, 82, 0.2);
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand small,
.auth-copy p,
.auth-metrics span,
.auth-hint {
  color: rgba(238, 248, 246, 0.72);
}

.auth-copy h1 {
  max-width: 680px;
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 10px 44px rgba(244, 200, 82, 0.16);
  animation: authTitleReveal 880ms ease both;
}

.auth-copy p {
  max-width: 620px;
  font-size: 16px;
}

.auth-flow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.auth-flow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 216, 113, 0.72), rgba(255, 244, 204, 0.22), rgba(191, 151, 83, 0.58));
  transform: translateY(-50%);
  opacity: 0.6;
}

.auth-flow span {
  position: relative;
  z-index: 1;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 211, 105, 0.22);
  border-radius: 999px;
  color: rgba(238, 248, 246, 0.82);
  background: rgba(7, 20, 20, 0.72);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(244, 200, 82, 0.1);
  animation: authFlowPulse 3.8s ease-in-out infinite;
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 620px;
}

.auth-metrics div,
.auth-card {
  border: 1px solid rgba(255, 211, 105, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    rgba(10, 34, 34, 0.42);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-metrics div {
  padding: 16px;
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: authMetricFloat 5.4s ease-in-out infinite;
}

.auth-metrics div:nth-child(2) {
  animation-delay: 0.55s;
}

.auth-metrics div:nth-child(3) {
  animation-delay: 1.1s;
}

.auth-metrics div:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 211, 105, 0.44);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), 0 0 34px rgba(244, 200, 82, 0.16);
}

.auth-metrics strong {
  display: block;
  font-size: 28px;
}

.auth-card {
  position: relative;
  z-index: 3;
  width: min(460px, 100%);
  justify-self: end;
  padding: 24px;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
  animation: authCardEnter 720ms ease 120ms both;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 211, 105, 0.42), rgba(255, 255, 255, 0.08), rgba(196, 156, 87, 0.24));
  opacity: 0.48;
  filter: blur(1px);
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 180ms ease, transform 360ms ease;
}

.auth-card:hover {
  border-color: rgba(255, 211, 105, 0.42);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.36), 0 0 36px rgba(244, 200, 82, 0.16);
}

.auth-card:hover::after {
  opacity: 1;
  transform: translateX(34%);
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 224, 145, 0.2);
  border-radius: var(--radius);
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff4c9, #f3c65c);
  box-shadow: 0 0 20px rgba(244, 200, 82, 0.26);
  transition: transform 220ms ease;
}

.auth-card[data-mode="register"] .auth-tab-indicator {
  transform: translateX(100%);
}

.auth-card[data-mode="forgot"] .auth-tab-indicator {
  transform: translateX(200%);
}

.auth-tab {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(238, 248, 246, 0.72);
  font-weight: 800;
  transition: color 180ms ease;
}

.auth-tab.active {
  color: var(--teal-dark);
}

.auth-entry-form {
  display: grid;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.auth-entry-form label span {
  color: rgba(238, 248, 246, 0.78);
}

.auth-entry-form input {
  border-color: rgba(221, 239, 233, 0.3);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-entry-form input:focus {
  outline: none;
  border-color: rgba(99, 246, 220, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 246, 220, 0.16), inset 0 0 18px rgba(99, 246, 220, 0.08);
  transform: translateY(-1px);
}

.auth-code-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.auth-code-row .button {
  min-width: 112px;
}

.register-code-hint {
  color: rgba(238, 248, 246, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.auth-remember {
  margin: 0;
}

.auth-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.auth-entry-form .button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 46%, transparent 54%);
  transform: translateX(-115%);
  transition: transform 520ms ease;
}

.auth-entry-form .button.primary:hover::before {
  transform: translateX(115%);
}

.auth-submit.is-loading {
  color: transparent;
}

.auth-submit.is-loading::after {
  content: "数据流汇聚中...";
  position: absolute;
  color: #ffffff;
  inset: 0;
  display: grid;
  place-items: center;
}

.auth-trust-rail {
  position: absolute;
  z-index: 3;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.auth-trust-rail span {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 211, 105, 0.18);
  border-radius: 999px;
  color: rgba(238, 248, 246, 0.64);
  background: rgba(7, 20, 20, 0.46);
  font-size: 12px;
  font-weight: 800;
  animation: authTrustScroll 18s linear infinite;
}

.auth-transition {
  z-index: 6;
  display: grid;
  place-items: center;
  color: #eafaf7;
  background: rgba(4, 14, 14, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.auth-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-transition span {
  width: min(360px, 70vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(102, 255, 228, 0.95), rgba(201, 164, 91, 0.72), transparent);
  box-shadow: 0 0 24px rgba(102, 255, 228, 0.42);
  animation: authTransitionLine 600ms ease both;
}

.auth-transition strong {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes authGridDrift {
  0% { background-position: 0 0, 0 0, center, center; }
  100% { background-position: 36px 36px, -36px 36px, center, center; }
}

@keyframes authDataSweep {
  0%, 100% { opacity: 0.54; transform: translateX(-3%); }
  50% { opacity: 0.82; transform: translateX(3%); }
}

@keyframes authReveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes authTitleReveal {
  from { opacity: 0; transform: translateY(12px); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes authTagFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.28; }
  50% { transform: translate3d(10px, -14px, 0); opacity: 0.52; }
}

@keyframes authFlowPulse {
  0%, 100% { border-color: rgba(255, 211, 105, 0.18); }
  50% { border-color: rgba(255, 211, 105, 0.44); box-shadow: 0 0 24px rgba(244, 200, 82, 0.18); }
}

@keyframes authMetricFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes authCardEnter {
  from { opacity: 0; transform: perspective(900px) translateY(18px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: perspective(900px) translateY(0) scale(1); filter: blur(0); }
}

@keyframes authTrustScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-42px); }
}

@keyframes authTransitionLine {
  from { transform: scaleX(0.2); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  isolation: isolate;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 245, 223, 0.92)),
    rgba(255, 250, 238, 0.9);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 12px 0 42px rgba(91, 60, 22, 0.06);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 234, 0.92), rgba(255, 225, 132, 0.54)),
    #fff8e8;
  color: var(--teal);
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(151, 91, 21, 0.18);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark svg,
.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: var(--radius);
}

.nav-item:hover {
  background: #fff3d5;
  color: var(--ink);
}

.nav-item.active {
  background: linear-gradient(135deg, #fff0bd, #f9df96);
  color: var(--teal-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 #d99b22;
}

.nav-icon {
  font-size: 18px;
  text-align: center;
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.sidebar-note strong {
  display: block;
  margin-bottom: 6px;
}

.sidebar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(232, 213, 174, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 214, 0.82)),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.domain-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(184, 121, 24, 0.22);
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.domain-link:hover {
  border-color: rgba(184, 121, 24, 0.42);
  background: #ffe7a8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.top-actions,
.action-row,
.export-actions,
.ai-actions,
.filter-row,
.bulk-bar,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button {
  padding: 0 17px;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, #b36b0f, #df9f18);
  color: #fff;
  box-shadow: 0 16px 30px rgba(184, 121, 24, 0.24);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 16px 34px rgba(184, 121, 24, 0.25);
  transform: translateY(-1px);
}

.button.secondary {
  background: linear-gradient(180deg, #fffdf6, #fff2d4);
  color: var(--teal-dark);
  border-color: #e4c88f;
  box-shadow: 0 8px 18px rgba(74, 50, 20, 0.06);
}

.button.secondary:hover {
  background: linear-gradient(180deg, #fff, #fff0c6);
  border-color: #d4a94f;
  transform: translateY(-1px);
}

.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.discovery-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(217, 155, 34, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 237, 0.96), rgba(255, 244, 210, 0.82)),
    #fffaf0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 34px rgba(74, 50, 20, 0.08);
}

.discovery-head,
.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.discovery-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.discovery-head strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.discovery-head span {
  color: var(--muted);
  font-size: 12px;
}

#discoveryCount {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #e4c88f;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #6f4211;
  font-size: 12px;
  font-weight: 900;
}

.discovery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  max-height: 350px;
  overflow: auto;
}

.discovery-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(224, 203, 167, 0.8);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 20px 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.discovery-item:hover {
  transform: translateY(-1px);
  border-color: #d99b22;
  box-shadow: 0 12px 26px rgba(74, 50, 20, 0.09);
}

.discovery-item input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #d99b22;
}

.discovery-item img {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(215, 189, 140, 0.62);
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #fff7e6, #f7dfad);
}

.discovery-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discovery-item strong,
.discovery-item small,
.discovery-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-item strong {
  color: var(--ink);
  font-size: 13px;
}

.discovery-item small {
  color: #7d6547;
  font-size: 11px;
  font-weight: 800;
}

.discovery-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.discovery-loading {
  min-height: 96px;
  border: 1px dashed rgba(217, 155, 34, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6f4211;
  background: rgba(255, 255, 255, 0.58);
}

.discovery-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d99b22;
  animation: discoveryPulse 1s ease-in-out infinite;
}

.discovery-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.discovery-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes discoveryPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.button.ghost:hover {
  border-color: var(--line-strong);
  background: #fffaf0;
  transform: translateY(-1px);
}

.icon-button {
  width: 44px;
  padding: 0;
  background: #fff;
  color: var(--steel);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(74, 50, 20, 0.06);
}

.export-dropdown {
  position: relative;
}

.action-button {
  min-width: 118px;
}

.format-button {
  min-width: 210px;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  background: linear-gradient(180deg, #ffffff, #fff3d6);
  color: var(--ink);
  border-color: #e7c87d;
  box-shadow: 0 10px 24px rgba(74, 50, 20, 0.08);
}

.format-button::after {
  content: "⌄";
  color: var(--teal-dark);
  font-size: 16px;
  line-height: 1;
}

.format-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.format-button strong {
  color: var(--teal-dark);
  font-size: 13px;
}

.export-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(340px, 82vw);
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(74, 50, 20, 0.18);
}

.export-menu button {
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  display: grid;
  gap: 2px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.export-menu button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.export-menu button:hover {
  background: #fff4da;
  color: var(--teal-dark);
}

.export-menu button.active {
  background: var(--green-soft);
  color: var(--teal-dark);
  box-shadow: inset 3px 0 0 var(--teal);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.account-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(150px, 0.5fr) minmax(320px, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(255, 241, 208, 0.82)),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trial-badge {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #8a4d14;
  background: var(--amber-soft);
  font-weight: 900;
  font-size: 13px;
}

.trial-badge.active {
  color: var(--teal-dark);
  background: var(--green-soft);
}

.trial-badge.expired,
.trial-badge.suspended {
  color: #8f303c;
  background: var(--rose-soft);
}

.account-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-card strong {
  font-size: 15px;
}

.account-card > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.quota-strip,
.quota-list {
  display: grid;
  gap: 8px;
}

.quota-strip {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.quota-item {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quota-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quota-bar {
  height: 7px;
  border-radius: 999px;
  background: #f6e4bc;
  overflow: hidden;
}

.quota-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title p,
.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 28px;
  min-width: 64px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--steel);
  background: #fff3d5;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  width: max-content;
}

.status-pill.ready,
.status-pill.pass,
.chip.success {
  color: var(--teal-dark);
  background: var(--green-soft);
}

.status-pill.warn,
.chip.warn {
  color: #8a4d14;
  background: var(--amber-soft);
}

.status-pill.fail,
.chip.fail {
  color: #8f303c;
  background: var(--rose-soft);
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
  gap: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "ai";
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.product-preview {
  grid-area: preview;
}

.ai-panel {
  grid-area: ai;
}

.health-panel {
  grid-area: health;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.05fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.management-table-panel {
  overflow-x: auto;
}

.management-table-panel table {
  min-width: 780px;
}

.management-table-panel tr.active-row {
  background: rgba(217, 155, 34, 0.08);
  box-shadow: inset 3px 0 0 #d99b22;
}

.management-table-panel tr.active-row td {
  background: #fff7e5;
}

.management-table-panel tbody tr {
  cursor: pointer;
}

.management-table-panel th:first-child,
.management-table-panel td:first-child {
  width: 96px;
}

.management-table-panel th:nth-child(5),
.management-table-panel td:nth-child(5) {
  width: 112px;
}

.management-table-panel .chip {
  min-width: 74px;
  padding: 0 12px;
}

.selection-head {
  min-width: 86px;
}

.table-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.table-select-all input,
.management-select {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--teal);
  cursor: pointer;
}

.selection-summary {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e4c88f;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  background: #fff9ec;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.management-product-cell {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 260px;
}

.management-product-cell img {
  background: linear-gradient(135deg, #fff7e6, #f7dfad);
  border: 1px solid rgba(215, 189, 140, 0.62);
  border-radius: 10px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.management-product-cell span {
  display: grid;
  gap: 3px;
}

.management-product-cell small {
  color: var(--muted);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-editor-panel {
  position: sticky;
  top: 16px;
  overflow: hidden;
}

.management-preview-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.management-main-image {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(215, 189, 140, 0.72);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 249, 235, 0.86), rgba(245, 218, 164, 0.42)),
    #fff8ea;
}

.management-main-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.preview-missing {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 155, 34, 0.42);
  border-radius: 12px;
  background: rgba(255, 248, 229, 0.92);
  color: #6f4211;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(74, 50, 20, 0.12);
}

.preview-missing strong {
  font-size: 13px;
}

.preview-missing span {
  color: #806b50;
  font-size: 12px;
  line-height: 1.45;
}

.management-main-image .empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
}

.preview-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 240, 196, 0.82);
  border-radius: 999px;
  color: #6f4211;
  background: rgba(255, 248, 229, 0.88);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.management-image-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.management-image-thumbs button {
  min-height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff8ea;
  box-shadow: 0 8px 18px rgba(74, 50, 20, 0.08);
}

.management-image-thumbs button.active {
  border-color: #d99b22;
  box-shadow: 0 10px 22px rgba(184, 121, 24, 0.2);
}

.management-image-thumbs button.placeholder-thumb {
  opacity: 0.72;
  background: repeating-linear-gradient(135deg, #fff8ea 0 8px, #f7ead0 8px 16px);
}

.management-image-thumbs img {
  width: 100%;
  height: 58px;
  display: block;
  object-fit: cover;
}

.management-image-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.management-image-meta span,
.management-source-link {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.management-source-link {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.management-source-link:hover {
  border-color: #d99b22;
  color: var(--teal-dark);
  background: #fff2d0;
}

.management-image-url-editor {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
}

.management-image-url-editor.needs-image {
  border-color: rgba(217, 155, 34, 0.5);
  background: linear-gradient(135deg, #fff7e4, #ffefbd);
}

.management-image-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.management-image-url-row .button {
  min-height: 38px;
}

.management-image-url-editor small {
  color: var(--muted);
  font-size: 12px;
}

.editor-subtitle {
  margin: 4px 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.management-format-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf0, #fff6e7);
}

.management-format-card h3,
.management-format-card p {
  margin: 0;
}

.management-format-card p {
  color: var(--muted);
  font-size: 12px;
}

.format-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-chip-grid button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ead7ad;
  border-radius: 10px;
  background: #fff;
  color: #725538;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(74, 50, 20, 0.05);
}

.format-chip-grid button:hover,
.format-chip-grid button.active {
  border-color: #d99b22;
  color: #6f4211;
  background: linear-gradient(180deg, #fff8e8, #ffe8aa);
}

.panel,
.table-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 233, 0.96)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
  position: relative;
}

.panel::before,
.table-panel::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, rgba(179, 107, 15, 0.95), rgba(244, 200, 82, 0.86), rgba(234, 188, 96, 0.58));
}

.panel::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.table-panel {
  overflow: auto;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.field-label,
label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(184, 121, 24, 0.16);
}

.detector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.metric {
  min-height: 74px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f7faf9;
  border: 1px solid var(--line);
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  margin-top: 8px;
  font-size: 18px;
}

.support-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
  color: var(--muted);
  font-size: 13px;
}

.mode-block {
  margin: 12px 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #edf3f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
}

.segment {
  min-height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-weight: 800;
}

.segment.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 49, 51, 0.08);
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.check-row span {
  margin-bottom: 0;
  font-weight: 600;
}

.inline-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--rose-soft);
  color: #82313a;
  font-weight: 700;
}

.progress-meter {
  margin-bottom: 14px;
}

.progress-meter > span,
.progress-meter > strong {
  display: inline-block;
}

.progress-meter > strong {
  float: right;
}

.progress-track {
  clear: both;
  margin-top: 8px;
  height: 9px;
  border-radius: 999px;
  background: #e6ecea;
  overflow: hidden;
}

.progress-track div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 220ms ease;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.step-list li {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fffaf0;
}

.step-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b7c3c0;
  flex: 0 0 auto;
}

.step-list li.done {
  color: var(--teal-dark);
  background: var(--green-soft);
  border-color: #bed9d0;
}

.step-list li.done::before {
  background: var(--teal);
}

.step-list li.active {
  color: #8a4d14;
  background: var(--amber-soft);
  border-color: #e8d2b3;
}

.step-list li.active::before {
  background: var(--amber);
}

.log-box {
  min-height: 110px;
  max-height: 150px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #263235;
  color: #e8f1ef;
  font-size: 12px;
}

.log-box p {
  margin: 0 0 7px;
}

.api-flow {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.api-flow strong,
.api-flow span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2f6f5;
}

.api-flow strong {
  color: var(--teal-dark);
  background: var(--green-soft);
}

.preview-layout {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.image-rail {
  display: grid;
  gap: 10px;
}

.image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef3f1;
}

.image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-meta {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.image-edit {
  display: grid;
  gap: 8px;
}

.editor-form,
.control-stack {
  display: grid;
  gap: 12px;
}

.form-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.variant-editor {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.variant-editor h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.variant-grid {
  display: grid;
  gap: 8px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 0.7fr 0.6fr 38px;
  gap: 8px;
  align-items: end;
}

.variant-row label span {
  margin-bottom: 4px;
}

.variant-remove {
  align-self: end;
  color: #8f303c;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-settings .wide {
  grid-column: 1 / -1;
}

.ai-provider {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ai-output {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.ai-output div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.ai-output dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-output dd {
  margin: 5px 0 0;
}

.ai-output textarea,
.ai-output input {
  width: 100%;
}

.ai-pair {
  display: grid;
  gap: 8px;
}

.health-list,
.policy-list,
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.health-list li,
.policy-list li,
.history-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.health-list li.pass::before,
.health-list li.warn::before,
.health-list li.fail::before,
.policy-list li::before,
.history-list li::before {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.health-list li.pass::before,
.policy-list li::before,
.history-list li::before {
  content: "✓";
  color: var(--teal-dark);
  background: var(--green-soft);
}

.health-list li.warn::before {
  content: "!";
  color: #8a4d14;
  background: var(--amber-soft);
}

.health-list li.fail::before {
  content: "×";
  color: #8f303c;
  background: var(--rose-soft);
}

.export-actions {
  margin-top: 14px;
}

.export-actions.compact {
  margin-top: 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}

th {
  background: linear-gradient(180deg, #fff8e8, #fff0cc);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  background: rgba(255, 255, 255, 0.88);
}

tr:hover td {
  background: #fffaf0;
}

tr:last-child td {
  border-bottom: 0;
}

.progress-cell {
  min-width: 150px;
}

.mini-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f6e4bc;
  overflow: hidden;
}

.mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff3d5;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  width: max-content;
}

.bulk-bar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: 160px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.product-card h3 {
  margin: 0;
  min-height: 48px;
  font-size: 15px;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-actions input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.mapping-input {
  min-width: 160px;
}

.export-grid,
.compliance-grid,
.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.compliance-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.plan-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.plan-card,
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.plan-card.active {
  border-color: var(--teal);
  box-shadow: 0 18px 48px rgba(184, 121, 24, 0.16);
}

.plan-card h3,
.admin-stat h3 {
  margin-bottom: 6px;
}

.plan-price {
  font-size: 24px;
  font-weight: 900;
  margin: 8px 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.feature-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
  margin-right: 6px;
}

.auth-form,
.account-detail {
  display: grid;
  gap: 12px;
}

.account-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.admin-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.admin-stat span {
  color: var(--muted);
  font-size: 13px;
}

.admin-console {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.admin-console-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(184, 121, 24, 0.08), rgba(143, 91, 28, 0.07));
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tab {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 800;
}

.admin-tab.active {
  border-color: rgba(184, 121, 24, 0.34);
  background: var(--green-soft);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(184, 121, 24, 0.10);
}

.admin-workspace {
  padding: 14px;
}

.admin-pane {
  display: none;
}

.admin-pane.active {
  display: block;
}

.admin-pane-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-form-panel {
  box-shadow: none;
}

.table-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 8px;
}

.table-heading h3 {
  margin: 0;
}

.admin-user-cell {
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.admin-user-cell span,
.admin-user-cell small {
  color: var(--muted);
}

.admin-user-cell small {
  font-size: 12px;
}

.admin-inline-fields,
.admin-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.admin-usage-grid,
.admin-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 1fr));
  gap: 8px;
}

.admin-usage-grid label span,
.admin-limit-grid label span {
  margin-bottom: 3px;
}

.tiny-input {
  min-width: 62px;
}

.plan-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.admin-plan-card {
  display: grid;
  gap: 10px;
  box-shadow: none;
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.plan-card-head h3 {
  margin: 0;
}

.admin-empty {
  color: var(--muted);
  background: #fffaf0;
  text-align: center;
  font-weight: 700;
}

.admin-table {
  margin-top: 14px;
}

.template-list {
  display: grid;
  gap: 10px;
}

.template-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.template-list input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.text-block {
  margin-bottom: 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(560px, calc(100vw - 32px));
  padding: 11px 14px;
  border-radius: var(--radius);
  background: #263235;
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.public-page {
  background: #f7faf9;
  color: #152528;
}

.public-page a {
  color: inherit;
}

.public-header,
.public-footer,
.public-hero,
.public-section,
.public-page-title,
.public-tool-hero,
.public-tool-layout,
.public-pricing-grid {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.public-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(184, 121, 24, 0.16);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand small {
  color: var(--muted);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.public-nav a.active,
.public-nav a:hover {
  color: var(--teal-dark);
  background: var(--green-soft);
}

.public-nav .public-nav-cta {
  color: #fff;
  background: var(--teal);
}

.public-hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 36px;
  align-items: center;
  padding: 42px 0 54px;
}

.public-hero h1,
.public-page-title h1,
.public-tool-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.public-hero-copy > p:not(.eyebrow),
.public-page-title > p,
.public-tool-hero p {
  max-width: 690px;
  color: #53686c;
  font-size: 18px;
}

.public-url-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 28px 0 14px;
}

.public-url-box input,
.public-tool-form input,
.public-tool-form textarea,
.public-tool-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.public-url-box button {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-tool-output {
  min-height: 104px;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(184, 121, 24, 0.18);
  border-radius: 8px;
  color: #163238;
  background: #fff2d4;
  white-space: pre-wrap;
  font-size: 13px;
}

.public-hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(184, 121, 24, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 121, 24, 0.08), rgba(177, 109, 43, 0.08)),
    #fff;
  box-shadow: var(--shadow);
}

.public-hero-panel div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.public-hero-panel strong {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
}

.public-section,
.public-page-title,
.public-tool-hero {
  padding: 54px 0;
}

.public-section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.public-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.public-tool-card,
.public-plan,
.public-result-panel,
.public-tool-form,
.seo-dashboard-panel,
.seo-kpi,
.seo-page-list a,
.seo-tool-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(25, 40, 45, 0.06);
}

.public-tool-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
}

.public-tool-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-tool-card p {
  margin: 0;
  color: var(--muted);
}

.public-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.public-check-list {
  margin: 0;
  padding: 18px 18px 18px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-check-list li + li {
  margin-top: 10px;
}

.public-cta-band {
  margin-bottom: 54px;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(184, 121, 24, 0.96), rgba(125, 75, 19, 0.88)),
    var(--teal);
}

.public-cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.public-footer p {
  max-width: 620px;
}

.public-footer-links {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.public-footer-links a,
.public-related a,
.seo-monitor-list a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.public-page-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.public-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 30px;
}

.public-plan {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.public-plan.featured {
  border-color: rgba(184, 121, 24, 0.45);
  background: linear-gradient(180deg, #fff, #eef8f5);
}

.public-plan > strong {
  font-size: 28px;
}

.public-plan ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.public-tool-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.public-tool-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.public-tool-form,
.public-result-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.public-tool-form textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

.public-related,
.seo-monitor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-related a,
.seo-monitor-list a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--green-soft);
}

.public-faq {
  display: grid;
  gap: 10px;
}

.public-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}

.public-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.seo-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seo-dashboard-panel {
  grid-column: 1 / -1;
}

.seo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seo-kpi {
  padding: 14px;
}

.seo-kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.seo-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.seo-table-wrap {
  overflow-x: auto;
}

.seo-page-list,
.seo-tool-list,
.seo-top-pages {
  display: grid;
  gap: 10px;
}

.seo-page-list a,
.seo-tool-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-decoration: none;
}

.seo-page-list span,
.seo-tool-list span,
.seo-top-pages span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "ai"
      "health";
  }

  .product-list,
  .compliance-grid,
  .plan-grid,
  .admin-grid,
  .plan-admin-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 920px) {
  .auth-screen {
    grid-template-columns: 1fr;
    align-items: start;
    padding-bottom: 86px;
  }

  .auth-art {
    max-width: none;
  }

  .auth-card {
    justify-self: stretch;
    margin-left: auto;
    margin-right: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-note {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .account-strip,
  .workbench-grid,
  .management-grid,
  .export-grid,
  .compliance-grid,
  .membership-grid,
  .ai-settings,
  .admin-pane-grid {
    grid-template-columns: 1fr;
  }

  .quota-strip {
    grid-template-columns: 1fr;
  }

  .management-editor-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions,
  .action-row,
  .export-actions,
  .ai-actions,
  .filter-row,
  .account-actions,
  .auth-metrics {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-actions .button,
  .action-row .button,
  .export-actions .button,
  .ai-actions .button,
  .filter-row select {
    width: 100%;
  }

  .export-dropdown,
  .export-dropdown .button,
  .export-menu {
    width: 100%;
  }

  .url-row,
  .detector-grid,
  .segmented,
  .preview-layout,
  .form-pair,
  .product-list,
  .variant-row,
  .plan-grid,
  .admin-grid,
  .plan-admin-grid,
  .admin-usage-grid,
  .admin-limit-grid {
    grid-template-columns: 1fr;
  }

  .admin-console-head,
  .table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    padding: 18px;
    padding-bottom: 70px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-art {
    gap: 18px;
  }

  .auth-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .auth-metrics div {
    min-height: 88px;
    padding: 12px 10px;
  }

  .auth-metrics strong {
    font-size: 23px;
  }

  .auth-flow {
    gap: 8px;
  }

  .auth-flow::before,
  .auth-canvas,
  .auth-data-tags span:nth-child(n+4) {
    display: none;
  }

  .auth-card {
    justify-self: stretch;
    padding: 18px;
    transform: none !important;
  }

  .auth-trust-rail {
    left: 18px;
    right: 18px;
    bottom: 14px;
  }

  .metric {
    min-height: auto;
  }

  .preview-layout {
    gap: 12px;
  }

  .image-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    grid-template-rows: 190px auto;
  }

  .product-card img {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen,
  .auth-screen::after,
  .auth-art,
  .auth-copy h1,
  .auth-card,
  .auth-metrics div,
  .auth-data-tags span,
  .auth-flow span,
  .auth-trust-rail span,
  .auth-transition span {
    animation: none !important;
  }

  .auth-canvas,
  .qilin-3d-canvas,
  .qilin-3d-stage,
  .auth-mouse-glow,
  .auth-data-tags {
    display: none;
  }

  .auth-card {
    transform: none !important;
  }
}

@media (max-width: 1080px) {
  .public-tool-grid,
  .public-pricing-grid,
  .seo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-hero,
  .public-tool-layout,
  .public-split,
  .seo-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-header,
  .public-tool-hero,
  .public-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .public-nav {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .public-hero h1,
  .public-page-title h1,
  .public-tool-hero h1 {
    font-size: 40px;
  }

  .public-url-box,
  .public-tool-grid,
  .public-pricing-grid,
  .seo-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Lei Qilin visual system */
body {
  background:
    radial-gradient(circle at 86% 2%, rgba(220, 160, 55, 0.18), transparent 26rem),
    radial-gradient(circle at 34% 0%, rgba(255, 236, 174, 0.58), transparent 26rem),
    linear-gradient(180deg, #fffaf0 0%, #f5ecd9 52%, #efe4cf 100%);
}

.auth-screen {
  color: #f7f0ff;
  grid-template-columns: minmax(560px, 1.08fr) minmax(380px, 0.92fr);
  gap: 40px;
  padding: 32px 68px 72px;
  background:
    linear-gradient(rgba(142, 77, 255, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 77, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 68% 17%, rgba(142, 77, 255, 0.36), transparent 28rem),
    radial-gradient(circle at 92% 52%, rgba(99, 39, 207, 0.22), transparent 34rem),
    linear-gradient(135deg, #060810 0%, #111022 42%, #05050c 100%);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}

.auth-screen::before {
  inset: 0;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(150, 88, 255, 0.32), transparent 21rem),
    linear-gradient(118deg, transparent 12%, rgba(150, 88, 255, 0.24) 39%, transparent 55%);
  opacity: 0.92;
  mix-blend-mode: screen;
}

.auth-screen::after {
  background:
    linear-gradient(128deg, transparent 0 28%, rgba(159, 96, 255, 0.44) 30%, transparent 32% 100%),
    linear-gradient(138deg, transparent 0 58%, rgba(207, 178, 255, 0.28) 60%, transparent 62% 100%),
    radial-gradient(circle at 15% 82%, rgba(120, 65, 255, 0.22), transparent 28%),
    radial-gradient(circle at 96% 18%, rgba(182, 120, 255, 0.16), transparent 26%);
  opacity: 0.76;
}

.auth-mouse-glow {
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(145, 86, 255, 0.25), transparent 20rem);
}

.auth-data-tags span {
  border-color: rgba(164, 111, 255, 0.26);
  color: rgba(224, 210, 255, 0.42);
  background: rgba(14, 12, 32, 0.54);
}

.auth-art {
  max-width: 880px;
  gap: 24px;
}

.auth-brand {
  gap: 14px;
}

.auth-brand .brand-mark {
  background: rgba(116, 67, 224, 0.12);
  border-color: rgba(181, 140, 255, 0.42);
  box-shadow: 0 0 34px rgba(142, 77, 255, 0.28);
}

.auth-brand strong {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.auth-brand small,
.auth-copy p,
.auth-metrics span,
.auth-hint {
  color: rgba(232, 222, 255, 0.74);
}

.auth-copy .eyebrow {
  color: #b994ff;
  letter-spacing: 0.1em;
}

.auth-copy h1 {
  max-width: 730px;
  margin-bottom: 14px;
  font-size: clamp(46px, 5.1vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  background: linear-gradient(92deg, #ffffff 0%, #eee6ff 46%, #9d6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(126, 69, 255, 0.22);
}

.auth-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.62;
}

.auth-flow {
  max-width: 560px;
}

.auth-flow::before {
  background: linear-gradient(90deg, rgba(150, 88, 255, 0.76), rgba(236, 222, 255, 0.34), rgba(150, 88, 255, 0.66));
}

.auth-flow span {
  border-color: rgba(150, 88, 255, 0.34);
  color: rgba(245, 240, 255, 0.9);
  background: rgba(12, 10, 28, 0.78);
  box-shadow: 0 0 28px rgba(142, 77, 255, 0.14);
}

.auth-preview-panel {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

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

.auth-feature-row span,
.auth-data-card,
.auth-metrics div,
.auth-card {
  border: 1px solid rgba(160, 118, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(87, 58, 154, 0.08)),
    rgba(12, 10, 28, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 68px rgba(3, 2, 10, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-feature-row span {
  min-height: 66px;
  padding: 13px 14px;
  border-radius: 12px;
  display: grid;
  gap: 3px;
}

.auth-feature-row strong {
  color: #fff;
  font-size: 13px;
}

.auth-feature-row small {
  color: rgba(232, 222, 255, 0.62);
  font-size: 11px;
}

.auth-data-card {
  padding: 17px;
  border-radius: 14px;
}

.auth-data-head,
.auth-task-table > div {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 130px 90px;
  gap: 14px;
}

.auth-data-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #fff;
}

.auth-data-head span {
  color: rgba(232, 222, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.auth-stat-grid span {
  min-height: 88px;
  padding: 13px;
  border: 1px solid rgba(160, 118, 255, 0.14);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-stat-grid small {
  color: rgba(232, 222, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.auth-stat-grid strong {
  color: #ffffff;
  font-size: 24px;
}

.auth-stat-grid em {
  color: #72f0a6;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.auth-task-table {
  display: grid;
  gap: 8px;
  color: rgba(245, 240, 255, 0.74);
  font-size: 12px;
}

.auth-task-table > div {
  min-height: 28px;
}

.auth-task-table > div:first-child {
  color: rgba(245, 240, 255, 0.52);
  font-size: 11px;
}

.auth-task-table span:nth-child(2) {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.auth-task-table i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3cff, #b994ff);
}

.auth-task-table em {
  color: #c79cff;
  font-style: normal;
  font-weight: 900;
}

.auth-card {
  width: min(460px, 100%);
  padding: 24px;
  align-self: start;
  margin-top: clamp(88px, 12vh, 150px);
  border-color: rgba(178, 139, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(33, 28, 58, 0.88), rgba(13, 11, 27, 0.9)),
    rgba(12, 10, 28, 0.82);
}

.auth-card::before {
  background: linear-gradient(135deg, rgba(162, 109, 255, 0.68), rgba(255, 255, 255, 0.08), rgba(107, 55, 225, 0.36));
}

.auth-tabs {
  margin-bottom: 18px;
  border: 0;
  border-bottom: 1px solid rgba(211, 190, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.auth-tab-indicator {
  top: auto;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3cff, #b994ff);
  box-shadow: 0 0 28px rgba(150, 88, 255, 0.52);
}

.auth-tab.active {
  color: #ffffff;
}

.auth-entry-form label span {
  color: rgba(232, 222, 255, 0.72);
}

.auth-entry-form input {
  min-height: 40px;
  color: #f7f0ff;
  border-color: rgba(214, 197, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.auth-entry-form input::placeholder {
  color: rgba(232, 222, 255, 0.38);
}

.auth-entry-form input:focus {
  border-color: rgba(184, 142, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(142, 77, 255, 0.16), inset 0 0 18px rgba(142, 77, 255, 0.08);
}

.auth-entry-form .button.primary,
.auth-submit {
  background: linear-gradient(135deg, #7c3cff, #9d6bff);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(124, 60, 255, 0.34);
}

.auth-entry-form .button.ghost {
  color: #241f32;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #ffffff, #eee8ff);
}

.auth-code-row .button.ghost {
  color: #d7c0ff;
  background: rgba(142, 77, 255, 0.1);
  border-color: rgba(178, 139, 255, 0.28);
}

.auth-trust-rail {
  left: 68px;
  right: auto;
  width: min(980px, calc(100vw - 136px));
  bottom: 20px;
  padding: 10px 16px;
  border: 1px solid rgba(160, 118, 255, 0.18);
  border-radius: 12px;
  background: rgba(12, 10, 28, 0.58);
  backdrop-filter: blur(18px);
}

.auth-trust-rail span {
  border: 0;
  color: rgba(246, 240, 255, 0.76);
  background: transparent;
}

.app-shell {
  position: relative;
  background:
    radial-gradient(circle at 78px 76px, rgba(255, 236, 174, 0.62), transparent 16rem),
    radial-gradient(circle at 88% 0%, rgba(220, 160, 55, 0.18), transparent 26rem),
    linear-gradient(180deg, #fffaf0 0%, #f7eedc 48%, #f1e5cf 100%);
}

.app-shell::after {
  content: "";
  position: fixed;
  right: 28px;
  top: 56px;
  z-index: -1;
  width: min(430px, 36vw);
  height: 260px;
  background: url("/assets/qilin-line.svg") no-repeat center / contain;
  opacity: 0.14;
  filter: sepia(1) saturate(1.6) hue-rotate(350deg);
  pointer-events: none;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 247, 229, 0.92)),
    #fffaf0;
  border-right-color: #ead9b8;
  box-shadow: 12px 0 46px rgba(91, 60, 22, 0.08);
}

.brand-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 233, 174, 0.72)),
    #fff8e8;
  border: 1px solid rgba(214, 170, 76, 0.36);
  box-shadow: 0 14px 34px rgba(151, 91, 21, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nav-item {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
}

.nav-item:hover {
  background: #fff3d7;
  border-color: rgba(217, 155, 34, 0.18);
}

.nav-item.active {
  background: linear-gradient(135deg, #fff0bd, #f2d78b);
  color: #5f3b0d;
  box-shadow: inset 3px 0 0 #c78a19, 0 12px 24px rgba(153, 95, 21, 0.12);
}

.topbar,
.account-strip,
.panel,
.table-panel,
.sidebar-note,
.management-editor-panel,
.management-format-card,
.product-card {
  border-color: #ead9b8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 236, 0.94)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(93, 65, 25, 0.09);
}

.topbar {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  padding: 18px 20px;
}

.topbar::after {
  content: "";
  position: absolute;
  right: 70px;
  top: -66px;
  width: 260px;
  height: 170px;
  background: url("/assets/qilin-line.svg") no-repeat center / contain;
  opacity: 0.2;
  filter: sepia(1) saturate(1.8) hue-rotate(350deg);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #9d6c19;
  letter-spacing: 0.06em;
}

.domain-link,
.chip,
.status-pill,
.selection-summary,
.trial-badge {
  border-color: rgba(206, 159, 63, 0.26);
  background: #fff0bd;
  color: #6a420e;
}

.button.primary {
  border-color: rgba(164, 106, 16, 0.2);
  background: linear-gradient(135deg, #9c6414, #d69a2a);
  box-shadow: 0 18px 34px rgba(184, 121, 24, 0.24);
}

.button.primary:hover {
  background: linear-gradient(135deg, #7e4b10, #c88717);
}

.button.secondary,
.button.ghost,
.icon-button,
.format-button,
.format-chip-grid button {
  border-color: #e3c889;
  background: linear-gradient(180deg, #fffdf6, #fff3d6);
  color: #5f3b0d;
}

.button.secondary:hover,
.button.ghost:hover,
.icon-button:hover,
.format-button:hover,
.format-chip-grid button:hover {
  border-color: #c89124;
  background: linear-gradient(180deg, #ffffff, #ffeab2);
}

.account-strip {
  grid-template-columns: minmax(220px, 0.75fr) minmax(160px, 0.45fr) minmax(320px, 1fr) auto;
}

.quota-bar {
  background: #f1dfb9;
}

.quota-bar span {
  background: linear-gradient(90deg, #a06a17, #d99b22);
}

.panel::before,
.table-panel::before {
  background: linear-gradient(90deg, #b47a16, #f3c75b, rgba(217, 155, 34, 0.25));
}

.management-table-panel tr.active-row,
.management-table-panel tr.active-row td {
  background: #fff5dc;
}

.management-main-image,
.management-product-cell img,
.product-card img {
  background:
    radial-gradient(circle at 15% 12%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 86% 88%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, #fffaf0, #e9eee9);
}

@media (max-width: 1120px) {
  .auth-screen {
    grid-template-columns: 1fr;
    padding: 32px 28px 92px;
  }

  .auth-card {
    justify-self: start;
    margin-top: 0;
  }

  .auth-trust-rail {
    left: 28px;
    width: calc(100vw - 56px);
  }
}

@media (max-width: 720px) {
  .auth-screen {
    padding: 20px 18px 82px;
  }

  .auth-screen::before {
    background:
      radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(150, 88, 255, 0.28), transparent 18rem);
  }

  .qilin-3d-stage {
    left: 10%;
    top: 16%;
    width: 108vw;
    opacity: 0.36;
  }

  .auth-copy h1 {
    font-size: 48px;
  }

  .auth-feature-row,
  .auth-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-data-card {
    display: none;
  }

  .auth-trust-rail {
    left: 18px;
    width: calc(100vw - 36px);
  }

  .auth-card {
    margin-top: 0;
  }
}

/* Reference-aligned login hero: dark violet thunder Qilin */
.auth-screen {
  min-height: 100vh;
  grid-template-columns: minmax(680px, 1.16fr) minmax(410px, 0.84fr);
  align-items: start;
  gap: clamp(34px, 5vw, 82px);
  padding: clamp(26px, 3.8vw, 52px) clamp(36px, 5vw, 78px) 86px;
  color: #f8f5ff;
  background:
    linear-gradient(rgba(140, 93, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 93, 255, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(134, 76, 255, 0.28), transparent 32rem),
    radial-gradient(circle at 77% 30%, rgba(157, 107, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 18% 84%, rgba(84, 43, 180, 0.24), transparent 30rem),
    linear-gradient(135deg, #070914 0%, #111023 42%, #05050b 100%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto, auto;
}

.auth-screen *,
.auth-screen *::before,
.auth-screen *::after {
  letter-spacing: 0;
}

.auth-screen::before {
  inset: -12%;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(148, 91, 255, 0.28), transparent 22rem),
    linear-gradient(120deg, transparent 0 32%, rgba(160, 103, 255, 0.24) 36%, transparent 41% 100%),
    linear-gradient(142deg, transparent 0 64%, rgba(215, 195, 255, 0.15) 66%, transparent 69% 100%);
  mix-blend-mode: screen;
  opacity: 0.92;
}

.auth-screen::after {
  background:
    radial-gradient(circle at 56% 24%, rgba(165, 111, 255, 0.24), transparent 25rem),
    linear-gradient(128deg, transparent 0 44%, rgba(153, 93, 255, 0.48) 45%, transparent 47% 100%),
    linear-gradient(138deg, transparent 0 69%, rgba(218, 200, 255, 0.22) 70%, transparent 72% 100%);
  opacity: 0.7;
}

.auth-canvas {
  opacity: 0.78;
}

.qilin-3d-canvas {
  z-index: 1;
  opacity: 0.62;
  filter: drop-shadow(0 0 18px rgba(158, 99, 255, 0.68));
}

.qilin-3d-stage {
  z-index: 1;
  left: min(34vw, 560px);
  top: 0;
  width: min(780px, 52vw);
  height: min(470px, 54vh);
  opacity: 0.88;
  perspective: 1100px;
  filter: drop-shadow(0 0 34px rgba(143, 80, 255, 0.56));
}

.qilin-3d-stage::before,
.qilin-3d-stage::after {
  content: "";
  position: absolute;
  inset: -18% -8%;
  pointer-events: none;
  background:
    linear-gradient(121deg, transparent 0 23%, rgba(198, 173, 255, 0.7) 24%, transparent 25% 100%),
    linear-gradient(139deg, transparent 0 74%, rgba(136, 73, 255, 0.66) 75%, transparent 76% 100%);
  filter: blur(0.2px) drop-shadow(0 0 16px rgba(157, 107, 255, 0.78));
  mix-blend-mode: screen;
  animation: qilinLightningFlash 3.4s ease-in-out infinite;
}

.qilin-3d-stage::after {
  inset: 8% -10% -4% 14%;
  opacity: 0.52;
  transform: scaleX(-1);
  animation-delay: 1.1s;
}

.qilin-3d-stack {
  animation: qilinStageTurn 9.5s ease-in-out infinite;
}

.qilin-layer {
  object-position: center top;
  filter: drop-shadow(0 0 16px rgba(157, 107, 255, 0.78)) drop-shadow(0 0 34px rgba(88, 42, 185, 0.5));
}

.qilin-layer-back {
  opacity: 0.32;
  transform: translate3d(-26px, 18px, -130px) scale(1.02);
}

.qilin-layer-mid {
  opacity: 0.82;
  transform: translate3d(0, 0, 0) scale(1.02);
}

.qilin-layer-front {
  opacity: 0.48;
  filter: drop-shadow(0 0 20px rgba(225, 210, 255, 0.9)) drop-shadow(0 0 30px rgba(128, 68, 255, 0.72));
  transform: translate3d(30px, -16px, 128px) scale(1.04);
}

.auth-noise {
  opacity: 0.22;
  background-image:
    repeating-radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.auth-data-tags span {
  border-color: rgba(151, 96, 255, 0.18);
  color: rgba(217, 198, 255, 0.22);
  background: rgba(7, 7, 20, 0.56);
}

.auth-art {
  z-index: 3;
  align-self: start;
  max-width: 860px;
  gap: 14px;
  padding-top: 0;
}

.auth-brand {
  gap: 12px;
}

.auth-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(18, 14, 38, 0.7);
  border: 1px solid rgba(175, 132, 255, 0.52);
  box-shadow: 0 0 28px rgba(157, 107, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-brand strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.auth-brand small {
  margin-top: 4px;
  color: rgba(242, 235, 255, 0.86);
  font-size: 12px;
}

.auth-copy {
  margin-top: 8px;
}

.auth-copy .eyebrow {
  display: none;
}

.auth-copy h1 {
  max-width: 560px;
  margin: 0 0 8px;
  font-size: clamp(78px, 8.6vw, 126px);
  line-height: 0.96;
  font-weight: 950;
  color: transparent;
  background: linear-gradient(92deg, #ffffff 0%, #f4f0ff 45%, #ad83ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 34px rgba(141, 84, 255, 0.18);
}

.auth-copy h2 {
  margin: 0 0 20px;
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(30px, 3.05vw, 47px);
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 0 16px 54px rgba(157, 107, 255, 0.22);
}

.auth-copy p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(239, 231, 255, 0.78);
  font-size: 18px;
  line-height: 1.68;
}

.auth-flow {
  display: none;
}

.auth-preview-panel {
  max-width: 830px;
  gap: 14px;
  margin-top: 12px;
}

.auth-feature-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.auth-feature-row span {
  min-height: 62px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border-color: rgba(169, 124, 255, 0.22);
  background: linear-gradient(180deg, rgba(31, 26, 55, 0.72), rgba(15, 13, 31, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 46px rgba(0, 0, 0, 0.24);
}

.auth-feature-row span::before {
  content: attr(data-feature-icon);
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #d9c7ff;
  background: linear-gradient(135deg, rgba(134, 74, 255, 0.52), rgba(58, 37, 128, 0.54));
  box-shadow: 0 0 18px rgba(142, 77, 255, 0.34);
  font-weight: 900;
}

.auth-feature-row strong {
  color: #ffffff;
  font-size: 13px;
}

.auth-feature-row small {
  color: rgba(231, 220, 255, 0.6);
  font-size: 11px;
}

.auth-data-card {
  min-height: 306px;
  padding: 16px;
  border-radius: 12px;
  border-color: rgba(163, 119, 255, 0.24);
  background: linear-gradient(180deg, rgba(20, 18, 38, 0.78), rgba(11, 10, 24, 0.76));
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-data-head {
  margin-bottom: 12px;
  color: #ffffff;
}

.auth-data-head span {
  color: rgba(233, 224, 255, 0.62);
}

.auth-data-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.auth-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.auth-stat-grid span {
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 10px;
  border-color: rgba(162, 116, 255, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.auth-stat-grid small {
  color: rgba(235, 225, 255, 0.56);
  font-size: 12px;
}

.auth-stat-grid strong {
  color: #ffffff;
  font-size: 25px;
  line-height: 1.05;
}

.auth-stat-grid em {
  color: #7dffb1;
  font-size: 12px;
}

.auth-task-table {
  gap: 8px;
  color: rgba(241, 235, 255, 0.72);
  font-size: 11px;
}

.auth-task-table > div {
  display: grid;
  grid-template-columns: minmax(124px, 1fr) 94px 36px 50px 66px 28px;
  gap: 7px;
  align-items: center;
  min-height: 28px;
}

.auth-task-table > div > * {
  min-width: 0;
  white-space: nowrap;
}

.auth-task-table > div:first-child {
  color: rgba(241, 235, 255, 0.42);
}

.auth-task-table span:nth-child(5) {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.auth-task-table span:nth-child(2) {
  height: auto;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.auth-task-table i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7d40ff, #b78aff);
}

.auth-task-table em {
  color: #ffca62;
  font-style: normal;
  font-weight: 900;
}

.auth-task-table b {
  color: #b994ff;
  font-weight: 900;
}

.auth-ai-meter {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding-top: 12px;
}

.auth-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(16, 13, 31, 0.95) 0 54%, transparent 55%),
    conic-gradient(#9d6bff calc(var(--value) * 1%), rgba(255, 255, 255, 0.1) 0);
  box-shadow: 0 0 30px rgba(157, 107, 255, 0.28);
}

.auth-ring strong,
.auth-ring span {
  grid-area: 1 / 1;
}

.auth-ring strong {
  color: #ffffff;
  font-size: 24px;
}

.auth-ring span {
  transform: translateY(24px);
  color: rgba(238, 231, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
}

.auth-ai-meter ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-ai-meter li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 42px;
  gap: 9px;
  align-items: center;
  color: rgba(238, 231, 255, 0.64);
  font-size: 11px;
}

.auth-ai-meter li i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3cff, #b994ff);
  width: var(--w);
  box-shadow: 0 0 14px rgba(157, 107, 255, 0.34);
}

.auth-ai-meter li em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.auth-card {
  z-index: 4;
  align-self: start;
  justify-self: end;
  width: min(420px, 100%);
  margin-top: clamp(104px, 15.3vh, 146px);
  padding: 28px;
  border-radius: 8px;
  border-color: rgba(176, 136, 255, 0.54);
  background: linear-gradient(180deg, rgba(31, 27, 55, 0.9), rgba(14, 12, 28, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-card::before {
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(173, 128, 255, 0.7), rgba(255, 255, 255, 0.08), rgba(81, 45, 172, 0.34));
  opacity: 0.62;
}

.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 0 0 3px;
  border-bottom: 1px solid rgba(224, 210, 255, 0.14);
  background: transparent;
}

.auth-tab-indicator {
  left: 0;
  bottom: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #7d40ff, #b994ff);
  box-shadow: 0 0 28px rgba(157, 107, 255, 0.62);
}

.auth-card[data-mode="register"] .auth-tab-indicator {
  transform: translateX(100%);
}

.auth-card[data-mode="forgot"] .auth-tab-indicator {
  opacity: 0;
}

.auth-tab {
  min-height: 48px;
  color: rgba(235, 225, 255, 0.58);
  font-size: 16px;
  font-weight: 900;
}

.auth-tab.active {
  color: #ffffff;
}

.auth-entry-form {
  gap: 15px;
}

.auth-entry-form label span {
  color: rgba(235, 225, 255, 0.72);
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 850;
}

.auth-entry-form input {
  min-height: 42px;
  border-radius: 6px;
  color: #f8f5ff;
  border-color: rgba(219, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.auth-entry-form input::placeholder {
  color: rgba(232, 222, 255, 0.34);
}

.auth-entry-form input:focus {
  border-color: rgba(181, 139, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(157, 107, 255, 0.15), inset 0 0 18px rgba(157, 107, 255, 0.08);
}

.auth-code-row {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 0;
}

.auth-code-row input {
  border-radius: 6px 0 0 6px;
}

.auth-code-row .button.ghost {
  min-width: 112px;
  border-radius: 0 6px 6px 0;
  color: #c9a9ff;
  border-color: rgba(219, 206, 255, 0.2);
  background: rgba(157, 107, 255, 0.1);
  box-shadow: none;
}

.auth-meta-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-remember {
  display: inline-flex;
  width: auto;
  gap: 8px;
  color: rgba(235, 225, 255, 0.72);
}

.auth-remember input {
  width: 15px;
  height: 15px;
  min-height: 0;
  accent-color: #9d6bff;
}

.auth-forgot-inline {
  border: 0;
  padding: 0;
  color: #b994ff;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.auth-entry-form .button.primary,
.auth-submit {
  min-height: 50px;
  border-radius: 7px;
  border: 0;
  background: linear-gradient(135deg, #7837ff, #9d6bff);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(124, 60, 255, 0.34);
}

.auth-entry-form .button.ghost:not(.auth-code-row .button) {
  min-height: 48px;
  border-radius: 7px;
  color: #252033;
  background: linear-gradient(180deg, #ffffff, #eee9ff);
}

.auth-entry-form .button.ghost:not(.auth-code-row .button)::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: #4285f4;
  font-weight: 950;
}

.auth-hint {
  margin: 0;
  color: rgba(232, 222, 255, 0.58);
  font-size: 13px;
}

.auth-metrics {
  display: none;
}

.auth-trust-rail {
  left: clamp(36px, 5vw, 78px);
  right: auto;
  bottom: 14px;
  width: min(1220px, calc(100vw - 156px));
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid rgba(164, 118, 255, 0.18);
  background: rgba(13, 11, 27, 0.66);
  backdrop-filter: blur(18px);
  mask-image: none;
  overflow: hidden;
}

.auth-trust-rail strong {
  flex: 0 0 auto;
  color: rgba(250, 247, 255, 0.84);
  font-size: 15px;
}

.auth-trust-rail span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: rgba(246, 240, 255, 0.78);
  background: transparent;
  animation: none;
  font-size: 14px;
  font-weight: 850;
}

.auth-trust-rail span[data-platform-icon]::before {
  content: attr(data-platform-icon);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, #7d40ff, #b994ff);
  box-shadow: 0 0 18px rgba(157, 107, 255, 0.26);
  font-size: 11px;
  font-weight: 950;
}

@keyframes qilinLightningFlash {
  0%, 100% { opacity: 0.14; transform: translate3d(0, 0, 0); }
  12% { opacity: 0.74; }
  16% { opacity: 0.18; }
  48% { opacity: 0.46; transform: translate3d(7px, -4px, 0); }
  54% { opacity: 0.18; }
}

@media (max-width: 1280px) {
  .auth-screen {
    grid-template-columns: minmax(560px, 1fr) minmax(390px, 0.72fr);
    padding-left: 42px;
    padding-right: 42px;
  }

  .auth-data-body {
    grid-template-columns: 1fr;
  }

  .auth-ai-meter {
    display: none;
  }
}

@media (max-width: 1120px) {
  .auth-screen {
    grid-template-columns: 1fr;
    align-items: start;
    padding-bottom: 110px;
  }

  .qilin-3d-stage {
    left: 32%;
    width: 66vw;
    opacity: 0.62;
  }

  .auth-card {
    justify-self: start;
    margin-top: 24px;
  }

  .auth-trust-rail {
    left: 28px;
    width: calc(100vw - 56px);
  }
}

@media (max-width: 760px) {
  .auth-screen {
    height: auto;
    overflow: auto;
    padding: 20px 18px 96px;
  }

  .qilin-3d-stage {
    left: 12%;
    top: 78px;
    width: 112vw;
    height: 360px;
    opacity: 0.28;
  }

  .auth-copy {
    margin-top: 22px;
  }

  .auth-copy h1 {
    font-size: 58px;
  }

  .auth-copy h2 {
    font-size: 28px;
  }

  .auth-preview-panel {
    display: none;
  }

  .auth-card {
    width: 100%;
    padding: 20px;
    margin-top: 10px;
  }

  .auth-trust-rail {
    left: 18px;
    bottom: 14px;
    width: calc(100vw - 36px);
    gap: 14px;
    overflow-x: auto;
  }
}

@media (max-height: 780px) and (min-width: 920px) {
  .auth-screen {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding-bottom: 34px;
  }

  .auth-card {
    margin-top: clamp(88px, 12vh, 118px);
  }

  .auth-trust-rail {
    position: relative;
    grid-column: 1 / -1;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }
}

/* 2026-07-02 Thunder Qilin login preview v2 */
.auth-screen {
  --qilin-violet: #8f54ff;
  --qilin-violet-2: #b787ff;
  --qilin-panel: rgba(14, 13, 30, 0.72);
  --qilin-line: rgba(185, 142, 255, 0.22);
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  grid-template-columns: minmax(720px, 1fr) minmax(410px, 456px);
  align-items: start;
  gap: clamp(34px, 4.8vw, 76px);
  padding: clamp(30px, 4.2vw, 58px) clamp(44px, 5.2vw, 82px) 78px;
  background:
    linear-gradient(rgba(151, 93, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 93, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 74% 26%, rgba(143, 84, 255, 0.22), transparent 30rem),
    linear-gradient(135deg, #04050c 0%, #0b0820 44%, #05050b 100%);
  background-size: 58px 58px, 58px 58px, auto, auto;
  color: #fbf8ff;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 12, 0.16) 0%, rgba(5, 5, 12, 0.08) 35%, rgba(5, 5, 12, 0.34) 72%, rgba(5, 5, 12, 0.72) 100%),
    radial-gradient(circle at 44% 34%, rgba(162, 96, 255, 0.24), transparent 28rem),
    url("/assets/thunder-qilin-hero-v2.png") center center / cover no-repeat;
  opacity: 0.98;
  transform: scale(1.025);
  transform-origin: 48% 46%;
  animation: thunderHeroBreath 16s ease-in-out infinite;
  will-change: transform, filter, opacity;
  pointer-events: none;
}

.auth-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 41%, rgba(178, 126, 255, 0.42) 42%, transparent 43% 100%),
    linear-gradient(134deg, transparent 0 68%, rgba(226, 211, 255, 0.18) 69%, transparent 70% 100%),
    radial-gradient(circle at var(--mouse-x, 60%) var(--mouse-y, 30%), rgba(174, 117, 255, 0.28), transparent 20rem),
    linear-gradient(180deg, rgba(5, 5, 12, 0.04), rgba(5, 5, 12, 0.64));
  mix-blend-mode: screen;
  opacity: 0.76;
  pointer-events: none;
}

.auth-canvas {
  z-index: 1;
  opacity: 0.48;
  mix-blend-mode: screen;
}

.qilin-3d-canvas {
  z-index: 2;
  opacity: 0.36;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(150, 92, 255, 0.72));
  pointer-events: none;
}

.qilin-3d-stage {
  display: none;
}

.qilin-3d-stage::before {
  background:
    linear-gradient(119deg, transparent 0 25%, rgba(231, 216, 255, 0.9) 25.5%, transparent 26.5% 100%),
    linear-gradient(137deg, transparent 0 78%, rgba(147, 81, 255, 0.74) 79%, transparent 80% 100%);
  opacity: 0.62;
}

.qilin-3d-stage::after {
  opacity: 0.36;
}

.auth-noise {
  z-index: 2;
  opacity: 0.22;
  mix-blend-mode: overlay;
}

.auth-data-tags {
  z-index: 2;
}

.auth-data-tags span {
  border: 1px solid rgba(181, 130, 255, 0.16);
  color: rgba(229, 214, 255, 0.24);
  background: rgba(8, 8, 18, 0.54);
  box-shadow: 0 0 24px rgba(142, 82, 255, 0.12);
}

.auth-art {
  z-index: 4;
  width: min(860px, 100%);
  padding-top: 0;
  gap: 16px;
}

.auth-brand {
  gap: 12px;
  margin-bottom: clamp(28px, 4.4vh, 46px);
}

.auth-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(106, 58, 255, 0.68), rgba(19, 15, 36, 0.82));
  border: 1px solid rgba(212, 190, 255, 0.54);
  box-shadow: 0 0 0 5px rgba(128, 72, 255, 0.1), 0 0 34px rgba(154, 91, 255, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-brand strong {
  font-size: 27px;
  letter-spacing: 0;
}

.auth-brand small {
  color: rgba(240, 233, 255, 0.82);
  font-size: 12px;
}

.auth-copy h1 {
  max-width: 600px;
  margin-bottom: 12px;
  font-size: clamp(84px, 8.9vw, 132px);
  letter-spacing: 0;
  line-height: 0.9;
  background: linear-gradient(90deg, #ffffff 0%, #f4efff 42%, #b48cff 70%, #8350ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(159, 96, 255, 0.22));
}

.auth-copy h2 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(33px, 3.2vw, 50px);
  letter-spacing: 0;
  color: #ffffff;
}

.auth-copy p:not(.eyebrow) {
  max-width: 625px;
  color: rgba(244, 238, 255, 0.72);
  font-size: 18px;
  line-height: 1.74;
}

.auth-flow,
.auth-metrics {
  display: none;
}

.auth-preview-panel {
  max-width: 900px;
  margin-top: 18px;
  gap: 16px;
}

.auth-feature-row {
  width: min(820px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.auth-feature-row span {
  min-height: 66px;
  border-radius: 10px;
  border: 1px solid rgba(179, 132, 255, 0.22);
  background: linear-gradient(180deg, rgba(27, 22, 48, 0.72), rgba(12, 10, 25, 0.66));
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: thunderPanelFloat 8s ease-in-out infinite;
  animation-delay: calc(var(--feature-index, 0) * -1s);
}

.auth-feature-row span::before {
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(135deg, #6e35ff, #b789ff);
  box-shadow: 0 0 28px rgba(151, 84, 255, 0.42);
}

.auth-feature-row span:nth-child(1) {
  --feature-index: 0;
}

.auth-feature-row span:nth-child(2) {
  --feature-index: 1;
}

.auth-feature-row span:nth-child(3) {
  --feature-index: 2;
}

.auth-feature-row span:nth-child(4) {
  --feature-index: 3;
}

.auth-data-card {
  width: min(900px, 100%);
  min-height: 302px;
  border-radius: 12px;
  border: 1px solid rgba(172, 126, 255, 0.28);
  background: linear-gradient(180deg, rgba(16, 14, 30, 0.76), rgba(8, 8, 18, 0.72));
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: thunderDataPulse 7s ease-in-out infinite;
}

.auth-data-head,
.auth-task-table > div {
  border-color: rgba(255, 255, 255, 0.08);
}

.auth-stat-grid span {
  border: 1px solid rgba(191, 151, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.auth-stat-grid strong {
  font-weight: 950;
}

.auth-stat-grid em {
  color: #8effbd;
}

.auth-task-table em {
  color: #ffce67;
}

.auth-task-table b,
.auth-ai-meter li em {
  color: #b991ff;
}

.auth-card {
  z-index: 5;
  width: min(430px, 100%);
  margin-top: clamp(118px, 15.8vh, 158px);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(190, 150, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(35, 29, 62, 0.82), rgba(13, 11, 27, 0.88)),
    radial-gradient(circle at 34% 0%, rgba(171, 111, 255, 0.32), transparent 18rem);
  backdrop-filter: blur(28px);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.46), 0 0 80px rgba(116, 60, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  animation: thunderLoginGlow 6.4s ease-in-out infinite;
}

.auth-card::before {
  opacity: 0.74;
  background: linear-gradient(145deg, rgba(193, 154, 255, 0.78), rgba(255, 255, 255, 0.07), rgba(92, 50, 188, 0.18));
}

.auth-tabs {
  margin-bottom: 20px;
  min-height: 56px;
}

.auth-tab {
  color: rgba(238, 228, 255, 0.62);
  font-size: 16px;
}

.auth-tab.active {
  color: #fff;
}

.auth-tab-indicator {
  height: 3px;
  background: linear-gradient(90deg, #8348ff, #c6a5ff);
  box-shadow: 0 0 32px rgba(151, 84, 255, 0.8);
}

.auth-entry-form label span {
  color: rgba(239, 231, 255, 0.74);
  font-size: 13px;
}

.auth-entry-form input {
  min-height: 44px;
  border-radius: 6px;
  color: #fbf8ff;
  border: 1px solid rgba(219, 204, 255, 0.2);
  background: rgba(255, 255, 255, 0.064);
}

.auth-entry-form input:focus {
  border-color: rgba(193, 154, 255, 0.94);
  box-shadow: 0 0 0 3px rgba(151, 84, 255, 0.16), 0 0 24px rgba(151, 84, 255, 0.18);
}

.auth-code-row .button.ghost {
  color: #c9aaff;
  background: rgba(151, 84, 255, 0.12);
}

.auth-forgot-inline {
  color: #c4a0ff;
}

.auth-submit,
.auth-entry-form .button.primary {
  min-height: 52px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7132ff 0%, #8e54ff 48%, #a874ff 100%);
  box-shadow: 0 18px 50px rgba(126, 64, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-entry-form .button.ghost:not(.auth-code-row .button) {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #efeaff);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

.auth-hint {
  color: rgba(238, 228, 255, 0.6);
}

.auth-trust-rail {
  z-index: 5;
  left: clamp(44px, 5.2vw, 82px);
  bottom: 34px;
  width: min(1210px, calc(100vw - 164px));
  min-height: 64px;
  border: 1px solid rgba(176, 130, 255, 0.22);
  background: rgba(10, 9, 23, 0.68);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.auth-trust-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 30%, rgba(187, 144, 255, 0.16) 44%, transparent 58% 100%);
  transform: translateX(-100%);
  animation: thunderRailSweep 5.8s ease-in-out infinite;
  pointer-events: none;
}

.auth-trust-rail span[data-platform-icon]::before {
  background: linear-gradient(135deg, #7040ff, #b58dff);
}

@keyframes thunderHeroBreath {
  0%, 100% {
    transform: scale(1.025) translate3d(0, 0, 0);
    filter: saturate(1.03) brightness(0.98);
  }
  48% {
    transform: scale(1.055) translate3d(-10px, -4px, 0);
    filter: saturate(1.16) brightness(1.08);
  }
}

@keyframes thunderPanelFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    border-color: rgba(179, 132, 255, 0.2);
  }
  50% {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(205, 176, 255, 0.4);
  }
}

@keyframes thunderDataPulse {
  0%, 100% {
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.42), 0 0 0 rgba(137, 82, 255, 0), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.42), 0 0 42px rgba(137, 82, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

@keyframes thunderLoginGlow {
  0%, 100% {
    box-shadow: 0 34px 96px rgba(0, 0, 0, 0.46), 0 0 80px rgba(116, 60, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 34px 96px rgba(0, 0, 0, 0.46), 0 0 116px rgba(151, 84, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@keyframes thunderRailSweep {
  0%, 16% {
    transform: translateX(-100%);
  }
  58%, 100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1280px) {
  .auth-screen {
    grid-template-columns: minmax(570px, 1fr) minmax(380px, 420px);
    padding-left: 42px;
    padding-right: 42px;
  }

  .auth-copy h1 {
    font-size: clamp(74px, 8vw, 112px);
  }

  .auth-data-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .auth-screen {
    height: auto;
    overflow: auto;
    grid-template-columns: 1fr;
    padding-bottom: 112px;
  }

  .auth-screen::before {
    background-position: center top;
  }

  .auth-card {
    justify-self: start;
    margin-top: 20px;
  }

  .auth-trust-rail {
    left: 28px;
    bottom: 20px;
    width: calc(100vw - 56px);
  }
}

@media (max-width: 760px) {
  .auth-screen {
    padding: 20px 18px 102px;
  }

  .auth-screen::before {
    background-position: 34% top;
    opacity: 0.78;
  }

  .qilin-3d-canvas {
    opacity: 0.24;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .auth-copy h1 {
    font-size: 60px;
  }

  .auth-copy h2 {
    font-size: 29px;
  }

  .auth-preview-panel {
    display: none;
  }

  .auth-card {
    width: 100%;
    padding: 21px;
  }

  .auth-trust-rail {
    left: 18px;
    width: calc(100vw - 36px);
    overflow-x: auto;
  }
}
