/* Current-news result: conclusion, true processing path, and final destination. */
.replay-workspace .event-empty.article-result-state { background: #fff; }

/* The shared empty-state rule caps descendant paragraphs at 380px. Result cards
   are document content, not empty-state copy, so they must use their real column. */
.replay-workspace .event-empty.article-result-state p { max-width: none; }

.replay-workspace .system-result-card {
  width: min(1080px, 100%);
  padding: clamp(24px, 2.5vw, 38px) clamp(26px, 3vw, 46px) 42px;
}

.replay-workspace .system-result-document {
  padding: 2px 0 20px;
  border-bottom-color: #e5ecea;
}

.replay-workspace .system-result-document > span {
  color: #788b90;
  font-size: 15px;
  line-height: 1.4;
}

.replay-workspace .system-result-document h2 {
  max-width: none;
  margin-top: 8px;
  color: #102f39;
  font-size: clamp(20px, 1.4vw, 24px);
  line-height: 1.42;
  line-break: strict;
  text-wrap: pretty;
}

.replay-workspace .system-result-conclusion {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 20px;
  padding: 17px 20px 17px 17px;
  border-color: #c7e0da;
  border-left: 4px solid #0e8a75;
  border-radius: 10px;
  background: linear-gradient(105deg, #f0f9f6 0%, #f8fcfb 100%);
  box-shadow: 0 5px 18px rgba(31, 94, 81, .035);
}

.replay-workspace .system-result-conclusion > .system-result-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #0c8a75;
  box-shadow: 0 0 0 5px rgba(12, 138, 117, .08);
}

.replay-workspace .system-result-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.replay-workspace .system-result-conclusion strong {
  display: block;
  color: #0d695b;
  font-size: 15px;
  line-height: 1.4;
  font-weight: var(--weight-bold);
}

.replay-workspace .system-result-conclusion p {
  margin-top: 4px;
  color: #2f5056;
  font-size: 14.5px;
  line-height: 1.7;
  letter-spacing: -.015em;
  line-break: strict;
  text-wrap: pretty;
}

.replay-workspace .has-pending .system-result-conclusion {
  border-color: #ecd6aa;
  border-left-color: #c98218;
  background: linear-gradient(105deg, #fff8ec 0%, #fffdf8 100%);
}

.replay-workspace .has-pending .system-result-conclusion > .system-result-mark {
  color: #fff;
  background: #cb851c;
  box-shadow: 0 0 0 5px rgba(203, 133, 28, .09);
}

.replay-workspace .has-pending .system-result-conclusion strong { color: #945b0a; }

.replay-workspace .no-trigger .system-result-conclusion {
  border-color: #dce5e3;
  border-left-color: #82938f;
  background: linear-gradient(105deg, #f4f7f6 0%, #fafbfb 100%);
}

.replay-workspace .no-trigger .system-result-conclusion > .system-result-mark {
  color: #fff;
  background: #81928e;
  box-shadow: 0 0 0 5px rgba(129, 146, 142, .09);
}

.replay-workspace .no-trigger .system-result-conclusion strong { color: #526a66; }

.replay-workspace .is-processing .system-result-conclusion {
  border-color: #c9e0da;
  border-left-color: #198b78;
  background: linear-gradient(105deg, #f2f9f7 0%, #fbfdfc 100%);
}

.replay-workspace .is-processing .system-result-conclusion > .system-result-mark {
  color: #087f6d;
  background: #fff;
  box-shadow: 0 0 0 5px #e7f4f0;
}

.replay-workspace .is-processing .system-result-conclusion strong { color: #175e53; }

.replay-workspace .system-process-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 4px 0;
  padding: 0 0 5px;
}

.replay-workspace .system-process-step,
.replay-workspace .system-process-step.pending,
.replay-workspace .system-process-step.na,
.replay-workspace .system-process-step.neutral {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 44px auto auto;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-height: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.replay-workspace .system-process-step::before { display: none; }

.replay-workspace .system-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 20px;
  right: auto;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  border-radius: 0;
  background: #168b77;
}

.replay-workspace .system-process-step.pending:not(:last-child)::after {
  background: linear-gradient(90deg, #cc861c 0%, #c9d4d1 100%);
}

.replay-workspace .system-process-step.active:not(:last-child)::after { background: #c9d4d1; }

.replay-workspace .system-process-step.na:not(:last-child)::after,
.replay-workspace .system-process-step.neutral:not(:last-child)::after { background: #c9d4d1; }

.replay-workspace .system-process-step > .system-process-icon {
  position: relative;
  z-index: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  color: #fff;
  background: #087f6d;
  box-shadow: 0 0 0 4px #eaf5f2, 0 4px 10px rgba(20, 112, 95, .14);
}

.replay-workspace .system-process-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.replay-workspace .system-process-step > .system-process-label {
  grid-row: 2;
  color: #183a42;
  font-size: 14px;
  line-height: 1.4;
  font-weight: var(--weight-semibold);
}

.replay-workspace .system-process-step > strong {
  grid-row: 3;
  max-width: 100%;
  overflow: hidden;
  color: #16806f;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: var(--weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-workspace .system-process-step.pending > .system-process-icon {
  color: #fff;
  background: #ca841b;
  box-shadow: 0 0 0 4px #fff2dc, 0 4px 10px rgba(172, 105, 11, .13);
}

.replay-workspace .system-process-step.pending > .system-process-label { color: #70470c; }
.replay-workspace .system-process-step.pending > strong { color: #a4660c; }

.replay-workspace .system-process-step.active > .system-process-icon {
  border: 2px solid #168b77;
  color: #087f6d;
  background: #fff;
  box-shadow: 0 0 0 5px #e7f4f0;
}

.replay-workspace .system-process-step.active > .system-process-label { color: #175a50; }
.replay-workspace .system-process-step.active > strong { color: #16806f; }

.replay-workspace .system-process-step.na > .system-process-icon,
.replay-workspace .system-process-step.neutral > .system-process-icon {
  color: #778a86;
  background: #edf2f0;
  box-shadow: 0 0 0 4px #f5f8f7;
}

.replay-workspace .system-process-step.na > .system-process-label,
.replay-workspace .system-process-step.neutral > .system-process-label { color: #627571; }

.replay-workspace .system-process-step.na > strong,
.replay-workspace .system-process-step.neutral > strong { color: #81908d; }

.replay-workspace .system-destination-card {
  margin-top: 26px;
  border-color: #d6e3df;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(38, 79, 70, .045);
}

.replay-workspace .system-destination-card > header,
.replay-workspace .pending-destination > header,
.replay-workspace .neutral-destination > header {
  padding: 20px 22px 0;
  border-bottom: 0;
  background: #fff;
}

.replay-workspace .system-destination-card > header div { gap: 5px; }

.replay-workspace .system-destination-card > header span {
  color: #16806f;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
}

.replay-workspace .system-destination-card > header strong {
  color: #174047;
  font-size: 15.5px;
  line-height: 1.4;
}

.replay-workspace .system-destination-card > header b {
  padding: 5px 9px;
  border-radius: 999px;
  color: #397067;
  background: #eef6f4;
  font-size: 11.5px;
}

.replay-workspace .system-destination-card > h3 {
  margin: 13px 22px 0;
  color: #15363e;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -.012em;
  line-break: strict;
  text-wrap: pretty;
}

.replay-workspace .system-destination-card > p {
  margin: 8px 22px 0;
  color: #415e64;
  font-size: 14px;
  line-height: 1.72;
  letter-spacing: -.025em;
  line-break: strict;
  text-wrap: pretty;
}

.replay-workspace .event-destination > p {
  font-size: 15px;
  font-weight: var(--weight-bold);
}

.replay-workspace .system-event-change {
  gap: 4px;
  margin: 17px 22px 0;
  padding: 15px 0 0;
  border-top: 1px solid #e5ecea;
  border-left: 0;
  background: transparent;
}

.replay-workspace .system-event-change span {
  color: #16806f;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
}

.replay-workspace .system-event-change strong {
  color: #2d5056;
  font-size: 14px;
  line-height: 1.55;
}

.replay-workspace .system-destination-card > footer.system-destination-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 17px 22px 0;
  padding: 16px 0 20px;
  border-top: 1px solid #e5ecea;
}

.replay-workspace .system-destination-meta dl {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.replay-workspace .system-destination-meta dl > div {
  display: grid;
  grid-template-rows: 17px 20px;
  align-content: start;
  row-gap: 6px;
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid #e5ecea;
}
.replay-workspace .system-destination-meta dl > div:first-child { padding-left: 0; }
.replay-workspace .system-destination-meta dl > div:last-child { border-right: 0; }

.replay-workspace .system-destination-card dt {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 17px;
  color: #75888d;
  font-size: 11.5px;
  line-height: 17px;
}

.replay-workspace .system-meta-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #496d6c;
}

.replay-workspace .system-meta-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.replay-workspace .system-destination-card dd {
  margin: 0 0 0 24px;
  color: #294b51;
  font-size: 13px;
  line-height: 20px;
}

.replay-workspace .system-destination-card > footer button {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border-color: #acd0c7;
  border-radius: 7px;
  color: #087763;
  background: #f5fbf9;
}

.replay-workspace .system-destination-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.replay-workspace .system-destination-actions > button { white-space: nowrap; }

.replay-workspace .system-destination-actions > [data-system-article-tab] {
  border-color: #d3dfdc;
  color: #48666c;
  background: #fff;
}

.replay-workspace .pending-destination > header strong,
.replay-workspace .pending-destination > header span { color: #985e0b; }
.replay-workspace .pending-destination > header b { color: #985e0b; background: #fff0d5; }
.replay-workspace .neutral-destination > header strong,
.replay-workspace .neutral-destination > header span { color: #5b716d; }
.replay-workspace .neutral-destination > header b { color: #607571; background: #edf2f0; }
.replay-workspace .processing-destination > header strong,
.replay-workspace .processing-destination > header span { color: #176b5e; }
.replay-workspace .processing-destination > header b { color: #176b5e; background: #e8f4f1; }
.replay-workspace .processing-destination { padding-bottom: 20px; }

@media (max-width: 1220px) {
  .replay-workspace .system-result-card { padding-right: 28px; padding-left: 28px; }
  .replay-workspace .system-process-path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .replay-workspace .system-process-step { padding-right: 5px; padding-left: 5px; }
  .replay-workspace .system-process-step > .system-process-label { font-size: 13.5px; }
  .replay-workspace .system-process-step > strong { font-size: 12.5px; }
  .replay-workspace .system-destination-card > footer.system-destination-meta {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .replay-workspace .system-destination-actions { align-self: flex-end; }
}

@media (max-width: 980px) {
  .replay-workspace .system-result-card { padding: 24px 20px 34px; }
  .replay-workspace .system-process-path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .replay-workspace .system-process-step:not(:last-child)::after { display: block; }
}

@media (max-width: 560px) {
  .replay-workspace .system-result-card { padding: 20px 14px 28px; }
  .replay-workspace .system-result-document h2 { font-size: 19px; }
  .replay-workspace .system-result-conclusion { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 15px 14px; }
  .replay-workspace .system-result-conclusion > .system-result-mark { width: 34px; height: 34px; }
  .replay-workspace .system-process-path {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
    gap: 0;
    margin-right: 0;
    margin-left: 0;
    padding-bottom: 10px;
    overflow-x: auto;
  }
  .replay-workspace .system-process-step { min-height: 92px; }
  .replay-workspace .system-destination-card > header,
  .replay-workspace .system-destination-card > h3,
  .replay-workspace .system-destination-card > p,
  .replay-workspace .system-event-change,
  .replay-workspace .system-destination-card > footer.system-destination-meta { margin-right: 15px; margin-left: 15px; }
  .replay-workspace .system-destination-card > header { padding-right: 0; padding-left: 0; }
  .replay-workspace .system-destination-meta dl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .replay-workspace .system-destination-meta dl > div,
  .replay-workspace .system-destination-meta dl > div:first-child { padding: 0; border-right: 0; }
  .replay-workspace .system-destination-actions {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .replay-workspace .system-destination-card > footer.system-destination-meta button { width: 100%; }
}

/* Whole-page finishing pass: one visual system from the run header to the selected record. */
.replay-workspace .arrival-strip,
.replay-workspace .workbench,
.replay-workspace .panel-header,
.replay-workspace .system-feed-search,
.replay-workspace .filter-row,
.replay-workspace .feed-pagination > .list-pagination {
  border-color: #dce6e3;
}

.replay-workspace .replay-title-metrics strong { letter-spacing: -.025em; }

.replay-workspace .replay-title-metrics span,
.replay-workspace .replay-progress > header strong,
.replay-workspace .replay-progress > header span { white-space: nowrap; }

.replay-workspace .replay-title-actions .replay-dock button,
.replay-workspace .replay-title-actions .replay-dock select,
.replay-workspace .system-feed-search input,
.replay-workspace .filter-chip,
.replay-workspace .feed-pagination button,
.replay-workspace .feed-pagination input {
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.replay-workspace .replay-title-actions .replay-dock button:focus-visible,
.replay-workspace .replay-title-actions .replay-dock select:focus-visible,
.replay-workspace .system-feed-search input:focus-visible,
.replay-workspace .filter-chip:focus-visible,
.replay-workspace .news-card-main:focus-visible,
.replay-workspace .feed-pagination button:focus-visible,
.replay-workspace .feed-pagination input:focus-visible,
.replay-workspace .system-destination-card button:focus-visible {
  outline: 2px solid rgba(8, 127, 109, .28);
  outline-offset: 2px;
}

.replay-workspace .workbench {
  overflow: hidden;
  background: #fff;
}

.replay-workspace .stream-panel,
.replay-workspace .memory-panel { min-width: 0; }

.replay-workspace .panel-header {
  border-bottom-color: #dfe8e5;
  background: #fff;
}

.replay-workspace .system-feed-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.replay-workspace .system-feed-header > h2 {
  color: #16343d;
  font-size: 19px;
  line-height: 1.3;
  font-weight: var(--weight-bold);
  letter-spacing: -.012em;
}

.replay-workspace .system-feed-summary {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.replay-workspace .system-feed-summary strong {
  color: #315b55;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.replay-workspace .system-feed-summary span {
  color: #788a8f;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: var(--weight-regular);
}

.replay-workspace .memory-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(30px, 4vw, 68px);
  row-gap: 3px;
}

.replay-workspace .memory-header > div:first-child { display: contents; }

.replay-workspace .memory-header #memoryPanelKicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.replay-workspace .memory-header #memoryPanelTitle {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.replay-workspace .memory-header #memoryPanelHint {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  max-width: none;
  margin: 0;
  overflow: visible;
  color: #365b60;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.4;
  font-weight: var(--weight-semibold);
  letter-spacing: -.012em;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}

.replay-workspace .section-kicker { letter-spacing: .015em; }

.replay-workspace .system-feed-search {
  padding-top: 11px;
  padding-bottom: 8px;
}

.replay-workspace .system-feed-search input {
  border-color: #d5e1de;
  background: #fafcfb;
}

.replay-workspace .system-feed-search input:hover {
  border-color: #bdcfca;
  background: #fff;
}

.replay-workspace .filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding-right: 10px;
  padding-left: 10px;
}

.replay-workspace .filter-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 3px 7px;
  font-size: 12px;
  line-height: 1.15;
}

.replay-workspace .filter-chip b {
  margin-left: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.replay-workspace .filter-chip:hover {
  color: #28574e;
  background: #f1f7f5;
}

.replay-workspace .filter-chip.active {
  border-color: #bdd9d1;
  color: #087461;
  background: #ecf7f3;
  box-shadow: 0 2px 5px rgba(35, 92, 80, .055);
}

.replay-workspace .news-feed,
.replay-workspace .event-empty.article-result-state {
  scrollbar-width: thin;
  scrollbar-color: #c4d2ce transparent;
}

.replay-workspace .news-feed::-webkit-scrollbar,
.replay-workspace .event-empty.article-result-state::-webkit-scrollbar { width: 6px; }

.replay-workspace .news-feed::-webkit-scrollbar-thumb,
.replay-workspace .event-empty.article-result-state::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c4d2ce;
}

.replay-workspace .news-item { transition: background-color .15s ease, box-shadow .15s ease; }

.replay-workspace .news-item.active {
  background: linear-gradient(90deg, #edf8f4 0%, #f6fbf9 100%);
  box-shadow: inset 4px 0 #0d8d78;
}

.replay-workspace .news-item.active h3 { color: #103b3e; }
.replay-workspace .news-card-main { outline: 0; }

.replay-workspace .news-meta {
  gap: 12px;
  color: #687d83;
  font-size: 13.5px;
  line-height: 1.4;
}

.replay-workspace .news-meta-source {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.replay-workspace .news-publisher {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #536f75;
  font-weight: var(--weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-workspace .news-meta time {
  flex: none;
  color: #687d83;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.replay-workspace .news-status {
  line-height: 1.35;
  font-weight: var(--weight-medium);
}

.replay-workspace .news-meta .news-status {
  flex: none;
  padding: 3px 7px;
  font-size: 12px;
}

.replay-workspace .news-meta .system-record-note {
  flex: none;
  font-size: 11.5px;
}

.replay-workspace .news-feed.empty-state .empty-mark {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f0f6f4;
  box-shadow: inset 0 0 0 1px #deebe7;
}

.replay-workspace .news-feed.empty-state .empty-mark::before {
  top: 10px;
  right: auto;
  bottom: auto;
  left: 10px;
  width: 13px;
  height: 13px;
  border: 1.7px solid #75978f;
  border-radius: 50%;
  background: transparent;
}

.replay-workspace .news-feed.empty-state .empty-mark::after {
  top: 24px;
  bottom: auto;
  left: 23px;
  width: 8px;
  height: 1.7px;
  border-radius: 2px;
  background: #75978f;
  transform: rotate(45deg);
  transform-origin: left center;
}

.replay-workspace .news-feed.empty-state strong {
  margin-top: 3px;
  color: #315159;
  font-size: 14px;
}

.replay-workspace .news-feed.empty-state > span {
  max-width: 300px;
  color: #74878c;
  line-height: 1.65;
}

.replay-workspace .memory-panel > .event-empty:not(.article-result-state) .seed-visual {
  width: 76px;
  height: 44px;
}

.replay-workspace .memory-panel > .event-empty:not(.article-result-state) .seed-visual i {
  top: 13px;
  width: 15px;
  height: 15px;
  border-color: #9db9b2;
  background: #fbfdfc;
  box-shadow: 0 0 0 4px #f0f6f4;
}

.replay-workspace .memory-panel > .event-empty:not(.article-result-state) .seed-visual i:first-child { left: 5px; }
.replay-workspace .memory-panel > .event-empty:not(.article-result-state) .seed-visual i:nth-child(2) { right: 5px; }

.replay-workspace .memory-panel > .event-empty:not(.article-result-state) .seed-visual span {
  top: 20px;
  right: 20px;
  left: 20px;
  height: 2px;
  background: #bfd0cc;
}

.replay-workspace .memory-panel > .event-empty:not(.article-result-state) > strong {
  margin-top: 4px;
  color: #315159;
  font-size: 15px;
}

.replay-workspace .memory-panel > .event-empty:not(.article-result-state) > p {
  max-width: 430px;
  color: #74878c;
  font-size: 13.5px;
  line-height: 1.7;
}

.replay-workspace .feed-pagination > .list-pagination { background: #fafcfb; }

.replay-workspace .feed-pagination .pagination-pages button.active {
  box-shadow: 0 3px 8px rgba(8, 127, 109, .16);
}

.replay-workspace .system-result-document h2 { letter-spacing: -.02em; }

.replay-workspace .system-destination-card > footer button:hover {
  border-color: #7fb5a8;
  background: #eaf6f2;
}

/* Reserve enough room for the replay label and full article position. */
.replay-workspace .replay-title-copy > .replay-title-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.replay-workspace .replay-title-actions .replay-progress {
  flex: 0 0 245px;
  width: 245px;
  min-width: 245px;
}

.replay-workspace .replay-title-actions .replay-progress > div { width: 245px; }

@media (min-width: 1221px) {
  .replay-workspace .workbench {
    grid-template-columns: clamp(410px, 30vw, 520px) minmax(0, 1fr);
  }
}

/* 1366-class screens still have enough room for title, totals and replay controls. */
@media (max-width: 1380px) and (min-width: 1301px) {
  .replay-workspace .dashboard { grid-template-rows: var(--surface-header-height) minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: var(--surface-header-height); }
  .replay-workspace .replay-title-block {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    height: var(--surface-header-height);
    padding: 0 20px;
    gap: 14px;
  }
  .replay-workspace .replay-title-block > .replay-title-copy {
    grid-template-columns: 138px minmax(0, 1fr);
  }
  .replay-workspace .replay-title-copy .replay-surface-title {
    width: 138px;
    padding-right: 14px;
  }
  .replay-workspace .replay-title-metrics > div {
    gap: 6px;
    padding: 0 9px;
  }
  .replay-workspace .replay-title-metrics strong { font-size: 22px; }
  .replay-workspace .replay-title-metrics span { font-size: 12px; }
  .replay-workspace .replay-title-block > .replay-title-actions { width: auto; }
  .replay-workspace .replay-title-actions .replay-dock {
    width: auto;
    padding: 0 0 0 13px;
    border-top: 0;
    border-left: 1px solid #dce6e3;
  }
  .replay-workspace .replay-title-actions .replay-progress {
    flex: 0 0 205px;
    width: 205px;
    min-width: 205px;
  }
  .replay-workspace .replay-title-actions .replay-progress > div { width: 205px; }
  .replay-workspace .replay-title-actions .replay-progress > header { gap: 9px; }
  .replay-workspace .replay-title-actions .replay-progress > header strong,
  .replay-workspace .replay-title-actions .replay-progress > header span { font-size: 11.5px; }
  .replay-workspace .replay-title-actions .replay-progress small { font-size: 11px; }
  .replay-workspace .replay-title-actions .replay-dock button,
  .replay-workspace .replay-title-actions .replay-dock select {
    min-height: 32px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }
}

/* Narrower desktop widths use the entire second line for replay progress. */
@media (max-width: 1300px) and (min-width: 981px) {
  .replay-workspace .dashboard { grid-template-rows: 112px minmax(0, 1fr); }
  .replay-workspace .arrival-strip { min-height: 112px; }
  .replay-workspace .replay-title-block {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 42px 54px;
    align-content: center;
    gap: 0;
    height: 112px;
  }
  .replay-workspace .replay-title-block > .replay-title-actions { width: 100%; }
  .replay-workspace .replay-title-actions .replay-dock {
    width: 100%;
    padding: 8px 0 0;
    border-top: 1px solid #e1e9e7;
    border-left: 0;
  }
  .replay-workspace .replay-title-actions .replay-progress {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .replay-workspace .replay-title-actions .replay-progress > div { width: 100%; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .replay-workspace .filter-row {
    gap: 0;
    padding-right: 4px;
    padding-left: 4px;
  }
  .replay-workspace .filter-chip {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11.5px;
  }
  .replay-workspace .filter-chip b {
    margin-left: 1px;
    font-size: 10.5px;
  }
}

@media (max-width: 980px) {
  .replay-workspace .replay-title-block > .replay-title-copy {
    grid-template-columns: minmax(0, 1fr);
  }
  .replay-workspace .replay-title-copy .replay-surface-title { display: none; }
  .replay-workspace .replay-title-copy > .replay-title-metrics { width: 100%; }
  .replay-workspace .replay-title-actions .replay-progress {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .replay-workspace .replay-title-actions .replay-progress > div { width: 100%; }
}

@media (max-width: 560px) {
  .replay-workspace .filter-row {
    gap: 0;
    padding-right: 4px;
    padding-left: 4px;
  }
  .replay-workspace .filter-chip {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11.5px;
  }
  .replay-workspace .filter-chip b {
    margin-left: 1px;
    font-size: 10.5px;
  }
  .replay-workspace .system-process-path {
    grid-template-columns: repeat(4, minmax(76px, 1fr));
  }
  .replay-workspace .system-process-step {
    min-height: 108px;
    padding-right: 2px;
    padding-left: 2px;
  }
  .replay-workspace .system-process-step > .system-process-label { font-size: 13px; }
  .replay-workspace .system-process-step > strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 620px) {
  .replay-workspace .memory-panel { grid-template-rows: 94px minmax(0, 1fr); }
  .replay-workspace .memory-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 2px;
  }
  .replay-workspace .memory-header #memoryPanelKicker,
  .replay-workspace .memory-header #memoryPanelTitle,
  .replay-workspace .memory-header #memoryPanelHint { grid-column: 1; }
  .replay-workspace .memory-header #memoryPanelKicker { grid-row: 1; margin-bottom: 1px; }
  .replay-workspace .memory-header #memoryPanelTitle { grid-row: 2; }
  .replay-workspace .memory-header #memoryPanelHint {
    grid-row: 3;
    justify-self: start;
    font-size: 12.5px;
    font-weight: var(--weight-medium);
    text-align: left;
  }
}
