.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 #315744; border-radius: 5px; background: #12271d; color: #9af4c1; 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: #213b30; color: #c5f8da; }
.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: #b9e8c9; 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: #c5f8da; font-size: 10px; line-height: 18px; }
.recipient-line small { color: #83b69a; font-size: 9px; white-space: nowrap; }
.recipient-line em { color: #83b69a; 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 #315344; border-radius: 9px; background: #12271d; 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 #315744; border-radius: 999px; color: #a9e9c4; 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 #344239; border-radius: 6px; background: #0b100d; 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: #bdcec4; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.chain-switch a:hover { background: #1b2b21; color: #fff; }
.chain-switch a[aria-current="page"] { background: #45c983; color: #07140c; }
.chain-switch a:focus-visible { outline: 2px solid #eef6f0; 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:#213b30; }
.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; }
