/* Analogue panel — "has this happened before?"
   One sentence, one picture, a strip of ▲▼, and a table behind a disclosure.
   Up = amber, down = blue (the colourblind-safe axis), always with a glyph. */
#an-panel { display: grid; gap: 16px; }
.an-head { margin: 0; color: rgba(245, 245, 247, 0.94); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; font-weight: 500; }
.an-head:empty, .an-verdict:empty, .an-status:empty { display: none; }

.an-chart { display: grid; gap: 8px; }
#an-cvs { display: block; width: 100%; height: 320px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); cursor: crosshair; touch-action: pan-y; }
.an-tip { min-height: 1.3em; margin: 0; font-size: 0.85rem; color: rgba(245, 245, 247, 0.72); font-variant-numeric: tabular-nums; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; color: rgba(245, 245, 247, 0.62); }
.an-legend li { display: flex; align-items: center; gap: 8px; }
.an-swatch { display: inline-block; width: 22px; height: 0; border-top: 2px solid #ffd166; }
.an-swatch.is-thin { border-top: 1px solid rgba(245, 245, 247, 0.45); }
.an-swatch.is-band { height: 10px; border: 0; background: rgba(245, 245, 247, 0.16); border-radius: 2px; }

.an-dotrow { display: grid; grid-template-columns: 4em 1fr auto; align-items: center; gap: 12px; padding: 4px 0; }
.an-dotlabel { font-size: 0.85rem; color: rgba(245, 245, 247, 0.62); }
.an-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.an-dot { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.8rem; background: rgba(255, 255, 255, 0.05); }
.an-dot.is-up { color: #ffd166; }
.an-dot.is-dn { color: #5eb8ff; }
.an-dotcount { font-size: 0.85rem; color: rgba(245, 245, 247, 0.8); font-variant-numeric: tabular-nums; white-space: nowrap; }

.an-verdict { margin: 0; font-size: 0.95rem; color: #ffd166; line-height: 1.5; }
.an-verdict.is-normal { color: rgba(245, 245, 247, 0.72); }
.an-status { margin: 0; font-size: 0.85rem; color: rgba(245, 245, 247, 0.55); }

.an-details summary { cursor: pointer; font-size: 0.9rem; color: rgba(245, 245, 247, 0.7); padding: 6px 0; }
.an-details summary:hover { color: rgba(245, 245, 247, 0.95); }
.an-table { display: grid; grid-template-columns: minmax(8em, 1.3fr) 4.5em repeat(3, 4.8em); gap: 0 12px; font-variant-numeric: tabular-nums; font-size: 0.9rem; margin-top: 6px; }
.an-row { display: contents; }
.an-row > span { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-row.is-h > span { color: rgba(245, 245, 247, 0.55); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; border-bottom-color: rgba(255, 255, 255, 0.16); }
.an-row.is-sum > span { border-bottom: 0; padding-top: 10px; color: rgba(245, 245, 247, 0.9); }
.an-row.is-base > span { color: rgba(245, 245, 247, 0.6); padding-top: 4px; }
.an-row > span:nth-child(n+2) { text-align: right; }
.an-up { color: #ffd166; }
.an-dn { color: #5eb8ff; }
.an-mute { color: rgba(245, 245, 247, 0.5); }

@media (max-width: 560px) {
  #an-cvs { height: 240px; }
  .an-dotrow { grid-template-columns: 3.4em 1fr; }
  .an-dotcount { grid-column: 2; }
  .an-table { grid-template-columns: minmax(6em, 1.2fr) 3.8em repeat(3, 4.2em); font-size: 0.82rem; gap: 0 8px; }
}
