/* localsignals visualization system. Colours come from the site's --ls-* variables. */
.lsv-display, .lsv-explorer { min-width: 0; position: relative; }
.lsv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.lsv-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ls-ink); }
.lsv-subtitle { margin: 3px 0 0; font-size: 12.5px; color: var(--ls-secondary); }
.lsv-viewport { position: relative; min-width: 0; }
.lsv-canvas { width: 100%; outline: none; border-radius: 4px; }
.lsv-canvas:focus-visible { outline: 2px solid var(--ls-accent); outline-offset: 3px; }
.lsv-static { display: block; width: 100%; overflow: visible; }
.lsv-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lsv-state { display: grid; place-items: center; gap: 8px; padding: 16px; color: var(--ls-tertiary); font-size: 12.5px; text-align: center; }
.lsv-state-error { color: var(--ls-decline); }
.lsv-skeleton { display: block; width: 100%; height: 100%; min-height: 24px; border-radius: 6px; background: linear-gradient(90deg, var(--ls-stone), var(--ls-rule), var(--ls-stone)); background-size: 200% 100%; animation: lsv-shimmer 1.4s linear infinite; }
@keyframes lsv-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lsv-skeleton { animation: none; } }
.lsv-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.lsv-desktop { display: contents; }
.lsv-spacer { flex: 1; }
.lsv-freq { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ls-secondary); }
.lsv-freq select { padding: 5px 8px; border: 1px solid var(--ls-strong-rule); border-radius: 5px; background: var(--ls-input); color: var(--ls-ink); font-size: 11.5px; }
.lsv-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; }
.lsv-chip { display: inline-flex; align-items: center; border: 1px solid var(--ls-rule); border-radius: 999px; background: var(--ls-card); }
.lsv-chip button { border: 0; background: transparent; color: var(--ls-ink); font-size: 11.5px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 6px; }
.lsv-chip .lsv-chip-toggle[aria-pressed="false"] { color: var(--ls-tertiary); text-decoration: line-through; }
.lsv-chip .lsv-chip-toggle[aria-pressed="false"] i { opacity: .35; }
.lsv-chip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.lsv-chip .lsv-chip-remove { padding: 4px 8px 4px 2px; color: var(--ls-tertiary); }
.lsv-chip button:focus-visible { outline: 2px solid var(--ls-accent); border-radius: 999px; }
.lsv-menu { position: relative; }
.lsv-menu > summary { list-style: none; cursor: pointer; }
.lsv-menu > summary::-webkit-details-marker { display: none; }
.lsv-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; min-width: 210px; padding: 6px; border: 1px solid var(--ls-strong-rule); border-radius: 8px; background: var(--ls-stone); box-shadow: var(--ls-shadow); }
.lsv-menu-panel > button { text-align: left; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ls-ink); font-size: 12px; }
.lsv-menu-panel > button:hover, .lsv-menu-panel > button:focus-visible { background: var(--ls-rule); }
.lsv-menu-opts { display: grid; gap: 6px; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--ls-rule); font-size: 11.5px; color: var(--ls-secondary); }
.lsv-menu-opts label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lsv-menu-opts select { padding: 4px 6px; border: 1px solid var(--ls-strong-rule); border-radius: 5px; background: var(--ls-input); color: var(--ls-ink); font-size: 11.5px; }
.lsv-status { min-height: 16px; margin-top: 4px; font-size: 11px; color: var(--ls-tertiary); }
.lsv-status[data-failed="true"] { color: var(--ls-decline); }
.lsv-tooltip { pointer-events: none; }
.lsv-donut { position: relative; }
.lsv-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.lsv-donut-center strong { font-size: 17px; font-weight: 600; color: var(--ls-ink); }
.lsv-donut-center span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ls-tertiary); }
@media (max-width: 640px) {
  .lsv-desktop { display: none; }
  .lsv-toolbar { gap: 6px; }
  .lsv-menu-panel { right: auto; left: 0; }
}
.lsv-bar { align-items: center; margin-bottom: 4px; }
.lsv-bar .lsv-legend { margin: 0; flex: 1; }
/* Charts are half width on wide screens; the space beside them is for the page's other content. */
.chart-half { width: min(100%, max(50%, 640px)); }
.detail-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.detail-split .table-wrap { max-height: 560px; overflow: auto; }
@media (max-width: 1100px) { .detail-split { grid-template-columns: minmax(0, 1fr); } }

/* Export control floated over a chart that has no toolbar of its own. */
.lsv-exportable { position: relative; min-width: 0; }
.lsv-export-overlay { position: absolute; top: 0; right: 0; z-index: 5; }
.lsv-export-overlay .lsv-menu > summary { padding: 3px 8px; font-size: 11px; opacity: .55; transition: opacity .15s; }
.lsv-exportable:hover .lsv-menu > summary, .lsv-export-overlay .lsv-menu[open] > summary, .lsv-export-overlay .lsv-menu > summary:focus-visible { opacity: 1; }
.lsv-export-overlay .lsv-status { position: absolute; right: 0; top: calc(100% + 4px); white-space: nowrap; font-size: 11px; color: var(--ls-secondary); }
.lsv-export-overlay .lsv-status:empty { display: none; }
@media (hover: none) { .lsv-export-overlay .lsv-menu > summary { opacity: 1; } }
