:root {
  --bg: #f3efe5;
  --panel: #fffaf1;
  --panel-strong: #fff;
  --text: #1f2a1f;
  --muted: #5e695f;
  --line: rgba(31, 42, 31, 0.12);
  --primary: #146c5c;
  --primary-strong: #0f5346;
  --accent: #d48c27;
  --error: #9e3d2a;
  --shadow: 0 18px 45px rgba(38, 42, 30, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 140, 39, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 108, 92, 0.16), transparent 22%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 520px;
}

.auth-panel,
.hero-card,
.feature-card,
.form-card {
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 32px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

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

h1 {
  font-size: clamp(32px, 6vw, 52px);
  margin-bottom: 10px;
}

.auth-copy,
.subtitle,
.feature-card p,
.hero-card p {
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 18px;
}

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

.field span {
  font-size: 14px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(255, 255, 255, 0.88);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

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

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.button.muted {
  background: rgba(31, 42, 31, 0.08);
  color: var(--muted);
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 20px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-header.compact {
  padding-bottom: 10px;
}

.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
}

.language-switch select {
  min-width: 110px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard,
.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.hero-card,
.form-card {
  padding: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.feature-card.online {
  border-color: rgba(20, 108, 92, 0.24);
}

.status-tag {
  justify-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 108, 92, 0.12);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.feature-card.coming_soon .status-tag {
  background: rgba(212, 140, 39, 0.14);
  color: #9a6412;
}

.form-card {
  margin-top: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.stats-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.stats-meta {
  display: grid;
  gap: 10px;
  min-width: 220px;
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--primary-strong);
}

.compact-stack {
  gap: 12px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 108, 92, 0.06);
  border: 1px solid rgba(20, 108, 92, 0.08);
}

.mono {
  font-family: "Consolas", "SFMono-Regular", "Menlo", monospace;
  word-break: break-all;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 12px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.stats-table th,
.stats-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.stats-table th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  background: rgba(20, 108, 92, 0.04);
}

.stats-table tbody tr:hover {
  background: rgba(20, 108, 92, 0.04);
}

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

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.simple-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

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

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.notice.error {
  background: rgba(158, 61, 42, 0.12);
  color: var(--error);
  border: 1px solid rgba(158, 61, 42, 0.18);
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
  }

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