:root {
  color: #172033;
  background: #f4f7fb;
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-synthesis: none;
  --navy: #14233b;
  --blue: #2864dc;
  --blue-dark: #1f52bb;
  --blue-pale: #eaf1ff;
  --green: #159a6c;
  --green-pale: #e6f7f0;
  --line: #e1e7ef;
  --muted: #6d788b;
  --soft: #f8fafc;
  --shadow: 0 10px 30px rgba(24, 39, 68, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f7fb;
  color: #172033;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon svg,
.mini-check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--blue);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(40, 100, 220, 0.25);
}

.brand-mark .icon {
  width: 21px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.environment {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #536176;
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-pale);
}

.layout {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 25px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-label {
  padding: 0 13px;
  margin: 0 0 9px;
  color: #9aa4b2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.nav-label-spaced {
  margin-top: 31px;
}

.nav-item {
  width: 100%;
  height: 43px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: #657186;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  background: #f5f8fc;
  color: var(--navy);
}

.nav-item.active {
  color: var(--blue);
  background: var(--blue-pale);
  font-weight: 700;
}

.nav-item .icon {
  width: 18px;
}

.nav-item em {
  margin-left: auto;
  min-width: 23px;
  height: 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #7f8a9b;
  font-size: 10px;
  font-style: normal;
}

.nav-item.active em {
  background: #d9e6ff;
  color: var(--blue);
}

.sidebar-note {
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #f8fafd;
  padding: 13px 12px;
  display: flex;
  gap: 9px;
}

.sidebar-note .note-icon {
  color: var(--blue);
}

.sidebar-note .note-icon .icon {
  width: 16px;
}

.sidebar-note strong {
  font-size: 11px;
  color: #40506a;
}

.sidebar-note p {
  color: #7d8798;
  font-size: 10px;
  line-height: 1.55;
  margin: 5px 0 0;
}

.content {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 43px 44px 28px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin-bottom: 9px;
  color: var(--navy);
}

.hero p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.button .icon {
  width: 17px;
  height: 17px;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  min-height: 46px;
  box-shadow: 0 7px 17px rgba(40, 100, 220, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: var(--blue-pale);
  color: var(--blue);
}

.button-ghost {
  background: #fff;
  color: #4e5c70;
  border: 1px solid var(--line);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.status-strip {
  min-height: 78px;
  border: 1px solid #dbe4f0;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.status-strip.passed {
  border-left-color: var(--green);
}

.status-strip.running {
  border-left-color: #e69c2a;
}

.status-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.passed .status-icon {
  color: var(--green);
  background: var(--green-pale);
}

.running .status-icon {
  color: #c77d12;
  background: #fff4db;
}

.status-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-copy strong {
  color: var(--navy);
  font-size: 13px;
}

.status-copy span {
  color: var(--muted);
  font-size: 11px;
}

.status-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.status-meta strong {
  font-size: 12px;
  color: #40506a;
}

.status-meta span {
  color: #8a95a6;
  font-size: 10px;
}

.progress-card {
  padding: 17px 20px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}

.progress-head strong {
  color: var(--blue);
}

.progress-track {
  height: 7px;
  border-radius: 99px;
  background: #e8edf4;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 120ms ease;
}

.progress-runs {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 10px;
  color: #9aa4b3;
}

.progress-runs span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.progress-runs .active {
  color: var(--blue);
  font-weight: 700;
}

.progress-runs .done {
  color: var(--green);
}

.progress-runs .icon {
  width: 12px;
  height: 12px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button {
  border: 0;
  background: transparent;
  color: #8490a2;
  font-size: 12px;
  font-weight: 600;
  padding: 0 2px 13px;
  white-space: nowrap;
  position: relative;
}

.tabs button.active {
  color: var(--blue);
}

.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  padding-top: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 138px;
  padding: 18px;
}

.metric-top {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #7b8799;
  font-size: 11px;
  font-weight: 600;
}

.metric-icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff3f8;
  color: #65758a;
}

.metric-icon .icon {
  width: 15px;
}

.metric-card.success .metric-icon {
  color: var(--green);
  background: var(--green-pale);
}

.metric-value {
  margin-top: 14px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-value small {
  margin-left: 4px;
  color: #66748a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-card p {
  margin: 9px 0 0;
  color: #929cab;
  font-size: 9px;
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-kicker {
  color: #9aa4b2;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.panel h2 {
  color: var(--navy);
  font-size: 14px;
  margin: 5px 0 0;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  border-radius: 99px;
  padding: 0 9px;
  background: #eff2f6;
  color: #7a8596;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.badge-green {
  background: var(--green-pale);
  color: var(--green);
}

.scenario-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 5px 21px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 118px;
}

.flow-step > span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-pale);
  color: var(--blue);
}

.flow-step > span .icon {
  width: 17px;
}

.flow-step div {
  display: flex;
  flex-direction: column;
}

.flow-step small {
  color: #8a95a6;
  font-size: 8px;
}

.flow-step strong {
  color: var(--navy);
  font-size: 14px;
  margin-top: 2px;
}

.flow-step em {
  color: #a0a9b7;
  font-size: 8px;
  font-style: normal;
  margin-top: 2px;
}

.flow-line {
  height: 1px;
  flex: 1;
  min-width: 18px;
  margin: 0 8px;
  background: #dfe6ef;
  position: relative;
}

.flow-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 4px;
  height: 4px;
  border-top: 1px solid #bfc9d6;
  border-right: 1px solid #bfc9d6;
  transform: rotate(45deg);
}

.scenario-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.scenario-details div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 13px;
  border-right: 1px solid var(--line);
}

.scenario-details div:first-child {
  padding-left: 0;
}

.scenario-details div:last-child {
  border: 0;
}

.scenario-details span {
  color: #99a2b0;
  font-size: 8px;
}

.scenario-details strong {
  color: #4c5a6e;
  font-size: 9px;
  font-weight: 600;
}

.integrity-rows {
  display: grid;
  gap: 0;
}

.integrity-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid #edf0f4;
  font-size: 10px;
}

.integrity-rows > div:last-child {
  border: 0;
}

.integrity-rows span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f7b8d;
}

.integrity-rows strong {
  color: var(--green);
  font-size: 11px;
}

.mini-check,
.mini-empty {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
}

.mini-check {
  color: #fff;
  background: var(--green);
  padding: 3px;
}

.mini-empty {
  border: 1px solid #d9e0e8;
}

.run-summary {
  margin-top: 14px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
}

.text-button .icon {
  width: 13px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 630px;
  text-align: left;
}

th {
  height: 31px;
  padding: 0 11px;
  color: #969fac;
  background: #f7f9fc;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #e7ebf1;
  font-size: 8px;
  font-weight: 600;
}

td {
  height: 43px;
  border-bottom: 1px solid #edf0f4;
  padding: 0 11px;
  color: #687487;
  font-size: 9px;
  white-space: nowrap;
}

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

td strong {
  color: #3e4b5f;
}

.result-pass {
  color: var(--green);
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
}

.result-pass .icon {
  width: 11px;
  height: 11px;
}

.zero {
  color: var(--green);
}

.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #98a3b3;
}

.empty-state > span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f0f4f8;
  color: #8b97a8;
  margin-bottom: 12px;
}

.empty-state strong {
  color: #566378;
  font-size: 12px;
}

.empty-state p {
  font-size: 10px;
  margin: 6px 0 14px;
}

.empty-state.compact {
  min-height: 280px;
}

.scope-banner,
.evidence-note {
  margin-top: 14px;
  border: 1px solid #dce6f5;
  background: #f5f8fd;
  color: #657389;
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 9px;
  line-height: 1.6;
}

.scope-banner .icon,
.evidence-note .icon {
  color: var(--blue);
  width: 15px;
  height: 15px;
}

.scope-banner p,
.evidence-note {
  margin-bottom: 0;
}

.scope-banner strong {
  color: #40506a;
}

.section-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 17px;
}

.section-intro h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--navy);
}

.section-intro p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}

.run-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.run-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.run-card-title > span {
  width: 29px;
  height: 29px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf1f6;
  color: #8b96a6;
  font-size: 10px;
  font-weight: 700;
}

.run-card.complete .run-card-title > span {
  background: var(--green-pale);
  color: var(--green);
}

.run-card-title .icon {
  width: 14px;
}

.run-card-title div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.run-card-title strong {
  font-size: 11px;
}

.run-card-title small {
  color: #99a3b2;
  font-size: 8px;
}

.run-card-title em {
  margin-left: auto;
  color: #9aa4b2;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.run-card.complete .run-card-title em {
  color: var(--green);
}

.run-card dl {
  margin: 13px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
}

.run-card dl div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-card dt {
  color: #98a2b1;
  font-size: 8px;
}

.run-card dd {
  margin: 0;
  color: #47556a;
  font-size: 10px;
  font-weight: 600;
}

.trace-panel {
  padding: 0;
  overflow: hidden;
}

.trace-tools {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.run-switcher {
  display: flex;
  padding: 3px;
  border-radius: 7px;
  background: #f0f3f7;
}

.run-switcher button {
  border: 0;
  min-height: 29px;
  border-radius: 5px;
  background: transparent;
  color: #7d8898;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 600;
}

.run-switcher button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 7px rgba(38, 53, 77, 0.09);
}

.search {
  width: 230px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

.search svg {
  width: 14px;
  fill: none;
  stroke: #8f9aaa;
  stroke-width: 1.8;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #4d5b70;
  font-size: 9px;
}

.trace-count {
  padding: 10px 18px;
  color: #8a95a4;
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}

.trace-table {
  max-height: 510px;
}

.trace-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.trace-table code {
  color: #355b9d;
  font: 500 9px "DM Mono", monospace;
}

.http-status {
  background: var(--green-pale);
  color: var(--green);
  border-radius: 4px;
  padding: 3px 6px;
  font-weight: 700;
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.env-card {
  display: flex;
  align-items: center;
  gap: 13px;
}

.env-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--blue-pale);
  font: 700 12px "DM Mono", monospace;
}

.env-icon .icon {
  width: 20px;
}

.env-card small {
  color: #9aa4b3;
  font-size: 8px;
}

.env-card h3 {
  color: var(--navy);
  font-size: 13px;
  margin: 2px 0;
}

.env-card p {
  color: #707c8e;
  font-size: 8px;
  margin: 0;
}

.env-state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
}

.env-state .icon {
  width: 12px;
}

.command-panel {
  margin-top: 14px;
}

pre {
  margin: 0;
  padding: 17px;
  border-radius: 8px;
  background: #132038;
  color: #dbe8ff;
  font: 400 10px/1.8 "DM Mono", monospace;
  overflow-x: auto;
  white-space: pre-wrap;
}

.method-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
}

.transaction-step {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  position: relative;
}

.transaction-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: -15px;
  left: 13px;
  border-left: 1px dashed #cfd8e4;
}

.transaction-step > span {
  width: 27px;
  height: 27px;
  z-index: 1;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.transaction-step strong {
  color: #40506a;
  font: 500 9px "DM Mono", monospace;
}

.transaction-step p {
  color: #919baa;
  font-size: 8px;
  margin: 3px 0 0;
}

.constraint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.constraint-list span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-pale);
  color: #267d5f;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
}

.constraint-list .icon {
  width: 11px;
}

.verification-chain {
  margin-top: 14px;
}

.chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chain span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #637085;
  font-size: 8px;
  position: relative;
}

.chain b {
  width: 27px;
  height: 27px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-pale);
  z-index: 1;
}

.chain b .icon {
  width: 13px;
}

.chain-line {
  position: absolute;
  top: 13px;
  right: 50%;
  width: calc(100% + 12px);
  border-top: 1px solid #dbe3ec;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 43px;
  padding: 0 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #17243a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 20, 36, 0.25);
  font-size: 10px;
}

.toast .icon {
  width: 14px;
  color: #5de0ad;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9ca5b2;
  font-size: 8px;
  padding: 28px 2px 0;
}

.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;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 68px;
    z-index: 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px;
    display: block;
    overflow-x: auto;
  }

  .sidebar nav {
    display: flex;
    min-width: max-content;
  }

  .nav-label,
  .sidebar-note {
    display: none;
  }

  .nav-item {
    width: auto;
    padding: 0 14px;
  }

  .content {
    padding: 34px 28px 24px;
  }

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

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

  .run-cards {
    grid-template-columns: 1fr;
  }

  .environment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }

  .environment {
    display: none;
  }

  .layout {
    min-height: calc(100vh - 60px);
  }

  .sidebar {
    top: 60px;
    padding: 7px 12px;
  }

  .nav-item {
    height: 39px;
    font-size: 11px;
  }

  .content {
    padding: 26px 16px 22px;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .button-primary {
    width: 100%;
  }

  .status-strip {
    flex-wrap: wrap;
  }

  .status-meta {
    width: 100%;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    align-items: flex-start;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    min-height: 128px;
    padding: 14px;
  }

  .content-grid {
    gap: 9px;
    margin-top: 9px;
  }

  .panel {
    padding: 16px;
  }

  .scenario-flow {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .flow-line {
    width: 1px;
    min-height: 14px;
    margin: 0 0 0 16px;
  }

  .scenario-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scenario-details div,
  .scenario-details div:first-child {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trace-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .chain {
    align-items: stretch;
    flex-direction: column;
  }

  .chain span {
    flex-direction: row;
    width: 100%;
  }

  .chain-line {
    display: none;
  }

  footer {
    flex-direction: column;
  }
}
