:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --paper-2: #fbfcfe;
  --line: #dfe6ef;
  --text: #172033;
  --muted: #667085;
  --cyan: #12a8c6;
  --red: #e23b4b;
  --green: #20a66a;
  --amber: #d99118;
  --blue: #2d6cdf;
  --shadow: 0 18px 45px rgba(31, 45, 64, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(223, 230, 239, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #f23f4b;
  color: #fff;
  font-weight: 800;
}

.brand-text {
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a,
.site-footer a,
.section-heading a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.nav a {
  padding: 11px 13px;
}

.nav a:hover,
.nav a.active,
.site-footer a:hover,
.section-heading a:hover {
  color: var(--blue);
  background: #eef5ff;
}

.view {
  min-height: calc(100vh - 140px);
}

.search-band {
  padding: 46px 7vw 24px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.search-shell,
.batch-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  text-align: center;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-form input {
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  outline: none;
}

.search-history {
  position: absolute;
  left: 6px;
  right: 134px;
  top: calc(100% + 8px);
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 45, 64, 0.16);
}

.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-history-head button,
.search-history-delete {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.search-history-head button:hover,
.search-history-delete:hover {
  color: var(--red);
}

.search-history-list {
  max-height: 260px;
  overflow-y: auto;
}

.search-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 36px;
  align-items: center;
  border-bottom: 1px solid #eef2f7;
}

.search-history-item:last-child {
  border-bottom: 0;
}

.search-history-value {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-history-value:hover {
  background: #f5f8fc;
  color: var(--blue);
}

.search-history-note {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  outline: none;
}

.search-history-note:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 128, 255, 0.12);
}

.search-history-delete {
  height: 42px;
  font-size: 18px;
}

.search-form button,
.batch-actions button,
.quick-actions button,
.copy-button {
  height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  font-weight: 700;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
}

.search-form button:hover,
.batch-actions button:hover,
.quick-actions button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.quick-actions button {
  height: 34px;
  padding: 0 13px;
  background: #263347;
  font-size: 13px;
}

.price-strip {
  padding: 18px 7vw 28px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(940px, 100%);
  margin: 0 auto;
}

.price-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.price-icon,
.tool-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.price-icon {
  width: 40px;
  height: 40px;
}

.price-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.price-card span {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.price-card small {
  color: var(--muted);
  font-size: 12px;
}

.coin-USDT,
.tool-green {
  background: var(--green);
}

.coin-BTC,
.tool-amber {
  background: var(--amber);
}

.coin-TRX,
.tool-red {
  background: var(--red);
}

.coin-ETH,
.tool-cyan {
  background: var(--cyan);
}

.market-note {
  width: min(940px, 100%);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.ad-section {
  padding: 0 7vw 22px;
}

.search-ad,
.batch-inner-ad {
  padding-left: 0;
  padding-right: 0;
}

.search-ad {
  padding-bottom: 18px;
}

.batch-inner-ad {
  padding-top: 18px;
  padding-bottom: 18px;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.ad-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(31, 45, 64, 0.06);
}

.ad-card:hover {
  border-color: #bfd2ef;
}

.ad-card.no-image {
  grid-template-columns: 1fr;
}

.ad-card img {
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: #edf2f7;
}

.ad-card strong,
.ad-card span,
.ad-card small,
.ad-card b {
  display: block;
  overflow-wrap: anywhere;
}

.ad-card small {
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.ad-card strong {
  color: var(--text);
  font-size: 16px;
}

.ad-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ad-card b {
  width: fit-content;
  margin-top: 10px;
  color: var(--red);
  font-size: 13px;
}

.footer-ad {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 0 16px;
}

.result-section,
.tools-section,
.batch-band {
  padding: 24px 7vw 42px;
}

.result-card,
.batch-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(31, 45, 64, 0.07);
}

.result-card {
  overflow: hidden;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.result-head h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.mono {
  overflow-wrap: anywhere;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.pending {
  background: var(--amber);
}

.status-pill.failed {
  background: var(--red);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric {
  min-height: 96px;
  padding: 18px 20px;
  background: var(--paper);
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.detail-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  background: var(--paper-2);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 700;
}

.address-result {
  width: min(1820px, 100%);
  margin: 0 auto;
  overflow: visible;
  scroll-margin-top: 90px;
  background: #f3f8fc;
  color: #2d333b;
  box-shadow: none;
}

.address-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 8px;
  color: #1d7897;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.address-brand-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #f21d37;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.wallet-summary,
.wallet-stats,
.address-filterbar,
.address-counts,
.address-table-wrap,
.address-pagination {
  border-bottom: 1px solid #d9e3eb;
}

.wallet-summary {
  padding: 12px 18px 10px;
}

.wallet-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  color: #222a34;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.wallet-address-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  font-size: 13px;
}

.wallet-address {
  overflow-wrap: anywhere;
}

.address-qr {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #2a77ac;
  line-height: 1;
  cursor: pointer;
}

.address-qr-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1.5' y='1.5' width='5' height='5' rx='1' stroke='%232a77ac' stroke-width='1.5'/%3E%3Crect x='11.5' y='1.5' width='5' height='5' rx='1' stroke='%232a77ac' stroke-width='1.5'/%3E%3Crect x='1.5' y='11.5' width='5' height='5' rx='1' stroke='%232a77ac' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5H13.5V13.5H10.5V10.5Z' stroke='%232a77ac' stroke-width='1.5'/%3E%3Cpath d='M15.5 10.5V12.5M15.5 15.5H13.5M8.5 1.5V4.5M8.5 6.5V8.5M1.5 8.5H3.5M5.5 8.5H8.5M8.5 12.5V16.5M12.5 8.5H16.5' stroke='%232a77ac' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.qr-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 200;
  display: none;
  width: 224px;
  transform: translateX(-50%);
  padding: 14px;
  border: 1px solid #cdd7e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 45, 64, 0.18);
  text-align: center;
}

.qr-popover::after {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid #cdd7e0;
  border-left: 1px solid #cdd7e0;
  background: #fff;
  content: "";
}

.qr-popover img {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto 8px;
}

.qr-popover small {
  display: block;
  overflow-wrap: anywhere;
  color: #526072;
  font-size: 12px;
  line-height: 1.35;
}

.address-qr:hover .qr-popover,
.address-qr:focus .qr-popover,
.address-qr:focus-within .qr-popover,
.address-qr.show .qr-popover {
  display: block;
}

.wallet-stats {
  padding: 9px 18px 10px;
}

.wallet-stats dl {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.wallet-stats div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0;
}

.wallet-stats dt,
.wallet-stats dd {
  margin: 0;
}

.wallet-stats dt {
  color: #3b434d;
}

.hint-dot {
  position: relative;
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #c2c7ca;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  cursor: help;
}

.hint-dot::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 210;
  display: none;
  width: 250px;
  transform: translateX(-18%);
  padding: 10px 12px;
  border: 1px solid #cdd7e0;
  border-radius: 8px;
  background: #fff;
  color: #27313d;
  box-shadow: 0 12px 30px rgba(31, 45, 64, 0.16);
  content: "能量是 TRON 网络中执行 USDT 转账等合约操作所需的资源，能量不足时会消耗 TRX 作为手续费。";
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.hint-dot:hover::after,
.hint-dot:focus::after {
  display: block;
}

.address-filterbar {
  display: grid;
  grid-template-columns: 150px 180px 96px 12px 104px 260px 74px 74px;
  gap: 10px;
  align-items: center;
  padding: 10px 34px;
}

.asset-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 34px;
  overflow: hidden;
  border: 1px solid #cdd7e0;
  border-radius: 8px;
  background: #f8fbfd;
}

.asset-tabs button,
.filter-clear,
.filter-submit,
.address-pagination button {
  border: 0;
  background: transparent;
}

.asset-tabs button {
  color: #0d6efc;
  font-size: 14px;
  font-weight: 700;
}

.asset-tabs button.active {
  color: #fff;
  background: #0d6efc;
}

.filter-select,
.filter-input,
.date-range,
.filter-clear,
.filter-submit {
  height: 34px;
  border: 1px solid #cdd7e0;
  border-radius: 8px;
  background: #fff;
  color: #222a34;
  font-size: 12px;
}

.filter-select {
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr);
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #777;
}

.filter-select span {
  white-space: nowrap;
}

.filter-select select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222a34;
  font: inherit;
}

.filter-input {
  min-width: 0;
  padding: 0 10px;
  outline: 0;
}

.range-dash {
  color: #333;
  text-align: center;
  font-size: 13px;
}

.date-range {
  display: grid;
  grid-template-columns: 18px 1fr 12px 1fr;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #777;
}

.date-range input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #777;
  font: inherit;
}

.date-clock {
  color: #333;
  font-size: 16px;
}

.filter-clear,
.filter-submit {
  color: #555;
  font-weight: 500;
}

.address-counts {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 34px;
  font-size: 13px;
  line-height: 1.25;
  box-sizing: border-box;
}

.income-text {
  color: #58a927;
}

.out-text {
  color: #ff2845;
}

.split-line {
  margin: 0 8px;
}

.address-table-wrap {
  overflow-x: auto;
}

.address-table {
  min-width: 1040px;
  background: #f3f8fc;
}

.address-table th,
.address-table td {
  border-bottom: 1px solid #d9e3eb;
  padding: 7px 10px;
  color: #2d333b;
  font-size: 12px;
  white-space: nowrap;
}

.address-table th {
  background: #f3f8fc;
  color: #1e2630;
  font-size: 13px;
  font-weight: 800;
}

.wallet-peer {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

.amount-badge {
  display: inline-flex;
  min-width: 38px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 6px;
  background: #188f5a;
  color: #fff;
  font-weight: 800;
}

.amount-badge.out {
  background: #d94152;
}

.hash-link,
.height-link {
  color: #1769df;
}

.hash-toggle,
.height-link {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1769df;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.hash-toggle [hidden] {
  display: none !important;
}

.hash-toggle:hover,
.height-link:hover {
  text-decoration: underline;
}

.hash-full {
  display: inline;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.copy-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 1000;
  max-width: min(320px, calc(100vw - 32px));
  transform: translate(-50%, -10px);
  padding: 10px 18px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hash-pending {
  color: #7a8792;
}

.address-empty-row {
  height: 50px;
  color: #777 !important;
  text-align: center !important;
}

.address-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 18px 20px;
}

.page-size-control,
.page-range {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #6f7379;
  font-size: 12px;
}

.page-size-control {
  gap: 7px;
}

.page-size-control select {
  min-width: 74px;
  height: 34px;
  border: 1px solid #d3c7c7;
  background: #fff;
  color: #4b4f55;
  font: inherit;
  padding: 0 8px;
}

.address-pagination button,
.address-pagination input {
  width: 34px;
  height: 34px;
  border: 1px solid #d3c7c7;
  background: #fff;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.address-pagination button.active {
  border-color: #2fa8dc;
  background: #2fa8dc;
  color: #fff;
}

.address-pagination button[data-address-jump],
.address-pagination button:last-child {
  width: 66px;
}

@media (max-width: 1500px) {
  .address-filterbar {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
  }

  .asset-tabs,
  .date-range {
    grid-column: span 2;
  }

  .range-dash {
    display: none;
  }
}

.empty-state,
.error-state,
.loading-state {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.error-state {
  border-color: #f2b7bf;
  color: #9d2431;
  background: #fff5f6;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, 100%);
  margin: 0 auto 16px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  text-align: left;
}

.section-heading h2 {
  font-size: 25px;
}

.section-heading a {
  padding: 9px 11px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.tool-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #b7c8dc;
  box-shadow: 0 14px 26px rgba(31, 45, 64, 0.08);
}

.tool-icon {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
}

.tool-card strong {
  align-self: end;
}

.tool-card span:last-child {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
}

.batch-band {
  padding-top: 54px;
}

.batch-shell {
  padding: 28px;
}

.batch-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.batch-form textarea {
  display: block;
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.batch-form textarea:focus,
.search-form:focus-within {
  border-color: #91b8f7;
  box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.12);
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}

.batch-actions button {
  min-width: 112px;
  padding: 0 16px;
}

.batch-actions button:nth-child(2) {
  color: var(--text);
  background: #eef1f5;
}

.batch-actions button:nth-child(3) {
  background: var(--blue);
}

.batch-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.batch-result {
  min-height: 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 28px 7vw 40px;
  color: var(--muted);
}

.site-footer a {
  padding: 9px 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 38, 0.54);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.modal-panel h2 {
  margin: 0 40px 18px 0;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.copy-button {
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 5vw;
  }

  .nav {
    justify-content: flex-start;
  }

  .search-band,
  .price-strip,
  .ad-section,
  .result-section,
  .tools-section,
  .batch-band {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .price-grid,
  .tool-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-title,
  .wallet-address-line,
  .wallet-stats dl,
  .address-counts {
    font-size: 12px;
  }

  .address-table th {
    font-size: 12px;
  }

  .address-table td {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form button {
    width: 100%;
  }

  .search-history {
    position: static;
    grid-column: 1;
    width: 100%;
  }

  .search-history-item {
    grid-template-columns: minmax(0, 1fr) 36px;
    padding-bottom: 8px;
  }

  .search-history-value {
    grid-column: 1;
    grid-row: 1;
  }

  .search-history-note {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 12px;
  }

  .search-history-delete {
    grid-column: 2;
    grid-row: 1;
  }

  .price-grid,
  .tool-grid,
  .ad-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .ad-card {
    grid-template-columns: 1fr;
  }

  .ad-card img {
    width: 100%;
  }

  .result-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .detail-list dd {
    padding-top: 4px;
  }

  .batch-shell {
    padding: 20px;
  }

  .wallet-summary,
  .wallet-stats {
    padding-left: 14px;
    padding-right: 14px;
  }

  .wallet-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .wallet-stats div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .address-filterbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .asset-tabs,
  .date-range {
    grid-column: auto;
  }

  .filter-select {
    grid-template-columns: auto minmax(82px, 1fr);
  }

  .address-counts {
    padding: 10px 14px;
  }

  .address-pagination {
    flex-wrap: wrap;
    padding: 26px 14px 22px;
  }
}
