#setup-dialog {
  border: 0;
  padding: 0;
  width: min(1050px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  border-radius: 20px;
  color: #263b36;
  background: #fafbf8;
  box-shadow: 0 24px 100px #102d3640;
}
#setup-dialog::backdrop {
  background: #132f2ba6;
  backdrop-filter: blur(5px);
}
body:has(#setup-dialog[open]) {
  overflow: hidden;
}
.setup-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: min(740px, calc(100dvh - 48px));
}
.setup-aside {
  background: #173f37;
  color: #eff8e9;
  padding: 35px 28px;
  display: flex;
  flex-direction: column;
}
.setup-aside .wordmark {
  font-size: 14px;
  white-space: nowrap;
}
.setup-aside-copy {
  margin: 42px 0 26px;
}
.setup-aside-copy h2 {
  font-size: 29px;
  line-height: 1.6;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.setup-aside-copy p {
  color: #a7bdb2;
  font-size: 12px;
  line-height: 1.9;
}
.setup-aside .eyebrow {
  color: #b7d596;
}
.setup-aside small {
  margin-top: auto;
  padding-top: 30px;
  color: #9eb6a9;
  font-size: 10px;
}
.setup-steps {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 15px;
  margin: 0;
}
.setup-steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #9eb6a9;
  font-size: 12px;
}
.setup-steps li span {
  border: 1px solid #48685a;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
}
.setup-steps .current {
  color: #eff8e9;
  font-weight: 600;
}
.setup-steps .current span {
  background: #d8efad;
  color: #173f37;
  border-color: #d8efad;
}
.setup-steps .passed span {
  color: #d8efad;
}
.setup-main {
  padding: 30px 42px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.setup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 27px;
}
.setup-top .eyebrow {
  margin: 0;
}
.setup-top button {
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: 12px;
}
.setup-body {
  flex: 1;
  min-width: 0;
}
.setup-body h1 {
  font-size: 28px;
  outline: none;
  line-height: 1.5;
}
.setup-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.setup-form input,
.setup-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce3d8;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: #263b36;
  font-size: 13px;
}
.setup-form input:focus,
.setup-form select:focus {
  outline: 2px solid #638568;
  outline-offset: 1px;
}
.setup-form .subtle-text {
  margin: 7px 0 15px;
  line-height: 1.7;
}
.setup-form .muted {
  margin-bottom: 22px;
}
.setup-form .setup-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}
.setup-check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 2px 0;
  accent-color: #1b5145;
}
.setup-note {
  background: #edf1e6;
  border: 1px solid #dfe7d5;
  border-radius: 9px;
  padding: 15px 17px;
  font-size: 12px;
  line-height: 1.85;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.setup-note p {
  margin: 0 0 10px;
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px;
  gap: 0 16px;
}
.setup-grid label:first-child {
  grid-column: 1;
  grid-row: 1;
}
.setup-grid input:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.setup-grid label:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}
.setup-grid input:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}
.setup-account {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: 12px;
}
.setup-account svg {
  width: 25px;
  color: #547348;
}
.setup-account b,
.setup-account span {
  display: block;
}
.setup-account span {
  font-size: 11px;
  color: #7a8781;
  margin-top: 5px;
}
.setup-readiness {
  margin: 28px 0;
}
.setup-readiness > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.setup-readiness svg {
  width: 25px;
  flex-shrink: 0;
  color: #6d8765;
}
.setup-readiness b {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}
.setup-readiness .badge {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.setup-service-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.setup-service-list span {
  color: #7a8781;
  text-align: right;
}
.setup-review {
  margin: 25px 0;
}
.setup-review > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.setup-review dt {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.setup-review dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  color: #64756a;
}
.setup-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.setup-actions button {
  min-height: 42px;
  font-size: 12px;
  padding: 12px 17px;
  white-space: nowrap;
}
.setup-actions .primary {
  margin-left: auto;
}
.setup-save-note {
  font-size: 10px;
  color: #8a958a;
}
#setup-error {
  color: #ad442e;
  font-size: 12px;
  line-height: 1.8;
  margin: 15px 0 0;
}
.setup-done {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.setup-done li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.setup-progress {
  width: 100%;
  height: 7px;
  margin: 20px 0;
  accent-color: #7b9f65;
}
#setup-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}
#setup-banner button {
  flex-shrink: 0;
}
.setup-settings-card {
  margin-top: 24px;
}
@media (max-width: 700px) {
  #setup-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }
  .setup-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: calc(100dvh - 20px);
  }
  .setup-aside {
    padding: 20px 22px;
  }
  .setup-aside-copy,
  .setup-aside small {
    display: none;
  }
  .setup-steps {
    display: flex;
    gap: 10px;
    margin-top: 18px;
  }
  .setup-steps li {
    font-size: 0;
    gap: 0;
  }
  .setup-steps li span {
    width: 23px;
    height: 23px;
  }
  .setup-main {
    padding: 22px;
  }
  .setup-top {
    margin-bottom: 20px;
  }
  .setup-body h1 {
    font-size: 24px;
  }
  .setup-body .muted {
    font-size: 12px;
  }
  .setup-actions {
    gap: 8px;
  }
  .setup-actions .setup-save-note {
    display: none;
  }
  .setup-actions span {
    display: inline;
  }
  .setup-readiness > div {
    gap: 9px;
  }
  .setup-readiness .badge {
    font-size: 9px;
    padding: 5px 7px;
  }
  .setup-readiness b {
    font-size: 12px;
  }
  #setup-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
