:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5f6d65;
  --line: #d7dfd8;
  --panel: #ffffff;
  --wash: #f5f7f2;
  --wash-2: #edf6f4;
  --green: #176b4d;
  --green-2: #dff5ea;
  --blue: #315f86;
  --amber: #b96b16;
  --shadow: 0 24px 70px rgba(30, 43, 35, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #fbfcf8;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.nav {
  margin-top: 32px;
  display: grid;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a[aria-current="page"] {
  background: var(--green-2);
  color: var(--green);
  font-weight: 700;
}

.sidebar-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.main {
  min-width: 0;
}

.topbar {
  height: 72px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 720;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22a36a;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 720;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

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

.button.ghost {
  background: transparent;
}

.workspace {
  padding: 28px 32px 48px;
  display: grid;
  gap: 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.intro-band {
  background: #10251c;
  color: #f7fbf5;
  padding: 34px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 312px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.intro-band::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 360px;
  height: 260px;
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(255,255,255,0.2) 28% 30%, transparent 30% 60%, rgba(255,255,255,0.12) 60% 62%, transparent 62%),
    linear-gradient(#1d4635, #1b6048);
  opacity: 0.45;
  transform: rotate(-8deg);
  border-radius: 8px;
}

.eyebrow {
  text-transform: uppercase;
  color: #9ed8bf;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.intro-band h1 {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

.intro-copy {
  margin: 26px 0 0;
  max-width: 680px;
  color: #d9e7dc;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .button {
  border-color: rgba(255,255,255,0.28);
}

.hero-actions .button.ghost {
  color: #fff;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 14px;
  border-radius: 8px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: #c8d9ce;
  font-size: 13px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 18px 18px 0;
}

.panel-header h2,
.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.panel-header p,
.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.router-panel {
  overflow: hidden;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
}

.account-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  font-weight: 720;
}

.account-tabs button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-2);
  color: var(--green);
}

.account-card {
  margin: 0 18px 18px;
  background: var(--wash-2);
  border: 1px solid #c9dfda;
  border-radius: 8px;
  padding: 16px;
}

.account-card .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 820;
}

.account-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.account-card code {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  white-space: normal;
}

.audit-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.audit-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 14px;
}

.audit-row span:first-child {
  color: var(--muted);
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 780;
  background: #eef1ee;
  color: var(--muted);
}

.tag.good {
  background: var(--green-2);
  color: var(--green);
}

.tag.warn {
  background: #fff1dc;
  color: var(--amber);
}

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

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 24px;
}

.code-block {
  position: relative;
  background: #111812;
  color: #e8f2ea;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #26372c;
}

.code-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #26372c;
  color: #adc6b4;
  font-size: 13px;
}

.copy {
  border: 1px solid #405345;
  background: #18251b;
  color: #e8f2ea;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checklist {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-2);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.beta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: start;
}

.beta-copy {
  padding: 24px 0;
}

.beta-copy h2 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0;
}

.beta-copy p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 620px;
}

.form-panel {
  padding: 18px;
}

.beta-form {
  display: grid;
  gap: 12px;
}

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

.field label {
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  min-width: 0;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-status {
  min-height: 20px;
  color: var(--green);
  font-weight: 720;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.brand-link {
  color: var(--green);
  font-weight: 820;
  text-decoration: none;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks-shell {
  width: min(640px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.thanks-shell h1 {
  font-size: 42px;
  margin: 16px 0 0;
}

.thanks-shell p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav,
  .sidebar-footer {
    display: none;
  }

  .dashboard-grid,
  .install-grid,
  .beta-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .workspace {
    padding: 18px 16px 34px;
  }

  .intro-band {
    padding: 24px;
  }

  .intro-band h1 {
    font-size: 42px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .metrics-row,
  .account-tabs {
    grid-template-columns: 1fr;
  }

  .audit-row {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 20px 16px;
    flex-direction: column;
    gap: 8px;
  }
}
