:root{
  --bg:#f5f7fb; --card:#fff; --text:#182b46; --muted:#66758c; --line:#dfe6f0; --soft:#eef3fb;
  --primary:#245ee8; --primary-dark:#1b4bc2; --in:#24735a; --in-bg:#e7f5ef; --out:#b42318; --out-bg:#fdecea;
  --warn:#9a6700; --warn-bg:#fff6df; --radius:14px; --shadow:0 1px 2px rgba(24,43,70,.05),0 6px 20px rgba(24,43,70,.05);
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 Inter,-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif}
a{color:var(--primary);text-decoration:none} a:hover{text-decoration:underline}
button{font:inherit;cursor:pointer}
[hidden]{display:none!important}
.shell{max-width:1240px;margin:0 auto;padding:0 24px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-logo-link{display:flex;flex-shrink:0;line-height:0}
.brand-logo-link:hover{text-decoration:none}
.brand img{border-radius:10px;display:block}
.brand-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;line-height:1.15}
.brand-name{font-weight:700;font-size:19px;color:var(--text);text-decoration:none;white-space:nowrap}
.brand-name:hover{text-decoration:none;color:var(--primary)}
.site-badge{display:inline-flex;align-items:center;gap:5px;margin:0;border:1px solid #9de8dc;background:linear-gradient(180deg,#e7fbf7,#d2f5ee);color:#0a7f72;font:700 11.5px/1 var(--mono),ui-monospace,monospace;letter-spacing:.01em;padding:3px 9px 3px 7px;border-radius:999px;cursor:pointer;box-shadow:0 1px 0 rgba(10,127,114,.08);white-space:nowrap;max-width:100%;transition:background .15s,border-color .15s,transform .1s}
.site-badge:hover{background:linear-gradient(180deg,#d8f8f1,#bff0e6);border-color:#6fd4c4;text-decoration:none}
.site-badge:active{transform:translateY(1px)}
.site-badge:focus-visible{outline:2px solid #12b8a8;outline-offset:2px}
.site-badge-dot{width:7px;height:7px;border-radius:50%;background:#12b8a8;box-shadow:0 0 0 3px rgba(18,184,168,.22);flex-shrink:0}
.site-badge-host{font-weight:800;color:#06665c;font-size:12px}
.site-badge.copied{background:#0a7f72;border-color:#0a7f72;color:#fff}
.site-badge.copied .site-badge-dot{background:#bbf7d0;box-shadow:0 0 0 3px rgba(187,247,208,.35)}
.site-badge.copied .site-badge-host{color:#fff;opacity:1}
.hero-badges{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.site-badge-hero{font-size:12.5px;padding:4px 12px 4px 9px;gap:6px}
.site-badge-hero .site-badge-host{font-size:13px}
.footer-domain{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.site-badge-footer{font-size:12px;padding:3px 10px}
.nav-note{color:var(--muted);font-size:13px}
.nav-right{display:flex;align-items:center;gap:14px}
.tz-switch{display:inline-flex;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:2px}
.tz-switch button{border:0;background:transparent;color:var(--muted);font-size:12.5px;padding:3px 11px;border-radius:999px;white-space:nowrap}
.tz-switch button[aria-pressed=true]{background:#fff;color:var(--primary);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.tz-switch button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}

.hero{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:32px 36px 26px;box-shadow:var(--shadow)}
.kicker{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--primary);background:var(--soft);padding:3px 10px;border-radius:999px}
.hero h1{margin:10px 0 6px;font-size:30px;line-height:1.25}
.intro{margin:0 0 20px;color:var(--muted)}
.field-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.field-heading label{font-weight:600;font-size:14px}
.link-btn{background:none;border:0;color:var(--primary);padding:2px 4px;font-size:14px}
.query-row{display:flex;gap:12px}
.input-wrap{flex:1;position:relative;display:flex;align-items:center}
.input-wrap svg{position:absolute;left:16px;width:20px;height:20px;fill:none;stroke:#8a98ad;stroke-width:2;stroke-linecap:round}
.input-wrap input{width:100%;height:58px;border:1.5px solid var(--line);border-radius:14px;padding:0 44px 0 48px;font:16px var(--mono);color:var(--text);background:#fbfcfe;outline:none;transition:border-color .15s,box-shadow .15s}
.input-wrap input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(36,94,232,.12);background:#fff}
.clear-btn{position:absolute;right:10px;width:30px;height:30px;border-radius:50%;border:0;background:#edf1f7;color:var(--muted);font-size:18px;line-height:1}
.primary{height:58px;min-width:120px;border:0;border-radius:14px;background:var(--primary);color:#fff;font-weight:700;font-size:16px;padding:0 26px}
.primary:hover{background:var(--primary-dark)} .primary:disabled{opacity:.6;cursor:wait}
.form-message{margin:10px 0 0;color:var(--muted);font-size:13px;min-height:21px}
.form-message.error{color:var(--out)}
.examples{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:4px 12px;font-size:13px;color:var(--muted)}
.chip:hover{border-color:var(--primary);color:var(--primary)}

/* 查看结果时的紧凑搜索区：标题、输入框、查询按钮一行 */
.hero.compact{padding:12px 18px;border-radius:16px;display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
.hero.compact .kicker,.hero.compact .hero-badges,.hero.compact .intro,.hero.compact .examples{display:none}
.hero.compact h1{margin:0;font-size:17px;white-space:nowrap}
.hero.compact #search{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
.hero.compact .field-heading{display:contents}
.hero.compact .field-heading label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hero.compact #paste{order:2}
.hero.compact .query-row{order:1;flex:1;min-width:0;gap:8px}
.hero.compact .input-wrap input{height:42px;border-radius:11px;font-size:14.5px;padding-left:42px}
.hero.compact .input-wrap svg{left:14px;width:18px;height:18px}
.hero.compact .primary{height:42px;min-width:84px;padding:0 18px;border-radius:11px;font-size:15px}
.hero.compact .form-message{order:3;flex-basis:100%;margin:4px 0 0;min-height:0;font-size:12.5px}
.hero.compact .form-message:not(.error){display:none}
.welcome{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0}
.feature{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.feature span{color:var(--muted);font-size:13px}

#results{margin-top:12px;display:flex;flex-direction:column;gap:16px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px 24px;box-shadow:var(--shadow)}
.section-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.section-heading h2{margin:0;font-size:18px}
.section-heading .muted{margin-left:auto}
.muted{color:var(--muted);font-size:13px}
.quiet{display:inline-flex;align-items:center;gap:4px;height:34px;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:10px;padding:0 12px;font-size:13px;white-space:nowrap}
.quiet:hover{border-color:var(--primary);color:var(--primary);text-decoration:none}
.quiet:disabled{opacity:.45;cursor:not-allowed;border-color:var(--line);color:var(--text)}

.id-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 16px;background:var(--soft);border-radius:12px;margin-bottom:16px}
.id-main{flex:1;min-width:0}
.small-label{display:block;font-size:12px;color:var(--muted)}
.id-value{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.id-value b{font:600 16px var(--mono);word-break:break-all}
.id-actions{display:flex;gap:8px;flex-wrap:wrap}

.badge{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:#edf1f7;color:var(--muted)}
.badge.ok{background:var(--in-bg);color:var(--in)} .badge.bad{background:var(--out-bg);color:var(--out)}
.badge.warn{background:var(--warn-bg);color:var(--warn)} .badge.info{background:var(--soft);color:var(--primary)}

.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.metric{border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;background:#fff;min-width:0}
.metric .label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.metric .value{font-size:24px;font-weight:700;margin-top:6px;word-break:break-all;line-height:1.3}
.metric .value.long{font-size:20px}
.metric .value small{white-space:nowrap;font-size:13px;font-weight:500;color:var(--muted);margin-left:4px}
.metric .sub{color:var(--muted);font-size:12px;margin-top:4px}
.coin{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;font-weight:800;color:#fff}
.coin.trx{background:#e5262c}.coin.usdt{background:#26a17b}.coin.en{background:#f0a02a}.coin.bw{background:#4c7cf0}
.bar{height:6px;border-radius:6px;background:#edf1f7;margin-top:10px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--primary);border-radius:6px}

.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;margin:16px 0 0}
.detail-grid div{padding:11px 0;border-bottom:1px dashed var(--line);min-width:0}
.detail-grid dt{font-size:12px;color:var(--muted)}
.detail-grid dd{margin:2px 0 0;font-weight:600;word-break:break-all}
.detail-grid dd .mono,.mono{font-family:var(--mono);font-weight:500}

.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:14px}
.tabs button{border:0;background:none;padding:10px 14px;font-weight:600;color:var(--muted);border-bottom:2.5px solid transparent;margin-bottom:-1px;display:flex;align-items:center;gap:8px}
.tabs button[aria-pressed=true]{color:var(--primary);border-bottom-color:var(--primary)}
.filter{display:inline-flex;background:#edf1f7;border-radius:10px;padding:3px;gap:2px;margin-bottom:12px}
.filter button{border:0;background:none;border-radius:8px;padding:5px 14px;font-size:13px;color:var(--muted)}
.filter button[aria-pressed=true]{background:#fff;color:var(--text);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.section-message{color:var(--muted);font-size:13px;margin:0 0 10px}
.section-message.error{color:var(--out)}

.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
table{width:100%;border-collapse:collapse;font-size:14px}
th{background:#f8fafd;color:var(--muted);font-weight:600;font-size:12.5px;text-align:left;padding:10px 14px;white-space:nowrap;border-bottom:1px solid var(--line)}
td{padding:11px 14px;border-bottom:1px solid #edf1f6;white-space:nowrap;vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fafcff}
td.num,th.num{text-align:right}
.dir{display:inline-flex;height:22px;align-items:center;padding:0 8px;border-radius:6px;font-size:12px;font-weight:700}
.dir.in{background:var(--in-bg);color:var(--in)} .dir.out{background:var(--out-bg);color:var(--out)} .dir.self{background:#edf1f7;color:var(--muted)}
.amt{font-weight:700;font-variant-numeric:tabular-nums} .amt.in{color:var(--in)} .amt.out{color:var(--out)}
.amt .unit{font-weight:500;color:var(--muted);font-size:12px;margin-left:3px}
.addr-link{font-family:var(--mono);font-size:13.5px}
.empty{padding:36px 10px;text-align:center;color:var(--muted)}
.pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin-top:14px}
.pg-main{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.pg-side{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-left:auto}
.pagination .pg{height:32px;padding:0 10px;justify-content:center}
.pagination .pg.num{min-width:34px;padding:0 6px;font-variant-numeric:tabular-nums}
.pagination .pg[aria-current=page]{background:var(--primary);border-color:var(--primary);color:#fff;opacity:1;font-weight:700;cursor:default}
.pg-gap{color:var(--muted);padding:0 2px;user-select:none}
.page-info{color:var(--muted);font-size:13px}
.pg-jump{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.pg-input{width:58px;height:32px;border:1px solid var(--line);border-radius:8px;padding:0 6px;font:13px inherit;text-align:center;color:var(--text);background:#fff;-moz-appearance:textfield}
.pg-input::-webkit-outer-spin-button,.pg-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pg-input:focus,.pg-size:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(36,94,232,.12)}
.pg-size{height:32px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font:13px inherit;color:var(--text);background:#fff}

/* 筛选条：方向/资源/类型 + 金额区间 */
.dir.reclaim{background:var(--warn-bg);color:#b54708}
.res-tag{display:inline-flex;height:22px;align-items:center;padding:0 8px;border-radius:6px;font-size:12px;font-weight:600;background:#fff4e5;color:#b54708}
.res-tag.bandwidth{background:#e8f1ff;color:#1b4bc2}
.qty{display:block;color:var(--muted);font-size:12px;font-weight:500}
.c-dir .badge{margin-left:4px;font-size:11px}
.detail-btn{height:28px;padding:0 10px;font-size:13px}
.c-more{text-align:right}
/* 详情弹窗 */
.detail-dialog{border:0;border-radius:16px;padding:0;width:min(640px,94vw);max-height:88vh;box-shadow:0 20px 60px rgba(24,43,70,.3);color:var(--text)}
.detail-dialog::backdrop{background:rgba(24,43,70,.45)}
.dlg-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}
.dlg-head h3{margin:0;font-size:17px}
.dlg-close{border:0;background:none;font-size:26px;line-height:1;color:var(--muted);padding:0 4px}
.dlg-body{padding:12px 18px 18px}
.kv-list{margin:0}
.kv{display:grid;grid-template-columns:128px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #edf1f6;align-items:start}
.kv dt{color:var(--muted);font-size:13px}
.kv dd{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;word-break:break-all;font-size:14px}
.kv .mono{font-family:var(--mono);font-size:13px}
.kv .muted{color:var(--muted);font-size:12.5px}
.copy-btn{border:1px solid var(--line);background:#fff;border-radius:6px;font-size:12px;padding:1px 8px;color:var(--primary)}
.dlg-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:14px}
.dlg-actions .quiet{display:inline-flex;align-items:center}

.perm-grid{display:grid;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.perm-card{border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;min-width:0}
.perm-card header{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.perm-card h3{margin:0;font-size:16px}
.perm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.perm-stats div{background:var(--soft);border-radius:10px;padding:8px 10px}
.perm-stats b{display:block;font-size:18px}
.perm-stats span{font-size:12px;color:var(--muted)}
.keys{list-style:none;margin:0 0 12px;padding:0;border:1px solid var(--line);border-radius:10px}
.keys li > span:first-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.keys li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #edf1f6}
.keys li:last-child{border-bottom:0}
.keys .w{font-size:12px;color:var(--muted);white-space:nowrap}
.ops-title{font-size:12px;color:var(--muted);margin:4px 0 6px}
.ops{display:flex;flex-wrap:wrap;gap:6px}
.op{font-size:12px;background:#f3f6fb;border:1px solid #e5ebf4;border-radius:7px;padding:2px 8px}
.op em{font-style:normal;color:var(--muted);margin-right:4px;font-family:var(--mono)}
.op.hl{background:var(--warn-bg);border-color:#f3dfa6}
details.perm-details summary{cursor:pointer;color:var(--primary);font-size:13px;margin:4px 0}
.notice{border-radius:12px;padding:10px 14px;font-size:13.5px;margin-bottom:14px;background:var(--soft);color:var(--text)}
.notice.warn{background:var(--warn-bg);color:#6b4b00}
.notice.bad{background:var(--out-bg);color:var(--out)}

.state{padding:40px 20px;text-align:center;color:var(--muted)}
.state .retry{margin-top:12px}
.spinner{width:28px;height:28px;border:3px solid #dbe4f3;border-top-color:var(--primary);border-radius:50%;margin:0 auto 12px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton{background:linear-gradient(90deg,#eef2f8 25%,#f7f9fc 50%,#eef2f8 75%);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:6px;color:transparent!important}
@keyframes sk{to{background-position:-200% 0}}

.footer{color:var(--muted);font-size:13px;text-align:center;padding:26px 0 36px}
.footer p{margin:4px 0}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#182b46;color:#fff;padding:8px 16px;border-radius:10px;font-size:14px;z-index:9}

@media (max-width:1000px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .welcome{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .shell{padding:0 12px}
  .nav{padding:12px 2px;gap:10px} .nav-note{display:none} .tz-switch button{padding:3px 9px;font-size:12px}
  .brand{gap:8px} .brand img{width:34px;height:34px} .brand-name{font-size:17px}
  .site-badge{font-size:10.5px;padding:2px 7px 2px 6px;gap:4px}
  .site-badge-dot{width:6px;height:6px;box-shadow:0 0 0 2px rgba(18,184,168,.22)}
  .site-badge-hero{font-size:11.5px;padding:3px 10px 3px 8px}
  .hero{padding:20px 16px;border-radius:16px}
  .hero h1{font-size:22px}
  .intro{font-size:14px}
  .query-row{flex-direction:column;gap:10px}
  .input-wrap input{height:52px;font-size:14px}
  .primary{height:48px;width:100%}
  .panel{padding:16px 14px;border-radius:16px}
  .metrics{gap:10px}
  .metric{padding:12px}
  .metric .value{font-size:18px}
  .detail-grid{grid-template-columns:1fr 1fr;gap:0 14px}
  .detail-grid div{padding:8px 0}
  .detail-grid dd{font-size:14px}
  .section-heading .muted{margin-left:0;flex-basis:100%;order:3;font-size:12px}
  .section-heading .quiet{margin-left:auto}
  .id-bar{flex-direction:column;align-items:stretch;gap:10px;padding:12px}
  .id-actions .quiet{flex:1;justify-content:center}
  .metric .value.long{font-size:16px}
  .welcome{grid-template-columns:1fr}
  .perm-grid{grid-template-columns:1fr}
  .id-value b{font-size:13.5px}
  .tabs{gap:2px;overflow-x:auto}
  .tabs button{padding:8px 8px;font-size:13.5px;white-space:nowrap;gap:5px;flex:none}
  /* 表格转卡片 */
  .table-wrap{border:0;overflow:visible}
  table,tbody,tr,td{display:block;width:100%}
  thead{display:none}
  tbody tr{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin-bottom:10px;background:#fff}
  td{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border:0;white-space:normal}
  td::before{content:attr(data-label);color:var(--muted);font-size:12.5px;flex:none}
  td.num{text-align:right}
  td > *{min-width:0;text-align:right;word-break:break-all}
  /* 转账记录：紧凑卡片 */
  .records-table tbody tr{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"dir amt amt" "addr addr st" "time time hash";gap:6px 10px;align-items:center;padding:10px 12px}
  .records-table td{display:block;padding:0;width:auto}
  .records-table td::before{display:none}
  .records-table .c-dir{grid-area:dir}.records-table .c-amt{grid-area:amt;text-align:right}
  .records-table .c-addr{grid-area:addr}.records-table .c-st{grid-area:st;text-align:right}
  .records-table .c-time{grid-area:time;color:var(--muted);font-size:12.5px}.records-table .c-hash{grid-area:hash;text-align:right;font-size:12.5px}
  .records-table .amt{font-size:16px}
  .records-table tbody tr{grid-template-columns:auto 1fr auto auto;grid-template-areas:"dir amt amt amt" "addr addr st st" "time time hash more"}
  .resource-table tbody tr{grid-template-areas:"dir res amt amt" "addr addr st st" "time time hash more"}
  .records-table .c-res{grid-area:res}.records-table .c-more{grid-area:more}
  .records-table .qty{text-align:right}
  .detail-dialog{width:100vw;max-width:100vw;max-height:92vh;margin:auto 0 0;border-radius:16px 16px 0 0}
  .kv{grid-template-columns:1fr;gap:2px}
}
/* 资源记录：当前全网质押比 / 详情弹窗里的资源数量 */
.ratio-line{margin:6px 0 0;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.ratio-line[hidden]{display:none}
.ratio-line .ratio-note{opacity:.8}
.amt.big{font-size:18px}
.c-amt .qty{margin-top:1px}

/* 时间筛选（按所选时区：本地时间 / UTC） */

/* 收到 / 转出统计 */
.spinner.small{width:18px;height:18px;border-width:2px;margin:0;flex:none}
.rstats{width:100%;border-collapse:collapse;font-size:13px}
.rstats th,.rstats td{padding:7px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.rstats thead th{font-size:12.5px;color:var(--muted);font-weight:600;background:#f6f8fc}
.rstats .num{text-align:right;font-variant-numeric:tabular-nums}
.rstats td b{display:block;font-weight:600}
.rstats .rs-q{display:block;font-weight:600;color:var(--text)}
.rstats small{display:block;color:var(--muted);font-size:12px}
.rstats td.net{background:#f6f8fc}
.rstats tbody tr:last-child th,.rstats tbody tr:last-child td{border-bottom:0}
@media (max-width:700px){
  .rstats tbody tr{padding:8px 10px;margin-bottom:8px;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
  .rstats tbody th[scope=row]{display:block;grid-column:1 / -1;padding:0;border:0;background:none}
  .rstats tbody td,.rstats tbody td.num{display:block;padding:0;border:0;text-align:left;width:auto}
  .rstats tbody td::before{display:block;font-size:12px;margin-bottom:1px}
  .rstats tbody td > *{text-align:left}
  .rstats tbody td b{display:inline}
  .rstats tbody td .rs-q{display:block;margin:0;white-space:nowrap}
  .rstats tbody td.net{background:none;border-top:1px dashed var(--line);padding-top:6px}
  .rstats tbody td.net .rs-q{margin-left:0}
}

/* 地址 / 交易概览：更紧凑（结果区多给列表空间） */
#results .panel{padding:16px 20px}
#results .section-heading{margin-bottom:10px}
#results .id-bar{padding:9px 14px;margin-bottom:12px;gap:10px 16px}
#results .metrics{gap:10px}
#results .metric{padding:10px 14px}
#results .metric .value{font-size:20px;margin-top:2px}
#results .metric .value.long{font-size:17px}
#results .metric .sub{margin-top:1px}
#results .metric .bar{margin-top:6px;height:5px}
#results .detail-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:0 20px;margin-top:10px}
#results .detail-grid div{padding:6px 0}
#results .detail-grid dd{font-size:14px;margin-top:0}
@media (max-width:700px){
  .hero.compact{padding:10px 12px;gap:4px 10px}
  .hero.compact h1{font-size:15px;flex:1}
  .hero.compact #search{flex-basis:100%}
  .hero.compact .query-row{flex-direction:row}
  .hero.compact .input-wrap input{height:42px;font-size:13px;padding:0 36px 0 36px}
  .hero.compact .input-wrap svg{left:11px;width:16px;height:16px}
  .hero.compact .primary{width:auto;min-width:64px;padding:0 14px}
  .hero.compact #paste{order:0;position:absolute;right:0;top:-29px}
  .hero.compact #search{position:relative}
  #results .panel{padding:12px 12px}
  #results .id-bar{padding:8px 10px;gap:8px}
  #results .id-actions .quiet{height:30px}
  #results .metric{padding:8px 10px}
  #results .metric .value{font-size:15px;line-height:1.25;word-break:normal;overflow-wrap:anywhere}
  #results .metric .value.long{font-size:14px}
  #results .metric .label{font-size:12px;gap:6px}
  #results .metric .sub{font-size:11px}
  #results .id-bar{flex-direction:row;flex-wrap:wrap;align-items:center}
  #results .id-actions{width:100%}
  #results .detail-grid{grid-template-columns:1fr 1fr;gap:0 12px}
  #results .detail-grid div{padding:5px 0}
  #results .detail-grid dd{font-size:13px}
  .pagination{justify-content:center;gap:8px}
  .pg-main{justify-content:center;gap:4px}
  .pg-side{margin-left:0;justify-content:center;width:100%}
  .pagination .pg.edge{display:none}
  .pagination .pg{height:34px;padding:0 9px}
  .pagination .pg.num{min-width:34px}
}

/* ---- 地址页：一张全宽主卡片。顶部一行地址摘要，下面一行标签：链上记录（USDT / TRX / 资源）| 地址概览 / 账户权限 / 质押，一次只显示一个 ---- */
.addr-head{display:flex;align-items:center;justify-content:space-between;gap:6px 18px;flex-wrap:wrap;padding:0 0 12px;margin-bottom:2px;border-bottom:1px solid var(--line);font-size:14px}
.ah-addr{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.ah-addr b{font-size:14px;font-weight:600}
.ah-copy{border:1px solid var(--line);background:#fff;border-radius:8px;height:24px;padding:0 8px;font-size:12px;color:var(--muted);cursor:pointer}
.ah-copy:hover{color:var(--primary);border-color:var(--primary)}
.ah-vals{display:flex;align-items:center;gap:4px 18px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.ah-vals > span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ah-vals b{font-weight:700}
.ah-vals small{color:var(--muted);font-size:12px}
.ah-vals .coin{width:18px;height:18px;font-size:10px}
.main-tabs{margin:0 0 14px;overflow-x:auto;scrollbar-width:none;align-items:stretch}
.main-tabs::-webkit-scrollbar{display:none}
.main-tabs button{white-space:nowrap;flex:none;cursor:pointer}
.main-tabs button:hover{color:var(--text)}
.main-tabs button:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;border-radius:8px 8px 0 0}
.tab-sep{flex:none;width:1px;background:var(--line);margin:9px 6px}
.tabs-note{margin-left:auto;align-self:center;font-size:12.5px;white-space:nowrap;padding-left:12px}
.tab-badge{font-size:11px;font-weight:600;line-height:1;padding:3px 6px;border-radius:999px;background:#e8f0fe;color:var(--primary)}
.rec-box[hidden],.info-panel[hidden]{display:none}
/* 信息面板放在主卡片里：去掉卡片外框；标签已写了面板名，面板大标题隐藏，只留数据时间 / 刷新 / 多签 */
#results .main-card > .info-panel{background:none;border:0;box-shadow:none;padding:0;border-radius:0}
.info-panel > .section-heading > h2{display:none}
.info-panel > .section-heading .muted{margin-left:0}
.info-panel > .section-heading .quiet{margin-left:auto}
#results .info-panel .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.info-panel .perm-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}
@media (max-width:1000px){
  #results .info-panel .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .addr-head{gap:6px 10px;padding-bottom:10px;font-size:13px}
  .ah-addr b{font-size:13px}
  .ah-vals{gap:2px 12px;width:100%}
  .tabs-note{display:none}
  .main-tabs{margin:0 -14px 12px;padding:0 10px}
  .tab-sep{margin:8px 4px}
  .info-panel .perm-grid{grid-template-columns:1fr}
  .info-panel .keys .addr-link{font-size:11.5px;word-break:break-all;overflow-wrap:anywhere}
}

/* ---------- 质押标签 ---------- */
.stk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.stk-block{border:1px solid var(--line);border-radius:14px;padding:14px 16px 10px;background:#fff;min-width:0}
@media (max-width:860px){ .stk-grid{grid-template-columns:1fr;gap:10px} .stk-block{padding:12px 12px 8px} }
.stk-block h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 8px;font-size:14.5px}
.stk-extra{font-size:13px;font-weight:600;color:var(--muted)}
.stk-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:3px 0;font-size:13.5px}
.stk-label{color:var(--muted);flex:none}
.stk-val{display:flex;flex-direction:column;align-items:flex-end;text-align:right;min-width:0}
.stk-amt b{font-weight:700}
.stk-amt small{color:var(--muted);font-size:12px}
.stk-amt.ok b{color:var(--in)}
.stk-sub{color:var(--muted);font-size:12px;line-height:1.5}
.stk-note{color:var(--muted);font-size:12px;margin:6px 0 2px}
.stk-empty{color:var(--muted);font-size:12.5px;padding:6px 0}
.stk-list{list-style:none;margin:8px 0 0;padding:0}
.stk-list li{padding:8px 10px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;font-size:13px;background:#fbfcfe}
.stk-li-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.stk-who small{color:var(--muted)}
.stk-li-amt{margin-top:3px;display:flex;align-items:baseline;gap:4px;flex-wrap:wrap}
.badge.en{background:#fff3e0;color:#9a5b00}.badge.bw{background:#e8f0fe;color:#2453c0}
.stk-li-amt .badge{height:18px;padding:0 6px;font-size:11px}
.stk-more{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:2px 0 6px}
.stk-more button{font-size:12.5px;padding:4px 10px}
.deleg-list.scroll{max-height:440px;overflow-y:auto;padding-right:4px;overscroll-behavior:contain;border-bottom:1px dashed var(--line)}
.stk-list li.locked{border-color:#f3dca6;background:#fffdf7}

/* ---------- 记录筛选：桌面一行紧凑工具条 ---------- */
.fbar{margin:2px 0 10px}
.ftools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fafbfd}
.fgroup{display:inline-flex;align-items:center;gap:7px;min-width:0}
.flabel{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap}
.rec-box .filter{margin:0;padding:2px;gap:1px;border-radius:8px;background:#eceff5}
.rec-box .filter button{height:26px;padding:0 8px;font-size:12.5px;border-radius:6px;white-space:nowrap;line-height:26px}
.rec-box .filter button:hover{color:var(--text)}
.rec-box .filter button[aria-pressed=true]{background:#fff;color:var(--primary);font-weight:600;box-shadow:0 1px 2px rgba(24,43,70,.12)}
.time-wrap{position:relative}
/* 时间：日历图标 + 精确到秒的范围文字，点开浮层选 */
.time-btn{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 9px 0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-size:12.5px;cursor:pointer;max-width:100%}
.time-btn:hover{border-color:#c9d3e2}
.time-btn[aria-expanded=true]{border-color:var(--primary);box-shadow:0 0 0 3px rgba(36,94,232,.12)}
.time-btn.on .cal-ico{color:var(--primary)}
.cal-ico{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}
.time-text{font-family:var(--mono);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.time-btn .caret{width:0;height:0;border:4px solid transparent;border-top-color:var(--muted);margin-top:4px}
.pop.time-pop{left:0;right:auto;width:316px}
.rec-box .time-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px}
.rec-box .time-menu button{height:30px;padding:0 6px}
.time-custom{display:flex;flex-direction:column;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.time-custom[hidden]{display:none}
.amount-filter{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;margin-left:auto}
.amt-range{display:inline-flex;align-items:center;gap:4px}
.amt-input{width:76px;height:30px;border:1px solid var(--line);border-radius:8px;padding:0 9px;font:12.5px var(--mono);color:var(--text);background:#fff;outline:none}
.amt-input:focus,.time-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(36,94,232,.12)}
.amt-input.bad,.time-input.bad{border-color:var(--out);background:var(--out-bg)}
.amt-sep{color:var(--muted);font-size:12px}
.rec-box .quiet{height:30px;padding:0 10px;font-size:12.5px;border-radius:8px}
.rec-box .quiet.apply{background:var(--primary);color:#fff;border-color:var(--primary)}
.rec-box .quiet.apply:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}
.amt-error{flex-basis:100%;text-align:right;color:var(--out);font-size:12px;line-height:1.4}
.amt-error:empty{display:none}
.time-range{font-size:12.5px;font-variant-numeric:tabular-nums}
/* 自定义时间浮层 */
.pop{position:absolute;z-index:20;top:calc(100% + 6px);right:0;width:300px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;
  box-shadow:0 10px 30px rgba(24,43,70,.14),0 2px 6px rgba(24,43,70,.06);display:flex;flex-direction:column;gap:8px}
.pop-title{font-size:12.5px;font-weight:600;color:var(--text)}
.time-field{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.time-field > span{flex:none;width:28px}
.time-input{flex:1;min-width:0;height:30px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font:12.5px var(--mono);color:var(--text);background:#fff;outline:none}
.pop .amt-error{text-align:left}
.pop-foot{display:flex;justify-content:flex-end;gap:6px;margin-top:2px}
/* 手机条（桌面隐藏） */
.fbar-m{display:none}

/* ---------- 统计：一行紧凑小卡片 + ⓘ 说明 ---------- */
.stats-box{margin:0 0 10px}
.stats-box.error{border:1px solid #f3c5c0;background:var(--out-bg);border-radius:10px;padding:8px 12px}
.stats-loading{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);min-height:38px;padding:0 2px}
.stats-loading .quiet{margin-left:auto}
.stats-row{display:flex;align-items:stretch;gap:8px}
.stats-row > .stats-grid,.stats-row > .table-wrap{flex:1;min-width:0}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:7px 12px;min-width:0;position:relative;overflow:hidden}
.stat::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--primary)}
.stat.in::before{background:var(--in)} .stat.out::before{background:var(--out)}
.stat-title{display:inline-flex;align-items:baseline;gap:6px;font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap}
.stat-count{font-weight:500;font-variant-numeric:tabular-nums;font-size:11.5px;color:#8a97ab}
.stat-value{margin-left:auto;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.35}
.stat-value .unit{font-size:11px;font-weight:600;color:var(--muted);margin-left:3px;white-space:nowrap}
.stat.in .stat-value{color:var(--in)} .stat.out .stat-value{color:var(--out)}
.stat-sub{flex-basis:100%;font-size:11px;color:#8a97ab;line-height:1.3;text-align:right}
.stats-i{flex:none;display:inline-flex;align-items:center;gap:5px;align-self:center;height:30px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:12px}
.stats-i:hover,.stats-i[aria-expanded=true]{border-color:var(--primary);color:var(--primary)}
.i-ico{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;border:1.5px solid currentColor;font:700 10.5px/1 Georgia,serif;font-style:italic}
.stats-i.warn{color:var(--warn);border-color:#f0d58c;background:var(--warn-bg)}
.i-hint{white-space:nowrap}
.stats-note{margin:6px 0 0;font-size:12px;color:var(--muted);line-height:1.6;background:#fafbfd;border:1px solid var(--line);border-radius:10px;padding:8px 12px}
.stats-cap{margin:6px 0 0;font-size:12.5px;font-weight:600;color:var(--warn);line-height:1.5}
.stats-note.warn{color:var(--warn);background:var(--warn-bg);border-color:#f3e2b3}
.stats-row.rs .rstats th,.stats-row.rs .rstats td{padding:5px 10px}
.rec-box .section-message{font-size:12px;line-height:1.55;margin:0 0 8px}

/* ---------- 手机：筛选按钮 + 条件小标签 + 底部抽屉 ---------- */
@media (max-width:700px){
  .ftools{display:none}
  .fbar-m{display:flex;align-items:center;gap:8px;min-width:0}
  .f-open{flex:none;display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-size:13px;font-weight:600}
  .f-open[aria-expanded=true],.f-open:active{border-color:var(--primary);color:var(--primary)}
  .f-ico{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
  .f-badge{min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:var(--primary);color:#fff;font-size:11px;line-height:17px;text-align:center;font-weight:700}
  .f-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;flex:1;padding:1px 0}
  .f-chips::-webkit-scrollbar{display:none}
  .f-chip{flex:none;display:inline-flex;align-items:center;gap:2px;height:28px;padding:0 2px 0 10px;border-radius:999px;background:#eaf0fd;color:var(--primary);font-size:12.5px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
  .f-chip .chip-x{border:0;background:none;color:inherit;width:24px;height:24px;border-radius:50%;font-size:15px;line-height:1;padding:0;opacity:.7}
  .f-chip .chip-x:active{background:rgba(36,94,232,.14);opacity:1}
  .f-none{font-size:12.5px;color:var(--muted);white-space:nowrap}
  .sheet-wrap{position:fixed;inset:0;z-index:50;background:rgba(15,25,45,0);transition:background .2s}
  .sheet-wrap.open{background:rgba(15,25,45,.42)}
  .sheet{position:absolute;left:0;right:0;bottom:0;max-height:86vh;display:flex;flex-direction:column;background:#fff;border-radius:16px 16px 0 0;
    box-shadow:0 -8px 30px rgba(24,43,70,.18);transform:translateY(100%);transition:transform .2s ease-out}
  .sheet-wrap.open .sheet{transform:none}
  .sheet-head{position:relative;display:flex;align-items:center;justify-content:center;padding:14px 16px 8px;font-size:15px}
  .sheet-grip{position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:4px;background:#d5dce8}
  .sheet-close{position:absolute;right:10px;top:8px;width:32px;height:32px;border:0;border-radius:50%;background:none;font-size:22px;color:var(--muted);line-height:1}
  .sheet-body{overflow-y:auto;padding:4px 16px 8px;display:flex;flex-direction:column;gap:14px}
  .sheet-label{font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:6px}
  .sheet .filter{display:grid;grid-template-columns:repeat(3,1fr);width:100%;gap:2px;padding:3px;border-radius:10px}
  .sheet .filter button{height:34px;line-height:34px;font-size:13.5px;border-radius:8px;padding:0 4px}
  .sheet-range{display:flex;align-items:center;gap:6px;margin-top:8px;font:12.5px var(--mono);color:var(--text);font-variant-numeric:tabular-nums}
  .sheet-range[hidden]{display:none}
  .sheet-range .f-ico{color:var(--primary)}
  .f-cal{padding:0 9px}
  .f-cal.on{border-color:var(--primary);color:var(--primary)}
  .sheet-custom{display:flex;flex-direction:column;gap:8px;margin-top:8px;padding:10px;background:var(--soft);border-radius:10px}
  .sheet-custom .time-input{height:36px;font-size:14px}
  .sheet-custom .amt-error{text-align:left}
  .sheet-amt{display:flex;align-items:center;gap:8px}
  .sheet-amt .amt-input{flex:1;width:auto;min-width:0;height:38px;font-size:14px;border-radius:10px}
  .sheet .amt-error{text-align:left;margin-top:4px;display:block}
  .sheet .amt-error:empty{display:none}
  .sheet-foot{display:flex;gap:10px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
  .sheet-foot .quiet{flex:1;justify-content:center;height:42px;font-size:14.5px;border-radius:10px}
  .sheet-foot .quiet:not(.apply){flex:0 0 32%}
  body.sheet-open{overflow:hidden}
  /* 统计：一行三个小数字，放不下时数值换行 */
  .stats-row{gap:6px}
  .stats-row.rs{flex-direction:column}
  .stats-row.rs .stats-i{align-self:flex-end}
  .stats-grid{gap:6px}
  .stat{flex-direction:column;align-items:flex-start;gap:1px;padding:6px 8px 6px 10px}
  .stat::before{top:6px;bottom:6px}
  .stat-title{font-size:11.5px;gap:4px}
  .stat-count{font-size:10.5px}
  .stat-value{margin:0;font-size:13px;line-height:1.3;overflow-wrap:normal}
  .v-int,.v-frac{display:inline-block}
  .v-frac{font-size:11.5px;opacity:.85}
  .stat-value .unit{display:none}
  .stat-sub{text-align:left;font-size:10.5px}
  .stats-i{height:auto;align-self:stretch;padding:0 6px;font-size:11px;flex-direction:column;justify-content:center;gap:2px}
  .stats-row:not(.rs) .i-hint{display:none}
}

/* 地址点一下复制（data-addr），旁边放大镜图标 = 查询这个地址 */
.addr{display:inline-flex;align-items:center;gap:3px;max-width:100%;min-width:0;vertical-align:middle}
.addr.full{flex-wrap:nowrap}
.addr-copy{cursor:pointer;color:var(--primary);border-radius:4px;padding:0 2px;margin:0 -2px;transition:background .15s,color .15s;overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent}
.addr-copy:hover{background:#eaf1ff;text-decoration:underline dotted;text-underline-offset:3px}
.addr-copy:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
.addr-copy.copied,[data-addr].copied{background:var(--in-bg);color:var(--in)}
.ah-addr b .addr-copy,.id-value b .addr-copy{color:inherit}
.metric .sub .addr-copy{color:inherit}
.addr-go{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;border-radius:5px;color:var(--muted)}
.addr-go:hover{color:var(--primary);background:#eaf1ff;text-decoration:none}
.go-ico{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.toast{z-index:1000;pointer-events:none;box-shadow:0 6px 20px rgba(16,32,60,.25);font-size:13px;padding:7px 14px}
@media (max-width:640px){ .addr-go{width:26px;height:26px} .go-ico{width:14px;height:14px} .toast{bottom:calc(24px + env(safe-area-inset-bottom))} }

/* ---------- 地址分析 ---------- */
.analysis-panel .an-summary{margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#f7f9fd,#fff)}
.analysis-panel .an-summary-line{font-size:16px;font-weight:700;line-height:1.4}
.analysis-panel .an-note{font-size:12.5px;line-height:1.55;margin:6px 0 0}
.analysis-panel .an-section{margin:0 0 18px}
.analysis-panel .an-h{margin:0 0 8px;font-size:15px}
.analysis-panel .an-sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.analysis-panel .an-sec-head .an-h{margin:0}
.analysis-panel .an-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.analysis-panel .an-card{border:1px solid var(--line);border-radius:14px;padding:14px 16px 12px;background:#fff;min-width:0}
.analysis-panel .an-card h3{margin:0 0 8px;font-size:14.5px;display:flex;align-items:center;gap:6px}
.analysis-panel .an-flags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.analysis-panel .an-sides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.analysis-panel .an-side{padding:8px 10px;border-radius:10px;background:#f7f9fc;min-width:0}
.analysis-panel .an-side-lab{font-size:12px;color:var(--muted);margin-bottom:2px}
.analysis-panel .an-side-main{font-size:14px}
.analysis-panel .an-side-amt{font-size:13px;font-variant-numeric:tabular-nums;word-break:break-all}
.analysis-panel .an-net{background:#eef5ff}
.analysis-panel .an-toggle{margin:0}
.analysis-panel .an-cp-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.analysis-panel .an-cp-col{border:1px solid var(--line);border-radius:14px;padding:12px 12px 8px;background:#fff;min-width:0}
.analysis-panel .an-cp-col h4{margin:0 0 8px;font-size:13.5px}
.analysis-panel .an-table{margin:0}
.analysis-panel .an-table table{font-size:13px}
.analysis-panel .an-addr{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.analysis-panel .an-empty{padding:10px 2px}
.analysis-panel .an-loading{padding:18px 4px}
.analysis-panel .perm-grid{margin-top:8px}
.analysis-panel #an-permissions .an-sec-head{align-items:center}

@media (max-width:860px){
  .analysis-panel .an-grid,.analysis-panel .an-cp-body,.analysis-panel .an-sides{grid-template-columns:1fr}
}
/* 窄屏：对手/授权表转卡片（沿用记录表 data-label 模式） */
@media (max-width:700px){
  .analysis-panel .an-table table,.analysis-panel .an-table thead{display:block}
  .analysis-panel .an-table tbody{display:flex;flex-direction:column;gap:8px}
  .analysis-panel .an-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fbfcfe}
  .analysis-panel .an-table td{display:flex;justify-content:space-between;gap:10px;padding:3px 0;border:0;text-align:right}
  .analysis-panel .an-table td::before{content:attr(data-label);color:var(--muted);font-size:12px;flex:none;text-align:left}
  .analysis-panel .an-table thead{display:none}
}

/* 地址标签 / CSV / 授权状态 */
.addr-label{display:inline-block;margin-left:6px;padding:0 6px;border-radius:4px;font-size:12px;line-height:18px;background:#eef3ff;color:#2a4a9a;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.addr-label.risk{background:#fdecec;color:#b42318}
.csv-row{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.csv-row .section-message{flex:1}
.csv-btn{white-space:nowrap;flex:none}
.an-tip{font-size:12px;margin-top:2px}
/* 转账行的资源消耗 */
.cost{display:block;color:var(--muted);font-size:11.5px;font-weight:500;margin-top:2px;white-space:nowrap}
.cost.by-peer::before{content:"对方付 · ";opacity:.75}
@media (max-width:720px){.records-table .cost{text-align:right;white-space:normal}}
