:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #18211d;
  background: #f2f5f1;
}

body { margin: 0; }
main { max-width: 760px; margin: 10vh auto; padding: 2rem; }
nav { align-items: center; display: flex; justify-content: space-between; }
nav .eyebrow { margin-bottom: .2rem; }
.brand { color: #18211d; font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.eyebrow { color: #397258; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin: .1em 0; letter-spacing: -.05em; }
.dashboard-title { font-size: clamp(2rem, 5vw, 3.5rem); }
section { background: white; border: 1px solid #dce5de; border-radius: 1rem; margin-top: 3rem; padding: 1.5rem; box-shadow: 0 12px 36px rgb(27 48 37 / 8%); }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 1rem; }
article { background: #e8eee9; border-radius: 1rem; padding: 1.5rem; }
.button, button { background: #225b43; border: 0; border-radius: .6rem; color: white; cursor: pointer; display: inline-block; font: inherit; font-weight: 700; margin-top: .75rem; padding: .8rem 1.1rem; text-decoration: none; }
button.secondary { background: #e5ece7; color: #1f4937; }
button:disabled { cursor: not-allowed; opacity: .5; }
.alert { background: #fff2ef; border-left: 4px solid #a74032; padding: .8rem; }
.notice { color: #5b685f; }
.success { color: #2e694e; font-weight: 700; }
.environment { color: #69766f; font-size: .875rem; margin-top: 2rem; }
label { display: block; font-weight: 700; margin-bottom: .4rem; }
.search-form { margin-top: 2rem; }
.search-row { display: flex; gap: .6rem; }
input { background: white; border: 1px solid #b8c6bd; border-radius: .6rem; flex: 1; font: inherit; padding: .8rem; }
.stacked-form input:not([type="hidden"]),
.stacked-form select,
.stacked-form textarea {
  background: #fbfdfb;
  border: 1px solid #aebdb3;
  border-radius: .7rem;
  box-sizing: border-box;
  color: #18211d;
  font: inherit;
  font-weight: 400;
  line-height: 1.35;
  padding: .85rem .95rem;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
  width: 100%;
}
.stacked-form input:not([type="hidden"]),
.stacked-form select { min-height: 3.15rem; }
.stacked-form textarea { min-height: 7rem; resize: vertical; }
.stacked-form input:not([type="hidden"]):hover,
.stacked-form select:hover,
.stacked-form textarea:hover { border-color: #7f9788; }
.stacked-form input:not([type="hidden"]):focus,
.stacked-form select:focus,
.stacked-form textarea:focus {
  background: white;
  border-color: #397258;
  box-shadow: 0 0 0 3px rgb(57 114 88 / 16%);
  outline: none;
}
.search-row button { margin-top: 0; }
.results { margin-top: 2rem; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { align-items: center; border-top: 1px solid #dce5de; display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 0; }
.result-list span { color: #69766f; display: block; margin-top: .2rem; }
.result-list a { color: #225b43; font-weight: 700; }
.status { background: #e5ece7; border-radius: 999px; padding: .35rem .65rem; }
.stacked-form { display: grid; gap: 1.15rem; margin-top: 1.5rem; }
.stacked-form label { display: grid; gap: .4rem; }
.stacked-form button { justify-self: start; margin-top: 0; }
.compact-form { background: #f5f7f5; border-radius: .7rem; margin-top: .75rem; padding: 1rem; width: min(360px, 70vw); }
summary { color: #7e3028; cursor: pointer; font-weight: 700; }
button.danger { background: #912f27; }
.success-banner { background: #e7f4eb; border-left: 4px solid #2e694e; padding: .8rem; }
.wide-main { max-width: 1100px; }
.identity-picker select { background: white; border: 1px solid #aebdb3; border-radius: .7rem; flex: 1; font: inherit; padding: .8rem; }
.signature-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.signature-meta span { background: #e8eee9; border-radius: 999px; color: #496052; padding: .35rem .7rem; }
.signature-preview { background: white; border: 1px solid #dce5de; border-radius: .7rem; box-sizing: border-box; min-height: 220px; width: 100%; }
.signature-preview.tall { min-height: 360px; }
.empty-state { background: #f5f7f5; border-radius: .7rem; padding: 1rem; }
.html-editor { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; min-height: 260px !important; }
.revision-list { list-style: none; margin: 0; padding: 0; }
.revision-list li { align-items: center; border-top: 1px solid #dce5de; display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 0; }
.revision-list span { color: #69766f; display: block; font-size: .9rem; margin-top: .25rem; }
.count-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; }
.count-grid div { background: white; border: 1px solid #dce5de; border-radius: .8rem; padding: 1rem; }
.count-grid strong { display: block; font-size: 1.7rem; }
.count-grid span { color: #69766f; }
.preview-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.preview-grid section { margin-top: 0; }
.confirmation-panel { border-color: #8eae9c; }
@media (max-width: 720px) {
  .count-grid, .preview-grid { grid-template-columns: 1fr; }
}
