body.web-app,
body.web-auth {
  margin: 0;
  color: #1f2937;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f8fb;
  color-scheme: light;
}

body.web-app {
  min-height: 100vh;
}

body.web-app > header,
body.web-auth .auth-shell {
  backdrop-filter: saturate(180%) blur(20px);
}

body.web-app > header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.94) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.web-app > main {
  position: relative;
}

body.web-app .panel,
body.web-app .metric-card,
body.web-app .metric-tile,
body.web-app .supplier-card,
body.web-app .bg-white.rounded-xl,
body.web-app .bg-white.rounded-2xl,
body.web-app .bg-white.rounded-lg,
body.web-app .rounded-lg.bg-white,
body.web-app .rounded-xl.bg-white,
body.web-app .rounded-2xl.bg-white {
  border-color: rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.04) !important;
}

body.web-app .panel,
body.web-app .metric-card,
body.web-app .metric-tile,
body.web-app .supplier-card,
body.web-app .rounded-lg,
body.web-app .rounded-xl,
body.web-app .rounded-2xl {
  border-radius: 8px !important;
}

body.web-app .card-hover,
body.web-app .card,
body.web-app .report-item,
body.web-app .menu-link,
body.web-app .supplier-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

body.web-app .card-hover:hover,
body.web-app .card:hover,
body.web-app .report-item:hover,
body.web-app .supplier-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}

body.web-app .card-hover:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

body.web-app input,
body.web-app select,
body.web-app textarea {
  border-radius: 8px !important;
}

body.web-app .bg-primary,
body.web-app .from-primary,
body.web-app .to-blue-600,
body.web-app .from-blue-600,
body.web-app .to-purple-700,
body.web-app .from-purple-600 {
  filter: saturate(0.92);
}

body.web-app .gradient-text {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: border-box !important;
  color: #111827 !important;
}

body.web-app .shadow-lg,
body.web-app .shadow-xl,
body.web-app .shadow-2xl {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

body.web-app .text-3xl.gradient-text,
body.web-app .text-2xl.gradient-text {
  color: #0f172a !important;
}

.web-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.web-shell.narrow {
  width: min(960px, calc(100vw - 48px));
}

.web-shell.slim {
  width: min(760px, calc(100vw - 48px));
}

.web-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: 72px;
}

.web-topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

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

.web-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
}

.web-brand-copy {
  min-width: 0;
}

.web-eyebrow {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b849b;
}

.web-title {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #111827;
}

.web-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: #64748b;
}

.web-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.web-app [class*="bg-[linear-gradient"] {
  box-shadow: none !important;
}

.web-button,
.web-button-secondary,
.web-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
}

.web-button {
  padding: 0 16px;
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.web-button-secondary {
  padding: 0 16px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.web-icon-button {
  width: 40px;
  padding: 0;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #64748b;
}

.web-hero {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  color: #ffffff;
}

.web-hero-body {
  padding: 24px;
}

.web-hero-grid {
  display: grid;
  gap: 14px;
}

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

.web-metric {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.web-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}

.web-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.web-section-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: #18344c;
}

.web-section-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #6b849b;
}

.web-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

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

.web-app .shadow-lg,
.web-app .shadow-xl,
.web-app .shadow-2xl {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.04) !important;
}

.web-note-box {
  padding: 14px 16px;
  border: 1px dashed rgba(31, 76, 120, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #5f7890;
  font-size: 13px;
  line-height: 20px;
}

body.web-auth {
  min-height: 100vh;
}

body.web-auth .auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 24px;
}

body.web-auth .auth-stage {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px);
  gap: 28px;
  align-items: stretch;
}

body.web-auth .auth-hero {
  display: grid;
  align-content: end;
  min-height: 640px;
  padding: 36px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(16, 44, 74, 0.92) 0%, rgba(19, 56, 87, 0.9) 48%, rgba(18, 103, 96, 0.84) 100%),
    linear-gradient(135deg, #12344d 0%, #1a4364 48%, #1b6760 100%);
  box-shadow: 0 28px 64px rgba(18, 52, 77, 0.18);
}

body.web-auth .auth-hero-copy {
  max-width: 520px;
}

body.web-auth .auth-hero-kicker {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.web-auth .auth-hero-title {
  margin: 14px 0 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 600;
}

body.web-auth .auth-hero-subtitle {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.78);
}

body.web-auth .auth-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

body.web-auth .auth-hero-point {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

body.web-auth .auth-hero-point strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 26px;
}

body.web-auth .auth-panel {
  align-self: center;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(31, 76, 120, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 46px rgba(18, 52, 77, 0.08);
}

body.web-auth .auth-panel-head {
  margin-bottom: 22px;
}

body.web-auth .auth-panel-title {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: #18344c;
}

body.web-auth .auth-panel-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: #5f7890;
}

body.web-auth .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #edf3f8;
  margin-bottom: 22px;
}

body.web-auth .auth-tabs button {
  min-height: 40px;
  border-radius: 999px;
}

body.web-auth .site-footer {
  margin-top: 10px;
  font-size: 12px;
  line-height: 20px;
  color: #6f879d;
}

body.web-auth .site-footer a {
  color: #2f80ed;
}

body.web-auth .auth-agreement {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  body.web-auth .auth-stage {
    grid-template-columns: 1fr;
  }

  body.web-auth .auth-hero {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .web-shell,
  .web-shell.narrow,
  .web-shell.slim {
    width: min(100vw - 24px, 100%);
  }

  .web-topbar-inner {
    min-height: 64px;
  }

  body.web-app > header {
    box-shadow: 0 8px 22px rgba(18, 52, 77, 0.04);
  }

  .web-metric-grid,
  body.web-auth .auth-hero-points {
    grid-template-columns: 1fr;
  }

  body.web-auth .auth-shell {
    padding: 18px 12px;
  }

  body.web-auth .auth-hero {
    min-height: auto;
    padding: 26px 22px;
  }

  body.web-auth .auth-hero-title {
    font-size: 34px;
  }

  body.web-auth .auth-panel {
    padding: 22px 18px;
  }
}
