:root {
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Noto Sans JP",
    sans-serif;
  letter-spacing: 0;
  color: #26322e;
  background: #f6f8f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 28px;
  background: #fff;
  border-bottom: 1px solid #d7dedb;
}
header strong {
  font-size: 18px;
  color: #1b5944;
}
.environment {
  font-size: 12px;
  background: #fff0ca;
  color: #755300;
  padding: 5px 10px;
  border-radius: 3px;
}
main {
  max-width: 1260px;
  margin: auto;
  padding: 28px;
}
h1 {
  font-size: 25px;
  margin: 4px 0;
}
h2 {
  font-size: 22px;
  margin: 5px 0;
}
h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
p {
  margin: 6px 0;
}
.muted,
.eyebrow {
  color: #65736b;
  font-size: 12px;
}
.heading,
.task-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.heading {
  margin-bottom: 24px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar label {
  font-size: 12px;
}
.clinic-select {
  max-width: 420px;
  margin-bottom: 16px;
}
.heading > div,
.toolbar {
  min-width: 0;
}
h1,
.eyebrow {
  overflow-wrap: anywhere;
}
.task-heading {
  padding: 20px 0 12px;
  border-top: 1px solid #d7dedb;
}
.badge {
  background: #fff0ca;
  color: #755300;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
.badge.done {
  background: #ddf1e6;
  color: #1e644c;
}
.badge.neutral {
  color: #56605d;
  background: #e9eeeb;
}
.workflow {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0 22px;
}
.workflow ol {
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #7a8781;
  font-size: 12px;
}
.workflow li.done {
  font-weight: 700;
  color: #1a7256;
}
.workflow img {
  width: 152px;
  height: 32px;
  flex-shrink: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 36px;
}
.workspace > div {
  min-width: 0;
}
nav {
  display: flex;
  border-bottom: 1px solid #cbd7d0;
  margin-bottom: 22px;
  gap: 16px;
}
nav button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 12px 4px;
  border-bottom: 3px solid transparent;
  min-height: 48px;
}
nav button[aria-selected="true"] {
  color: #146446;
  border-bottom-color: #146446;
  font-weight: 700;
}
section {
  min-width: 0;
  margin-bottom: 26px;
}
.section-title {
  margin-bottom: 8px;
}
.section-title h3 {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  border: 1px solid #bdcac2;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  padding: 9px 12px;
  min-height: 42px;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button:hover:enabled {
  background: #edf5f0;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary {
  background: #196c50;
  color: #fff;
  border-color: #196c50;
}
button.primary:hover:enabled {
  background: #10543d;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #56a789;
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.empty {
  padding: 16px 0;
  color: #67786e;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  background: #fff;
  border-left: 3px solid #95b9a5;
  margin: 12px 0;
  padding: 16px 20px;
  max-height: 340px;
  overflow: auto;
}
.response-section {
  border-top: 1px solid #d7dedb;
  margin-top: 28px;
  padding-top: 22px;
}
fieldset {
  padding: 0;
  margin: 12px 0 0;
  border: 0;
  min-width: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
label input,
label select {
  font-size: 14px;
  width: 100%;
  min-width: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: #196c50;
}
.rejection {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d7dedb;
}
.rejection label {
  flex: 1;
}
legend {
  font-weight: 650;
  margin: 16px 0 8px;
  padding: 0;
}
aside {
  border-left: 1px solid #d7dedb;
  padding-left: 26px;
  margin-top: 12px;
}
.detail-list {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 10px 12px;
  font-size: 13px;
  margin: 0 0 24px;
}
.detail-list dt {
  color: #65736b;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.rule {
  border-top: 1px solid #d7dedb;
  padding-top: 20px;
  margin-top: 20px;
}
ul {
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}
details {
  border-block: 1px solid #d7dedb;
  padding: 12px 0;
  margin: 20px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
}
details dl {
  margin-top: 16px;
}
.history {
  padding-left: 20px;
}
.history li,
.history-row {
  padding: 12px 0;
  border-bottom: 1px solid #e0e7e3;
}
.history small,
.history-row small {
  display: block;
  color: #64746c;
  overflow-wrap: anywhere;
}
.history-row {
  margin-bottom: 8px;
}
footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-top: 1px solid #d7dedb;
  margin-top: 24px;
  padding-top: 14px;
  font-size: 11px;
  color: #738177;
  overflow-wrap: anywhere;
}
#message {
  min-height: 28px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#message.error {
  color: #a32732;
}
#message.success {
  color: #176744;
}
[hidden] {
  display: none !important;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 44px;
}
.history-row strong,
#response-version {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  aside {
    border-left: 0;
    border-top: 1px solid #d7dedb;
    padding: 20px 0;
  }
  .heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .toolbar {
    width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .detail-list {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  main {
    padding: 18px;
  }
  header {
    padding: 12px 18px;
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  h1 {
    font-size: 23px;
  }
  h2 {
    font-size: 19px;
  }
  .task-heading {
    align-items: start;
    gap: 10px;
  }
  .workflow {
    gap: 12px;
  }
  .workflow img {
    width: 100px;
    height: 24px;
  }
  .workflow ol {
    gap: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar label {
    width: 100%;
  }
  nav {
    gap: 16px;
  }
  nav button {
    font-size: 13px;
  }
  .rejection {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-list {
    grid-template-columns: 95px minmax(0, 1fr);
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
}
.login-main {
  max-width: 520px;
  padding-top: 72px;
}
.login-main h1 {
  font-size: 25px;
}
#login-status {
  margin: 24px 0 16px;
}
#google-button {
  min-height: 44px;
}
#actor-name {
  overflow-wrap: anywhere;
  max-width: 180px;
}
.clinic-reports {
  border-top: 1px solid #cad8d0;
  border-bottom: 1px solid #cad8d0;
  padding: 20px 0;
  margin: 16px 0 28px;
}
.report-counts {
  font-weight: 600;
  line-height: 1.8;
}
.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}
.report-filters label {
  min-width: 190px;
  flex: 0 1 240px;
}
.report-row {
  border-bottom: 1px solid #dde3df;
  padding: 12px 0;
}
.report-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr);
  gap: 12px;
  cursor: pointer;
}
.report-row summary strong::before {
  content: "+ ";
  color: #42634f;
}
.report-row[open] summary strong::before {
  content: "- ";
}
.report-state {
  color: #4e5964;
  font-size: 13px;
}
.state-conflicting_history {
  color: #a32839;
}
.state-historical_report,
.state-waiting_response {
  color: #84580c;
}
.report-row p,
.report-binding {
  overflow-wrap: anywhere;
}
.report-source {
  border-left: 3px solid #7b8fad;
  padding: 4px 14px;
  margin: 12px 0;
}
.report-source p {
  margin: 5px 0;
}
.report-coverage {
  margin-top: 18px;
}
.report-row h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}
.report-row button {
  margin-right: 10px;
}
.intake-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #b9c6bf;
  border-radius: 8px;
  overflow: auto;
}
.intake-dialog::backdrop {
  background: #17221c70;
}
.intake-dialog h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
.intake-dialog form {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.intake-dialog form > label { min-width: 0; }
.intake-dialog select { width: 100%; max-width: 100%; min-width: 0; }
.intake-dialog .source-title { font-weight: 600; }
.intake-dialog p {
  margin: 0;
  overflow-wrap: anywhere;
}
.intake-dialog label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.intake-dialog input[type="checkbox"] {
  order: -1;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}
.confirmation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.confirmation-message {
  color: #a32839;
}
#intake-reader {
  max-width: 1060px;
  margin: 28px auto;
  padding: 0 24px;
  overflow-wrap: anywhere;
}

.confirmation-section {
  border-top: 1px solid var(--line, #d7ddda);
  margin-top: 16px;
  padding-top: 12px;
}
.confirmation-section h4 { margin: 0 0 8px; font-size: 15px; }
.confirmation-section button { margin: 8px 8px 0 0; }
.confirmation-history { padding: 8px 0; border-bottom: 1px solid var(--line, #d7ddda); }
.confirmation-history p, .intake-dialog p { overflow-wrap: anywhere; }
#intake-reader select {
  width: min(100%, 360px);
  margin: 10px 0;
}
#reader-items > section {
  margin-top: 32px;
  border-top: 2px solid #b9c6bf;
}
#reader-items article {
  padding: 14px 0;
  border-bottom: 1px solid #dce3df;
}
#reader-items article h3 {
  font-size: 16px;
}
#reader-items article p {
  margin: 6px 0;
}
#reader-items summary {
  cursor: pointer;
  padding: 8px 0;
}
#reader-items h2,
#reader-summary h2 {
  font-size: 21px;
}
#reader-controls {
  border-block: 1px solid #cad8d0;
  padding: 8px 0;
}
#reader-controls .report-filters label {
  flex: 1 1 150px;
  min-width: 0;
}
#reader-controls select {
  width: 100%;
  margin: 0;
}
#reader-items .action-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#reader-items .action-heading h3 {
  margin-bottom: 4px;
}
#reader-items .action-reason {
  color: #375574;
}
#reader-items > details > summary {
  font-size: 18px;
  font-weight: 600;
}
#reader-items .reported-commitment {
  color: #765713;
  font-size: 13px;
}
#reader-items details {
  margin: 10px 0;
  padding: 0;
  border: 0;
}
#reader-memo-text {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid #bdcac2;
  border-radius: 4px;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .report-row summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .report-filters label {
    min-width: 0;
    flex: 1 1 140px;
  }
  .clinic-reports .section-title {
    flex-wrap: wrap;
  }
}

/* Clinic workspace: list and detail share one surface; audit detail is secondary. */
.intake-app { background: #fff; color: #20272b; font-size: 15px; }
.intake-app [hidden] { display: none !important; }
.intake-app :is(button, input:not([type="checkbox"]):not([type="radio"]), select) { min-height: 44px; font-size: 14px; }
.intake-app label:has(input[type="checkbox"]) { min-height: 44px; }
.intake-app :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #216c5a; outline-offset: 2px; }
.intake-app :is(p, dd, li, .item-title, .item-next, .item-contact) { overflow-wrap: anywhere; }
.intake-app > header { flex-direction: row; align-items: center; height: 64px; padding: 12px 28px; border-color: #e2e6e8; }
.intake-app > header strong { color: #172d2b; font-size: 21px; }
.intake-app > header strong span { font-size: 14px; font-weight: 500; margin-left: 12px; }
.intake-app .environment { background: #f4f0df; color: #65592f; }
.intake-app #logout { border: 0; font-size: 14px; color: #556168; }
.intake-app #intake-reader {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  max-width: 1600px; min-height: calc(100dvh - 64px); margin: 0 auto; padding: 0;
}
.clinic-sidebar { background: #f8f9fb; border-right: 1px solid #e2e6e8; padding: 30px 16px; }
.sidebar-title { font-size: 14px; font-weight: 600; margin: 0 12px 22px; color: #59676d; }
.clinic-navigation { display: grid; gap: 6px; }
.clinic-button { text-align: left; border: 1px solid transparent; background: transparent; min-height: 48px; font-weight: 500; font-size: 14px; }
.clinic-button[aria-pressed="true"] { color: #175b50; background: #e4efeb; border-color: #d4e4dc; font-weight: 650; }
.sidebar-footnote { padding: 24px 12px; color: #59676d; font-size: 12px; }
.intake-app label.mobile-clinic-select { display: none; }
.intake-content { min-width: 0; padding: 28px 36px 48px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.workspace-refresh { display: flex; align-items: center; gap: 12px; }
.workspace-refresh .icon-button { flex: 0 0 44px; width: 44px; height: 44px; }
.slack-tracking { border-block: 1px solid #dce2e5; padding: 18px 0; margin-block: 18px; }
.tracking-reason { font-weight: 600; color: #2c5d74; }
.tracking-hold { border-left: 3px solid #ad3b50; padding-left: 12px; color: #873345; }
.tracking-connection { color: #59676d; font-size: 13px; }
.tracking-history ol { padding-left: 20px; }
.intake-app h1 { font-size: 26px; line-height: 1.5; margin: 7px 0 0; }
.intake-app .eyebrow { color: #59676d; font-size: 12px; }
.intake-app #reader-status { max-width: 300px; font-size: 12px; color: #59676d; margin-bottom: 4px; }
.intake-app #reader-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #e2e6e8; margin: 0 0 20px; padding: 12px 0; }
.summary-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 0 24px; border-right: 1px solid #e2e6e8; }
.summary-metric:first-child { padding-left: 0; }
.summary-metric:last-child { border: 0; }
.summary-metric > span { flex: 1; color: #5e6b72; font-size: 14px; }
.summary-metric strong { font-size: 28px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; }
.summary-metric small { font-size: 12px; color: #59676d; }
.summary-metric.attention strong { color: #966323; }
.summary-metric.review strong { color: #386a90; }
.summary-metric.missing strong { color: #667077; }
.coverage-details { margin: 10px 0 22px; border: 0; padding: 0; color: #59676d; font-size: 13px; }
.coverage-details summary { cursor: pointer; padding: 11px 0; min-height: 44px; }
.coverage-details > div { padding: 12px 0; }
.intake-app #reader-controls { border: 0; padding: 0; }
.workspace-toolbar { display: flex; align-items: flex-end; gap: 18px; border-bottom: 1px solid #dce2e5; }
.workspace-views { display: flex; flex: 1; gap: 18px; min-width: 0; }
.workspace-views button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 12px 0; min-height: 46px; font-size: 14px; color: #59676d; white-space: nowrap; }
.workspace-views button[aria-pressed="true"] { border-bottom-color: #247362; color: #195e50; }
.workspace-search { max-width: 215px; padding-bottom: 9px; font-size: 13px; color: #59676d; }
.workspace-search input { min-height: 44px; font-size: 14px; padding: 6px 10px; border-color: #d9e0e3; }
.advanced-filters { padding: 0; border: 0; font-size: 14px; margin: 6px 0; color: #59676d; }
.advanced-filters summary { cursor: pointer; width: fit-content; padding: 11px 0; min-height: 44px; }
.advanced-filters .report-filters { padding: 12px 0; gap: 12px; }
.filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-footer:has(details[open]) { display: block; }
.intake-app #reader-filter-count { font-size: 13px; color: #59676d; margin: 10px 0; text-align: right; }
.intake-app .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intake-split { display: grid; grid-template-columns: minmax(250px, 0.95fr) minmax(300px, 1.05fr); align-items: start; border-top: 1px solid #dce2e5; }
.intake-app #reader-items { margin: 0; }
.intake-app #reader-items > section { margin: 0; border: 0; }
.intake-app #reader-items h2 { padding: 15px 16px; margin: 0; font-size: 13px; font-weight: 600; color: #59676d; background: #f7f9f9; border-bottom: 1px solid #e5e9eb; }
.intake-app #reader-items article { padding: 0; border-bottom: 1px solid #e5e9eb; }
.item-select { display: block; width: 100%; border: 0; border-left: 3px solid transparent; border-radius: 0; text-align: left; background: transparent; padding: 17px 17px 17px 14px; font-weight: 400; }
.item-select[aria-pressed="true"] { background: #edf5f2; border-left-color: #287764; }
.intake-app .item-select:hover:enabled { background: #f2f6f5; }
.intake-app .item-select[aria-pressed="true"]:hover { background: #e7f1ed; }
.intake-app #reader-items .action-heading { display: block; }
.item-title { display: block; font-size: 16px; font-weight: 650; color: #26383a; }
.item-state { display: inline-block; font-size: 13px; color: #8a6026; margin-top: 5px; }
.item-next { display: block; font-size: 14px; margin-top: 6px; color: #53666b; }
.item-contact { display: block; font-size: 13px; margin-top: 8px; color: #59676d; }
.intake-app #reader-detail { margin: 0; padding: 23px 28px 30px; border-left: 1px solid #dce2e5; min-height: 440px; position: sticky; top: 0; max-height: 95dvh; overflow: auto; scroll-margin-top: 14px; }
.intake-app #reader-detail:focus { outline: none; }
.intake-app #reader-detail:focus-visible { outline: 2px solid #69a18e; outline-offset: -2px; }
.detail-back { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 10px; font-size: 14px; }
.intake-app #reader-detail h2 { font-size: 21px; margin: 6px 0 14px; }
.intake-app #reader-detail h3 { font-size: 14px; margin: 0 0 10px; color: #59676d; }
.intake-app #reader-detail .report-state { font-size: 13px; border-radius: 3px; }
.next-question { margin: 22px 0; padding-left: 14px; border-left: 2px solid #559580; }
.next-question p { font-size: 16px; line-height: 1.8; }
.item-metadata { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 9px 12px; font-size: 14px; margin: 20px 0; }
.item-metadata dt { color: #59676d; }
.item-metadata dd { margin: 0; }
.intake-app #reader-detail .confirmation-section { margin: 20px 0 0; padding: 16px 0 0; border-color: #e2e6e8; }
.intake-app #reader-detail .confirmation-section h4 { display: inline-block; font-size: 14px; color: #59676d; margin: 0 12px 0 0; }
.intake-app #reader-detail .confirmation-section > p { display: inline-block; font-size: 14px; }
.intake-app #reader-detail .confirmation-section button { display: block; }
.intake-app .confirmation-section button.primary { background: #216c5a; color: #fff; border-color: #216c5a; }
.detail-actions { margin: 12px 0 26px; }
.detail-actions button { min-height: 44px; padding: 8px 12px; font-size: 14px; color: #52636a; }
.intake-app #reader-detail .evidence-heading { padding-top: 20px; border-top: 1px solid #e2e6e8; }
.intake-app #reader-detail .action-reason { color: #59676d; font-size: 14px; }
.intake-app #reader-detail details { border: 0; margin: 10px 0; padding: 0; font-size: 14px; }
.intake-app #reader-detail summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.intake-app #reader-detail ul { padding-left: 18px; }
.intake-app #reader-detail li { padding-block: 6px; }
.intake-app a { color: #326d95; }
.intake-app .intake-dialog { border-color: #dae1e3; padding: 28px; }
.intake-app .intake-dialog h2 { margin-bottom: 4px; }
.intake-app .intake-dialog .technical-detail { font-size: 12px; color: #59676d; margin-block: 10px; }
.intake-app .intake-dialog .technical-detail summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.intake-app .confirmation-buttons { border-top: 1px solid #e2e6e8; padding-top: 18px; margin-top: 10px; }
.intake-app .confirmation-buttons button[type="submit"] { background: #216c5a; border-color: #216c5a; color: #fff; }
.initiative-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.initiative-heading button { min-height: 44px; }
.initiative-row { border-top: 1px solid #dce2e5; padding: 20px 0; overflow-wrap: anywhere; }
.initiative-row > small { color: #356653; font-weight: 600; }
.initiative-row summary { padding: 12px 0; cursor: pointer; min-height: 44px; }
.initiative-row > button { margin-top: 12px; }
.initiative-row > button + button { margin-left: 8px; }
.initiative-outcome { margin: 12px 0; }
.initiative-evidence { border: 1px solid #dce2e5; padding: 12px; margin: 16px 0; min-width: 0; }
.initiative-dialog .initiative-evidence label { display: flex; justify-content: space-between; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.initiative-dialog .initiative-evidence input { width: 20px; height: 20px; flex: 0 0 20px; }
.initiative-values { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.initiative-values dt { color: #59676d; }
.initiative-values dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.initiative-history { border-top: 1px solid #dce2e5; padding: 12px 0; }
.initiative-dialog input, .initiative-dialog textarea, .initiative-dialog select { width: 100%; min-width: 0; max-width: 100%; }
.initiative-dialog textarea { resize: vertical; font: inherit; line-height: 1.6; }
.initiative-dialog .confirmation-buttons { position: sticky; bottom: -28px; background: #fff; padding: 16px 0; z-index: 1; box-shadow: 0 -8px 12px #ffffff; }
@media (max-width: 600px) {
  .initiative-values { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .initiative-values dd { margin-bottom: 12px; }
  .initiative-dialog .confirmation-buttons { position: static; }
}
.growth-navigation { display: flex; gap: 24px; border-bottom: 1px solid #dce2e5; margin-bottom: 24px; }
.growth-navigation button { border: 0; border-radius: 0; padding: 12px 0; min-height: 44px; background: transparent; color: #59676d; border-bottom: 3px solid transparent; }
.growth-navigation button[aria-pressed="true"] { color: #216c5a; border-bottom-color: #216c5a; }
.intake-app #growth-overview > section { margin: 0 0 28px; border: 0; border-bottom: 1px solid #e2e6e8; padding: 0 0 24px; }
.intake-app #growth-overview h2 { font-size: 18px; margin: 0 0 14px; }
.intake-app #growth-overview h3 { font-size: 15px; margin: 0 0 10px; }
.intake-app #growth-overview p { line-height: 1.7; }
.growth-period { font-size: 14px; }
.intake-app .growth-notice { background: #fff6df; border-left: 3px solid #ad7924; padding: 10px 14px; font-size: 14px; }
.growth-metrics { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 14px; }
.growth-metrics :is(th, td) { padding: 10px; border-bottom: 1px solid #e2e6e8; overflow-wrap: anywhere; vertical-align: top; }
.growth-metrics th { text-align: left; font-weight: 500; width: auto; }
.growth-metrics thead th { color: #59676d; font-size: 12px; }
.growth-metrics thead th:nth-child(2), .growth-metrics thead th:nth-child(3) { text-align: right; }
.growth-metrics thead th:first-child { width: 26%; }
.growth-metrics thead th:last-child { width: 38%; }
.growth-metrics td:nth-child(2), .growth-metrics td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.growth-metrics small { display: block; font-size: 11px; color: #59676d; margin-top: 4px; }
.growth-metrics .metric-system th { font-weight: 650; background: #f4f7f8; font-size: 13px; padding-block: 8px; }
.growth-evidence { margin-top: 12px; font-size: 13px; }
.decision-summary { font-size: 14px; color: #45585b; margin: 0 0 12px; }
.decision-gaps { border: 0; border-left: 3px solid #ad7924; border-radius: 0; background: #fff9ec; padding: 0 14px; margin: 0 0 20px; }
.decision-gaps > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 14px; }
.decision-gaps small { display: block; }
.decision-drafts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.intake-app .decision-draft { min-width: 0; padding: 16px; border: 1px solid #dce2e5; border-radius: 6px; background: #fff; overflow-wrap: anywhere; }
.decision-draft .decision-state { display: block; color: #856222; font-size: 12px; margin-bottom: 8px; }
.decision-draft p { font-size: 14px; margin: 8px 0; }
.decision-detail, .measurement-sources { border: 0; border-radius: 0; padding: 0; margin: 10px 0 0; }
.decision-detail > summary, .measurement-sources > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: #326d95; font-size: 14px; }
.decision-detail h4 { font-size: 13px; margin: 18px 0 6px; }
.decision-responsibility { color: #45585b; }
.decision-questions { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.decision-questions li { border-top: 1px solid #e2e6e8; padding: 10px 0; }
.decision-questions small { display: block; color: #59676d; margin-top: 4px; }
.decision-metadata { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; margin: 20px 0 0; }
.decision-metadata dt { color: #59676d; }
.decision-metadata dd { margin: 0; }
.growth-measurement .measurement-sources { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .decision-drafts { grid-template-columns: minmax(0, 1fr); }
}
.context-action, .context-area { border: 0; border-top: 1px solid #e2e6e8; margin: 0; padding: 0; overflow-wrap: anywhere; }
.context-action > summary, .context-area > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 14px; }
.context-action .growth-check-list { margin-bottom: 16px; }
.context-action small { display: block; }
.context-field { padding: 12px 0 20px; }
.context-field h3 { margin: 0; font-size: 15px; }
.context-field p { margin: 6px 0; font-size: 14px; }
.context-state, .context-evidence, .context-background small { color: #59676d; font-size: 12px; }
.context-evidence { display: flex; flex-direction: column; gap: 8px; }
.context-evidence a { color: #326d95; padding-block: 6px; }
.context-background { border-left: 3px solid #ad893c; padding: 10px 16px; margin-top: 12px; background: #faf9f5; }
.context-background strong { font-size: 13px; }
.growth-evidence summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.growth-evidence .technical-detail { overflow-wrap: anywhere; color: #59676d; }
.growth-check-list { margin: 0; padding: 0; list-style: none; }
.growth-check-list li { border-top: 1px solid #e2e6e8; padding: 14px 0; }
.growth-check-list strong { font-size: 15px; }
.growth-check-list p { font-size: 14px; margin: 6px 0; }
.growth-check-list small, .growth-work-row small { color: #59676d; font-size: 12px; }
.growth-work-group { padding: 16px 0; border-top: 1px solid #e2e6e8; }
.growth-work-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 8px 0; font-size: 14px; }
.growth-work-row button { background: none; border: 0; padding: 8px 0; min-height: 44px; text-align: left; color: #326d95; text-decoration: underline; }
.growth-work-row small { grid-column: 2; }
.intake-app .growth-work-link { margin-top: 8px; font-size: 13px; background: transparent; border: 0; border-radius: 0; color: #326d95; text-decoration: underline; padding: 8px 0; min-height: 44px; }
.growth-measurement > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; border-top: 1px solid #e2e6e8; padding: 14px 0; font-size: 14px; }
.growth-measurement small { grid-column: 1 / -1; color: #59676d; font-size: 12px; }
@media (max-width: 600px) {
  .growth-metrics { font-size: 12px; }
  .growth-metrics :is(th, td) { padding: 8px 4px; }
  .growth-metrics thead th:first-child { width: 27%; }
  .growth-metrics thead th:last-child { width: 33%; }
  .growth-work-row, .growth-measurement > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 1100px) {
  .intake-app #intake-reader { grid-template-columns: 180px minmax(0, 1fr); }
  .intake-content { padding: 24px; }
  .workspace-toolbar { align-items: stretch; flex-direction: column; gap: 4px; }
  .workspace-search { max-width: none; flex-direction: row !important; align-items: center; gap: 10px !important; }
  .workspace-search input { flex: 1; min-width: 0; }
  .intake-split { grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr); }
  .intake-app #reader-detail { padding: 20px; }
}
@media (max-width: 800px) {
  .intake-app > header { padding: 10px 18px; gap: 8px; height: auto; min-height: 60px; flex-wrap: wrap; }
  .intake-app > header strong span { margin-left: 6px; font-size: 12px; }
  .intake-app .environment { font-size: 12px; padding: 3px 5px; }
  .intake-app #intake-reader { display: block; }
  .clinic-sidebar { padding: 12px 20px; border-right: 0; border-bottom: 1px solid #e2e6e8; }
  .sidebar-title, .sidebar-footnote, .clinic-navigation { display: none; }
  .intake-app label.mobile-clinic-select { display: flex; flex-direction: row; align-items: center; gap: 14px; white-space: nowrap; }
  .intake-app #clinic-select { margin: 0; width: 100%; min-width: 0; max-width: 350px; min-height: 44px; padding: 5px 8px; }
  .intake-content { padding: 20px; }
  .workspace-heading { display: block; margin-bottom: 18px; }
  .intake-app h1 { font-size: 23px; }
  .intake-app #reader-status { max-width: none; margin-top: 8px; }
  .intake-split { grid-template-columns: minmax(220px, 0.9fr) minmax(250px, 1.1fr); }
}
@media (max-width: 600px) {
  .intake-content { padding: 20px 16px; }
  .intake-app > header strong { font-size: 18px; }
  .intake-app > header .environment { order: 3; flex-basis: 100%; background: transparent; padding: 0; }
  .intake-app #logout { padding: 8px; min-height: 44px; }
  .summary-metric { padding-inline: 12px; }
  .summary-metric > span { flex: 1 0 100%; font-size: 12px; min-height: 40px; }
  .summary-metric strong { font-size: 25px; }
  .workspace-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .workspace-views button { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .intake-app :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; }
  .intake-split { display: flex; flex-direction: column; }
  .intake-app #reader-items { width: 100%; max-height: 360px; overflow: auto; border-bottom: 1px solid #dce2e5; }
  .intake-app #reader-detail { width: 100%; border-left: 0; position: static; padding: 24px 4px; max-height: none; }
  .item-select { padding-block: 13px; }
  .item-contact { margin-top: 5px; }
  .intake-app .intake-dialog { padding: 20px; }
}

/* Separate daily decisions from full reports without changing their data or gates. */
.intake-app { --ink: #252a31; --subtle: #626b76; --line: #e3e7ec; --accent: #146655; color: var(--ink); }
.intake-app > header { padding-inline: 28px; }
.intake-app .environment { color: #735217; background: #fff6e5; font-size: 11px; }
.intake-app .clinic-sidebar { align-self: stretch; margin-top: 0; border-top: 0; border-left: 0; }
.clinic-navigation { position: sticky; top: 24px; }
.clinic-button { border-radius: 6px; padding: 12px; }
.clinic-button[aria-pressed="true"] { background: #e6f1ec; border-color: transparent; box-shadow: inset 3px 0 #247562; }
.sidebar-title { color: #747c86; font-size: 12px; }
.workspace-heading { align-items: center; margin-bottom: 22px; }
.intake-app h1 { font-size: 26px; font-weight: 700; }
.intake-app h2 { font-size: 18px; }
.intake-app .eyebrow { color: #747c86; }
.growth-navigation { position: sticky; top: 0; z-index: 2; background: #fff; gap: 28px; margin-bottom: 28px; }
.growth-navigation button { padding: 13px 2px; font-weight: 500; white-space: nowrap; }
.growth-navigation button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.intake-app #growth-overview > .workspace-home { border: 0; padding: 0; }
.overview-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.overview-section-heading { margin-bottom: 8px; }
.intake-app #growth-overview .overview-section-heading h3 { font-size: 15px; margin: 0; }
.intake-app .text-command { border: 0; background: none; padding: 4px 0; font-size: 12px; color: #23628a; min-height: 36px; font-weight: 500; }
.intake-app .text-command:hover:enabled { color: #123f5a; text-decoration: underline; background: none; }
.overview-numbers { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.overview-numbers .growth-period { color: var(--subtle); font-size: 12px; }
.overview-metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0; }
.overview-metric { display: grid; grid-template-columns: 1fr; gap: 4px; padding-inline: 20px; border-right: 1px solid var(--line); }
.overview-metric:first-child { padding-left: 0; }
.overview-metric:last-child { border: 0; }
.overview-metric > span { font-size: 12px; color: var(--subtle); min-height: 22px; }
.overview-metric > strong { font-size: 30px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; }
.overview-metric small { font-size: 11px; }
.metric-finality { color: var(--subtle); }
.metric-comparison { color: #55667e; margin-top: 4px; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; padding-top: 22px; }
.overview-columns > div { min-width: 0; }
.overview-tasks { padding-right: 28px; border-right: 1px solid var(--line); }
.intake-app .overview-task { display: grid; gap: 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; width: 100%; text-align: left; background: none; font-weight: 400; }
.intake-app .overview-task:hover:enabled { background: #f7f9fb; }
.overview-task strong { font-size: 15px; }
.overview-task small { font-size: 12px; color: var(--subtle); }
.overview-task-state { font-size: 11px; color: #97610e; font-weight: 500; }
.overview-decision { font-size: 14px; }
.overview-gap-list { padding-left: 18px; font-size: 12px; color: var(--subtle); }
.overview-gap-list li { margin-block: 6px; }
.overview-plan-list { margin-top: 16px; border-top: 1px solid var(--line); }
.intake-app .overview-plan { display: block; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; text-align: left; width: 100%; background: transparent; font-size: 13px; }
.overview-plan small { display: block; font-size: 11px; color: var(--subtle); font-weight: 400; margin-top: 4px; }
.work-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.work-heading h2 { margin: 0; }
.intake-app #reader-summary { background: #f8f9fb; border: 0; padding: 14px 20px; }
.intake-app #reader-items .item-select { padding: 14px 16px; }
.item-next { font-size: 12px; margin-top: 4px; }
.item-contact { font-size: 12px; }
.item-title { font-size: 14px; }
.intake-app #reader-detail { top: 65px; max-height: calc(100dvh - 80px); }
.intake-app #reader-detail h2 { font-size: 19px; }
.growth-metrics thead { background: #f5f7fa; }
.growth-metrics thead th { font-size: 12px; color: var(--subtle); }
.growth-metrics .metric-system th { background: #fff; color: #23628a; font-weight: 650; padding-top: 24px; font-size: 12px; }
.growth-metrics td { font-variant-numeric: tabular-nums; }
.growth-metrics td small { color: var(--subtle); font-size: 11px; margin-top: 4px; }
.intake-app #growth-overview > .workspace-plans { border: 0; }
.initiative-workspace { margin-bottom: 32px; }
.intake-app #growth-overview .initiative-heading h2 { margin: 0; }
.initiative-heading { margin-bottom: 12px; }
.initiative-row { padding: 20px 0; }
.intake-app #growth-overview .initiative-row h3 { font-size: 17px; margin: 8px 0; }
.initiative-row .initiative-state { color: #6e5c27; background: #fbf5e6; padding: 3px 7px; font-size: 11px; border-radius: 3px; }
.initiative-row-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--subtle); font-size: 12px; margin-bottom: 14px; }
.initiative-row > details { border-top: 1px solid #edf0f3; font-size: 13px; }
.initiative-row summary { padding: 10px 0; }
.initiative-row .initiative-review-reason, .initiative-row > .muted { font-size: 12px; }
.initiative-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.initiative-filters { display: flex; align-items: flex-end; gap: 16px; padding: 12px 0 18px; }
.initiative-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--subtle); }
.initiative-filters label:first-child { flex: 1; max-width: 340px; }
.intake-app #intake-reader .initiative-filters select { margin: 0; width: auto; }
.initiative-filters p { margin-left: auto; padding-bottom: 10px; }
.intake-app .initiative-actions button { font-size: 12px; min-height: 38px; }
.intake-app .primary { color: #fff; background: #176855; border-color: #176855; }
.intake-app .primary:hover:enabled { background: #115241; color: #fff; }
.decision-review { border-top: 1px solid var(--line); padding-top: 24px; }
.decision-drafts { gap: 16px; }
.decision-draft { border-radius: 6px; padding: 18px; }
.intake-app #growth-overview .decision-draft h3 { margin: 8px 0; }
.decision-draft > p { font-size: 12px; color: var(--subtle); }
.decision-draft > button { width: 100%; margin-top: 12px; }
.decision-state { font-size: 11px; }
.clinic-context > .context-area { background: #fff; }
.context-area > summary { font-weight: 600; padding: 16px 0; }
.context-field { border-top: 1px solid #edf0f3; padding-block: 16px; }
.context-action > summary { color: #80631e; }
.intake-app .initiative-dialog { width: min(800px, calc(100vw - 32px)); padding: 28px; }
.initiative-field-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; border-top: 1px solid var(--line); padding: 20px 0 10px; margin: 14px 0 0; min-width: 0; }
.initiative-field-group legend { padding-right: 14px; font-size: 14px; font-weight: 650; }
.initiative-field-group label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #505b67; min-width: 0; }
.initiative-field-group :is(input, textarea, select) { color: var(--ink); }
.initiative-field-group textarea { min-height: 88px; }
.initiative-field-group .field-wide { grid-column: 1 / -1; }
.initiative-readiness { font-size: 12px; color: var(--subtle); }
.intake-app .initiative-dialog .confirmation-buttons { position: sticky; bottom: -28px; }
.intake-app .initiative-dialog .confirmation-buttons button { font-size: 13px; }
@media (min-width: 1450px) {
  .intake-app #intake-reader { grid-template-columns: 230px minmax(0, 1fr); }
  .intake-content { padding: 32px 48px 60px; }
}
@media (max-width: 1050px) {
  .overview-columns { gap: 24px; }
  .overview-tasks { padding-right: 20px; }
  .overview-section-heading { align-items: center; flex-wrap: wrap; gap: 0; }
  .overview-metric { padding-inline: 12px; }
}
@media (max-width: 800px) {
  .clinic-sidebar { background: #f8f9fb; }
  .workspace-heading { display: flex; align-items: flex-start; gap: 12px; }
  .workspace-refresh { align-self: center; }
  .intake-app #reader-status { font-size: 11px; max-width: 230px; }
  .growth-navigation { margin-bottom: 22px; }
}
@media (max-width: 600px) {
  .intake-app > header { padding: 10px 16px; }
  .intake-app > header .environment { background: transparent; }
  .clinic-sidebar { padding: 8px 16px; }
  .intake-content { padding: 22px 16px 36px; }
  .workspace-heading { flex-wrap: wrap; margin-bottom: 12px; }
  .workspace-heading > div:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .workspace-refresh { width: 100%; justify-content: space-between; }
  .intake-app #reader-status { max-width: none; margin: 0; }
  .intake-app h1 { font-size: 22px; }
  .growth-navigation { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .intake-app .growth-navigation button[role="tab"] { min-width: 0; font-size: 12px; padding-inline: 0; }
  .overview-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .overview-metric { padding-inline: 16px; }
  .overview-metric:nth-child(odd) { padding-left: 0; }
  .overview-metric:nth-child(even) { border: 0; }
  .overview-metric > span { min-height: 0; }
  .overview-metric > strong { font-size: 28px; }
  .overview-columns { display: block; }
  .overview-tasks { border-right: 0; padding: 0; margin-bottom: 28px; }
  .overview-section-heading { align-items: center; }
  .work-heading { display: block; }
  .intake-app #reader-items { max-height: none; overflow: visible; }
  .intake-app #reader-detail { display: none; max-height: none; padding-top: 12px; }
  .intake-app #intake-reader[data-detail-open="true"] #reader-detail { display: block; }
  .intake-app #intake-reader[data-detail-open="true"] :is(#reader-items, #reader-summary, #reader-controls, .work-heading) { display: none; }
  .intake-app #reader-summary { padding: 12px; }
  .growth-metrics thead th:first-child { width: 29%; }
  .growth-metrics thead th:last-child { width: 31%; }
  .growth-metrics :is(th, td) { padding: 12px 5px; }
  .intake-app .initiative-dialog { padding: 20px; width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .initiative-field-group { grid-template-columns: minmax(0, 1fr); }
  .intake-app .initiative-dialog .confirmation-buttons { bottom: -20px; gap: 6px; }
  .intake-app .initiative-dialog .confirmation-buttons button { font-size: 12px; flex: 1 1 auto; }
  .initiative-filters { flex-wrap: wrap; gap: 10px; }
  .initiative-filters label:first-child { flex-basis: 100%; max-width: none; }
}
