/* Token identity and metrics share the scan's right-hand column in both themes. */
#view-scan .scan-sidebar {min-width:0;display:flex;flex-direction:column;gap:16px}
#view-scan .scan-sidebar:has(#tokenHead:empty):has(#scanMetrics:empty) {display:none}
#view-scan #tokenHead {
  padding:0 0 16px;margin:0;gap:14px;border-bottom:1px solid var(--line);
}
#view-scan #tokenHead:empty {display:none}
#view-scan #tokenHead .th-id {width:100%;align-items:flex-start;gap:9px}
#view-scan #tokenHead .th-icon {width:34px;height:34px;margin-top:2px}
#view-scan #tokenHead .th-id>div:not(.th-icon) {flex:1;min-width:0}
#view-scan #tokenHead .th-name {font-size:22px;line-height:1.25;overflow-wrap:anywhere}
#view-scan #tokenHead .th-star {flex:0 0 auto;margin-left:auto}
#view-scan #tokenHead .th-addr {max-width:100%;margin-top:10px}
#view-scan #tokenHead .th-price {margin-left:0;width:100%;gap:8px;flex-wrap:wrap}
#view-scan #tokenHead .th-price .p {font-size:26px;overflow-wrap:anywhere}
#view-scan .scan-workspace:has(#scanMetrics:empty) .scan-sidebar {grid-column:1/-1}
/* Blocked-scan messages are rendered in tokenHead; keep them visible here. */
#view-scan.blocked>.scan-workspace {display:block !important}
#view-scan.blocked .scan-main {display:none !important}
#view-scan.blocked #tokenHead {display:block;padding:0;border:0}
@media(max-width:1079px) {
  #view-scan .scan-sidebar {order:-1}
  #view-scan .scan-sidebar #scanMetrics {order:0}
}
