:root {
  color-scheme: light;
  --gc-bg: #f6f3ea;
  --gc-bg-mint: #edf5ef;
  --gc-bg-cream: #fbf7f0;
  --gc-surface: rgba(255, 252, 247, 0.94);
  --gc-surface-strong: #fffdf9;
  --gc-surface-soft: #f4efe5;
  --gc-surface-tint: linear-gradient(135deg, rgba(230, 245, 238, 0.98), rgba(248, 243, 235, 0.98));
  --gc-line: rgba(143, 171, 160, 0.24);
  --gc-line-strong: rgba(115, 145, 134, 0.32);
  --gc-text: #30413c;
  --gc-text-soft: #6f7f79;
  --gc-heading: #1f342e;
  --gc-primary: #7db9a6;
  --gc-primary-strong: #5e9d8a;
  --gc-primary-deep: #467566;
  --gc-primary-soft: #e4f2eb;
  --gc-neutral: #dfe6e0;
  --gc-success-bg: #e5f5ec;
  --gc-success-text: #236749;
  --gc-warning-bg: #fff1dc;
  --gc-warning-text: #9b5d1c;
  --gc-danger-bg: #fde8e5;
  --gc-danger-text: #a94646;
  --gc-danger-strong: #cf6d6d;
  --gc-info-bg: #e8f0fb;
  --gc-info-text: #43648d;
  --gc-shadow-sm: 0 10px 30px rgba(98, 118, 112, 0.08);
  --gc-shadow-md: 0 18px 50px rgba(95, 117, 108, 0.12);
  --gc-radius-xl: 30px;
  --gc-radius-lg: 26px;
  --gc-radius-md: 18px;
  --gc-radius-sm: 14px;
  --gc-font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--gc-font);
  color: var(--gc-text);
  background:
    radial-gradient(circle at top left, rgba(205, 236, 224, 0.66), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(250, 236, 226, 0.92), transparent 26%),
    linear-gradient(180deg, #f4f0e7 0%, #edf4ef 48%, #f8f4ec 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  opacity: 0.6;
}
a { color: var(--gc-primary-deep); text-decoration: none; }
a:hover { color: var(--gc-primary-strong); }
button, input, select { font: inherit; }

.page-shell { position: relative; z-index: 1; }
.container {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 24px 40px;
}
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 22px; }
.muted { color: var(--gc-text-soft); }
.lead {
  margin-top: 14px;
  color: var(--gc-text-soft);
  max-width: 760px;
  line-height: 1.75;
  font-size: 15px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(228, 242, 235, 0.9);
  color: var(--gc-primary-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gc-primary);
  box-shadow: 0 0 0 4px rgba(125, 185, 166, 0.14);
}
.card {
  position: relative;
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-lg);
  box-shadow: var(--gc-shadow-md);
  padding: 24px;
  margin-bottom: 18px;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
}
.card > * { position: relative; z-index: 1; }
.card--cream { background: var(--gc-surface-tint); }
.card--soft { background: rgba(255, 251, 246, 0.74); }
.card--flat { box-shadow: none; }

.nav-wrap { padding: 18px 24px 0; }
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--gc-line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--gc-shadow-sm);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gc-primary-deep);
  background: linear-gradient(135deg, #e9f6ef, #fdf5ea);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 8px 20px rgba(112, 148, 134, 0.16);
  font-weight: 800;
}
.brand-copy strong { display: block; color: var(--gc-heading); font-size: 15px; letter-spacing: 0.02em; }
.brand-copy span { display: block; margin-top: 2px; color: var(--gc-text-soft); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.nav-user {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(228, 242, 235, 0.78);
  color: var(--gc-primary-deep);
  font-size: 13px;
  border: 1px solid rgba(125, 185, 166, 0.22);
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gc-heading);
  font-size: 14px;
  transition: background-color .2s ease, transform .2s ease;
}
.nav-link:hover { background: rgba(228, 242, 235, 0.92); transform: translateY(-1px); }

h1, h2, h3, h4 { margin: 0; color: var(--gc-heading); }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0; }

.button, button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover, button:hover { transform: translateY(-1px); }
.button--primary, .button.primary, button.primary, button:not(.secondary):not(.warn):not(.danger):not(.ghost) {
  background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(94, 157, 138, 0.24);
}
.button--secondary, .button.secondary, button.secondary {
  background: rgba(232, 239, 234, 0.98);
  color: var(--gc-heading);
  border: 1px solid rgba(143, 171, 160, 0.24);
}
.button--warn, .button.warn, button.warn {
  background: linear-gradient(135deg, #f0c89b, #da9d59);
  color: #fff9f2;
  box-shadow: 0 12px 24px rgba(186, 126, 54, 0.22);
}
.button--danger, .button.danger, button.danger {
  background: linear-gradient(135deg, #e6a0a0, var(--gc-danger-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(177, 92, 92, 0.2);
}
.button--ghost, .button.ghost, button.ghost {
  background: transparent;
  color: var(--gc-primary-deep);
  border: 1px solid rgba(125, 185, 166, 0.24);
}
.button--block, .button.block, button.block { width: 100%; }

.notice {
  padding: 13px 15px;
  border-radius: 18px;
  margin-bottom: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}
.notice.error { background: var(--gc-danger-bg); color: var(--gc-danger-text); border-color: rgba(210, 118, 118, 0.18); }
.notice.success { background: var(--gc-success-bg); color: var(--gc-success-text); border-color: rgba(90, 152, 119, 0.18); }
.notice.warning { background: var(--gc-warning-bg); color: var(--gc-warning-text); border-color: rgba(213, 152, 77, 0.18); }
.notice.info { background: var(--gc-info-bg); color: var(--gc-info-text); border-color: rgba(113, 143, 191, 0.18); }

.pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: rgba(228, 234, 229, 0.95);
  color: var(--gc-text-soft);
}
.pill.pending, .tag.pending { background: var(--gc-warning-bg); color: var(--gc-warning-text); }
.pill.active, .tag.active { background: var(--gc-success-bg); color: var(--gc-success-text); }
.pill.disabled, .tag.disabled { background: var(--gc-danger-bg); color: var(--gc-danger-text); }
.pill.info, .tag.info { background: var(--gc-info-bg); color: var(--gc-info-text); }

.form-shell { margin-top: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; color: var(--gc-heading); font-size: 14px; font-weight: 700; }
.field-help { margin-top: 8px; font-size: 12px; color: var(--gc-text-soft); }
input[type=text], input[type=password] {
  width: 100%;
  border: 1px solid rgba(125, 185, 166, 0.22);
  border-radius: 18px;
  padding: 14px 15px;
  font-size: 15px;
  color: var(--gc-heading);
  background: rgba(255, 254, 251, 0.95);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input[type=text]:focus, input[type=password]:focus {
  border-color: rgba(94, 157, 138, 0.78);
  box-shadow: 0 0 0 5px rgba(125, 185, 166, 0.15);
  transform: translateY(-1px);
}
form.inline { display: inline-flex; margin: 0 8px 8px 0; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
}
.auth-panel {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 420px);
  gap: 26px;
  align-items: stretch;
}
.auth-card { padding: 30px; align-self: center; }
.hero-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
}
.soft-orb { position: absolute; border-radius: 999px; filter: blur(4px); opacity: 0.7; }
.orb-a { width: 150px; height: 150px; right: -10px; top: 22px; background: rgba(198, 231, 217, 0.66); }
.orb-b { width: 110px; height: 110px; left: 40px; bottom: 24px; background: rgba(255, 236, 224, 0.78); }
.hero-grid, .summary-grid, .helper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.hero-grid { margin-top: 26px; gap: 14px; }
.hero-metric, .summary-card, .helper-card, .aside-item {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(143, 171, 160, 0.18);
}
.hero-metric strong, .summary-card strong { display: block; color: var(--gc-heading); }
.hero-metric strong { font-size: 18px; margin-bottom: 6px; }
.hero-metric span { color: var(--gc-text-soft); font-size: 13px; line-height: 1.6; }
.summary-card strong { font-size: 26px; margin-top: 8px; }
.auth-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(143, 171, 160, 0.16);
  color: var(--gc-text-soft);
  font-size: 14px;
}
.hero-banner, .chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 252, 248, 0.88);
  color: var(--gc-primary-deep);
  border: 1px solid rgba(143, 171, 160, 0.18);
}
.kpi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.66);
  border-radius: 999px;
  color: var(--gc-text-soft);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.service-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(245, 250, 246, 0.9));
  border: 1px solid rgba(143, 171, 160, 0.18);
  box-shadow: 0 20px 40px rgba(98, 118, 112, 0.1);
}
.service-card__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.service-card__meta { flex: 1; min-width: 0; }
.service-card h3 { margin-top: 0; }
.service-card p {
  margin-top: 10px;
  color: var(--gc-text-soft);
  line-height: 1.7;
  min-height: 50px;
}
.service-card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(228, 242, 235, 0.95), rgba(255, 246, 238, 0.95));
  color: var(--gc-primary-deep);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.aside-list { display: grid; gap: 14px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.status-tile { padding: 16px 18px; border-radius: 20px; background: rgba(255, 251, 246, 0.7); border: 1px solid rgba(143, 171, 160, 0.16); }
.status-tile strong { display: block; color: var(--gc-heading); margin-top: 6px; font-size: 18px; }

.data-table-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(143, 171, 160, 0.18);
  background: rgba(255, 253, 249, 0.84);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(143, 171, 160, 0.14);
  vertical-align: top;
}
thead th {
  background: rgba(239, 246, 241, 0.84);
  color: var(--gc-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tbody tr:hover { background: rgba(250, 252, 249, 0.86); }
.user-meta strong { display: block; margin-bottom: 8px; color: var(--gc-heading); }
.user-meta .muted { font-size: 12px; }
.action-zone { display: flex; flex-wrap: wrap; gap: 8px; }
.permission-stack { display: grid; gap: 8px; }

.empty-state { padding: 32px 24px; text-align: center; }
.empty-state .icon-badge { margin: 0 auto 14px; }
.connect-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.connect-card {
  width: min(560px, 100%);
  text-align: center;
}
.connect-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(125, 185, 166, 0.18);
  border-top-color: var(--gc-primary-strong);
  animation: spin 0.95s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .auth-panel, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; }
  .section-header { flex-direction: column; }
}
@media (max-width: 720px) {
  .nav-wrap { padding: 14px 14px 0; }
  .container { padding: 0 14px 28px; }
  .nav {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links { width: 100%; justify-content: flex-start; }
  .card, .auth-card, .hero-card { padding: 20px; }
  th, td { padding: 14px 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .service-card__top, .service-card-footer { flex-direction: column; align-items: flex-start; }
}
