:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #162b3c;
  background: #f3f6f8;
  font-synthesis: none;
  --accent: #087c72;
  --muted: #536879;
  --line: #dce5eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1b9f98;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  width: 42px;
  height: 42px;
}
.private {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 36px 24px 16px;
}
.intro {
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -1.2px;
  margin: 10px 0;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin: 10px 0;
}
p {
  line-height: 1.6;
}
.intro > p:last-child,
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 3px 14px #17344a04;
  padding: 24px;
}
.overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.overview p {
  font-size: 13px;
  margin: 8px 0 0;
  color: var(--muted);
}
.badge {
  display: inline-block;
  background: #e6f5f0;
  color: #0c655b;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.overall-progress {
  width: 230px;
}
.overall-progress label {
  font-size: 12px;
  font-weight: 600;
}
progress {
  display: block;
  accent-color: var(--accent);
  width: 100%;
  height: 10px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e9eff2;
}
progress::-webkit-progress-value {
  background: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.layout > * {
  min-width: 0;
}
.steps {
  padding: 12px;
  position: sticky;
  top: 20px;
}
.steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps button {
  border: 0;
  background: none;
  width: 100%;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  border-radius: 10px;
}
.steps button[aria-current="step"] {
  background: #eaf6f3;
  color: #075f56;
  font-weight: 700;
}
.step-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  background: #eff3f6;
  border-radius: 50%;
  font-size: 11px;
}
.complete .step-dot {
  background: #d9f2e9;
  color: #08634f;
}
.step-title {
  flex: 1;
}
.content {
  padding: 30px;
}
.section-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 24px;
}
.field {
  margin: 0 0 22px;
}
.field > label,
.field > legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}
.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 45px;
  border: 1px solid #bfcfd8;
  border-radius: 8px;
  padding: 10px 12px;
  color: #162b3c;
  background: #fff;
}
.field textarea {
  min-height: 85px;
  resize: vertical;
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #f3f6f8;
  color: #4d6371;
}
.field fieldset,
fieldset.field {
  border: 0;
  padding: 0;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 3px 18px 3px 0;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.choice input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.subheading {
  font-size: 16px;
  margin: 30px 0 20px;
  line-height: 1.6;
  color: #174c58;
}
.field-error {
  font-size: 12px;
  color: #a12626;
  margin: 6px 0;
}
.invalid input,
.invalid select,
.invalid textarea {
  border-color: #c13a3a !important;
}
.actions {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}
.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  border: 1px solid var(--line);
  padding: 11px 17px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  background: white;
  color: #244a5c;
  min-height: 43px;
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
#save-status {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.message {
  padding: 16px 20px;
  background: #fff7df;
  border: 1px solid #ead59d;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  white-space: pre-line;
  line-height: 1.6;
}
.error {
  background: #fff1ef;
  color: #942820;
  border-color: #edc5c0;
}
.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 26px auto;
  max-width: 720px;
}
.review-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.review-section h3 {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 15px;
}
.review-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
}
.review-item dt {
  color: var(--muted);
}
.review-item dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.text-button {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 32px);
  color: #162b3c;
}
dialog::backdrop {
  background: #102b3c80;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .steps {
    position: static;
  }
  .steps ol {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .steps li {
    flex: 0 0 165px;
  }
  .steps button {
    height: 100%;
    padding: 10px 7px;
  }
  .content {
    padding: 20px;
  }
  .overview {
    align-items: start;
  }
  .overall-progress {
    width: 135px;
  }
  .private {
    display: none;
  }
  main {
    padding: 24px 14px;
  }
  .topbar {
    height: 73px;
    padding: 0 20px;
  }
  .review-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .buttons {
    justify-content: flex-start;
  }
  .overview {
    gap: 12px;
  }
}
