* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --canvas: #FFFFFF;
  --paper: #FFFFFF;
  --panel-tint: #E5E9EF;
  --hover: #F6F7F9;
  --ink: #000000;
  --navy: #516E9A;
  --blue: #3B567F;
  --blue-soft: #8C9DB6;
  --steel: #D0D7E2;
  --muted: #8994A5;
  --line: #D0D7E2;
  --line-soft: #E5E9EF;
  --line-dark: #C0C6D0;
  --signal: #8C9DB6;
  --signal-dark: #2D4C79;
  --signal-soft: #E5E9EF;
  --positive: #516E9A;
  --negative: #8A4552;
  --violet: #7088AC;
  --display: Tahoma, Arial, sans-serif;
  --sans: Tahoma, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 11px;
  line-height: 150%;
  letter-spacing: 1px;
  padding: 0;
  text-align: left;
}

a {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #D0D7E2;
}
a:hover {
  border-bottom-color: #3B567F;
  color: #000000;
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  background: var(--paper);
}
.wrap.fixed-height {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

header {
  background: #D0D7E2;
  border-top: 2px solid #D0D7E2;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

header .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header .title {
  font-size: 11px;
  font-weight: bold;
  color: #3B567F;
  letter-spacing: 1px;
}

header .title a {
  color: #3B567F;
  border: none;
}
header .title a:hover { border: none; }

header .subtitle {
  font-size: 11px;
  color: #8C9DB6;
  margin-top: 0;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

header .right {
  font-size: 11px;
  font-weight: bold;
  background: #8C9DB6;
  color: #E5E9EF;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
}

.search-bar {
  margin: 0;
  padding: 8px 10px;
  background: #E5E9EF;
  border-bottom: 1px solid #D0D7E2;
}

.search-bar input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #C0C6D0;
  font-family: Tahoma, arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #000;
  outline: none;
  line-height: 150%;
}

.search-bar input:focus {
  border-color: #3B567F;
}

.search-bar input::placeholder {
  color: #8C9DB6;
}

.stats-row {
  display: flex;
  gap: 0;
  margin: 0;
  flex-wrap: nowrap;
  border-bottom: 1px solid #D0D7E2;
}

.stat-box {
  flex: 1;
  min-width: 0;
  background: #E5E9EF;
  border-right: 1px solid #D0D7E2;
  padding: 8px 10px;
}

.stat-box:last-child { border-right: none; }

.stat-box .label {
  font-size: 11px;
  color: #8C9DB6;
  text-transform: lowercase;
  font-weight: normal;
}

.stat-box .value {
  font-size: 12px;
  font-weight: bold;
  color: #3B567F;
  margin-top: 1px;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.addr-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.fixed-height .addr-pane {
  overflow: hidden;
}

.section {
  margin: 0;
  padding: 0;
}

.section-title {
  font-size: 11px;
  font-weight: bold;
  color: #3B567F;
  text-transform: lowercase;
  background: #D0D7E2;
  border-top: 1px solid #C0C6D0;
  border-bottom: 1px solid #D0D7E2;
  box-shadow: none;
  padding: 4px 8px;
  margin: 0;
  letter-spacing: 1px;
}

.source-section,
.disasm-section {
  min-height: 300px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

td, th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-epoch { width: 56px; }
.col-txs { width: 28px; text-align: right; }
.col-time { width: 126px; }
.col-hash { width: 180px; }
.col-address { width: 165px; }
.col-amount { width: 92px; }

th {
  text-align: left;
  font-size: 11px;
  color: #556C8F;
  text-transform: lowercase;
  padding: 4px 8px;
  border-bottom: 1px solid #D0D7E2;
  font-weight: normal;
  background: #F6F7F9;
}

td {
  padding: 5px 8px;
  border-bottom: 1px solid #E5E9EF;
  font-size: 11px;
  vertical-align: top;
}

tr:hover {
  background: #E5E9EF;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
}

.hash a, .addr a {
  color: #3B567F;
  border-bottom: 1px solid #D0D7E2;
}
.hash a:hover, .addr a:hover { border-bottom-color: #3B567F; }

.amount { font-weight: bold; }
.green { color: #16a34a; }
.red { color: #dc2626; }
.yellow { color: #ca8a04; }
.gray { color: #8C9DB6; }

.op-tag {
  display: inline;
  background: transparent;
  color: #556C8F;
  font-size: 10px;
  padding: 0;
  letter-spacing: 0.1px;
}

.op-tag-code {
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0;
}

.rejected-tag {
  font-size: 11px;
  color: #555;
  letter-spacing: 0;
}

.confirmed-tag {
  font-size: 11px;
  color: #3B567F;
  letter-spacing: 0;
}

.staging-tag {
  display: inline-block;
  background: #ca8a04;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
}

.staging-row {
  background: #FFFBEB;
}
.staging-row:hover {
  background: #FEF3C7;
}
.not-indexed-tag {
  display: inline-block;
  background: #64748b;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
}
.not-indexed-row {
  background: #F1F5F9;
}
.not-indexed-row:hover {
  background: #E2E8F0;
}
.rejected-tag {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
}
.rejected-row {
  background: #FEF2F2;
}
.rejected-row:hover {
  background: #FEE2E2;
}
.ocs01-tag {
  display: inline-block;
  background: #059669;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
  margin-left: 8px;
}

.detail-table {
  width: 100%;
  table-layout: auto !important;
  margin: 0;
}

.detail-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.detail-table td:first-child {
  width: 150px;
  color: #8C9DB6;
  font-size: 11px;
  font-weight: normal;
  white-space: nowrap;
}

.detail-table td:last-child {
  font-size: 11px;
}

.staging-empty {
  color: #8C9DB6;
  font-style: italic;
  padding: 10px 8px;
}

.footer {
  background: #D0D7E2;
  border-top: 1px solid #C0C6D0;
  padding: 6px 10px;
  font-size: 11px;
  color: #8C9DB6;
  text-align: center;
  flex-shrink: 0;
}

.nav {
  padding: 6px 10px;
  background: #F6F7F9;
  border-bottom: 1px solid #E5E9EF;
}

.nav a {
  color: #3B567F;
  font-size: 11px;
  border-bottom: 1px solid #D0D7E2;
}
.nav a:hover {
  border-bottom-color: #3B567F;
  color: #3B567F;
}

.error-box {
  background: #E5E9EF;
  border: 1px solid #C0C6D0;
  color: #dc2626;
  padding: 10px;
  margin: 10px 8px;
  font-size: 11px;
}

.addr-warning-cell {
  background: #FBEAEA;
  border-left: 3px solid #dc2626;
  color: #7a1a1a;
}
.addr-warning-cell.warning {
  background: #FAF3DD;
  border-left-color: #ca8a04;
  color: #6b4d05;
}
.addr-warning-cell-label {
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.addr-warning-cell-desc {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
  opacity: 0.9;
}

.loading {
  color: #8C9DB6;
  padding: 15px 8px;
}

.load-more {
  display: block;
  width: 100%;
  padding: 6px 8px;
  margin: 0;
  background: #E5E9EF;
  border: none;
  border-top: 1px solid #D0D7E2;
  border-bottom: 1px solid #D0D7E2;
  color: #3B567F;
  font-family: Tahoma, arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
}
.load-more:hover { background: #D0D7E2; }
.load-more:disabled { color: #8C9DB6; cursor: default; background: #E5E9EF; }

.view-all {
  display: block;
  text-align: center;
  padding: 6px 8px;
  margin: 0;
  background: #E5E9EF;
  border-top: 1px solid #D0D7E2;
  color: #3B567F;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: none;
}
.view-all:hover { background: #D0D7E2; border-bottom: none; }

.card-list { display: none; }

.tx-card, .ep-card {
  border-bottom: 1px solid #D0D7E2;
  padding: 8px 10px;
  margin: 0;
  background: #fff;
}

.tx-card:hover, .ep-card:hover {
  background: #E5E9EF;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1px 0;
  font-size: 11px;
}

.card-label {
  color: #8C9DB6;
  font-size: 11px;
  min-width: 50px;
  font-weight: normal;
}

.card-val {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72%;
}

.card-val a {
  color: #3B567F;
}

@media (max-width: 1300px) {
  .hide-mid { display: none; }
}

@media (max-width: 700px) {
  header .subtitle {
    font-size: 9px;
    max-width: 55%;
  }

  header .right { font-size: 10px; padding: 2px 6px; }

  .stats-row {
    flex-wrap: wrap;
  }
  .stat-box {
    flex: 1 1 33.33%;
    min-width: 33.33%;
    padding: 6px 8px;
    border-bottom: 1px solid #D0D7E2;
  }
  .stat-box .value { font-size: 11px; overflow-wrap: anywhere; }

  .desktop-table { display: none !important; }
  .card-list { display: block !important; }

  .detail-table td:first-child { font-size: 10px; }
  .detail-table td { font-size: 11px; word-break: normal; overflow-wrap: anywhere; }
  .detail-table .mono { font-size: 10px; }

  .nested-params td:first-child { font-size: 10px; padding: 4px 6px; }
  .nested-params td { padding: 4px 6px; font-size: 10px; word-break: normal; overflow-wrap: anywhere; }
  .nested-params td:last-child { font-size: 10px; overflow-wrap: anywhere; }

  .storage-group table.detail-table,
  .storage-group table.detail-table tbody,
  .storage-group table.detail-table tr {
    display: block;
    width: 100%;
  }
  .storage-group table.detail-table tr {
    border-bottom: 1px solid #E0E5EB;
    padding: 4px 0;
  }
  .storage-group table.detail-table tr:last-child {
    border-bottom: none;
  }
  .storage-key,
  .storage-value {
    display: block;
    width: 100%;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: anywhere;
    padding: 3px 10px;
  }
  .storage-key {
    font-size: 10px;
    color: #3B567F;
    background: #F0F3F8;
    border-bottom: 1px solid #E5E9EF;
  }
  .storage-value {
    font-size: 11px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .storage-prefix { font-size: 9px; padding: 3px 8px; }

  .methods-list { padding: 6px 8px; gap: 3px; }
  .method-badge {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 140%;
  }

  .query-form {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px;
    gap: 5px;
  }
  .query-form input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 11px;
    box-sizing: border-box;
  }
  .query-btn {
    width: 100%;
    padding: 6px 10px;
    font-size: 11px;
  }

  .source-code {
    font-size: 10px;
    line-height: 150%;
    padding: 8px 10px;
  }

  .source-file-tabs { gap: 0; }
  .source-file-tab { font-size: 10px; padding: 4px 8px; }

  .event-arg { padding: 2px 0 2px 10px; font-size: 10px; word-break: normal; overflow-wrap: anywhere; }
  .event-item { padding: 5px 8px; font-size: 10px; word-break: normal; overflow-wrap: anywhere; }

  .disasm-table thead th { padding: 3px 8px; font-size: 9px; }
  .disasm-table tbody td { padding: 2px 8px; font-size: 10px; }
  .disasm-table .num { width: 36px; font-size: 9px; }
  .disasm-table .opcode { width: 100px; }
  .disasm-header, .disasm-section-title { padding: 3px 8px; font-size: 9px; }

  .search-bar input { font-size: 11px; padding: 4px 8px; }
  .section-title { font-size: 11px; }
  .footer { font-size: 10px; }
  .nav { padding: 4px 10px; }
  .nav a { font-size: 10px; }

  .wrap.fixed-height {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .fixed-height .addr-pane {
    overflow: visible;
  }
  .source-code {
    flex: none;
    height: 60vh;
    min-height: 200px;
  }
  .source-section {
    flex: none;
  }
}

.program-tag,
.prog-exec-tag {
  display: inline-block;
  background: #516E9A;
  color: #E5E9EF;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
}

.circle-tag {
  color: #8C9DB6;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.circle-entry {
  overflow-wrap: anywhere;
}

.prog-exec-tag {
  font-family: 'SF Mono', 'Consolas', monospace;
  margin-left: 4px;
}

.token-tag {
  display: inline-block;
  background: #516E9A;
  color: #E5E9EF;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
  margin-left: 4px;
}

.verified-badge {
  color: #3B567F;
  font-size: 10px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.unverified-badge {
  color: #8C9DB6;
  font-size: 10px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.success-badge { color: #3B567F; font-weight: bold; }
.fail-badge { color: #dc2626; font-weight: bold; }

.storage-dump {
  padding: 0;
}

.storage-group {
  margin: 0;
  border-top: 1px solid #D0D7E2;
}

.storage-group:first-child {
  border-top: none;
}

.storage-prefix {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 10px;
  color: #8C9DB6;
  padding: 3px 10px;
  background: #F6F7F9;
  letter-spacing: 0.3px;
}

.storage-group .detail-table {
  margin: 0;
}

.storage-key {
  color: #3B567F;
  font-size: 11px;
  overflow-wrap: anywhere;
  width: 45%;
  vertical-align: top;
}

.storage-value {
  font-size: 11px;
  overflow-wrap: anywhere;
}

.section-title.disasm-title {
  background: #1a1a2e;
  color: #8C9DB6;
  border-top: 1px solid #2A2A3E;
  border-bottom: 1px solid #2A2A3E;
  font-weight: normal;
  letter-spacing: 0.3px;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.section-title.disasm-title .gray {
  color: #6A7A93 !important;
}

.disasm-view {
  max-height: 500px;
  overflow: auto;
  line-height: 1.4;
  margin-top: 0;
}

.disasm-header {
  padding: 4px 12px;
  background: #1a1a2e;
  color: #8C9DB6;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.disasm-section-title {
  padding: 3px 8px;
  color: #8C9DB6;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.3px;
  border-top: 1px solid #2A2A3E;
}

.disasm-table {
  width: 100%;
  margin: 0;
  background: #1a1a2e;
  color: #c8d0dc;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  border-collapse: collapse;
}

.disasm-table thead th {
  padding: 3px 10px;
  color: #7A8BA6;
  background: #1a1a2e;
  text-align: left;
  font-weight: normal;
  font-size: 10px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #2A2A3E;
}

.disasm-table tbody td {
  padding: 2px 10px;
  border-bottom: 1px solid #222238;
  vertical-align: top;
}

.disasm-table .num {
  width: 50px;
  color: #6A7A93;
  text-align: right;
}

.disasm-table .opcode {
  color: #9BB3D9;
  width: 140px;
}

.disasm-table .reg {
  color: #c8d0dc;
}

.disasm-table .konst {
  color: #8FB4E0;
}

.disasm-table .mem {
  color: #B0B8C8;
}

.disasm-table .jaddr {
  color: #A89BD9;
}

.query-form {
  padding: 8px 10px;
  background: #F6F7F9;
  border-bottom: 1px solid #D0D7E2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.query-form input {
  padding: 3px 6px;
  border: 1px solid #C0C6D0;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  outline: none;
  line-height: 150%;
}

.query-form input:focus { border-color: #3B567F; }

.query-btn {
  background: #3B567F;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: Tahoma, arial, sans-serif;
  letter-spacing: 1px;
}
.query-btn:hover { background: #516E9A; }
.query-btn:disabled { background: #8C9DB6; cursor: default; }

.query-result {
  padding: 6px 10px;
  background: #F6F7F9;
  border-bottom: 1px solid #D0D7E2;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.event-item {
  padding: 3px 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.params-collapsed {
  max-height: 60px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.params-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.params-expand {
  color: #3B567F;
  font-size: 10px;
  cursor: pointer;
  font-weight: bold;
  padding: 2px 0;
}

.event-name {
  color: #3B567F;
  font-weight: bold;
}

.event-item {
  padding: 6px 10px;
  font-size: 11px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #E8ECF2;
}

.event-item:last-child {
  border-bottom: none;
}

.event-args {
  margin-top: 3px;
}

.event-arg {
  padding: 2px 0 2px 12px;
  font-size: 11px;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.event-arg .param-name {
  color: #8C9DB6;
  margin-right: 6px;
}

.nested-params {
  margin: 0;
  width: 100%;
}

.nested-params tr:hover,
.storage-group .detail-table tr:hover {
  background: transparent;
}

.disasm-table tr:hover,
.disasm-table tbody tr:hover {
  background: transparent;
}

.nested-params td {
  padding: 5px 8px;
  font-size: 11px;
  border-top: 1px solid #E8ECF2;
}

.nested-params td:first-child {
  width: 150px;
  color: #3B567F;
  vertical-align: top;
  font-family: 'SF Mono', 'Consolas', monospace;
  white-space: nowrap;
}

.nested-params td:last-child {
  overflow-wrap: anywhere;
}

.param-name {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
}

.methods-list {
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.method-badge {
  display: inline-block;
  background: #E5E9EF;
  border: 1px solid #C0C6D0;
  color: #3B567F;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.method-badge:hover { background: #D0D7E2; }

.write-badge {
  background: #8C9DB6;
  color: #fff;
  border-color: #8C9DB6;
  cursor: default;
}
.write-badge:hover { background: #8C9DB6; }

.staging-empty {
  color: #8C9DB6;
  font-style: italic;
  padding: 10px 8px;
}

.source-code {
  margin: 0;
  padding: 10px 12px;
  background: #1a1a2e;
  color: #c8d0dc;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 11px;
  line-height: 170%;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  max-height: 500px;
}
.source-section {
  background: #1a1a2e;
}
.source-file-tabs {
  display: flex;
  gap: 0;
  background: #E5E9EF;
  border-bottom: 1px solid #C0C6D0;
  overflow-x: auto;
}
.source-file-tab {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #8C9DB6;
  cursor: pointer;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.source-file-tab.active {
  color: #3B567F;
  border-bottom-color: #3B567F;
  background: #fff;
}
.source-file-tab:hover {
  color: #3B567F;
}

.tab-bar {
  display: flex;
  gap: 0;
  background: #E5E9EF;
  border-bottom: 1px solid #C0C6D0;
}

.addr-tab {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #8C9DB6;
  cursor: pointer;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  text-transform: lowercase;
}

.addr-tab:hover {
  color: #3B567F;
}

.addr-tab.active {
  color: #3B567F;
  border-bottom-color: #3B567F;
  background: #fff;
}

@media (min-width: 701px) {
  .card-list { display: none !important; }
  .desktop-table { display: table !important; }
}

.section-title {
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.section-title-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title-meta {
  color: #8C9DB6;
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.formal-section {
  min-height: 300px;
}

.verification-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #C0C6D0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    #E5E9EF;
}

.verification-safe {
  background-color: #F6F7F9;
}

.verification-warning {
  background-color: #E5E9EF;
}

.verification-error {
  background-color: #D0D7E2;
}

.verification-hero-main {
  min-width: 0;
}

.verification-kicker {
  color: #6A7A93;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.verification-status {
  color: #243B5A;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.1;
  text-transform: lowercase;
}

.verification-subtitle {
  color: #556C8F;
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.verification-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
}

.verification-counts span {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(192,198,208,0.9);
  color: #3B567F;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 10px;
  padding: 4px 6px;
  white-space: nowrap;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #D0D7E2;
}

.verification-card {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid #D0D7E2;
  border-bottom: 1px solid #E5E9EF;
  background: #F8FAFC;
}

.verification-card:nth-child(2n) {
  border-right: none;
}

.verification-card-label {
  color: #8C9DB6;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: lowercase;
}

.verification-card-value {
  color: #243B5A;
  font-size: 10px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.verification-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid #D0D7E2;
  background: #F6F7F9;
}

.verification-chip {
  border: 1px solid #C0C6D0;
  background: #F6F7F9;
  color: #3B567F;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 10px;
  padding: 4px 7px;
  overflow-wrap: anywhere;
}

.verification-chip.safe {
  border-color: #8C9DB6;
  background: #F6F7F9;
  color: #3B567F;
}

.verification-chip.warning {
  border-color: #516E9A;
  background: #E5E9EF;
  color: #243B5A;
}

.verification-chip.error {
  border-color: #243B5A;
  background: #516E9A;
  color: #F6F7F9;
}

.verification-block-title {
  padding: 5px 10px;
  background: #E5E9EF;
  border-top: 1px solid #D0D7E2;
  border-bottom: 1px solid #C0C6D0;
  color: #3B567F;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: lowercase;
}

.verification-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #F6F7F9;
  border-bottom: 1px solid #D0D7E2;
}

.verification-record {
  min-width: 0;
  border: 1px solid #C0C6D0;
  background: #fff;
}

.verification-record.safe {
  border-color: #C0C6D0;
}

.verification-record.warning {
  border-color: #8C9DB6;
}

.verification-record.error {
  border-color: #516E9A;
}

.verification-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  background: #E5E9EF;
  color: #243B5A;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.6px;
  overflow-wrap: anywhere;
  text-transform: lowercase;
}

.verification-record-row {
  display: grid;
  grid-template-columns: minmax(90px, 28%) minmax(0, 1fr);
  border-top: 1px solid #E5E9EF;
}

.verification-record-key {
  color: #8C9DB6;
  font-size: 10px;
  padding: 6px 8px;
  background: #F8FAFC;
  overflow-wrap: anywhere;
}

.verification-record-value {
  color: #243B5A;
  font-size: 10px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.formal-json-section .source-code {
  max-height: 420px;
}

.program-verification-status {
  display: inline-block;
  color: #3B567F;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0;
  padding: 0;
  text-transform: lowercase;
}

.program-verification-status.safe {
  color: #3B567F;
}

.program-verification-status.warning {
  color: #243B5A;
}

.program-verification-status.error {
  color: #243B5A;
}

.program-verification-status.neutral {
  color: #8C9DB6;
}

.storage-prefix {
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.section-title.disasm-title .section-title-meta {
  color: #6A7A93;
}

.tab-bar {
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .detail-table tr {
    border-bottom: 1px solid #E5E9EF;
  }
  .detail-table tr:last-child {
    border-bottom: none;
  }
  .detail-table td {
    border-bottom: none;
    font-size: 11px;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
  }
  .detail-table td:first-child {
    width: 100%;
    color: #8C9DB6;
    font-size: 10px;
    padding-bottom: 2px;
    white-space: normal;
  }
  .detail-table td:last-child {
    padding-top: 2px;
  }
  .tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .addr-tab {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 5px 8px;
    max-width: none;
  }
  .section-title {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.6px;
  }
  .section-title-split {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
  .section-title-meta {
    font-size: 9px;
  }
  .verification-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .verification-counts {
    width: 100%;
    justify-content: flex-start;
  }
  .verification-grid,
  .verification-records {
    grid-template-columns: 1fr;
  }
  .verification-records {
    padding: 8px;
  }
  .verification-record-row {
    grid-template-columns: 1fr;
  }
  .verification-record-key {
    padding-bottom: 2px;
  }
  .verification-record-value {
    padding-top: 2px;
  }
  .verification-status {
    font-size: 18px;
  }
  .verification-chip {
    max-width: 100%;
  }
}

.detail-page {
  background: #FFFFFF;
}

.detail-page .wrap {
  background:
    linear-gradient(to bottom, #D0D7E2 0, #D0D7E2 35px, #FFFFFF 35px);
}

.detail-header {
  display: grid;
  width: min(900px, calc(100% - 20px));
  min-height: 35px;
  grid-template-columns: minmax(190px, 1fr) auto minmax(90px, 1fr);
  margin: 0 auto;
  padding: 0 5px;
}

.detail-header .left {
  min-width: 0;
}

.detail-header .subtitle {
  max-width: 390px;
  color: #8C9DB6;
  font-size: 9px;
}

.shell-nav {
  display: flex;
  align-self: stretch;
  height: 32px;
}

.shell-nav a {
  display: flex;
  width: 104px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: none;
  border-right: 1px solid #C0C6D0;
  background: #E5E9EF;
  color: #50637F;
  font-size: 10px;
  font-weight: normal;
  text-transform: lowercase;
}

.shell-nav a:first-child {
  border-left: 1px solid #C0C6D0;
}

.shell-nav a:hover {
  border-bottom: 2px solid #2D4C79;
  background: #516E9A;
  color: #FFFFFF;
}

.shell-nav a.active {
  border-bottom: 2px solid #FFFFFF;
  background: #FFFFFF;
  color: #3B567F;
  font-weight: bold;
}

.shell-search-button {
  justify-self: end;
  padding: 4px 7px;
  border: 1px solid #8191A8;
  background: #8C9DB6;
  color: #FFFFFF;
  cursor: pointer;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.shell-search-button:hover {
  border-color: #2D4C79;
  background: #516E9A;
}

.shell-search-deck {
  display: grid;
  width: min(900px, calc(100% - 20px));
  grid-template-columns: minmax(0, 1fr) 80px auto;
  margin: 10px auto 0;
  padding: 0;
  border: 1px solid #C0C6D0;
  background: #FFFFFF;
}

.shell-search-deck[hidden] {
  display: none;
}

.shell-search-deck input {
  min-width: 0;
  padding: 5px 7px;
  border: none;
  outline: none;
  background: #FFFFFF;
  color: #000000;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
}

.shell-search-deck input:focus {
  background: #F6F7F9;
}

.shell-search-deck button {
  border: none;
  border-left: 1px solid #8191A8;
  background: #8C9DB6;
  color: #FFFFFF;
  cursor: pointer;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  text-transform: lowercase;
}

.shell-search-deck button:hover {
  background: #516E9A;
}

.shell-search-deck span {
  align-self: center;
  padding: 0 7px;
  color: #8994A5;
  font-size: 8px;
}

.detail-page .content-area {
  width: min(900px, calc(100% - 20px));
  margin: 10px auto;
  border: 1px solid #D0D7E2;
  background: #FFFFFF;
  box-shadow: none;
}

.detail-page .breadcrumb {
  min-height: 27px;
  padding: 5px 8px;
  background: #F6F7F9;
}

.detail-page .breadcrumb a {
  color: #3B567F;
  font-size: 9px;
}

.detail-page .breadcrumb a::before {
  content: "<- ";
  color: #8C9DB6;
}

.detail-page th {
  height: 27px;
  padding: 4px 7px;
  background: #F6F7F9;
  color: #8C9DB6;
  font-size: 9px;
  font-weight: normal;
}

.detail-page td {
  height: 30px;
  padding: 5px 7px;
  border-bottom-color: #E5E9EF;
  font-size: 10px;
}

.detail-page .detail-table td:first-child {
  width: 165px;
  background: #F6F7F9;
  color: #8C9DB6;
  font-size: 9px;
}

.detail-page .detail-table td:last-child {
  color: #000000;
  font-size: 10px;
}

.detail-page .load-more,
.detail-page .view-all {
  min-height: 29px;
  background: #F6F7F9;
  color: #3B567F;
  font-size: 9px;
  text-transform: lowercase;
}

.detail-page .load-more:hover,
.detail-page .view-all:hover {
  background: #E5E9EF;
  color: #3B567F;
}

.detail-page .footer {
  width: min(900px, calc(100% - 20px));
  margin: auto;
  padding: 7px 0;
  border-top: 1px solid #D0D7E2;
  background: #FFFFFF;
  color: #8C9DB6;
  font-size: 9px;
}

.detail-page .tx-card,
.detail-page .ep-card {
  background: #FFFFFF;
}

.detail-page .tx-card:hover,
.detail-page .ep-card:hover {
  background: #E5E9EF;
}

@media (max-width: 760px) {
  .detail-page .wrap {
    background:
      linear-gradient(to bottom, #D0D7E2 0, #D0D7E2 36px, #FFFFFF 36px);
  }

  .detail-header {
    width: calc(100% - 16px);
    min-height: 36px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 6px;
  }

  .detail-header .subtitle {
    max-width: 180px;
    font-size: 8px;
  }

  .shell-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: 42px;
    background: #D0D7E2;
    border-top: 1px solid #3B567F;
  }

  .shell-nav a {
    width: auto;
    flex: 1;
    padding: 0 5px;
    font-size: 9px;
  }

  .shell-nav a.active {
    border-bottom: 2px solid #2D4C79;
    background: #516E9A;
    color: #FFFFFF;
  }

  .shell-search-button {
    font-size: 0;
  }

  .shell-search-button::after {
    content: "/";
    font-family: Arial, sans-serif;
    font-size: 11px;
  }

  .shell-search-deck {
    width: calc(100% - 16px);
    grid-template-columns: minmax(0, 1fr) 65px;
    margin-top: 8px;
  }

  .shell-search-deck span {
    grid-column: span 2;
    padding: 4px 6px;
    border-top: 1px solid #E5E9EF;
  }

  .detail-page .content-area {
    width: calc(100% - 16px);
    margin: 8px auto 50px;
  }

  .detail-page .detail-table td:first-child {
    width: 100%;
    background: #F6F7F9;
  }

  .detail-page .footer {
    width: calc(100% - 16px);
    margin-bottom: 42px;
  }
}
