/* PathQueue workspace: shared design tokens, responsive shell, and evidence surfaces. */
:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --sf: #ffffff;
  --sf2: #faf8f4;
  --ink: #1b1a2e;
  --mut: #5d5a6e;
  --ln: #e2ddd3;
  --ln2: #ece8e0;
  --hema: #4a3b8f;
  --eos: #b0335c;
  --eosl: #f8e8ee;
  --amb: #8a5a00;
  --ambl: #fbf1dc;
  --grn: #2d6a4f;
  --grnl: #e6f2eb;
  --bl: #ece9f5;
  --rail: #1b1a2e;
  --railmut: #b9b6cc;
  --s1: #4a3b8f;
  --s2: #b0335c;
  --s3: #8a5a00;
  --paper: #f5f2ec;
  --inkd: #1b1a2e;
  --font: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 1px 2px #1b1a2e0a;
  --radius: 10px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #141320;
  --sf: #1c1b2a;
  --sf2: #22212f;
  --ink: #eeedf5;
  --mut: #a8a5ba;
  --ln: #34324a;
  --ln2: #2a283c;
  --hema: #b4a8f0;
  --eos: #f08fb2;
  --eosl: #3a1f2d;
  --amb: #e5b55c;
  --ambl: #362a14;
  --grn: #7fd1a8;
  --grnl: #1b3328;
  --bl: #2a2745;
  --rail: #0f0e19;
  --s1: #b4a8f0;
  --s2: #f08fb2;
  --s3: #e5b55c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #141320;
    --sf: #1c1b2a;
    --sf2: #22212f;
    --ink: #eeedf5;
    --mut: #a8a5ba;
    --ln: #34324a;
    --ln2: #2a283c;
    --hema: #b4a8f0;
    --eos: #f08fb2;
    --eosl: #3a1f2d;
    --amb: #e5b55c;
    --ambl: #362a14;
    --grn: #7fd1a8;
    --grnl: #1b3328;
    --bl: #2a2745;
    --rail: #0f0e19;
    --s1: #b4a8f0;
    --s2: #f08fb2;
    --s3: #e5b55c;
  }
}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button {
  transition:
    background 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: var(--hema);
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.sidebar svg,
.replay-label > svg,
.search svg,
.empty-symbol svg,
.row-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--sf);
  padding: 12px;
  border-radius: 8px;
}
.skip:focus-visible {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  padding: 29px 16px 20px;
  background: var(--rail);
  color: #f4f3f8;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.25;
}
.brand-sub {
  display: block;
  font-size: 7.5px;
  letter-spacing: 1.75px;
  font-weight: 500;
  color: #b4b1c8;
  margin-top: 5px;
}
.workspace-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 32px 7px 26px;
  border: 1px solid #ffffff15;
  padding: 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 30px;
  border-radius: 7px;
  background: #ffffff10;
  font-size: 11px;
  flex: none;
}
.workspace-label > span > span {
  display: block;
  color: var(--railmut);
  font-weight: 400;
  font-size: 10px;
  margin-top: 2px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #a6a3ba;
  font-weight: 600;
  padding: 0 14px;
  margin-bottom: 11px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  margin: 0;
  overflow: visible;
}
nav .nav-label {
  margin: 28px 0 7px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #c5c4d2;
  text-align: left;
}
nav button svg {
  width: 17px;
  height: 17px;
}
nav button:hover {
  background: #ffffff09;
  color: #fff;
}
nav button[aria-current='page'] {
  background: #ffffff12;
  color: #fff;
  box-shadow: inset 2px 0 #d48ba5;
}
.nav-count {
  margin-left: auto;
  background: #ffffff13;
  min-width: 22px;
  padding: 0 5px;
  border-radius: 5px;
  text-align: center;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.data-status {
  border: 1px solid #ffffff15;
  border-radius: 9px;
  margin: 24px 7px 0;
  padding: 13px 10px;
  display: grid;
  grid-template-columns: 6px 1fr;
  column-gap: 9px;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #d4ab68;
  margin-top: 6px;
}
.data-status[data-state='ready'] .status-dot {
  background: #81c3a7;
}
.data-status b {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}
.data-status > span:last-child {
  grid-column: 2;
  color: #b0afbf;
  font-size: 9px;
  line-height: 1.7;
  margin-top: 4px;
}
.sidebar-credit {
  padding: 23px 14px 0;
  font-size: 8px;
  letter-spacing: 1.35px;
  color: #a8a6b9;
}
.sidebar-credit span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.3px;
  margin-top: 3px;
  color: #c9c6d6;
}
.workspace {
  margin-left: 226px;
  min-height: 100vh;
}
.topbar {
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--ln);
  background: var(--sf);
  font-size: 11px;
  color: var(--mut);
}
.topbar b {
  font-weight: 500;
  color: var(--ink);
}
.crumb-sep {
  padding: 0 12px;
  color: var(--ln);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  background: var(--bl);
  color: var(--hema);
  font-size: 10px;
  font-weight: 600;
}
#connection {
  font-size: 10px;
}
#connection::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--mut);
}
#connection[data-state='online']::before {
  background: var(--grn);
}
#connection[data-state='offline']::before {
  background: var(--amb);
}
.wrap {
  max-width: 1540px;
  padding: 20px 38px 0;
  margin: auto;
}
.banner {
  background: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 24px;
  font-size: 10px;
  font-weight: 400;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 6px;
}
.banner::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--amb);
  border-radius: 50%;
}
.mock {
  font-size: 11px;
  line-height: 1.6;
  padding: 10px 13px;
  border-color: color-mix(in srgb, var(--amb) 25%, transparent);
  border-radius: 7px;
  margin-bottom: 20px;
}
.page-header {
  margin: 0 0 26px;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--hema);
  margin-bottom: 9px;
}
h1 {
  font:
    500 clamp(26px, 2.4vw, 38px)/1.22 var(--display);
  letter-spacing: -1.1px;
}
.page-header p {
  font-size: 12px;
  color: var(--mut);
  margin: 9px 0 0;
}
.page-context {
  font-size: 11px;
  white-space: nowrap;
  line-height: 1.7;
}
.page-context > span:last-child {
  display: block;
  font-size: 9px;
  color: var(--mut);
  margin-left: 12px;
}
.context-dot {
  display: inline-block;
  background: var(--hema);
  height: 5px;
  width: 5px;
  border-radius: 50%;
  margin-right: 5px;
}
.replay-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  border: 1px solid var(--ln);
  background: var(--sf);
  border-radius: 9px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.replay-label {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.replay-label > svg {
  color: var(--hema);
  width: 18px;
  height: 18px;
}
.replay-label b {
  font-size: 11px;
  font-weight: 600;
}
.replay-label #sim {
  display: block;
  font-size: 9px;
  color: var(--mut);
}
.simctl {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.seg {
  border-color: var(--ln);
  border-radius: 6px;
  box-shadow: none;
}
.seg button {
  font-size: 10px;
  padding: 6px 10px;
  font-weight: 500;
  white-space: nowrap;
}
.seg button:hover {
  background: var(--bg);
}
.seg button[aria-pressed='true'] {
  background: var(--bl);
  color: var(--hema);
}
[data-testid='sim-start']:disabled {
  color: var(--mut);
}
.inject-options {
  display: flex;
  gap: 3px;
  align-items: center;
}
.inject-options .sub {
  font-size: 9px;
  margin-right: 4px;
}
.inject-options button {
  border: 0;
  border-radius: 5px;
  background: var(--bg);
  color: var(--mut);
  font-size: 9px;
  padding: 6px 7px;
}
.inject-options button:hover {
  background: var(--eosl);
  color: var(--eos);
}
.inject-options button:disabled {
  opacity: 0.4;
}
.queue-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.queue-stat {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: var(--radius);
  padding: 16px 19px;
  position: relative;
  box-shadow: var(--shadow);
}
.queue-stat > span {
  font-size: 11px;
  font-weight: 500;
  color: var(--mut);
}
.queue-stat strong {
  display: block;
  font-size: 29px;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: -1px;
}
.queue-stat small {
  font-size: 9px;
  color: var(--mut);
}
.queue-stat::after {
  content: '';
  position: absolute;
  top: 19px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--hema);
  opacity: 0.65;
}
.stat-frozen::after {
  background: var(--eos);
}
.stat-invasive::after {
  background: var(--amb);
}
.stat-orders::after {
  background: var(--grn);
}
.queue-panel {
  border: 1px solid var(--ln);
  border-radius: var(--radius);
  background: var(--sf);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 22px 17px;
  gap: 12px;
}
.queue-heading h2 {
  font-size: 14px;
  margin: 0 0 2px;
}
.queue-heading .sub {
  font-size: 10px;
}
h2 {
  font: 600 14px/1.5 var(--font);
  letter-spacing: -0.15px;
}
h3 {
  font-size: 12px;
}
p {
  overflow-wrap: break-word;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--ln);
  border-radius: 6px;
  color: var(--mut);
  width: 245px;
  max-width: 100%;
  background: var(--bg);
}
.search svg {
  width: 14px;
  height: 14px;
}
.search input {
  background: transparent;
  border: 0;
  font-size: 10px;
  outline: none;
  min-width: 0;
  width: 100%;
  color: var(--ink);
}
.search:focus-within {
  outline: 2px solid var(--hema);
  outline-offset: 2px;
}
.queue-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 12px;
  flex-wrap: wrap;
}
.status-filters {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-filters button {
  position: relative;
  padding: 8px 0;
  background: none;
  border: 0;
  font-size: 10px;
  color: var(--mut);
  white-space: nowrap;
}
.status-filters button[aria-pressed='true'] {
  color: var(--hema);
  font-weight: 600;
}
.status-filters button[aria-pressed='true']::after {
  content: '';
  height: 2px;
  background: var(--hema);
  position: absolute;
  bottom: 0;
  inset-inline: 0;
}
.filter-right {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.priority-note {
  padding: 0 22px 11px;
}
.priority-note summary {
  font-size: 9px;
  margin: 0;
  color: var(--mut);
}
.priority-note p {
  font-size: 11px;
  margin: 8px 0 0;
}
.tblw {
  border: 0;
  border-radius: 0;
  overflow: auto;
}
.tblw table {
  min-width: 740px;
}
th {
  background: var(--bg);
  padding: 11px 16px;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 18px 16px;
  font-size: 11px;
}
td:first-child {
  max-width: 300px;
  width: 31%;
}
td:first-child > b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.lanetag {
  font-size: 9px;
  line-height: 1.8;
}
.lanetag.surg {
  font-size: 9px;
}
.tier {
  font-size: 10px;
  padding: 3px 8px;
  border: 0;
  line-height: 1.5;
  white-space: nowrap;
}
.sub {
  font-size: 10px;
  line-height: 1.7;
}
.reason {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--mut);
}
.reasons {
  gap: 3px;
  margin-top: 6px;
}
.chip {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bl);
}
.chip.conf {
  background: var(--bl);
  color: var(--hema);
  font-weight: 600;
}
.chip.inv {
  background: var(--eosl);
  color: var(--eos);
}
.timer {
  font-size: 12px;
}
.pbar {
  height: 3px;
  width: 70px;
  margin-top: 6px;
}
.agent-cell {
  font-size: 10px;
  color: var(--mut);
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--hema);
}
.row-arrow {
  width: 25px;
  padding-left: 0;
  color: var(--mut);
}
.row-arrow svg {
  height: 14px;
  width: 14px;
  transition: transform 0.16s;
}
.row:hover .row-arrow svg {
  transform: translateX(3px);
}
tr.grp td {
  font-size: 8px;
  letter-spacing: 0.7px;
  font-weight: 500;
  padding: 7px 16px;
  background: var(--sf);
  color: var(--mut);
  border-bottom: 1px solid var(--ln);
}
tr.row:hover,
tr.row:focus-visible {
  background: color-mix(in srgb, var(--bl) 55%, var(--sf));
}
tr.row.done {
  opacity: 0.7;
}
.held-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 2px;
  font-size: 9px;
  color: var(--mut);
  margin: 3px 0;
}
.held-hint b {
  font-weight: 500;
  color: var(--ink);
}
.hint-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--ln);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 9px;
  flex: none;
}
.card {
  border-radius: var(--radius);
  padding: 20px;
  border-color: var(--ln);
  box-shadow: var(--shadow);
}
.task-card {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}
.task-card ul {
  columns: 2;
  font-size: 10px;
  color: var(--mut);
  padding: 0 0 0 15px !important;
  line-height: 2;
}
.task-heading {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.task-heading h2 {
  font-size: 12px;
  margin-top: 3px;
}
.task-icon {
  background: var(--bl);
  color: var(--hema);
  border-radius: 5px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.empty-state {
  padding: 48px 24px 55px;
}
.empty-state h2 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 7px;
}
.empty-state p {
  max-width: 430px;
  margin: 0 auto 15px;
  font-size: 12px;
  color: var(--mut);
}
.empty-symbol {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ln);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: var(--hema);
  background: var(--bg);
  transform: rotate(-5deg);
}
.empty-symbol svg {
  width: 25px;
  height: 25px;
  transform: rotate(5deg);
}
.quiet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--ln);
  font-size: 9px;
  color: var(--mut);
}
.quiet p {
  margin: 0;
}
.quiet > span:last-child {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.footer-mark {
  font-size: 18px;
  letter-spacing: -3px;
  font-weight: 700;
  color: var(--mut);
}
.footer-mark span {
  color: var(--eos);
}
.grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}
.grid > div {
  min-width: 0;
}
.grid .card + .card {
  margin-top: 20px !important;
}
.card h2 {
  margin-bottom: 13px;
}
.back {
  font-size: 11px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.back::before {
  content: '←';
}
.tabs {
  gap: 15px;
  margin-top: 16px;
}
.tabs button {
  padding: 8px 2px;
  font-size: 12px;
  border-bottom-width: 2px;
}
.tabs button[aria-selected='true'] {
  color: var(--hema);
}
.hm {
  border: 1px solid var(--ln);
  border-radius: 8px;
}
.hmctl {
  font-size: 10px;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
select {
  font-size: 11px;
  padding: 6px 9px;
}
.hmctl label {
  display: flex;
  gap: 6px;
  align-items: center;
}
input[type='range'] {
  max-width: 110px;
  accent-color: var(--hema);
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--hema);
}
.why-row {
  padding: 8px 5px;
  border-radius: 5px;
  grid-template-columns: minmax(0, 1.5fr) minmax(65px, 1fr) 44px;
  gap: 7px;
}
.why-row .lbl {
  font-size: 11px;
}
.why-row .v {
  font-size: 10px;
}
.src {
  font-size: 8px;
  padding: 1px 4px;
}
.axis {
  font-size: 9px;
}
.why + p.sub {
  line-height: 1.8;
}
.bigp {
  font: 500 38px/1.1 var(--font);
  letter-spacing: -1.5px;
}
.cbar {
  grid-template-columns: 115px 1fr 35px;
  font-size: 10px;
  gap: 8px;
  margin: 5px 0;
}
.cbar i,
.cbar span.t {
  height: 5px;
  border-radius: 3px;
}
.kv {
  font-size: 10px;
  padding: 8px 0;
  align-items: center;
  border-bottom: 1px solid var(--ln);
}
.kv > b {
  font-weight: 500;
  text-align: right;
}
.kv > span:first-child {
  flex-shrink: 0;
}
.look {
  gap: 8px;
  flex-wrap: wrap;
}
.look > div {
  min-width: 50px;
  font-size: 9px;
}
.contrast {
  border-style: solid;
  border-radius: 7px;
  padding: 10px;
  font-size: 11px;
  grid-template-columns: 80px 1fr;
}
.contrast img {
  width: 80px;
}
.badge {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
}
.fref {
  font-size: 9px;
  padding: 1px 4px;
  margin-left: 5px;
}
.btn {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 34px;
  border-radius: 6px;
}
.btn:hover {
  background: var(--bl);
}
.btn.p:hover {
  background: color-mix(in srgb, var(--hema) 85%, #000);
}
.act {
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
}
.flag,
.simbanner {
  font-size: 11px;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
  padding: 11px 13px;
}
.verdict {
  font-size: 12px;
  padding: 12px;
}
.events {
  font-size: 10px;
}
.events li {
  padding: 8px 0;
}
.or .card {
  padding: 24px;
}
.or .big.timer {
  font: 500 44px/1.3 var(--font);
  letter-spacing: -1px;
  margin-top: 12px;
}
.steps {
  gap: 5px;
  margin: 20px 0 10px;
}
.steps span {
  height: 4px;
}
.mlab {
  font-size: 10px;
}
.note {
  font-size: 11px;
}
.cells-grid {
  gap: 16px;
}
.legend {
  flex-wrap: wrap;
  font-size: 10px;
}
.cells-grid figcaption {
  font-size: 11px;
}
.toast {
  background: var(--rail);
  color: #fff;
  font-size: 12px;
  border: 1px solid #ffffff22;
  border-radius: 9px;
  box-shadow: 0 6px 30px #0002;
  padding: 12px 18px;
}
.offline {
  font-size: 11px;
  border-color: color-mix(in srgb, var(--eos) 30%, transparent);
}
@media (min-width: 1600px) {
  .wrap {
    padding-top: 28px;
  }
  .page-header {
    margin: 8px 0 32px;
  }
  .queue-stat {
    padding: 22px;
  }
  .queue-stat strong {
    font-size: 36px;
  }
  .sidebar {
    width: 244px;
  }
  .workspace {
    margin-left: 244px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 196px;
    padding-inline: 10px;
  }
  .workspace {
    margin-left: 196px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-sub {
    font-size: 6px;
  }
  .wrap {
    padding-inline: 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .replay-toolbar {
    flex-wrap: wrap;
  }
  .simctl {
    width: 100%;
    justify-content: space-between;
  }
  .queue-filters {
    gap: 8px;
  }
  .queue-stat {
    padding: 15px;
  }
  .page-context {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    grid-template-columns: 150px 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 14px 16px 0;
    display: block;
  }
  .brand {
    font-size: 21px;
    padding: 0;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .brand-sub {
    font-size: 6px;
  }
  .workspace-label,
  .sidebar-bottom,
  .sidebar > .nav-label,
  nav .nav-label {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .sidebar nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin-top: 15px;
    padding-bottom: 10px;
  }
  .sidebar nav button {
    padding: 8px 10px;
    gap: 6px;
    font-size: 10px;
    flex-shrink: 0;
    min-height: 36px;
  }
  .sidebar nav svg {
    width: 14px;
    height: 14px;
  }
  .nav-count {
    font-size: 9px;
    min-width: 18px;
  }
  .topbar {
    height: 47px;
    padding-inline: 18px;
  }
  .topbar-right {
    gap: 10px;
  }
  #connection {
    font-size: 9px;
  }
  .avatar {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .wrap {
    padding: 17px 18px 0;
  }
  .banner {
    font-size: 9px;
    margin-bottom: 22px;
  }
  .page-header {
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 29px;
  }
  .page-header p {
    font-size: 11px;
    max-width: 280px;
  }
  .replay-toolbar {
    padding: 11px 12px;
    gap: 10px;
    margin-bottom: 18px;
  }
  .simctl {
    flex-wrap: wrap;
    gap: 10px;
  }
  .seg button {
    padding: 7px 10px;
  }
  .inject-options {
    gap: 5px;
  }
  .inject-options button {
    font-size: 10px;
    padding: 7px;
  }
  .queue-stats {
    gap: 9px;
    margin-bottom: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .queue-stat {
    padding: 14px 15px;
  }
  .queue-stat strong {
    font-size: 27px;
    margin-top: 3px;
  }
  .queue-stat > span {
    font-size: 10px;
  }
  .queue-stat small {
    font-size: 9px;
  }
  .queue-stat::after {
    top: 18px;
    right: 15px;
    width: 5px;
    height: 5px;
  }
  .queue-heading {
    padding: 17px 15px;
    flex-wrap: wrap;
  }
  .queue-heading h2 {
    font-size: 14px;
  }
  .search {
    width: 100%;
    padding: 9px 10px;
  }
  .search input {
    font-size: 12px;
  }
  .queue-filters {
    padding: 0 15px 11px;
    gap: 12px;
  }
  .status-filters {
    gap: 18px;
    width: 100%;
  }
  .status-filters button {
    font-size: 11px;
    padding-bottom: 9px;
    min-height: 36px;
  }
  .filter-right {
    gap: 7px;
  }
  .filter-right .seg button {
    font-size: 9px;
    padding: 7px 9px;
  }
  .priority-note {
    padding-inline: 15px;
  }
  .priority-note summary {
    font-size: 10px;
  }
  .tblw {
    overflow: visible;
  }
  .tblw table {
    min-width: 0;
  }
  .tblw table,
  .tblw tbody,
  .tblw tr,
  .tblw td {
    display: block;
    width: 100%;
  }
  .tblw thead {
    display: none;
  }
  .tblw tr.row {
    padding: 14px 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 9px 12px;
    position: relative;
  }
  .tblw tr.row td {
    max-width: none;
    border: 0;
    padding: 0;
    width: auto;
  }
  .tblw tr.row td:first-child {
    grid-column: 1/-1;
    padding-right: 15px;
  }
  .tblw tr.row td:nth-child(5) {
    grid-column: 1/-1;
  }
  .tblw tr.row td.row-arrow {
    position: absolute;
    right: 14px;
    top: 15px;
  }
  .tblw tr.grp td {
    padding: 8px 15px;
  }
  .lanetag,
  .reason {
    font-size: 9px;
  }
  .tier,
  .chip {
    font-size: 10px;
  }
  .sub {
    font-size: 10px;
  }
  .held-hint {
    font-size: 10px;
    align-items: flex-start;
    line-height: 1.8;
    padding-block: 13px;
  }
  .hint-mark {
    margin-top: 3px;
  }
  .task-card {
    display: block;
    padding: 16px;
    margin-top: 13px;
  }
  .task-card ul {
    columns: 1;
    font-size: 11px;
    line-height: 2;
  }
  .task-heading {
    margin-bottom: 12px;
  }
  .quiet {
    align-items: flex-start;
    padding: 17px 0;
    margin-top: 22px;
    font-size: 9px;
  }
  .quiet > span:last-child {
    display: none;
  }
  .card {
    padding: 16px;
  }
  .grid {
    gap: 14px;
  }
  .why-row .lbl {
    font-size: 11px;
  }
  .why-row {
    grid-template-columns: minmax(0, 1.5fr) 75px 40px;
  }
  .empty-state {
    padding: 37px 18px;
  }
  .empty-state h2 {
    font-size: 18px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .kv {
    gap: 8px;
  }
  .kv > span:first-child {
    flex-shrink: 1;
  }
  .mlab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .or .card {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* A comfortable reading scale for decision-making, including compact evidence labels. */
@media (min-width: 761px) {
  nav button {
    font-size: 13px;
  }
  .replay-label b {
    font-size: 12px;
  }
  .replay-label #sim {
    font-size: 10px;
  }
  .seg button {
    font-size: 11px;
  }
  .inject-options button {
    font-size: 10px;
  }
  .queue-stat > span {
    font-size: 12px;
  }
  .queue-stat small {
    font-size: 10px;
  }
  .search input {
    font-size: 12px;
  }
  .status-filters button {
    font-size: 11px;
  }
  th {
    font-size: 10px;
  }
  td {
    font-size: 12px;
  }
  .lanetag,
  .lanetag.surg {
    font-size: 10px;
  }
  .reason {
    font-size: 9px;
  }
  .tier,
  .chip {
    font-size: 11px;
  }
  .agent-cell {
    font-size: 11px;
  }
  .sub {
    font-size: 11px;
  }
  .why-row .lbl {
    font-size: 12px;
  }
  .kv,
  .cbar {
    font-size: 11px;
  }
  .src {
    font-size: 9px;
  }
  .note {
    font-size: 12px;
  }
  .btn {
    font-size: 12px;
  }
  .task-card ul {
    font-size: 11px;
  }
  .page-header p {
    font-size: 13px;
  }
}
.activity-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
.activity-card summary span {
  font-size: 10px;
  color: var(--mut);
  font-weight: 400;
}
.activity-card[open] summary {
  margin-bottom: 12px;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  margin-top: 12px;
}
h2 .case-link {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.case-link:hover,
.task-card a:hover {
  text-decoration: underline;
  color: var(--hema);
}
.task-card a {
  color: var(--mut);
  text-decoration: none;
}
.workspace[data-route='case'] .page-header {
  margin-bottom: 18px;
}
.decision-column > .card + .card {
  margin-top: 16px;
}
dialog {
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 28px;
  background: var(--sf);
  color: var(--ink);
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 24px 90px #0003;
}
dialog::backdrop {
  background: #151a2e77;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  margin-bottom: 12px;
}
dialog p {
  color: var(--mut);
  font-size: 13px;
  line-height: 1.7;
}
dialog .btns {
  justify-content: flex-end;
  margin-top: 24px;
}
.explanation-source {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--mut);
  margin: 0 0 14px;
}
.explanation-source b {
  font-weight: 500;
  color: var(--ink);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--ln);
  font-size: 11px;
  color: var(--mut);
}
.pagination > div {
  display: flex;
  gap: 7px;
}
.pagination .btn {
  font-size: 10px;
  min-height: 30px;
  padding: 5px 9px;
}
.task-card > .sub {
  grid-column: 2;
}
@media (max-width: 760px) {
  .pagination {
    font-size: 10px;
    padding: 12px;
    gap: 7px;
  }
  .pagination .btn {
    padding: 5px 7px;
    font-size: 9px;
  }
}
.cell-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cell-features .act {
  margin: 0;
  min-width: 0;
}
.cell-features .pctbar {
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .cell-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .cell-features {
    grid-template-columns: 1fr;
  }
}
tr.row.done {
  opacity: 1;
  background: var(--bg);
}
@media (max-width: 760px) {
  .search input {
    font-size: 16px;
  }
}
