/* One allocation view: distribution, ranked assets and one focused detail. */
body #allocCard.allocation-modern-active { min-width: 0; overflow: hidden; }
body #allocCard.allocation-modern-active :is(.alloc-controls, #allocCanvas, #allocTooltip, #allocInsights, #allocSpotlight, #allocLegend) { display: none !important; }
body #allocCard .allocation-modern { min-width: 0; font-family: var(--font-sans); color: var(--text-primary); }
.allocation-modern-overview { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 1px 0 20px; }
.allocation-modern-value-group { display: grid; gap: 5px; min-width: 0; }
.allocation-modern-eyebrow { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.allocation-modern-total { font-size: clamp(25px, 2.4vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.allocation-modern-count { padding-bottom: 4px; color: var(--text-secondary); font-size: 10px; white-space: nowrap; }
.allocation-modern-bar { display: flex; height: 14px; gap: 3px; margin-bottom: 24px; overflow: hidden; border-radius: 5px; background: #302638; }
.allocation-modern-segment { min-width: 0; height: 100%; flex-shrink: 1; border-radius: 2px; }
.allocation-modern-columns { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(92px, auto); gap: 12px; align-items: center; padding: 0 11px 9px; color: #aa9bb9; font-size: 9px; font-weight: 650; }
.allocation-modern-columns > :not(:first-child) { text-align: right; }
.allocation-modern-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.allocation-modern-item { min-width: 0; }
.allocation-modern-row { display: grid; width: 100%; min-height: 51px; grid-template-columns: minmax(0, 1fr) 64px minmax(92px, auto); align-items: center; gap: 12px; padding: 12px 10px; color: var(--text-primary); background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: left; font-family: var(--font-sans); box-shadow: none; }
.allocation-modern-row:hover { background: #c8b2ff0a; border-color: #c8b2ff0a; }
.allocation-modern-row.is-selected { background: #c8b2ff15; border-color: #7d649744; }
.allocation-modern-row:focus-visible, .allocation-modern-more:focus-visible, .allocation-modern-detail-action:focus-visible, .allocation-modern-empty-action:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.allocation-modern-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.allocation-modern-swatch { width: 8px; height: 8px; flex: none; border-radius: 3px; }
.allocation-modern-symbol { color: #f1e9f8; font-size: 12px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.allocation-modern-share, .allocation-modern-row-value { color: #b9abc8; font-size: 11px; line-height: 1.5; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.allocation-modern-row-value { color: #eee4f6; font-weight: 700; }
.allocation-modern-more { display: block; width: 100%; min-height: 40px; margin: 12px 0 0; padding: 9px 12px; border: 1px solid #55425f; border-radius: 8px; color: #d5c3e7; background: #c8b2ff07; font: 650 11px/1.4 var(--font-sans); }
.allocation-modern-more:hover { background: #c8b2ff14; border-color: #7f6790; }
.allocation-modern-detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid #655075; border-radius: 10px; background: linear-gradient(120deg, #c8b2ff12, #a8eced08); }
.allocation-modern-detail-copy { display: grid; gap: 3px; min-width: 0; }
.allocation-modern-detail-copy strong { font-size: 12px; font-weight: 750; color: #e6d7f6; overflow-wrap: anywhere; }
.allocation-modern-detail-copy span { font-size: 10px; color: #c0afd0; }
.allocation-modern-detail-action { min-height: 36px; padding: 8px 12px; flex: none; border: 1px solid #a8eced55; border-radius: 22px; color: var(--cyan); background: #a8eced0b; font: 750 10px var(--font-sans); }
.allocation-modern-detail-action:hover { background: #a8eced1d; border-color: var(--cyan); }
.allocation-modern-footnote { margin: 18px 0 0; color: #a799b8; font: 500 9px/1.6 var(--font-sans); }
.allocation-modern-empty { display: grid; justify-items: center; gap: 12px; min-height: 254px; padding: 24px 14px 14px; text-align: center; }
.allocation-modern-empty-mark { display: grid; width: 68px; height: 68px; place-items: center; margin-bottom: 2px; color: #c8b2ff; border: 1px solid #67517a66; border-radius: 20px; background: linear-gradient(140deg, #c8b2ff10, #a8eced0a); }
.allocation-modern-empty-mark svg { width: 43px; height: 43px; }
.allocation-modern-empty-title { color: #eee4f5; font-size: 15px; line-height: 1.5; font-weight: 750; letter-spacing: -.025em; }
.allocation-modern-empty-copy { max-width: 260px; margin: -5px 0 2px; color: #b5a6c4; font: 500 11px/1.6 var(--font-sans); }
.allocation-modern-empty-action { min-height: 38px; padding: 9px 18px; border: 1px solid #a8eced66; border-radius: 24px; color: #b8edef; background: #a8eced0d; font: 750 11px var(--font-sans); }
.allocation-modern-empty-action:hover { border-color: var(--cyan); background: #a8eced1c; }
body.privacy #allocCard .allocation-modern-bar { filter: blur(8px); opacity: .4; }
@media (max-width: 600px) {
  .allocation-modern-overview { margin-bottom: 18px; gap: 12px; }
  .allocation-modern-total { font-size: 29px; }
  .allocation-modern-count { font-size: 9px; }
  .allocation-modern-columns, .allocation-modern-row { grid-template-columns: minmax(0, 1fr) 50px minmax(79px, auto); gap: 8px; padding-left: 7px; padding-right: 7px; }
  .allocation-modern-symbol { font-size: 11px; }
  .allocation-modern-share, .allocation-modern-row-value { font-size: 10px; }
  .allocation-modern-identity { gap: 8px; }
  .allocation-modern-detail { padding: 12px; }
  .allocation-modern-empty { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .allocation-modern *, .allocation-modern *::before, .allocation-modern *::after { transition: none !important; animation: none !important; } }
