/*
 * Minimal compatibility layer for older Android/Huawei browsers.
 *
 * Tailwind CSS 4 depends on modern CSS features. Browsers without color-mix()
 * receive the `legacy-browser` class before paint and use these unlayered rules
 * instead. Modern browsers load this small file but none of its rules match.
 */

html.legacy-browser,
html.legacy-browser body {
  min-height: 100%;
  margin: 0;
  background: #f8fbff;
  color: #273449;
  font-family: "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.legacy-browser *,
html.legacy-browser *::before,
html.legacy-browser *::after {
  box-sizing: border-box;
}

html.legacy-browser a {
  color: inherit;
  text-decoration: none;
}

html.legacy-browser button,
html.legacy-browser input,
html.legacy-browser select,
html.legacy-browser textarea {
  color: inherit;
  font: inherit;
}

html.legacy-browser button,
html.legacy-browser [role="button"] {
  cursor: pointer;
}

html.legacy-browser img,
html.legacy-browser picture {
  display: block;
  max-width: 100%;
}

html.legacy-browser svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

html.legacy-browser h1,
html.legacy-browser h2,
html.legacy-browser h3,
html.legacy-browser p {
  margin-top: 0;
}

html.legacy-browser .page-shell {
  position: relative;
  min-height: 100vh;
  padding-bottom: 3rem;
  background: #f8fbff;
}

html.legacy-browser .app-container {
  width: 100%;
  max-width: 72rem;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

html.legacy-browser header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #dce6f0;
  background: #ffffff;
}

html.legacy-browser header > .app-container {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

html.legacy-browser header a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

html.legacy-browser header nav.hidden {
  display: none !important;
}

html.legacy-browser header nav a {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
}

html.legacy-browser header nav a:focus,
html.legacy-browser header nav a:hover {
  background: #edf3f8;
  color: #0f4c81;
}

html.legacy-browser header > .app-container > div:last-child {
  display: flex !important;
}

html.legacy-browser header [data-slot="sheet-trigger"] {
  display: inline-flex !important;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #273449;
}

html.legacy-browser [data-slot="sheet-overlay"] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.5);
}

html.legacy-browser [data-slot="sheet-content"] {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 51;
  display: flex;
  width: 100%;
  max-height: 90vh;
  flex-direction: column;
  overflow-y: auto;
  border-bottom: 1px solid #dce6f0;
  background: #f8fbff;
  color: #273449;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

html.legacy-browser [data-slot="sheet-content"] nav {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

html.legacy-browser [data-slot="sheet-content"] > div {
  padding: 0.5rem 1rem 1.25rem;
}

html.legacy-browser [data-slot="sheet-content"] nav a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce6f0;
  border-radius: 1rem;
  background: #ffffff;
  color: #273449;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

html.legacy-browser [data-slot="sheet-content"] > button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: #edf3f8;
  color: #273449;
}

html.legacy-browser .page-shell > section,
html.legacy-browser footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

html.legacy-browser .page-hero,
html.legacy-browser .surface-panel,
html.legacy-browser [data-slot="card"] {
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.08);
}

html.legacy-browser .page-hero,
html.legacy-browser .surface-panel {
  padding: 1.25rem;
}

html.legacy-browser [data-slot="card"] {
  padding: 1.25rem;
}

html.legacy-browser [data-slot="card-header"] {
  margin-bottom: 0.75rem;
}

html.legacy-browser [data-slot="card-content"] {
  padding: 0;
}

html.legacy-browser [data-slot="card-title"] {
  margin-bottom: 0.5rem;
  color: #273449;
  font-size: 1.125rem;
  font-weight: 700;
}

html.legacy-browser [data-slot="card-description"] {
  color: #64748b;
  line-height: 1.75;
}

html.legacy-browser [data-slot="badge"],
html.legacy-browser .section-kicker {
  display: inline-flex;
  width: auto;
  align-items: center;
  border: 1px solid rgba(15, 76, 129, 0.18);
  border-radius: 999px;
  background: #edf3f8;
  color: #0f4c81;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

html.legacy-browser .section-kicker {
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

html.legacy-browser .metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dce6f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
}

html.legacy-browser h1 {
  margin-bottom: 1rem;
  color: #273449;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
}

html.legacy-browser h2 {
  margin-bottom: 0.75rem;
  color: #273449;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 800;
}

html.legacy-browser h3 {
  color: #273449;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
}

html.legacy-browser p {
  color: #64748b;
  line-height: 1.75;
}

html.legacy-browser [data-slot="button"],
html.legacy-browser a[class*="bg-primary"] {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid #0f4c81;
  border-radius: 0.875rem;
  background: #0f4c81;
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

html.legacy-browser [data-slot="button"][class*="border-border"] {
  border-color: #dce6f0;
  background: #ffffff;
  color: #273449;
}

html.legacy-browser .flex {
  display: flex;
}

html.legacy-browser .inline-flex {
  display: inline-flex;
}

html.legacy-browser .grid {
  display: grid;
}

html.legacy-browser .block {
  display: block;
}

html.legacy-browser .hidden {
  display: none;
}

html.legacy-browser .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html.legacy-browser .relative {
  position: relative;
}

html.legacy-browser .absolute {
  position: absolute;
}

html.legacy-browser .fixed {
  position: fixed;
}

html.legacy-browser .flex-col {
  flex-direction: column;
}

html.legacy-browser .flex-wrap {
  flex-wrap: wrap;
}

html.legacy-browser .items-center {
  align-items: center;
}

html.legacy-browser .items-start {
  align-items: flex-start;
}

html.legacy-browser .justify-center {
  justify-content: center;
}

html.legacy-browser .justify-between {
  justify-content: space-between;
}

html.legacy-browser .text-center {
  text-align: center;
}

html.legacy-browser .text-left {
  text-align: left;
}

html.legacy-browser .w-full {
  width: 100%;
}

html.legacy-browser .h-full {
  height: 100%;
}

html.legacy-browser .h-5 {
  height: 1.25rem;
}

html.legacy-browser .w-5 {
  width: 1.25rem;
}

html.legacy-browser .h-9 {
  height: 2.25rem;
}

html.legacy-browser .w-9 {
  width: 2.25rem;
}

html.legacy-browser .h-10 {
  height: 2.5rem;
}

html.legacy-browser .w-10 {
  width: 2.5rem;
}

html.legacy-browser .max-w-sm {
  max-width: 24rem;
}

html.legacy-browser .max-w-2xl {
  max-width: 42rem;
}

html.legacy-browser .max-w-3xl {
  max-width: 48rem;
}

html.legacy-browser .mx-auto {
  margin-right: auto;
  margin-left: auto;
}

html.legacy-browser .mt-auto {
  margin-top: auto;
}

html.legacy-browser .overflow-hidden {
  overflow: hidden;
}

html.legacy-browser .object-contain {
  object-fit: contain;
}

html.legacy-browser .shrink-0 {
  flex-shrink: 0;
}

html.legacy-browser .grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.legacy-browser .gap-1,
html.legacy-browser .gap-1\.5 {
  gap: 0.375rem;
}

html.legacy-browser .gap-2 {
  gap: 0.5rem;
}

html.legacy-browser .gap-3 {
  gap: 0.75rem;
}

html.legacy-browser .gap-4 {
  gap: 1rem;
}

html.legacy-browser .gap-5 {
  gap: 1.25rem;
}

html.legacy-browser .gap-6 {
  gap: 1.5rem;
}

html.legacy-browser .gap-8,
html.legacy-browser .gap-10 {
  gap: 2rem;
}

html.legacy-browser .text-primary {
  color: #0f4c81;
}

html.legacy-browser .text-foreground {
  color: #273449;
}

html.legacy-browser .text-muted-foreground {
  color: #64748b;
}

html.legacy-browser .text-white,
html.legacy-browser .text-primary-foreground {
  color: #ffffff;
}

html.legacy-browser .bg-white,
html.legacy-browser .bg-background {
  background: #ffffff;
}

html.legacy-browser .bg-card {
  background: #fdfefe;
}

html.legacy-browser .bg-primary {
  background: #0f4c81;
}

html.legacy-browser .bg-muted {
  background: #edf3f8;
}

html.legacy-browser [class~="bg-background/55"],
html.legacy-browser [class~="bg-background/70"],
html.legacy-browser [class~="bg-background/75"],
html.legacy-browser [class~="bg-background/80"],
html.legacy-browser [class~="bg-background/85"],
html.legacy-browser [class~="bg-background/90"],
html.legacy-browser [class~="bg-background/95"],
html.legacy-browser [class~="bg-card/45"],
html.legacy-browser [class~="bg-card/78"],
html.legacy-browser [class~="bg-card/85"],
html.legacy-browser [class~="bg-card/86"],
html.legacy-browser [class~="bg-card/90"] {
  background: #ffffff;
}

html.legacy-browser [class~="bg-primary/5"],
html.legacy-browser [class~="bg-primary/6"],
html.legacy-browser [class~="bg-primary/8"],
html.legacy-browser [class~="bg-primary/10"],
html.legacy-browser [class~="bg-primary/12"],
html.legacy-browser [class~="bg-primary/15"] {
  background: #edf3f8;
}

html.legacy-browser [class~="bg-muted/20"],
html.legacy-browser [class~="bg-muted/30"] {
  background: #f1f5f9;
}

html.legacy-browser .bg-secondary {
  background: #e8f4ef;
}

html.legacy-browser .text-secondary-foreground {
  color: #235347;
}

html.legacy-browser .bg-emerald-50 {
  background: #ecfdf5;
}

html.legacy-browser .bg-emerald-100 {
  background: #d1fae5;
}

html.legacy-browser [class~="bg-emerald-50/55"],
html.legacy-browser [class~="bg-emerald-50/95"],
html.legacy-browser [class~="bg-emerald-400/12"],
html.legacy-browser [class~="bg-emerald-500/10"] {
  background: #ecfdf5;
}

html.legacy-browser .bg-emerald-600 {
  background: #059669;
}

html.legacy-browser .text-emerald-300 {
  color: #6ee7b7;
}

html.legacy-browser .text-emerald-600 {
  color: #059669;
}

html.legacy-browser .text-emerald-700 {
  color: #047857;
}

html.legacy-browser .bg-sky-100 {
  background: #e0f2fe;
}

html.legacy-browser [class~="bg-sky-400/12"] {
  background: #e0f2fe;
}

html.legacy-browser .text-sky-300 {
  color: #7dd3fc;
}

html.legacy-browser .text-sky-700 {
  color: #0369a1;
}

html.legacy-browser .text-sky-950 {
  color: #082f49;
}

html.legacy-browser .bg-blue-50 {
  background: #eff6ff;
}

html.legacy-browser .bg-blue-500 {
  background: #3b82f6;
}

html.legacy-browser [class~="bg-blue-500/10"] {
  background: #eff6ff;
}

html.legacy-browser .text-blue-400 {
  color: #60a5fa;
}

html.legacy-browser .text-blue-500 {
  color: #3b82f6;
}

html.legacy-browser .text-blue-600 {
  color: #2563eb;
}

html.legacy-browser .text-blue-950 {
  color: #172554;
}

html.legacy-browser .bg-amber-50 {
  background: #fffbeb;
}

html.legacy-browser .bg-amber-100 {
  background: #fef3c7;
}

html.legacy-browser .bg-amber-500 {
  background: #f59e0b;
}

html.legacy-browser [class~="bg-amber-400/12"],
html.legacy-browser [class~="bg-amber-500/10"] {
  background: #fffbeb;
}

html.legacy-browser .text-amber-300 {
  color: #fcd34d;
}

html.legacy-browser .text-amber-400 {
  color: #fbbf24;
}

html.legacy-browser .text-amber-500 {
  color: #f59e0b;
}

html.legacy-browser .text-amber-600 {
  color: #d97706;
}

html.legacy-browser .text-amber-700 {
  color: #b45309;
}

html.legacy-browser .bg-red-50 {
  background: #fef2f2;
}

html.legacy-browser .bg-red-100 {
  background: #fee2e2;
}

html.legacy-browser .bg-red-500 {
  background: #ef4444;
}

html.legacy-browser [class~="bg-red-500/10"] {
  background: #fef2f2;
}

html.legacy-browser .text-red-100 {
  color: #fee2e2;
}

html.legacy-browser .text-red-400 {
  color: #f87171;
}

html.legacy-browser .text-red-500 {
  color: #ef4444;
}

html.legacy-browser .text-red-600 {
  color: #dc2626;
}

html.legacy-browser .text-red-700 {
  color: #b91c1c;
}

html.legacy-browser .text-red-900 {
  color: #7f1d1d;
}

html.legacy-browser .text-slate-500 {
  color: #64748b;
}

html.legacy-browser .text-slate-950 {
  color: #020617;
}

html.legacy-browser .border {
  border: 1px solid #dce6f0;
}

html.legacy-browser [class~="border-primary/10"],
html.legacy-browser [class~="border-primary/15"],
html.legacy-browser [class~="border-primary/20"],
html.legacy-browser [class~="border-primary/25"],
html.legacy-browser [class~="border-primary/30"],
html.legacy-browser [class~="border-primary/50"] {
  border-color: #a9c4dc;
}

html.legacy-browser .border-emerald-100 {
  border-color: #d1fae5;
}

html.legacy-browser .border-emerald-200 {
  border-color: #a7f3d0;
}

html.legacy-browser .border-emerald-300 {
  border-color: #6ee7b7;
}

html.legacy-browser .border-emerald-700 {
  border-color: #047857;
}

html.legacy-browser .border-sky-200 {
  border-color: #bae6fd;
}

html.legacy-browser .border-amber-200 {
  border-color: #fde68a;
}

html.legacy-browser .border-amber-300 {
  border-color: #fcd34d;
}

html.legacy-browser .border-blue-950 {
  border-color: #172554;
}

html.legacy-browser .rounded-full {
  border-radius: 999px;
}

html.legacy-browser .rounded-2xl {
  border-radius: 1rem;
}

html.legacy-browser .font-semibold {
  font-weight: 600;
}

html.legacy-browser .font-bold {
  font-weight: 700;
}

html.legacy-browser .font-extrabold {
  font-weight: 800;
}

html.legacy-browser .text-xs {
  font-size: 0.75rem;
}

html.legacy-browser .text-sm {
  font-size: 0.875rem;
}

html.legacy-browser .text-base {
  font-size: 1rem;
}

html.legacy-browser .text-lg {
  font-size: 1.125rem;
}

html.legacy-browser .text-xl {
  font-size: 1.25rem;
}

html.legacy-browser .text-2xl {
  font-size: 1.5rem;
}

html.legacy-browser .text-3xl {
  font-size: 1.875rem;
}

html.legacy-browser [class~="space-y-2"] > * + *,
html.legacy-browser [class~="space-y-2.5"] > * + *,
html.legacy-browser [class~="space-y-3"] > * + * {
  margin-top: 0.75rem;
}

html.legacy-browser [data-slot="accordion-item"] {
  margin-top: 0.75rem;
  border: 1px solid #dce6f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.25rem 1rem;
}

html.legacy-browser [data-slot="accordion-trigger"] {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 1rem 0;
  text-align: left;
  font-weight: 700;
}

html.legacy-browser [data-slot="accordion-content"] {
  display: block !important;
  height: auto !important;
  padding-bottom: 1rem;
}

html.legacy-browser footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.legacy-browser footer li + li {
  margin-top: 0.5rem;
}

html.legacy-browser footer a {
  color: #64748b;
}

@media (max-width: 767px) {
  html.legacy-browser header > .app-container {
    display: flex;
  }

  html.legacy-browser header > .app-container > a {
    min-width: 0;
  }

  html.legacy-browser header nav.hidden {
    display: none !important;
  }

  html.legacy-browser h1 {
    font-size: 2rem;
  }

  html.legacy-browser .page-hero,
  html.legacy-browser .surface-panel,
  html.legacy-browser [data-slot="card"] {
    border-radius: 1.25rem;
  }
}

@media (min-width: 640px) {
  html.legacy-browser [class~="sm:grid-cols-2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.legacy-browser [class~="sm:flex-row"] {
    flex-direction: row;
  }

  html.legacy-browser [class~="sm:block"] {
    display: block;
  }

  html.legacy-browser .page-hero,
  html.legacy-browser .surface-panel {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  html.legacy-browser header nav.hidden {
    display: flex !important;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  html.legacy-browser header [data-slot="sheet-trigger"],
  html.legacy-browser header > .app-container > div:last-child {
    display: none !important;
  }

  html.legacy-browser [class~="md:grid-cols-3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.legacy-browser [class~="md:grid-cols-4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.legacy-browser footer .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  html.legacy-browser .page-hero > .grid {
    grid-template-columns: minmax(0, 1fr) 27.5rem;
    align-items: center;
  }

  html.legacy-browser [class~="lg:grid"] {
    display: grid;
  }

  html.legacy-browser [class~="lg:hidden"] {
    display: none;
  }

  html.legacy-browser [class~="lg:grid-cols-3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.legacy-browser [class~="lg:grid-cols-4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.legacy-browser footer .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html.legacy-browser footer .grid > div:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1280px) {
  html.legacy-browser [class~="xl:grid-cols-[minmax(0,1fr)_minmax(340px,420px)]"] {
    grid-template-columns: minmax(0, 1fr) minmax(21.25rem, 26.25rem);
  }
}
