.work-page {
  position: relative;
}
.work-header {
  margin-bottom: 40px;
}
.work-header h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.work-header p,
.work-deck {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}
.work-header p {
  margin: 16px 0 0;
}
.work-section {
  margin: 0 0 48px;
  scroll-margin-top: var(--outline-anchor-gap, 0px);
}
.work-section + .work-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.work-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.work-section h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.work-deck {
  margin: 12px 0 24px;
}
.work-deck b {
  color: var(--fg);
}
.work-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 24px 0;
}
.work-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.work-metric > span,
.work-metric small {
  font-size: 13px;
  line-height: 1.4;
}
.work-metric strong {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.work-metric[data-peak] strong {
  color: var(--fg);
  font-weight: 600;
}
.work-metric[data-peak="warning"] > span,
.work-metric[data-peak="warning"] strong {
  color: var(--caution);
}
.work-metric > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.work-metric > span .icon {
  flex: none;
  width: 14px;
  height: 14px;
}
.work-stream {
  padding: 0;
  border: 0;
}
.work-stream > .work-run-body {
  margin-top: 0;
}
.work-limits {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.work-limits li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.work-limits span {
  color: var(--caution);
  font-size: 13px;
  margin-left: 12px;
}
.work-limits p {
  margin: 8px 0 0;
  font-size: 15px;
}
.work-sessions,
.work-ranked,
.work-identity {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.work-sessions summary,
.work-ranked > summary,
.work-identity > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
.work-sessions summary span,
.work-ranked > summary span,
.work-identity > summary span {
  color: var(--fg-muted);
  margin-left: 12px;
  font-size: 13px;
}
.work-report-source,
.work-foot {
  margin: 16px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 720px;
}
.work-ranked {
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.work-ranked .work-run-body {
  margin: 16px 0 0;
}
.work-ledger {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.work-ledger > li {
  border-top: 1px solid var(--line);
}
.work-ledger > li:last-child {
  border-bottom: 1px solid var(--line);
}
.work-stream > summary {
  font-weight: 400;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto minmax(144px, 216px);
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 16px 0;
  cursor: pointer;
}
.work-stream > summary::-webkit-details-marker {
  display: none;
}
.work-triangle {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--fg-muted);
}
.work-triangle .icon {
  width: 10px;
  height: 10px;
}
.work-stream[open] .work-triangle .icon {
  transform: rotate(90deg);
}
.work-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.work-name strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
.work-name small {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: 4px;
}
.work-row-metrics {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(56px, auto) minmax(104px, auto);
  gap: 16px;
}
.work-row-metrics > span {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.work-row-metrics small {
  color: var(--fg-muted);
  font-size: 13px;
}
.work-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.work-share > :last-child {
  min-width: 40px;
  text-align: right;
}
.work-bar {
  height: 8px;
  border-radius: 2px;
  background: var(--chart-solo-soft);
}
.work-run-body {
  min-width: 0;
  background: var(--surface);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.work-run-scroll {
  overflow: auto;
  max-width: 100%;
}
.work-measurement {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.work-run-scroll table {
  min-width: 1200px;
  table-layout: fixed;
}
.work-run-scroll thead th:nth-child(1),
.work-run-scroll thead th:nth-child(2),
.work-run-scroll thead th:nth-child(5) {
  width: 10%;
}
.work-run-scroll thead th:nth-child(3) {
  width: 12%;
}
.work-run-scroll thead th:nth-child(4) {
  width: 11%;
}
.work-run-scroll thead th:nth-child(6) {
  width: 6%;
}
.work-run-scroll thead th:nth-child(7) {
  width: 5%;
}
.work-run-scroll thead th:nth-child(8) {
  width: 9%;
}
.work-run-scroll thead th:nth-child(9) {
  width: 23%;
}
.work-run-scroll thead th:nth-child(10) {
  width: 4%;
}
.work-stream[data-rewritten] .work-name strong {
  font-weight: 600;
}
.work-stream[data-rewritten] .work-bar {
  background: var(--chart-s1);
}
.work-rewrite {
  font-weight: 600;
  color: var(--fg);
}
.work-outputs {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 200px;
}
.work-outputs li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.work-outputs .annotation,
.work-previous {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}
.work-outputs a {
  overflow-wrap: anywhere;
}
.work-run-scroll caption {
  text-align: left;
  font-size: 13px;
  padding: 0 0 12px;
  color: var(--fg-muted);
}
.work-run-scroll th {
  font-weight: 500;
}
.work-run-scroll .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.work-run-body button[data-more-runs] {
  margin-top: 12px;
}
.work-lesson {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg);
  overflow-wrap: anywhere;
}
.work-lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.work-lesson h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}
.work-lesson p {
  max-width: 720px;
}
.work-lesson-text {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0 0 12px;
}
.work-citations {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
}
.work-citations .annotation {
  display: block;
}
.work-run-scroll tr:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
@media (max-width: 1199px) {
  .work-stream > summary {
    grid-template-columns: 24px minmax(0, 1fr) auto minmax(108px, 144px);
  }
}
@media (max-width: 959px) {
  .work-stream > summary {
    grid-template-columns: 24px minmax(0, 1fr);
    row-gap: 12px;
    align-items: start;
  }
  .work-row-metrics,
  .work-share {
    grid-column: 2 / -1;
  }
  .work-row-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .work-row-metrics > span {
    text-align: left;
    overflow-wrap: anywhere;
  }
  .work-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-metric > span {
    min-height: 36.4px;
  }
}
@media print {
  .work-lesson {
    break-inside: avoid;
  }
  .work-outputs {
    min-width: 0;
  }
  .work-metrics,
  .work-stream > summary,
  .work-run-scroll tr {
    break-inside: avoid;
  }
  .work-stream > summary {
    break-after: avoid;
  }
  .work-run-scroll th:last-child,
  .work-run-scroll td:last-child {
    display: none;
  }
  .work-run-body button,
  .work-sessions .row-actions {
    display: none !important;
  }
  .work-run-scroll {
    overflow: visible;
  }
  .work-run-scroll table {
    min-width: 0;
    font-size: 11px;
  }
  .work-run-scroll .annotation,
  .work-previous {
    font-size: 11px;
  }
  .work-run-scroll thead th:nth-child(4) {
    width: 10%;
  }
  .work-run-scroll thead th:nth-child(6) {
    width: 8%;
  }
  .work-run-scroll thead th:nth-child(7) {
    width: 6%;
  }
  .work-run-scroll thead th:nth-child(8) {
    width: 11%;
  }
  .work-run-scroll thead th:nth-child(9) {
    width: 23%;
  }
  .work-run-scroll th,
  .work-run-scroll td {
    padding: 6px 3px;
    overflow-wrap: anywhere;
  }
  .work-bar {
    print-color-adjust: exact;
  }
}
.work-identity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-identity-list > li {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  overflow-wrap: anywhere;
}
.work-identity-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--fg-muted);
}
.work-identity-list h3 {
  margin: 8px 0;
  font-size: 17px;
  font-weight: 600;
}
.work-identity-goal {
  max-width: 720px;
  white-space: pre-wrap;
}
.work-identity-brief pre {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}
@media print {
  .work-identity-list > li {
    break-inside: avoid;
  }
  .work-identity-body button {
    display: none;
  }
  .work-identity-brief pre {
    max-height: none;
    overflow: visible;
  }
}
