@charset "UTF-8";

.explorer-page { background: var(--paper); color: var(--ink); }
.explorer-hero { padding: 82px 0 64px; border-bottom: 1px solid var(--line); }
.explorer-hero h1 { margin: 0 0 26px; font-size: clamp(62px, 8vw, 108px); line-height: .92; letter-spacing: -.075em; }
.explorer-hero .hero-lead { max-width: 740px; }
.explorer-search { max-width: 920px; margin-top: 40px; }
.explorer-search > label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.explorer-search-row { display: flex; gap: 12px; }
.explorer-search-row input { width: 100%; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); font: inherit; font-size: 15px; outline: none; }
.explorer-search-row input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--card-shadow); }
.explorer-search-row .button { flex-shrink: 0; min-width: 130px; min-height: 56px; }
.explorer-search-error { min-height: 20px; margin: 9px 0 0; color: var(--accent-text); font-size: 13px; }
.explorer-network { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.explorer-network strong { color: var(--ink); }
.network-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 800; text-transform: uppercase; }
.network-status::before { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); content: ""; }
.explorer-content { min-height: 520px; padding: 64px 0 82px; }
.explorer-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.explorer-panel, .detail-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.explorer-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.explorer-panel-heading .section-index { margin: 0 0 7px; }
.explorer-panel-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.045em; }
.finalized-badge { flex-shrink: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.record-list { display: grid; }
.record-row { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.record-row:last-child { border-bottom: 0; }
.record-row-top, .record-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.record-row-bottom { margin-top: 9px; color: var(--muted); font-size: 11px; }
.record-link { color: var(--accent-text); font-weight: 800; text-decoration: none; }
.record-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.record-hash { min-width: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-time { flex-shrink: 0; color: var(--muted); font-size: 10px; }
.record-amount { flex-shrink: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.kind-badge { display: inline-block; margin-right: 8px; padding: 3px 6px; border-radius: 5px; color: var(--accent-text); background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.movement-accounts { min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movement-accounts a { color: var(--accent-text); }
.load-more { width: 100%; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.load-more:hover { border-color: var(--accent-text); background: var(--paper-deep); }
.load-more:disabled { cursor: wait; opacity: .55; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--accent-text); font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.detail-header .section-index { margin-bottom: 9px; }
.detail-header h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-card { margin-bottom: 20px; }
.detail-card h3 { margin: 0 0 20px; font-size: 24px; letter-spacing: -.04em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.field-grid > div { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.field-grid dt { position: relative; display: flex; width: max-content; max-width: 100%; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.field-copy { flex: 0 0 auto; padding: 0 2px; border: 0; border-radius: 2px; background: transparent; color: var(--accent-text); cursor: pointer; font: inherit; font-size: 14px; line-height: 1; }
.field-copy:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.copy-feedback { position: absolute; z-index: 5; bottom: calc(100% + 7px); left: 0; padding: 7px 10px; transform: translateY(4px); border: 1px solid var(--line); border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.copy-feedback.is-visible { transform: translateY(0); opacity: 1; }
.field-grid dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.field-grid code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.field-grid a { color: var(--accent-text); }
.balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.balance-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.balance-card span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.balance-card strong { display: block; color: var(--accent-text); font-size: clamp(18px, 3vw, 28px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.account-address { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-deep); }
.account-address code { color: var(--accent-text); font-size: 11px; overflow-wrap: anywhere; }
.copy-button { flex-shrink: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-size: 11px; }
.args-preview { max-height: 420px; margin: 0; padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; color: var(--accent-text); background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state, .error-state { padding: 30px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.error-state { color: var(--accent-text); }
.explorer-principles { padding: 0 0 86px; }
.protocol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.protocol-grid article { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.protocol-grid article > span { display: block; margin-bottom: 20px; color: var(--accent-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .1em; }
.protocol-grid h3 { margin: 0 0 13px; font-size: 23px; letter-spacing: -.04em; }
.protocol-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.explorer-page .site-footer { padding: 28px 0; }
.explorer-page .footer-bottom { display: flex; justify-content: space-between; gap: 24px; }
.explorer-page .footer-bottom p { margin: 0; }
.explorer-page .footer-bottom a { color: inherit; }

@media (max-width: 1000px) {
  .explorer-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .explorer-hero { padding: 60px 0 50px; }
  .explorer-content { padding: 46px 0 60px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: 1fr; }
  .explorer-page .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .explorer-hero { padding: 40px 0 34px; }
  .explorer-hero h1 { font-size: 52px; }
  .explorer-search { margin-top: 28px; }
  .explorer-search-row { flex-direction: column; }
  .explorer-search-row .button { width: 100%; }
  .explorer-network { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 20px; }
  .explorer-network .network-status { grid-column: 1 / -1; }
  .explorer-panel, .detail-card { padding: 20px 16px; }
  .explorer-panel-heading { align-items: flex-start; }
  .explorer-panel-heading h2 { font-size: 25px; }
  .record-row-top { align-items: flex-start; }
  .record-row-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .record-time { white-space: nowrap; }
  .detail-header { flex-direction: column; gap: 14px; }
  .account-address { align-items: flex-start; }
}


.pagination-controls { display: flex; gap: 10px; margin-top: 18px; }
.pagination-controls .load-more { flex: 1; width: auto; margin-top: 0; }

.assets-panel { margin-top: 22px; }
.asset-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asset-symbol { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-text); background: var(--paper-deep); font-size: 10px; font-weight: 850; overflow: hidden; }
.asset-name { min-width: 0; }
.asset-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-name small { color: var(--muted); font-size: 10px; }
.asset-balance-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.asset-balance-list .balance-card strong { font-size: 20px; }
.asset-balance-list .balance-card a { color: inherit; text-decoration: none; }
.asset-balance-list .balance-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.asset-event-details { margin: 7px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .asset-balance-list { grid-template-columns: 1fr; }
  .record-row-top .asset-identity { align-items: flex-start; }
}

.explorer-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.explorer-emblem { width: 180px; height: auto; }

@media (max-width: 780px) {
  .explorer-hero .container { grid-template-columns: 1fr; gap: 26px; }
  .explorer-emblem { width: 110px; }
}
