:root {
  --ink: #182e35;
  --muted: #657477;
  --paper: #f6f6f1;
  --white: #fff;
  --line: #dce3dd;
  --teal: #126857;
  --teal-light: #e5f0e7;
  --nav: #183a3c;
  --gold: #bcdd7e;
  --red: #98382d;
  --radius: 9px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
a:hover {
  color: #0a473a;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: #0b5143;
  color: #fff;
}
.secondary {
  background: transparent;
  color: var(--teal);
  border-color: #b8ccc1;
}
.secondary:hover {
  background: var(--teal-light);
  color: var(--teal);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.small {
  padding: 6px 12px;
  font-size: 13px;
}
.text-button {
  background: none;
  color: var(--teal);
  border: 0;
  padding: 5px 0;
}
.text-button:hover {
  background: none;
  color: #0a473a;
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #80b9a1;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 15px;
  background: white;
  padding: 12px;
  z-index: 30;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: #d8e7df;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  color: white;
  text-decoration: none;
  display: block;
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}
.brand:hover {
  color: white;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  color: #acc6b9;
}
.sidebar nav a {
  display: block;
  color: #d8e7df;
  font-size: 13px;
  text-decoration: none;
  padding: 9px 10px;
  margin: 1px -10px;
  border-radius: 5px;
}
.sidebar nav a:hover,
.sidebar nav a.current {
  background: #2a4b4b;
  color: #f3f8e3;
}
.sidebar nav p {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #95b5a4;
  margin: 20px 0 4px;
}
.profile {
  margin-top: 35px;
  font-size: 12px;
  border-top: 1px solid #375756;
  padding-top: 18px;
}
.profile strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}
.profile a,
.profile .text-button {
  color: #b3cabe;
  font-size: 11px;
}
.shell {
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  padding: 32px 40px 48px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  flex: 1;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 500;
}
h1 {
  font:
    normal 30px/1.2 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
h2 {
  font:
    normal 20px/1.25 Georgia,
    serif;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 16px 0 9px;
  font-weight: 600;
}
h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 6px;
}
p {
  margin: 0 0 17px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
}
.metrics {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 0 0 28px;
  gap: 32px;
}
.metrics > div {
  padding-right: 32px;
  border-right: 1px solid var(--line);
  flex: 1;
}
.metrics > div:last-child {
  border: 0;
  padding-right: 0;
}
.metrics strong {
  font:
    normal 28px/1 Georgia,
    serif;
  display: block;
  color: var(--teal);
  margin-bottom: 6px;
}
.metrics span {
  font-size: 12px;
  color: var(--muted);
}
.section {
  margin: 28px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > span {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  min-width: 0;
}
.panel h2:first-child {
  margin-top: 0;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.narrow {
  max-width: 800px;
}
.muted,
small {
  color: var(--muted);
}
.notice {
  padding: 17px 20px;
  background: #edf2e7;
  border: 1px solid #d8e3cf;
  border-left: 3px solid #a1bc79;
  border-radius: 4px;
  margin-bottom: 22px;
  font-size: 13px;
}
.notice.error {
  background: #fbefeb;
  border-color: #e6b9b0;
  border-left-color: #b95542;
}
.notice.success {
  background: var(--teal-light);
}
.error,
.errorlist {
  color: var(--red);
}
.errorlist {
  font-size: 13px;
  margin: 6px 0;
  padding-left: 20px;
}
.helptext {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 12px;
  display: block;
}
.breadcrumb {
  display: inline-block;
  font-size: 12px;
  margin-bottom: 24px;
  text-decoration: none;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #eef0ec;
  color: #52645f;
  white-space: nowrap;
}
.badge.draft,
.badge.queued {
  background: #f5ecd5;
  color: #866b2c;
}
.badge.ready,
.badge.complete {
  background: #e3efe5;
  color: #326644;
}
.badge.harm,
.badge.failed {
  background: #f8e9e3;
  color: #943e2b;
}
.badge.flag {
  background: #eeebf6;
  color: #6d5591;
}
.badge.required {
  background: #e5eef4;
  color: #365c76;
}
.item-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.item-heading code {
  font-size: 10px;
  color: #6d7c76;
  overflow-wrap: anywhere;
  flex: 1;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #f0f3ed;
  padding: 10px 16px;
  font-weight: 600;
}
td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.table-title {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  font-weight: 550;
}
.simple-list {
  list-style: none;
  padding: 0;
}
.simple-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.simple-list span,
.simple-list small {
  font-size: 12px;
}
.idea-list article {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.idea-list h3 {
  margin-top: 5px;
}
.idea-list p {
  font-size: 13px;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 0;
}
.idea-list form {
  flex-shrink: 0;
}
.search {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 0 20px;
}
.search input {
  margin: 0;
}
.actions,
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.actions {
  justify-content: flex-end;
}
.actions .button {
  font-size: 12px;
}
label {
  display: block;
  font-weight: 550;
  font-size: 12px;
  margin: 15px 0 6px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  width: 100%;
  border: 1px solid #bdcbc3;
  border-radius: 5px;
  background: #fdfefa;
  color: var(--ink);
  padding: 10px 11px;
  min-width: 0;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
  margin: 10px 0;
  cursor: pointer;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 8px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input:invalid:not(:placeholder-shown) {
  box-shadow: none;
}
form button {
  margin-top: 15px;
}
.inline-form button,
.search button,
td form button {
  margin-top: 0;
}
.inline-form input,
.inline-form select {
  width: auto;
}
.inline-form label {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.vitals-grid {
  grid-template-columns: repeat(3, 1fr);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 22px 0;
  padding: 18px;
}
legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 7px;
}
.metadata {
  background: #f0f5ee;
}
.metadata > p {
  font-size: 12px;
}
.check-line {
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 400;
  line-height: 1.7;
}
.check-line input {
  width: auto;
}
.auth-panel {
  max-width: 470px;
  margin: 30px auto;
  background: white;
  border: 1px solid var(--line);
  padding: 35px;
  border-radius: var(--radius);
}
.auth-panel h1 {
  font-size: 34px;
  letter-spacing: -0.8px;
}
.auth-panel button {
  width: 100%;
  margin: 24px 0;
}
.auth-panel p {
  font-size: 13px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 25px;
  align-items: start;
}
.authoring-aside .panel {
  background: #eef2e7;
  padding: 23px;
}
.authoring-aside p {
  font-size: 12px;
  color: #617164;
}
.authoring-aside a {
  font-size: 11px;
}
.sticky-panel {
  position: sticky;
  top: 20px;
}
.stage-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  font:
    16px Georgia,
    serif;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}
.stage-editor .section-heading a {
  font-size: 11px;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #fcfdf7f5;
  border: 1px solid #b8c9b8;
  border-radius: 7px;
  box-shadow: 0 -6px 20px #173a2610;
  margin-top: 20px;
}
.sticky-actions span {
  font-size: 11px;
  color: var(--muted);
}
.sticky-actions button {
  margin: 0 0 0 5px;
  font-size: 12px;
}
.reference-box {
  background: #f2f6f0;
  padding: 15px;
  border-radius: 6px;
  font-size: 12px;
  margin: 20px 0;
}
.reference-box label {
  font-weight: 400;
}
.reference-box p {
  font-size: 12px;
}
.reference-error {
  color: var(--red);
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
details > p,
details li {
  font-size: 13px;
}
details {
  margin: 17px 0;
}
.item-details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.item-details summary {
  color: var(--teal);
}
.small-link {
  font-size: 11px;
  text-decoration: none;
}
.clinical-note {
  font-family: inherit;
  line-height: 1.8;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 20px 0;
}
.lab-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.lab-row input {
  font-size: 12px;
}
.lab-row > div:has(input[type="checkbox"]) {
  align-self: end;
  padding-bottom: 9px;
}
.lab-row label {
  font-size: 10px;
}
.lab-options {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-option {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
  background: #f7f9f3;
}
.lab-option p {
  font-size: 11px;
  margin: 3px 0;
}
.lab-option button {
  margin: 5px 0;
  font-size: 11px;
  padding: 5px 10px;
}
.lab-option input[type="range"] {
  margin: 0;
}
.growth-chart {
  width: 100%;
  min-height: 145px;
  touch-action: none;
  margin: 12px 0;
  border: 1px solid #c9d7bf;
  border-radius: 5px;
  background: #fafcf6;
}
.growth-chart text {
  font-size: 9px;
  fill: #60725f;
}
.growth-control output {
  display: block;
  font-size: 11px;
  color: var(--teal);
  margin-bottom: 8px;
}
.growth-control label {
  font-size: 12px;
}
.growth-control {
  border-bottom: 1px solid #d1ddc7;
  padding-bottom: 8px;
}
.growth-control:last-of-type {
  border: 0;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.response-pane {
  position: sticky;
  top: 15px;
  max-height: calc(100vh - 30px);
  overflow: auto;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 3px;
  margin: -5px 0 20px;
  position: sticky;
  top: -26px;
  background: white;
}
.tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 0;
  padding: 13px 10px;
  font-size: 12px;
}
.tabs button.active {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}
.review-form .panel {
  padding: 22px;
}
.review-form h3 {
  font-size: 15px;
}
.review-progress {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.run-row {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.run-row:hover {
  border-color: #89a894;
}
.run-row p {
  font-size: 12px;
  margin-bottom: 5px;
}
.run-row small {
  font-size: 10px;
}
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
pre:not(.clinical-note) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f5f0;
  padding: 15px;
  border-radius: 4px;
  font-size: 12px;
}
blockquote {
  border-left: 3px solid #bbd1bc;
  padding: 10px 18px;
  margin: 18px 0;
  background: #f5f8f1;
  font-size: 13px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.wrap-anywhere {
  overflow-wrap: anywhere;
}
.footer {
  padding: 16px 40px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #819089;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.footer a {
  color: #718b7b;
}
@media (min-width: 1550px) {
  main {
    padding-left: 65px;
    padding-right: 65px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 30px 20px;
  }
  .shell {
    margin-left: 210px;
  }
  main {
    padding: 35px 28px;
  }
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .authoring-aside {
    grid-row: 1;
  }
  .authoring-aside .panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .authoring-aside .eyebrow,
.authoring-aside h3,
.authoring-aside hr {
    grid-column: 1/-1;
  }
  .growth-chart {
    max-height: 170px;
  }
  .vitals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    gap: 20px;
  }
  .metrics > div {
    padding-right: 20px;
  }
  .two-columns {
    gap: 18px;
  }
  .review-layout {
    gap: 16px;
  }
  .review-form .panel,
.response-pane {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px;
    display: block;
  }
  .brand {
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    gap: 5px 18px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .sidebar nav p {
    display: none;
  }
  .sidebar nav a {
    padding: 5px;
    margin: 0;
    font-size: 12px;
  }
  .profile {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 16px;
  }
  .profile strong {
    margin: 0;
  }
  .profile form {
    margin: 0;
  }
  .profile button {
    margin: 0;
  }
  .shell {
    margin: 0;
  }
  main {
    padding: 30px 20px;
  }
  h1 {
    font-size: 26px;
  }
  .metrics {
    gap: 12px;
    padding: 20px 0;
  }
  .metrics > div {
    padding-right: 12px;
  }
  .metrics strong {
    font-size: 29px;
  }
  .metrics span {
    font-size: 9px;
  }
  .two-columns,
.review-layout {
    grid-template-columns: 1fr;
  }
  .response-pane {
    position: relative;
    top: 0;
    max-height: 440px;
  }
  .section-heading > span {
    display: none;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    gap: 0 13px;
  }
  .lab-row {
    grid-template-columns: 1fr 1fr;
  }
  .authoring-aside .panel {
    display: block;
  }
  .growth-chart {
    min-height: 160px;
    max-width: 340px;
  }
  .idea-list article {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .sticky-actions {
    flex-wrap: wrap;
    padding: 12px;
  }
  .sticky-actions button {
    padding: 9px 10px;
  }
  .footer {
    padding: 20px;
    flex-wrap: wrap;
  }
  .auth-panel {
    padding: 24px;
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
button {
    transition:
      background 0.15s ease,
      border-color 0.15s ease;
  }
}
