/* Wishlist Timeline Chart */

.timeline-chart-card {
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-chart-card .chart-title {
  margin-bottom: 0.35rem;
}

.timeline-plot .timeline-weekend-band {
  fill: var(--weekend-band);
}

/* Empty/error placeholder. Loading uses the shared full-area glossy surface
   (.coal-loading-block--fill in app.css), not this text-sized layout. */
.timeline-placeholder {
  padding: 2rem;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
/* Loading surfaces have no dashed empty-state border. */
.timeline-placeholder.coal-loading-block {
  padding: 2rem;
  background: transparent;
  border: none;
}

/* Subtle column highlight for the hovered bar's slot. Mirrors the vertical
   hoverGuide line used on line charts. Sits behind the bars (added to
   .timeline-plot before the bar groups) so the bar paints on top. */
.timeline-plot .timeline-hover-column {
  fill: rgba(148, 163, 184, 0.10);
  pointer-events: none;
}
[data-theme="dark"] .timeline-plot .timeline-hover-column {
  fill: rgba(226, 232, 240, 0.07);
}

[data-theme="dark"] .timeline-chart-card {
  background: var(--bg-surface);
  box-shadow: 0 2px 8px var(--shadow);
}

.timeline-chart-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin-top: 0.25rem;
}

.timeline-chart-mount {
  width: 100%;
  height: 500px;
  min-height: 500px;
  overflow: visible;
}

.timeline-tooltip {
  position: fixed;
  z-index: 1000;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-strong);
  pointer-events: none;
  width: max-content;
  min-width: 18rem;
  max-width: min(calc(100vw - 24px), 24rem);
}

.timeline-tooltip.steam-page-v2-tooltip {
  width: max-content;
  max-width: min(calc(100vw - 16px), 34rem);
}

.timeline-tooltip--portal {
  z-index: 10060;
}

/* Tooltip headline block. The header slot contains one or two stacked spans
   produced by formatTooltipPeriodHeading: a primary label (e.g. "Week 16",
   "13. April, 2026", or "April 2026") and an optional secondary line for the
   week range ("Apr 13–19, 2026"). Stacked vertically with the secondary line
   smaller and muted to keep the visual hierarchy week → range. */
.timeline-tooltip-date {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-tooltip-date-primary {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.timeline-tooltip-date-secondary {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.timeline-tooltip-rows {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-tooltip-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.timeline-tooltip-row[data-wishlist-utm-focus-group],
.timeline-tooltip-source[data-wishlist-utm-focus-group] {
  cursor: pointer;
}

.timeline-tooltip-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.timeline-tooltip-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.timeline-tooltip-value-total {
  color: var(--tooltip-untracked);
}

/* Headline wishlist row in the timeline hover tooltip: "+520 ⭐ Wishlists".
   Replaces the legend dot with the wishlist star mark used elsewhere in the app
   (impact dashboard rollups). Layout is leading delta value, then star, then label;
   no margin-left:auto so the icon hugs the number rather than floating right. */
.timeline-tooltip-row--wishlists {
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-start;
}

.timeline-tooltip-row--wishlists .timeline-tooltip-value {
  margin-left: 0;
}

/* Generic "value-first" tooltip row used by the Steam store page chart hover
   ("1,397 Visits") and any other chart where we want the metric value (in the
   series color) to lead, followed by a plain label. No legend dot — the colored
   value is the visual anchor. Mirrors the wishlist headline layout but lets the
   value color come from inline style (so it can pick up the row's borderColor). */
.timeline-tooltip-row--leading-value {
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-start;
}

.timeline-tooltip-row--leading-value .timeline-tooltip-value {
  margin-left: 0;
}

.timeline-tooltip-row--leading-value .timeline-tooltip-row-label {
  font-weight: 500;
}

.timeline-tooltip-breakdown {
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--tooltip-divider, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-tooltip-breakdown-heading {
  margin-bottom: 0.05rem;
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.timeline-tooltip-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 15rem;
}

.timeline-tooltip-breakdown-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.timeline-tooltip-breakdown-swatch {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 0.14rem;
}

.timeline-tooltip-breakdown-value {
  flex: 0 0 auto;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Org Projects → Social Views mini: total + per-platform breakdown */
.timeline-tooltip-value--social-views-total {
  color: var(--text-primary);
}

.timeline-tooltip-social-channels {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.timeline-tooltip-social-channel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.timeline-tooltip-social-channel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--text-secondary);
  font-weight: 600;
}

.timeline-tooltip-social-channel-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 2px;
}

.timeline-tooltip-social-channel-name {
  min-width: 0;
}

.timeline-tooltip-social-channel-value {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-tooltip-wishlist-star,
.timeline-tooltip-row :is(
  .dashboard-sales-metric-icon,
  .dashboard-wishlist-add-icon,
  .dashboard-wishlist-del-icon,
  .dashboard-wishlist-bal-icon
) {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.timeline-tooltip-wishlist-star {
  color: var(--tooltip-untracked);
}

.timeline-tooltip-wishlists-label {
  font-weight: 500;
  min-width: 0;
}

.timeline-tooltip-value-tracked {
  color: var(--wishlist-tracked-segment);
}

.timeline-tooltip-value-untracked {
  color: var(--tooltip-untracked);
}

.timeline-tooltip-share {
  color: var(--text-secondary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Tracked row in the wishlist timeline tooltip. Mirrors the wishlists headline
   layout — colored value first (acts as the legend), then plain label, then a
   quiet share — so we can drop the legend dot without losing the series cue. */
.timeline-tooltip-row--tracked {
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.timeline-tooltip-row--tracked .timeline-tooltip-value {
  margin-left: 0;
}

/* Per-source breakdown under the Tracked row. Stacked vertically so each row
   reads "[platform icon] Source name … count" — easier to scan than the old
   inline chip strip and gives each contributor proper visual weight. */
.timeline-tooltip-sources {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--tooltip-divider, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.timeline-tooltip-source {
  display: grid;
  grid-template-columns: 1rem 1fr auto;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.timeline-tooltip-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.timeline-tooltip-source-platform-img,
.timeline-tooltip-source-platform-svg {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

.timeline-tooltip-source-name {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-tooltip-source-count {
  color: var(--wishlist-tracked-segment);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.steam-page-tooltip-source-count {
  color: #f59e0b;
}

.steam-page-tooltip-sources {
  gap: 0;
}

.steam-page-tooltip-source-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.72rem;
  line-height: 1.3;
}

.steam-page-tooltip-source-table th,
.steam-page-tooltip-source-table td {
  border: 0;
  padding: 0.08rem 0 0.08rem 0.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.steam-page-tooltip-source-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.steam-page-tooltip-source-table thead th {
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 600;
}

.steam-page-tooltip-source-table tbody th {
  color: var(--text-primary);
  font-weight: 500;
  max-width: clamp(8rem, 24vw, 17rem);
}

.steam-page-tooltip-source-table .timeline-tooltip-source-name {
  display: inline-block;
  max-width: clamp(7rem, 22vw, 15rem);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.steam-page-tooltip-source-table .timeline-tooltip-source-icon {
  margin-right: 0.35rem;
  vertical-align: middle;
}

.steam-page-tooltip-source-visits {
  color: var(--text-primary);
  font-weight: 600;
}

.steam-page-tooltip-source-trusted {
  color: #1d60df;
  font-weight: 600;
}

.steam-page-tooltip-source-tracked {
  color: #f59e0b;
  font-weight: 600;
}

.steam-page-tooltip-source-more th,
.steam-page-tooltip-source-more td {
  color: var(--text-secondary);
  font-weight: 500;
}

.timeline-tooltip-source--more .timeline-tooltip-source-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.timeline-tooltip-source--more .timeline-tooltip-source-count {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Calculus rows in the timeline hover tooltip when the Wishlists overview
   chart is in the "Balance" metric mode. Mirrors the dashboard wishlist-week
   tooltip styling (additions / deletions / balance with a divider line above
   the balance row) so users see the same +adds − dels = balance composition
   in both surfaces. Icons + values inherit color from the row class. */
.timeline-tooltip-row--add,
.timeline-tooltip-row--del,
.timeline-tooltip-row--bal {
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-start;
}

.timeline-tooltip-row--add .timeline-tooltip-value,
.timeline-tooltip-row--del .timeline-tooltip-value,
.timeline-tooltip-row--bal .timeline-tooltip-value {
  margin-left: 0;
}

.timeline-tooltip-row--add {
  color: var(--dashboard-wishlist-add);
}
.timeline-tooltip-row--del {
  color: var(--dashboard-wishlist-del);
}
.timeline-tooltip-row--bal {
  color: var(--text-primary);
}

.timeline-tooltip-row--calculus-divider {
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.timeline-tooltip-wishlist-star--add {
  color: var(--dashboard-wishlist-add);
}
.timeline-tooltip-wishlist-star--del {
  color: var(--dashboard-wishlist-del);
}
.timeline-tooltip-wishlist-star--bal {
  color: var(--text-primary);
}

/* Deletion overlay rect on top of the additions bar when the Wishlists
   overview chart is in "Balance" metric mode. Uses the deletion accent color
   with a slight transparency so the underlying additions bar still reads. */
.timeline-bar-deletes {
  pointer-events: none;
}

.timeline-tooltip-event {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}

.timeline-tooltip-event--with-media .timeline-tooltip-event-body {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.timeline-tooltip-event-thumb-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-muted, rgba(148, 163, 184, 0.12));
}

.timeline-tooltip-event-thumb-wrap--empty {
  border: 1px dashed var(--border);
  box-sizing: border-box;
}

.timeline-tooltip-event-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-tooltip-event-main {
  flex: 1;
  min-width: 0;
}

.timeline-tooltip-event-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.timeline-tooltip-event-platform {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.timeline-tooltip-event-platform img,
.timeline-tooltip-event-platform svg {
  display: block;
}

.timeline-tooltip-event-platform--svg {
  color: var(--text-secondary);
}

.timeline-tooltip-event-title {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.timeline-tooltip-event-source {
  color: var(--text-secondary);
  display: block;
  margin-top: 0.2rem;
}

.timeline-tooltip-event-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.timeline-tooltip-date--event-group {
  margin-bottom: 0.15rem;
}

.timeline-tooltip[data-pointer="left"]::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent var(--border) transparent transparent;
}

.timeline-tooltip[data-pointer="left"]::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent var(--bg-surface) transparent transparent;
}

.timeline-tooltip[data-pointer="right"]::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--border);
}

.timeline-tooltip[data-pointer="right"]::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-surface);
}

.timeline-grid .grid-line,
.timeline-y-grid .grid-line {
  stroke: var(--border);
  stroke-opacity: 0.6;
  stroke-width: 1;
}

.timeline-axes .x-axis line,
.timeline-axes .x-axis path {
  stroke: var(--border);
}

.timeline-axes .y-axis line {
  stroke: var(--border);
  stroke-opacity: 0.5;
}

.timeline-axes .y-axis path {
  stroke: none;
}

.timeline-axes text {
  fill: var(--text-secondary);
  font-size: 0.75rem;
  font-family: inherit;
}

.timeline-axis-label {
  fill: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-plot .timeline-bar-tracked {
  fill: var(--wishlist-tracked-segment);
}

.timeline-plot .timeline-bar-untracked {
  fill: var(--tooltip-untracked);
}

.timeline-plot .timeline-line-tracked {
  stroke: var(--wishlist-tracked-segment);
}

.timeline-plot .timeline-line-untracked {
  stroke: var(--tooltip-untracked);
}

.timeline-annotations .timeline-event-span {
  fill: var(--accent-alpha-12);
  stroke: var(--accent);
  stroke-width: 1;
  rx: 3;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.timeline-annotations .timeline-event-marker {
  fill: var(--accent);
  stroke: var(--bg-surface);
  stroke-width: 1;
}

.timeline-annotations .timeline-event-logo {
  color: var(--text-primary);
  opacity: 0.94;
  transition: opacity 0.12s ease, filter 0.12s ease;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.timeline-annotations .timeline-event-logo-img {
  opacity: 1;
  filter: none;
  clip-path: circle(50%);
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-annotations .timeline-event-logo-img.timeline-event-logo-img--youtube {
  box-shadow: none;
}

.timeline-annotations .timeline-event-logo-img.timeline-event-logo-img--radar-web-globe {
  clip-path: none;
  box-shadow: none;
}

.timeline-annotations .timeline-event-count-badge-bg {
  fill: #161A24;
  stroke: rgba(148, 163, 184, 0.34);
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.timeline-annotations .timeline-event-count-badge {
  fill: var(--text-secondary);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.timeline-annotations .timeline-event.timeline-event-stacked .timeline-event-logo {
  opacity: 0.9;
}

.timeline-annotations .timeline-event.timeline-event-highlight .timeline-event-span {
  opacity: 0;
}

.timeline-annotations .timeline-event.timeline-event-highlight .timeline-event-logo {
  opacity: 1;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 72%, transparent)) drop-shadow(0 2px 7px rgba(0, 0, 0, 0.3));
}

.timeline-annotations .timeline-event.timeline-event-highlight .timeline-event-logo-img {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 72%, transparent)) drop-shadow(0 2px 7px rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 82%, white 18%);
}

.timeline-annotations .timeline-event.timeline-event-highlight .timeline-event-count-badge-bg,
.timeline-annotations .timeline-event:hover .timeline-event-count-badge-bg {
  fill: #1B2130;
}

.timeline-annotations .timeline-event:hover .timeline-event-logo {
  opacity: 1;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 64%, transparent)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

.timeline-annotations .timeline-event:hover .timeline-event-logo-img {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 64%, transparent)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 70%, white 30%);
}

.timeline-annotations .timeline-event.timeline-event-highlight .timeline-event-logo-img.timeline-event-logo-img--youtube {
  filter: drop-shadow(0 0 2px var(--accent)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  box-shadow: none;
}

.timeline-annotations .timeline-event.timeline-event-highlight .timeline-event-logo-img.timeline-event-logo-img--radar-web-globe {
  box-shadow: none;
}

.timeline-overlay .timeline-overlay-rect {
  cursor: crosshair;
}
.timeline-overlay .timeline-overlay-rect:focus:not(:focus-visible) {
  outline: none;
}
.timeline-overlay .timeline-overlay-rect:focus-visible {
  outline: 2px solid var(--accent, #22d3ee);
  outline-offset: 2px;
}

.timeline-overview .timeline-overview-bg {
  fill: var(--bg-surface-alt);
  stroke: var(--border);
  stroke-width: 1;
}

.timeline-overview .timeline-overview-bar {
  fill: var(--text-secondary);
  opacity: 0.65;
}

.timeline-overview .timeline-overview-selection {
  fill: var(--accent-alpha-12);
  stroke: var(--accent);
  stroke-width: 1;
  pointer-events: none;
}

.timeline-overview .timeline-overview-brush .selection {
  fill: transparent;
  stroke: transparent;
}

.timeline-overview .timeline-overview-brush .handle {
  fill: var(--accent);
  stroke: var(--bg-surface);
  stroke-width: 1;
  rx: 3;
}

.timeline-overview .timeline-overview-brush .overlay {
  cursor: ew-resize;
}

.timeline-events-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.timeline-events-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.timeline-events-table tbody td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.timeline-events-table tbody tr:hover {
  background: var(--bg-surface-alt);
}

/* Dashboard date cards use weekend shading instead of horizontal value guides. */
.dashboard-overview-chart-card .timeline-y-grid,
.dashboard-overview-chart-card .timeline-grid {
  display: none;
}

/* Pinning reveals disclosure arrows in place without resizing the hover surface. */
.social-chart-tooltip {
  max-width: min(440px, calc(100vw - 16px)) !important;
  box-sizing: border-box;
}
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) {
  pointer-events: auto !important;
  width: min(var(--social-tooltip-width, 440px), calc(100vw - 16px)) !important;
  min-width: 0 !important;
  max-height: min(580px, calc(100vh - 16px));
  overflow: auto;
  overscroll-behavior: contain;
}
.social-chart-tooltip-total { font-weight: 600; }
.social-chart-tooltip-groups {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.social-chart-tooltip summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  list-style: none;
  line-height: 1.3;
  transition: padding-left 180ms ease-out;
}
.social-chart-tooltip summary::-webkit-details-marker { display: none; }
.social-chart-tooltip summary::before {
  content: '›';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) summary { padding-left: 16px; cursor: pointer; }
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) summary::before { opacity: 1; transform: translateX(0); }
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) details[open] > summary::before { transform: rotate(90deg); }
.social-chart-tooltip summary > span { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-weight: 600; }
.social-chart-tooltip summary > strong { flex-shrink: 0; }
.social-chart-tooltip-posts:not(:empty) { margin: 8px 0; }
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) button { color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 5px; padding: 4px 8px; cursor: pointer; }
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) summary:focus-visible,
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) button:focus-visible,
:is(.social-chart-tooltip--pinned, .social-chart-tooltip--dismissing) a:focus-visible { outline: 2px solid var(--accent, #22d3ee); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .social-chart-tooltip summary,
  .social-chart-tooltip summary::before { transition: none; }
}
.social-chart-tooltip-posts table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.social-chart-tooltip-posts th { text-align: left; text-transform: capitalize; color: var(--text-secondary); font-size: 10px; }
.social-chart-tooltip-posts th:nth-child(2) { width: 75px; text-align: right; }
.social-chart-tooltip-posts th:last-child { width: 44px; text-align: right; }
.social-chart-tooltip-posts td { padding: 8px 0; border-top: 1px solid var(--border); vertical-align: middle; }
.social-chart-tooltip-posts .num { text-align: right; }
.social-chart-tooltip-posts .dashboard-recent-social-posts-post { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.social-chart-tooltip-posts .dashboard-recent-social-posts-thumb { flex: 0 0 52px; }
.social-chart-tooltip-posts .dashboard-recent-social-posts-title { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; font-size: 12px; }

/* Dismissed snapshots are visual only; the live tooltip can be reused at once.
   140ms ease-in matches the shared menus' opacity exit in menu-motion.css. */
.social-chart-tooltip--dismissing,
.social-chart-tooltip--dismissing * {
  pointer-events: none !important;
  animation: none !important;
  transition: none !important;
}
.social-chart-tooltip--dismissing *::before,
.social-chart-tooltip--dismissing *::after,
.social-chart-tooltip--dismissing details::details-content {
  animation: none !important;
  transition: none !important;
}
