:root {
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-dark: #111111;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --line-strong: #d9d9d9;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ececec;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.app-frame {
  width: min(1540px, calc(100vw - 32px));
  margin: 18px auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.03em;
  font-family: "Manrope", "Inter", sans-serif;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--text);
}

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

.page-shell {
  padding: 24px;
  display: grid;
  gap: 18px;
  background: #f3f3f3;
}

.view-section {
  display: none;
}

.view-section.is-active {
  display: grid;
  gap: 18px;
}

.overview-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.overview-strip h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.065em;
  line-height: 0.96;
  max-width: 16ch;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
}

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

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

.mini-stat {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.mini-stat span,
.metric-label,
.project-card__details dt {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.mini-stat strong {
  font-size: 28px;
  letter-spacing: -0.05em;
  line-height: 1;
  font-family: "Manrope", "Inter", sans-serif;
}

.dashboard-panel,
.panel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.dashboard-panel {
  padding: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.searchbar svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  letter-spacing: -0.02em;
}

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

.endpoint-chip {
  padding: 0 14px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

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

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

.overview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.overview-item__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.overview-item__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.overview-item h3 {
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: "Manrope", "Inter", sans-serif;
}

.overview-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.overview-item__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.overview-item__meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f3f3;
  border: 1px solid var(--line);
  font-size: 12px;
  color: #474747;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.project-card__identity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.project-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.project-card h3 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
}

.project-card__identity p,
.project-card__body {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.health-pill {
  min-width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 4px solid #59c36a;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1f7a31;
}

.project-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f3f3;
  border: 1px solid var(--line);
  font-size: 12px;
  color: #3c3c3c;
}

.project-card__details {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.project-card__details dd {
  margin: 0;
  color: #2e2e2e;
  word-break: break-word;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
}

.panel-card {
  padding: 24px;
}

.panel-card--wizard {
  padding: 0;
  overflow: hidden;
}

.panel-card--dark {
  background: #111111;
  border-color: #111111;
  color: #fff;
}

.wizard-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 680px;
}

.wizard-sidebar {
  padding: 28px;
  background: linear-gradient(180deg, #fafafa, #f3f4f6);
  border-right: 1px solid var(--line);
}

.wizard-sidebar h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-family: "Manrope", "Inter", sans-serif;
}

.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

.wizard-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--muted);
}

.wizard-step span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.wizard-step strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.wizard-step.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.wizard-form {
  padding: 32px;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 680px;
}

.wizard-error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff4f4;
  border: 1px solid #f1c9c7;
  color: #b33933;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.wizard-pane {
  display: none;
  align-content: start;
  gap: 18px;
  max-width: 760px;
}

.wizard-pane.is-active {
  display: grid;
}

.wizard-pane h3 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-family: "Manrope", "Inter", sans-serif;
}

.wizard-field {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.wizard-field span {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.wizard-field input,
.wizard-field select {
  min-height: 58px;
  font-size: 18px;
  padding: 0 18px;
}

.wizard-field input.has-error,
.wizard-field select.has-error {
  border-color: #d9554f;
  box-shadow: 0 0 0 3px rgba(217, 85, 79, 0.12);
}

.field-error {
  margin: -6px 0 0;
  color: #b33933;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.wizard-checks {
  display: grid;
  gap: 12px;
}

.check-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#wizard-submit {
  display: none;
}

.wizard-actions.is-last #wizard-next {
  display: none;
}

.wizard-actions.is-last #wizard-submit {
  display: inline-flex;
}


.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head--stack {
  display: grid;
  align-items: start;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.muted-on-dark {
  color: rgba(255, 255, 255, 0.72);
}

.site-form {
  display: grid;
  gap: 16px;
}

.site-form label,
.check {
  display: grid;
  gap: 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  letter-spacing: -0.015em;
}

input:focus,
select:focus {
  outline: none;
  border-color: #bfbfbf;
}

button,
.ghost-btn,
.text-btn {
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-1px);
}

.primary-btn,
.ghost-btn {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  border: 0;
  background: #111111;
  color: #fff;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  letter-spacing: -0.01em;
}

.danger-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #f0d0ce;
  background: #fff5f5;
  color: #b33933;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  letter-spacing: -0.015em;
}

.code-block {
  margin: 0;
  min-height: 220px;
  padding: 18px;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f3f3;
  overflow: auto;
  line-height: 1.75;
}

.hint-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hint-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.hint-item strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.hint-item span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

code {
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 13px;
}

@media (max-width: 1220px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .overview-metrics,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-shell {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .app-frame {
    width: calc(100vw - 16px);
    margin: 8px auto;
  }

  .topbar,
  .overview-strip,
  .toolbar,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar__actions,
  .toolbar__actions,
  .overview-metrics {
    flex-wrap: wrap;
  }

  .project-grid,
  .grid-2,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .overview-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-item__meta {
    justify-content: flex-start;
  }
}
