.address-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 116px; max-width: 142px; }
.address-line { display: inline-flex; align-items: center; gap: 3px; min-width: 0; line-height: 16px; }
.copy-button { border: 1px solid #355781; border-radius: 5px; background: #152747; color: #a6c6f3; padding: 1px 4px; font-size: 9px; line-height: 1.2; }
.copy-button:hover { border-color: var(--green); color: var(--lime); }
.remark-pill { max-width: 110px; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; border-radius: 999px; background: #203b63; color: #c5d9f7; }
.remark-edit { border: 0; background: none; color: var(--muted); padding: 0 1px; font-size: 12px; line-height: 1; cursor: pointer; }
.remark-edit:hover { color: var(--green); }
.address-remark { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b8cdf0; font-size: 11px; font-weight: 650; line-height: 13px; }
.recipient-line { display: inline-flex; align-items: center; gap: 3px; min-height: 23px; margin-top: 4px; max-width: 142px; color: #c5d9f7; font-size: 10px; line-height: 18px; }
.recipient-line small { color: #8eabd1; font-size: 9px; white-space: nowrap; }
.recipient-line em { color: #8eabd1; font-size: 9px; font-style: normal; white-space: nowrap; }
.direction.success { color: var(--green); }
.direction.failed { color: #ff7373; }
.direction.neutral { color: var(--muted); }
.direction.pool-add { color: #d4b5ff; }
.profit.positive { color: var(--green); }
.profit.negative { color: #ff7373; }
.buy-success td,.buy-success a,.buy-success .copy-button,.buy-success .remark-edit,.buy-success .address-remark,.buy-success .region-pill,.buy-success .tx-status { color: #70e9a5; }
.sell-success td,.sell-success a,.sell-success .copy-button,.sell-success .remark-edit,.sell-success .address-remark,.sell-success .region-pill,.sell-success .tx-status,.sell-success .direction { color: #91d8f7; }
.buy-failed td:not(:first-child),.buy-failed td:not(:first-child) * { color: var(--text) !important; }
.dialog { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,0,0,.68); }
.dialog[hidden] { display: none; }
.dialog-panel { width: min(460px,calc(100% - 30px)); display: grid; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #0c1914; box-shadow: 0 25px 80px #000; }
.dialog-panel label { display: grid; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.dialog-panel input { width: 100%; padding: 11px; }
.dialog-panel > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.dialog-panel button { padding: 9px 15px; border: 1px solid #355071; border-radius: 9px; background: #152747; color: var(--text); }
.compact-header { min-height: 0; align-items: center; }
.explorer-link,#targetTx { text-decoration: none; }
.explorer-link:hover,#targetTx:hover { color: var(--lime); text-decoration: underline; }
.region-pill { display: inline-block; padding: 2px 7px; border: 1px solid #355781; border-radius: 999px; color: #a9c6ec; font-size: 10px; }
.compact-header h1 { font-size: 18px; letter-spacing: -.01em; }
.search-panel { margin: 10px 0 8px; padding: 10px 12px; }
.search-panel input { padding: 9px 12px; font-size: 12px; }
#searchButton { padding: 0 18px; font-size: 12px; }
.status-line { margin-top: 7px; font-size: 11px; }
.context-bar { grid-template-columns: 2fr repeat(3,1fr); margin-bottom: 7px; border-radius: 9px; }
.context-bar > div { padding: 7px 10px; }
.context-bar span { display: inline; margin: 0 6px 0 0; font-size: 10px; }
.context-bar strong,.context-bar button,.context-bar a { font-size: 10px; }
.token-chooser { margin: 7px 0; }
.token-chip { min-width: 150px; padding: 6px 9px; font-size: 10px; }
.table-head { padding: 10px 13px; }
.table-head h2 { font-size: 14px; }
.amount small { color: var(--muted); font-size: 9px; }
.chain-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid #304362; border-radius: 6px; background: #0b1329; flex: 0 0 auto; }
.chain-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border-radius: 3px; color: #b9c8e2; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.chain-switch a:hover { background: #192b48; color: #fff; }
.chain-switch a[aria-current="page"] { background: #2f578c; color: #ffffff; }
.chain-switch a:focus-visible { outline: 2px solid #eef3ff; outline-offset: 2px; }
header.app-header, header.compact-header { gap: 20px; flex-wrap: wrap; align-items: center; }
header.app-header { padding-right: 150px; }
header.compact-header { justify-content: flex-start; }
@media (max-width: 820px) { header.app-header { padding-right: 0; } .chain-switch { width: fit-content; max-width: 100%; } .chain-switch a { padding: 0 13px; } }

/* Compact copy controls and contract suffix column. */
.copy-button { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; padding:2px; border:0; background:transparent; flex:0 0 18px; vertical-align:middle; }
.copy-button svg { width:12px; height:12px; pointer-events:none; }
.copy-button.copied { color:var(--lime); background:#203b63; }
.copy-button:focus-visible { outline:1px solid var(--green); outline-offset:1px; }
.contract-cell { min-width:88px; max-width:96px; }
th:nth-child(5),td:nth-child(5) { width:112px; padding-left:8px; padding-right:8px; }

/* Block separators use consensus identities, independent from wallet notes. */
.block-header-row td { padding:7px 10px; background:#111e39; border-top:1px solid #365784; border-bottom:1px solid #2b4268; }
.block-header-content { display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:11px; }
.block-badge { padding:2px 6px; border:1px solid #476993; border-radius:3px; color:#b9d2f7; white-space:nowrap; }
.block-proposer-name { max-width:240px; overflow:hidden; text-overflow:ellipsis; color:#eef4ff; }
.block-consensus { color:#8eaad2; }
.block-identity { display:inline-flex; align-items:center; gap:5px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:#a9c6ee; }
.block-identity small { color:#7d9bc5; font-size:10px; }
.block-empty td { color:var(--muted); font-size:11px; padding:8px 13px; }
