:root {
  color-scheme: light;
  --navy-950: #07152b;
  --navy-900: #111647;
  --navy-800: #17245a;
  --page: #f3f6f8;
  --surface: #ffffff;
  --ink: #162238;
  --muted: #607089;
  --muted-strong: #46576f;
  --orange: #f04b3e;
  --orange-hover: #c8342a;
  --orange-soft: #fff1ef;
  --turquoise: #00a7a5;
  --turquoise-soft: #e4f8f6;
  --line: #d8e0e8;
  --line-strong: #bcc8d5;
  --danger: #b42318;
  --warning: #7a5100;
  --warning-soft: #fff5d9;
  --success: #087a73;
  --stopped: #52637a;
  --stopped-soft: #edf1f5;
  --code-bg: #0b1830;
  --code-ink: #b8f1ed;
  --focus: #005fcc;
  --selection: #c9f1ee;
  --font-ui: Arial, Helvetica, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --space: 4px;
  --sidebar-width: 244px;
  --content-max: 1440px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
  color: var(--navy-950);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--surface);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-950);
  font-weight: 700;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 30px 20px 22px;
  background: var(--navy-950);
  color: var(--surface);
}

.brand-lockup {
  display: grid;
  gap: 9px;
  padding: 0 10px 30px;
}

.brand-wordmark {
  display: block;
  width: 152px;
  height: auto;
}

.product-name {
  color: #b6c3d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.primary-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #c8d2e1;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-nav a:hover {
  background: #101f3a;
  color: var(--surface);
}

.primary-nav a[aria-current="page"] {
  border-color: #2a3d5b;
  background: #152744;
  color: var(--surface);
}

.primary-nav a[aria-current="page"]::after {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.primary-nav svg,
.button svg,
.trust-banner > svg,
.event-mark svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.primary-nav svg:first-child path:first-child {
  fill: currentColor;
  stroke: none;
}

.sidebar-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid #263750;
}

.sidebar-foot strong,
.sidebar-foot span:not(.signal-dot) {
  display: block;
}

.sidebar-foot strong {
  font-size: 12px;
  letter-spacing: .02em;
}

.sidebar-foot span:not(.signal-dot) {
  margin-top: 3px;
  color: #aab8cc;
  font-size: 11px;
}

.signal-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--line-strong);
}

.signal-dot--healthy {
  border-color: var(--turquoise);
  background: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(0, 167, 165, .17);
}

main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.topbar h1,
.section-heading h2,
.trust-banner h2,
.next-step h2 {
  margin: 0;
  letter-spacing: -.025em;
}

.topbar h1 {
  color: var(--navy-950);
  font-size: 24px;
  line-height: 1.15;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.mode-badge .signal-dot {
  margin-top: 0;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button--primary {
  background: var(--orange);
  color: var(--navy-950);
  box-shadow: 0 5px 16px rgba(240, 75, 62, .2);
}

.button--primary:hover {
  background: var(--orange-hover);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(240, 75, 62, .25);
}

.button--primary:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.content-wrap {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 30px clamp(24px, 4vw, 52px) 34px;
}

.trust-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #efcfc9;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  color: var(--danger);
}

.trust-banner > svg {
  width: 24px;
  height: 24px;
}

.trust-banner h2 {
  font-size: 15px;
  line-height: 1.25;
}

.trust-banner p {
  max-width: 75ch;
  margin: 3px 0 0;
  color: #7f302a;
  font-size: 13px;
}

.status-tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  white-space: nowrap;
}

.status-tag--verified {
  border-color: #80ccc7;
  background: var(--turquoise-soft);
  color: var(--success);
}

.status-tag--built {
  border-color: #9eb0dc;
  background: #edf1ff;
  color: var(--navy-900);
}

.status-tag--simulated {
  border-color: #efaaa3;
  background: var(--orange-soft);
  color: var(--danger);
}

.status-tag--waiting {
  border-color: #e8ca75;
  background: var(--warning-soft);
  color: var(--warning);
}

.status-tag--stopped,
.status-tag--recorded {
  border-color: var(--line-strong);
  background: var(--stopped-soft);
  color: var(--stopped);
}

.status-ribbon {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(560px, 1.7fr);
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
  color: var(--surface);
}

.status-ribbon__lead {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 116px;
  padding: 22px 26px;
  background: var(--navy-950);
}

.readiness-score {
  min-width: 66px;
  color: var(--turquoise);
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.04em;
}

.readiness-score span {
  color: #71819b;
  font-size: 18px;
  letter-spacing: 0;
}

.status-ribbon__lead strong,
.status-ribbon__lead span:not(.readiness-score) {
  display: block;
}

.status-ribbon__lead strong {
  line-height: 1.25;
}

.status-ribbon__lead div > span {
  margin-top: 5px;
  color: #aab8cc;
  font-size: 12px;
}

.status-ribbon dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.status-ribbon dl > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-left: 1px solid #303968;
}

.status-ribbon dt {
  color: #aeb8d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.status-ribbon dd {
  margin: 9px 0 0;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.status-ribbon dd span {
  display: block;
  margin-top: 7px;
  color: #aeb8d0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.flow-panel,
.ticket-panel {
  padding: 26px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  color: var(--navy-950);
  font-size: 19px;
  line-height: 1.2;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
}

.replay-status,
.evidence-total {
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.replay-status.is-running {
  color: var(--success);
}

.flow-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1.15fr) 58px minmax(0, 1fr);
  align-items: center;
}

.flow-node {
  display: grid;
  min-height: 154px;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 280ms ease, background-color 280ms ease, box-shadow 280ms ease, transform 280ms var(--ease-out);
}

.flow-node.is-active {
  border-color: var(--turquoise);
  background: #f5fdfc;
  box-shadow: 0 10px 28px rgba(0, 71, 84, .11);
  transform: translateY(-3px);
}

.flow-node.is-complete:not([data-flow-step="2"]) {
  border-color: #8fcfc9;
}

.flow-node[data-flow-step="2"].is-complete {
  border-color: #eca59e;
}

.flow-node__index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.flow-node__label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.flow-node h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 16px;
  line-height: 1.35;
}

.flow-node p {
  min-height: 43px;
  margin: 11px 0 13px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.45;
}

.flow-node code {
  display: block;
  overflow: hidden;
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-link {
  position: relative;
  height: 2px;
  background: var(--line);
}

.flow-link::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.flow-link span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--turquoise);
}

.flow-link.is-active span {
  animation: link-fill 520ms var(--ease-out) forwards;
}

@keyframes link-fill {
  from { width: 0; }
  to { width: 100%; }
}

.flow-console {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-bottom: 1px solid #243452;
  color: #9fb1c9;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--code-ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:disabled {
  color: #61728c;
  cursor: not-allowed;
  text-decoration: none;
}

.flow-console ol {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 5px;
  margin: 0;
  padding: 13px 15px;
  list-style: none;
}

.flow-console li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
}

.flow-console li::before {
  color: #8192ac;
  content: attr(data-time);
  font-variant-numeric: tabular-nums;
}

.flow-console .console-empty {
  display: block;
  color: #8fa0ba;
}

.flow-console .console-empty::before {
  content: none;
}

.split-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 20px;
  margin: 20px 0;
}

.split-layout > * {
  min-width: 0;
}

.evidence-panel,
.readiness-panel {
  padding: 24px;
}

.event-ledger {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-ledger li {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 66px;
  border-top: 1px solid var(--line);
}

.event-ledger li > div {
  min-width: 0;
}

.event-ledger li:first-child {
  border-top: 0;
}

.event-ledger strong,
.event-ledger div > span {
  display: block;
}

.event-ledger strong {
  color: var(--ink);
  font-size: 13px;
}

.event-ledger div > span {
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 12px;
}

.event-ledger time {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.event-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
}

.event-mark svg {
  width: 15px;
  height: 15px;
}

.event-mark--verified {
  background: var(--turquoise-soft);
  color: var(--success);
}

.event-mark--pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.inline-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
}

.inline-link span {
  color: var(--orange);
}

.readiness-list {
  display: grid;
}

.readiness-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.readiness-row:first-child {
  border-top: 0;
}

.readiness-row > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.readiness-row strong,
.readiness-row small {
  display: block;
}

.readiness-row strong {
  font-size: 13px;
}

.readiness-row small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-monogram {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--turquoise-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.system-monogram--navy {
  background: #edf1ff;
  color: var(--navy-900);
}

.system-monogram--orange {
  background: var(--orange-soft);
  color: var(--danger);
}

.system-monogram--muted {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.ticket-heading {
  align-items: flex-end;
}

.filter-group {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
}

.filter-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.filter-button:hover {
  color: var(--navy-950);
}

.filter-button.is-active {
  background: var(--surface);
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(17, 22, 71, .1);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

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

thead th {
  background: #f7f9fb;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

tbody th {
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

tbody tr:hover {
  background: #fafcfd;
}

tbody tr[hidden] {
  display: none;
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 11px;
}

.next-step {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 36px;
  align-items: center;
  margin-top: 20px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--navy-950);
  color: var(--surface);
}

.next-step h2 {
  max-width: 22ch;
  color: var(--surface);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.next-step p {
  max-width: 72ch;
  margin: 14px 0 0;
  color: #b8c5d8;
  font-size: 13px;
}

.next-step__facts {
  display: grid;
  border-top: 1px solid #30415d;
}

.next-step__facts span {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #30415d;
  color: #c0cada;
  font-size: 12px;
}

.next-step__facts strong {
  color: var(--turquoise);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
  color: var(--muted-strong);
  font-size: 11px;
}

.page-footer p {
  margin: 0;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--navy-950);
  color: var(--surface);
}

.not-found-page main {
  max-width: 34rem;
  min-height: 0;
  margin: 0;
  padding: 2rem;
}

.not-found-page h1 {
  margin: 0 0 1rem;
  color: var(--surface);
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.not-found-page a {
  color: #56d8d0;
}

@media (max-width: 1180px) {
  .status-ribbon {
    grid-template-columns: 1fr;
  }

  .status-ribbon__lead {
    min-height: 94px;
  }

  .status-ribbon dl > div:first-child {
    border-left: 0;
  }

  .flow-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-node {
    min-height: 0;
  }

  .flow-link {
    width: 2px;
    height: 30px;
    margin-left: 37px;
  }

  .flow-link::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .flow-link span {
    width: 100%;
    height: 0;
  }

  .flow-link.is-active span {
    animation-name: link-fill-vertical;
  }

  @keyframes link-fill-vertical {
    from { height: 0; }
    to { height: 100%; }
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar-width: 0px;
  }

  .app-shell {
    padding-top: 64px;
  }

  .sidebar {
    right: 0;
    bottom: auto;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #263750;
  }

  .brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .brand-wordmark {
    width: 108px;
  }

  .product-name {
    font-size: 9px;
  }

  .primary-nav {
    display: flex;
    gap: 2px;
  }

  .primary-nav a {
    min-width: 42px;
    min-height: 40px;
    justify-content: center;
    padding: 8px;
    font-size: 0;
  }

  .primary-nav a[aria-current="page"]::after,
  .sidebar-foot {
    display: none;
  }

  .topbar {
    position: static;
    min-height: auto;
    padding: 18px 20px;
  }

  .content-wrap {
    padding: 22px 20px 28px;
  }

  #overview,
  #flow,
  #evidence,
  #readiness,
  #ticket-ledger {
    scroll-margin-top: 82px;
  }

  .mode-badge {
    display: none;
  }

  .next-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .sidebar {
    padding-inline: 10px;
  }

  .brand-wordmark {
    width: 90px;
  }

  .primary-nav a {
    min-width: 34px;
    padding-inline: 6px;
  }
}

@media (max-width: 620px) {
  .sidebar {
    padding-inline: 14px;
  }

  .product-name {
    display: none;
  }

  .primary-nav a {
    min-width: 38px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar p {
    max-width: 30ch;
  }

  .button--primary {
    min-width: 42px;
    padding: 9px;
    font-size: 0;
  }

  .trust-banner {
    grid-template-columns: auto 1fr;
  }

  .trust-banner .status-tag {
    grid-column: 2;
    justify-self: start;
  }

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

  .status-ribbon dl > div:nth-child(3) {
    border-top: 1px solid #303968;
    border-left: 0;
  }

  .status-ribbon dl > div:nth-child(4) {
    border-top: 1px solid #303968;
  }

  .flow-panel,
  .ticket-panel,
  .evidence-panel,
  .readiness-panel {
    padding: 20px 16px;
  }

  .flow-node__label {
    align-items: center;
  }

  .section-heading,
  .ticket-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-button {
    padding-inline: 5px;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  tbody th,
  tbody td {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 10px;
    padding: 5px 4px;
    border: 0;
  }

  tbody th::before,
  tbody td::before {
    color: var(--muted-strong);
    content: attr(data-label);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .next-step {
    padding: 24px 20px;
  }

  .page-footer {
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
