:root {
  --ink: #122018;
  --muted: #64736a;
  --paper: #f5f7f3;
  --card: #ffffff;
  --line: #dfe6df;
  --brand: #1d6b47;
  --brand-dark: #144d35;
  --accent: #d6f56d;
  --danger: #b94343;
  --warning: #a56a10;
  --shadow: 0 18px 50px rgba(22, 49, 35, .08);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 85% 0%, rgba(214,245,109,.18), transparent 28%), var(--paper); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--brand); box-shadow: 0 8px 22px rgba(29,107,71,.22); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { letter-spacing: .03em; }
.brand small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav form { margin: 0; }
.nav a, .link-button { color: #405047; font-weight: 600; }
.link-button { border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; }
.nav-primary { border: 1px solid var(--brand); border-radius: 999px; padding: 7px 16px; }
.page { min-height: calc(100vh - 146px); padding: 58px 0 80px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 24px 0; font-size: 13px; }
.eyebrow, .card-kicker { display: block; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 18px; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.auth-layout { min-height: 580px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 9vw; align-items: center; }
.auth-copy > p { max-width: 620px; font-size: 17px; color: var(--muted); }
.feature-line { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); max-width: 540px; font-weight: 650; }
.feature-line span { color: var(--brand); font-size: 12px; font-weight: 800; }
.auth-card, .narrow-card, .card { background: var(--card); border: 1px solid rgba(216,226,217,.9); border-radius: 24px; box-shadow: var(--shadow); }
.auth-card { padding: 42px; }
.narrow-card { max-width: 780px; margin: 0 auto; padding: 46px; }
.narrow-card.compact { max-width: 620px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-column { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .form-grid p { display: grid; gap: 7px; font-weight: 700; margin: 0; }
input, select, textarea { width: 100%; border: 1px solid #cfd9d1; background: #fbfcfa; color: var(--ink); border-radius: 12px; padding: 12px 14px; font: inherit; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,107,71,.1); }
input[type="checkbox"] { width: auto; }
.checkbox-label { display: flex !important; flex-direction: row; align-items: center; font-weight: 500 !important; }
.form-grid small, .helptext { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-grid ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 12px; font-weight: 400; }
.field-error, .errorlist { color: var(--danger) !important; font-size: 13px; }
.errorlist { margin: 0; }
.form-error { border-radius: 12px; background: #fff1f1; color: var(--danger); padding: 12px 14px; }
.button { appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 750; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: var(--brand-dark); color: white; }
.button.secondary { color: var(--brand); border-color: #bdd0c3; background: #f5faf6; }
.button.ghost { color: var(--muted); background: transparent; }
.button.wide { width: 100%; }
.auth-foot { margin: 23px 0 0; text-align: center; color: var(--muted); }
.hero-row, .section-title, .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hero-row h1 { font-size: 42px; margin: 8px 0; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 800; background: #eef1ef; color: #5a665f; white-space: nowrap; }
.status-pill.success { background: #e6f5eb; color: #1f754a; }
.status-pill.warning { background: #fff3d9; color: #94610c; }
.status-pill.danger { background: #ffebeb; color: #a43b3b; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 30px; }
.card { padding: 28px; }
.card h2 { margin: 7px 0 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 20px; }
.metrics div { background: #f6f8f5; border-radius: 16px; padding: 16px; }
.metrics small, .metrics strong { display: block; }
.metrics small { color: var(--muted); margin-bottom: 6px; }
.metrics strong { font-size: 19px; }
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eee9; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #79a93a); border-radius: inherit; }
.detail-list { margin: 25px 0 0; }
.detail-list div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 13px 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 750; }
.subscription-card { margin-top: 20px; }
.copy-row { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.notice-line, .empty-note { border-radius: 12px; padding: 11px 14px; background: #fff7e8; color: #855811; margin: 16px 0 0; }
.empty-state { text-align: center; background: white; border: 1px dashed #b7c7ba; border-radius: 24px; padding: 64px 24px; margin-top: 28px; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; color: var(--brand); background: #eaf5ed; font-size: 26px; }
.section-block { margin-top: 46px; }
.section-title { align-items: center; margin-bottom: 18px; }
.section-title h2 { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 17px; }
th { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
.message-stack { display: grid; gap: 8px; margin-bottom: 24px; }
.message { padding: 12px 15px; border-radius: 12px; background: #e9f4ec; color: #236845; }
.message.error { background: #ffeded; color: #a43b3b; }
@media (max-width: 850px) {
  .auth-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .auth-layout { gap: 36px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .form-grid.two-column { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}
@media (max-width: 580px) {
  .shell { width: min(100% - 24px, 1180px); }
  .page { padding-top: 34px; }
  .nav { gap: 12px; font-size: 13px; }
  .auth-copy { display: none; }
  .auth-card, .narrow-card, .card { padding: 23px; border-radius: 18px; }
  .hero-row h1 { font-size: 32px; }
  .metrics { grid-template-columns: 1fr; }
  .copy-row { grid-template-columns: 1fr; }
}

