/* Orrery 2.0 (helio-render.js): the body info card — in the right panel (Chart ▸ Orrery Body); floating over the canvas only
   without the report bar (classic workspace). */
.helio-info {
  position: absolute; bottom: 44px; right: 12px; z-index: 6;   /* bottom-right: the top-left carries the canvas title and notices */
  min-width: 210px; max-width: min(280px, calc(100% - 24px));
  padding: 8px 10px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg, #0a0e18) 92%, transparent);
  border: 1px solid var(--bd, #1c2538); color: var(--tx, #d6d8ea);
  font: 11px/1.35 var(--text-font, system-ui, sans-serif);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}
.helio-info[hidden] { display: none; }
.helio-info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.helio-info-title { font-weight: 600; font-size: 12px; color: var(--ac, #c9aa6f); letter-spacing: .02em; }
.helio-info-close {
  border: 0; background: transparent; color: var(--td, #8890a8); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 4px; min-width: 24px; min-height: 24px;
}
.helio-info-close:hover, .helio-info-close:focus-visible { color: var(--tx, #d6d8ea); background: color-mix(in srgb, var(--tx, #d6d8ea) 10%, transparent); }
.helio-info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.helio-info dt { color: var(--td, #8890a8); }
.helio-info dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .helio-info { bottom: 10px; right: 8px; } }
.helio-info-actions { margin-top: 3px; }   /* rows of buttons (helio-info-row) and the jump status line */
.helio-info-follow {
  border: 1px solid var(--bd, #1c2538); background: transparent; color: var(--tx, #d6d8ea); cursor: pointer;
  font: inherit; padding: 3px 10px; border-radius: 5px; min-height: 24px;
}
.helio-info-follow:hover, .helio-info-follow:focus-visible { border-color: var(--ac, #c9aa6f); }
.helio-info-follow.active { border-color: var(--ac, #c9aa6f); color: var(--ac, #c9aa6f); }
/* hover tooltip over the Orrery canvas */
.helio-tip {
  position: absolute; z-index: 7; pointer-events: none; max-width: 240px;
  padding: 5px 8px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--bg, #0a0e18) 94%, transparent);
  border: 1px solid var(--bd, #1c2538); color: var(--tx, #d6d8ea);
  font: 11px/1.35 var(--text-font, system-ui, sans-serif); font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}
.helio-tip[hidden] { display: none; }
.helio-tip-head { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.helio-tip-head b { color: var(--ac, #c9aa6f); font-weight: 600; }
.helio-tip-head span { color: var(--td, #8890a8); font-size: var(--fs-caption); }
#helio-controls select { font: inherit; font-size: 11px; background: transparent; color: inherit; border: 1px solid var(--bd, #1c2538); border-radius: 4px; padding: 1px 2px; }
/* Orrery info card: actions, jumps and the synodic / conjunction finder (helio-render.js + helio-events.js) */
.helio-info { max-height: calc(100% - 60px); overflow-y: auto; }
.helio-info-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; margin-top: 6px; }
.helio-info-kicker { color: var(--td, #8890a8); font-size: var(--fs-caption); margin-right: auto; }
.helio-info-btn {
  border: 1px solid var(--bd, #1c2538); background: transparent; color: var(--tx, #d6d8ea); cursor: pointer;
  font: inherit; padding: 2px 8px; border-radius: 5px; min-height: 24px;
}
.helio-info-btn:hover:not(:disabled), .helio-info-btn:focus-visible { border-color: var(--ac, #c9aa6f); }
.helio-info-btn.active { border-color: var(--ac, #c9aa6f); color: var(--ac, #c9aa6f); }
.helio-info-btn:disabled { opacity: .45; cursor: default; }
.helio-info-btn[aria-busy="true"] { border-style: dashed; }
.helio-info-msg { margin-top: 5px; color: var(--td, #8890a8); font-size: var(--fs-caption); text-align: right; }
.helio-info-err { color: var(--bad, #e05242); }
.helio-info-finder { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--bd, #1c2538); }
.helio-info-finder[hidden] { display: none; }
.helio-info-finder select { font: inherit; background: transparent; color: inherit; border: 1px solid var(--bd, #1c2538); border-radius: 4px; padding: 1px 2px; min-height: 24px; }
.helio-finder-pick { justify-content: space-between; margin-top: 0; }
.helio-finder-syn { margin-top: 5px; font-variant-numeric: tabular-nums; }
.helio-finder-h { margin-top: 6px; color: var(--td, #8890a8); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .05em; }
.helio-finder-none { color: var(--td, #8890a8); font-size: var(--fs-caption); }
.helio-finder-list { list-style: none; margin: 2px 0 0; padding: 0; }
.helio-finder-go {
  display: grid; grid-template-columns: 16px auto 1fr; gap: 6px; align-items: baseline; width: 100%; text-align: left;
  border: 0; background: transparent; color: inherit; font: inherit; padding: 2px 3px; border-radius: 4px; cursor: pointer; min-height: 24px;
}
.helio-finder-go.helio-finder-now { box-shadow: inset 2px 0 0 var(--ac, #c9aa6f); }
.helio-finder-go:hover, .helio-finder-go:focus-visible { background: color-mix(in srgb, var(--ac, #c9aa6f) 14%, transparent); }
.helio-finder-mark { color: var(--ac, #c9aa6f); text-align: center; }
.helio-finder-when { font-variant-numeric: tabular-nums; white-space: nowrap; }
.helio-finder-detail { color: var(--td, #8890a8); font-size: var(--fs-caption); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Transits ▸ Helio Events (helio-events.js, report-bar view 'helio-events') */
.helio-ev { display: flex; flex-direction: column; gap: 6px; padding: 6px 2px; min-height: 0; }
.helio-ev-title { margin: 0; font-size: 12px; font-weight: 600; color: var(--ac, #c9aa6f); }
.helio-ev-sub { margin: 2px 0 0; }
.helio-ev-controls { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.helio-ev-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.helio-ev-seg button {
  border: 1px solid var(--bd, #1c2538); background: transparent; color: var(--td, #8890a8); cursor: pointer;
  font: var(--fs-caption)/1.2 var(--text-font, system-ui, sans-serif); padding: 3px 7px; border-radius: 5px; min-height: 24px;
}
.helio-ev-seg button[aria-pressed="true"] { color: var(--tx, #d6d8ea); border-color: var(--ac, #c9aa6f); background: color-mix(in srgb, var(--ac, #c9aa6f) 12%, transparent); }
.helio-ev-seg button:focus-visible { outline: 2px solid var(--ac, #c9aa6f); outline-offset: 1px; }
.helio-ev-seg button.helio-ev-glyph { font-size: 14px; min-width: 26px; padding: 1px 4px; }
.helio-ev-status { font-size: var(--fs-caption); color: var(--td, #8890a8); }
.helio-ev-status .helio-ev-line { color: var(--tx, #d6d8ea); }
.helio-ev-status.helio-ev-error .helio-ev-line { color: var(--bad, #e05242); }
.helio-ev-scroll { overflow: auto; max-height: 62vh; border: 1px solid var(--bd, #1c2538); border-radius: 6px; }
.helio-ev-table { width: 100%; border-collapse: collapse; font: 11px/1.3 var(--text-font, system-ui, sans-serif); font-variant-numeric: tabular-nums; }
.helio-ev-table th { position: sticky; top: 0; z-index: 1; background: var(--bg, #0a0e18); color: var(--td, #8890a8); font-weight: 500; text-align: left; padding: 4px 5px; border-bottom: 1px solid var(--bd, #1c2538); }
.helio-ev-table td { padding: 3px 5px; border-bottom: 1px solid color-mix(in srgb, var(--bd, #1c2538) 60%, transparent); vertical-align: baseline; }
.helio-ev-table td.helio-ev-g { width: 18px; padding: 3px 2px; text-align: center; font-size: 14px; }
.helio-ev-table td.helio-ev-date { white-space: nowrap; }
.helio-ev-table td.helio-ev-pos { color: var(--td, #8890a8); font-size: var(--fs-caption); }
.helio-ev-mark { color: var(--ac, #c9aa6f); }
.helio-ev-row { cursor: pointer; }
.helio-ev-row:hover, .helio-ev-row:focus-visible { background: color-mix(in srgb, var(--ac, #c9aa6f) 10%, transparent); outline: none; }
.helio-ev-row.helio-ev-past { opacity: .72; }
.helio-ev-row.helio-ev-sel { background: color-mix(in srgb, var(--ac, #c9aa6f) 18%, transparent); opacity: 1; }
.helio-ev-now td { padding: 2px 5px; font-size: var(--fs-caption); color: var(--ac, #c9aa6f); border-top: 1px solid var(--ac, #c9aa6f); border-bottom: 0; }
.helio-ev-empty { color: var(--td, #8890a8); text-align: center; padding: 10px; }

/* Orrery Geometry panel (helio-geometry-view.js): floating, top left under the canvas captions; the info card keeps the bottom right */
.helio-geo {
  position: absolute; top: 132px; left: 12px; z-index: 6; width: min(300px, calc(100% - 24px)); max-height: calc(100% - 190px); overflow-y: auto;
  padding: 8px 10px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg, #0a0e18) 93%, transparent);
  border: 1px solid var(--bd, #1c2538); color: var(--tx, #d6d8ea);
  font: 11px/1.35 var(--text-font, system-ui, sans-serif);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}
.helio-geo[hidden] { display: none; }
.helio-geo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.helio-geo-title { font-weight: 600; font-size: 12px; color: var(--ac, #c9aa6f); letter-spacing: .02em; }
.helio-geo-close { border: 0; background: transparent; color: var(--td, #8890a8); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 4px; min-width: 24px; min-height: 24px; }
.helio-geo-close:hover, .helio-geo-close:focus-visible { color: var(--tx, #d6d8ea); background: color-mix(in srgb, var(--tx, #d6d8ea) 10%, transparent); }
.helio-geo-sub { color: var(--td, #8890a8); font-size: var(--fs-caption); margin: 3px 0 4px; }
.helio-geo-sec { border-top: 1px solid var(--bd, #1c2538); margin-top: 6px; padding-top: 4px; }
.helio-geo-sec > summary { cursor: pointer; color: var(--tx, #d6d8ea); font-weight: 600; font-size: 11px; padding: 2px 0; min-height: 22px; list-style-position: inside; }
.helio-geo-sec > summary:focus-visible { outline: 1px solid var(--ac, #c9aa6f); outline-offset: 1px; border-radius: 3px; }
.helio-geo-row { display: flex; gap: 4px; align-items: center; margin: 4px 0; flex-wrap: wrap; }
.helio-geo-wrap { flex-wrap: wrap; gap: 2px 10px; }
.helio-geo select, .helio-geo-num { font: inherit; background: transparent; color: inherit; border: 1px solid var(--bd, #1c2538); border-radius: 4px; padding: 1px 2px; min-height: 24px; max-width: 100%; }
.helio-geo select option { background: var(--bg, #0a0e18); }
.helio-geo-num { width: 44px; }
.helio-geo-dim { color: var(--td, #8890a8); }
.helio-geo-btn { border: 1px solid var(--bd, #1c2538); background: transparent; color: var(--tx, #d6d8ea); cursor: pointer; font: inherit; padding: 2px 8px; border-radius: 5px; min-height: 24px; white-space: nowrap; }
.helio-geo-btn:hover, .helio-geo-btn:focus-visible { border-color: var(--ac, #c9aa6f); }
.helio-geo-check { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; min-height: 22px; cursor: pointer; }
.helio-geo-list { list-style: none; margin: 2px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
.helio-geo-item { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: baseline; padding: 1px 2px; border-radius: 4px; }
.helio-geo-item:hover { background: color-mix(in srgb, var(--ac, #c9aa6f) 10%, transparent); }
.helio-geo-item label { display: flex; gap: 5px; align-items: baseline; min-width: 0; cursor: pointer; min-height: 22px; }
.helio-geo-item input { flex: none; margin: 0; }
.helio-geo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helio-geo-err { font-variant-numeric: tabular-nums; color: var(--td, #8890a8); font-size: var(--fs-caption); }
.helio-geo-err.good { color: var(--good, #6fbf73); }
.helio-geo-err.fair { color: var(--ac, #c9aa6f); }
.helio-geo-err.weak { color: var(--td, #8890a8); }
.helio-geo-page { color: var(--td, #8890a8); font-size: var(--fs-caption); text-align: right; min-width: 34px; }
@media (max-width: 600px) { .helio-geo { top: auto; bottom: 10px; left: 8px; right: 8px; width: auto; max-height: 48%; } }
#helio-controls #helio-frame { max-width: 9.5em; }

/* Right panel (Chart ▸ Orrery Body): a plain block in the panel's flow, not a floating card */
.helio-info.helio-info-panel {
  position: static; min-width: 0; max-width: none; margin: 4px 0 8px; padding: 6px 8px 8px;
  background: transparent; border: 0; box-shadow: none; font-size: 11.5px;
}
.helio-info-panel .helio-info-title { font-size: 13px; }
.helio-info-panel dl { grid-template-columns: minmax(96px, auto) 1fr; }
.helio-info dt.helio-info-section {
  grid-column: 1 / -1; margin: 6px 0 1px; padding-top: 4px; border-top: 1px solid var(--bd, #1c2538);
  color: var(--ac, #c9aa6f); font-size: var(--fs-caption); letter-spacing: .06em; text-transform: uppercase;
}
.helio-info-empty[hidden], .helio-info-panel > [hidden] { display: none; }

/* Accessibility (orrery M5, helio-render.js): the spoken key results and the keyboard list of bodies after the canvas.
   Visually hidden: the focused body is ringed on the canvas and its tooltip shows instead. */
.helio-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.helio-sr[hidden] { display: none; }
