.sp-main { max-width: 1160px; margin-inline: auto; }
.sp-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.sp-header h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.04; letter-spacing: -.055em; margin: 7px 0 0; }
.sp-network { display: flex; align-items: center; gap: 7px; color: #b3d3c4; font-size: .8rem; font-weight: 700; margin: 0; }
.sp-network span { width: 7px; height: 7px; border-radius: 50%; background: #a8dbc3; }
.sp-wallet, .sp-holdings, .sp-connection { background: #15111c; border: 1px solid #342941; border-radius: 14px; }
.sp-wallet, .sp-holdings-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sp-wallet { padding: 12px 16px; margin-bottom: 12px; }
.sp-wallet-identity, .sp-wallet-actions, .sp-controls, .sp-trade { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sp-wallet-label { color: var(--muted); font-size: .8rem; }
.sp-wallet-identity a { color: #ddcbee; font-family: ui-monospace, monospace; text-decoration: underline; text-underline-offset: 3px; }
.sp-summary { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.sp-summary-card { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 17px 18px; background: #191322; border: 1px solid #392d46; border-radius: 14px; }
.sp-summary-sol { background: linear-gradient(115deg, #241a32, #181320); border-color: #54405f; }
.sp-summary-card span, .sp-summary-card small { color: var(--muted); font-size: .8rem; }
.sp-summary-card small:empty, #sol-portfolio-status:empty { display: none; }
.sp-summary-card strong { color: var(--text); font-size: clamp(1.15rem, 2.8vw, 1.75rem); letter-spacing: -.02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sp-holdings-header { padding: 16px; }
.sp-holdings h2, .sp-connection h2 { margin: 0; font-size: 1.15rem; }
.sp-controls input, .sp-controls select { width: auto; min-width: 0; border: 1px solid #4b3b57; border-radius: 8px; padding: 8px 10px; color: var(--text); background: #100d17; font: inherit; font-size: .85rem; }
.sp-controls input { width: min(188px, 100%); }
#sol-portfolio-status { margin: 0 16px 12px; color: var(--muted); font-size: .85rem; }
.sp-columns:not([hidden]), .sp-tokens li { display: grid; grid-template-columns: minmax(130px, 1.5fr) minmax(85px, 1fr) minmax(73px, .8fr) minmax(110px, auto); gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid #302638; }
.sp-columns { color: var(--muted); font-size: .78rem; background: #100d17; }
.sp-columns > :not(:first-child), .sp-token-number { text-align: right; }
.sp-tokens { list-style: none; margin: 0; padding: 0; }
.sp-asset { display: flex; align-items: center; min-width: 0; gap: 9px; }
.sp-asset-icon { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 9px; background: #30223d; color: #dec1f1; font-size: .76rem; font-weight: 750; }
.sp-asset-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sp-asset-info { min-width: 0; }
.sp-asset-info > a, .sp-asset-info > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-asset-info > a { font-weight: 750; color: var(--text); }
.sp-asset-info > a:hover { text-decoration: underline; }
.sp-asset-info > small { color: var(--muted); font-size: .75rem; margin-top: 3px; }
.sp-token-number { font-variant-numeric: tabular-nums; font-size: .88rem; overflow-wrap: anywhere; }
.sp-trade { justify-content: end; }
.sp-trade .button { padding: 6px 10px; min-height: 34px; font-size: .8rem; }
.sp-trade .sp-sell { color: #ffbdcd; border-color: #674052; }
.sp-empty { color: var(--muted); padding: 24px 16px; border-top: 1px solid #302638; margin: 0; }
.sp-connection { padding: 24px; }
.sp-connection p { color: var(--muted); margin: 6px 0 16px; }
@media (max-width: 630px) {
  .sp-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sp-summary-sol { grid-column: 1 / -1; }
  .sp-columns:not([hidden]) { display: none; }
  .sp-tokens li { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .sp-token-balance { font-weight: 700; }
  .sp-token-value { grid-area: 2 / 1; text-align: left; color: var(--muted); }
  .sp-token-value::before { content: "Est. value "; }
  .sp-trade { grid-area: 2 / 2; }
  .sp-trade .button { min-height: 38px; }
}
