.chart-event-rail { position:absolute; height:0; pointer-events:none; z-index:4 }
.chart-event-marker { position:absolute; bottom:0; transform:translateX(-50%); width:32px; height:32px; display:grid; place-items:center; pointer-events:auto; background:transparent; border:0; padding:0; cursor:pointer; touch-action:manipulation }
.chart-event-marker span { display:grid; place-items:center; min-width:21px; height:21px; border-radius:50%; font:700 13px/1 system-ui; background:var(--panel); color:var(--ink); border:2px solid #ec8e69 }
.chart-event-marker[data-kind=news] span { border-color:#ad88e3; border-radius:6px }
.chart-event-marker[data-kind=mixed] span { border-color:#ad88e3 #ec8e69 #ec8e69 #ad88e3 }
.chart-event-card { position:absolute; z-index:12; width:min(300px,calc(100% - 8px)); max-height:65%; display:flex; flex-direction:column; overflow:hidden; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:8px; box-shadow:0 6px 24px #0005; padding:4px 12px; box-sizing:border-box }
.chart-event-card[hidden] { display:none }
.chart-event-row { padding:10px 0; display:grid; gap:5px; font-size:12px }
.chart-event-row + article { border-top:1px solid var(--line) }
.chart-event-row small { color:var(--muted); padding-right:26px }
.chart-event-row p,.chart-event-figures,.chart-event-figures dd { margin:0 }
.chart-event-figures { display:grid; grid-template-columns:repeat(3,1fr); gap:5px }
.chart-event-figures dt { color:var(--muted); font-size:10px }
.chart-event-row a { color:inherit; text-decoration:underline; width:fit-content }
.chart-event-close { position:absolute; right:2px; top:2px; z-index:1; background:var(--panel); color:inherit; border:0; width:30px; height:30px; cursor:pointer }
@media(pointer:coarse) { .chart-event-marker,.chart-event-close { width:44px; height:44px } }

.chart-event-list { overflow-y:auto; min-height:0; overscroll-behavior:contain; touch-action:pan-y; scrollbar-width:thin }
.chart-event-list:focus-visible { outline:2px solid var(--muted); outline-offset:-2px }
.chart-event-row:first-child { padding-right:28px }
.chart-event-more:not([hidden]) { padding:4px 0; border-top:1px solid var(--line); color:var(--muted); font-size:11px }
.chartnote .profile-note-close { position:relative; z-index:6; display:inline-grid; place-items:center; vertical-align:middle; margin-left:5px; width:24px; height:24px; padding:0; color:inherit; background:transparent; border:0; cursor:pointer; pointer-events:auto; touch-action:manipulation }
.profile-note-close .icon { width:13px; height:13px }
@media(pointer:coarse) { .chartnote .profile-note-close { width:44px; height:44px } }
