/* The presentation shares the existing analytics filters and customer list. */
.portfolio-chart-stage.presentation-stage { grid-template-columns:minmax(0,1fr) minmax(230px,300px);min-height:0;background:white; }
.presentation-stage .presentation-visual { display:block;min-width:0;min-height:0;padding:18px 20px;border-right:1px solid var(--line);background:linear-gradient(145deg,#fff,#fbfbff); }
.presentation-stage .presentation-visual::before,.presentation-stage .presentation-visual::after { display:none; }
.presentation-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px; }
.presentation-heading strong,.presentation-heading small { display:block; }
.presentation-heading strong { font-size:12px;overflow-wrap:anywhere; }
.presentation-heading small { margin-top:4px;color:var(--muted);font-size:11px; }
.presentation-actions { display:flex;align-items:center;gap:8px;flex-shrink:0; }
.presentation-live { display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:750;color:#4f4ac6;white-space:nowrap; }
.presentation-live i { width:6px;height:6px;border-radius:50%;background:#22b59c; }
.presentation-actions .icon-button { width:34px;height:34px; }
.presentation-actions svg { width:18px;height:18px; }
.portfolio-spatial-canvas { display:block;width:100%;height:clamp(430px,38vw,540px);cursor:grab;touch-action:none; }
.portfolio-spatial-canvas.is-dragging { cursor:grabbing; }
.presentation-camera { display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:11px; }
.presentation-camera button { min-width:32px;min-height:32px;border:1px solid #dfe2ee;border-radius:8px;background:white;color:#5751cf;cursor:pointer;font-size:16px; }
.presentation-camera button:last-child { padding:0 10px;font-size:11px; }
.presentation-density { margin:10px 0 0;text-align:center;color:var(--muted);font-size:11px; }
.presentation-density:empty { display:none; }
.portfolio-chart-stage.presentation-stage>.portfolio-chart-legend { display:grid;align-content:start;gap:0;padding:14px 20px;max-height:590px; }
.presentation-sector { padding:10px 0;border-bottom:1px solid var(--line);min-width:0; }
.presentation-sector:last-child { border-bottom:0; }
.portfolio-chart-legend .portfolio-legend-summary { grid-column:1/-1;min-width:0;margin-top:14px;padding:14px;border:1px solid #e6e5f3;border-radius:12px;background:#f8f8fd;text-align:left;overflow-wrap:anywhere; }
.portfolio-legend-summary h4 { margin:0 0 8px;color:var(--muted);font-size:11px;font-weight:600; }
.portfolio-chart-legend .portfolio-legend-summary strong { display:block;font-size:12px;line-height:1.5;font-weight:650;color:var(--text); }
.portfolio-legend-summary p { margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.6; }
.portfolio-legend-summary b { color:#5751cf;font-weight:650; }
.presentation-stage .portfolio-chart-legend .presentation-sector-button { --legend-color:inherit;display:flex;width:100%;min-height:34px;padding:0;gap:10px;border:0;border-radius:0;box-shadow:none;background:none;transform:none;overflow:visible; }
.presentation-sector-button>span { flex:1;min-width:0; }
.presentation-stage .presentation-sector-button strong { font-size:12px;font-weight:650;overflow-wrap:anywhere; }
.presentation-stage .presentation-sector-button small { font-size:11px;font-weight:400; }
.presentation-stage .portfolio-chart-legend .presentation-sector-button>i { width:8px;height:27px;flex-shrink:0;background:var(--legend-color);box-shadow:none; }
.presentation-stage .presentation-sector-button em { font-size:13px;color:var(--text); }
.presentation-stage .presentation-sector-button.is-selected strong { color:#5751cf; }
.presentation-peek { margin:5px 0 0 18px;display:flex;gap:6px;align-items:center;min-width:0;font-size:11px;color:var(--muted); }
.presentation-peek>span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.presentation-stage .portfolio-chart-legend button.presentation-more { display:inline-block;min-height:27px;flex-shrink:0;padding:3px 6px;border:0;border-radius:5px;background:#eeecff;color:#5751cf;font-size:11px;box-shadow:none;transform:none; }
.portfolio-list-actions { display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px; }
.portfolio-list-actions button { border:1px solid var(--line);border-radius:7px;background:white;padding:6px 9px;cursor:pointer;color:#5751cf;font-size:11px; }
.portfolio-chart-list article strong { white-space:normal;overflow-wrap:anywhere;font-size:12px; }
.portfolio-chart-list article small,.portfolio-chart-list article em { font-size:11px; }
.portfolio-chart-list h4 { font-size:12px; }
.portfolio-chart-list h4 .portfolio-label { margin-left:0;color:inherit;font-size:inherit; }
.portfolio-chart-list>header { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:16px;padding-bottom:12px; }
/* Remove the white text halo and make legacy 2D callouts clickable too. */
.portfolio-callout,.portfolio-callout-value { pointer-events:auto;cursor:pointer; }
.portfolio-callout-value { stroke:none;paint-order:normal; }
.analytics-list-toggle[hidden] { display:none!important; }
.analytics-panel.is-expanded .presentation-stage { grid-template-columns:minmax(0,1fr) minmax(260px,320px);padding:0;gap:0;min-height:0; }
.analytics-panel.is-expanded .portfolio-spatial-canvas { height:clamp(400px,60vh,660px); }
@media(max-width:1100px) { .portfolio-chart-stage.presentation-stage,.analytics-panel.is-expanded .presentation-stage { grid-template-columns:minmax(0,1fr); }.presentation-stage .presentation-visual { border-right:0;border-bottom:1px solid var(--line); }.portfolio-chart-stage.presentation-stage>.portfolio-chart-legend { grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;max-height:300px;align-content:start; } }
@media(max-width:580px) { .presentation-stage .presentation-visual { padding:14px 10px; }.portfolio-spatial-canvas,.analytics-panel.is-expanded .portfolio-spatial-canvas { height:380px; }.presentation-live { display:none; }.portfolio-chart-stage.presentation-stage>.portfolio-chart-legend { grid-template-columns:minmax(0,1fr);padding:10px 14px; }.portfolio-chart-list>div { grid-template-columns:minmax(0,1fr); }.presentation-heading { align-items:flex-start; } }
@media(pointer:coarse) { .presentation-camera button { min-width:44px;min-height:44px; }.presentation-stage .portfolio-chart-legend button { min-height:44px; } }
@media print { .presentation-camera,.presentation-actions button,.portfolio-list-actions button { display:none!important; }.portfolio-chart-stage.presentation-stage>.portfolio-chart-legend { max-height:none;overflow:visible; }.presentation-stage .presentation-visual { break-inside:avoid; } }
