/* P5 workbench. Supplied identity/UI roles; no prepared-data changes. */
.quick-look { --quick-look-planet-size: 16px; --quick-look-aspect-size: 9px; width: 100%; max-width: 1080px; padding: 12px; gap: 8px; border-radius: 8px; background: var(--astraliga-surface); container: quick-look / inline-size; }
.quick-look__heading { border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 0; }
.quick-look__heading > strong { font: 600 18px/24px Archivo, Arial, sans-serif; }
.quick-look-workbench { display: grid; grid-template-columns: minmax(176px, 1fr) minmax(240px, 1.05fr) minmax(152px, .9fr) 220px; gap: 12px; align-items: start; }
.quick-look-workbench[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-look-workbench--scores[data-columns="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) 220px; }
.quick-look-workbench[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-look-workbench--scores[data-columns="2"] { grid-template-columns: minmax(0, 1fr) 220px; }
.quick-look-workbench[data-columns="1"] { grid-template-columns: minmax(0, 1fr); }
.quick-look-workbench--scores[data-columns="1"] { grid-template-columns: 208px; }
.quick-look-column { min-width: 0; align-self: stretch; }
.quick-look-column--divided { padding-left: 12px; border-left: 1px solid var(--border); }
.quick-look .quick-facts { display: contents; min-width: 0; margin: 0; }
.quick-facts-moon, .quick-facts-axes, .quick-facts-lords { min-width: 0; }
.quick-facts-axes > .quick-facts-group { margin-top: 0; }
.quick-facts-section { margin: 0; }
.quick-facts-group { margin-top: 8px; }
.quick-facts-title { margin: 0 0 4px; padding: 4px 0; border-bottom: 1px solid var(--border); font: 600 12px/18px 'Source Sans 3', Arial, sans-serif; }
.moon-fact-line { display: grid; gap: 4px; }
.quick-look .moon-summary-line { row-gap: 0; }
.quick-look .axis-fact, .quick-look .quick-fact-row { display: grid; grid-template-columns: 52px 76px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--border); }
.quick-look .quick-facts .axis-fact:last-child { border-bottom: 0; }
.quick-look .quick-fact-row { align-items: start; }
.quick-look .quick-fact-row--hour { grid-template-columns: 84px minmax(0, 1fr); }
.quick-look .quick-fact__label { font: 600 12px/18px 'Source Sans 3', Arial, sans-serif; letter-spacing: 0; text-transform: none; margin: 0; }
.quick-look .quick-fact__value { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; color: var(--text); font: 600 14px/20px 'Source Sans 3', Arial, sans-serif; white-space: normal; overflow: visible; }
.quick-look .quick-fact__detail { margin: 0; min-height: 0; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; white-space: normal; overflow: visible; flex-wrap: wrap; gap: 4px; }
.quick-fact-row__content { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; min-width: 0; }
.quick-fact-row--moon .quick-fact__detail { flex-basis: auto; }
.quick-look .house-inline-tag { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.quick-look .lord-tags { opacity: 1; gap: 4px; }
.quick-look .lord-tags span { padding: 0; border: 0; border-radius: 0; background: none; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.quick-look .symbol-button { width: 20px; min-width: 20px; height: 20px; min-height: 20px; padding: 0; background: none; }
.quick-look :is(.symbol-button, .quick-look-object) > :is(img, svg.astraliga-icon, svg.astro-symbol) {
  display: block; flex: none; width: var(--quick-look-planet-size); height: var(--quick-look-planet-size); object-fit: contain;
}
.quick-look :is(.symbol-button, .quick-look-object) > svg.astro-symbol .astro-symbol-ink { stroke-width: 14; }
.quick-look-scores, .quick-look-scan { min-width: 0; }
.quick-look-scores { width: 100%; }
.quick-look-scores .compact-score-table { width: 100%; max-width: 208px; font: 400 14px/20px 'Source Sans 3', Arial, sans-serif; table-layout: fixed; }
.quick-look-scores .compact-score-table th, .quick-look-scores .compact-score-table td { height: auto; padding: 0 8px; border-right: 0; }
.quick-look-scores .compact-score-table thead th { padding-top: 4px; padding-bottom: 4px; background: var(--astraliga-surface-subtle); text-align: right; text-transform: none; font-weight: 600; }
.quick-look-scores .compact-score-table th:first-child { width: 40px; text-align: left; }
.quick-look-scores .compact-score-table tbody th { background: var(--astraliga-surface); }
.quick-look-scores .compact-score-table td { text-align: right; }
.quick-look-scores .compact-score-table tr:last-child > * { border-bottom: 0; }
.compact-score[data-score-breakdown] { border: 0; padding: 0; background: none; font: inherit; font-weight: 600; cursor: help; }
.compact-score[data-score-breakdown]:focus-visible { outline: 2px solid var(--astraliga-focus); outline-offset: 3px; }
.symbol-tooltip--score { width: max-content; max-width: min(320px, calc(100vw - 24px)); padding: 8px 12px; }
.score-calculation { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.score-calculation header { display: grid; gap: 4px; }
.score-calculation header strong { font: 600 14px/20px 'Source Sans 3', Arial, sans-serif; }
.score-calculation header small { font: inherit; }
.score-calculation dl { display: grid; gap: 4px; margin: 8px 0; }
.score-calculation dl > div, .score-calculation footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.score-calculation dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-calculation p { margin: 8px 0; }
.score-calculation footer { border-top: 1px solid var(--astraliga-border-control); padding-top: 4px; font-weight: 600; }
.quick-look-scan { display: grid; gap: 8px; margin-top: 8px; }
.quick-look-groups { display: grid; gap: 8px; }
.quick-look-group { display: grid; gap: 0; }
.quick-look-group > small { font: 600 12px/18px 'Source Sans 3', Arial, sans-serif; margin: 0; padding: 4px 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.quick-look-group ul { display: grid; grid-auto-rows: auto; gap: 0; }
.quick-look-group li, .quick-look-group li.quick-look-conjunction { margin: 0; padding: 4px 0; min-height: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; color: var(--text); font: 400 14px/20px 'Source Sans 3', Arial, sans-serif; gap: 4px; }
.quick-look-group li:focus-visible { outline-offset: -3px; }
.quick-look-group p { margin: 0; padding: 4px 0; }
.quick-look-scan .quick-look-coverage { margin: 0; padding: 0; }
.quick-look-scan .quick-look-coverage li { min-height: 0; padding: 4px 0; font-size: 12px; line-height: 18px; }
.quick-look .quick-look-aspect__relation {
  flex: 0 0 var(--quick-look-aspect-size); width: var(--quick-look-aspect-size); height: var(--quick-look-aspect-size);
  font: 400 var(--quick-look-aspect-size)/1 'Source Sans 3', Arial, sans-serif;
}
.quick-look .quick-look-aspect__relation > :is(img, svg.astraliga-icon, svg.astro-symbol) {
  display: block; width: var(--quick-look-aspect-size); height: var(--quick-look-aspect-size);
}
.quick-look .quick-look-aspect__relation .astro-symbol-ink { stroke: none; }
/* Lord summary follows Selected aspects, at Quick Look's compact data size. */
.quick-facts-lords .quick-look-group li { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.quick-facts-lords .quick-look-object--name { gap: 4px; white-space: nowrap; }
.quick-facts-lords .quick-look-lord-prefix { font: inherit; color: var(--muted); }
.quick-facts-lords .quick-look-aspect--sentence { gap: 4px; flex-wrap: wrap; max-width: 100%; }
.quick-facts-lords .quick-look-aspect__pair, .quick-facts-lords .quick-look-aspect__measure, .quick-facts-lords .quick-look-house-clause { display: inline-flex; align-items: center; gap: 4px; }
.quick-facts-lords .quick-look-aspect__pair, .quick-facts-lords .quick-look-aspect__measure { white-space: nowrap; }
.quick-facts-lords .quick-look-aspect__measure, .quick-facts-lords .quick-look-house-detail { color: var(--muted); font-variant-numeric: tabular-nums; }
.quick-facts-lords .quick-look-house-clauses { display: grid; gap: 4px; }
.quick-facts-lords .quick-look-house-clause { flex-wrap: wrap; }
.quick-facts-lords .quick-look-house-detail { white-space: nowrap; }
.quick-look-context, .quick-look-coverage { margin-top: 8px; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.quick-look-context { display: grid; gap: 4px; }
.context-band { gap: 8px 16px; padding: 12px; }
.context-item strong { font-size: 14px; line-height: 20px; }
.horoscope-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); padding: 16px; gap: 24px; }
.horoscope-wheel { max-width: 560px; }
.horoscope-wheel-workspace { min-width: 0; }
.horoscope-pan-hint { display: none; }
.horoscope-object-degree { font-size: 14px; }
.horoscope-panel .panel-heading { padding: 12px 16px; }
.horoscope-panel h3 { font: 600 18px/24px Archivo, Arial, sans-serif; }
.horoscope-key { grid-template-columns: minmax(0, 1fr); align-content: start; justify-self: end; width: fit-content; max-width: 100%; gap: 12px; min-width: 0; }
.horoscope-key > .horoscope-aspect-list, .horoscope-key > .dispositor-panel--compact { width: 100%; max-width: 100%; }
/* Expanded explanations must not widen the compact condition strip. */
.horoscope-key .dispositor-details { contain: inline-size; }
.horoscope-chart-note { padding: 0; border: 0; background: none; }
.horoscope-chart-note > strong { display: none; }
.horoscope-chart-note small { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.horoscope-aspect-list { padding: 16px 20px 12px; }
.horoscope-aspect-list header { padding-bottom: 12px; margin-bottom: 8px; }
.horoscope-aspect-list .chart-aspect-title { margin: 0; font: 600 18px/24px Archivo, Arial, sans-serif; }
.horoscope-aspect-list .chart-aspect-count { font: 400 14px/20px 'Source Sans 3', Arial, sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.horoscope-aspect-row--compact { align-items: center; gap: 4px; padding: 8px; min-height: 40px; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; flex-wrap: nowrap; width: max-content; min-width: 100%; }
.chart-aspect-groups { max-height: 360px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding-right: 4px; }
.chart-aspect-family + .chart-aspect-family { margin-top: 8px; }
.chart-aspect-family h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 4px 8px; background: var(--astraliga-surface-subtle); color: var(--astraliga-text); font: 600 14px/20px 'Source Sans 3', Arial, sans-serif; }
.chart-aspect-family h4 span { color: var(--muted); font-weight: 400; }
/* Keep approved object colours legible on selected dark controls. */
.chart-member-buttons .is-selected .astro-symbol { background: var(--astraliga-surface); border-radius: var(--ag-radius-control); }
.horoscope-aspect-list .chart-aspect-family ol { max-height: none; overflow: visible; padding: 0; }
.horoscope-aspect-row--compact .chart-aspect-pair { gap: 4px; align-items: center; flex-wrap: nowrap; flex: none; }
.horoscope-aspect-row--compact .chart-aspect-endpoint { align-items: center; font-size: 13px; }
.chart-aspect-lord-prefix { color: var(--muted); font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
/* The two aspect filter bars share one approved glyph treatment. */
.workspace-aspect-button svg.astro-symbol,
.tl-workspace .tl-filter-band .tl-aspect-options button[data-tl="aspect"] svg.astro-symbol { width: 15px; min-width: 15px; height: 15px; }
.tl-workspace .tl-aspect-options button svg.astro-symbol .astro-symbol-ink { stroke: none; }
.horoscope-aspect-row--compact .horoscope-aspect-row__symbol { display: inline-flex; align-items: center; flex: 0 0 10px; width: 10px; height: 10px; font-size: 10px; line-height: 10px; }
.horoscope-aspect-row--compact .horoscope-aspect-row__symbol svg.astraliga-icon { display: block; width: 10px; height: 10px; }
.horoscope-aspect-row--compact .chart-aspect-measure { align-items: center; padding-left: 0; border-left: 0; flex: none; color: var(--muted); }
.horoscope-aspect-row--compact .chart-aspect-orb { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; font-variant-numeric: tabular-nums; }
.horoscope-aspect-row--compact .chart-aspect-phase { margin: 0; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.horoscope-aspect-list svg.astro-symbol { display: block; flex: none; }
.horoscope-aspect-row--compact .horoscope-aspect-row__symbol svg.astro-symbol { width: 10px; height: 10px; }
.horoscope-aspect-list svg.astro-symbol .astro-symbol-ink { stroke: none; }
.dispositor-panel--compact { width: 100%; max-width: 100%; margin: 0; min-width: 0; }
.dispositor-panel--compact .panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.dispositor-panel--compact .panel-heading p { margin: 0; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.dispositor-details > summary { display: list-item; box-sizing: border-box; min-height: var(--ag-size-target); padding: 12px; cursor: pointer; list-style-position: inside; color: var(--muted); font: 400 12px/20px 'Source Sans 3', Arial, sans-serif; }
.dispositor-details > summary:focus-visible { outline: 2px solid var(--astraliga-focus); outline-offset: -3px; }
.dispositor-details[open] > summary { border-bottom: 1px solid var(--border); }
.dispositor-panel--compact .dispositor-grid { display: block; max-height: none; overflow: visible; background: var(--astraliga-surface); }
.dispositor-panel--compact .dispositor-row { display: block; min-height: 28px; padding: 4px 12px; border-bottom: 1px solid var(--astraliga-surface-subtle); }
.dispositor-panel--compact .dispositor-row:last-child { border-bottom: 0; }
.dispositor-panel--compact .dispositor-chain { flex-wrap: wrap; align-items: center; gap: 4px; overflow: visible; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.dispositor-panel--compact svg.astro-symbol .astro-symbol-ink { stroke: none; }
.dispositor-condition-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 8px; overflow: visible; border-bottom: 1px solid var(--border); }
.dispositor-condition { flex: 0 0 auto; min-width: 16px; }
.dispositor-condition + .dispositor-condition { border-inline-start: 2px solid var(--border); margin-inline-start: 4px; padding-inline-start: 4px; }
.dispositor-condition .dispositor-planet { flex-wrap: nowrap; align-items: center; gap: 4px; }
.dispositor-condition .dispositor-tags { flex-wrap: nowrap; }
.dispositor-step { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; max-width: 100%; }
.dispositor-planet { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; width: auto; min-width: 0; flex: 0 1 auto; }
.dispositor-planet .compact-planet { flex: 0 0 16px; line-height: 16px; }
.dispositor-planet .symbol-button { width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; background: none; }
.dispositor-planet .symbol-button.dispositor-name { width: auto; height: auto; min-height: 18px; color: var(--text); font: 600 12px/18px 'Source Sans 3', Arial, sans-serif; white-space: nowrap; }
.dispositor-planet .symbol-button img, .dispositor-planet .symbol-button svg.astraliga-icon { display: block; width: 16px; height: 16px; }
.dispositor-tags { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 4px; min-width: 0; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.dispositor-tags abbr { display: inline-block; margin: 0; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; color: var(--muted); white-space: nowrap; text-decoration: none; }
.dispositor-step .chain-arrow, .dispositor-step .chain-cycle { margin: 0; color: var(--muted); font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.horoscope-panel > .dispositor-panel--compact { margin: 16px; max-width: calc(100% - 32px); }
.dispositor-status-gap { margin: 0; padding: 8px 12px; border-top: 1px solid var(--border); font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; color: var(--muted); }
.horoscope-heading .section-kicker { margin: 0; font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; }
.horoscope-heading > p { font-size: 12px; }
.chart-workspace-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; position: relative; }
.chart-workspace-band .workspace-search { flex: 0 1 220px; min-width: 160px; width: 220px; max-width: 100%; }
.chart-workspace-band .workspace-search input { min-height: 40px; padding: 8px; border-radius: 4px; font: 400 14px/20px 'Source Sans 3', Arial, sans-serif; }
.chart-workspace-band .aspect-mode-switch { flex-shrink: 0; margin-left: auto; }
.chart-workspace-band .aspect-mode-switch button { min-height: 32px; padding: 4px 8px; font: 600 12px/18px 'Source Sans 3', Arial, sans-serif; }
.workspace-aspect-controls { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 8px; border: 0; padding: 0; background: none; }
.workspace-aspect-controls > .quick-fact__label { flex-basis: auto; }
.workspace-aspect-types { gap: 0; }
.workspace-aspect-button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; }
.workspace-aspect-button > span { display: grid; place-items: center; box-sizing: border-box; width: 24px; height: 24px; padding: 0; border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.workspace-aspect-button.is-selected { background: transparent; }
.workspace-aspect-button.is-selected > span { background: var(--astraliga-surface-subtle); border-color: var(--astraliga-action); }
.workspace-aspect-button img, .workspace-aspect-button .astraliga-icon { display: block; width: 16px; height: 16px; }
.workspace-aspect-button svg.astro-symbol { display: block; width: 15px; height: 15px; background: none; }
.workspace-aspect-button svg.astro-symbol .astro-symbol-ink { stroke: none; }
.workspace-phase-summary { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; color: var(--muted); }
.chart-object-controls { flex-shrink: 0; }
.chart-object-controls > summary { cursor: pointer; padding: 8px; border: 1px solid var(--border); border-radius: 4px; font: 600 14px/20px 'Source Sans 3', Arial, sans-serif; }
.chart-object-controls > summary span { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; color: var(--muted); margin-left: 8px; }
.chart-object-controls[open] > .horoscope-layer-controls { position: absolute; right: 16px; top: 100%; width: min(640px, calc(100% - 32px)); z-index: 6; border: 1px solid var(--border); border-radius: 4px; background: var(--astraliga-surface); padding: 12px; }
.chart-object-controls .horoscope-layer-control { flex: 1 1 160px; }
.chart-object-controls .horoscope-layer-controls > legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; min-height: 44px; line-height: 18px; }
.chart-member-heading { position: sticky; top: 0; z-index: 1; flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); font: 600 14px/20px 'Source Sans 3', Arial, sans-serif; }
button.chart-picker-close { flex: 0 0 44px; display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface); cursor: pointer; }
button.chart-picker-close:hover { color: var(--green); background: var(--surface-muted); }
button.chart-picker-close:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
button.chart-picker-close .astraliga-icon { display: block; width: 20px; height: 20px; }
.static-analysis-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 16px 0; }
.static-analysis-row:empty { display: none; }
.static-analysis-row .static-summary-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 0; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.static-analysis-row .summary-panel { width: 176px; max-width: 100%; }
.static-analysis-row .summary-panel:has(.compact-score-table:not(.compact-score-table--totals)) { width: 400px; }
.static-analysis-row .panel-heading { padding: 8px 12px; flex-wrap: wrap; gap: 0 8px; min-height: 56px; }
.static-analysis-row .panel-heading h3 { font: 600 18px/24px Archivo, Arial, sans-serif; }
.static-analysis-row .panel-heading p { font: 400 12px/18px 'Source Sans 3', Arial, sans-serif; margin: 0; }
.static-analysis-row .compact-score-table { font: 400 14px/20px 'Source Sans 3', Arial, sans-serif; }
.static-analysis-row .compact-score-table th, .static-analysis-row .compact-score-table td { height: 32px; padding: 4px 8px; }
.static-analysis-row .compact-score-table--totals td { text-align: right; }
.static-analysis-row .compact-score-table--totals th { text-align: left; }
.static-analysis-row .compact-score-table--totals tbody th { width: 48px; }
.static-analysis-row .dispositor-panel { margin: 0; flex: 1 1 480px; }
.static-analysis-row .dispositor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--astraliga-surface); gap: 0; }
.static-analysis-row .dispositor-row { min-height: 40px; padding: 4px 8px; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; border-bottom: 1px solid var(--border); }
.static-analysis-row .dispositor-row:nth-child(2n + 1) { border-right: 1px solid var(--border); }
.static-analysis-row .dispositor-subject { border-right: 1px solid var(--border); }
.static-analysis-row .dispositor-chain { flex-wrap: wrap; overflow: visible; gap: 4px; }
.static-analysis-row .dispositor-chain .symbol-button { width: 20px; min-height: 24px; padding: 0; }
.static-analysis-row .dispositor-chain img { width: 20px; height: 20px; }
.static-analysis-row .chain-cycle { margin: 0; }
/* Shared typography also replaces the old timeline's primary Arial role. */
.tl-workspace[data-overview="false"], .tl-workspace[data-overview="false"] button, .tl-workspace[data-overview="false"] select,
.tl-workspace[data-overview="false"] .tl-filter-band, .tl-workspace[data-overview="false"] .tl-layer-options label,
.tf-panel, .tf-panel button.tf-event, .tf-panel .tf-label, .tf-panel .tf-label small,
.tf-panel .tf-pointer-time, .tf-panel .tf-penalty { font-family: 'Source Sans 3', Arial, sans-serif; }
.tl-workspace[data-overview="false"] .tl-header h3 { font-family: Archivo, Arial, sans-serif; font-size: 18px; line-height: 24px; font-weight: 600; }
.tf-panel .tf-glyph { font-family: 'Astraliga Astro Symbols', 'Source Sans 3', Arial, sans-serif; }
.tf-static .tf-details { height: auto; min-height: 0; max-height: none; }
.tf-static .tf-detail-records { height: auto; max-height: none; overflow-y: visible; }
.tf-panel .tf-details, .tf-panel td { font-family: 'Source Sans 3', Arial, sans-serif; }
.tf-panel table, .tf-panel .tf-toolbar label, .tf-panel .tf-details h4,
.tf-panel .tf-details small, .tf-panel .tf-details>div>span, .tf-panel small.tf-record-match-minute,
.match-record:has([id^="panel-timeline-"]:not([hidden])) .team-name { font-family: 'Source Sans 3', Arial, sans-serif; }
.static-analysis-row .summary-panel .panel-heading { display: block; }
@media (max-width: 1023px) {
  .horoscope-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); gap: 16px; }
  .static-analysis-row .dispositor-panel { flex-basis: 100%; }
}
/* Wrap at the four compact columns' actual minimum sum (176 + 240 + 152 + 220 + 36).
   Viewport width alone cannot guarantee room inside the customer panel. */
@container quick-look (max-width: 823px) {
  .quick-look-workbench, .quick-look-workbench[data-columns="3"], .quick-look-workbench--scores[data-columns="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-look-column--divided { padding-left: 0; border-left: 0; }
  .quick-look-workbench[data-columns="4"] .quick-facts-axes, .quick-look-workbench[data-columns="4"] .quick-look-scores { padding-left: 12px; border-left: 1px solid var(--border); }
}
@container quick-look (max-width: 559px) {
  .quick-look-workbench[data-columns] { grid-template-columns: minmax(0, 1fr); }
  .quick-look-workbench[data-columns] .quick-look-column { padding-left: 0; border-left: 0; }
  .quick-look .axis-fact { row-gap: 0; padding: 0; }
  .quick-look .quick-fact-row { grid-template-columns: 76px minmax(0, 1fr); row-gap: 0; }
}
@container quick-look (max-width: 279px) {
  .quick-look .axis-fact .quick-fact__detail { grid-column: 2 / -1; }
}
@media (max-width: 639px) {
  .quick-look { padding: 12px; }
  .horoscope-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .horoscope-wheel { overflow-x: auto; width: 100%; max-width: 100%; }
  .horoscope-wheel > svg { width: 640px; min-width: 640px; }
  .horoscope-wheel figcaption { position: sticky; left: 0; width: 100%; }
  .horoscope-pan-hint { display: block; }
  .chart-workspace-band { padding: 8px 12px; }
  .chart-workspace-band .workspace-search { flex-basis: 100%; width: 100%; }
  .chart-object-controls { width: 100%; }
  .chart-object-controls[open] > .horoscope-layer-controls { position: static; width: 100%; margin-top: 8px; }
  .workspace-phase-summary { flex-basis: 100%; }
  .static-analysis-row { gap: 12px; }
  .static-analysis-row .static-summary-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .static-analysis-row .summary-panel { width: auto; }
  .static-analysis-row .summary-panel:has(.compact-score-table:not(.compact-score-table--totals)) { width: auto; grid-column: 1 / -1; }
  .static-analysis-row .dispositor-grid { grid-template-columns: minmax(0, 1fr); }
  .static-analysis-row .dispositor-row { border-right: 0; }
  .static-analysis-row .panel-heading { padding: 8px; }
}
@media (pointer: coarse) {
  .chart-workspace-band .workspace-search input, .chart-workspace-band .aspect-mode-switch button { min-height: 44px; }
  .workspace-aspect-button, .chart-object-controls > summary { min-width: 44px; min-height: 44px; }
  .horoscope-aspect-row--compact { min-height: 44px; }
  .compact-total:has([data-score-breakdown]) { padding: 0 4px; }
  .compact-score[data-score-breakdown] { min-width: 44px; min-height: 44px; }
}

/* Owner-approved bi-wheel geometry; shared Astronomicon family. */
.chart-workspace:has(.biwheel-svg) { container: biwheel-workspace / inline-size; }
.horoscope-layout:has(.biwheel-svg) { grid-template-columns: minmax(0, min(calc((100% - 16px) / 1.8), 792px, calc(110dvh - 96.8px))) minmax(280px, 1fr); gap: 16px; }
/* The chart is viewed below the sticky header; do not also subtract controls
   that have already scrolled away. Keep a readable middle-size desktop frame. */
.horoscope-wheel:has(.biwheel-svg) { width: min(100%, 792px, calc(110dvh - 96.8px)); max-width: 792px; margin: 0; overflow-x: auto; }
.horoscope-wheel > svg.biwheel-svg { width: 100%; min-width: 0; }
.biwheel-svg {
  --biwheel-fire: #D62228;
  --biwheel-earth: #087F35;
  --biwheel-air: #00788B;
  --biwheel-water: #2949D4;
  --biwheel-angle: #713FAD;
  --biwheel-action: #007969;
  --biwheel-warning: #90550C;
}
[data-astraliga-theme="dark"] .biwheel-svg {
  --biwheel-fire: #FF6268;
  --biwheel-earth: #61D385;
  --biwheel-air: #4ED8E4;
  --biwheel-water: #7899FF;
  --biwheel-angle: #B990EE;
  --biwheel-action: #56CFAD;
  --biwheel-warning: #F0AD54;
}
.biwheel-svg .biwheel-background { fill: var(--astraliga-surface); }
.biwheel-svg .biwheel-ring, .biwheel-svg .biwheel-house-line { fill: none; stroke: var(--astraliga-text); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.biwheel-svg .biwheel-house-line { stroke-width: 1.2; }
.biwheel-svg .biwheel-house[data-cusp="1"] .biwheel-house-line, .biwheel-svg .biwheel-house[data-cusp="4"] .biwheel-house-line,
.biwheel-svg .biwheel-house[data-cusp="7"] .biwheel-house-line, .biwheel-svg .biwheel-house[data-cusp="10"] .biwheel-house-line { stroke-width: 1.6; }
.biwheel-svg text { font-family: 'Source Sans 3', Arial, sans-serif; font-size: var(--biwheel-font-size, 16px); font-weight: 600; fill: var(--astraliga-text); dominant-baseline: auto; font-variant-numeric: tabular-nums; }
.biwheel-svg text[text-anchor="end"] { text-anchor: end; }
.biwheel-svg text[text-anchor="start"] { text-anchor: start; }
.biwheel-svg text[text-anchor="middle"] { text-anchor: middle; }
.biwheel-svg .biwheel-glyph, .biwheel-svg .biwheel-sign { font-family: 'Astraliga Astro Symbols'; font-size: var(--biwheel-font-size, 44px); font-weight: 400; font-synthesis: none; fill: var(--biwheel-color) !important; stroke: var(--biwheel-edge, var(--biwheel-color)); stroke-width: 1.6; paint-order: stroke fill; stroke-linecap: round; stroke-linejoin: round; }
.biwheel-svg .biwheel-sign { stroke-width: 1.1; }
.biwheel-svg .horoscope-object:focus .biwheel-glyph { stroke-width: 1.6; }
.biwheel-svg .biwheel-name { font-family: 'Source Sans 3', Arial, sans-serif; font-size: var(--biwheel-font-size, 24px); fill: var(--biwheel-color) !important; stroke: none; }
.biwheel-svg .biwheel-coordinate { fill: var(--astraliga-text) !important; stroke: var(--astraliga-surface); stroke-width: 2; paint-order: stroke fill; stroke-linejoin: round; }
.biwheel-svg .biwheel-house:is([data-cusp="1"], [data-cusp="4"], [data-cusp="7"], [data-cusp="10"]) .biwheel-cusp-coordinate { font-weight: 700; }
.biwheel-svg .biwheel-axis-name { fill: var(--astraliga-action) !important; }
.biwheel-svg .biwheel-motion { fill: var(--astraliga-error-fg, #A6383D) !important; }
.biwheel-svg .biwheel-exact-position { opacity: 0; pointer-events: none; fill: var(--astraliga-surface); stroke: var(--astraliga-action); stroke-width: 2; }
.biwheel-svg :is(.biwheel-object, .biwheel-axis):is(:hover, :focus) .biwheel-exact-position { opacity: 1; }
.biwheel-svg .biwheel-inspection-aspects .horoscope-aspect { opacity: 0; }
.biwheel-svg .biwheel-inspection-aspects .horoscope-aspect-hit { pointer-events: none; }
.biwheel-svg .biwheel-inspection-aspects .horoscope-aspect.is-highlighted { opacity: 1; }
@container biwheel-workspace (max-width: 719px) {
  .horoscope-layout:has(.biwheel-svg) { grid-template-columns: minmax(0, 1fr); }
  .horoscope-wheel:has(.biwheel-svg) { width: 100%; max-width: 100%; }
  .horoscope-wheel > svg.biwheel-svg { width: 792px; min-width: 792px; }
  .horoscope-wheel:has(.biwheel-svg) .horoscope-pan-hint { display: block; }
}
