/* The address is the explorer link. An independent link keeps the Rysk profile reachable. */
.td-wallet-identity { width:clamp(178px,19vw,265px); max-width:100%; white-space:normal; }
.td-wallet-identity .td-wallet-value { display:inline; font:500 .84rem/1.55 var(--font-mono); color:var(--accent); overflow-wrap:anywhere; text-decoration:underline; text-decoration-color:var(--border-strong); text-underline-offset:3px; }
.td-wallet-identity .td-wallet-value:hover { text-decoration-color:currentColor; }
.td-wallet-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:4px; font:.75rem/1.5 var(--font-sans); }
.td-wallet-actions a { color:var(--text-primary); text-decoration:underline; text-underline-offset:2px; }
.td-wallet-actions span { color:var(--text-muted); }
@media(min-width:1100px) {
    .td-compact-columns .td-wallet-identity { width:42ch; font:.84rem var(--font-mono); }
}
.trader-page .page-intro { padding-bottom:12px; }
.trader-page .td-address-bar { margin-bottom:22px; padding:0 0 16px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; }
.trader-page .td-address-bar .td-meta-label { font-size:.81rem; }
.trader-page #profile-wallet { display:inline; font:500 clamp(.88rem,1.6vw,1.12rem)/1.65 var(--font-mono); color:var(--accent); text-decoration:underline; text-decoration-color:var(--border-strong); text-underline-offset:4px; overflow-wrap:anywhere; }
.trader-page #profile-wallet:hover { text-decoration-color:currentColor; }
.trader-page .td-wallet-links { align-items:center; }
.profile-comparison-grid { display:grid; grid-template-columns:minmax(200px,.93fr) minmax(265px,1.2fr); column-gap:clamp(18px,4vw,58px); align-items:center; padding:21px 0 18px; }
.profile-insight { min-width:0; }
.profile-insight strong { display:block; color:var(--text-primary); font:400 clamp(1.7rem,2.8vw,2.65rem)/1.1 var(--font-serif); letter-spacing:-.025em; max-width:25ch; }
.trader-page .profile-insight p:not(:empty) { margin-top:10px; color:var(--text-secondary); }
.trader-page #profile-mix-basis { border-top:1px solid var(--border); padding-top:12px; font-size:.8rem; margin:0; }
.trader-page .td-profile-row { grid-template-columns:1fr auto; margin-block:8px; gap:4px 10px; }
.trader-page .td-profile-row > span:first-child { font-size:.9rem; }
.trader-page .td-profile-row .td-compare-bar { grid-column:1/-1; order:3; height:8px; }
.trader-page .td-profile-row > span:last-child { align-self:center; }
.trader-page .td-profile-legend { margin:0 0 8px; }
.trader-page .td-profile-legend span { font-size:.8rem; }
.profile-history-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(205px,1fr); gap:clamp(20px,3vw,40px); margin-block:18px 12px; }
.profile-chart-title { margin:0 0 12px; text-transform:none; letter-spacing:0; color:var(--text-secondary); font:550 .9rem/1.5 var(--font-sans); }
.profile-chart-plot { display:grid; grid-template-columns:3.8rem minmax(0,1fr); height:124px; }
.profile-chart-scale { display:flex; align-items:flex-start; justify-content:space-between; flex-direction:column; color:var(--text-muted); font:.73rem var(--font-mono); }
.profile-time-bars { display:flex; min-width:0; align-items:stretch; padding:0 1px; border-block:1px solid var(--border); background:linear-gradient(to bottom,transparent calc(50% - .5px),var(--border) 50%,transparent calc(50% + .5px)); }
.profile-time-bars button { min-width:0; padding:0; flex:1; display:flex; align-items:flex-end; justify-content:center; border:0; background:none; }
.profile-time-bars button i { display:block; width:88%; max-width:48px; background:var(--td-call); border-radius:2px 2px 0 0; }
.profile-time-bars button:hover, .profile-time-bars button:focus-visible { background:var(--bg-hover); }
.profile-time-bars button[aria-pressed="true"] i, .profile-time-bars button:hover i, .profile-time-bars button:focus-visible i { background:var(--td-put); }
.profile-time-axis { display:flex; justify-content:space-between; padding-left:3.8rem; margin-top:6px; color:var(--text-muted); font-size:.77rem; }
.profile-chart-readout { margin-top:8px; color:var(--text-secondary); font-size:.82rem; font-variant-numeric:tabular-nums; }
.profile-asset-chart { display:grid; gap:3px; }
.profile-asset-row { width:100%; display:grid; align-items:center; grid-template-columns:minmax(55px,.7fr) minmax(50px,1fr) 45px; gap:8px; padding:4px 2px; color:var(--text-primary); background:none; border:0; border-radius:2px; text-align:left; font:.82rem/1.4 var(--font-sans); }
button.profile-asset-row:hover, .profile-asset-row[aria-pressed="true"] { background:var(--accent-dim); }
.profile-asset-row > span { overflow-wrap:anywhere; }
.profile-asset-row i { display:block; height:7px; border-radius:2px; overflow:hidden; background:var(--bg-hover); }
.profile-asset-row b { display:block; height:100%; background:var(--td-call); }
.profile-asset-row strong { text-align:right; font:.77rem var(--font-mono); }
.profile-execution-detail { margin:18px 0; }
.profile-execution-detail summary { cursor:pointer; font:550 1.2rem/1.55 var(--font-sans); }
.profile-execution-detail summary small { display:inline-block; font:400 .85rem/1.5 var(--font-sans); color:var(--text-secondary); margin-left:12px; }
.profile-execution-detail[open] .chart-controls { margin-top:18px; }
.profile-execution-detail .td-totals { margin:12px 0; }
.profile-execution-detail .td-totals dd { overflow-wrap:anywhere; font-size:clamp(1rem,1.45vw,1.4rem); }
@media(max-width:740px) {
    .profile-comparison-grid, .profile-history-grid { grid-template-columns:minmax(0,1fr); row-gap:18px; }
    .profile-insight strong { max-width:34ch; }
    .profile-execution-detail summary small { display:block; margin:4px 0 0; }
    .td-wallet-identity { width:clamp(152px,42vw,225px); }
}
