:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #e8e3d8;
  color: #17271f;
  font-size: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  padding: 0.75rem;
  padding: clamp(0.75rem, 3vw, 2rem);
}
.public {
  background: #f4f0e7;
  color: #17271f;
  padding: 0;
}
.site-header,
footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.site-header nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-header a,
footer a {
  text-decoration: none;
}
.wordmark {
  color: #17271f;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
}
.public .public-main {
  max-width: 72rem;
  padding: clamp(2.5rem, 8vw, 7rem) 1rem 4rem;
}
.hero {
  max-width: 58rem;
}
.public .eyebrow {
  margin-top: 0;
}
.public h1 {
  max-width: 56rem;
}
.lede {
  max-width: 48rem;
  color: #435149;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.button {
  border: 2px solid #17271f;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  font-weight: 750;
  text-decoration: none;
}
.primary-link {
  background: #17271f;
  color: white;
}
.secondary {
  color: #17271f;
}
.public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}
.public-card {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 1rem;
  margin-top: 0;
  padding: 1.4rem;
}
.public-card p {
  color: #435149;
  line-height: 1.6;
  margin-bottom: 0;
}
footer {
  border-top: 1px solid #d4d8d3;
  color: #536159;
}
main {
  width: 100%;
  max-width: 45rem;
  width: min(100%, 45rem);
  margin: auto;
}
.page,
.state {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 1.25rem;
  padding: 1.25rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  box-shadow: 0 1rem 3rem rgb(23 39 31/8%);
}
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: center;
}
.brand {
  font-size: 1.2rem;
  max-width: 100%;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
a {
  color: #42594d;
  max-width: 100%;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.eyebrow {
  color: #984326;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-top: 2.25rem;
}
h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-size: clamp(2rem, 8vw, 3.75rem);
  line-height: 1.05;
  margin: 0.45rem 0 0.6rem;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1rem;
  margin: 0;
}
.greeting {
  color: #536159;
}
.summary {
  font-size: 1.15rem;
  line-height: 1.6;
}
section {
  border-top: 1px solid #d8ded9;
  margin-top: 2rem;
  padding-top: 1.5rem;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
ul > * + * {
  margin-top: 1rem;
}
li p,
.next p {
  color: #435149;
  line-height: 1.55;
  margin: 0.3rem 0;
}
.range {
  border: 0;
  background: #17271f;
  color: white;
  border-radius: 0.9rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.range span {
  color: #d9e2dc;
  font-size: 0.85rem;
}
.range strong {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-size: clamp(1.25rem, 6vw, 2rem);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.next {
  background: #f5f1e8;
  border: 0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.decisions {
  display: flex;
  flex-direction: column;
}
.decisions > * + * {
  margin-top: 0.75rem;
}
button {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: #17271f;
  background: white;
  border: 2px solid #8b9c91;
  border-radius: 0.65rem;
  padding: 1rem;
  min-height: 3.25rem;
}
button:hover {
  background: #edf2ee;
}
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 3px solid #ba5b35;
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ba5b35;
  outline-offset: 3px;
}
.compact {
  width: 100%;
  max-width: 38rem;
  width: min(100%, 38rem);
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend,
.comment {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.decision {
  display: flex;
  align-items: flex-start;
  border: 2px solid #8b9c91;
  border-radius: 0.65rem;
  padding: 1rem;
  min-height: 3.25rem;
  font-weight: 700;
}
.decision:has(input:checked) {
  border-color: #984326;
  background: #fff3ec;
}
.decision input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  margin-right: 0.75rem;
}
.comment {
  margin-top: 1.5rem;
}
textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  resize: vertical;
  font: inherit;
  color: inherit;
  border: 2px solid #8b9c91;
  border-radius: 0.65rem;
  padding: 0.75rem;
}
input {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font: inherit;
  color: inherit;
  border: 2px solid #8b9c91;
  border-radius: 0.65rem;
  padding: 0.75rem;
}
.authenticated {
  background: #f4f0e7;
}
.auth-shell,
.dashboard {
  max-width: 72rem;
}
.login-card {
  width: min(100%, 32rem);
  margin: 7vh auto 0;
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 1rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
}
.login-card label {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
}
.form-error {
  background: #fff0ec;
  border-left: 0.3rem solid #984326;
  padding: 0.8rem;
}
.form-success {
  background: #e5ece7;
  border-left: 0.3rem solid #42594d;
  padding: 0.8rem;
}
.app-header {
  width: min(100%, 72rem);
  margin: 0 auto 2rem;
}
.app-header form button {
  margin: 0;
  padding: 0.6rem 0.9rem;
  min-height: 2.75rem;
}
.dashboard-heading,
.dashboard-row,
.row-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-heading {
  align-items: flex-start;
  margin-bottom: 2rem;
}
.heading-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.heading-actions .button {
  white-space: nowrap;
}
.dashboard-heading .eyebrow {
  margin-top: 0;
}
.dashboard-heading h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}
.pilot-badge,
.status-pill,
.new-response {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
}
.pilot-badge,
.new-response {
  background: #984326;
  color: white;
}
.dashboard-list {
  gap: 0.75rem;
}
.dashboard-row {
  align-items: center;
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: 1rem;
}
.dashboard-row > div:first-child,
.row-status {
  display: flex;
  flex-direction: column;
}
.dashboard-row span,
.dashboard-row time {
  color: #536159;
  margin-top: 0.25rem;
}
.dashboard-link {
  color: #17271f;
  font-size: 1.05rem;
  font-weight: 800;
}
.row-status {
  align-items: flex-end;
  text-align: right;
}
.status-pill {
  background: #e5ece7;
  color: #17271f !important;
  margin: 0 !important;
}
.empty-state {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: 2rem;
}
.create-form {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.create-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 1rem;
}
.create-form input[type='file'] {
  background: #f4f0e7;
}
.create-form button {
  margin-top: 0.5rem;
}
.create-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.upload-status {
  color: #435149;
  line-height: 1.5;
  margin: 1rem 0 0;
}
.create-form progress {
  accent-color: #984326;
  display: block;
  margin-top: 0.75rem;
  width: 100%;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 750;
}
.detail-heading {
  align-items: center;
}
.timeline {
  border-top: 1px solid #d4d8d3;
}
.timeline-list {
  gap: 0.75rem;
}
.mark-read-form {
  margin: 0 0 1rem;
}
.timeline-event {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: 1rem;
}
.timeline-event time,
.timeline-event p {
  color: #536159;
  margin: 0;
}
.review-callout {
  align-items: center;
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1rem;
}
.review-callout p {
  color: #435149;
  line-height: 1.5;
  margin: 0.35rem 0 0;
}
.review-callout .button {
  flex: 0 0 auto;
}
.approval-form {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: 1rem;
}
.review-editor {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.review-editor > p,
.review-editor .ui-note {
  color: #536159;
}
.review-editor label {
  display: block;
  font-weight: 700;
  margin-top: 1rem;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0 1rem;
}
.scope-editors {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.scope-editor {
  border: 1px solid #d4d8d3;
  border-radius: 0.75rem;
  padding: 1rem;
}
.scope-editor legend {
  color: #17271f;
  font-weight: 800;
  padding: 0 0.35rem;
}
.review-editor button {
  margin-top: 0.5rem;
}
.approval-confirm {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  font-weight: 700;
}
.approval-confirm input {
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
  width: 1.25rem;
  height: 1.25rem;
}
.approval-form button {
  margin-top: 1rem;
}
.approval-complete {
  background: #e5ece7;
  border-radius: 0.85rem;
  font-weight: 800;
  padding: 1rem;
}
.approval-complete p {
  margin: 0;
}
.share-result {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.85rem;
  padding: 1rem;
}
.share-result label {
  display: block;
  font-weight: 800;
}
.share-result input[readonly] {
  background: #f4f0e7;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.share-actions .button {
  display: inline-flex;
  margin: 0;
}
.review-page section > ul {
  gap: 0.75rem;
}
.review-page section > ul > li {
  background: #fffefa;
  border: 1px solid #d4d8d3;
  border-radius: 0.7rem;
  padding: 0.9rem;
}
.review-page .range p {
  color: #d9e2dc;
  line-height: 1.5;
  margin-bottom: 0;
}
.private-review-notes {
  background: #fff3ec;
  border: 1px solid #e6b6a3;
  border-radius: 0.85rem;
  padding: 1rem;
}
.private-review-notes li {
  line-height: 1.5;
}
.private-review-notes p {
  color: #6c493d;
}
form + form,
form + .ui-note,
form button {
  margin-top: 1rem;
}
button.primary {
  color: white;
  background: #984326;
  border-color: #984326;
  text-align: center;
}
button.primary:hover {
  background: #7e351e;
}
.submitted-value {
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.5;
}
.ui-note {
  font-size: 0.85rem;
  color: #536159;
  line-height: 1.5;
}
.state {
  margin-top: 15vh;
}
.state h1 {
  font-size: 2rem;
  font-size: clamp(2rem, 8vw, 3rem);
}
@media (max-width: 24rem) {
  body {
    padding: 0;
  }
  .page,
  .state {
    border-radius: 0;
    border-inline: 0;
    padding: 1.1rem;
  }
  .eyebrow {
    margin-top: 1.5rem;
  }
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .public .eyebrow {
    margin-top: 0;
  }
}
@media (max-width: 42rem) {
  .dashboard-row,
  .review-callout,
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading-actions {
    align-items: flex-start;
  }
  .row-status {
    align-items: flex-start;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
