:root {
  color-scheme: light;
  --snow: #f7f5ef;
  --paper: #fffdf8;
  --frost: #dce8e9;
  --lake: #315f6c;
  --night: #152a36;
  --ink: #1d3038;
  --muted: #53666d;
  --porch-light: #e2ab55;
  --line: #b8cacb;
  --page-gutter: clamp(1rem, 5vw, 4rem);
  --content-width: 72rem;
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

body,
button,
input,
textarea {
  font-family: inherit;
}

.staging-banner {
  position: relative;
  z-index: 30;
  width: 100%;
  padding: 0.45rem var(--page-gutter);
  overflow-wrap: anywhere;
  border-bottom: 2px solid #5b3b00;
  background: #ffdf8a;
  color: #332000;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.35;
}

.staging-banner p {
  margin: 0;
}

a {
  color: currentColor;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--porch-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 0.875rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--night);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  background: var(--night);
  color: var(--paper);
}

.header-inner,
.footer-inner {
  width: min(100% - (2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  padding-block: 1rem 0.75rem;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.025em;
  line-height: 1.15;
}

.wordmark span {
  color: var(--frost);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0.75rem calc(-1 * var(--page-gutter)) 0;
  padding: 0 var(--page-gutter) 0.25rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.nav-list a,
.button,
.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-list a {
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero,
.section {
  width: min(100% - (2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 5vw, 4rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--lake);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-block: 0;
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 12vw, 6.5rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 7vw, 4rem);
}

.hero-lede,
.section > p,
.prose,
.gallery-heading p {
  max-width: 65ch;
}

.hero-lede {
  margin-block: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 3vw, 1.35rem);
}

.button {
  width: fit-content;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--night);
  background: var(--night);
  color: var(--paper);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--lake);
}

.hero-photo,
.tree-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 0.5rem solid var(--paper);
  outline: 1px solid var(--line);
}

.hero-photo {
  grid-row: 1;
}

.tree-photo {
  max-height: 32rem;
  margin-top: 1.5rem;
}

.section {
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
  scroll-margin-top: 1rem;
}

.story {
  border-top: 1px solid var(--line);
}

.installation-steps,
.installation-tips {
  max-width: 46rem;
}

.installation-steps {
  padding-left: 1.5rem;
}

.installation-steps li + li {
  margin-top: 0.75rem;
}

.contact {
  border-top: 1px solid var(--line);
}

.contact-email {
  display: block;
  width: min(100%, 31.25rem);
  height: auto;
  margin-block: 1.25rem 0.75rem;
}

.contact-address {
  overflow-wrap: anywhere;
}

.prose {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.details {
  width: 100%;
  max-width: none;
  padding-inline: var(--page-gutter);
  background: var(--frost);
}

.section-inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.detail-list {
  display: grid;
  gap: 0;
  max-width: 52rem;
  margin-block: 2rem;
  padding: 0;
  list-style: none;
  counter-reset: details;
}

.detail-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  counter-increment: details;
  font-weight: 650;
}

.detail-list li::before {
  color: var(--lake);
  content: "0" counter(details);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.important-note {
  max-width: 65ch;
  padding: 1rem;
  border-left: 0.3rem solid var(--porch-light);
  background: var(--paper);
}

.price {
  border-bottom: 1px solid var(--line);
}

.gallery {
  display: grid;
  gap: 2rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.photo-gallery figure {
  margin: 0;
}

.photo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 0.5rem solid var(--paper);
  outline: 1px solid var(--line);
}

.photo-gallery figcaption {
  padding-block: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-place {
  display: grid;
  min-height: 22rem;
  place-items: end start;
  padding: 1.25rem;
  border: 0.65rem solid var(--paper);
  outline: 1px solid var(--line);
  background: var(--lake);
  color: var(--paper);
}

.photo-place span {
  max-width: 22ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 52rem;
  margin-block: 2rem 0;
}

.faq-list div {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.faq-list dt {
  color: var(--night);
  font-size: 1.1rem;
  font-weight: 750;
}

.faq-list dd {
  max-width: 65ch;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.order {
  width: 100%;
  max-width: none;
  padding-inline: var(--page-gutter);
  background: var(--porch-light);
}

.order .eyebrow {
  color: var(--night);
}

.order .button {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.5rem;
  text-align: center;
}

.order .section-inner > * {
  margin-inline: 0;
}

.form-page {
  max-width: 52rem;
}

.order-form {
  display: grid;
  width: 100%;
  gap: 1.5rem;
  margin-top: 2rem;
}

.order-form fieldset {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.order-form legend {
  padding-inline: 0.35rem;
  color: var(--night);
  font-weight: 750;
}

.order-form label {
  margin-top: 0.5rem;
  font-weight: 700;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--lake);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.order-form textarea {
  resize: vertical;
}

.order-form .choice-label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.order-form .choice-label input {
  width: 1.25rem;
  min-height: 1.25rem;
  flex: 0 0 1.25rem;
  margin: 0;
}

.order-form .button {
  width: 100%;
  min-height: 44px;
}

.policy-copy {
  padding: 1rem;
  border-left: 0.3rem solid var(--porch-light);
  background: var(--snow);
}

.form-errors {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid #a12d2d;
  background: #fff1f1;
}

.form-errors h2 {
  font-size: 1.35rem;
}

.form-errors ul {
  margin-bottom: 0;
}

.field-error {
  margin: 0;
  color: #8b1f1f;
  font-weight: 750;
}

.confirmation-details {
  max-width: 40rem;
  margin-block: 2rem;
}

.confirmation-details div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 1fr;
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

.confirmation-details dt {
  font-weight: 750;
}

.confirmation-details dd {
  margin: 0;
}

.site-footer {
  padding-block: 2rem;
  background: var(--night);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  padding-inline: 0.5rem;
}

@media (min-width: 48rem) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem;
  }

  .nav-list {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-photo {
    grid-row: auto;
  }

  .details-inner {
    display: grid;
    grid-template-columns: minmax(15rem, 0.75fr) minmax(22rem, 1.25fr);
    gap: 1rem 4rem;
  }

  .details-inner > * {
    width: auto;
    margin-inline: 0;
  }

  .details .important-note {
    grid-column: 2;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .photo-place {
    min-height: 34rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-shell {
  max-width: 36rem;
  padding-block: 2rem 3rem;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form input,
.auth-form button {
  min-height: 44px;
  font: inherit;
}

.content-shell,
.coordinator-bar {
  width: min(100% - (2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.coordinator-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.coordinator-nav,
.coordinator-identity,
.coordinator-identity form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.coordinator-nav a,
.coordinator-identity button,
.pagination a,
.pagination span,
.back-link,
.order-filters button,
.order-filters input,
.order-filters select {
  min-height: 44px;
}

.coordinator-nav a,
.pagination a,
.pagination span,
.back-link {
  display: inline-flex;
  align-items: center;
}

.coordinator-main {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.coordinator-main h1 {
  max-width: none;
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

.coordinator-main h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.summary-grid,
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.summary-card,
.coordinator-card,
.empty-state,
.order-history {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.summary-card {
  display: grid;
  min-height: 8rem;
  align-content: space-between;
  text-decoration: none;
}

.summary-card strong {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 500;
}

.order-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  align-items: end;
  gap: 1rem;
  margin-block: 1.5rem;
}

.order-filters label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.order-filters input,
.order-filters select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--lake);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.order-filters button {
  padding: 0.55rem 1rem;
  border: 2px solid var(--night);
  background: var(--night);
  color: var(--paper);
  font: inherit;
  font-weight: 750;
}

.order-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table caption {
  padding: 0.75rem;
  font-weight: 750;
  text-align: left;
}

.order-table th,
.order-table td {
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.order-table th {
  background: var(--frost);
}

.button-quiet {
  background: transparent;
  color: var(--night);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.back-link {
  margin-bottom: 1rem;
}

.order-detail-grid {
  align-items: start;
}

.order-mutation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.order-mutation-form {
  display: grid;
  gap: 0.85rem;
}

.order-mutation-form > label:not(.choice-label) {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.order-mutation-form select,
.order-mutation-form textarea,
.order-mutation-form input:not([type="hidden"]):not([type="checkbox"]),
.order-mutation-form button {
  min-height: 44px;
  font: inherit;
}

.order-mutation-form select,
.order-mutation-form textarea,
.order-mutation-form input:not([type="hidden"]):not([type="checkbox"]) {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--lake);
  background: #fff;
  color: var(--ink);
}

.order-mutation-form textarea {
  resize: vertical;
}

.order-mutation-form .choice-label {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 44px;
  align-items: center;
}

.order-mutation-form .choice-label input {
  width: 1.25rem;
  height: 1.25rem;
}

.form-hint,
.mutation-consequence {
  color: var(--muted);
  font-weight: 500;
}

.mutation-warning,
.coordinator-notice {
  padding: 0.75rem;
  border-left: 0.35rem solid var(--porch-light);
  background: var(--frost);
}

.read-only-note {
  margin-top: 1rem;
}

.coordinator-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-preview {
  max-width: 100%;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--frost);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid currentColor;
  font-weight: 750;
}

@media (max-width: 42rem) {
  .communication-table thead, .administration-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .communication-table, .communication-table tbody, .communication-table tr, .communication-table td,
  .administration-table, .administration-table tbody, .administration-table tr, .administration-table td { display: block; width: 100%; }
  .communication-table tr, .administration-table tr { padding: 0.75rem; border-top: 1px solid var(--line); }
  .communication-table td, .administration-table td { display: grid; grid-template-columns: minmax(7rem, 35%) 1fr; gap: 0.5rem; padding: 0.35rem 0; border: 0; }
  .communication-table td::before, .administration-table td::before { content: attr(data-label); font-weight: 750; }
}

.administration-page { max-width: 72rem; }
.administration-page section { margin-top: 2rem; }
.administration-page h2 { max-width: none; }
.administration-page input:not([type="checkbox"]),
.administration-page select,
.administration-page textarea,
.administration-page button { min-height: 44px; font: inherit; }
.administration-page input:not([type="checkbox"]),
.administration-page select,
.administration-page textarea { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--lake); background: #fff; color: var(--ink); }
.administration-page .choice-label { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 44px; align-items: center; }
.administration-page input[type="checkbox"] { width: 1.25rem; height: 1.25rem; justify-self: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.private-card {
  border-left: 0.35rem solid var(--porch-light);
}

.private-label {
  color: var(--muted);
  font-weight: 750;
}

.coordinator-card address {
  font-style: normal;
}

.coordinator-detail-list {
  margin-block: 1rem 0;
}

.coordinator-detail-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--line);
}

.coordinator-detail-list dt {
  font-weight: 750;
}

.coordinator-detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.preserve-lines {
  white-space: pre-wrap;
}

.reconciliation-page { max-width: 58rem; }
.reconciliation-page .coordinator-card,
.current-history { margin-top: 1rem; }
.reconciliation-form { display: grid; gap: 0.85rem; margin-top: 1rem; }
.reconciliation-form fieldset { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.reconciliation-form label:not(.choice-label):not(.deposit-choice) { display: grid; gap: 0.3rem; font-weight: 750; }
.reconciliation-form input:not([type="checkbox"]),
.reconciliation-form select,
.reconciliation-form button,
.payment-actions button,
.button-link { min-height: 44px; font: inherit; }
.reconciliation-form input:not([type="checkbox"]),
.reconciliation-form select { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--lake); background: #fff; color: var(--ink); }
.reconciliation-form button { padding: 0.65rem 1rem; border: 2px solid var(--night); background: var(--night); color: var(--paper); font-weight: 750; cursor: pointer; }
.reconciliation-form button:disabled { border-color: var(--line); background: var(--frost); color: var(--muted); cursor: not-allowed; }
.reconciliation-form button:not(:disabled):hover { background: var(--lake); }
.reconciliation-form .choice-label,
.deposit-choice { display: grid; grid-template-columns: 44px minmax(0,1fr); min-height: 44px; align-items: center; }
.reconciliation-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; justify-self: center; }
.deposit-choice { padding: 0.5rem; border: 1px solid var(--line); }
.deposit-choice span { display: grid; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.payment-actions form { margin: 0; }
.button-link { display: inline-flex; align-items: center; padding-inline: 1rem; border: 2px solid var(--night); color: var(--night); font-weight: 750; text-decoration: none; }
.current-history ol { display: grid; gap: 1rem; padding-left: 1.5rem; }
.current-history li { padding: 0.75rem; border: 1px solid var(--line); }
.danger-card { border-left: 0.5rem solid #8b1f1f; }

.inventory-page { max-width: 68rem; overflow-wrap: anywhere; }
.inventory-buildability { margin-block: 1.5rem 2.5rem; padding: 1.25rem; border: 2px solid var(--lake); background: var(--paper); }
.inventory-buildability h2 { max-width: none; }
.unknown-status { border-left: 0.5rem solid var(--porch-light); }
.inventory-operate,
.inventory-history { margin-top: 2.5rem; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.annual-recount { max-width: 68rem; }
.recount-operate, .recount-monitor { margin-top: 2.5rem; }
.recount-season-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap:1rem; align-items:start; }
.recount-season { border-top:1px solid var(--mist); padding-block:1rem; }
.recount-freeze-form, .recount-picker, .recount-form, .recount-commit-form { display:grid; gap:1rem; }
.recount-lines, .recount-preview-lines { list-style:none; padding:0; display:grid; gap:1rem; }
.recount-line, .recount-preview-lines > li { min-width:0; padding:1rem; border:1px solid var(--mist); background:var(--paper); }
.recount-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.85rem; }
.recount-evidence { grid-column:1 / -1; }
.recount-form input, .recount-form select, .recount-form textarea, .recount-freeze-form input, .recount-picker select, .recount-commit-form input,
.recount-form button, .recount-freeze-form button, .recount-picker button, .recount-commit-form button { min-height:44px; }
.recount-comparison-heading, .recount-comparison { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.recount-comparison > div { display:grid; gap:.35rem; overflow-wrap:anywhere; }
.recount-warnings, .recount-no-copy { border-left:.4rem solid var(--porch-light); padding:1rem; background:var(--paper); }
@media (max-width: 42rem) { .recount-comparison-heading { display:none; } .recount-comparison { grid-template-columns:minmax(0,1fr); } }
.inventory-card { border-top-width: 0.4rem; }
.exact-inventory { border-top-color: var(--night); }
.estimated-inventory { border-top-color: var(--porch-light); }
.untracked-inventory { border-top-color: var(--muted); }
.inventory-card h3 { margin-block: 0.25rem; color: var(--night); font-size: 1.25rem; }
.inventory-mode { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.inventory-value { padding: 0.75rem; background: var(--frost); }
.inventory-value strong { font-size: 1.2rem; }
.inventory-form { display: grid; min-width: 0; gap: 0.85rem; margin-top: 1rem; }
.inventory-form label,
.inventory-filter label { display: grid; min-width: 0; gap: 0.25rem; font-weight: 750; }
.inventory-form input:not([type="hidden"]):not([type="checkbox"]),
.inventory-form select,
.inventory-form textarea,
.inventory-form button,
.inventory-filter select,
.inventory-filter button { width: 100%; min-height: 44px; padding: 0.6rem 0.7rem; border: 1px solid var(--lake); background: #fff; color: var(--ink); font: inherit; }
.inventory-form button,
.inventory-filter button { border: 2px solid var(--night); background: var(--night); color: var(--paper); font-weight: 750; }
.inventory-form .choice-label { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 44px; align-items: center; }
.inventory-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; justify-self: center; }
.inventory-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.inventory-observation div { display: grid; grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr); gap: 0.5rem; padding-block: 0.35rem; border-top: 1px solid var(--line); }
.inventory-observation dt { font-weight: 750; }
.inventory-observation dd { min-width: 0; margin: 0; }
.inventory-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.75rem; margin-block: 1rem; }
.history-list { display: grid; gap: 1rem; padding-left: 1.5rem; }
.history-list li { min-width: 0; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.history-list h3 { margin-block: 0; color: var(--night); }
.history-attribution { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 36rem) {
  .inventory-range,
  .inventory-filter { grid-template-columns: minmax(0, 1fr); }
}

.order-history {
  margin-top: 1rem;
  overflow-wrap: anywhere;
}

.order-history ol {
  display: grid;
  gap: 1rem;
  padding-left: 1.5rem;
}

.order-history li {
  padding: 1rem;
  border: 1px solid var(--line);
}

.order-history code {
  display: block;
  max-width: 100%;
  padding: 0.75rem;
  overflow-x: auto;
  background: var(--snow);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pickup-admin {
  max-width: 64rem;
}

.pickup-create-card,
.pickup-window-list,
.pickup-window-card {
  margin-top: 1rem;
}

.pickup-window-list {
  display: grid;
  gap: 1rem;
}

.pickup-window-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.pickup-window-form > label:not(.choice-label) {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.pickup-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pickup-time-fields label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.pickup-window-card input,
.pickup-window-card select,
.pickup-window-card textarea,
.pickup-window-card button,
.pickup-create-card input,
.pickup-create-card select,
.pickup-create-card textarea,
.pickup-create-card button {
  min-height: 44px;
  font: inherit;
}

.pickup-window-form input:not([type="checkbox"]),
.pickup-window-form select,
.pickup-window-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--lake);
  background: #fff;
  color: var(--ink);
}

.pickup-window-form textarea {
  resize: vertical;
}

.pickup-window-form .choice-label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
}

.pickup-window-form .choice-label input {
  width: 1.25rem;
  height: 1.25rem;
  justify-self: center;
}

.season-admin-page {
  max-width: 58rem;
}

.season-admin-warning {
  margin-block: 1.5rem;
  padding: 1.25rem;
  border: 2px solid #8b1f1f;
  border-left-width: 0.5rem;
  background: #fff1f1;
}

.season-admin-warning h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.season-admin-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.season-admin-form fieldset {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.season-admin-form legend,
.season-admin-form label {
  font-weight: 750;
}

.season-admin-form label:not(.choice-label) {
  display: grid;
  gap: 0.3rem;
}

.season-admin-form input,
.season-admin-form select,
.season-admin-form textarea,
.season-admin-form button {
  min-height: 44px;
  font: inherit;
}

.season-admin-form input:not([type="checkbox"]),
.season-admin-form select,
.season-admin-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--lake);
  background: #fff;
  color: var(--ink);
}

.season-admin-form textarea {
  resize: vertical;
}

.season-admin-form .choice-label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
}

.season-admin-form .choice-label input {
  width: 1.25rem;
  height: 1.25rem;
  justify-self: center;
}

.payment-setting {
  display: grid;
  gap: 0.5rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 48rem) {
  .coordinator-bar,
  .coordinator-identity {
    align-items: stretch;
  }

  .coordinator-bar,
  .coordinator-identity {
    flex-direction: column;
  }

  .coordinator-nav a,
  .coordinator-identity button {
    min-height: 44px;
  }

  .order-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .order-table,
  .order-table tbody,
  .order-table tr {
    display: block;
  }

  .order-table tbody {
    padding: 0.75rem;
  }

  .order-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .order-table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .order-table td:first-child {
    border-top: 0;
  }

  .order-table td::before {
    content: attr(data-label);
    font-weight: 750;
  }

  .coordinator-detail-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.payment-ledger {
  max-width: 64rem;
}

.payment-ledger > .coordinator-card,
.payment-event-list li {
  margin-top: 1rem;
}

.payment-form {
  display: grid;
  gap: 0.9rem;
}

.payment-form label:not(.choice-label) {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.payment-form input,
.payment-form select,
.payment-form textarea,
.payment-form button {
  min-height: 44px;
  font: inherit;
}

.payment-event-list {
  padding-left: 1.25rem;
}

.production-page {
  max-width: 72rem;
  overflow-wrap: anywhere;
}

.production-page > section,
.production-run,
.demand-card,
.allocation-card {
  margin-top: 1.25rem;
}

.production-bom,
.run-materials,
.production-page .history-list {
  padding-left: 1.25rem;
}

.production-bom,
.production-grid,
.goods-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.9rem;
}

.production-bom > li {
  list-style-position: inside;
}

.run-materials li {
  margin-top: 0.75rem;
}

.run-materials span {
  display: block;
  margin-top: 0.2rem;
}

.warning-text {
  color: var(--danger, #8a241c);
  font-weight: 700;
}

.production-action-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
  min-width: 0;
}

.production-action-form label:not(.choice-label) {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-weight: 700;
}

.production-action-form input,
.production-action-form select,
.production-action-form button,
.production-page .button {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
}

.production-action-form input:not([type="hidden"]):not([type="checkbox"]),
.production-action-form select {
  width: 100%;
}

.production-action-form .choice-label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
}

.production-action-form .choice-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  justify-self: center;
}

.goods-summary {
  margin: 1rem 0;
}

.goods-summary div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.goods-summary dt {
  text-transform: capitalize;
}

.goods-summary dd {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

@media (min-width: 48rem) {
  .production-action-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .production-action-form .choice-label,
  .production-action-form button {
    grid-column: 1 / -1;
  }
}

/* Private coordinator report views */
.report-page { max-width: 100%; padding-block: 2rem 4rem; }
.report-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.report-intro { max-width: 72ch; }
.report-filter { display: grid; grid-template-columns: max-content minmax(12rem, 1fr); align-items: center; gap: .75rem 1rem; max-width: 48rem; margin-block: 1.5rem 2rem; }
.report-filter label, .report-confirm label { font-weight: 750; }
.report-filter select, .report-filter button, .report-export button, .report-confirm input { min-height: 44px; }
.report-filter select { width: 100%; padding: .55rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.report-filter button { grid-column: 2; }
.report-heading { margin-block: 2rem 1rem; }
.report-heading h2, .report-export h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.privacy-label { max-width: 72ch; padding: .75rem 1rem; border-left: .4rem solid var(--porch-light); background: var(--paper); }
.report-snapshot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-block: 1rem; }
.report-snapshot div { padding: .75rem; border: 1px solid var(--line); background: var(--paper); overflow-wrap: anywhere; }
.report-snapshot dt { font-weight: 800; }
.report-snapshot dd { margin: 0; }
.report-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.report-table-title { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: .75rem; background: var(--paper); font-size: 1rem; font-weight: 750; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { min-width: 8rem; padding: .65rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.report-table th { background: var(--frost); }
.report-empty { min-width: 100% !important; text-align: center !important; }
.report-json { max-width: min(40rem, 80vw); max-height: 16rem; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-export { max-width: 54rem; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.report-confirm { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: .5rem; margin-block: 1rem; }
.report-confirm input { width: 24px; margin: 0; justify-self: center; }
@media (max-width: 42rem) {
  .report-filter, .report-snapshot { grid-template-columns: minmax(0, 1fr); }
  .report-filter button { grid-column: 1; width: 100%; }
  .report-table { display: table; width: 100%; max-width: 100%; table-layout: fixed; box-sizing: border-box; }
  .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report-table tbody, .report-table tr, .report-table td { display: block; width: 100%; box-sizing: border-box; }
  .report-table tr { padding: .75rem; border-top: 1px solid var(--line); }
  .report-table td { display: grid; grid-template-columns: minmax(7rem, 35%) minmax(0, 1fr); gap: .5rem; min-width: 0; padding: .35rem 0; border: 0; }
  .report-table td::before { content: attr(data-label); font-weight: 750; }
  .report-table .report-empty { display: block; }
  .report-table .report-empty::before { content: none; }
}

/* Complete global audit history */
.audit-page { max-width: 100%; min-width: 0; padding-block: 2rem 4rem; }
.audit-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.audit-intro { max-width: 72ch; }
.audit-filter fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 64rem; margin-block: 1.5rem 2rem; padding: 1rem; border: 1px solid var(--line); }
.audit-filter legend { padding-inline: .4rem; font-size: 1.25rem; font-weight: 800; }
.audit-filter fieldset > div { display: grid; min-width: 0; gap: .35rem; }
.audit-filter label { font-weight: 750; }
.audit-filter input, .audit-filter select, .audit-filter button, .audit-filter-actions a, .audit-export button, .audit-confirm input, .audit-confirm label { min-height: 44px; }
.audit-filter input, .audit-filter select { box-sizing: border-box; width: 100%; padding: .55rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.audit-filter-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, max-content)); align-items: center; }
.audit-filter-actions a { display: inline-flex; align-items: center; padding-inline: .75rem; }
.audit-results-heading { margin-block: 2rem 1rem; }
.audit-events { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.audit-event { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-top: .35rem solid var(--night); background: var(--paper); }
.audit-event h3, .audit-event h4 { margin-block: 0 .35rem; overflow-wrap: anywhere; }
.audit-action { margin-top: 0; overflow-wrap: anywhere; }
.audit-facts, .audit-changes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.audit-facts > div, .audit-changes > div { min-width: 0; padding: .65rem; border: 1px solid var(--line); overflow-wrap: anywhere; }
.audit-facts dt, .audit-changes dt { font-weight: 800; }
.audit-facts dd, .audit-changes dd { min-width: 0; margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.audit-changes code { display: block; margin-block: .2rem; font-weight: 400; overflow-wrap: anywhere; }
.redaction-warning, .redaction-badge { display: block; padding: .5rem .75rem; border-left: .4rem solid var(--porch-light); background: var(--frost); }
.redaction-badge { margin-top: .4rem; font-size: .85rem; }
.audit-redacted-value { overflow-wrap: anywhere; }
.audit-export { max-width: 64rem; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.audit-confirm { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: .5rem; margin-block: 1rem; }
.audit-confirm input { width: 24px; margin: 0; justify-self: center; }
.audit-confirm label { display: flex; align-items: center; }
@media (max-width: 42rem) {
  .audit-page, .audit-page * { max-width: 100%; box-sizing: border-box; }
  .audit-filter fieldset, .audit-facts, .audit-changes { grid-template-columns: minmax(0, 1fr); }
  .audit-filter-actions { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .audit-filter-actions button, .audit-filter-actions a, .audit-export button { width: 100%; }
  .audit-events, .audit-event { width: 100%; min-width: 0; }
}

/* Owner review: compact product facts and consistent primary ordering actions. */
.button-primary { font-size: 1.3rem; padding: 1rem 1.6rem; min-height: 3.5rem; }
.tree-photo { width: auto; max-width: 100%; max-height: 32rem; }
.detail-list { display: block; list-style: disc; padding-left: 1.3rem; margin-block: 1.5rem; }
.detail-list li { display: list-item; padding-block: .3rem; border: 0; font-weight: 500; }
.detail-list li::before { content: none; }
.order > p:not(.eyebrow) { max-width: var(--content-width); }
.order-journey { padding-left: 1.5rem; }
.order-journey li { margin-block: .35rem; }
.audit-actor-legend { padding-left: 1.3rem; }
.audit-actor-legend li { margin-block: .4rem; }
.audit-events { gap: .5rem; }
.audit-event { padding: .7rem; border-top-width: 1px; overflow-wrap: anywhere; }
.audit-event summary { cursor: pointer; min-height: 2.75rem; }
.audit-event summary strong, .audit-event summary span { display: block; }
.pickup-expectations li { margin-block: .75rem; overflow-wrap: anywhere; }

/* Forest invitation: decorative, static snow keeps every control unobstructed. */
.forest-home { --lake: #205b43; --night: #173e30; --porch-light: #e7b75e; }
.forest-home .hero { background-color: #173e30; color: #fff9ed; padding-inline: var(--page-gutter); border-radius: 0 0 1rem 1rem; }
.forest-home .hero h1, .forest-home .hero-lede { color: #fff9ed; }
.forest-invitation { text-align: left; border-block: 1px solid #c8aa6c; background-color: #f3f5ed; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cpath d='M55 15v40M35 25l40 20M35 45l40-20M49 20l6 6 6-6M49 50l6-6 6 6' fill='none' stroke='%23205b43' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E"); }
.forest-invitation h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.08; color: #205b43; }
.forest-home .eyebrow { color: #8b3042; }
.forest-home .hero .eyebrow { color: #f0d59a; }
.forest-home .order .eyebrow { color: #173e30; }
.forest-home .giving { border-block: 1px solid #c8aa6c; }
.operations-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.3rem; list-style: none; padding: 0; }
.operations-flow li { position: relative; min-width: 0; }
.operations-flow li + li::before { content: "→"; position: absolute; left: -1.8rem; top: 1.5rem; font-size: 1.4rem; }
.operations-flow .summary-card { height: 100%; }
.operations-flow .summary-card strong { font-size: 1.3rem; }
.operations-counts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.operations-counts dd { margin: 0; font-weight: 700; }
@media (max-width: 650px) {
 .operations-flow { grid-template-columns: 1fr; gap: 2.3rem; }
 .operations-flow li + li::before { content: "↓"; left: 50%; top: -2.2rem; }
}

/* Homepage theme: docs/delivery/homepage-formatting-theme.md */
.forest-home .forest-invitation h2 { font-size: clamp(2rem, 7vw, 4rem); }
.forest-home .button-primary { background: #205b43; color: #fff9ed; }
.forest-home .hero .button-primary { background: #f0d59a; color: #173e30; }
.forest-home .installation-tips { background: #f3f5ed; color: #173e30; padding: 1rem; border-radius: .75rem; }
.forest-snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.forest-snow span { position: absolute; left: calc(var(--flake) * 6.3%); top: -2rem; color: #fff; text-shadow: 0 0 2px #205b43; opacity: .35; animation: forest-snowfall calc(12s + var(--flake) * .5s) linear infinite; animation-delay: calc(var(--flake) * -1.7s); }
@keyframes forest-snowfall { to { transform: translate(20px, 105vh); } }
.snow-toggle { display: block; margin: .5rem var(--page-gutter) .5rem auto; padding: .4rem .7rem; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .forest-snow span { animation: none; display: none; } }
.coordinator-setup { margin-block: .75rem; }
.coordinator-setup summary { cursor: pointer; font-weight: 700; }
.pickup-badge { display: inline-block; padding: .25rem .5rem; border-radius: .4rem; background: #eee; color: #333; }
.pickup-badge.complete { background: #dceee1; color: #17452a; }
.pickup-badge.partial { background: #fff0c7; color: #614000; }
