/* Review content uses the repository's native Material palette and shell. */
.study-dashboard {
  --ink: var(--md-default-fg-color);
  --muted: #5e6a79;
  --surface: var(--md-default-bg-color);
  --line: var(--md-default-fg-color--lightest);
  --brand: var(--md-typeset-a-color);
  --soft: var(--md-accent-fg-color--transparent);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.study-dashboard * {
  box-sizing: border-box;
}
.study-dashboard [hidden] {
  display: none !important;
}
.study-dashboard button,
.study-dashboard input,
.study-dashboard select {
  font: inherit;
  color: inherit;
}
.study-dashboard button {
  cursor: pointer;
}
.study-dashboard a {
  color: var(--brand);
}
.study-dashboard button:disabled {
  cursor: default;
  opacity: 0.4;
}
.study-dashboard :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.study-dashboard input,
.study-dashboard select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 38px;
  max-width: 100%;
  font-size: 13px;
}
.study-dashboard input::placeholder {
  color: var(--muted);
}
.study-dashboard .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.study-dashboard .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--brand);
  padding: 8px 11px;
  min-height: 38px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.study-dashboard .button:hover {
  background: var(--soft);
  border-color: var(--brand);
}
.study-dashboard .button.primary {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}
.study-dashboard .text-link {
  display: inline;
  background: none;
  border: 0;
  padding: 3px 0;
  color: var(--brand);
  font-size: 12px;
  text-decoration: none;
}
.study-dashboard .eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--brand);
  margin: 0 0 5px;
}
.study-dashboard .review-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.study-dashboard .review-hero h1 {
  font-size: 29px;
  font-weight: 400;
  margin: 0 0 5px;
  line-height: 1.25;
  color: var(--ink);
}
.study-dashboard .review-hero p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.study-dashboard .hero-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.study-dashboard .metric-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.study-dashboard .metric-strip > span {
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 13px;
  background: none;
  text-align: left;
  white-space: nowrap;
}
.study-dashboard .metric-strip > :last-child {
  border: 0;
}
.study-dashboard .metric-strip strong {
  font-weight: 500;
  display: inline-block;
  margin-right: 9px;
}
.study-dashboard .metric-strip small {
  font-size: 11px;
  color: var(--brand);
  margin-left: 4px;
}
.study-dashboard .review-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  margin-bottom: 16px;
}
.study-dashboard .review-tabs button {
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}
.study-dashboard .review-tabs button.active {
  color: var(--brand);
  border-color: var(--brand);
  font-weight: 500;
}
.study-dashboard .workspace-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.study-dashboard .select-field,
.study-dashboard .search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.study-dashboard .select-field select {
  color: var(--ink);
  min-width: 105px;
}
.study-dashboard .search-field {
  flex: 1;
  min-width: 180px;
}
.study-dashboard .search-field input {
  width: 100%;
  color: var(--ink);
}
.study-dashboard .field-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.study-dashboard .subject-picker {
  position: relative;
  min-width: 160px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}
.study-dashboard .subject-picker > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  min-height: 38px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  list-style: none;
  color: var(--ink);
}
.study-dashboard .subject-picker > summary:before,
.study-dashboard .subject-picker > summary:after {
  display: none;
}
.study-dashboard .subject-picker > summary > span {
  margin-left: auto;
  font-size: 10px;
}
.study-dashboard .subject-popover {
  position: absolute;
  z-index: 12;
  top: 45px;
  left: 0;
  width: 330px;
  max-width: calc(100vw - 40px);
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 35px #102a432b;
}
.study-dashboard .subject-popover > input {
  width: 100%;
}
.study-dashboard .subject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.study-dashboard .subject-actions button {
  background: var(--soft);
  color: var(--brand);
  border: 0;
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 11px;
}
.study-dashboard .subject-options {
  max-height: 230px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}
.study-dashboard .subject-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  cursor: pointer;
  font-family: var(--md-code-font-family);
  font-size: 12px;
}
.study-dashboard .subject-options label:hover {
  background: var(--soft);
}
.study-dashboard .subject-options input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--brand);
}
.study-dashboard .subject-popover p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 0 0;
}
.study-dashboard .lineage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--soft);
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  min-height: 36px;
}
.study-dashboard .lineage-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.study-dashboard .swatch {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  display: inline-block;
}
.study-dashboard .swatch.selected {
  background: #2368a0;
}
.study-dashboard .swatch.related {
  background: #e8b95c;
}
.study-dashboard .review-workbench {
  display: grid;
  grid-template-columns: minmax(260px, var(--spec-width, 25%)) 8px minmax(
      0,
      1fr
    );
  gap: 6px;
  height: auto;
  align-items: start;
}
.study-dashboard .pane {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.study-dashboard .pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  min-height: 58px;
}
.study-dashboard .pane-header h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}
.study-dashboard .pane-header > div > span {
  font-size: 10px;
  color: var(--muted);
}
.study-dashboard .pane-header select {
  min-height: 26px;
  padding: 2px 5px;
  font-size: 11px;
  margin-top: 2px;
  max-width: 230px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.study-dashboard .pane-header > div:last-child:not(:first-child) {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.study-dashboard .pane-footer {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.study-dashboard .data-panes {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  min-width: 0;
}
.study-dashboard .spec-scroll,
.study-dashboard .data-region {
  overflow: auto;
  flex: 1;
  position: relative;
  min-height: 0;
  scrollbar-width: thin;
}
.study-dashboard .spec-scroll {
  padding: 10px 0;
  background: var(--surface);
}
.study-dashboard .spec-line {
  display: flex;
  min-height: 20px;
  line-height: 20px;
  font-family: var(--md-code-font-family);
  font-size: 11px;
  white-space: pre;
  min-width: max-content;
}
.study-dashboard .spec-line code {
  background: none;
  margin: 0;
  padding: 0 12px 0 8px;
  color: var(--ink);
  font: inherit;
  white-space: pre;
}
.study-dashboard .line-number {
  display: block;
  width: 44px;
  flex-shrink: 0;
  text-align: right;
  padding: 0 9px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  user-select: none;
}
.study-dashboard .line-number[tabindex="0"] {
  font-weight: 600;
  color: var(--brand);
}
.study-dashboard .review-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  background: var(--surface);
  font-size: 11px;
  margin: 0;
}
.study-dashboard .review-table th {
  font-weight: 500;
  text-align: left;
  background: var(--surface);
  color: var(--muted);
}
.study-dashboard .review-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}
.study-dashboard .review-table thead th > button {
  width: 100%;
  font-family: var(--md-code-font-family);
  font-weight: 600;
  line-height: 1.5;
  font-size: 10px;
  padding: 7px 10px;
  text-align: left;
  border: 0;
  background: none;
  color: var(--brand);
}
.study-dashboard .review-table th small {
  display: block;
  font-family: system-ui;
  font-weight: 400;
  font-size: 9px;
  color: var(--muted);
}
.study-dashboard .review-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--md-code-font-family);
  font-size: 10px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}
.study-dashboard .review-table .row-number {
  font-size: 9px;
  padding: 5px 8px;
  text-align: right;
  min-width: 35px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: var(--soft);
}
.study-dashboard .review-table tbody tr:hover td {
  box-shadow: inset 0 0 0 100px #3d7cb80a;
}
.study-dashboard .missing {
  color: var(--muted);
}
.study-dashboard .node-related {
  background: #fff4d5 !important;
  box-shadow: inset 3px 0 #d4a342;
}
.study-dashboard .node-selected {
  background: #d9eafb !important;
  box-shadow: inset 3px 0 #2368a0;
}
.study-dashboard th.node-selected button {
  color: #174b78 !important;
}
.study-dashboard .node-related code,
.study-dashboard .node-selected code {
  color: #21394c;
}
.study-dashboard .pagination {
  display: flex;
  gap: 5px;
}
.study-dashboard .pagination button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  min-width: 24px;
  padding: 0 6px;
  color: var(--brand);
  line-height: 20px;
  font-size: 13px;
}
.study-dashboard .data-status,
.study-dashboard .review-footnote {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 12px 0;
}
.study-dashboard .review-footnote {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 20px;
}
.study-dashboard .section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin: 22px 0 15px;
}
.study-dashboard .section-heading h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 6px;
}
.study-dashboard .section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.study-dashboard .coverage-note {
  font-size: 13px;
  line-height: 1.8;
  border-left: 3px solid var(--brand);
  background: var(--soft);
  padding: 12px 15px;
  margin: 15px 0;
}
.study-dashboard .report-filters {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0 10px;
}
.study-dashboard .result-count {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
}
.study-dashboard .finding-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 15px 0;
}
.study-dashboard .finding-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}
.study-dashboard .status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
}
.study-dashboard .status.good {
  color: #286346;
  background: #e8f3ec;
}
.study-dashboard .status.attention {
  color: #8a5d13;
  background: #fff0d4;
}
.study-dashboard .status.neutral {
  background: var(--soft);
  color: var(--brand);
}
.study-dashboard .finding-card h3 {
  font-size: 17px;
  margin: 12px 0 8px;
  font-weight: 500;
}
.study-dashboard .finding-card > p {
  font-size: 13px;
  line-height: 1.8;
}
.study-dashboard .finding-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.study-dashboard .finding-card details {
  background: none;
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0;
  margin: 12px 0;
  font-size: 13px;
}
.study-dashboard .finding-card summary {
  padding: 12px 0;
  margin: 0;
  background: none;
  border: 0;
  color: var(--brand);
  cursor: pointer;
}
.study-dashboard .finding-card summary:before,
.study-dashboard .finding-card summary:after {
  display: none;
}
.study-dashboard blockquote {
  border-left: 3px solid #d4a342;
  margin: 12px 0;
  padding: 8px 12px;
  color: var(--ink);
  white-space: pre-wrap;
  max-height: 270px;
  overflow: auto;
  background: #d4a3420b;
  font-size: 12px;
  line-height: 1.8;
}
.study-dashboard .material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.study-dashboard .material-card,
.study-dashboard .study-card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.study-dashboard .material-card h3,
.study-dashboard .study-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.study-dashboard .material-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.study-dashboard .material-card > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.study-dashboard .overview-table {
  overflow: auto;
}
.study-dashboard .overview-table th,
.study-dashboard .overview-table td {
  padding: 14px;
  font-size: 13px;
}
.study-dashboard .consistency-table table {
  min-width: 850px;
  width: 100%;
  table-layout: fixed;
}
.study-dashboard .consistency-table :is(th, td) {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: inherit;
}
.study-dashboard .consistency-table tbody td:first-of-type {
  position: static;
}
.study-dashboard .consistency-table .review-table td {
  font-size: 13px;
  max-width: none;
  overflow: visible;
}
.study-dashboard .consistency-table .review-table tbody tr:hover td {
  box-shadow: none;
  background: var(--soft);
}
.study-dashboard .consistency-table thead th:nth-child(2) {
  left: auto;
}
.study-dashboard .consistency-table th:first-child {
  width: 135px;
}
.study-dashboard .consistency-table th:nth-child(2) {
  width: 37%;
}
.study-dashboard .consistency-table th:nth-child(3) {
  width: 180px;
}
@media (max-width: 900px) {
  .study-dashboard .consistency-table .review-table,
  .study-dashboard .consistency-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .study-dashboard .consistency-table thead {
    display: none;
  }
  .study-dashboard .consistency-table .review-table tr.review-issue {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }
  .study-dashboard .consistency-table .review-table :is(th, td) {
    display: block;
    position: static;
    width: auto;
    padding: 10px 12px;
    border: 0;
  }
  .study-dashboard .consistency-table .rule-id {
    display: inline;
    margin-left: 8px;
  }
}
.study-dashboard .issue-comparison {
  margin: 8px 0;
}
.study-dashboard .issue-comparison dt {
  font-weight: 600;
}
.study-dashboard .issue-comparison dd {
  margin: 2px 0 10px;
}
.study-dashboard .issue-citation,
.study-dashboard .issue-measurement,
.study-dashboard .issue-check {
  margin: 10px 0;
}
.study-dashboard .finding-evidence details > summary {
  cursor: pointer;
  color: var(--brand);
}
.study-dashboard .evidence-drawer .finding-evidence {
  padding: 0;
}
.study-dashboard .evidence-drawer pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
}
.study-dashboard .consistency-table .finding-trace {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
  font-size: inherit;
}
.study-dashboard .finding-trace > summary {
  cursor: pointer;
  color: var(--brand);
  padding: 10px 12px;
  background: var(--soft);
}
.study-dashboard .finding-trace > summary::before {
  display: none;
}
.study-dashboard .finding-evidence {
  padding: 0 12px 12px;
}
.study-dashboard .finding-evidence > section + section {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 8px;
}
.study-dashboard .finding-evidence h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.study-dashboard .finding-evidence p {
  margin: 6px 0;
}
.study-dashboard .consistency-table pre {
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 180px;
  overflow: auto;
}
.study-dashboard .consistency-table h3 {
  font-size: 14px;
  margin: 8px 0;
}
/* Documented-rule findings: quoted clauses and lines, rule IDs, adjudication. */
.study-dashboard .consistency-table mark {
  background: #fff0d4;
  color: inherit;
  padding: 0 1px;
}
.study-dashboard .consistency-table .spec-lines .line-number {
  display: inline-block;
  min-width: 3.5em;
  color: var(--muted);
  user-select: none;
}
.study-dashboard .consistency-table .rule-id {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.study-dashboard .consistency-table .rule-statement {
  border-left-color: var(--line);
  color: var(--muted);
}
.study-dashboard .consistency-table .quote-source {
  margin-bottom: 0;
  color: var(--muted);
}
.study-dashboard .consistency-table .pattern-list {
  margin: 4px 0 8px;
  padding-left: 16px;
  font-size: 12px;
  overflow-wrap: normal;
}
.study-dashboard .consistency-table .adjudication-dispute,
.study-dashboard .consistency-table .adjudication-stale {
  color: #8a5d13;
}
.study-dashboard .consistency-table small {
  display: block;
  color: var(--muted);
}
.study-dashboard .source-viewer {
  border: 1px solid var(--line);
  border-radius: 4px;
}
.study-dashboard .source-viewer-heading {
  padding: 15px;
  overflow-wrap: anywhere;
}
.study-dashboard .source-viewer-heading h3 {
  margin: 0;
}
.study-dashboard .source-viewer iframe {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  display: block;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
}
.study-dashboard .evidence-drawer {
  position: fixed;
  right: 24px;
  top: 85px;
  bottom: 24px;
  width: 420px;
  max-width: calc(100vw - 28px);
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 45px #102a4350;
  padding: 20px;
  overflow: auto;
}
.study-dashboard .evidence-drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.study-dashboard .evidence-drawer h2 {
  font-size: 18px;
  margin: 0;
}
.study-dashboard .evidence-drawer h3 {
  font-size: 16px;
}
.study-dashboard .evidence-drawer p {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.study-dashboard .evidence-drawer blockquote {
  max-height: none;
}
.study-dashboard .loading,
.study-dashboard .empty-rows,
.study-dashboard .empty-state,
.study-dashboard .error-state {
  padding: 24px;
  line-height: 1.8;
  font-size: 13px;
  white-space: normal;
}
.study-dashboard .error-state {
  color: #a33b32;
}
.study-dashboard .comment-fallback {
  font-size: 13px;
  color: var(--muted);
}
.study-review-page .md-grid {
  max-width: none;
}
.study-review-page .md-main__inner {
  margin-top: 16px;
}
.study-review-page .md-content__inner {
  margin: 0;
  padding: 0 20px 24px;
}
.study-review-page .md-sidebar--secondary,
.study-review-page .md-footer__inner {
  display: none;
}
@media (min-width: 76.25em) {
  .study-review-page .md-sidebar--primary {
    display: none;
  }
}
.study-review-page .md-content {
  min-width: 0;
}
.study-dashboard .spec-resizer {
  cursor: col-resize;
  touch-action: none;
  border-radius: 4px;
  position: relative;
}
.study-dashboard .spec-resizer:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 40%;
  height: 60px;
  width: 2px;
  background: var(--line);
}
.study-dashboard .spec-resizer:hover {
  background: var(--soft);
}
[data-md-color-scheme="slate"] .study-dashboard {
  --ink: #e0e6ee;
  --muted: #b3bdcc;
}
[data-md-color-scheme="slate"] .study-dashboard .node-selected {
  background: #244b6d !important;
}
[data-md-color-scheme="slate"] .study-dashboard .node-related {
  background: #443b24 !important;
}
[data-md-color-scheme="slate"] .study-dashboard .node-related code,
[data-md-color-scheme="slate"] .study-dashboard .node-selected code {
  color: #e0e6ee;
}
[data-md-color-scheme="slate"] .study-dashboard th.node-selected button {
  color: #d0eaff !important;
}
[data-md-color-scheme="slate"] .study-dashboard .status.good {
  color: #a8d6b9;
  background: #243b30;
}
[data-md-color-scheme="slate"] .study-dashboard .status.attention {
  color: #edcb91;
  background: #403626;
}
[data-md-color-scheme="slate"] .study-dashboard .consistency-table mark {
  background: #443b24;
}
[data-md-color-scheme="slate"] .study-dashboard .consistency-table :is(.adjudication-dispute, .adjudication-stale) {
  color: #edcb91;
}
@media (min-width: 1450px) {
  .study-dashboard .review-table td {
    font-size: 11px;
  }
  .study-dashboard .spec-line {
    font-size: 12px;
    line-height: 22px;
  }
  .study-dashboard .pane-header {
    padding: 12px 14px;
  }
}
@media (max-width: 1100px) {
  .study-dashboard .metric-strip {
    grid-template-columns: 1fr 1fr;
  }
  .study-dashboard .metric-strip > :nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .study-dashboard .review-workbench {
    grid-template-columns: minmax(250px, var(--spec-width, 25%)) 8px minmax(
        0,
        1fr
      );
    height: auto;
  }
  .study-dashboard .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .study-dashboard .workspace-toolbar {
    gap: 9px;
  }
  .study-dashboard .review-tabs {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .study-review-page .md-content__inner {
    padding: 0 12px 20px;
  }
  .study-dashboard .review-hero h1 {
    font-size: 26px;
  }
  .study-dashboard .hero-actions {
    width: 100%;
  }
  .study-dashboard .metric-strip > span {
    font-size: 11px;
    padding: 10px;
    white-space: normal;
  }
  .study-dashboard .metric-strip strong {
    display: block;
    margin: 0 0 3px;
  }
  .study-dashboard .workspace-toolbar > .search-field {
    flex-basis: 100%;
    order: 3;
  }
  .study-dashboard .lineage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .study-dashboard .review-workbench {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .study-dashboard .spec-pane {
    height: 280px;
    flex-shrink: 0;
  }
  .study-dashboard .data-panes {
    display: flex;
    flex-direction: column;
  }
  .study-dashboard .input-pane,
  .study-dashboard .output-pane {
    height: 300px;
    flex-shrink: 0;
  }
  .study-dashboard .material-grid {
    grid-template-columns: 1fr;
  }
  .study-dashboard .review-tabs {
    gap: 17px;
    margin-bottom: 14px;
  }
  .study-dashboard .review-tabs button {
    font-size: 12px;
  }
  .study-dashboard .pane-footer {
    font-size: 9px;
  }
  .study-dashboard .subject-picker {
    min-width: 150px;
  }
  .study-dashboard .subject-popover {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 100px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 140px);
    overflow: auto;
  }
  .study-dashboard .evidence-drawer {
    top: 65px;
    bottom: 12px;
    right: 12px;
  }
  .study-dashboard .finding-card {
    padding: 15px;
  }
  .study-dashboard .review-footnote {
    font-size: 10px;
  }
}

.study-dashboard .review-table thead th:nth-child(2) {
  left: 0;
  z-index: 4;
}
.study-dashboard .review-table tbody td:first-of-type {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
}
@media (max-width: 700px) {
  .study-dashboard .spec-resizer {
    display: none;
  }
}
@media (min-width: 1450px) {
  .study-dashboard.evidence-open .review-workbench {
    margin-right: 445px;
    grid-template-columns: minmax(260px, 40%) 8px minmax(0, 1fr);
  }
}

.study-dashboard .review-comments {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 8px;
  scroll-margin-top: 72px;
}

/* Study titles keep navigation links beside the name. */
.study-dashboard .review-hero {
  display: block;
}
.study-dashboard .study-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.study-dashboard .study-title-row h1 {
  margin: 0;
}
.study-dashboard .study-title-row .hero-actions {
  width: auto;
}
.study-dashboard .data-panes {
  grid-template-rows: minmax(0, var(--input-height, 50%)) 8px minmax(0, 1fr);
  gap: 4px;
}
.study-dashboard .dataset-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.study-dashboard .dataset-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.study-dashboard .dataset-group-header h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.study-dashboard .dataset-picker {
  position: relative;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.study-dashboard .dataset-picker summary {
  padding: 4px 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.study-dashboard .dataset-picker summary:before,
.study-dashboard .dataset-picker summary:after {
  display: none;
}
.study-dashboard .dataset-popover {
  position: absolute;
  top: 34px;
  left: 0;
  width: 350px;
  max-width: calc(100vw - 32px);
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  z-index: 25;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 10px 35px #102a432b;
  background: var(--surface);
}
.study-dashboard .dataset-popover p {
  font-size: 11px;
  margin: 0 0 8px;
  color: var(--muted);
}
.study-dashboard .dataset-popover label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}
.study-dashboard .dataset-popover input {
  min-height: 0;
  flex-shrink: 0;
}
.study-dashboard .dataset-popover small {
  display: block;
  color: var(--muted);
}
.study-dashboard .output-version {
  margin-left: auto;
}
.study-dashboard .output-version select {
  min-height: 26px;
  padding: 2px 5px;
  font-size: 11px;
}
.study-dashboard .panel-strip {
  display: flex;
  gap: 10px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-bottom: 4px;
}
.study-dashboard .dataset-panel {
  flex: 0 0 auto;
  width: calc(
    (100% - (var(--panel-count, 1) - 1) * 10px) / var(--panel-count, 1)
  );
  min-width: 280px;
  height: 100%;
  min-height: 180px;
  resize: both;
}
.study-dashboard .panel-strip[data-panel-count="1"] > .dataset-panel {
  width: 100%;
}
.study-dashboard .dataset-panel .pane-header {
  min-height: 52px;
  padding: 7px 10px;
}
.study-dashboard .dataset-panel .pane-header h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.study-dashboard .panel-size-buttons {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.study-dashboard .panel-size-buttons button {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  padding: 0 5px;
  font-size: 13px;
}
.study-dashboard .dataset-panel .pane-footer {
  flex-wrap: wrap;
  padding-right: 20px;
  gap: 4px 8px;
  font-size: 9px;
}
.study-dashboard .row-size {
  display: flex;
  align-items: center;
  gap: 4px;
}
.study-dashboard .row-size select {
  min-height: 24px;
  padding: 1px 3px;
  font-size: 10px;
}
.study-dashboard .dataset-panel .review-table {
  table-layout: fixed;
  min-width: 100%;
}
.study-dashboard .dataset-panel .review-table th {
  position: relative;
}
.study-dashboard .dataset-panel .review-table thead th {
  position: sticky;
}
.study-dashboard .dataset-panel .review-table thead th > button {
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}
.study-dashboard .column-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 7px;
  cursor: col-resize;
  touch-action: none;
  border-right: 1px solid var(--line);
  z-index: 7;
}
.study-dashboard .column-resizer:hover,
.study-dashboard .column-resizer:focus-visible {
  background: var(--soft);
  outline: 2px solid var(--brand);
}
.study-dashboard .data-resizer {
  cursor: row-resize;
  touch-action: none;
  border-radius: 3px;
  border-top: 2px solid var(--line);
  margin: 2px 30%;
}
.study-dashboard .data-resizer:hover,
.study-dashboard .data-resizer:focus-visible {
  background: var(--soft);
  outline: 2px solid var(--brand);
}
.study-dashboard .synthetic-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.study-dashboard .synthetic-stage-grid h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
@media (max-width: 700px) {
  .study-dashboard .dataset-popover {
    position: fixed;
    top: 110px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 150px);
  }
  .study-dashboard .data-panes {
    display: flex;
    flex-direction: column;
  }
  .study-dashboard .dataset-group {
    overflow: visible;
  }
  .study-dashboard .dataset-group-header {
    flex-wrap: wrap;
    padding: 8px 0;
  }
  .study-dashboard .panel-strip {
    flex-direction: column;
    overflow: visible;
  }
  .study-dashboard .dataset-panel,
  .study-dashboard .panel-strip[data-panel-count="1"] > .dataset-panel {
    width: 100% !important;
    min-width: 0;
    height: auto;
    resize: vertical;
  }
  .study-dashboard .data-resizer {
    display: none;
  }
  .study-dashboard .panel-size-buttons {
    display: none;
  }
  .study-dashboard .synthetic-stage-grid {
    grid-template-columns: 1fr;
  }
}

/* Keys stay distinct from selected and related lineage columns. */
.study-dashboard {
  --key-bg: #f0e8fc;
  --key-ink: #5e3789;
  --key-accent: #9866be;
}
[data-md-color-scheme="slate"] .study-dashboard {
  --key-bg: #352944;
  --key-ink: #e0c7fb;
  --key-accent: #b18bd4;
}
.study-dashboard .review-table .key-column {
  background: var(--key-bg) !important;
  color: var(--key-ink);
}
.study-dashboard .review-table th.key-column {
  box-shadow: inset 3px 0 var(--key-accent);
}
.study-dashboard .review-table th.key-column.node-selected {
  outline: 2px solid #2368a0;
  outline-offset: -2px;
}
.study-dashboard .key-badge {
  display: inline-block;
  margin-left: 5px;
  font: 600 9px/1.4 var(--md-text-font-family);
  border: 1px solid var(--key-accent);
  border-radius: 3px;
  padding: 0 3px;
  color: var(--key-ink);
}
.study-dashboard .swatch.key {
  background: var(--key-accent);
}
@media (min-width: 701px) {
  .study-dashboard .spec-pane,
  .study-dashboard #spec-resizer {
    position: sticky;
    top: 70px;
    height: var(--spec-height, 600px);
  }
}

.study-dashboard .review-table .key-column > button {
  background: transparent !important;
  color: var(--key-ink) !important;
  box-shadow: none;
}

/* Independent original-file tabs, with a maximum of two document panes. */
.study-dashboard .source-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.study-dashboard .source-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.study-dashboard .source-panes[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.study-dashboard .source-pane {
  min-width: 0;
}
.study-dashboard .source-file-tabs {
  display: flex;
  overflow-x: auto;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.study-dashboard .source-file-tabs button {
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 12px;
}
.study-dashboard .source-file-tabs [aria-selected="true"] {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand);
}
.study-dashboard .source-file-tabs button:disabled {
  opacity: 0.45;
}
.study-dashboard .source-viewer-heading {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
}
.study-dashboard .source-viewer-heading .button {
  padding: 4px 10px;
  min-height: 30px;
}
.study-dashboard .source-viewer iframe {
  min-height: 400px;
}
@media (max-width: 800px) {
  .study-dashboard .source-panes[data-count="2"] {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Shared report layout; the pilot summary prints on two pages. */
.study-report {
  --ink: var(--md-default-fg-color);
  --muted: #5e6a79;
  --line: var(--md-default-fg-color--lightest);
  --brand: var(--md-typeset-a-color);
  --soft: var(--md-accent-fg-color--transparent);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
[data-md-color-scheme="slate"] .study-report {
  --muted: #b3bdcc;
}
.md-typeset .study-report h1 {
  margin: 0 0 8px;
}
.md-typeset .study-report h2 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 500;
}
.md-typeset .study-report :is(p, ul) {
  margin: 0 0 8px;
}
.md-typeset .study-report li {
  margin-bottom: 4px;
}
.study-report .report-provenance,
.study-report .report-foot {
  color: var(--muted);
  font-size: 12px;
}
.study-report .report-foot {
  margin-top: 8px;
}
.md-typeset .study-report .report-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.study-report .report-kpis > div {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}
.study-report .report-kpis > div:last-child {
  border: 0;
}
.md-typeset .study-report .report-kpis dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.md-typeset .study-report .report-kpis dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.study-report .report-kpis span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 400;
}
.study-report .report-table {
  overflow-x: auto;
}
.md-typeset .study-report .report-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.study-report .report-matrix :is(th, td) {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.study-report .report-matrix thead th {
  font-weight: 500;
  border-bottom-width: 2px;
}
.study-report .report-matrix tbody th {
  font-weight: 500;
  white-space: nowrap;
}
.study-report .report-matrix .report-section th {
  background: var(--soft);
  color: var(--brand);
  font-weight: 600;
}
.study-report .report-matrix small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.study-report .report-cell {
  white-space: nowrap;
}
.study-report .report-cell a {
  text-decoration: none;
}
.study-report .report-status {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}
.study-report .report-status.good {
  color: #286346;
  background: #e8f3ec;
}
.study-report .report-status.attention {
  color: #8a5d13;
  background: #fff0d4;
}
.study-report .report-status.neutral {
  color: var(--brand);
  background: var(--soft);
}
[data-md-color-scheme="slate"] .study-report .report-status.good {
  color: #a8d6b9;
  background: #243b30;
}
[data-md-color-scheme="slate"] .study-report .report-status.attention {
  color: #edcb91;
  background: #403626;
}
.study-report .report-dims {
  margin-left: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.study-report .report-issues {
  display: table;
  margin-top: 3px;
}
/* Archive paths wrap within the same report tables used by pilot studies. */
.synthetic-report .report-matrix :is(th, td) {
  overflow-wrap: anywhere;
}
.synthetic-report .report-matrix tbody th {
  white-space: normal;
}
.synthetic-report .report-matrix code {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .md-typeset .study-report .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .study-report .report-kpis > div {
    border-bottom: 1px solid var(--line);
  }
  .study-report .report-kpis > div:nth-child(even) {
    border-right: 0;
  }
}
@media print {
  .study-report {
    font-size: 12px;
    line-height: 1.4;
  }
  .md-typeset .study-report h2 {
    margin: 12px 0 6px;
    break-after: avoid;
  }
  .study-report .report-foot {
    break-before: avoid;
  }
  .md-typeset .study-report .report-matrix {
    line-height: 1.35;
  }
  .md-typeset .study-report .report-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .study-report .report-kpis > div {
    border-bottom: 0;
  }
  .study-report .report-kpis > div:nth-child(even) {
    border-right: 1px solid var(--line);
  }
  .md-typeset .study-report .report-kpis dd {
    font-size: 17px;
  }
  .study-report .report-matrix :is(th, td) {
    padding: 3px 6px;
  }
  .study-report :is(.report-kpis, .report-keep, tr) {
    break-inside: avoid;
  }
  .study-report .report-table {
    overflow: visible;
  }
  .study-report .report-status {
    print-color-adjust: exact;
  }
  .study-report .report-screen {
    display: none;
  }
}
/* Authored files and the inspection model share one dependency-aware view. */
.spec-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.spec-controls label {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}
.spec-controls select {
  max-width: 100%;
}
.spec-omission {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.75;
}
