:root {
  --ink: #24343c;
  --muted: #718089;
  --line: #e5ebee;
  --canvas: #f6f8fa;
  --teal: #087f7b;
  --blue: #2f82cb;
  --green: #409469;
  --coral: #c4564e;
  --amber: #98611b;
  --sidebar: 236px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  letter-spacing: 0;
}
.branch-controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: end;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.branch-controls label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.branch-controls select {
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  background: white;
}
.branch-player {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  flex-wrap: wrap;
}
.branch-player code {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.branch-playback {
  display: flex;
  gap: 8px;
  align-items: center;
}
.branch-progress {
  min-width: 65px;
  text-align: center;
  font-size: 13px;
}
.branch-tabs {
  margin-bottom: 20px;
}
.branch-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}
.branch-summary {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: #fbfcfd;
}
.branch-summary.clinical { border-top-color: var(--teal); }
.branch-summary .section-heading { margin-bottom: 16px; }
.branch-summary h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.branch-summary h2 svg { width: 17px; height: 17px; }
.branch-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.branch-summary dl > div { display: grid; gap: 4px; }
.branch-summary dt { color: var(--muted); font-size: 10px; }
.branch-summary dd { margin: 0; font-size: 18px; font-weight: 650; }
.branch-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.branch-lane {
  min-width: 0;
  border-top: 3px solid var(--blue);
  padding-top: 14px;
}
.branch-lane.clinical {
  border-color: var(--teal);
}
.branch-lane h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.branch-run {
  background: white;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
}
.branch-run .section-heading {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.branch-run code {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.branch-run p {
  margin-top: 12px;
}
.branch-empty {
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}
.branch-handoffs,
.branch-journal,
.branch-readiness {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.branch-pass {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: 13px;
}
.branch-pass code {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.branch-events {
  list-style: none;
  padding: 0;
  margin: 0;
}
.branch-events li {
  display: grid;
  grid-template-columns: 70px 100px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13px;
}
.branch-events time {
  color: var(--muted);
}
.branch-event-kind.administrative {
  color: var(--blue);
}
.branch-event-kind.clinical {
  color: var(--teal);
}
.branch-events code {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.branch-events details {
  margin-top: 10px;
}
.branch-events summary {
  color: var(--teal);
  cursor: pointer;
}
.branch-events dd {
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
}
.branch-readiness dl {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 13px;
}
.branch-readiness dd {
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  .branch-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}
.branch-summary {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: #fbfcfd;
}
.branch-summary.clinical { border-top-color: var(--teal); }
.branch-summary .section-heading { margin-bottom: 16px; }
.branch-summary h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.branch-summary h2 svg { width: 17px; height: 17px; }
.branch-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.branch-summary dl > div { display: grid; gap: 4px; }
.branch-summary dt { color: var(--muted); font-size: 10px; }
.branch-summary dd { margin: 0; font-size: 18px; font-weight: 650; }
.branch-lanes {
    grid-template-columns: minmax(0, 1fr);
  }
  .branch-controls label {
    width: 100%;
  }
  .branch-events li {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
  }
  .branch-events li > div {
    grid-column: 1 / -1;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
select,
input {
  outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #75bded;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
button svg {
  flex-shrink: 0;
}
svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}
a {
  color: var(--teal);
}
strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 14px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 0 16px;
}
.brand {
  height: 154px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand img {
  width: 182px;
  height: 182px;
  object-fit: contain;
  margin-top: -16px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 5px;
  margin-bottom: 26px;
}
.workspace svg {
  color: var(--teal);
}
.workspace strong {
  font-size: 12px;
  line-height: 1.5;
  display: block;
}
.workspace span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #81909a;
  padding: 0 12px;
  margin-bottom: 10px;
  font-weight: 600;
}
.nav-label.spaced {
  margin-top: 35px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
  margin: 3px 0;
  color: #61717b;
  position: relative;
}
.nav-item:hover {
  background: #f4f7f8;
}
.nav-item.active {
  color: #086e6a;
  background: #eaf6f4;
  font-weight: 600;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -16px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #1ba79e;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  background: #dcefea;
  padding: 3px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 35px 9px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.environment-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: #399e90;
  border-radius: 50%;
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.avatar {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  background: #eef3f6;
  border: 1px solid #e2e9ee;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 650;
  color: #446675;
}
.operator strong {
  font-size: 11px;
  display: block;
}
.operator div > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.operator .icon-button {
  margin-left: auto;
  width: 30px;
  height: 34px;
}
.operator .icon-button svg {
  width: 16px;
}
.shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 11px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}
.breadcrumb span {
  color: #c2cbd0;
}
.breadcrumb strong {
  color: #526570;
  font-weight: 500;
}
.top-tools {
  display: flex;
  gap: 22px;
  align-items: center;
}
.environment {
  font-size: 9px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #647781;
}
.environment > span {
  height: 5px;
  width: 5px;
  background: #7b939d;
  border-radius: 50%;
}
.environment.demo {
  color: #886f37;
}
.environment.demo > span {
  background: #c6a051;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  color: #7a8991;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #edf3f5;
  color: var(--ink);
}
.top-tools .icon-button {
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: 14px;
  width: 44px;
}
.mobile-menu,
.nav-backdrop {
  display: none;
}
main {
  padding: 35px 38px 18px;
  max-width: 1600px;
  margin: auto;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}
.page-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.dot-divider {
  display: inline-block;
  margin: 0 9px;
  color: #a6b1b7;
}
.page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 39px;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}
.primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
}
.primary:hover {
  background: #076c68;
}
.secondary {
  background: white;
  border: 1px solid #d8e2e7;
  color: #50636e;
}
.secondary:hover {
  background: #f4f7f8;
  border-color: #b6c8d1;
}
.danger {
  background: var(--coral);
  color: white;
}
.primary svg,
.secondary svg {
  width: 15px;
  height: 15px;
}
.period {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  min-height: 39px;
  border: 1px solid #dce5e9;
  background: #fff;
  border-radius: 5px;
}
.period svg {
  width: 15px;
  height: 15px;
  color: #778a94;
}
.period select {
  border: 0;
  background: transparent;
  color: #60717c;
  font-size: 11px;
  padding: 10px 2px;
  max-width: 145px;
  cursor: pointer;
}
.text-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #2d7b84;
  padding: 6px 0;
}
.text-button:hover {
  color: #074c51;
  text-decoration: underline;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.wide {
  width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding: 23px 0;
}
.metric {
  text-align: left;
  padding: 0 23px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.metric:last-child {
  border: 0;
}
.metric:hover .metric-label {
  color: var(--teal);
}
.metric-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #687b86;
  min-height: 30px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}
.metric-icon svg {
  width: 15px;
  height: 15px;
}
.metric > strong {
  display: block;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin: 17px 0 13px;
  font-variant-numeric: tabular-nums;
}
.metric-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  color: #80909a;
  font-size: 10px;
  line-height: 1.5;
}
.metric-foot svg {
  width: 13px;
  height: 13px;
}
.blue {
  color: #2d7ba9;
  background: #edf5fc;
}
.green {
  color: #367f59;
  background: #edf7ef;
}
.coral {
  color: #b34d46;
  background: #fff0ed;
}
.amber {
  color: #8c641e;
  background: #fff7e7;
}
.neutral {
  color: #70818b;
  background: #f0f4f6;
}
.activity-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  min-height: 270px;
}
.activity-main {
  min-width: 0;
  padding: 24px 26px 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading h2 {
  font-size: 14px;
}
.section-heading .muted {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.legend {
  display: flex;
  gap: 15px;
  font-size: 9px;
  color: #81909a;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.legend-dot.blue {
  background: #64a9df;
}
.legend-dot.green {
  background: #74bda5;
}
.chart {
  display: flex;
  height: 160px;
  margin-top: 20px;
  gap: 12px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 27px;
  width: 12px;
  font-size: 9px;
  color: #8d9aa2;
}
.plot {
  display: flex;
  justify-content: space-around;
  gap: 18px;
  min-width: 0;
  flex: 1;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 44px,
    #eef2f4 45px,
    #eef2f4 46px
  );
  background-size: 100% calc(100% - 27px);
  background-repeat: no-repeat;
}
.chart-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
}
.bars {
  height: 133px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}
.bar {
  width: 20px;
  border-radius: 3px 3px 0 0;
  min-height: 1px;
  transition: height 0.35s;
}
.bar.received {
  background: #6faedb;
}
.bar.delivered {
  background: #7dc1a8;
}
.chart-group > span {
  font-size: 9px;
  color: #8997a0;
}
.channel-summary {
  border-left: 1px solid var(--line);
  padding: 22px 24px;
  position: relative;
}
.channel-symbol {
  height: 36px;
  width: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eaf7f1;
  color: #4c9a79;
  margin-bottom: 13px;
}
.channel-symbol svg {
  width: 20px;
  height: 20px;
}
.channel-summary .section-heading h2 {
  font-size: 15px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #e2eaed;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.4;
  color: #73868f;
  background: #f9fbfc;
  text-align: center;
}
.channel-summary .muted {
  font-size: 10px;
  margin-top: 4px;
}
dl {
  margin: 0;
}
.channel-summary dl {
  margin-top: 15px;
  margin-bottom: 9px;
}
.channel-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 10px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.channel-summary dt {
  color: #8a979e;
}
.channel-summary dd {
  margin: 0;
  font-weight: 500;
}
.channel-summary dd.muted {
  margin: 0;
  font-size: 10px;
}
.channel-summary .text-button {
  font-size: 10px;
}
.recent-section,
.inbox-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.recent-section > .section-heading {
  padding: 20px 24px 17px;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  table-layout: fixed;
}
th {
  background: #fafcfd;
  font-weight: 500;
  color: #8c99a1;
  font-size: 10px;
  border-top: 1px solid #f0f3f5;
  border-bottom: 1px solid var(--line);
  height: 35px;
  padding: 0 24px;
}
th:first-child {
  width: 32%;
}
th:nth-child(2) {
  width: 19%;
}
th:nth-child(3) {
  width: 19%;
}
th:nth-child(4) {
  width: 25%;
}
th:last-child {
  width: 5%;
  padding: 0 12px;
}
td {
  height: 68px;
  border-bottom: 1px solid #eef2f4;
  padding: 7px 24px;
}
tr:last-child td {
  border-bottom: 0;
}
td:last-child {
  padding: 0 12px;
}
tbody tr:hover {
  background: #fafdfc;
}
.row-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0;
}
.row-symbol {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  background: #f0f7f5;
  border: 1px solid #e5f0ec;
  color: #7bad9a;
  border-radius: 8px;
}
.row-symbol svg {
  height: 15px;
  width: 15px;
}
.row-link strong {
  font-size: 11px;
  color: #526772;
  display: block;
}
.row-link small {
  font-size: 9px;
  color: #99a5ac;
  display: block;
  margin-top: 5px;
}
.channel-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #71828c;
}
.channel-dot {
  width: 5px;
  height: 5px;
  background: #73b594;
  border-radius: 50%;
}
.time-main {
  font-size: 11px;
  color: #5f7380;
  display: block;
  font-variant-numeric: tabular-nums;
}
.table-date {
  font-size: 9px;
  color: #9ca8af;
  display: block;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.35;
  white-space: nowrap;
}
.badge svg {
  width: 12px;
  height: 12px;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 24px;
  border-top: 1px solid var(--line);
  color: #8e9ba3;
  font-size: 10px;
  min-height: 48px;
}
.table-footer .text-button {
  font-size: 10px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.pagination .icon-button {
  width: 28px;
  height: 28px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #8a9aa3;
  padding: 23px 0 6px;
}
.page-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-footer svg {
  width: 12px;
  height: 12px;
}
.refresh-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a9aa3;
  font-size: 9px;
  padding: 4px;
}
.refresh-button:hover {
  color: var(--teal);
}
.inbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}
.tabs {
  display: flex;
  gap: 5px;
  background: #f2f5f7;
  border: 1px solid #ebf0f3;
  padding: 3px;
  border-radius: 6px;
}
.tabs button {
  font-size: 10px;
  color: #8796a0;
  padding: 8px 11px;
  min-height: 30px;
  border-radius: 4px;
  white-space: nowrap;
}
.tabs button.selected {
  background: #fff;
  box-shadow: 0 1px 4px #1e455b10;
  color: #3d677b;
  font-weight: 600;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e7eb;
  border-radius: 5px;
  padding: 0 11px;
  min-height: 36px;
}
.search svg {
  height: 14px;
  width: 14px;
  color: #99a6ad;
}
.search input {
  width: 160px;
  border: 0;
  font-size: 11px;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
}
.search input::placeholder {
  color: #9aa8b0;
}
.empty {
  text-align: center;
  padding: 55px 20px;
}
.empty > svg {
  width: 34px;
  height: 34px;
  color: #a1b8be;
  margin-bottom: 16px;
}
.empty h3 {
  color: #748993;
  font-size: 13px;
  margin-bottom: 8px;
}
.channel-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 4px;
  background: var(--line);
  border: 1px solid var(--line);
}
.channel-status-grid > div {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 16px;
  background: #fbfcfd;
}
.channel-status-grid span,
.channel-status-grid small {
  color: var(--muted);
  font-size: 10px;
}
.channel-status-grid strong {
  font-size: 22px;
  font-weight: 650;
}
.channel-status-warning {
  margin-top: 20px;
}
.channel-page {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px;
}
.channel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
}
.channel-title .channel-symbol {
  margin: 0;
  width: 44px;
  height: 44px;
}
.channel-title > .pill {
  margin-left: auto;
}
.channel-title .muted {
  font-size: 11px;
  margin-top: 5px;
}
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  padding: 28px 0 32px;
}
.control-grid h3 {
  font-size: 13px;
  margin-bottom: 16px;
}
.control-list > div {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid #eef2f4;
  min-height: 48px;
}
.control-list dt {
  color: #8897a0;
}
.control-list dd {
  margin: 0;
  text-align: right;
  color: #596f7b;
  font-size: 10px;
}
.layer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.layer-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #eef2f4;
  font-size: 11px;
}
.layer-list svg {
  color: #7c989f;
  width: 17px;
  height: 17px;
}
.layer-list small {
  margin-left: auto;
  color: #95a3aa;
  font-size: 9px;
  white-space: nowrap;
}
.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0f7f8;
  border-left: 3px solid #8ec1bf;
  padding: 16px 19px;
  color: #5d7b83;
  font-size: 11px;
  line-height: 1.6;
}
.scope-note svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #6e9e9d;
}
.scope-note strong {
  font-size: 11px;
}
.scope-note p {
  font-size: 10px;
  margin-top: 4px;
  color: #7a949b;
}
.demo-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 23px;
  gap: 14px;
}
.demo-section-title h2 {
  font-size: 15px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.scenario {
  background: #fff;
  border: 1px solid #e0e8ec;
  border-radius: 8px;
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 305px;
}
.scenario-icon {
  height: 43px;
  width: 43px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.scenario-icon svg {
  width: 22px;
  height: 22px;
}
.scenario .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.scenario h3 {
  font-size: 17px;
  font-weight: 600;
}
.scenario p {
  font-size: 12px;
  line-height: 1.7;
  color: #8a9ba4;
  margin: 12px 0 26px;
}
.scenario button {
  margin-top: auto;
}
.demo-tools {
  margin: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.demo-tools > div {
  margin-right: auto;
}
.demo-tools h3 {
  font-size: 13px;
}
.demo-tools p {
  font-size: 11px;
  margin-top: 5px;
}
dialog {
  color: var(--ink);
  border: 0;
  padding: 0;
  box-shadow: 0 14px 80px #15364125;
}
dialog::backdrop {
  background: #172f4142;
  backdrop-filter: blur(2px);
}
#detail {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 465px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: #fff;
}
#detail[open] {
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px 23px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-head .eyebrow {
  font-size: 9px;
}
.drawer-head h2 {
  font-size: 25px;
  font-weight: 600;
}
.drawer-content {
  padding: 24px 28px;
  overflow: auto;
  flex: 1;
}
.detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.detail-status .muted {
  font-size: 11px;
}
.drawer-content h3 {
  font-size: 12px;
}
.journey {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 23px 0 25px;
}
.journey:before {
  content: "";
  position: absolute;
  top: 17px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: #e1ecec;
}
.journey > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33%;
}
.journey > div > span {
  display: grid;
  place-items: center;
  background: #f6f8f9;
  border: 1px solid #e7edef;
  color: #afbbc2;
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.journey .done > span {
  color: #478e7b;
  background: #eef8f3;
  border-color: #d3eadf;
}
.journey svg {
  width: 16px;
  height: 16px;
}
.journey small {
  font-size: 9px;
  color: #81979e;
  margin-top: 9px;
}
.detail-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f3;
  min-height: 38px;
  font-size: 10px;
  gap: 15px;
}
.detail-facts dt {
  color: #899ba5;
}
.detail-facts dd {
  color: #5e7581;
  margin: 0;
  text-align: right;
}
.private-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8b9fa8;
  padding: 17px 0 27px;
}
.private-note svg {
  width: 14px;
  height: 14px;
}
.timeline {
  list-style: none;
  margin: 21px 0 15px;
  padding: 0;
}
.timeline li {
  display: flex;
  gap: 15px;
  padding-bottom: 25px;
  position: relative;
}
.timeline li:before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #e5edef;
}
.timeline li:last-child:before {
  display: none;
}
.timeline-point {
  height: 9px;
  width: 9px;
  border: 2px solid #b8d5ce;
  background: #fff;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  top: 3px;
}
.timeline li.current .timeline-point {
  background: #55a18a;
  border-color: #55a18a;
}
.timeline strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  color: #637b88;
}
.timeline small {
  font-size: 9px;
  display: block;
  margin-top: 6px;
  color: #9baab2;
}
.reply-preview {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.reply-preview p,
.confirmation-copy {
  font-size: 12px;
  line-height: 1.9;
  color: #718891;
  margin-top: 12px;
}
.record-id {
  padding-top: 22px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.record-id > span {
  width: 100%;
  font-size: 9px;
  color: #91a3ac;
}
.record-id code {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #7d929f;
  flex: 1;
  min-width: 0;
}
.record-id button svg {
  width: 14px;
  height: 14px;
}
.drawer-footer {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  flex-shrink: 0;
}
.drawer-footer .muted {
  font-size: 10px;
}
.detail-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.detail-warning svg {
  width: 16px;
  height: 16px;
}
.detail-warning strong {
  font-size: 11px;
}
.detail-warning p {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 5px;
}
.run-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6a8a85;
}
.run-status > span {
  width: 7px;
  height: 7px;
  background: #55a78c;
  border-radius: 50%;
}
.pulse {
  animation: pulse 1.3s ease infinite;
}
#confirm {
  width: 430px;
  max-width: calc(100% - 32px);
  border-radius: 8px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 16px;
}
.modal-body {
  padding: 22px 24px;
  font-size: 13px;
  line-height: 1.7;
}
.modal-body .muted {
  font-size: 11px;
  margin-top: 16px;
}
.modal-body .confirmation-copy {
  margin: 0;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: #fafcfd;
  border-top: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 200;
  max-width: calc(100% - 32px);
  background: #254a50;
  color: #fff;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 5px 25px #24475420;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  background: #fff5ed;
  border: 1px solid #f1dfce;
  color: #926239;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.error-banner > span {
  flex: 1;
}
.error-banner .text-button {
  color: #926239;
  flex-shrink: 0;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 20px;
  background: white;
  text-align: center;
}
.boot img {
  width: 260px;
  height: 260px;
  object-fit: contain;
}
.boot p {
  font-size: 13px;
  color: var(--muted);
}
.boot h1 {
  font-size: 25px;
}
.loader {
  width: 24px;
  height: 24px;
  border: 2px solid #e0ecec;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  padding: 0;
  background: #fff;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: #fcfefe;
}
.login-brand img {
  width: 400px;
  max-width: 80%;
  height: auto;
}
.login-form {
  width: 360px;
  max-width: 100%;
  align-self: center;
  justify-self: center;
  padding: 40px 20px;
}
.login h1 {
  font-size: 26px;
  margin: 12px 0 32px;
}
.login label {
  display: block;
  font-size: 12px;
  color: #6c7f89;
  margin-bottom: 18px;
}
.login input {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid #d6e2e8;
  border-radius: 5px;
  padding: 10px 12px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  background: #fff;
}
#login-error {
  font-size: 12px;
  line-height: 1.6;
  color: #b35c51;
  margin-bottom: 15px;
}
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #96a7b0;
  margin-top: 25px;
}
.login-security svg {
  width: 13px;
  height: 13px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (min-width: 1600px) {
  main {
    padding-left: 50px;
    padding-right: 50px;
  }
  .activity-band {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .activity-main {
    padding-left: 30px;
    padding-right: 30px;
  }
  .chart {
    height: 180px;
  }
  .bars {
    height: 153px;
  }
  .activity-band {
    min-height: 295px;
  }
  .metric {
    padding-left: 30px;
    padding-right: 30px;
  }
  .metric > strong {
    font-size: 40px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 210px;
  }
  main {
    padding: 28px 25px 15px;
  }
  .topbar {
    padding: 0 25px;
  }
  .page-top {
    align-items: flex-start;
  }
  .page-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .page-top h1 {
    font-size: 27px;
  }
  .metrics {
    padding: 20px 0;
  }
  .metric {
    padding: 0 15px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-icon {
    width: 23px;
    height: 23px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .activity-band {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .activity-main {
    padding: 22px 20px 16px;
  }
  .channel-summary {
    padding: 22px 20px;
  }
  .legend {
    gap: 9px;
    font-size: 8px;
  }
  .plot {
    gap: 10px;
  }
  .bar {
    width: 17px;
  }
  th,
  td {
    padding-left: 18px;
    padding-right: 15px;
  }
  .inbox-toolbar {
    padding: 17px 18px;
    flex-wrap: wrap;
  }
  .scenario {
    padding: 23px 18px;
  }
  .scenario h3 {
    font-size: 16px;
  }
  .scenario p {
    font-size: 11px;
  }
  .scenario button {
    font-size: 10px;
  }
  .control-grid {
    gap: 24px;
  }
  .control-list > div {
    gap: 10px;
  }
  .layer-list {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 195px;
  }
  .sidebar {
    padding: 0 12px;
  }
  .nav-item {
    font-size: 11px;
    gap: 9px;
    padding: 10px;
  }
  .nav-item.active:before {
    left: -12px;
  }
  .workspace {
    gap: 8px;
  }
  .workspace strong {
    font-size: 11px;
  }
  .workspace span {
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(n + 3) {
    padding-top: 19px;
    border-top: 1px solid var(--line);
  }
  .metric > strong {
    font-size: 33px;
    margin: 11px 0 10px;
  }
  .activity-band {
    grid-template-columns: 1fr;
  }
  .channel-summary {
    display: none;
  }
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .scenario {
    min-height: 0;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
  }
  .scenario-icon {
    grid-row: 1/4;
    margin: 0;
  }
  .scenario .eyebrow {
    margin-bottom: 4px;
  }
  .scenario h3 {
    grid-column: 2;
  }
  .scenario p {
    grid-column: 2;
    margin: 7px 0 15px;
  }
  .scenario button {
    grid-column: 2;
    justify-self: start;
  }
  .demo-tools {
    flex-wrap: wrap;
  }
  .demo-tools > div {
    width: 100%;
  }
  .control-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .channel-title {
    flex-wrap: wrap;
  }
  .channel-title > .pill {
    margin-left: 58px;
  }
  .channel-title h2 {
    font-size: 15px;
  }
  .inbox-toolbar {
    gap: 12px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
  }
  .tabs button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .top-tools {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 10px;
  }
  .environment {
    font-size: 8px;
  }
  th:first-child {
    width: 31%;
  }
  th:nth-child(2) {
    width: 17%;
  }
  th:nth-child(3) {
    width: 18%;
  }
  th:nth-child(4) {
    width: 28%;
  }
  th:last-child {
    width: 6%;
  }
  td,
  th {
    padding-left: 12px;
    padding-right: 8px;
  }
  .row-link {
    gap: 8px;
  }
  .row-symbol {
    width: 25px;
    height: 25px;
  }
  .table-date {
    font-size: 8px;
  }
  .badge {
    font-size: 8px;
    padding: 5px 6px;
  }
  .table-footer {
    padding: 11px 16px;
  }
  .page-actions .primary {
    font-size: 10px;
  }
  .period select {
    font-size: 10px;
  }
  .period {
    min-height: 36px;
  }
  .page-top h1 {
    font-size: 24px;
  }
  .page-top .eyebrow {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .activity-main .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 236px;
    box-shadow: 10px 0 35px #204b5c15;
  }
  .shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
    margin-left: -8px;
  }
  .topbar {
    height: 61px;
    padding: 0 20px;
    gap: 12px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .breadcrumb > span,
  .breadcrumb > strong {
    display: none;
  }
  .top-tools {
    gap: 6px;
  }
  .top-tools .icon-button {
    padding-left: 8px;
    width: 31px;
  }
  .environment {
    font-size: 8px;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #15374644;
    z-index: 25;
  }
  .menu-open {
    overflow: hidden;
  }
  .nav-item {
    font-size: 12px;
  }
  .workspace strong {
    font-size: 12px;
  }
  .workspace span {
    font-size: 11px;
  }
  main {
    padding: 25px 19px 12px;
  }
  .page-top {
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-top h1 {
    font-size: 25px;
  }
  .page-top .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .page-subtitle {
    font-size: 10px;
    margin-top: 8px;
  }
  .page-subtitle .dot-divider {
    margin: 0 5px;
  }
  .page-actions {
    gap: 7px;
  }
  .page-actions .primary {
    font-size: 9px;
    padding: 9px 10px;
    gap: 5px;
    min-height: 34px;
  }
  .page-actions .primary svg {
    width: 13px;
    height: 13px;
  }
  .period {
    min-height: 33px;
    padding: 0 7px;
    gap: 4px;
  }
  .period svg {
    width: 12px;
    height: 12px;
  }
  .period select {
    font-size: 9px;
    max-width: 98px;
    padding: 8px 0;
  }
  .metrics {
    margin-bottom: 21px;
    padding: 18px 0;
    row-gap: 17px;
  }
  .metric {
    padding: 0 15px;
  }
  .metric:nth-child(n + 3) {
    padding-top: 17px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric > strong {
    font-size: 32px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .metric-icon {
    height: 25px;
    width: 25px;
  }
  .activity-band {
    margin-bottom: 21px;
  }
  .activity-main {
    padding: 21px 18px 16px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .legend {
    font-size: 8px;
    gap: 10px;
  }
  .recent-section > .section-heading {
    padding: 18px 16px;
  }
  .recent-section > .section-heading .text-button {
    font-size: 9px;
  }
  .page-footer {
    font-size: 8px;
    padding-top: 20px;
    gap: 5px;
  }
  .refresh-button {
    font-size: 8px;
  }
  .page-footer svg {
    width: 11px;
    height: 11px;
  }
  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }
  th:first-child {
    width: 36%;
  }
  th:nth-child(3) {
    width: 22%;
  }
  th:nth-child(4) {
    width: 34%;
  }
  th:last-child {
    width: 8%;
  }
  th,
  td {
    padding-left: 13px;
    padding-right: 6px;
  }
  th {
    font-size: 9px;
  }
  td {
    height: 65px;
  }
  td:last-child {
    padding-right: 5px;
    padding-left: 0;
  }
  td:last-child .icon-button {
    width: 25px;
    height: 28px;
  }
  td:last-child svg {
    width: 15px;
    height: 15px;
  }
  .row-symbol {
    display: none;
  }
  .row-link strong {
    font-size: 10px;
  }
  .row-link small {
    font-size: 8px;
  }
  .table-date {
    font-size: 8px;
  }
  .time-main {
    font-size: 10px;
  }
  .badge {
    font-size: 8px;
    padding: 5px;
    gap: 4px;
  }
  .badge svg {
    width: 10px;
    height: 10px;
  }
  .table-footer {
    font-size: 9px;
    padding: 10px 14px;
  }
  .table-footer .text-button {
    font-size: 9px;
  }
  .inbox-toolbar {
    padding: 15px;
  }
  .search input {
    font-size: 12px;
  }
  .tabs button {
    font-size: 10px;
  }
  .channel-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 4px;
  background: var(--line);
  border: 1px solid var(--line);
}
.channel-status-grid > div {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 16px;
  background: #fbfcfd;
}
.channel-status-grid span,
.channel-status-grid small {
  color: var(--muted);
  font-size: 10px;
}
.channel-status-grid strong {
  font-size: 22px;
  font-weight: 650;
}
.channel-status-warning {
  margin-top: 20px;
}
.channel-page {
    padding: 23px 20px;
  }
  .channel-title > .pill {
    margin-left: 0;
  }
  .control-grid {
    padding-bottom: 24px;
  }
  .scope-note {
    padding: 14px;
    font-size: 10px;
  }
  .scope-note strong {
    font-size: 10px;
  }
  .scope-note p {
    font-size: 10px;
  }
  .demo-section-title {
    align-items: flex-start;
  }
  .demo-section-title h2 {
    font-size: 14px;
  }
  .demo-section-title .pill {
    font-size: 8px;
    max-width: 140px;
  }
  .scenario-grid {
    gap: 12px;
  }
  .scenario h3 {
    font-size: 16px;
  }
  .scenario button {
    font-size: 11px;
  }
  .demo-tools {
    margin: 24px 0;
  }
  .demo-tools .secondary {
    font-size: 10px;
  }
  .drawer-head {
    padding: 23px 22px 20px;
  }
  .drawer-content {
    padding: 22px;
  }
  .drawer-footer {
    padding: 17px 22px;
  }
  .drawer-head h2 {
    font-size: 24px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-brand {
    border: 0;
    padding-top: 15px;
  }
  .login-brand img {
    width: 215px;
  }
  .login-form {
    padding: 0 25px 45px;
    width: 370px;
  }
  .login h1 {
    font-size: 25px;
    margin-bottom: 24px;
  }
  .login .eyebrow {
    font-size: 9px;
  }
  .boot img {
    width: 230px;
    height: 230px;
  }
  .boot h1 {
    font-size: 21px;
  }
  .error-banner {
    padding: 12px;
    gap: 8px;
    font-size: 11px;
  }
  .error-banner svg {
    width: 16px;
  }
  .error-banner .text-button {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .page-top {
    flex-wrap: wrap;
  }
  .page-actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .page-top h1 {
    font-size: 25px;
  }
  .metric {
    padding-left: 12px;
    padding-right: 12px;
  }
  .environment {
    font-size: 7px;
  }
  .topbar {
    padding-left: 17px;
    padding-right: 14px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-foot {
    font-size: 8px;
  }
  .legend {
    gap: 7px;
  }
  .badge {
    font-size: 7px;
  }
  .scope-note {
    padding: 12px;
  }
  .control-list > div {
    font-size: 10px;
  }
  .control-list dd {
    font-size: 9px;
  }
}
.trace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: white;
  border-block: 1px solid var(--line);
  margin-bottom: 28px;
  padding: 24px 0;
}
.trace-summary > div {
  padding: 0 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trace-summary > div:last-child {
  border: 0;
}
.trace-summary span {
  font-size: 12px;
  color: #536872;
  min-height: 32px;
}
.trace-summary strong {
  font-size: 28px;
  font-weight: 600;
}
.trace-summary small {
  font-size: 11px;
  color: #607780;
  font-weight: 400;
}
.trace-feed {
  background: white;
  border-block: 1px solid var(--line);
}
.trace-feed > .section-heading {
  padding: 22px 24px 0;
}
.trace-table th:nth-child(1) {
  width: 21%;
}
.trace-table th:nth-child(2) {
  width: 39%;
}
.trace-table th:nth-child(3) {
  width: 24%;
}
.trace-table th:nth-child(4) {
  width: 16%;
  padding: 0 16px;
}
.trace-table td:last-child {
  padding: 10px 16px;
}
.trace-table td {
  overflow-wrap: anywhere;
}
.trace-table .event-label {
  font-size: 12px;
  font-weight: 500;
}
.trace-table .event-alert {
  color: #a3423d;
}
.trace-id {
  display: block;
  font-size: 10px;
  color: #607780;
  margin-top: 4px;
}
.trace-coverage {
  margin-top: 30px;
}
.trace-coverage h2 {
  font-size: 16px;
  margin-bottom: 14px;
}
.trace-coverage .control-list > div {
  font-size: 12px;
}
.trace-coverage .control-list dd {
  font-size: 12px;
}
.page-top > div:first-child {
  min-width: 0;
}
.page-top h1 {
  overflow-wrap: break-word;
}
.page-actions {
  flex-shrink: 0;
}
/* Secondary labels remain legible on a projected commercial presentation. */
.muted,
.table-date,
.row-link small,
.metric-foot,
.table-footer,
.page-footer,
.refresh-button,
.scope-note p,
.scenario p,
.control-list dt,
.control-list dd,
.layer-list small {
  color: #5f737e;
}
.table-date,
.row-link small {
  font-size: 11px;
}
th {
  color: #5f737e;
  font-size: 11px;
}
.badge {
  font-size: 11px;
}
.row-link strong,
.time-main,
.channel-name {
  font-size: 12px;
}
.tabs button {
  color: #5b6e79;
  font-size: 12px;
}
.trace-table .table-date {
  font-size: 11px;
}
@media (max-width: 1100px) {
  .trace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }
  .trace-summary > div:nth-child(2) {
    border: 0;
  }
  .trace-table th,
  .trace-table td {
    padding-left: 12px;
    padding-right: 10px;
  }
  .page-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .trace-summary > div {
    padding: 0 14px;
  }
  .trace-summary span {
    font-size: 11px;
  }
  .trace-summary strong {
    font-size: 25px;
  }
  .trace-summary small {
    font-size: 10px;
  }
  .trace-table th:nth-child(2),
  .trace-table td:nth-child(2) {
    display: table-cell;
  }
  .trace-table th:nth-child(1) {
    width: 25%;
  }
  .trace-table th:nth-child(2) {
    width: 45%;
  }
  .trace-table th:nth-child(3) {
    width: 30%;
  }
  .trace-table th:nth-child(4),
  .trace-table td:nth-child(4) {
    display: none;
  }
  .trace-feed > .section-heading {
    padding: 20px 15px 0;
  }
  .trace-table .event-label {
    font-size: 11px;
  }
  .trace-table .table-date {
    font-size: 10px;
  }
  .trace-coverage .control-list > div {
    align-items: flex-start;
    padding: 14px 0;
  }
  .trace-coverage dt,
  .trace-coverage dd {
    width: 50%;
    overflow-wrap: anywhere;
  }
  .page-top {
    flex-wrap: wrap;
  }
  .page-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .badge {
    font-size: 10px;
  }
  .row-link strong,
  .time-main {
    font-size: 11px;
  }
  .table-date,
  .row-link small {
    font-size: 10px;
  }
  .trace-table .text-button {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.pipeline-panel { padding: 24px 0; border-block: 1px solid var(--line); }
.pipeline-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pipeline-stage { display: flex; gap: 10px; align-items: center; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.pipeline-stage strong, .pipeline-stage small { display: block; overflow-wrap: anywhere; }
.pipeline-stage strong { font-size: 13px; }
.pipeline-stage small { color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) { .pipeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

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

@media (max-width: 700px) {
  .branch-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .branch-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.latency-panel { margin: 24px 0; padding: 20px; border: 1px solid var(--line, #dce4e7); background: #fff; }
.latency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.latency-card { display: grid; gap: 5px; padding: 14px; background: #f5f8f8; border-left: 3px solid #1d7781; }
.latency-card strong { font-size: 1.45rem; color: #163e46; }
.latency-card small { color: #587078; }

.professional-overview .section-heading { flex-wrap: wrap; gap: 16px; }
.professional-overview a { color: var(--teal); }
.professional-overview a.primary { color: white; padding: 14px 18px; text-decoration: none; border-radius: 7px; }
.professional-counts { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.professional-counts strong { font-size: 24px; display: block; }
.professional-case { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.professional-case header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.professional-case h3 { margin: 0; }
.professional-case dl { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 12px; margin: 24px 0; line-height: 1.6; }
.professional-case dd { margin: 0; overflow-wrap: anywhere; }
.professional-case p { margin: 16px 0; }
@media(max-width: 600px) { .professional-case { padding: 16px; } .professional-case dl { grid-template-columns: 1fr; gap: 6px; } .professional-case dd { margin-bottom: 12px; } }
