@font-face {
  font-family: "DM Sans";
  src: url("../concepts/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #162d24;
  --forest: #104738;
  --muted: #4c6258;
  --accent: #116146;
  --tint: #e8f1e7;
  --paper: #f6f8f3;
  --surface: #fff;
  --rule: #b9cbbf;
  --error: #942b25;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: var(--font);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 var(--font);
}
[hidden] {
  display: none !important;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-underline-offset: 0.17em;
}
button,
select,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  padding: 0.6rem;
  background: white;
  z-index: 2;
}
.mast {
  max-width: 80rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 5vw, 4rem);
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark,
.library {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark {
  font: 800 1.55rem var(--display);
  color: var(--forest);
  letter-spacing: -0.065em;
}
.library {
  color: var(--forest);
  font-size: 1rem;
  font-weight: 650;
}
.library:hover { text-decoration: underline; }
.spread {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4rem) 4rem;
  align-items: start;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
}
h1 {
  color: var(--forest);
  font-size: clamp(2.8rem, 4.8vw, 4rem);
  letter-spacing: -0.07em;
  font-weight: 650;
  line-height: 0.99;
}
h1 span {
  color: var(--accent);
}
.intro,
#step-note,
.helper,
.draft p,
.terms p,
.review-note {
  color: var(--muted);
}
.intro {
  margin: 1.1rem 0 1.5rem;
  max-width: 34ch;
}
#steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
#step-map summary { display: none; }
#steps button {
  width: 100%;
  text-align: left;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
}
#steps button:hover,
.quiet:hover,
.draft-actions button:hover {
  background: var(--tint);
}
#steps [aria-current="step"] {
  color: var(--ink);
  background: var(--tint);
  font-weight: 700;
}
.step-num {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  font-size: 0.77rem;
  letter-spacing: 0.06em;
}
#steps [aria-current="step"] .step-num {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}
.draft {
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.4rem;
  font-size: 0.92rem;
}
.draft summary {
  min-height: 44px;
  align-content: center;
  line-height: 1.5;
  padding: 0.7rem 0;
  font-weight: 650;
}
.draft-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.draft-actions button,
.quiet,
.edit {
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  color: var(--accent);
  font: 600 0.91rem var(--font);
}
.sheet {
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 4rem -2.5rem #123c281c;
  background: var(--surface);
  padding: clamp(1.1rem, 3.5vw, 3rem);
}
.step-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 650;
  color: var(--accent);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
progress {
  height: 6px;
  background: var(--tint);
  border: 0;
  border-radius: 2rem;
  overflow: hidden;
  max-width: 9rem;
  width: 30%;
  accent-color: var(--accent);
}
progress::-webkit-progress-bar {
  background: var(--tint);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
progress::-moz-progress-bar {
  background: var(--accent);
}
h2 {
  margin: 1rem 0 0.6rem;
  font-size: clamp(1.95rem, 3.2vw, 3.1rem);
  letter-spacing: -0.055em;
}
#step-note {
  max-width: 53ch;
}
#fields {
  margin-top: 1.8rem;
}
.field {
  margin-top: 1.15rem;
}
.field:first-child {
  margin-top: 0;
}
.field > label,
legend {
  display: block;
  font-weight: 650;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #83998a;
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.57rem 0.68rem;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  margin-top: 0.38rem;
}
.field textarea {
  min-height: 6rem;
  resize: vertical;
}
.helper,
.validation,
.review-note {
  font-size: 0.9rem;
  margin-top: 0.27rem;
}
.required-label {
  margin-left: 0.6rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}
.chosen-design {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  text-decoration: none;
}
.chosen-design img {
  width: min(32%, 8rem);
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 0.3rem;
}
.chosen-design strong, .chosen-design span span { display: block; }
.chosen-design span span { text-decoration: underline; font-size: 0.86rem; }
.extra-fields { margin-top: 1rem; }
.extra-fields summary {
  min-height: 44px;
  padding-block: 0.6rem;
  color: var(--accent);
  font-weight: 600;
}
.check {
  min-height: 44px;
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
}
.check input {
  min-width: 20px;
  min-height: 20px;
  margin: 0.15rem 0;
  accent-color: var(--accent);
}
.group-title {
  font-size: 1.3rem;
  margin-top: 2rem;
  letter-spacing: -0.04em;
}
.plan {
  background: var(--tint);
  padding: 1.15rem;
  border-radius: 0.55rem;
}
.plan strong {
  font: 700 1.45rem var(--display);
  letter-spacing: -0.045em;
}
.plan p {
  margin-top: 0.35rem;
}
.actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}
.primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 3rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  font: 650 1rem var(--font);
  margin-left: auto;
}
.primary:hover {
  background: var(--forest);
}
.primary:disabled { opacity: 0.65; cursor: wait; }
.actions { flex-wrap: wrap; }
.actions .quiet {
  border: 0;
}
#status:not(:empty),
#storage-status:not(:empty) {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}
#errors,
.validation {
  color: var(--error);
}
#errors {
  margin-top: 1.3rem;
  padding: 1rem;
  background: #fff4f0;
  border-left: 3px solid var(--error);
}
#errors ul {
  margin: 0.35rem 0 0;
  padding-left: 1.35rem;
}
#errors a {
  color: var(--error);
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}
.review-group {
  border-bottom: 1px solid var(--rule);
  padding-block: 0.25rem;
}
.review-group summary {
  min-height: 48px;
  align-content: center;
  padding-block: 0.65rem;
  font-weight: 650;
}
.plan + .review-group, .review-group + .review-note { margin-top: 1.25rem; }
#receipt { margin-top: 1rem; }
#receipt-number { font-weight: 700; color: var(--forest); }
#receipt p + p { margin-top: 0.4rem; }
#receipt button, #receipt a { display: inline-block; margin: 1.5rem 1rem 0 0; }
.edit {
  background: transparent;
  border: 0;
  text-decoration: underline;
}
dl {
  display: grid;
  grid-template-columns: minmax(6em, 0.85fr) 1.15fr;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.94rem;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.section-choices {
  border: 0;
  padding: 0;
  margin: 1.75rem 0 0;
  min-width: 0;
}
.section-choices .field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 9rem);
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
}
.section-choices select {
  margin: 0;
}
.section-choices label {
  font-weight: 500;
}
@media (max-width: 700px) {
  .spread {
    display: block;
    padding-top: 1.4rem;
  }
  .mast {
    padding-block: 0.65rem;
  }
  h1 {
    font-size: 2.25rem;
  }
  .intro {
    max-width: unset;
    margin: 0.55rem 0 0.8rem;
  }
  .sheet {
    margin-top: 1.3rem;
  }
  .draft {
    margin-top: 0.45rem;
  }
  #step-map summary {
    display: list-item;
    min-height: 44px;
    align-content: center;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    font-weight: 650;
  }
  #step-map:not([open]) + .draft { margin-top: 0; }
  #steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem;
  }
  #steps button {
    font-size: 0.8rem;
    gap: 0.3rem;
    padding: 0.3rem 0.35rem;
    line-height: 1.15;
  }
  .step-num {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.66rem;
  }
  h2 {
    font-size: 2rem;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 0.14rem;
  }
  dd {
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 360px) {
  #steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wordmark {
    font-size: 1.2rem;
  }
  .library {
    font-size: 0.84rem;
  }
}
