:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --danger: #dc2626;
  --ok: #059669;
  --warn: #b45309;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.62;
}

.ghost-button.pending,
.primary-button.pending,
.icon-button.pending {
  cursor: default;
}

.ghost-button.pending:hover,
.primary-button.pending:hover,
.icon-button.pending:hover {
  transform: none;
  box-shadow: none;
}

[hidden] {
  display: none !important;
}

.landing-shell {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 56%, #f2f7ff 100%);
  background-size: 44px 44px, 44px 44px, auto;
  overflow: hidden;
}

.landing-3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0, 0, 0, 0.82) 76%, rgba(0, 0, 0, 0.52) 100%);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.76);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

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

.landing-brand strong,
.landing-brand span {
  display: block;
}

.landing-brand strong {
  font-size: 15px;
}

.landing-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
}

.landing-nav a:hover {
  background: #f3f6fb;
}

.landing-main {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 36px));
  display: grid;
  gap: 22px;
  margin: 0 auto;
  padding: 32px 0 56px;
}

.landing-hero {
  min-height: calc(100vh - 188px);
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  justify-content: start;
  gap: 34px;
  padding: 26px 0 18px;
  overflow: hidden;
}

.landing-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
}

.landing-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.landing-hero-copy {
  max-width: 720px;
}

.landing-hero-copy p {
  max-width: 610px;
  margin: 18px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.82;
}

.landing-dashboard {
  display: none;
  position: relative;
  width: min(452px, 100%);
  justify-self: end;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.landing-shell > .landing-main > .intro-metrics {
  display: none;
}

.landing-dashboard-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.landing-dashboard-head div {
  display: flex;
  gap: 7px;
}

.landing-dashboard-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.landing-dashboard-head strong {
  color: #475569;
  font-size: 12px;
}

.landing-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.landing-dashboard-grid div,
.landing-dashboard-list,
.landing-dashboard-chart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
}

.landing-dashboard-grid div {
  min-height: 80px;
  padding: 12px;
}

.landing-dashboard-grid span,
.landing-dashboard-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.landing-dashboard-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 21px;
}

.landing-dashboard-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
}

.landing-dashboard-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ok-dot { background: var(--ok); }
.blue-dot { background: var(--accent); }
.warn-dot { background: var(--warn); }

.landing-dashboard-chart {
  height: 108px;
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
}

.landing-dashboard-chart span {
  flex: 1;
  min-width: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), rgba(14, 165, 233, 0.24));
  animation: barPulse 3.2s ease-in-out infinite;
}

.landing-dashboard-chart span:nth-child(2n) {
  animation-delay: 0.35s;
}

.landing-dashboard-chart span:nth-child(3n) {
  animation-delay: 0.7s;
}

.landing-dashboard-update {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.landing-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.landing-float-card {
  position: absolute;
  z-index: 1;
  min-width: 176px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.landing-float-card span,
.landing-float-card strong {
  display: block;
}

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

.landing-float-card strong {
  margin-top: 6px;
  font-size: 14px;
}

.float-a {
  top: 16px;
  left: 0;
  animation: landingFloat 5.4s ease-in-out infinite;
}

.float-b {
  right: 0;
  top: 44%;
  animation: landingFloat 6.2s ease-in-out 0.4s infinite;
}

.float-c {
  left: 28px;
  bottom: 16px;
  animation: landingFloat 5.8s ease-in-out 0.8s infinite;
}

.landing-showcase,
.landing-security {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.landing-showcase,
.landing-security-card,
.landing-code-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.06);
}

.landing-showcase {
  padding: 22px;
}

.landing-section-copy {
  padding: 14px 18px 14px 8px;
  align-self: center;
}

.landing-section-copy h2,
.landing-security-card h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.landing-section-copy p,
.landing-security-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-steps div {
  min-height: 118px;
  padding: 15px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92)),
    #fbfdff;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.landing-steps div:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.landing-steps b {
  min-width: 38px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.landing-steps strong,
.landing-steps span {
  display: block;
}

.landing-steps strong {
  margin-top: 14px;
  font-size: 15px;
}

.landing-steps span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.landing-security {
  align-items: stretch;
}

.landing-security-card {
  padding: 28px 26px;
}

.landing-code-card {
  overflow: hidden;
}

.code-head {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.code-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.code-head strong {
  margin-left: auto;
  color: #475569;
  font-size: 12px;
}

.landing-integration-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.landing-integration-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
}

.landing-integration-list b {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 13px;
}

.landing-integration-list strong {
  font-size: 15px;
}

.landing-integration-list span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.landing-integration-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
  align-content: stretch;
}

.landing-integration-list.compact div {
  grid-template-columns: 1fr;
  min-height: 116px;
}

.landing-integration-list.compact b {
  grid-row: auto;
}

.landing-integration-list.compact strong {
  line-height: 1.45;
}

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

@keyframes barPulse {
  0%, 100% { opacity: 0.72; transform: scaleY(0.95); }
  50% { opacity: 1; transform: scaleY(1.04); }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-brand h1 {
  font-size: 24px;
}

.auth-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.auth-tabs button {
  height: 38px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.auth-tabs button.disabled,
.auth-tabs button:disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background: transparent;
  box-shadow: none;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.remember-line {
  min-height: 24px;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--text) !important;
}

.auth-form.registering .remember-line {
  display: none !important;
}

.auth-form input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
}

.auth-message,
.profile-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-message.error {
  color: var(--danger);
}

.user-chip {
  max-width: 180px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}

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

.brand-title {
  font-size: 16px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item.active {
  background: #eef4ff;
  color: var(--accent);
  font-weight: 700;
}

.side-metrics {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.side-metrics div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.side-metrics span {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.side-metrics small {
  color: var(--muted);
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.top-actions,
.toolbar,
.form-row,
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-shell:not([data-current-view="accounts"]) .account-only {
  display: none;
}

.accounts-workspace {
  display: block;
}

.accounts-main {
  min-width: 0;
}

.category-sidebar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
}

.category-head,
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-head strong {
  display: block;
  font-size: 14px;
}

.category-head strong::before {
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.category-head span,
.category-item b {
  min-width: 30px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
}

.category-list {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: auto;
  padding: 2px 4px;
  scrollbar-width: thin;
}

.category-item {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 180px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
}

.category-item .category-delete {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: -6px;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1;
}

.category-item .category-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.category-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item.active,
.category-item:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: #eef5ff;
  color: #1d4ed8;
}

.category-create {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.category-create input,
.inline-field input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.category-create input {
  width: 132px;
}

.category-create #deleteCategoryBtn {
  min-width: 112px;
}

.inline-field {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
}

.copy-hint {
  display: none;
}

.query-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.query-options,
.query-actions,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.query-options {
  flex: 1 1 430px;
}

.profile-actions {
  flex: 0 1 430px;
}

.query-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.query-options label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  color: #374151;
  font-size: 12px;
  white-space: nowrap;
}

.profile-actions input[type="text"],
.profile-actions input:not([type]) {
  width: 118px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.file-action,
.clear-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 12px;
}

.file-action input {
  display: none;
}

.toolbar,
.panel-head {
  justify-content: space-between;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 120px auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.advanced-select {
  margin-top: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  align-items: center;
  gap: 8px;
}

.advanced-select input,
.advanced-select .select-control {
  height: 38px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
}

.filter-control {
  min-height: 48px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.filter-control.emphasis {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.filter-control span {
  padding-left: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.filter-control.emphasis span {
  color: #2563eb;
}

.filter-control .select-control,
.filter-control input {
  height: 30px;
}

.bulk-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-actions button {
  min-width: 92px;
  white-space: nowrap;
}

.bulk-actions #selectedInfo {
  margin-left: auto;
}

#selectedInfo {
  min-width: 108px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.export-dialog {
  width: min(760px, calc(100% - 28px));
}

.export-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.export-config-grid .filter-control,
.export-config-grid .filter-control input,
.export-config-grid .filter-control select {
  min-width: 0;
  box-sizing: border-box;
}

.export-config-grid .filter-control input,
.export-config-grid .filter-control select {
  width: 100%;
  height: 36px;
}

.export-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--text);
  font-weight: 800;
}

.export-field-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.export-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.export-field-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.export-field-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.primary-button,
.ghost-button,
.icon-button {
  height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button,
.icon-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.ghost-button.danger {
  color: var(--danger);
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 18px;
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.intro-page {
  display: grid;
  gap: 18px;
}

.intro-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: stretch;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(5, 150, 105, 0.06) 42%, rgba(255, 255, 255, 0.94) 70%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy h2 {
  max-width: 760px;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.intro-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.intro-visual img {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.intro-device {
  width: min(430px, 100%);
  min-height: 300px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.46), rgba(5, 150, 105, 0.34)) border-box;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.intro-device-top {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.intro-device-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d1d5db;
}

.intro-device-top strong {
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
}

.intro-flow {
  display: grid;
  gap: 10px;
  padding: 16px 4px 10px;
}

.intro-flow div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.intro-flow b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
}

.intro-flow span {
  font-weight: 700;
}

.intro-scan {
  height: 10px;
  margin: 8px 4px 0;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.intro-scan span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  animation: introScan 2.6s ease-in-out infinite;
}

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

.intro-metrics div,
.intro-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.intro-metrics div {
  padding: 16px;
}

.intro-metrics strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.intro-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.intro-card {
  position: relative;
  min-height: 160px;
  padding: 20px 18px 18px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.intro-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.72);
  pointer-events: none;
}

.intro-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.intro-card .card-label {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.intro-card .card-icon {
  display: none;
}

.intro-card h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 14px;
}

@keyframes introScan {
  0% { transform: translateX(-110%); }
  45%, 55% { transform: translateX(70%); }
  100% { transform: translateX(250%); }
}

.search {
  flex: 1;
  min-width: 260px;
  max-width: 560px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.search span {
  color: var(--muted);
}

.search input,
.panel input,
.select-control,
textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.select-control {
  width: auto;
  min-width: 120px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
}

.pager {
  margin-top: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #fbfcfe;
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr:hover .check-col,
tbody tr:hover .account-cell {
  background: #f8fbff;
}

.check-col {
  width: 44px;
}

table th,
table td,
.check-col,
th.check-col,
.account-cell,
th:nth-child(2) {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
}

.account-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

.account-meta {
  min-width: 0;
}

.account-cell strong {
  display: block;
  font-size: 14px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-cell small,
.muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.credential-mini {
  color: #4b5563;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
  border: 1px solid var(--line);
}

.avatar.placeholder {
  display: grid;
  place-items: center;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.id-cell {
  min-width: 172px;
  font-variant-numeric: tabular-nums;
}

.time-cell {
  min-width: 142px;
  font-variant-numeric: tabular-nums;
}

.empty-cell {
  height: 160px;
  color: var(--muted);
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
}

.pill.ok {
  background: #ecfdf5;
  color: var(--ok);
}

.pill.warn {
  background: #fffbeb;
  color: var(--warn);
}

.pill.bad {
  background: #fef2f2;
  color: var(--danger);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  height: 30px;
  border-radius: 7px;
  padding: 0 10px;
  background: #f3f4f6;
  color: #374151;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 16px;
}

.parse-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.profile-layout,
.api-layout,
.billing-layout {
  display: grid;
  gap: 16px;
}

.api-layout,
.billing-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.task-center-layout {
  display: grid;
  gap: 16px;
}

.task-filter-row {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}

.task-filter-row .select-control {
  width: min(220px, 100%);
}

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

.task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.task-title-row,
.task-meta,
.task-reasons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.task-title-row strong {
  color: var(--accent);
}

.task-title-row code {
  color: var(--muted);
  font-size: 12px;
}

.task-main p {
  margin: 8px 0;
  color: #475467;
  line-height: 1.55;
}

.task-meta span,
.task-reasons span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 12px;
}

.task-reasons span {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.task-actions {
  display: flex;
  justify-content: flex-end;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.plan-card,
.billing-order {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.billing-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.billing-order .repay-order {
  min-width: 96px;
}

.plan-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.plan-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.plan-card h3 {
  margin: 8px 0 8px;
  font-size: 28px;
}

.plan-card p,
.plan-card li,
.billing-order span,
.billing-order small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.plan-card ul {
  margin: 12px 0;
  padding-left: 18px;
}

.pay-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
}

.billing-orders {
  display: grid;
  gap: 10px;
}

.billing-order strong,
.billing-order span,
.billing-order small {
  display: block;
}

.profile-hero {
  min-height: 132px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
}

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

.profile-avatar span {
  display: grid;
  place-items: center;
}

.avatar-upload input {
  display: none;
}

.avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero h2 {
  font-size: 22px;
}

.profile-hero p {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-subscription-line {
  max-width: min(720px, 100%);
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.profile-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  white-space: nowrap;
}

.profile-settings {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  gap: 16px;
}

.api-openid,
.token-once,
.token-create,
.api-token-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-openid,
.token-once {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.api-openid span,
.token-once span {
  color: var(--muted);
  font-size: 12px;
}

.api-openid code,
.token-once code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: Consolas, monospace;
}

.token-create {
  margin-top: 12px;
}

.token-create input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.api-token-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.api-token-item {
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.api-token-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.empty-api-token {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.api-doc-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.api-doc-block h3 {
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}

.api-doc-block h3::after {
  content: "收起";
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.api-doc-block.collapsed h3::after {
  content: "展开";
}

.api-doc-block.collapsed pre,
.api-doc-block.collapsed ol,
.api-doc-block.collapsed p {
  display: none;
}

.api-doc-block ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.api-doc pre {
  min-height: 260px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e5e7eb;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

#apiResponseExample {
  min-height: 220px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel.compact {
  align-self: start;
  display: grid;
  gap: 13px;
}

.panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.panel input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
}

.inline-field {
  margin-top: 16px;
  max-width: 280px;
}

.import-target-row {
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}

.import-target-row .inline-field {
  width: min(260px, 100%);
  max-width: none;
  margin-top: 0;
}

.import-target-row .ghost-button {
  height: 40px;
}

textarea {
  margin: 12px 0;
  min-height: 330px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.55;
  font-family: Consolas, "Microsoft YaHei UI", monospace;
  background: #fcfdff;
}

#cardKeyInput {
  min-height: 240px;
}

.parse-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.result-box {
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fcfdff;
  color: var(--muted);
  line-height: 1.6;
}

.mini-result-list {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.ok-text {
  color: var(--ok);
}

.bad-text {
  color: var(--danger);
}

.toggle-line {
  min-height: 42px;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text) !important;
  background: #fcfdff;
}

.options-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.options-grid label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fcfdff;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stepper button,
.stepper span {
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
}

.stepper span {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

dialog {
  width: min(1120px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
}

.password-dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

.password-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px) saturate(1.2);
}

.password-dialog form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.password-dialog-head {
  margin-bottom: 0;
}

.password-dialog-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.password-dialog-head h2 {
  font-size: 22px;
}

.password-dialog-body {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.password-dialog-body label {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.password-dialog-body label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.password-dialog-body input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.password-dialog-body input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.password-dialog-body input:hover {
  border-color: #c8d4e5;
  background: #fcfdff;
}

.password-dialog-body input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 28px rgba(37, 99, 235, 0.08);
}

.password-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.password-dialog-actions .ghost-button,
.password-dialog-actions .primary-button {
  min-width: 108px;
}

.context-menu,
.account-menu {
  position: fixed;
  z-index: 20;
  display: none;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.context-menu.open,
.account-menu.open {
  display: grid;
}

.context-menu button,
.account-menu button {
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.context-menu button:hover,
.account-menu button:hover {
  background: #f3f4f6;
}

.account-menu button:last-child {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--danger);
}

.query-method-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.query-method-overlay[hidden] {
  display: none;
}

.action-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
}

.action-alert-overlay[hidden] {
  display: none;
}

.action-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

.action-alert-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.action-alert-dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.action-alert-dialog p {
  margin: 0 0 20px;
  color: #475569;
  line-height: 1.75;
}

.action-alert-dialog .primary-button {
  min-width: 132px;
}

.query-method-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(1.12);
}

.query-method-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.20);
}

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

.query-method-grid label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.silent-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 90;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.detail-list {
  display: grid;
  gap: 8px;
  max-height: 64vh;
  overflow: auto;
}

.detail-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 68vh;
  overflow: auto;
}

.inventory-card {
  min-height: 168px;
  display: grid;
  grid-template-rows: 86px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inventory-card img {
  width: 100%;
  height: 84px;
  object-fit: contain;
}

.inventory-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 38px;
  overflow: hidden;
  font-size: 13px;
  white-space: normal;
}

.inventory-card small {
  display: block;
  min-height: 30px;
  overflow: hidden;
}

.detail-note {
  margin: 10px 0 0;
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px;
    flex-direction: row;
    align-items: center;
    overflow: auto;
  }

  .nav {
    grid-auto-flow: column;
  }

  .side-metrics {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .toolbar,
  .panel-head {
    align-items: stretch;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .query-bar {
    grid-template-columns: 1fr;
  }

  .search {
    max-width: none;
  }

  .select-control {
    width: 100%;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bulk-actions {
    justify-content: flex-start;
  }

  #selectedInfo {
    text-align: left;
  }

  .pager {
    justify-content: stretch;
  }

  .pager span {
    flex: 1;
    text-align: center;
  }

  .import-layout,
  .parse-layout,
  .settings-layout,
  .api-layout,
  .billing-layout,
  .profile-settings,
  .parse-result,
  .options-grid,
  .intro-hero,
  .intro-grid,
  .landing-showcase,
  .landing-security {
    grid-template-columns: 1fr;
  }

  .intro-hero {
    min-height: 0;
    padding: 20px;
  }

  .intro-copy h2 {
    font-size: 34px;
  }

  .intro-visual {
    min-height: 300px;
  }

  .intro-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .profile-hero {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .profile-hero .ghost-button {
    grid-column: 1 / -1;
  }

.query-actions {
    justify-content: space-between;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav nav {
    width: 100%;
    overflow-x: auto;
  }

  .landing-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 18px;
  }

  .landing-hero h1 {
    font-size: 42px;
    max-width: 560px;
  }

  .landing-dashboard {
    justify-self: stretch;
  }

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

  .landing-integration-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .query-bar {
    display: flex;
  }

  .query-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .category-sidebar {
    grid-template-columns: 1fr;
  }

  .category-create input,
  .category-create button {
    flex: 1 1 140px;
  }

  .query-options,
  .profile-actions,
  .query-actions {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .query-actions {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .landing-main {
    width: min(100% - 20px, 1180px);
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .landing-nav {
    padding: 12px;
    gap: 10px;
  }

  .landing-nav nav {
    gap: 4px;
    padding-bottom: 2px;
  }

  .landing-nav a,
  .landing-nav .primary-button {
    padding: 0 10px;
    white-space: nowrap;
  }

  .landing-nav a {
    display: none;
  }

  .landing-nav .primary-button {
    margin-left: auto;
  }

  .intro-copy h2 {
    font-size: 25px;
  }

  .intro-copy p {
    font-size: 14px;
  }

  .landing-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .landing-hero-copy p {
    font-size: 14px;
    line-height: 1.72;
  }

  .intro-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .intro-metrics div {
    padding: 12px;
  }

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

  .intro-visual {
    min-height: 260px;
  }

  .landing-float-card {
    position: static;
    min-width: 0;
    margin-top: 8px;
    animation: none;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .landing-dashboard-grid div {
    min-height: 66px;
    padding: 9px;
  }

  .landing-dashboard-grid span,
  .landing-dashboard-list em {
    font-size: 11px;
  }

  .landing-dashboard-grid strong {
    margin-top: 8px;
    font-size: 18px;
  }

  .landing-dashboard-list {
    padding: 8px;
  }

  .landing-dashboard-list div {
    min-height: 34px;
    gap: 7px;
  }

  .landing-dashboard-chart {
    height: 78px;
    gap: 7px;
    padding: 10px;
  }

  .landing-section-copy h2,
  .landing-security-card h2 {
    font-size: 22px;
  }

  .landing-showcase,
  .landing-security-card {
    padding: 16px;
  }

  .landing-section-copy {
    padding: 0;
  }

  .landing-tags {
    gap: 6px;
    margin-top: 18px;
  }

  .landing-tags span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .intro-card {
    min-height: 0;
    padding: 16px;
  }

  .intro-card .card-label {
    margin-top: 12px;
  }

  .landing-integration-list {
    padding: 12px;
  }

  .landing-integration-list.compact div {
    min-height: 84px;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .auth-shell {
    align-items: start;
    padding: 16px;
  }

  .auth-card {
    margin-top: 8vh;
    padding: 22px;
  }

  .app-shell {
    background: var(--bg);
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .brand {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .nav {
    width: 100%;
    flex: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 1 0 auto;
    min-width: 82px;
    height: 38px;
    padding: 0 12px;
    text-align: center;
    white-space: nowrap;
  }

  .main {
    padding: 14px 10px 28px;
  }

  .topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .topbar p {
    margin-top: 5px;
    font-size: 13px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
  }

  .user-chip {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .top-actions .account-only {
    grid-column: auto;
  }

  .top-actions .primary-button.account-only {
    grid-column: 1 / -1;
  }

  .category-sidebar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 2px;
  }

  .category-item {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .category-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .category-create input {
    width: 100%;
  }

  .category-create #deleteCategoryBtn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .query-bar,
  .advanced-select,
  .panel,
  .profile-hero {
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  }

  .query-bar {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

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

  .query-options label {
    justify-content: center;
    padding: 0 8px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .profile-actions input[type="text"],
  .profile-actions input:not([type]),
  .profile-actions .file-action,
  .profile-actions .clear-action {
    width: 100%;
    justify-content: center;
  }

  .billing-order {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .billing-order .repay-order {
    width: 100%;
  }

  .query-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
    gap: 8px;
    justify-content: stretch;
  }

  .query-actions .stepper,
  .query-actions .ghost-button {
    width: 100%;
  }

  .query-actions .stepper {
    justify-content: space-between;
  }

  .query-actions .stepper button,
  .query-actions .stepper span {
    width: 33.333%;
  }

  .toolbar {
    gap: 8px;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .toolbar .ghost-button,
  .toolbar .select-control {
    width: 100%;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-control {
    min-height: 58px;
  }

  .bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bulk-actions button,
  #selectedInfo {
    width: 100%;
    min-width: 0;
  }

  #selectedInfo {
    grid-column: 1 / -1;
    text-align: center;
  }

  .pager {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 84px;
    gap: 8px;
    margin: 10px 0;
  }

  .pager .ghost-button {
    padding: 0 8px;
  }

  .pager span {
    align-self: center;
    font-size: 12px;
  }

  .table-wrap {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap::before {
    content: "左右滑动查看更多数据";
    position: sticky;
    left: 0;
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfe;
    color: var(--muted);
    font-size: 12px;
  }

  table {
    min-width: 2220px;
  }

  .check-col,
  th.check-col,
  .account-cell,
  th:nth-child(2) {
    box-shadow: none;
  }

  tbody tr:hover .check-col,
  tbody tr:hover .account-cell {
    background: transparent;
  }

  th,
  td {
    padding: 9px 10px;
  }

  .account-main {
    min-width: 240px;
  }

  .account-cell strong {
    max-width: 210px;
  }

  .import-layout,
  .parse-layout,
  .settings-layout {
    gap: 12px;
  }

  .panel {
    padding: 14px;
  }

  .panel-head,
  .form-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .panel-head h2 {
    width: 100%;
  }

  .form-row > * {
    flex: 1 1 140px;
  }

  textarea {
    min-height: 230px;
    font-size: 13px;
  }

  .api-layout {
    gap: 12px;
  }

  .api-openid,
  .token-once,
  .token-create,
  .api-token-item {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .api-openid button,
  .token-once button,
  .token-create button,
  .api-token-item button {
    width: 100%;
  }

  .api-doc pre {
    min-height: 160px;
    max-height: 320px;
    font-size: 11px;
  }

  .profile-hero {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .profile-hero-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .profile-hero-actions .ghost-button,
  .profile-hero-actions .avatar-upload {
    flex: 1 1 130px;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .profile-hero h2 {
    font-size: 19px;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .profile-grid div {
    min-height: 76px;
    padding: 12px;
  }

  .profile-grid strong {
    font-size: 14px;
  }

  dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding: 14px;
  }

  .password-dialog {
    padding: 0;
  }

  .password-dialog form {
    padding: 18px;
  }

  .password-dialog-body {
    padding: 12px;
  }

  .password-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .password-dialog-actions .ghost-button,
  .password-dialog-actions .primary-button {
    width: 100%;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 70vh;
  }

  .detail-list {
    max-height: 70vh;
  }

  .account-menu {
    left: 10px !important;
    right: 10px;
    top: auto !important;
    bottom: 10px;
    width: auto;
    max-height: 70vh;
    overflow: auto;
  }

  .account-menu button {
    min-height: 42px;
    height: auto;
  }
}

.lottery-layout {
  display: block;
}

.lottery-layout-wide .lottery-stage,
.lottery-stage {
  overflow: hidden;
  min-height: 420px;
}

.lottery-strip-wrap {
  position: relative;
  width: min(960px, 100%);
  margin: 22px auto 12px;
  padding: 36px 0 12px;
}

.lottery-window {
  position: relative;
  overflow: hidden;
  height: 168px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #fff 0, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, #fff 100%),
    linear-gradient(180deg, #f8fafc, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 22px 64px rgba(15, 23, 42, .08);
}

.lottery-window::before,
.lottery-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 82px;
  pointer-events: none;
}

.lottery-window::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.lottery-window::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.lottery-pointer {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 26px;
  height: 38px;
  transform: translateX(-50%);
  z-index: 5;
  background: #111827;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .22));
}

.lottery-wheel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  height: 100%;
  padding: 18px calc(50% - 72px);
  transform: translate3d(0, 0, 0);
  transition: transform 1100ms cubic-bezier(.16, .86, .22, 1);
  will-change: transform;
}

.lottery-wheel.spinning {
  transition-duration: 1300ms;
}

.lottery-prize {
  position: relative;
  flex: 0 0 144px;
  width: 144px;
  min-width: 144px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.lottery-prize:nth-child(3n + 1) {
  background: linear-gradient(180deg, #eff6ff, #fff);
}

.lottery-prize:nth-child(3n + 2) {
  background: linear-gradient(180deg, #ecfdf5, #fff);
}

.lottery-prize span {
  padding: 0 12px;
  line-height: 1.35;
}

.lottery-center {
  display: block;
  width: auto;
  min-width: 154px;
  height: 44px;
  margin: 18px auto 0;
  border-radius: 11px;
  border: 0;
  background: #111827;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  cursor: pointer;
}

.lottery-center:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.lottery-status {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.lottery-history {
  display: grid;
  gap: 10px;
  width: min(960px, 100%);
  margin: 16px auto 0;
}

.lottery-history div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.lottery-history strong,
.lottery-history span {
  display: block;
}

.lottery-history span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .lottery-layout-wide .lottery-stage,
  .lottery-stage {
    min-height: 360px;
  }

  .lottery-strip-wrap {
    padding-top: 32px;
  }

  .lottery-window {
    height: 138px;
    border-radius: 14px;
  }

  .lottery-window::before,
  .lottery-window::after {
    width: 42px;
  }

  .lottery-wheel {
    gap: 10px;
    padding: 16px calc(50% - 58px);
  }

  .lottery-prize {
    flex-basis: 116px;
    width: 116px;
    min-width: 116px;
    height: 104px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .landing-brand span,
  .brand-subtitle {
    display: none;
  }

  .landing-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .landing-dashboard-list div {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .landing-dashboard-list em {
    grid-column: 2;
  }

  .intro-metrics,
  .profile-grid,
  .profile-actions,
  .query-options,
  .bulk-actions {
    grid-template-columns: 1fr;
  }

  .query-actions,
  .top-actions {
    grid-template-columns: 1fr;
  }

  .icon-button {
    width: 100%;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

/* ui-polish-2026-05 */
:root {
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-soft: 0 16px 44px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.12);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.94);
}

body {
  background:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(20, 184, 166, 0.08), transparent 30%),
    var(--bg);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.landing-shell {
  background:
    linear-gradient(rgba(15, 23, 42, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef7ff 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.landing-nav {
  min-height: 68px;
  border-bottom-color: rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.landing-nav a,
.landing-nav .primary-button,
.auth-tabs button,
.nav-item,
.ghost-button,
.primary-button,
.icon-button {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.landing-hero {
  min-height: calc(100vh - 160px);
}

.landing-hero-copy {
  padding: clamp(18px, 2.8vw, 34px) 0;
}

.landing-hero h1 {
  max-width: 680px;
  font-size: clamp(34px, 4.8vw, 52px);
  letter-spacing: 0;
}

.landing-hero-copy p {
  color: #526170;
}

.landing-tags span,
.intro-kicker,
.card-label,
.user-chip {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.intro-card .card-label,
.landing-section-copy .intro-kicker,
.landing-security-card .intro-kicker,
.intro-copy .intro-kicker {
  width: auto !important;
  max-width: max-content;
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
}

.landing-showcase,
.landing-security-card,
.landing-code-card,
.intro-card,
.auth-card,
.panel,
.query-bar,
.advanced-select,
.toolbar,
.category-sidebar,
.profile-hero,
.payment-package,
.api-card,
.settings-card {
  position: relative;
  border-color: rgba(203, 213, 225, 0.78);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--glass-strong), rgba(248, 250, 252, 0.9));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.landing-showcase::before,
.landing-security-card::before,
.landing-code-card::before,
.intro-card::before,
.panel::before,
.query-bar::before,
.advanced-select::before,
.category-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.34), rgba(20, 184, 166, 0.24), transparent);
  pointer-events: none;
}

.intro-card:hover,
.panel:hover,
.landing-showcase:hover,
.landing-security-card:hover,
.landing-code-card:hover {
  border-color: rgba(148, 163, 184, 0.86);
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    linear-gradient(rgba(15, 23, 42, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.024) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #f4f8ff 44%, #f7fbf8 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right-color: rgba(203, 213, 225, 0.76);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.12);
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.04);
}

.brand-mark {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #101828, #24324a);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.nav {
  gap: 7px;
}

.nav-item {
  height: 40px;
  border: 1px solid transparent;
  color: #4b5563;
  font-weight: 650;
}

.nav-item:hover {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(248, 250, 252, 0.86);
  color: #111827;
}

.nav-item.active {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, #edf5ff, #f0fdfa);
  color: #1459c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 24px rgba(37, 99, 235, 0.08);
}

.side-metrics div {
  border-color: rgba(203, 213, 225, 0.78);
  background: rgba(248, 250, 252, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main {
  padding: 24px clamp(18px, 2.4vw, 34px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -24px calc(clamp(18px, 2.4vw, 34px) * -1) 18px;
  padding: 18px clamp(18px, 2.4vw, 34px) 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
}

.topbar h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-button,
.ghost-button,
.icon-button {
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, #111827, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.ghost-button,
.icon-button {
  border-color: rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
}

.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.9);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-sidebar {
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 12px;
  padding: 12px;
}

.category-list {
  gap: 8px;
}

.category-item {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.category-item.active,
.category-item:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.category-create input,
.panel input,
.panel select,
.panel textarea,
.toolbar input,
.select-control,
.filter-control input,
.filter-control select {
  border-color: rgba(203, 213, 225, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.category-create input:focus,
.panel input:focus,
.panel select:focus,
.panel textarea:focus,
.toolbar input:focus,
.select-control:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

.query-bar {
  gap: 12px;
  padding: 14px;
}

.query-options {
  gap: 8px;
}

.query-options label,
.clear-action,
.file-action,
.filter-control {
  border-color: rgba(203, 213, 225, 0.84);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.query-options label:hover,
.clear-action:hover,
.file-action:hover,
.filter-control:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #fff;
}

.advanced-select {
  padding: 14px;
}

.filter-grid {
  gap: 9px;
}

.copy-hint {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0;
  padding: 8px 12px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #64748b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.table-wrap {
  border-color: rgba(203, 213, 225, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(248, 250, 252, 0.96);
  color: #64748b;
  font-weight: 800;
}

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

tbody tr {
  transition: background 0.14s ease, transform 0.14s ease;
}

tbody tr:hover td {
  background: #f8fbff;
}

.account-cell {
  background: inherit !important;
}

.account-cell strong {
  color: #0f172a;
}

.account-meta {
  color: #64748b;
}

.pager {
  align-items: center;
  padding: 2px 0;
}

dialog,
.password-dialog,
.action-alert-dialog,
.query-method-dialog {
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.22);
}

dialog::backdrop,
.password-dialog::backdrop {
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px) saturate(1.08);
}

.silent-toast {
  border-color: rgba(203, 213, 225, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.context-menu,
.account-menu {
  border-color: rgba(203, 213, 225, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.context-menu button,
.account-menu button {
  border-radius: 7px;
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    margin: 0 0 16px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
  }

  .app-shell {
    background-size: 28px 28px, 28px 28px, auto;
  }

  .main {
    padding: 12px;
  }

  .sidebar {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  }

  .category-sidebar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .category-head,
  .category-create {
    min-width: 0;
  }

  .category-list {
    padding: 2px 0 4px;
  }

  .copy-hint {
    width: 100%;
    border-radius: var(--radius-sm);
    line-height: 1.55;
  }

  .advanced-select,
  .query-bar,
  .toolbar,
  .panel {
    border-radius: var(--radius-md);
  }

  .landing-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .landing-hero h1 {
    font-size: clamp(31px, 10vw, 42px);
  }
}

/* ui-polish-v2: cleaner enterprise theme */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --text: #111827;
  --muted: #667085;
  --line: #e3e8ef;
  --accent: #155eef;
  --accent-strong: #1247b8;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.07);
  --shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.055);
  --shadow-hover: 0 18px 44px rgba(16, 24, 40, 0.09);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
}

body,
.app-shell {
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 42%, #f4f7fb 100%);
}

.landing-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.94) 54%, #f5f8fc 100%);
}

.landing-3d {
  opacity: 0.34;
  filter: saturate(0.86) contrast(0.94);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 42%, rgba(0, 0, 0, 0.28) 82%, transparent 100%);
}

.landing-nav {
  min-height: 66px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.045);
}

.landing-brand strong,
.brand-title {
  color: #111827;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.landing-main {
  width: min(1180px, calc(100% - 40px));
  gap: 18px;
  padding: 20px 0 54px;
}

.landing-hero {
  min-height: min(620px, calc(100vh - 92px));
  padding: clamp(46px, 8vw, 92px) 0 28px;
  align-items: center;
}

.landing-hero-copy {
  max-width: 760px;
  padding: 0;
}

.landing-hero h1 {
  max-width: 720px;
  color: #101828;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 850;
}

.landing-hero-copy p {
  max-width: 660px;
  margin-top: 20px;
  color: #475467;
  font-size: 17px;
  line-height: 1.78;
}

.landing-tags {
  gap: 8px;
  margin-top: 20px;
}

.landing-tags span,
.intro-kicker,
.card-label,
.user-chip {
  border-color: #e4e7ec;
  background: rgba(255, 255, 255, 0.92);
  color: #344054;
  box-shadow: none;
}

.landing-showcase,
.landing-security-card,
.landing-code-card,
.intro-card,
.auth-card,
.panel,
.query-bar,
.advanced-select,
.toolbar,
.category-sidebar,
.profile-hero,
.payment-package,
.api-card,
.settings-card,
.intro-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.landing-showcase::before,
.landing-security-card::before,
.landing-code-card::before,
.intro-card::before,
.panel::before,
.query-bar::before,
.advanced-select::before,
.category-sidebar::before {
  display: none;
}

.landing-showcase,
.landing-security {
  gap: 16px;
}

.landing-showcase,
.landing-security-card,
.landing-code-card {
  padding: clamp(18px, 2.4vw, 30px);
}

.landing-steps div,
.landing-integration-list div {
  border-color: #e4e7ec;
  background: #fbfcfe;
  border-radius: 8px;
}

.intro-grid {
  gap: 12px;
}

.intro-card {
  min-height: 144px;
  padding: 18px;
}

.intro-card:hover,
.panel:hover,
.landing-showcase:hover,
.landing-security-card:hover,
.landing-code-card:hover {
  transform: translateY(-1px);
  border-color: #d0d5dd;
  box-shadow: var(--shadow-hover);
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid #e4e7ec;
  box-shadow: 8px 0 26px rgba(16, 24, 40, 0.035);
}

.nav-item {
  height: 40px;
  padding: 0 12px;
  color: #475467;
  border-radius: 8px;
}

.nav-item:hover {
  border-color: #e4e7ec;
  background: #f8fafc;
}

.nav-item.active {
  color: #155eef;
  background: #eef4ff;
  border-color: #d1e0ff;
  box-shadow: none;
}

.side-metrics div {
  background: #f8fafc;
  border-color: #e4e7ec;
  box-shadow: none;
}

.main {
  padding: 24px clamp(18px, 2.2vw, 30px);
}

.topbar {
  position: static;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.topbar h1 {
  color: #101828;
  font-size: clamp(23px, 2.1vw, 28px);
}

.topbar p {
  color: #667085;
}

.primary-button {
  background: #155eef;
  box-shadow: 0 10px 22px rgba(21, 94, 239, 0.18);
}

.primary-button:hover {
  background: #1247b8;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.2);
}

.ghost-button,
.icon-button {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
  box-shadow: none;
}

.ghost-button:hover,
.icon-button:hover {
  border-color: #98a2b3;
  background: #f9fafb;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.category-sidebar {
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.category-head strong::before {
  border-radius: 999px;
  background: #155eef;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.09);
}

.category-item {
  background: #fff;
  border-color: #e4e7ec;
  box-shadow: none;
}

.category-item.active,
.category-item:hover {
  color: #155eef;
  background: #eef4ff;
  border-color: #d1e0ff;
}

.query-bar,
.advanced-select,
.toolbar,
.panel {
  padding: 14px;
}

.query-options label,
.clear-action,
.file-action,
.filter-control {
  background: #fff;
  border-color: #e4e7ec;
  box-shadow: none;
}

.copy-hint {
  border-color: #e4e7ec;
  background: #fff;
  color: #667085;
  box-shadow: none;
}

.table-wrap {
  background: #fff;
  box-shadow: var(--shadow);
}

th {
  background: #f8fafc;
  color: #667085;
  font-weight: 750;
}

td {
  background: #fff;
  border-bottom-color: #eef2f6;
}

tbody tr:hover td {
  background: #f9fbff;
}

dialog,
.password-dialog,
.action-alert-dialog,
.query-method-dialog,
.context-menu,
.account-menu {
  border-color: #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(16, 24, 40, 0.18);
}

dialog::backdrop,
.password-dialog::backdrop {
  background: rgba(16, 24, 40, 0.24);
  backdrop-filter: blur(12px);
}

@media (max-width: 760px) {
  .landing-main {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .landing-nav {
    padding: 10px 12px;
  }

  .landing-hero {
    min-height: auto;
    padding: 42px 0 24px;
  }

  .landing-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .landing-hero-copy p {
    font-size: 15px;
  }

  .sidebar {
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
  }

  .query-bar,
  .advanced-select,
  .toolbar,
  .panel,
  .category-sidebar {
    padding: 12px;
  }

  .task-item {
    grid-template-columns: 1fr;
  }

  .task-actions {
    justify-content: stretch;
  }

  .task-actions .ghost-button {
    width: 100%;
  }

  .export-config-grid,
  .export-field-grid {
    grid-template-columns: 1fr;
  }

  .export-field-head {
    align-items: stretch;
    flex-direction: column;
  }
}

/* lottery-ui-v3: placed last so the activity keeps the polished app skin */
#view-lottery {
  --lottery-blue: #155eef;
  --lottery-ink: #101828;
  --lottery-soft: #f8fbff;
}

#view-lottery .lottery-layout {
  display: block;
}

#view-lottery .lottery-stage.panel {
  position: relative;
  min-height: 430px;
  padding: clamp(18px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(209, 224, 255, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.09), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 60px rgba(16, 24, 40, 0.08);
}

#view-lottery .lottery-stage.panel::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.11), transparent 68%);
  pointer-events: none;
}

#view-lottery .panel-head {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  margin-bottom: 10px;
}

#view-lottery .panel-head h2 {
  margin: 0 0 6px;
  color: var(--lottery-ink);
  font-size: 22px;
  letter-spacing: 0;
}

#view-lottery .panel-head .muted {
  max-width: 560px;
  color: #667085;
}

#view-lottery .lottery-strip-wrap {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 28px auto 0;
  padding: 42px 0 0;
}

#view-lottery .lottery-window {
  position: relative;
  height: 178px;
  overflow: hidden;
  border: 1px solid #d1e0ff;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 0, rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, #fff 100%),
    linear-gradient(180deg, #eef4ff 0%, #ffffff 58%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 24px 58px rgba(21, 94, 239, 0.13);
}

#view-lottery .lottery-window::before,
#view-lottery .lottery-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 98px;
  pointer-events: none;
}

#view-lottery .lottery-window::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

#view-lottery .lottery-window::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

#view-lottery .lottery-pointer {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 6;
  width: 30px;
  height: 42px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #101828, #344054);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 10px 14px rgba(16, 24, 40, 0.26));
}

#view-lottery .lottery-pointer::after {
  content: "";
  position: absolute;
  inset: 5px 9px 17px;
  border-radius: 99px;
  background: #ffffff;
  opacity: 0.72;
}

#view-lottery .lottery-wheel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  height: 100%;
  padding: 20px calc(50% - 74px);
  transform: translate3d(0, 0, 0);
  transition: transform 1200ms cubic-bezier(.16, .86, .22, 1);
  will-change: transform;
}

#view-lottery .lottery-wheel.idle {
  animation: lotteryMarquee var(--lottery-loop-duration, 20s) linear infinite;
  transition: none;
}

#view-lottery .lottery-wheel.spinning {
  animation: none;
  transition-duration: 1380ms;
}

@keyframes lotteryMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--lottery-loop-distance, 1440px)), 0, 0);
  }
}

#view-lottery .lottery-prize {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
  min-width: 148px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d1e0ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: #101828;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.09);
}

#view-lottery .lottery-prize::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 42%);
}

#view-lottery .lottery-prize:nth-child(3n + 1) {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

#view-lottery .lottery-prize:nth-child(3n + 2) {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border-color: #fed7aa;
}

#view-lottery .lottery-prize span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  line-height: 1.35;
}

#view-lottery .lottery-prize-loading {
  opacity: 0.78;
}

#view-lottery .lottery-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 166px;
  height: 46px;
  margin: 20px auto 0;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #155eef, #101828);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(21, 94, 239, 0.26);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#view-lottery .lottery-center:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 42px rgba(21, 94, 239, 0.3);
}

#view-lottery .lottery-center:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

#view-lottery .lottery-status {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  margin: 16px auto 0;
  color: #667085;
  text-align: center;
  line-height: 1.7;
}

#view-lottery .lottery-history {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(680px, 100%);
  margin: 14px auto 0;
}

#view-lottery .lottery-history div {
  padding: 13px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
}

#view-lottery .lottery-history strong,
#view-lottery .lottery-history span {
  display: block;
}

#view-lottery .lottery-history span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.changelog-panel {
  max-width: 980px;
}

.changelog-list {
  display: grid;
  gap: 12px;
}

.changelog-item {
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04);
}

.changelog-item time {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.changelog-item h3 {
  margin: 8px 0 6px;
  color: #101828;
  font-size: 17px;
}

.changelog-item p {
  margin: 0;
  color: #475467;
  line-height: 1.75;
  white-space: pre-wrap;
}

.announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
}

.announcement-overlay[hidden] {
  display: none;
}

.announcement-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(14px);
}

.announcement-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

.announcement-dialog span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #155eef;
  font-size: 13px;
  font-weight: 900;
}

.announcement-dialog h2 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 24px;
}

.announcement-dialog p {
  margin: 0 0 20px;
  color: #475467;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  #view-lottery .lottery-stage.panel {
    min-height: 390px;
    padding: 16px;
  }

  #view-lottery .lottery-strip-wrap {
    margin-top: 20px;
    padding-top: 34px;
  }

  #view-lottery .lottery-window {
    height: 142px;
    border-radius: 15px;
  }

  #view-lottery .lottery-window::before,
  #view-lottery .lottery-window::after {
    width: 42px;
  }

  #view-lottery .lottery-wheel {
    gap: 10px;
    padding: 16px calc(50% - 58px);
  }

  #view-lottery .lottery-prize {
    flex-basis: 116px;
    width: 116px;
    min-width: 116px;
    height: 106px;
    font-size: 13px;
  }
}

/* landing-pro-nvidia1: public homepage refresh */
.landing-pro {
  min-height: 100vh;
  color: #f8fafc;
  background:
    radial-gradient(circle at 76% 18%, rgba(118, 185, 0, 0.22), transparent 34%),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #050806 0%, #0b100d 42%, #151a17 100%);
  overflow: hidden;
}

.landing-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.landing-pro .landing-3d {
  opacity: 0.24;
  filter: saturate(1.15) contrast(1.08);
  mix-blend-mode: screen;
}

.landing-pro .landing-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  width: min(1220px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  padding: 14px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-pro .landing-brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}

.landing-pro .landing-brand span {
  color: transparent;
  font-size: 0;
}

.landing-pro .landing-brand span::after {
  content: "Account Operations Platform";
  color: rgba(248, 250, 252, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.landing-pro .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.landing-pro .landing-nav [data-open-auth] {
  min-width: 118px;
  height: 40px;
  border: 1px solid rgba(118, 185, 0, 0.62);
  background: #76b900;
  color: transparent;
  font-size: 0;
  box-shadow: 0 18px 34px rgba(118, 185, 0, 0.22);
}

.landing-pro .landing-nav [data-open-auth]::after,
.landing-pro .pro-actions [data-open-auth]::after {
  content: "进入后台";
  color: #071006;
  font-size: 14px;
  font-weight: 900;
}

.landing-pro .landing-pro-main {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 36px));
  gap: 0;
  padding: 12px 0 84px;
}

.landing-pro .legacy-landing-main {
  display: none !important;
}

.pro-hero {
  min-height: min(720px, calc(100vh - 94px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(54px, 8vw, 108px) 0 72px;
}

.pro-hero-copy {
  max-width: 720px;
}

.pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9ad53a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pro-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #76b900;
}

.pro-hero h1 {
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.pro-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(248, 250, 252, 0.72);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.82;
}

.pro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.pro-actions .primary-button {
  min-width: 132px;
  height: 46px;
  border-radius: 3px;
  background: #76b900;
  color: transparent;
  font-size: 0;
  box-shadow: 0 22px 48px rgba(118, 185, 0, 0.26);
}

.pro-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pro-link:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 185, 0, 0.75);
  background: rgba(118, 185, 0, 0.14);
}

.pro-stage {
  position: relative;
  min-height: 520px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.035)),
    rgba(5, 8, 6, 0.72);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.pro-stage::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(118, 185, 0, 0.38), transparent 68%);
}

.pro-stage-top,
.pro-pipeline,
.pro-visual-grid {
  position: relative;
  z-index: 1;
}

.pro-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pro-stage-top span {
  color: rgba(248, 250, 252, 0.56);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pro-stage-top strong {
  color: #fff;
  font-size: 14px;
}

.pro-pipeline {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.pro-pipeline div {
  display: grid;
  grid-template-columns: 44px 96px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.pro-pipeline b {
  color: #76b900;
  font-size: 13px;
}

.pro-pipeline strong {
  color: #fff;
  font-size: 18px;
}

.pro-pipeline span {
  color: rgba(248, 250, 252, 0.62);
  font-size: 13px;
}

.pro-visual-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 9px;
  height: 150px;
  margin-top: 34px;
  padding: 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.pro-visual-grid span {
  display: block;
  min-height: 34px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #9ad53a, #76b900 58%, rgba(118, 185, 0, 0.18));
}

.pro-visual-grid span:nth-child(1) { height: 44%; opacity: 0.58; }
.pro-visual-grid span:nth-child(2) { height: 68%; opacity: 0.78; }
.pro-visual-grid span:nth-child(3) { height: 52%; opacity: 0.66; }
.pro-visual-grid span:nth-child(4) { height: 84%; }
.pro-visual-grid span:nth-child(5) { height: 62%; opacity: 0.72; }
.pro-visual-grid span:nth-child(6) { height: 92%; }

.pro-capability {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pro-capability article {
  min-height: 260px;
  padding: clamp(24px, 3.2vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.pro-capability article:last-child {
  border-right: 0;
}

.pro-capability span {
  color: #76b900;
  font-size: 13px;
  font-weight: 950;
}

.pro-capability h2,
.pro-business h2 {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.16;
  font-weight: 920;
}

.pro-capability p {
  margin: 18px 0 0;
  color: rgba(248, 250, 252, 0.64);
  line-height: 1.78;
}

.pro-business {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(26px, 6vw, 86px);
  padding: clamp(52px, 7vw, 92px) 0 0;
}

.pro-business-list {
  display: grid;
  gap: 14px;
}

.pro-business-list p {
  margin: 0;
  padding: 20px 22px;
  border-left: 3px solid #76b900;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.64);
  line-height: 1.75;
}

.pro-business-list strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 16px;
}

@media (max-width: 980px) {
  .pro-hero,
  .pro-business {
    grid-template-columns: 1fr;
  }

  .pro-stage {
    min-height: 440px;
  }

  .pro-capability {
    grid-template-columns: 1fr;
  }

  .pro-capability article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 640px) {
  .landing-pro .landing-nav {
    width: min(100% - 24px, 1220px);
    min-height: 66px;
  }

  .landing-pro .landing-brand span::after {
    content: "Cloud Platform";
  }

  .landing-pro .landing-nav [data-open-auth] {
    min-width: 92px;
    height: 36px;
  }

  .landing-pro .landing-nav [data-open-auth]::after {
    font-size: 13px;
  }

  .landing-pro .landing-pro-main {
    width: min(100% - 24px, 1220px);
    padding-bottom: 54px;
  }

  .pro-hero {
    min-height: auto;
    padding: 42px 0 46px;
  }

  .pro-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .pro-hero p {
    font-size: 15px;
  }

  .pro-actions {
    align-items: stretch;
  }

  .pro-actions .primary-button,
  .pro-link {
    width: 100%;
  }

  .pro-stage {
    min-height: 0;
    padding: 16px;
  }

  .pro-stage-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pro-pipeline div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pro-visual-grid {
    height: 118px;
    margin-top: 22px;
    padding: 12px;
  }

  .pro-capability article,
  .pro-business-list p {
    padding: 20px 16px;
  }
}

/* landing-glass-white1: restore white commercial theme with soft motion */
.landing-pro {
  --glass-accent: #16a34a;
  --glass-accent-2: #0ea5e9;
  --glass-ink: #101828;
  --glass-muted: #5b6472;
  --glass-line: rgba(208, 213, 221, 0.72);
  min-height: 100vh;
  color: var(--glass-ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(22, 163, 74, 0.16), transparent 30%),
    radial-gradient(circle at 20% 2%, rgba(14, 165, 233, 0.15), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 47%, #eef4f8 100%);
  overflow: hidden;
}

.landing-pro::before {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 60%, transparent 100%);
}

.landing-pro::after {
  content: "";
  position: absolute;
  inset: auto -12% 6% auto;
  width: min(560px, 76vw);
  height: min(560px, 76vw);
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 36%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle, rgba(22, 163, 74, 0.18), rgba(14, 165, 233, 0.12) 46%, transparent 70%);
  filter: blur(12px);
  animation: landingGlassDrift 12s ease-in-out infinite alternate;
}

.landing-pro .landing-3d {
  opacity: 0.22;
  filter: saturate(0.95) contrast(0.96);
  mix-blend-mode: multiply;
}

.landing-pro .landing-nav {
  width: min(1220px, calc(100% - 36px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px);
}

.landing-pro .landing-brand strong {
  color: var(--glass-ink);
}

.landing-pro .landing-brand span::after {
  color: #667085;
}

.landing-pro .brand-mark {
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.landing-pro .landing-nav [data-open-auth],
.pro-actions .primary-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.22);
}

.landing-pro .landing-nav [data-open-auth]::after,
.landing-pro .pro-actions [data-open-auth]::after {
  color: #fff;
}

.landing-pro .landing-pro-main {
  width: min(1220px, calc(100% - 36px));
  padding: 24px 0 84px;
}

.pro-hero {
  min-height: min(690px, calc(100vh - 104px));
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.82fr);
  gap: clamp(28px, 4vw, 58px);
  padding: clamp(46px, 7vw, 92px) 0 64px;
}

.pro-eyebrow {
  color: var(--glass-accent);
  letter-spacing: 0.08em;
}

.pro-eyebrow::before {
  background: linear-gradient(90deg, var(--glass-accent), rgba(14, 165, 233, 0.72));
}

.pro-hero h1 {
  max-width: 760px;
  color: #0b1220;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.02;
}

.pro-hero p {
  color: var(--glass-muted);
}

.pro-link {
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 999px;
  color: #182230;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(14px);
}

.pro-link:hover {
  border-color: rgba(22, 163, 74, 0.46);
  background: rgba(240, 253, 244, 0.88);
}

.pro-stage {
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 34px 90px rgba(16, 24, 40, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  animation: landingGlassFloat 7s ease-in-out infinite;
}

.pro-stage::before {
  inset: -26% -18% auto auto;
  background:
    radial-gradient(circle, rgba(22, 163, 74, 0.22), transparent 64%),
    radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.16), transparent 54%);
}

.pro-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 34%, transparent 58%);
  transform: translateX(-120%);
  animation: landingGlassSweep 6.8s ease-in-out infinite;
}

.pro-stage-top {
  border-bottom-color: rgba(208, 213, 221, 0.72);
}

.pro-stage-top span,
.pro-pipeline span {
  color: #667085;
}

.pro-stage-top strong,
.pro-pipeline strong,
.pro-business-list strong {
  color: #101828;
}

.pro-pipeline div {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pro-pipeline div:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
}

.pro-pipeline b,
.pro-capability span {
  color: var(--glass-accent);
}

.pro-visual-grid {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(255, 255, 255, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.pro-visual-grid span {
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, #4ade80, #16a34a 58%, rgba(22, 163, 74, 0.14));
  animation: landingBarPulse 3.4s ease-in-out infinite;
}

.pro-visual-grid span:nth-child(2) { animation-delay: .12s; }
.pro-visual-grid span:nth-child(3) { animation-delay: .24s; }
.pro-visual-grid span:nth-child(4) { animation-delay: .36s; }
.pro-visual-grid span:nth-child(5) { animation-delay: .48s; }
.pro-visual-grid span:nth-child(6) { animation-delay: .6s; }

.pro-capability {
  gap: 16px;
  border: 0;
}

.pro-capability article {
  min-height: 252px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 52px rgba(16, 24, 40, 0.075);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pro-capability article:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.24);
  box-shadow: 0 28px 68px rgba(16, 24, 40, 0.1);
}

.pro-capability h2,
.pro-business h2 {
  color: #101828;
}

.pro-capability p,
.pro-business-list p {
  color: #5b6472;
}

.pro-business {
  align-items: start;
  padding-top: clamp(46px, 6vw, 76px);
}

.pro-business-list p {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-left: 4px solid var(--glass-accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.055);
  backdrop-filter: blur(14px);
}

@keyframes landingGlassDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-42px, -28px, 0) scale(1.06);
  }
}

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

@keyframes landingGlassSweep {
  0%, 42% {
    transform: translateX(-120%);
  }
  70%, 100% {
    transform: translateX(120%);
  }
}

@keyframes landingBarPulse {
  0%, 100% {
    filter: saturate(0.95);
    transform: scaleY(1);
  }
  50% {
    filter: saturate(1.25);
    transform: scaleY(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-pro::after,
  .pro-stage,
  .pro-stage::after,
  .pro-visual-grid span {
    animation: none;
  }
}

@media (max-width: 980px) {
  .pro-hero,
  .pro-business {
    grid-template-columns: 1fr;
  }

  .pro-hero-copy {
    max-width: 100%;
  }

  .pro-capability {
    gap: 12px;
  }

  .pro-capability article {
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  }
}

@media (max-width: 640px) {
  .landing-pro .landing-nav {
    width: min(100% - 20px, 1220px);
    margin-top: 10px;
    border-radius: 16px;
  }

  .landing-pro .landing-pro-main {
    width: min(100% - 22px, 1220px);
  }

  .pro-hero {
    padding-top: 36px;
  }

  .pro-hero h1 {
    font-size: clamp(34px, 10.6vw, 48px);
  }

  .pro-stage {
    border-radius: 18px;
    animation: none;
  }

  .pro-pipeline div {
    min-height: 0;
  }
}

/* landing-white-particles1: pure white glass theme, no color accents */
.landing-pro {
  --glass-accent: #111827;
  --glass-accent-2: #98a2b3;
  --glass-ink: #101828;
  --glass-muted: #667085;
  --glass-line: rgba(208, 213, 221, 0.74);
  background:
    radial-gradient(circle at 24% 4%, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(226, 232, 240, 0.72), transparent 34%),
    radial-gradient(circle at 44% 82%, rgba(248, 250, 252, 0.9), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 48%, #f3f6fa 100%);
}

.landing-pro::before {
  background:
    linear-gradient(90deg, rgba(16, 24, 40, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 40, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.66;
}

.landing-pro::after {
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.98), transparent 26%),
    radial-gradient(circle, rgba(226, 232, 240, 0.44), rgba(248, 250, 252, 0.54) 48%, transparent 72%);
  filter: blur(18px);
  opacity: 0.9;
}

.landing-pro .landing-3d {
  opacity: 0.72;
  filter: saturate(0) contrast(1.02);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.76) 72%, rgba(0, 0, 0, 0.38) 100%);
}

.landing-pro .landing-nav,
.pro-stage,
.pro-capability article,
.pro-business-list p {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 28px 82px rgba(16, 24, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.landing-pro .landing-nav [data-open-auth],
.pro-actions .primary-button {
  background: linear-gradient(135deg, #1f2937, #101828);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.18);
}

.landing-pro .landing-nav [data-open-auth]:hover,
.pro-actions .primary-button:hover {
  background: linear-gradient(135deg, #344054, #111827);
  box-shadow: 0 22px 42px rgba(16, 24, 40, 0.22);
}

.pro-eyebrow {
  color: #344054;
}

.pro-eyebrow::before {
  background: linear-gradient(90deg, #111827, #98a2b3);
}

.pro-link:hover {
  border-color: rgba(152, 162, 179, 0.7);
  background: rgba(255, 255, 255, 0.94);
}

.pro-stage {
  min-height: 486px;
  padding-top: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.62)),
    rgba(255, 255, 255, 0.72);
}

.pro-stage::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 46%),
    radial-gradient(circle at 34% 72%, rgba(203, 213, 225, 0.32), transparent 58%);
}

.pro-stage-top {
  justify-content: flex-start;
}

.pro-stage-top strong {
  display: none;
}

.pro-stage > .pro-pipeline:first-child {
  margin-top: 0;
}

.pro-pipeline div {
  background: rgba(255, 255, 255, 0.72);
}

.pro-pipeline div:hover {
  border-color: rgba(152, 162, 179, 0.42);
}

.pro-pipeline b,
.pro-capability span {
  color: #344054;
}

.pro-visual-grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.7));
}

.pro-visual-grid span {
  background: linear-gradient(180deg, #ffffff, #cbd5e1 58%, rgba(148, 163, 184, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pro-capability article:hover {
  border-color: rgba(152, 162, 179, 0.5);
}

.pro-business-list p {
  border-left-color: #d0d5dd;
}

@media (max-width: 640px) {
  .pro-stage {
    min-height: 0;
  }
}

/* landing-white-particles4: remove first-screen preview panel */
.landing-pro .pro-hero {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  text-align: center;
  min-height: min(680px, calc(100vh - 104px));
  padding-bottom: clamp(48px, 7vw, 86px);
}

.landing-pro .pro-hero-copy {
  max-width: 920px;
  margin: 0 auto;
}

.landing-pro .pro-eyebrow {
  justify-content: center;
}

.landing-pro .pro-hero h1,
.landing-pro .pro-hero p {
  margin-left: auto;
  margin-right: auto;
}

.landing-pro .pro-hero h1 {
  max-width: 900px;
}

.landing-pro .pro-hero p {
  max-width: 720px;
}

.landing-pro .pro-actions {
  justify-content: center;
}

@media (max-width: 640px) {
  .landing-pro .pro-hero {
    min-height: auto;
    text-align: left;
  }

  .landing-pro .pro-eyebrow,
  .landing-pro .pro-actions {
    justify-content: flex-start;
  }
}

/* custom-export3-polish: compact controls and clearer landing motion */
.landing-pro .landing-3d {
  opacity: 0.96;
  filter: saturate(0) contrast(1.28);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 74%, rgba(0, 0, 0, 0.58) 100%);
}

.landing-pro .pro-hero {
  min-height: min(620px, calc(100vh - 104px));
  padding-top: clamp(46px, 6vw, 88px);
}

.landing-pro .pro-hero h1 {
  max-width: 720px;
  font-size: clamp(30px, 3.75vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.landing-pro .pro-hero p {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.76;
}

.advanced-select {
  padding: 10px;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 7px;
}

.filter-grid .filter-control,
.export-config-grid .filter-control {
  min-height: 40px;
  gap: 3px;
  padding: 6px 7px;
  border-radius: 8px;
}

.filter-grid .filter-control span,
.export-config-grid .filter-control span {
  font-size: 10.5px;
  line-height: 1.15;
}

.advanced-select input,
.advanced-select .select-control,
.filter-control .select-control,
.filter-control input,
.export-config-grid .filter-control input,
.export-config-grid .filter-control select {
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  font-size: 13px;
}

.export-dialog {
  width: min(720px, calc(100% - 28px));
}

.export-config-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.export-config-grid .filter-control {
  background: rgba(255, 255, 255, 0.88);
}

#exportLevelValue {
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  appearance: textfield;
}

.export-toggle {
  align-content: start;
}

.export-toggle > label {
  min-height: 32px;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 800;
  white-space: normal;
}

.export-toggle input[type="checkbox"],
.export-field-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.export-field-panel {
  margin-top: 12px;
  padding: 12px;
}

.export-field-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.export-field-grid label {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12.5px;
}

@media (max-width: 780px) {
  .export-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .landing-pro .pro-hero {
    padding-top: 34px;
  }

  .landing-pro .pro-hero h1 {
    font-size: clamp(29px, 8.8vw, 40px);
    line-height: 1.08;
  }

  .landing-pro .landing-3d {
    opacity: 0.82;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68));
  }
}

@media (max-width: 520px) {
  .export-config-grid,
  .export-field-grid {
    grid-template-columns: 1fr;
  }
}
