:root {
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: #182031;
  background: #f4f6fa;
  font-synthesis: none;
  --navy: #101a2d;
  --indigo: #3158e8;
  --indigo-dark: #2446c9;
  --line: #e5e9f1;
  --muted: #717b8f;
  --green: #16a276;
  --red: #d85c62;
  --orange: #e68937;
  --shadow: 0 12px 34px rgba(24, 32, 49, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: #f4f6fa;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 93% 1%, rgba(49, 88, 232, 0.05), transparent 20rem),
    #f4f6fa;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(49, 88, 232, 0.22);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 22px;
  color: #dce3ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    var(--navy);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 30px;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: white;
  background: var(--indigo);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(49, 88, 232, 0.35);
}

.brand-mark svg {
  width: 22px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: white;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand span {
  margin-top: 3px;
  color: #8390a5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  color: #8e9cb1;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: white;
  background: rgba(76, 106, 230, 0.2);
  box-shadow: inset 3px 0 #6e8bff;
}

.nav-item svg {
  width: 19px;
}

.sidebar-foot {
  margin-top: auto;
}

.runtime-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 11px;
}

.runtime-dot {
  width: 8px;
  height: 8px;
  background: #43d9a8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(67, 217, 168, 0.1);
}

.runtime-card strong,
.runtime-card small {
  display: block;
}

.runtime-card strong {
  color: #dce3ef;
  font-size: 11px;
}

.runtime-card small {
  margin-top: 2px;
  color: #7d8aa0;
  font-size: 9px;
}

.version {
  display: block;
  padding: 15px 12px 0;
  color: #5f6d82;
  font: 500 9px "SFMono-Regular", Consolas, monospace;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 14px clamp(24px, 4vw, 58px);
  background: rgba(250, 251, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.page-heading {
  min-width: 0;
}

.page-heading h1 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--indigo);
  font: 600 9px "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.16em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.connection-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #586175;
  font-size: 10px;
  font-weight: 700;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #a6afbd;
  border-radius: 50%;
}

.pulse-dot.live {
  background: var(--green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(22, 162, 118, 0.12);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  color: #283249;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 32, 49, 0.08);
}

.button.primary {
  color: white;
  background: var(--indigo);
  border-color: var(--indigo);
  box-shadow: 0 5px 14px rgba(49, 88, 232, 0.22);
}

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

.button.secondary {
  color: #445069;
  background: white;
}

.button.subtle {
  color: var(--indigo);
  background: #f2f5ff;
  border-color: #e5eaff;
}

.button.ghost {
  color: #6b7487;
  background: transparent;
}

.button svg {
  width: 15px;
  height: 15px;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 36px clamp(24px, 4vw, 58px) 64px;
}

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

.hero-row.compact {
  align-items: center;
  margin-bottom: 30px;
}

.hero-row h2 {
  max-width: 720px;
  margin: 7px 0 8px;
  color: #172036;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.32;
  letter-spacing: -0.055em;
}

.hero-row > div > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #677287;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
}

.hero-meta svg {
  width: 16px;
  color: var(--indigo);
}

.hero-meta strong {
  color: #222c42;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 35px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 125px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.metric-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
}

.metric-icon.indigo {
  color: #3158e8;
  background: #eef2ff;
}

.metric-icon.green {
  color: #15956d;
  background: #eaf9f3;
}

.metric-icon.violet {
  color: #7857c9;
  background: #f2edff;
}

.metric-card span,
.metric-card strong,
.metric-card p {
  display: block;
}

.metric-card span {
  margin-bottom: 3px;
  color: #778195;
  font-size: 10px;
  font-weight: 650;
}

.metric-card strong {
  color: #172036;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.metric-card strong small {
  margin-left: 3px;
  color: #687287;
  font-size: 10px;
  font-weight: 650;
}

.metric-card p {
  margin: 4px 0 0;
  color: #929aab;
  font-size: 9px;
}

.metric-card p.positive {
  color: var(--green);
}

.metric-card p.negative {
  color: var(--red);
}

.section-heading,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading {
  margin-bottom: 13px;
}

.section-heading h3,
.panel-head h3,
.subsection-head h4 {
  margin: 0;
  color: #202a40;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.section-heading p,
.panel-head p,
.subsection-head p {
  margin: 4px 0 0;
  color: #929aab;
  font-size: 9px;
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.exchange-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  transition: border-color 160ms;
}

.exchange-card.degraded {
  border-color: #f0c7c9;
}

.exchange-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exchange-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.exchange-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--exchange-color);
  border-radius: 10px;
  font: 700 11px "SFMono-Regular", Consolas, monospace;
}

.exchange-identity h3 {
  margin: 0;
  font-size: 13px;
}

.exchange-identity span {
  display: block;
  margin-top: 2px;
  color: #9099a9;
  font-size: 9px;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #828b9d;
  background: #f6f7f9;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}

.status-chip i {
  width: 6px;
  height: 6px;
  background: #a8b0bd;
  border-radius: 50%;
}

.status-chip.healthy {
  color: #0d8c64;
  background: #eaf8f3;
}

.status-chip.healthy i {
  background: var(--green);
}

.status-chip.degraded {
  color: #bf555b;
  background: #fff0f1;
}

.status-chip.degraded i {
  background: var(--red);
}

.status-chip.connecting {
  color: #9d6b26;
  background: #fff6e8;
}

.status-chip.connecting i {
  background: var(--orange);
}

.exchange-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.exchange-stats div + div {
  padding-left: 15px;
  border-left: 1px solid #edf0f5;
}

.exchange-stats span,
.exchange-stats strong {
  display: block;
}

.exchange-stats span {
  color: #98a0af;
  font-size: 8px;
}

.exchange-stats strong {
  margin-top: 4px;
  color: #303a4f;
  font-size: 10px;
}

.failure-count {
  color: var(--red) !important;
}

.feed-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  overflow: hidden;
  background: #f7f8fa;
  border-radius: 7px;
}

.feed-address span {
  color: #8993a4;
  font: 500 8px "SFMono-Regular", Consolas, monospace;
}

.feed-address code {
  overflow: hidden;
  color: #697386;
  font: 400 9px "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.exchange-actions .button {
  flex: 1;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.activity-panel,
.settings-panel,
.delivery-panel,
.checklist-panel,
.proof-panel,
.scenario-panel,
.code-panel,
.decision-panel {
  padding: 20px;
}

.segmented {
  display: flex;
  padding: 3px;
  background: #f3f5f8;
  border-radius: 7px;
}

.segmented button {
  padding: 5px 10px;
  color: #8992a3;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.segmented button.active {
  color: #263047;
  background: white;
  box-shadow: 0 2px 6px rgba(22, 31, 50, 0.08);
}

.event-list {
  margin-top: 14px;
}

.event-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 10px 0;
  border-top: 1px solid #eef1f5;
}

.event-symbol {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #6a7487;
  background: #f1f3f7;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.event-symbol svg {
  width: 15px;
}

.event-symbol.notice {
  color: #3158e8;
  background: #edf1ff;
}

.event-symbol.error {
  color: #c84e56;
  background: #ffeff0;
}

.event-symbol.publish {
  color: #0e966c;
  background: #e9f8f2;
}

.event-body {
  min-width: 0;
}

.event-body > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.event-body strong {
  overflow: hidden;
  color: #2a3449;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-body p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #8a93a4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row time {
  color: #9ca4b2;
  font: 400 8px "SFMono-Regular", Consolas, monospace;
}

.mini-exchange {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: var(--exchange-color);
  background: color-mix(in srgb, var(--exchange-color) 8%, white);
  border-radius: 3px;
  font-size: 7px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  color: #c0c6d1;
  text-align: center;
}

.empty-state svg {
  width: 25px;
  height: 25px;
}

.empty-state h4 {
  margin: 10px 0 4px;
  color: #6f788a;
  font-size: 11px;
}

.empty-state p {
  margin: 0;
  font-size: 9px;
}

.settings-panel {
  padding: 25px;
}

.recommendation,
.file-count {
  padding: 5px 8px;
  color: var(--indigo);
  background: #eef2ff;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #3b455b;
  font-size: 10px;
  font-weight: 700;
}

.field span em {
  color: #9da5b3;
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  color: #2b354a;
  background: #fbfcfd;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  font-size: 11px;
  transition: border-color 150ms;
}

.field input:focus {
  background: white;
  border-color: var(--indigo);
}

.field small {
  display: block;
  margin-top: 6px;
  color: #9ba3b2;
  font-size: 8px;
}

.divider {
  height: 1px;
  margin: 28px 0 23px;
  background: #edf0f4;
}

.subsection-head h4 {
  font-size: 12px;
}

.form-grid.full {
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 18px;
}

.exchange-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.exchange-dot.upbit {
  color: #2759e8;
}

.exchange-dot.bithumb {
  color: #f36b22;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}

.info-banner {
  display: flex;
  gap: 13px;
  margin-top: 15px;
  padding: 16px 18px;
  color: #6f5d3b;
  background: #fffaf0;
  border: 1px solid #f0e4c7;
  border-radius: 10px;
}

.info-banner > span {
  color: #c18a32;
}

.info-banner strong {
  display: block;
  font-size: 10px;
}

.info-banner p {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

.validation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.8fr);
  gap: 15px;
  margin-bottom: 15px;
}

.validation-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid #edf0f4;
}

.validation-item:first-of-type {
  margin-top: 13px;
}

.check-symbol {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #aab2bf;
  background: #f4f6f8;
  border-radius: 50%;
}

.validation-item.passed .check-symbol {
  color: white;
  background: var(--green);
}

.check-symbol svg {
  width: 14px;
}

.check-symbol span {
  width: 7px;
  height: 7px;
  background: #b8bfca;
  border-radius: 50%;
}

.req-id {
  color: var(--indigo);
  font: 600 7px "SFMono-Regular", Consolas, monospace;
}

.validation-item h4 {
  margin: 2px 0;
  font-size: 10px;
}

.validation-item p {
  margin: 0;
  color: #9099a8;
  font-size: 8px;
}

.validation-label {
  padding: 4px 7px;
  color: #929aa8;
  background: #f3f5f7;
  border-radius: 4px;
  font-size: 8px;
}

.validation-item.passed .validation-label {
  color: #0a8d64;
  background: #eaf8f3;
}

.proof-list {
  margin: 15px 0;
}

.proof-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}

.proof-list dt {
  color: #858fa1;
  font-size: 9px;
}

.proof-list dd {
  margin: 0;
  color: #283248;
  font: 600 11px "SFMono-Regular", Consolas, monospace;
}

.full-button {
  width: 100%;
}

.scenario-panel {
  margin-top: 15px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.timeline li:not(:last-child)::after {
  position: absolute;
  top: 12px;
  right: 10px;
  left: 28px;
  height: 1px;
  background: #dfe4ec;
  content: "";
}

.timeline li > span {
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--indigo);
  background: #eef2ff;
  border-radius: 50%;
  font: 600 7px "SFMono-Regular", Consolas, monospace;
}

.timeline div {
  z-index: 1;
  min-width: 0;
  padding-right: 14px;
  background: white;
}

.timeline strong {
  display: block;
  font-size: 9px;
}

.timeline p {
  margin: 3px 0 0;
  color: #959dad;
  font-size: 7px;
  line-height: 1.5;
}

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

.delivery-panel .panel-head {
  padding: 19px 21px;
  border-bottom: 1px solid #e9edf3;
}

.file-count {
  color: #727d91;
  background: #f3f5f8;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.file-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 21px;
  border-bottom: 1px solid #eef1f5;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--indigo);
  background: #eef2ff;
  border-radius: 8px;
  font: 700 7px "SFMono-Regular", Consolas, monospace;
}

.file-info {
  min-width: 0;
}

.file-info strong {
  color: #2a3448;
  font: 600 10px "SFMono-Regular", Consolas, monospace;
}

.file-info p {
  margin: 3px 0 0;
  color: #959dac;
  font-size: 8px;
}

.file-kind {
  color: #959eae;
  font: 500 8px "SFMono-Regular", Consolas, monospace;
}

.file-row > a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #808a9c;
  border-radius: 6px;
}

.file-row > a:hover {
  color: var(--indigo);
  background: #f1f4ff;
}

.file-row > a svg {
  width: 14px;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 15px;
  margin-top: 15px;
}

.copy-button {
  padding: 5px 8px;
  color: #687389;
  background: #f2f4f7;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.code-panel pre {
  margin: 17px 0 0;
  padding: 15px;
  overflow-x: auto;
  color: #d4dbea;
  background: #152036;
  border-radius: 8px;
  font: 400 10px/1.8 "SFMono-Regular", Consolas, monospace;
}

.code-panel pre span {
  color: #6c8bff;
}

.decision-panel {
  display: flex;
  align-items: center;
  gap: 15px;
}

.decision-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0a946a;
  background: #eaf8f3;
  border-radius: 50%;
}

.decision-icon svg {
  width: 18px;
}

.decision-panel h3 {
  margin: 0;
  font-size: 11px;
}

.decision-panel p {
  margin: 6px 0 0;
  color: #838c9d;
  font-size: 8px;
  line-height: 1.6;
}

.decision-panel code {
  color: var(--indigo);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 330px;
  padding: 12px 15px;
  color: white;
  background: #182338;
  border-radius: 9px;
  box-shadow: 0 14px 38px rgba(17, 26, 44, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
  font-size: 10px;
  font-weight: 650;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 15px;
  color: #67dfb8;
}

.toast.warning svg {
  color: #f2bb66;
}

.mobile-menu,
.scrim {
  display: none;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    width: 246px;
    transition: left 180ms ease;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.open ~ .scrim {
    display: block;
  }

  .mobile-menu {
    display: grid;
    margin-right: 12px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
    place-items: center;
    color: #566177;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

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

  .metric-card {
    min-height: 105px;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(10, 16, 29, 0.35);
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 68px;
    padding: 12px 16px;
  }

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

  .eyebrow,
  .connection-pill {
    display: none;
  }

  .page-heading h1 {
    margin: 0;
    font-size: 18px;
  }

  .top-actions .button {
    padding: 8px 11px;
  }

  .hero-row,
  .hero-row.compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-row h2 {
    font-size: 25px;
  }

  .exchange-grid,
  .validation-layout,
  .quickstart-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    gap: 10px;
  }

  .exchange-stats div + div {
    padding-left: 10px;
  }

  .panel-head {
    align-items: flex-start;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline li:not(:last-child)::after {
    top: 23px;
    bottom: -17px;
    left: 12px;
    width: 1px;
    height: auto;
  }

  .timeline div {
    padding: 2px 0 0;
  }

  .file-row {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    padding-inline: 15px;
  }

  .file-kind {
    display: none;
  }

  .event-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .event-row time {
    display: none;
  }

  .validation-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .validation-label {
    display: none;
  }
}

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