:root {
  color-scheme: dark;
  --ink: #070a09;
  --ink-soft: #101512;
  --panel: #151b17;
  --panel-2: #1c241f;
  --paper: #f2f0e8;
  --paper-muted: #c9cbc3;
  --line: rgba(242, 240, 232, 0.2);
  --line-strong: rgba(242, 240, 232, 0.42);
  --signal: #b8ff42;
  --signal-dark: #1d3a08;
  --aqua: #69e8d4;
  --coral: #ff735c;
  --amber: #ffc857;
  --muted: #8f9992;
  --danger: #ff8f7d;
  --header-height: 68px;
  --max: 1480px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.45;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--ink);
  font: 700 12px/1 var(--mono);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.92);
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--paper);
  font: 800 15px/1 var(--mono);
}

.brand > span:last-child {
  font: 700 12px/1.1 var(--mono);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.site-header nav a {
  color: var(--paper-muted);
  font: 600 11px/1 var(--mono);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--signal);
}

main {
  overflow: clip;
}

.portfolio-hero {
  position: relative;
  min-height: min(690px, calc(100svh - var(--header-height) - 74px));
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.portfolio-hero__media,
.portfolio-hero__media img,
.portfolio-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portfolio-hero__media {
  z-index: -3;
}

.portfolio-hero__media img {
  object-fit: cover;
  object-position: center 42%;
}

.portfolio-hero__veil {
  z-index: -2;
  background: rgba(4, 8, 6, 0.69);
  box-shadow: inset 0 -240px 180px rgba(4, 8, 6, 0.78);
}

.portfolio-hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(52px, 9vh, 104px) clamp(18px, 4vw, 64px) clamp(42px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(40px, 8vw, 128px);
  align-items: end;
}

.portfolio-hero__copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--signal);
  font: 700 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.portfolio-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: 88px;
  line-height: 0.91;
  letter-spacing: 0;
  text-wrap: balance;
}

.portfolio-hero__copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: #e3e6dd;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-actions a,
.primary-command,
.enterprise-band > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font: 800 11px/1.15 var(--mono);
  text-decoration: none;
  cursor: pointer;
}

.hero-actions a:first-child,
.primary-command {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.hero-actions a:hover,
.enterprise-band > a:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.hero-actions a:first-child:hover,
.primary-command:hover {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--ink);
}

.portfolio-hero__copy small {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: var(--paper-muted);
  font: 500 11px/1.5 var(--mono);
}

.deadline-panel {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--coral);
  background: rgba(7, 10, 9, 0.82);
  backdrop-filter: blur(14px);
}

.deadline-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-muted);
  font: 700 10px/1.2 var(--mono);
}

.deadline-panel > strong {
  display: block;
  padding: 20px 16px 0;
  color: var(--paper);
  font: 700 84px/0.9 var(--mono);
}

.deadline-panel > p {
  margin: 10px 16px 22px;
  color: var(--coral);
  font: 700 11px/1.3 var(--mono);
}

.deadline-panel dl {
  margin: 0;
}

.deadline-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.deadline-panel dt,
.deadline-panel dd {
  margin: 0;
  font: 600 10px/1.25 var(--mono);
}

.deadline-panel dt {
  color: var(--muted);
}

.status-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

.status-rail > div {
  position: relative;
  min-height: 88px;
  padding: 18px clamp(14px, 2.5vw, 34px) 16px 52px;
  border-right: 1px solid var(--line);
}

.status-rail > div:last-child {
  border-right: 0;
}

.status-rail span {
  position: absolute;
  top: 20px;
  left: 18px;
  color: var(--aqua);
  font: 700 10px/1 var(--mono);
}

.status-rail b,
.status-rail small {
  display: block;
  font-family: var(--mono);
}

.status-rail b {
  font-size: 11px;
}

.status-rail small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.workbench-band,
.results-band,
.method-band,
.enterprise-band {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 64px);
}

.workbench-band,
.method-band {
  background: var(--paper);
  color: var(--ink);
}

.results-band {
  background: var(--ink);
}

.section-heading {
  width: min(100%, var(--max));
  margin: 0 auto clamp(30px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: end;
}

.section-heading h2 {
  max-width: 880px;
  margin: 0;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading > p {
  margin: 0;
  color: #4d554f;
  font-size: 16px;
}

.section-heading--compact {
  margin-bottom: 24px;
}

.section-heading--compact h2 {
  font-size: 46px;
}

.results-band .section-heading > p {
  color: var(--paper-muted);
}

.workbench-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  border: 1px solid #b6bbb4;
  background: #fff;
}

.input-pane,
.output-pane {
  min-width: 0;
  padding: clamp(20px, 3vw, 38px);
}

.input-pane {
  border-right: 1px solid #b6bbb4;
}

.pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pane-header span,
.pane-header b {
  color: #59615b;
  font: 700 10px/1.2 var(--mono);
}

.pane-header h3 {
  margin: 5px 0 0;
  font-size: 21px;
}

.command-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.command-bar button,
.baseline-row button,
.segmented-filter button,
.export-bar button,
.package-mode button,
.package-command {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid #99a098;
  background: transparent;
  color: inherit;
  font: 700 10px/1.2 var(--mono);
  cursor: pointer;
}

.command-bar button:hover,
.baseline-row button:hover,
.export-bar button:hover,
.package-mode button:hover,
.package-command:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.input-pane > label {
  display: block;
  margin-bottom: 8px;
  color: #59615b;
  font: 700 10px/1.2 var(--mono);
}

textarea {
  display: block;
  width: 100%;
  height: 360px;
  resize: vertical;
  border: 1px solid #8e968f;
  border-radius: 0;
  padding: 16px;
  background: #0c110e;
  color: #edf3ea;
  font: 500 12px/1.55 var(--mono);
  tab-size: 2;
}

.field-note,
.form-error {
  margin: 10px 0 0;
  font: 600 10px/1.5 var(--mono);
}

.field-note {
  color: #646c66;
}

.form-error {
  padding: 10px 12px;
  border-left: 4px solid #d9442e;
  background: #fff0ed;
  color: #8e2012;
}

.baseline-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #c8ccc7;
  border-bottom: 1px solid #c8ccc7;
}

.baseline-row span,
.baseline-row strong {
  display: block;
  font: 700 10px/1.3 var(--mono);
}

.baseline-row span {
  color: #69716b;
}

.baseline-row strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.primary-command {
  width: 100%;
  min-height: 52px;
}

.output-pane {
  background: #f7f6f0;
}

.output-placeholder {
  min-height: 470px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #59615b;
}

.output-placeholder::before {
  content: "A50";
  display: grid;
  width: 94px;
  height: 94px;
  margin: 0 auto 20px;
  place-items: center;
  border: 1px solid #7e8880;
  color: #2a342d;
  font: 800 26px/1 var(--mono);
}

.output-placeholder p {
  max-width: 420px;
  margin: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #b8bdb7;
  border-left: 1px solid #b8bdb7;
}

.summary-strip > div {
  min-height: 115px;
  padding: 17px;
  border-right: 1px solid #b8bdb7;
  border-bottom: 1px solid #b8bdb7;
}

.summary-strip span {
  display: block;
  color: #5b635d;
  font: 700 9px/1.25 var(--mono);
}

.summary-strip strong {
  display: block;
  margin-top: 16px;
  font: 700 42px/1 var(--mono);
}

.summary-strip > div:nth-child(2) strong {
  color: #254c0f;
}

.summary-strip > div:nth-child(3) strong {
  color: #735200;
}

.summary-strip > div:nth-child(4) strong {
  color: #9b2b19;
}

.integrity-line {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--aqua);
  background: #e6efeb;
}

.integrity-line span,
.integrity-line b,
.integrity-line code {
  display: block;
}

.integrity-line span,
.integrity-line b {
  color: #506059;
  font: 700 9px/1.3 var(--mono);
}

.integrity-line code {
  margin: 8px 0;
  overflow-wrap: anywhere;
  color: #14291f;
  font: 700 11px/1.45 var(--mono);
}

.action-status {
  min-height: 22px;
  margin-top: 14px;
  color: #305343;
  font: 700 10px/1.4 var(--mono);
}

.results-band > * {
  width: min(100%, var(--max));
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.segmented-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  align-self: end;
}

.segmented-filter button {
  min-height: 42px;
  border-color: var(--line-strong);
  color: var(--paper-muted);
}

.segmented-filter button + button {
  border-left: 0;
}

.segmented-filter button[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.matrix-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font: 700 9px/1.25 var(--mono);
}

td {
  color: #e1e5df;
  font-size: 13px;
}

td:first-child strong,
td:first-child small {
  display: block;
}

td:first-child strong {
  color: #fff;
}

td:first-child small {
  margin-top: 5px;
  color: var(--muted);
  font: 500 9px/1.3 var(--mono);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(105, 232, 212, 0.055);
}

.lane-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  font: 800 9px/1 var(--mono);
}

.lane-badge[data-lane="implement"] {
  color: var(--coral);
}

.lane-badge[data-lane="verify"] {
  color: var(--aqua);
}

.lane-badge[data-lane="review"] {
  color: var(--amber);
}

.lane-badge[data-lane="monitor"] {
  color: var(--paper-muted);
}

.detail-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font: 800 16px/1 var(--mono);
  cursor: pointer;
}

.detail-button:hover {
  background: var(--aqua);
  color: var(--ink);
}

.empty-filter {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--muted);
  text-align: center;
  font: 600 11px/1.4 var(--mono);
}

.aggregate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.aggregate-grid > section {
  min-width: 0;
  background: var(--panel);
}

.aggregate-grid header,
.diff-band header {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.aggregate-grid header span,
.diff-band header span {
  color: var(--aqua);
  font: 700 9px/1 var(--mono);
}

.aggregate-grid h3,
.diff-band h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.aggregate-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(48px, auto));
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}

.aggregate-row:last-child {
  border-bottom: 0;
}

.aggregate-row > div:first-child b,
.aggregate-row > div:first-child small {
  display: block;
}

.aggregate-row > div:first-child b {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.aggregate-row > div:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font: 500 9px/1.3 var(--mono);
}

.aggregate-count {
  min-width: 44px;
  text-align: right;
}

.aggregate-count strong,
.aggregate-count small {
  display: block;
}

.aggregate-count strong {
  font: 700 18px/1 var(--mono);
}

.aggregate-count small {
  margin-top: 4px;
  color: var(--muted);
  font: 600 8px/1 var(--mono);
}

.diff-band {
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  background: #151914;
}

.diff-band header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 30px;
}

.diff-band header p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
}

.diff-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.diff-summary > div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.diff-summary > div:last-child {
  border-right: 0;
}

.diff-summary span {
  display: block;
  color: var(--muted);
  font: 700 9px/1 var(--mono);
}

.diff-summary strong {
  display: block;
  margin-top: 10px;
  font: 700 30px/1 var(--mono);
}

.diff-band ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.diff-band li {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 13px;
}

.diff-band li:last-child {
  border-bottom: 0;
}

.export-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

.export-bar > div:first-child {
  min-width: 260px;
  margin-right: auto;
}

.export-bar span,
.export-bar strong {
  display: block;
  font-family: var(--mono);
}

.export-bar span {
  color: var(--aqua);
  font-size: 9px;
}

.export-bar strong {
  margin-top: 5px;
  font-size: 11px;
}

.export-bar button {
  border-color: var(--line-strong);
  color: var(--paper);
}

.package-band {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  background: #111914;
}

.package-band > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
}

.package-band > header span,
.package-workflow > section > span {
  color: var(--aqua);
  font: 800 9px/1.2 var(--mono);
}

.package-band > header h3 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: 0;
}

.package-band > header p {
  max-width: 860px;
  margin: 13px 0 0;
  color: var(--paper-muted);
  font-size: 14px;
}

.package-band > header > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font: 800 9px/1.2 var(--mono);
  text-decoration: none;
}

.package-band > header > a:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.package-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.package-workflow > section {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
}

.package-workflow > section + section {
  border-left: 1px solid var(--line-strong);
}

.package-workflow h4 {
  margin: 7px 0 15px;
  font-size: 19px;
  letter-spacing: 0;
}

.package-workflow p {
  min-height: 46px;
  margin: 0 0 18px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.55;
}

.package-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
}

.package-mode button {
  min-height: 42px;
  border: 0;
  color: var(--paper);
}

.package-mode button + button {
  border-left: 1px solid var(--line-strong);
}

.package-mode button[aria-pressed="true"] {
  background: var(--aqua);
  color: var(--ink);
}

.package-command {
  min-height: 44px;
  width: 100%;
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.package-command--verify {
  border-color: var(--aqua);
  background: transparent;
  color: var(--aqua);
}

.package-command:disabled {
  cursor: wait;
  opacity: 0.58;
}

.package-workflow output {
  display: block;
  min-height: 38px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 800 9px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.package-workflow output[data-state="match"] {
  border-color: var(--signal);
  color: var(--signal);
}

.package-workflow output[data-state="mismatch"],
.package-workflow output[data-state="invalid"] {
  border-color: var(--danger);
  color: var(--danger);
}

.package-band > footer {
  padding: 13px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 9px/1.5 var(--mono);
}

.method-columns {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #858d87;
  border-left: 1px solid #858d87;
}

.method-columns article {
  min-width: 0;
  min-height: 240px;
  padding: 24px;
  border-right: 1px solid #858d87;
  border-bottom: 1px solid #858d87;
}

.method-columns span {
  color: #2e7468;
  font: 800 11px/1 var(--mono);
}

.method-columns h3 {
  margin: 30px 0 12px;
  font-size: 19px;
}

.method-columns p {
  margin: 0;
  color: #505851;
  font-size: 14px;
}

.enterprise-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  background: var(--coral);
  color: var(--ink);
}

.enterprise-band > div {
  max-width: 980px;
}

.enterprise-band .eyebrow {
  color: #48170f;
}

.enterprise-band h2 {
  margin: 0;
  font-size: 62px;
  line-height: 0.98;
  letter-spacing: 0;
}

.enterprise-band p:not(.eyebrow) {
  max-width: 860px;
  margin: 20px 0 0;
  font-size: 16px;
}

.enterprise-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin: 28px 0 0;
  border-top: 1px solid rgba(7, 10, 9, 0.45);
  border-left: 1px solid rgba(7, 10, 9, 0.45);
}

.enterprise-scope > div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid rgba(7, 10, 9, 0.45);
  border-bottom: 1px solid rgba(7, 10, 9, 0.45);
}

.enterprise-scope dt,
.enterprise-scope dd {
  margin: 0;
  font-family: var(--mono);
}

.enterprise-scope dt {
  color: #6b281d;
  font-size: 8px;
  font-weight: 800;
}

.enterprise-scope dd {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 800;
}

.enterprise-band > div > small {
  display: block;
  max-width: 900px;
  margin-top: 14px;
  color: #57241b;
  font: 700 9px/1.5 var(--mono);
}

.enterprise-band > a {
  border-color: var(--ink);
  color: var(--ink);
  white-space: nowrap;
}

.enterprise-band > a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.site-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px/1.4 var(--mono);
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
}

dialog {
  width: min(900px, calc(100vw - 30px));
  max-height: min(860px, calc(100svh - 30px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ink-soft);
  color: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

dialog::backdrop {
  background: rgba(3, 5, 4, 0.78);
  backdrop-filter: blur(5px);
}

dialog form > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

dialog header span {
  color: var(--aqua);
  font: 700 9px/1 var(--mono);
}

dialog header h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

dialog header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font: 800 14px/1 var(--mono);
  cursor: pointer;
}

.dialog-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.dialog-summary > div {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.dialog-summary > div:last-child {
  border-right: 0;
}

.dialog-summary span,
.dialog-summary strong {
  display: block;
}

.dialog-summary span {
  color: var(--muted);
  font: 600 8px/1.2 var(--mono);
}

.dialog-summary strong {
  margin-top: 7px;
  font: 700 16px/1.2 var(--mono);
}

dialog section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

dialog section h3 {
  margin: 0 0 12px;
  color: var(--aqua);
  font: 700 10px/1.2 var(--mono);
}

.detail-list {
  display: grid;
  gap: 7px;
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item:last-child {
  border-bottom: 0;
}

.detail-item b,
.detail-item small {
  display: block;
}

.detail-item b {
  font-size: 13px;
}

.detail-item small {
  margin-top: 4px;
  color: var(--muted);
  font: 500 9px/1.4 var(--mono);
}

.disclosure-copy {
  padding: 12px;
  border-left: 3px solid var(--signal);
  background: var(--panel-2);
  color: #eef1eb;
  font-size: 13px;
}

.disclosure-copy + .disclosure-copy {
  margin-top: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.noscript {
  padding: 16px;
  background: var(--danger);
  color: var(--ink);
  text-align: center;
  font: 800 11px/1.4 var(--mono);
}

@media (max-width: 1020px) {
  .portfolio-hero__inner,
  .section-heading,
  .workbench-shell {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    min-height: auto;
  }

  .portfolio-hero__inner {
    padding-top: 80px;
  }

  .deadline-panel {
    max-width: 520px;
  }

  .workbench-shell {
    border-bottom: 0;
  }

  .input-pane {
    border-right: 0;
    border-bottom: 1px solid #b6bbb4;
  }

  .output-placeholder {
    min-height: 260px;
  }

  .method-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .enterprise-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .site-header nav a:not(:first-child) {
    display: none;
  }

  .brand > span:last-child {
    display: none;
  }

  .portfolio-hero__inner {
    padding-top: 64px;
  }

  .portfolio-hero h1 {
    font-size: 52px;
  }

  .portfolio-hero__copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions a {
    width: 100%;
  }

  .deadline-panel > strong {
    font-size: 66px;
  }

  .status-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-rail > div:nth-child(2) {
    border-right: 0;
  }

  .status-rail > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2,
  .enterprise-band h2 {
    font-size: 36px;
  }

  textarea {
    height: 300px;
  }

  .baseline-row {
    grid-template-columns: 1fr;
  }

  .segmented-filter {
    grid-template-columns: repeat(2, 1fr);
  }

  .segmented-filter button + button {
    border-left: 1px solid var(--line-strong);
  }

  .segmented-filter button:last-child {
    grid-column: 1 / -1;
  }

  .aggregate-grid,
  .method-columns {
    grid-template-columns: 1fr;
  }

  .aggregate-row {
    grid-template-columns: minmax(105px, 1fr) repeat(3, 42px);
    gap: 7px;
    padding-inline: 13px;
  }

  .diff-band header {
    grid-template-columns: 1fr;
  }

  .diff-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-summary > div:nth-child(2) {
    border-right: 0;
  }

  .diff-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .export-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .export-bar > div:first-child {
    min-width: 0;
    grid-column: 1 / -1;
    margin: 0 0 8px;
  }

  .export-bar button {
    width: 100%;
  }

  .package-band > header,
  .package-workflow {
    grid-template-columns: 1fr;
  }

  .package-band > header > a {
    width: 100%;
  }

  .package-workflow > section + section {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .enterprise-band > a {
    width: 100%;
    white-space: normal;
  }

  .dialog-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog-summary > div:nth-child(2) {
    border-right: 0;
  }

  .dialog-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  .site-header,
  .portfolio-hero,
  .status-rail,
  .workbench-band,
  .method-band,
  .enterprise-band,
  .package-band,
  .site-footer,
  .segmented-filter,
  .detail-button,
  .export-bar {
    display: none !important;
  }

  body,
  .results-band {
    background: #fff;
    color: #111;
  }

  .results-band {
    padding: 0;
  }

  .results-band [hidden] {
    display: none !important;
  }

  .matrix-shell,
  .aggregate-grid,
  .aggregate-grid > section,
  .diff-band {
    border-color: #777;
    background: #fff;
    color: #111;
  }

  th,
  td,
  .aggregate-row,
  .aggregate-grid header,
  .diff-band header,
  .diff-band li {
    border-color: #aaa;
    color: #111;
  }

  table {
    min-width: 0;
    font-size: 9px;
  }
}
