:root {
  color-scheme: light;
  --ink: #273631;
  --muted: #58665f;
  --line: #e2e7e3;
  --canvas: #f5f7f5;
  --panel: #ffffff;
  --sidebar: #f1f4f1;
  --accent: #315f50;
  --accent-hover: #254a3e;
  --accent-soft: #e0eae3;
  --sidebar-width: 240px;
  --header-height: 64px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
input,
textarea {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* The HTML hidden attribute must also override component display rules. */
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: Honor the native hidden attribute. */
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.2px;
}
p {
  line-height: 1.7;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--accent);
}
.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: calc(var(--sidebar-width) - 28px);
  flex-shrink: 0;
}
.brand > span {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.6px;
  line-height: 1;
}
.brand-period {
  color: #849a82;
}
.header-context {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #58675e;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.header-divider {
  color: #ccd4cd;
  font-size: 22px;
  font-weight: 300;
}
.account-menu {
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}
.account-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.account-menu > summary::-webkit-details-marker {
  display: none;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #496143;
  background: #e6ebdf;
  font-size: 12px;
  font-weight: 650;
}
.avatar .icon {
  width: 16px;
  height: 16px;
}
.account-name {
  font-size: 12px;
  font-weight: 500;
}
.account-chevron {
  color: var(--muted);
  padding-bottom: 4px;
}
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 18px);
  width: 215px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 30px #20332712;
}
.account-popover a,
.account-popover button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border: 0;
  background: none;
  border-radius: 5px;
  font-size: 13px;
}
.account-popover a:hover,
.account-popover button:hover {
  background: var(--canvas);
}
.account-popover button[aria-current] {
  color: var(--accent);
}
.account-popover .icon {
  width: 15px;
  height: 15px;
}
.menu-label {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}
.menu-separator {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--header-height));
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 30px 14px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
}
.sidebar-heading {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: #859087;
  padding: 0 14px;
  margin-bottom: 13px;
}
.sidebar-nav {
  display: grid;
  gap: 4px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 6px;
  color: #627067;
  font-size: 13px;
}
.sidebar-nav .icon {
  width: 18px;
  height: 18px;
}
.sidebar-nav a:hover {
  background: #e7ece7;
  color: var(--ink);
}
.sidebar-nav a[aria-current] {
  background: var(--accent-soft);
  color: #355d4c;
  font-weight: 600;
}
.sidebar-section {
  border-top: 1px solid #e0e6df;
  margin-top: 29px;
  padding-top: 24px;
  min-height: 0;
  overflow: auto;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #809b78;
  border-radius: 50%;
  flex-shrink: 0;
}
.page-content {
  width: 100%;
  max-width: 1240px;
  padding: 32px 54px 64px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin-bottom: 12px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-secondary {
  background: white;
  border-color: var(--line);
  color: #5f6b62;
}
.button-secondary:hover {
  background: var(--canvas);
}
.workspace-list {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  overflow: hidden;
}
.workspace-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 25px;
}
.workspace-row + .workspace-row {
  border-top: 1px solid var(--line);
}
.workspace-row:hover {
  background: #fafbf9;
}
.workspace-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #eef1e8;
  color: #697658;
  font-size: 18px;
  font-weight: 500;
}
.workspace-row strong {
  font-size: 14px;
  font-weight: 550;
}
.workspace-row > .icon {
  margin-left: auto;
  color: #8a978b;
}
.workspace-description {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.empty-state {
  text-align: center;
  padding: 64px 25px;
  color: var(--muted);
}
.empty-state > .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: #a1aea1;
}
.empty-state h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p {
  margin-bottom: 0;
  font-size: 13px;
}
.workspace-entry {
  display: flex;
  gap: 23px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  max-width: 700px;
}
.workspace-entry:hover {
  border-color: #b5c5b8;
}
.entry-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #edf1e8;
  border-radius: 8px;
  color: #65795d;
  flex-shrink: 0;
}
.workspace-entry h2 {
  margin-bottom: 8px;
}
.text-link {
  display: flex;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  align-items: center;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.file-tree {
  display: grid;
  gap: 3px;
  font-size: 12px;
}
.tree-folder > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #788578;
  cursor: pointer;
  list-style: none;
}
.tree-folder > summary::-webkit-details-marker {
  display: none;
}
.tree-folder > summary::after {
  content: "⌄";
  margin-left: auto;
  color: #a6b0a6;
}
.tree-folder:not([open]) > summary::after {
  content: "›";
}
.tree-folder ul {
  padding: 0 0 0 12px;
  margin: 2px 0 5px;
  list-style: none;
}
.tree-folder .icon,
.tree-file .icon {
  width: 16px;
  height: 16px;
  color: #929f91;
}
.tree-file {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 5px;
  color: #748071;
}
.tree-file:hover {
  background: #e7ece5;
}
.tree-file[aria-current] {
  background: #e4eadf;
  color: #405b3b;
  font-weight: 500;
}
.tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-empty {
  color: var(--muted);
  padding: 0 14px;
  font-size: 12px;
}
.knowledge-content {
  min-width: 0;
  background: #fafbf9;
}
.editor-layout {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
}
.document-toolbar {
  min-height: 67px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.breadcrumb {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  color: #63705f;
  min-width: 0;
  max-width: 100%;
}
.breadcrumb-current {
  color: #667460;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mode-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}
.mode-switch button {
  border: 0;
  background: none;
  color: #7f8a7b;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.mode-switch button[aria-pressed="true"] {
  color: #3c5940;
  background: #edf2e9;
}
.mode-switch button:hover {
  color: var(--ink);
}
.document-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  flex: 1;
}
.document-column {
  min-width: 0;
  padding: 37px 40px 0;
  display: flex;
  flex-direction: column;
}
.document-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto 30px;
  width: 100%;
}
.document-heading h1 {
  font-size: 26px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.document-heading > div {
  min-width: 0;
}
.document-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #63705f;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.document-caption .icon {
  width: 13px;
  height: 13px;
}
.document-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #63705f;
  font-size: 12px;
  white-space: nowrap;
  padding-top: 6px;
}
.document-status.is-dirty {
  color: #a27c37;
}
.document-status.is-dirty .status-dot {
  background: #bb964f;
}
.document-surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 100%;
  max-width: 860px;
  min-height: 480px;
  margin: 0 auto;
  box-shadow: 0 2px 5px #1a2d1c03;
  flex: 1;
}
#editor-root {
  min-height: 480px;
}
#editor-source {
  width: 100%;
  min-height: 480px;
  height: 100%;
  resize: vertical;
  border: 0;
  border-radius: 7px;
  padding: 30px;
  font:
    12px / 1.9 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #fff;
  color: #53614e;
}
.document-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.document-details {
  border-left: 1px solid var(--line);
  background: #f7f9f5;
  padding: 32px 22px;
}
.details-heading {
  font-size: 12px;
  font-weight: 600;
  color: #63715d;
  margin-bottom: 24px;
}
#frontmatter-form {
  display: grid;
  gap: 20px;
}
.metadata-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.metadata-field > span {
  color: #63705f;
  font-size: 12px;
}
.metadata-field input,
.metadata-field textarea {
  background: white;
  width: 100%;
  border: 1px solid #e0e6db;
  border-radius: 5px;
  padding: 9px 10px;
  color: #627058;
  font-size: 12px;
}
.metadata-field input:read-only,
.metadata-field textarea:read-only {
  background: #f1f4ed;
}
.metadata-field textarea {
  resize: vertical;
  min-height: 86px;
  font-family: ui-monospace, monospace;
  line-height: 1.6;
}
.metadata-empty {
  color: var(--muted);
  font-size: 12px;
}
.editor-error {
  padding: 12px 16px;
  border: 1px solid #e1beba;
  background: #fcf4f2;
  color: #924a3e;
  font-size: 12px;
  margin-bottom: 16px;
  border-radius: 5px;
}
.library-intro {
  max-width: 550px;
  margin: auto;
  text-align: center;
  padding: 80px 25px;
}
.library-intro h1 {
  margin-bottom: 15px;
}
.library-intro > p {
  color: #8d9985;
  font-size: 13px;
  margin-bottom: 24px;
}
@media (min-width: 1600px) {
  .document-column {
    padding-inline: 70px;
  }
  .document-body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar-width: 210px;
  }
  .document-column {
    padding: 28px 24px 0;
  }
  .document-body {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .document-details {
    padding-inline: 17px;
  }
  .page-content {
    padding-inline: 34px;
  }
}
@media (max-width: 850px) {
  .document-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-details {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #frontmatter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-context {
    gap: 14px;
  }
}
@media (max-width: 620px) {
  :root {
    --sidebar-width: 100%;
    --header-height: 58px;
  }
  .app-header {
    padding-inline: 18px;
    gap: 16px;
  }
  .brand {
    width: auto;
  }
  .brand > span {
    font-size: 25px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .header-context {
    font-size: 12px;
  }
  .header-divider,
  .account-name,
  .account-chevron {
    display: none;
  }
  .app-shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .sidebar-heading,
  .sidebar-nav {
    display: flex;
    gap: 6px;
  }
  .sidebar-nav a {
    padding: 9px 12px;
    font-size: 12px;
  }
  .sidebar-section {
    margin-top: 14px;
    padding-top: 14px;
    max-height: 160px;
  }
  .file-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-content {
    padding: 24px;
  }
  h1 {
    font-size: 25px;
  }
  .document-toolbar {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 14px 20px;
    gap: 12px;
  }
  .document-column {
    padding: 26px 18px 0;
  }
  .document-heading {
    margin-bottom: 22px;
    flex-direction: column;
    gap: 8px;
  }
  .document-heading h1 {
    font-size: 22px;
  }
  .document-status {
    font-size: 12px;
    white-space: normal;
    padding-top: 0;
  }
  .document-footer {
    flex-wrap: wrap;
    padding-block: 15px;
  }
  #editor-source {
    padding: 20px;
  }
  .workspace-entry {
    padding: 23px;
    gap: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: Respect the user’s motion preference. */
    scroll-behavior: auto !important;
  }
}

.login-form {
  max-width: 360px;
  display: grid;
  gap: 24px;
}
.login-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}
.errorlist {
  color: #924a3e;
  padding-left: 20px;
}

.public-page {
  background: var(--panel);
}
.public-page .app-header {
  position: static;
}
.public-page .brand {
  width: auto;
}
.public-login {
  margin-left: auto;
}
.public-page .app-shell {
  display: block;
}
.public-page .page-content,
.public-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 28px;
}
.public-intro h1 {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 650px;
  margin-bottom: 28px;
}
.public-content p {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
}
.public-section {
  margin-top: 36px;
}

/* Research shares the application's restrained document layout. */
.work-panel {
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border, #dce2df);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}
.work-panel h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.work-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1rem;
}
.work-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 180px;
  font-size: 0.85rem;
}
.work-form :is(input, select, textarea) {
  font: inherit;
  padding: 0.6rem;
  border: 1px solid #c8d0cc;
  border-radius: 4px;
  background: #fff;
  min-width: 0;
  width: 100%;
}
.work-form textarea {
  min-height: 5rem;
  resize: vertical;
}
.work-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #edf0ee;
  overflow-wrap: anywhere;
}
.work-row small {
  color: #63706a;
  flex-shrink: 0;
}
.finding {
  padding: 1.2rem 0;
  border-bottom: 1px solid #dce2df;
}
.finding h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.finding pre,
.report-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  line-height: 1.6;
}
.report-text {
  max-height: 40rem;
  overflow: auto;
}
.record-text {
  display: block;
  width: 100%;
  min-height: 65vh;
  padding: 1.5rem;
  border: 0;
  resize: vertical;
  font:
    0.9rem / 1.7 ui-monospace,
    monospace;
  tab-size: 2;
  background: #fff;
}
#record-validation {
  white-space: pre-wrap;
  color: #9b352f;
  padding: 1rem;
}
.source-digest {
  overflow-wrap: anywhere;
  font-family: monospace;
}
.source-lines {
  margin-top: 1.5rem;
  border: 1px solid #dce2df;
  padding: 1rem;
  background: white;
}
.source-lines > div {
  display: flex;
  gap: 1rem;
  scroll-margin-top: 5rem;
}
.source-lines > div:target {
  background: #fff2bc;
}
.source-lines a {
  min-width: 3rem;
  text-align: right;
  color: #748078;
  font-size: 0.8rem;
}
.source-lines code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 0.8rem;
}
.work-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}
.work-table :is(td, th) {
  padding: 0.6rem;
  border-bottom: 1px solid #dce2df;
}
@media (max-width: 640px) {
  .work-panel {
    padding: 1rem;
  }
  .work-row {
    flex-direction: column;
    gap: 0.2rem;
  }
}
.report-summary {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.report-summary h3 {
  font-size: 1rem;
  margin-block: 1.2rem 0.4rem;
}
.report-summary small {
  font-family: ui-monospace, monospace;
}

/* One finding at a time, with evidence and review beside a compact index. */
.run-page {
  max-width: 1560px;
  padding-inline: 40px;
}
.run-page .page-heading {
  gap: 20px;
  margin-bottom: 22px;
  align-items: start;
}
.run-page .page-heading h1 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.3;
}
.run-connection {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.run-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.run-summary strong {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink);
}
.run-status {
  padding: 5px 10px;
  border-radius: 4px;
  background: #e7eeea;
  color: #314e44;
  font-weight: 500;
}
.run-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #ccd6d0;
  margin-bottom: 20px;
}
.run-tabs button {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.run-tabs button[aria-selected="true"] {
  border-bottom-color: #315d50;
  color: #234f42;
  font-weight: 600;
}
#findings-count {
  padding: 2px 6px;
  margin-left: 5px;
  border-radius: 4px;
  background: #e5ebe7;
  font-size: 11px;
}
.review-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
  border: 1px solid #d5ddd7;
  border-radius: 6px;
  background: white;
  min-height: 540px;
  overflow: clip;
}
#findings-list {
  background: #f8faf8;
  border-right: 1px solid #dce2df;
  padding: 8px;
}
.finding-nav {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 16px 12px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}
.finding-nav small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
  font-size: 11px;
}
.finding-nav strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.finding-nav[aria-current="true"] {
  background: #e9f0ec;
  border-color: #c8d9ce;
}
.finding-nav:hover {
  background: #eef3ef;
}
.finding-content {
  min-width: 0;
  padding: 26px;
}
.finding-content .finding {
  padding: 0;
  border: 0;
}
.finding-content h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 8px 0 12px;
}
.finding-content h3 {
  font-size: 13px;
  margin-top: 24px;
}
.finding-content p {
  line-height: 1.7;
  font-size: 13px;
}
.finding-content small {
  color: var(--muted);
  font-size: 11px;
}
.finding-evidence {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #dce2df;
  border-radius: 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.finding-evidence summary {
  cursor: pointer;
  line-height: 1.5;
}
.finding-evidence pre {
  max-height: 200px;
  overflow: auto;
  background: #f7f9f7;
  padding: 12px;
  margin: 12px 0;
  font-size: 12px;
}
.finding-review label {
  flex-basis: 100%;
}
.finding-review {
  margin-top: 24px;
}
.finding-review textarea {
  min-height: 80px;
}
.finding-decision,
.finding-conflict {
  border-left: 3px solid #9bae9c;
  background: #f5f8f4;
  padding: 12px;
  margin-top: 18px;
  font-size: 13px;
}
.finding-conflict {
  border-color: #ad863b;
  background: #fcf8eb;
}
.finding-footer {
  display: flex;
  justify-content: end;
  margin-top: 24px;
}
.review-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 860px;
}
.report-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.report-heading a {
  font-size: 12px;
}
#run-events li,
#run-stages li {
  line-height: 1.9;
  font-size: 13px;
}
@media (max-width: 1000px) {
  .run-page {
    padding-inline: 24px;
  }
  .review-workbench {
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
  }
  .finding-content {
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .run-page {
    padding-inline: 16px;
  }
  .run-page .page-heading {
    flex-direction: column;
    gap: 10px;
  }
  .run-page .page-heading h1 {
    font-size: 21px;
  }
  .run-summary strong {
    margin-left: 0;
  }
  .run-tabs {
    gap: 18px;
  }
  .run-tabs button {
    font-size: 12px;
  }
  .review-workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  #findings-list {
    border-right: 0;
    border-bottom: 1px solid #dce2df;
  }
  .finding-nav {
    padding: 10px;
  }
  .finding-nav small {
    margin-bottom: 3px;
  }
  .finding-content {
    padding: 18px;
  }
}
