:root {
  --ink: #17201b;
  --muted: #647069;
  --line: #dfe6e1;
  --surface: #ffffff;
  --canvas: #f3f6f3;
  --forest: #174d37;
  --forest-dark: #103a29;
  --mint: #d8f3e5;
  --amber: #c87821;
  --danger: #ad2f2f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #dcefe4 0, transparent 28rem), var(--canvas); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 77, 55, .12);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--forest); color: white; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); }
.account-area { display: flex; align-items: center; gap: 12px; color: var(--muted); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(48px, 8vw, 92px) 0 72px; }
.welcome-grid { min-height: 62vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(40px, 8vw, 100px); align-items: center; }
.welcome-copy h1, .dashboard-heading h1 { max-width: 780px; margin: 8px 0 18px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.dashboard-heading h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.eyebrow { margin: 0; color: var(--forest); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lead { max-width: 690px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.lead.compact { margin-bottom: 0; }
.feature-list { margin: 32px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: center; }
.feature-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px #f8e7d4; }

.sign-in-card, .panel, .stat-card { border: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: 0 20px 60px rgba(34, 58, 45, .08); }
.sign-in-card { padding: 38px; border-radius: 28px; }
.sign-in-card h2 { margin: 22px 0 8px; font-size: 1.7rem; }
.sign-in-card p { color: var(--muted); line-height: 1.6; }
.status-dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: #29a168; box-shadow: 0 0 0 7px #dff4e9; }
.google-button { min-height: 44px; margin: 26px 0 12px; }
.message { min-height: 24px; margin: 10px 0; font-size: .92rem; }
.message.error { color: var(--danger); }
.docs-link { color: var(--forest); font-weight: 750; text-underline-offset: 4px; }

.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.stat-card { padding: 24px; border-radius: 20px; }
.stat-card span { display: block; color: var(--muted); font-size: .9rem; }
.stat-card strong { display: block; margin-top: 10px; font-size: 2rem; }
.stat-card .healthy { color: var(--forest); font-size: 1.3rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; }
.panel { padding: 28px; border-radius: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel h2 { margin: 6px 0 0; font-size: 1.45rem; }

label { display: grid; gap: 7px; color: var(--muted); font-size: .84rem; font-weight: 700; }
input { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #cbd5ce; border-radius: 11px; background: white; color: var(--ink); outline: none; }
input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23, 77, 55, .12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.stack-form { display: grid; gap: 13px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.button { min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 750; }
.button:disabled { cursor: wait; opacity: .62; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-dark); }
.button-secondary { border-color: #b9c7be; background: white; color: var(--forest); }
.button-quiet { min-height: 36px; padding: 7px 12px; background: transparent; border-color: #c9d3cc; color: var(--ink); }

.item-list { display: grid; gap: 10px; margin-top: 20px; }
.item { padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.item strong, .item small { display: block; }
.item small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.pill { flex: none; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: .76rem; font-weight: 800; }
.empty { padding: 26px; border: 1px dashed #c8d2cb; border-radius: 14px; color: var(--muted); text-align: center; }
.banner { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #e7f3eb; color: var(--forest); }
.banner.error { background: #f8e5e5; color: var(--danger); }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 42px; display: flex; gap: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .88rem; }
footer a { color: var(--forest); }
[hidden] { display: none !important; }

@media (max-width: 880px) {
  .welcome-grid, .content-grid { grid-template-columns: 1fr; }
  .welcome-grid { min-height: auto; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 600px) {
  main { width: min(100% - 28px, 1180px); padding-top: 36px; }
  .site-header { padding-inline: 14px; }
  .account-area span { display: none; }
  .welcome-copy h1, .dashboard-heading h1 { font-size: 2.6rem; }
  .sign-in-card, .panel { padding: 22px; border-radius: 20px; }
  .dashboard-heading { align-items: start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .item { align-items: start; flex-direction: column; }
  footer { width: calc(100% - 28px); flex-wrap: wrap; }
}