/* Reading section: the tab bar and the Overview, Charts, Yogas, Predictions and Transits panels.
   The shared look (panels, cards, header bars, gold coins, badges, paper) comes from css/surfaces.css
   classes set in the markup; this file adds each component's layout and its own details.
   Load order: styles.css, surfaces.css, reading.css, then page CSS (chat.css overrides some of this).

   Contents
   1. Tab bar
   2. Shared reading pieces (tab headings, stats strip, filters, status, empty state)
   3. Overview
   4. Charts
   5. Yogas
   6. Transits and Predictions
   7. Responsive */

/* 1. Tab bar ---------------------------------------------------------------------------------- */
/* One full-width frame with the card look (gold border, top edge, ivory gradient: css/surfaces.css) holding
   five equal tabs, each a gold coin and a label; the selected one is dark with a yellow edge, like the
   other selected toggles. overflow stays visible so focus rings are not clipped. */
.summary-tabs {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 5px;
  margin-bottom: 14px;
  padding: 6px;
  overflow: visible;
  border-radius: 17px;
}
.summary-tabs button {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5d594f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.summary-tab-icon { transition: transform .2s ease; }
.summary-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-tabs button:not([aria-selected="true"]):hover { border-color: var(--gold-line); background: var(--gold-100); color: var(--ink); }
.summary-tabs button:hover .summary-tab-icon { transform: scale(1.08); }
.summary-tabs button[aria-selected="true"] {
  border-color: var(--yellow);
  background: #252523;
  color: var(--white);
  box-shadow: 0 8px 18px -10px rgb(37 37 35 / 60%);
}
.summary-tabs button:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }

/* 2. Shared reading pieces -------------------------------------------------------------------- */
/* Tab headings: eyebrow + title on the left, a note or icon on the right. */
.overview-life-areas-heading,
.yogas-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.transits-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
/* Section headings (Readings tab life areas, Yogas, Predictions, Timeline patterns): the eyebrow and title share one line,
   split by a gold rule, and the title uses the eyebrow's type (size, weight, spacing) in its own sentence case. The
   collapsible panels' titles (.reading-collapse-title, below) look the same. */
.reading-title-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.overview-life-areas-heading .reading-title-line h3,
.yogas-heading .reading-title-line h3,
.transits-heading .reading-title-line h3,
.prediction-areas-heading .reading-title-line h3 { margin: 0; padding-left: 10px; border-left: 1px solid var(--gold-pill-border); font-size: 10px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; }
/* Collapsible panels (Charts tab: Chart views, Birth panchang; Readings tab: Life patterns): a surface-header bar with the
   icon, the title (eyebrow | subtitle, as above) and a chevron, like the yoga categories. js/ui/collapse.js remembers the
   open state for the tab. */
.reading-collapse { border: 0; background: none; }
.reading-collapse-head::after {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: 0 4px 0 auto;
  border-right: 1.5px solid var(--gold-ink);
  border-bottom: 1.5px solid var(--gold-ink);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.reading-collapse[open] > .reading-collapse-head::after { transform: rotate(225deg) translate(-1px, -1px); }
.reading-collapse-head .reading-collapse-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; margin: 0; line-height: 1.2; }
.reading-collapse-sub { padding-left: 10px; border-left: 1px solid var(--gold-pill-border); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.reading-collapse-title .life-profile-ai { align-self: center; letter-spacing: .02em; }
.reading-collapse > .reading-collapse-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .reading-collapse-head::after { transition: none; } }
/* The AI chip after such a title (life areas, yogas, predictions), centred on the line. */
.reading-title-line .life-profile-ai { align-self: center; }
/* Predictions: the date range (and Timeline patterns: its note) under the title line. */
.transits-heading .reading-title-line + p,
.prediction-areas-heading .reading-title-line + p { margin-top: 5px; }
.yogas-heading h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.04em; }
.transits-heading h3 { margin: 5px 0 3px; font-size: 17px; letter-spacing: -.04em; }
.overview-life-areas-heading > p,
.yogas-heading > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.overview-life-areas-heading > p { max-width: 430px; }
.yogas-heading > p { max-width: 470px; }
.transits-heading p { margin: 0; color: var(--muted); font-size: 10px; }

/* Stats strip (Overview signs, Charts birth details): a static surface-card split into columns. */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 20px 12px;
  border-radius: 20px;
}
.quick-stat {
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid var(--gold-line);
}
.quick-stat:last-child { border: 0; }
.quick-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-label);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.quick-stat strong { font-size: 16px; letter-spacing: -.03em; }
.quick-stat small { display: block; margin-top: 4px; color: #9a958c; font-size: 10px; }
/* Compact strip (Readings tab signs, Charts tab birth details): about 30% shorter. */
.quick-stats--compact { padding-top: 8px; padding-bottom: 8px; border-radius: 16px; }
.quick-stats--compact .quick-stat span { margin-bottom: 3px; }
.quick-stats--compact .quick-stat strong { font-size: 14px; }
.quick-stats--compact .quick-stat small { margin-top: 1px; }
/* A stat with a gold coin icon on its left (Readings tab: Ascendant, Moon, Sun); the strip keeps its height. */
.quick-stat--icon { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.quick-stat--icon > div { min-width: 0; }
.quick-stat-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 14px; font-style: normal; font-weight: 700; }
/* Line icons in a coin (Charts tab: date, time, place), drawn like the chart action icons. */
.quick-stat-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Filter rows (Transits timeline/planets/type, Predictions timeline, Yogas chart). */
.transit-filter-groups { display: grid; gap: 5px; margin-bottom: 10px; }
.transit-filter-group { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; }
.yoga-chart-filter { margin: 0 0 1rem; }
.transit-filter-label { color: #8b867c; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.transit-period-toggle { display: flex; width: fit-content; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid #e8e2d7; border-radius: 10px; background: #f7f5ef; }
.transit-period-toggle button {
  min-height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5d594f;
  font: inherit;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.transit-period-toggle button[aria-pressed="true"] { border: 2px solid var(--yellow); background: #252523; color: #f5d653; box-shadow: 0 2px 6px rgb(37 37 35 / 18%); }
.transit-period-toggle button:focus-visible { outline: 2px solid #b39a30; outline-offset: 2px; }
.transit-period-toggle button:not([aria-pressed="true"]):hover { background: #f5edcb; color: #252523; }

/* Status line and empty state (Transits, Predictions and Yogas use these). */
.transits-status { margin: 8px 0; color: #77736b; font-size: 10px; line-height: 1.5; }
.transits-status:empty { display: none; }
.transits-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--gold-pill-border);
  border-radius: 11px;
  background: var(--surface-paper-bg);
  color: #77736b;
  font-size: 10px;
  line-height: 1.5;
}

/* 3. Overview --------------------------------------------------------------------------------- */
.overview-life-areas { display: grid; gap: 14px; margin-top: 18px; }
/* Life-area toggle (like the Yogas chart toggle): the pressed area's card shows alone, full width. */
/* No label, aligned to the left edge, and 20% larger than the other filter toggles. */
.overview-area-filter { margin: 0; }
/* Its frame has the card look (gold border, top edge, ivory gradient, shadow: css/surfaces.css);
   overflow stays visible so the buttons' focus rings are not clipped. */
.overview-area-filter .transit-period-toggle { gap: 3.6px; padding: 3.6px; overflow: visible; border-radius: 12px; }
.overview-area-filter .transit-period-toggle button { min-height: 31px; padding: 0 8.4px; border-radius: 8.4px; font-size: 9.6px; }
.overview-life-area-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.overview-life-area { min-width: 0; padding: 18px; border-radius: 17px; }
.overview-life-area[hidden] { display: none; }
/* Title: a surface-header pulled slightly into the card's padding, numbered with a gold coin. */
.overview-life-area-title { min-height: 34px; gap: 9px; margin: -5px -5px 9px; padding: 4px 12px 4px 7px; border-radius: 10px; }
.overview-life-area-number { font-size: 8px; font-weight: 850; letter-spacing: .02em; }
.overview-life-area h4 { margin: 0; font-size: 13px; letter-spacing: -.025em; }
.overview-life-area p { margin: 0; color: #6f6b63; font-size: 11px; line-height: 1.75; }
/* The card's "Reading" block (js/home/life-readings.js) reuses the yoga Results look (section 5):
   same Get button, loading dots and Read more. Numbered sub-headings get a little space above. */
.overview-life-area .life-reading { margin: 10px 0 0; }
.life-reading .yoga-results-subheading { margin-top: 4px; }
/* Readings have long bullet lists; keep clear space between the points. */
.yoga-results.life-reading ul { gap: 7px; }
/* Reading text 15% larger than yoga Results (10px); the error line keeps its own size. */
.yoga-results.life-reading p:not(.yoga-results-error),
.yoga-results.life-reading li { font-size: 11.5px; }
/* A reading split into dimensions: its frame goes away and each dimension is a card of its own, like the
   Predictions cards (surface-card + gold surface-header with a chevron; chevron rule in section 6b). */
.yoga-results.life-reading.has-dimensions { gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.life-reading .reading-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.reading-dimension { min-width: 0; padding: 10px; border-radius: 15px; }
.reading-dimension:last-child:nth-child(odd) { grid-column: 1 / -1; } /* no empty half-row after an odd count */
.reading-dimension:not([open]) { padding: 8px; }
.reading-dimension-header { min-height: 36px; }
.reading-dimension-number { font-size: 9px; font-weight: 850; }
.reading-dimension-body { display: grid; gap: 7px; padding: 9px 4px 2px; }
.reading-closing { display: grid; gap: 4px; margin-top: 12px; padding: 9px 12px 10px; }
.life-reading.has-dimensions .yoga-results-more > summary { margin-top: 10px; }

/* 4. Charts ----------------------------------------------------------------------------------- */
.chart-panel { display: grid; gap: 20px; }
.chart-panel[hidden] { display: none; }
.chart-visualizations { display: grid; gap: 12px; }
/* Three chart cards side by side; one on phones (section 7). */
.chart-visualization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.chart-visualization {
  display: flex;
  min-width: 0;
  width: auto;
  height: auto;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 15px;
}
/* Card title: a compact surface-header. */
.chart-visualization-title { min-height: 30px; flex: 0 0 auto; gap: 8px; padding: 3px 12px 3px 6px; border-radius: 10px; }
.chart-visualization-title .surface-coin { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; }
.chart-visualization h4 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Chart picker under the title: the transit-period-toggle look, compact and full width. */
.chart-view-toggle { width: 100%; flex: 0 0 auto; justify-content: center; gap: 2px; padding: 2px; box-sizing: border-box; }
.chart-view-toggle button { min-height: 22px; padding: 0 5px; }
/* Charts the plan doesn't open: frozen grey (data-lock-plan names the plan that opens them; js/home/reading.js). */
.chart-view-toggle button[data-lock-plan] { background: #ece9e2; color: #aaa59b; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgb(170 165 155 / 55%); }
.chart-view-toggle button[data-lock-plan]:hover { background: #e6e2d9; color: #9c978d; }
.chart-view-toggle button[data-lock-plan][aria-pressed="true"] { border: 2px solid #cfcabf; background: #d9d5cc; color: #6f6b63; box-shadow: none; text-decoration: none; }
.chart-visualization[data-locked="true"] .chart-visualization-placeholder { border-style: solid; border-color: #dcd7cc; background: repeating-linear-gradient(135deg, #f6f4ef 0 10px, #f1eee7 10px 20px); }
.chart-visualization[data-locked="true"] .chart-visualization-placeholder > span { color: #a9a499; }
.chart-visualization-placeholder small { max-width: 80%; text-align: center; line-height: 1.5; }
.chart-visualization-upgrade { padding: 5px 12px; border: 1px solid var(--yellow-deep); border-radius: 999px; background: var(--yellow); color: #252523; font-size: 10px; font-weight: 800; text-decoration: none; }
.chart-visualization-upgrade:hover { background: var(--yellow-deep); }
/* Square image area as wide as the toggle row; the card grows to fit it. */
.chart-visualization-content {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 1;
}
.chart-visualization-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}
.chart-visualization-placeholder {
  width: 100%;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--gold-pill-border);
  border-radius: 10px;
  background: var(--surface-paper-bg);
  color: #8b867c;
}
.chart-visualization-placeholder > span { color: #b39a30; font-size: 24px; }
.chart-visualization-placeholder small { font-size: 9px; }

/* Birth panchang (js/home/birth-panchang.js): below the chart cards.
   Cards are static surface-cards with a compact surface-header; values use the quick-stat look
   (gold label, strong value, muted note). */
.birth-panchang { display: grid; gap: 12px; }
.birth-panchang-body { display: grid; gap: 12px; }
.birth-panchang-status { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; color: #8b867c; font-size: 11px; }
.birth-panchang-status > span { color: #b39a30; font-size: 14px; }
.birth-panchang-card { display: grid; align-content: start; gap: 10px; padding: 10px; border-radius: 15px; }
.birth-panchang-card-title { min-height: 32px; gap: 8px; padding: 3px 10px 3px 6px; border-radius: 10px; }
.birth-panchang-card-title .surface-coin { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; }
.birth-panchang-card-title h4 { font-size: 11px; }
/* Label / value / note, like the stats strip. */
.panchang-stat { min-width: 0; padding: 10px 12px; border: 1px solid var(--gold-line); border-radius: 11px; background: var(--surface-paper-bg); }
.panchang-stat span { display: block; margin-bottom: 6px; color: var(--gold-label); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.panchang-stat strong { display: block; overflow-wrap: anywhere; font-size: 14px; letter-spacing: -.03em; }
.panchang-stat small { display: block; margin-top: 3px; color: #9a958c; font-size: 9.5px; }
/* 1. The five limbs, then paksha and ayana as chips. */
.panchang-limb-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.panchang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.panchang-chip { padding: 4px 10px; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: rgb(255 254 250 / 80%); color: var(--ink); font-size: 10px; }
.panchang-chip b { color: var(--gold-ink); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.panchang-chip small { color: #8b867c; font-size: 9.5px; }
/* 2. Ascendant, Moon and Sun: a definition list per card. */
.panchang-anchor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.panchang-rows { display: grid; margin: 0; }
.panchang-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--gold-line); }
.panchang-row:last-child { border-bottom: 0; }
.panchang-row dt { color: #8b867c; font-size: 10px; }
.panchang-row dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: -.02em; text-align: right; }
/* 3 and 4. Planets by sign beside the nakshatra nature. */
.panchang-lower-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.panchang-planet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.panchang-planet { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--gold-line); border-radius: 11px; background: var(--surface-paper-bg); }
.panchang-planet-mark { width: 25px; height: 25px; flex-basis: 25px; font-size: 13px; }
.panchang-planet-text { display: grid; min-width: 0; }
.panchang-planet-text small { color: #8b867c; font-size: 9px; }
.panchang-planet-text strong { overflow: hidden; font-size: 12px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.panchang-nature-stats { display: grid; gap: 8px; }
.panchang-footnote { margin: 0; color: #9a958c; font-size: 9.5px; }
@media (max-width: 1100px) {
  .panchang-limb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panchang-lower-grid { grid-template-columns: minmax(0, 1fr); }
  .panchang-nature-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .panchang-anchor-grid { grid-template-columns: minmax(0, 1fr); }
  .panchang-limb-grid, .panchang-planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .panchang-nature-stats { grid-template-columns: minmax(0, 1fr); }
  .panchang-stat strong { font-size: 13px; }
}

/* 5. Yogas ------------------------------------------------------------------------------------ */
.yogas-panel { display: grid; gap: 18px; padding: 18px; }
.yogas-panel[hidden] { display: none; }
.yoga-category-list { display: grid; gap: 16px; }
/* Category: no frame of its own, just a surface-header (summary) that expands its cards. */
.yoga-category { border: 0; background: none; }
.yoga-category-heading::after {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-left: 2px;
  border-right: 1.5px solid var(--gold-ink);
  border-bottom: 1.5px solid var(--gold-ink);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.yoga-category[open] > .yoga-category-heading::after { transform: rotate(225deg) translate(-1px, -1px); }
.yoga-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 9px; }
.yoga-category > .yoga-card-grid { padding: 10px 0 2px; }
.yoga-example-card { min-width: 0; padding: 12px; }
.yoga-example-card h5 { margin: 0 0 6px; font-size: 11px; }
.yoga-example-card > p { margin: 0; color: #6f6b63; font-size: 10px; line-height: 1.55; }
.yoga-example-card .yoga-planets { margin-top: 9px; color: #827f77; font-size: 9px; }
.yoga-planets strong { color: #4e4b45; }

/* Results: a surface-paper block under the yoga's title. */
.yoga-results { display: grid; gap: 5px; margin: 2px 0 9px; padding: 8px 10px 9px; }
.yoga-results-head { display: flex; min-height: 20px; align-items: center; justify-content: space-between; gap: 8px; }
.yoga-results-label { color: var(--gold-label); font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.yoga-results-body { display: grid; gap: 5px; }
.yoga-results-body:empty { display: none; }
.yoga-results.is-empty { padding-bottom: 8px; }
.yoga-results p, .yoga-results li { margin: 0; color: #4e4b45; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.yoga-results p strong, .yoga-results li strong { color: var(--ink); font-weight: 750; }
.yoga-results ul { display: grid; gap: 3px; margin: 0; padding-left: 14px; }
.yoga-results li::marker { color: #b39a30; }
.yoga-results .yoga-results-subheading { color: var(--ink); font-weight: 750; }
.yoga-results .yoga-results-error { color: #a53e38; font-size: 9px; line-height: 1.45; }
.yoga-results .yoga-results-error[hidden] { display: none; }

/* Get / Update: "Get" is the main action (dark pill, yellow sparkle); "Update" is a quieter outlined pill. */
.yoga-results-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.yoga-results-get {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  gap: 3.5px;
  padding: 0 8.5px 0 6.5px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 21, 18, .14);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 7.8px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.yoga-results-get-icon { width: 9px; height: 9px; flex: 0 0 9px; color: var(--yellow); transition: transform .3s; }
.yoga-results-get:hover:not(:disabled) { box-shadow: 0 3px 8px rgba(23, 21, 18, .2); transform: translateY(-1px); }
.yoga-results-get:hover:not(:disabled) .yoga-results-get-icon { transform: rotate(18deg) scale(1.1); }
.yoga-results-get.is-update { border-color: #dccb85; background: var(--white); box-shadow: none; color: #5d4f1c; }
.yoga-results-get.is-update .yoga-results-get-icon { color: var(--gold-label); }
.yoga-results-get.is-update:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.yoga-results-get.is-update:hover:not(:disabled) .yoga-results-get-icon { color: var(--yellow); transform: rotate(180deg); }
.yoga-results-get:active:not(:disabled) { transform: none; }
.yoga-results-get:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.yoga-results-get:disabled { box-shadow: none; cursor: progress; opacity: .55; transform: none; }

/* Loading: three dark dots with a gold halo that rise and brighten in a ripple; dark-on-cream so they stand out. */
.yoga-results-spinner { display: inline-flex; height: 10px; flex: 0 0 auto; align-items: center; gap: 2.5px; }
.yoga-results-spinner i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  animation: yoga-results-ripple 1s ease-in-out infinite;
}
.yoga-results-spinner i:nth-child(2) { animation-delay: .15s; }
.yoga-results-spinner i:nth-child(3) { animation-delay: .3s; }
.yoga-results-spinner[hidden] { display: none; }
@keyframes yoga-results-ripple {
  0%, 70%, 100% { background: #6f6440; box-shadow: none; opacity: .7; transform: translateY(0) scale(.75); }
  35% { background: var(--ink); box-shadow: 0 0 0 1.5px var(--yellow), 0 0 6px 1px rgb(229 191 57 / 75%); opacity: 1; transform: translateY(-2.5px) scale(1.15); }
}

/* "Read more" / "Show less": a small tinted pill with a chevron, so it stands apart from the text. */
.yoga-results-more { display: grid; gap: 5px; }
.yoga-results-more > summary {
  display: inline-flex;
  width: fit-content;
  min-height: 17px;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  padding: 0 8.5px;
  border: 1px solid #e3cf7c;
  border-radius: 999px;
  background: var(--gold-200);
  color: #4a3e12;
  cursor: pointer;
  font-size: 7.8px;
  font-weight: 800;
  letter-spacing: .02em;
  list-style: none;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.yoga-results-more > summary::-webkit-details-marker { display: none; }
.yoga-results-more > summary::after {
  width: 3.5px;
  height: 3.5px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  content: "";
  transform: translateY(-1px) rotate(45deg);
  transition: transform .2s;
}
.yoga-results-more[open] > summary::after { transform: translateY(.5px) rotate(-135deg); }
.yoga-results-more > summary:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.yoga-results-more > summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.yoga-results-more[open] > summary { order: 1; }
.yoga-results-more .yoga-results-hide,
.yoga-results-more[open] .yoga-results-show { display: none; }
.yoga-results-more[open] .yoga-results-hide { display: inline; }

/* 6. Transits and Predictions ----------------------------------------------------------------- */
.transits-panel { padding: 18px; }
.transits-content { display: grid; gap: 20px; }
/* "In effect now" / "Upcoming transits": surface-header bars with a coin and a count badge. */
.transits-section-heading { margin-bottom: 10px; }
.transits-current-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.transit-current-card { display: grid; gap: 7px; padding: 11px; border-radius: 13px; }
.transit-current-card header { display: flex; align-items: center; gap: 7px; }
.transit-planet-mark { width: 25px; height: 25px; flex-basis: 25px; font-size: 13px; }
.transit-current-card header strong { font-size: 10px; }
.transit-current-card > strong { font-size: 12px; }
.transit-current-card > small { color: #8b867c; font-size: 9px; }
.transits-event-list { display: grid; gap: 6px; }
.transit-event {
  display: grid;
  grid-template-columns: 67px 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
}
.transit-event-date { display: grid; gap: 2px; color: #77736b; font-size: 8px; font-weight: 750; }
.transit-event-date strong { color: var(--ink); font-size: 10px; }
.transit-event-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 9px;
  background: var(--gold-100);
  color: var(--gold-ink);
  font-size: 12px;
}
.transit-event-copy { display: grid; gap: 3px; min-width: 0; }
.transit-event-copy strong { font-size: 9px; }
.transit-event-copy small { overflow: hidden; color: #8b867c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

/* 6b. Predictions (js/home/predictions.js) ----------------------------------------------------
   Big picture (brief, promise, mind, transits, dashas, house map, upcoming changes) then life-area tabs
   with an outlook, a timeline bar and dated windows. Tones: good (green), mixed (gold), caution (rose). */
.predictions-panel { --tone-good: #4f8a5f; --tone-good-bg: #e8f2ea; --tone-mixed: var(--gold-ink); --tone-mixed-bg: var(--gold-100); --tone-caution: #a5504b; --tone-caution-bg: #f8e6e3; }
.prediction-sample-note { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 10px 0 14px; padding: 5px 10px; border: 1px dashed var(--gold-pill-border); border-radius: 999px; background: var(--surface-paper-bg); color: #6f6b63; font-size: 9px; line-height: 1.4; }
.prediction-sample-note span { color: var(--gold-ink); }
.predictions-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* The timeline strip gets the same breathing room below it as the panel title has above it. */
.predictions-panel > .transit-filter-group { margin-bottom: 16px; }
/* Forecast length strip (1 month ... 24 months): no side label, 40% larger than the other filter strips, with a thin
   line between the buttons. */
.transit-filter-group.prediction-horizons { grid-template-columns: minmax(0, 1fr); }
.prediction-horizons .transit-period-toggle { gap: 9px; padding: 4px; border-radius: 14px; }
.prediction-horizons .transit-period-toggle button { position: relative; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: 11px; }
.prediction-horizons .transit-period-toggle button + button::before { position: absolute; top: 24%; bottom: 24%; left: -5px; width: 1px; background: #ddd4c1; content: ""; pointer-events: none; }
.prediction-horizons [data-prediction-months][data-lock-plan]::after { padding: 0 5px; font-size: 12px; }
.predictions-content > *, .prediction-areas > *, .prediction-area-panel > * { min-width: 0; }
.prediction-mini-label { color: var(--gold-label); font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.prediction-muted { color: #8b867c; }
.prediction-note { margin: 0; color: #77736b; font-size: 9.5px; line-height: 1.55; }
.prediction-chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* Tone pill, house chips and dots */
.prediction-tone { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 7.5px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; vertical-align: middle; }
.prediction-tone.is-good { background: var(--tone-good-bg); color: var(--tone-good); }
.prediction-tone.is-mixed { background: var(--tone-mixed-bg); color: var(--tone-mixed); }
.prediction-tone.is-caution { background: var(--tone-caution-bg); color: var(--tone-caution); }
.prediction-house-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: rgb(255 254 250 / 85%); color: #5d594f; font-size: 8px; font-weight: 700; white-space: nowrap; }
.prediction-house-chip b { display: inline-grid; min-width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #252523; color: var(--yellow); font-size: 7.5px; }
.prediction-house-chip.is-overlap { border-color: var(--yellow-deep); background: var(--gold-100); color: var(--ink); }
.prediction-house-chip.is-overlap b { background: var(--gold-coin); color: var(--ink); }
.prediction-house-dot { display: inline-grid; min-width: 16px; height: 16px; padding: 0 3px; place-items: center; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: var(--white); color: var(--gold-ink); font-size: 7.5px; font-weight: 800; }
.prediction-house-dot.is-dasha { border-color: #c9d3e6; color: #4f6893; }

/* Sample notice: shown while the tab displays the built-in sample forecast (predictions.js IS_SAMPLE_FORECAST) */
.prediction-sample-notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid #e3c86a; border-radius: 14px; background: #fff8dc; color: var(--ink); }
.prediction-sample-notice p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.prediction-sample-notice .surface-coin { flex: none; font-weight: 800; }

/* Life patterns (js/home/life-profile.js), on the Readings tab: a card holding a collapsible panel (title bar above). */
.life-profile { display: grid; gap: 12px; margin-top: 14px; padding: 16px 18px; }
.life-profile-body { display: grid; gap: 12px; }
.life-profile-head { display: grid; gap: 4px; }
.life-profile-head p { margin: 0; max-width: 820px; color: #5f5a4f; font-size: 12.5px; line-height: 1.55; }
.life-profile-ai { padding: 2px 7px; border: 1px solid #cfc2f0; border-radius: 999px; background: linear-gradient(135deg, #f3efff, #fdf8e8); color: #5b3fb0; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.life-profile-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.life-profile-list h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13.5px; }
.life-profile-list ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.life-profile-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #ece5d3; border-radius: 12px; background: #fffdf7; }
.life-profile-list.is-strengths .life-profile-item { border-left: 3px solid #3f9a63; }
.life-profile-list.is-vulnerabilities .life-profile-item { border-left: 3px solid #d9823e; }
.life-profile-list.is-personality .life-profile-item { border-left: 3px solid #b99a2f; }
.life-profile-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.life-profile-item-head strong { font-size: 12.5px; }
.life-profile-item p { margin: 0; color: #4f4a40; font-size: 12px; line-height: 1.5; }
.life-profile-strength { display: inline-flex; gap: 3px; flex: none; }
.life-profile-strength i { width: 7px; height: 7px; border-radius: 50%; background: #e6dfcc; }
.life-profile-strength i.is-on { background: #b99a2f; }
.life-profile-item details summary { cursor: pointer; color: #6e5810; font-size: 11px; font-weight: 700; }
.life-profile-item details ul { margin: 6px 0 4px; padding-left: 16px; color: #5f5a4f; font-size: 11px; }
.life-profile-item details small { color: #8a8475; font-size: 10.5px; }
.life-profile-chart { font-weight: 700; color: #6e5810; }
.life-profile-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.life-profile-get { padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; }
.life-profile-get:hover { background: #3a3830; }
.life-profile-busy { display: flex; align-items: center; gap: 10px; }
.life-profile-busy p { margin: 0; font-size: 12.5px; }
.life-profile-error { margin: 0; color: #8c2723; font-size: 12px; }
.life-profile-empty, .life-profile-note { margin: 0; color: #7a7466; font-size: 11.5px; }
@media (max-width: 900px) { .life-profile-lists { grid-template-columns: minmax(0, 1fr); } }

/* Calculated personal forecast (js/home/forecast-view.js) */
.forecast { display: grid; gap: 14px; }
.forecast-loading { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--gold-border); border-radius: 14px; background: var(--white); }
.forecast-loading p { margin: 0; font-size: 13px; }
.forecast-brief { display: grid; gap: 8px; padding: 18px 20px; border-radius: 17px; background: radial-gradient(90% 120% at 100% 0%, rgb(245 214 83 / 30%), transparent 60%), linear-gradient(135deg, #2b2a26 0%, #252523 60%, #34301f 100%); border-color: #3d3a2e; color: #f4efe2; }
.forecast-brief .eyebrow { color: #f5d653; }
.forecast-brief h3 { margin: 0; color: #fff; font-size: 20px; }
.forecast-brief p { margin: 0; color: #d9d3c2; font-size: 12.5px; }
.forecast-bar { display: flex; height: 14px; overflow: hidden; margin-top: 4px; border-radius: 999px; background: #3a372d; }
.forecast-bar span { display: block; height: 100%; }
.forecast-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #d9d3c2; }
.forecast-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.forecast-bar .is-favourable, .forecast-legend .is-favourable::before { background: #3f9a63; }
.forecast-bar .is-mixed-good, .forecast-legend .is-mixed-good::before { background: #9dbb4a; }
.forecast-bar .is-mixed, .forecast-legend .is-mixed::before { background: #d3a92c; }
.forecast-bar .is-mixed-hard, .forecast-legend .is-mixed-hard::before { background: #d9823e; }
.forecast-bar .is-challenging, .forecast-legend .is-challenging::before { background: #c4504b; }
.forecast-bar .is-very-favourable, .forecast-legend .is-very-favourable::before { background: #23774a; }
.forecast-bar .is-very-challenging, .forecast-legend .is-very-challenging::before { background: #962e2a; }
.forecast-note { margin: 0; padding: 10px 14px; border: 1px dashed var(--gold-border); border-radius: 12px; font-size: 12px; color: #5f5a4f; }
.forecast-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.forecast-area { display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid var(--gold-border); border-radius: 16px; background: var(--white); }
.forecast-area > header { display: flex; align-items: center; gap: 10px; }
.forecast-area > header > div:nth-child(2) { flex: 1; }
.forecast-area h4 { margin: 0; font-size: 15px; }
.forecast-area header small { color: #7a7466; font-size: 11px; }
.forecast-area-now { display: grid; justify-items: end; gap: 2px; }
.forecast-window-list { display: grid; gap: 8px; }
.forecast-window { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #ece5d3; border-left: 4px solid #d3a92c; border-radius: 12px; background: #fffdf7; }
.forecast-window.is-favourable { border-left-color: #3f9a63; } .forecast-window.is-mixed-good { border-left-color: #9dbb4a; }
.forecast-window.is-mixed-hard { border-left-color: #d9823e; } .forecast-window.is-challenging { border-left-color: #c4504b; }
.forecast-window.is-very-favourable { border-left-color: #23774a; } .forecast-window.is-very-challenging { border-left-color: #962e2a; }
.forecast-window > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.forecast-window-dates { font-size: 12.5px; }
.forecast-window > header .prediction-now { margin-left: 6px; }
.forecast-window-tags { display: flex; gap: 5px; }
.forecast-tone, .forecast-level { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.forecast-tone { background: #f1ead2; color: #5b5020; }
.forecast-tone.is-favourable { background: #dcf0e3; color: #1f6b3d; } .forecast-tone.is-mixed-good { background: #ebf3d6; color: #4d6b16; }
.forecast-tone.is-mixed-hard { background: #f9e4d2; color: #8a4512; } .forecast-tone.is-challenging { background: #f6dad8; color: #8c2723; }
.forecast-tone.is-very-favourable { background: #c6e6d0; color: #154f2b; } .forecast-tone.is-very-challenging { background: #efc9c5; color: #6e1d1a; }
.forecast-level { border: 1px solid #d9cfb4; background: #fff; color: #5f5a4f; }
.forecast-level.is-high { border-color: #b99a2f; color: #6e5810; }
.forecast-peak { margin: 0; font-size: 11.5px; font-weight: 700; color: #6e5810; }
.forecast-houses { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.forecast-houses li { display: flex; justify-content: space-between; gap: 8px; }
.forecast-houses small { color: #8a8475; font-size: 10.5px; white-space: nowrap; }
.forecast-why summary { cursor: pointer; font-size: 11.5px; font-weight: 700; color: #6e5810; }
.forecast-why ul { margin: 6px 0 0; padding-left: 18px; font-size: 11.5px; color: #4f4a40; }
.forecast-window .prediction-chat-button { justify-self: start; }
.forecast-quiet { margin: 0; font-size: 12px; color: #7a7466; }

/* AI-written windows (Phase C2) */
.forecast-window-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 14px; line-height: 1.35; }
.forecast-written { display: grid; gap: 8px; }
.forecast-summary { margin: 0; font-size: 12.5px; line-height: 1.55; color: #3d3930; }
.forecast-written-columns { display: grid; gap: 8px; }
.forecast-expect, .forecast-guidance { margin: 4px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: #3d3930; }
.forecast-guidance li::marker { color: #b99a2f; }
.forecast-patterns { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.forecast-patterns .prediction-mini-label { width: 100%; }
.forecast-pattern { padding: 2px 8px; border: 1px solid #e3dcc7; border-radius: 999px; background: #fff; font-size: 11px; color: #4f4a40; }
.forecast-pattern b { font-size: 10px; font-weight: 800; color: #7a7466; }
.forecast-pattern.is-strengths { border-color: #b9dcc5; } .forecast-pattern.is-strengths b { color: #1f6b3d; }
.forecast-pattern.is-vulnerabilities { border-color: #efcfb1; } .forecast-pattern.is-vulnerabilities b { color: #8a4512; }
.forecast-window.is-written .forecast-houses { padding-top: 6px; border-top: 1px dashed #ece5d3; font-size: 11.5px; }
.forecast-write { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #cfc2f0; border-radius: 16px; background: linear-gradient(135deg, #f7f4ff, #fffbef); }
.forecast-write > div { flex: 1 1 280px; display: grid; gap: 4px; }
.forecast-write strong { font-size: 13.5px; }
.forecast-write p { margin: 0; font-size: 12.5px; color: #4f4a40; }
.forecast-write.is-busy p small { color: #7a7466; }
.forecast-write-step { font-weight: 700; color: #5b3fb0; }
.forecast-write-button { padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; }
.forecast-write-button:hover { background: #3a3830; }
a.forecast-write-button { display: inline-block; text-decoration: none; }

/* The calculated forecast's five tones in the Predictions design: favourable / challenging use the design's good /
   caution colours; "mixed, leaning good" and "mixed, leaning hard" are in-between shades. */
.prediction-tone.is-favourable { background: var(--tone-good-bg); color: var(--tone-good); }
.prediction-tone.is-mixed-good { background: #ebf3d6; color: #4d6b16; }
.prediction-tone.is-mixed-hard { background: #f9e4d2; color: #8a4512; }
.prediction-tone.is-challenging { background: var(--tone-caution-bg); color: var(--tone-caution); }
.prediction-gantt-bar.is-favourable { background: linear-gradient(90deg, #cfe5d4, #e3f0e5); box-shadow: inset 0 0 0 1px #a9cdb2; }
.prediction-gantt-bar.is-mixed-good { background: linear-gradient(90deg, #e2edc4, #f0f6df); box-shadow: inset 0 0 0 1px #c5d897; }
.prediction-gantt-bar.is-mixed-hard { background: linear-gradient(90deg, #f6dcc4, #fbece0); box-shadow: inset 0 0 0 1px #e8bf9a; }
.prediction-gantt-bar.is-challenging { background: linear-gradient(90deg, #f1cdc8, #f8e6e3); box-shadow: inset 0 0 0 1px #e2aaa3; }
.prediction-ribbon-segment.is-favourable { background: var(--tone-good); }
.prediction-ribbon-segment.is-mixed-good { background: #9dbb4a; }
.prediction-ribbon-segment.is-mixed-hard { background: #d9823e; }
.prediction-ribbon-segment.is-challenging { background: var(--tone-caution); }
.prediction-window.is-favourable .prediction-window-number { background: radial-gradient(circle at 35% 30%, #eaf6ec, #9fcaa9 60%, #6fa77e); }
.prediction-window.is-mixed-good .prediction-window-number { background: radial-gradient(circle at 35% 30%, #f3f8e6, #c5d897 60%, #9dbb4a); }
.prediction-window.is-mixed-hard .prediction-window-number { background: radial-gradient(circle at 35% 30%, #fcf1e6, #e8bf9a 60%, #d9823e); }
.prediction-window.is-challenging .prediction-window-number { background: radial-gradient(circle at 35% 30%, #fbecea, #e3a7a0 60%, #c47c75); }
.prediction-window.is-favourable .prediction-window-body::before { background: linear-gradient(90deg, transparent, #9fcaa9, var(--tone-good), #9fcaa9, transparent); }
.prediction-window.is-mixed-good .prediction-window-body::before { background: linear-gradient(90deg, transparent, #c5d897, #9dbb4a, #c5d897, transparent); }
.prediction-window.is-mixed-hard .prediction-window-body::before { background: linear-gradient(90deg, transparent, #e8bf9a, #d9823e, #e8bf9a, transparent); }
.prediction-window.is-challenging .prediction-window-body::before { background: linear-gradient(90deg, transparent, #e3a7a0, var(--tone-caution), #e3a7a0, transparent); }
/* The two rare extremes: deeper versions of favourable and challenging, so they stand out. */
.prediction-tone.is-very-favourable { background: #c6e6d0; color: #154f2b; }
.prediction-tone.is-very-challenging { background: #efc9c5; color: #6e1d1a; }
.prediction-gantt-bar.is-very-favourable { background: linear-gradient(90deg, #a9d6b6, #d2ebd9); box-shadow: inset 0 0 0 1px #6fb283; }
.prediction-gantt-bar.is-very-challenging { background: linear-gradient(90deg, #e6aaa3, #f3d3cf); box-shadow: inset 0 0 0 1px #c8746c; }
.prediction-ribbon-segment.is-very-favourable { background: #23774a; }
.prediction-ribbon-segment.is-very-challenging { background: #962e2a; }
.prediction-window.is-very-favourable .prediction-window-number { background: radial-gradient(circle at 35% 30%, #def0e3, #6fb283 60%, #23774a); color: #fff; }
.prediction-window.is-very-challenging .prediction-window-number { background: radial-gradient(circle at 35% 30%, #f6dedb, #c8746c 60%, #962e2a); color: #fff; }
.prediction-window.is-very-favourable .prediction-window-body::before { background: linear-gradient(90deg, transparent, #6fb283, #23774a, #6fb283, transparent); }
.prediction-window.is-very-challenging .prediction-window-body::before { background: linear-gradient(90deg, transparent, #c8746c, #962e2a, #c8746c, transparent); }
/* A personal window before its area's Get: the calculated houses, and where to get the words. */
.prediction-events.is-calculated li { color: #5f5a4f; }
/* Houses the dasha and transits activate together: first in the list and highlighted like the overlap chips. */
.prediction-events.is-calculated li.is-key { margin-left: -4px; padding: 1px 4px; border-radius: 6px; background: var(--gold-100); color: var(--ink); font-weight: 750; }
.prediction-get-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 11.5px; color: #5f5a4f; }
.prediction-window-head h5 .life-profile-ai { margin-left: 6px; vertical-align: middle; }
.prediction-area-summary .forecast-area-get { margin: 4px 0 10px; }
.prediction-window .forecast-patterns { margin-top: 10px; }

/* One "Get" per life area (the AI writes that area's windows; gone once they are all written) */
.forecast-area-get { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #cfc2f0; border-radius: 12px; background: linear-gradient(135deg, #f7f4ff, #fffbef); }
.forecast-area-get p { margin: 0; font-size: 12px; line-height: 1.5; color: #4f4a40; }
.forecast-area-get .forecast-write-button { justify-self: start; }
.forecast-area-get.is-busy { display: flex; align-items: center; gap: 8px; font-size: 12px; }

/* Horizons beyond the plan: a badge on the button, and an upgrade panel instead of the forecast */
/* Only a lock on the button; the plan that opens it is in the tooltip (js/home/predictions.js markHorizonLocks). */
[data-prediction-months][data-lock-plan]::after { content: "🔒"; margin-left: 4px; padding: 0 4px; border-radius: 999px; background: #efe8d2; color: #6e5810; font-size: 8.5px; line-height: 1.6; white-space: nowrap; }
[data-prediction-months][data-lock-plan][aria-pressed="true"]::after { background: rgb(255 255 255 / 18%); color: inherit; }
.forecast-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 17px; background: radial-gradient(90% 120% at 100% 0%, rgb(245 214 83 / 30%), transparent 60%), linear-gradient(135deg, #2b2a26 0%, #252523 60%, #34301f 100%); border-color: #3d3a2e; color: #f4efe2; }
.forecast-locked > div { flex: 1 1 320px; display: grid; gap: 6px; }
.forecast-locked .eyebrow { color: #f5d653; }
.forecast-locked h3 { margin: 0; color: #fff; font-size: 19px; }
.forecast-locked p { margin: 0; color: #d9d3c2; font-size: 12.5px; line-height: 1.55; }
.forecast-locked .forecast-locked-note { color: #bfb79f; font-size: 11.5px; }
.forecast-locked .forecast-write-button { background: linear-gradient(180deg, #fae58a, #f5d653 60%, #efcb45); color: #1f1e1a; }

/* Brief: the horizon's headline and the strongest houses */
.prediction-brief { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 20px; border-radius: 17px; background: radial-gradient(90% 120% at 100% 0%, rgb(245 214 83 / 30%), transparent 60%), linear-gradient(135deg, #2b2a26 0%, #252523 60%, #34301f 100%); border-color: #3d3a2e; }
.prediction-brief .eyebrow { color: var(--yellow); }
.prediction-brief-headline { margin: 7px 0 0; color: #f6f1e4; font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: -.01em; }
.prediction-brief-focus { display: grid; gap: 7px; padding-left: 16px; border-left: 1px solid rgb(245 214 83 / 30%); }
.prediction-brief-focus .prediction-mini-label { color: #d8c27a; }

/* Chart details: one show/hide bar for the group of collapsible cards (hidden by default). */
.prediction-details-toggle { position: relative; display: flex; width: 100%; align-items: center; gap: 10px; overflow: hidden; padding: 9px 12px 9px 10px; border: 1px solid var(--gold-border); border-radius: 14px; background: var(--surface-header-bg); box-shadow: var(--surface-raise); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.prediction-details-toggle::before { position: absolute; inset: 9px auto 9px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-bar); content: ""; }
.prediction-details-toggle:hover { border-color: var(--gold-border-strong); box-shadow: var(--surface-raise-hover); }
.prediction-details-toggle:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }
.prediction-details-toggle .surface-coin { width: 28px; height: 28px; flex-basis: 28px; margin-left: 4px; font-size: 13px; }
.prediction-details-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.prediction-details-copy strong { font-size: 11.5px; letter-spacing: -.02em; }
.prediction-details-copy small { overflow: hidden; color: #77736b; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.prediction-details-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); font-size: 9px; font-weight: 750; }
.prediction-details-action::after { width: 5px; height: 5px; border-right: 1.5px solid var(--yellow); border-bottom: 1.5px solid var(--yellow); content: ""; transform: translateY(-1.5px) rotate(45deg); transition: transform .16s ease; }
.prediction-details-toggle[aria-expanded="true"] .prediction-details-action { border-color: #dccb85; background: var(--white); color: #5d4f1c; }
.prediction-details-toggle[aria-expanded="true"] .prediction-details-action::after { border-color: var(--gold-label); transform: translateY(1px) rotate(225deg); }
.prediction-details-toggle[aria-expanded="true"] .prediction-details-show,
.prediction-details-toggle[aria-expanded="false"] .prediction-details-hide { display: none; }
.prediction-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: -4px; padding: 12px; border: 1px dashed var(--gold-pill-border); border-radius: 16px; background: rgb(251 247 238 / 55%); }
.prediction-details > * { min-width: 0; }
.prediction-details[hidden] { display: none; }

/* Four "big picture" cards */
.prediction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.prediction-card { display: block; min-width: 0; padding: 12px; border-radius: 15px; }
.prediction-card-body { display: grid; align-content: start; gap: 10px; margin-top: 10px; }
.prediction-card-header { min-height: 36px; }
/* Collapsible cards: the header bar is the <summary>; chevron like the Yoga categories. Collapsed by default. */
.prediction-collapsible:not([open]) { padding: 8px; }
.prediction-collapsible > summary::after,
.reading-dimension > summary::after {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-left: 2px;
  border-right: 1.5px solid var(--gold-ink);
  border-bottom: 1.5px solid var(--gold-ink);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.prediction-collapsible[open] > summary::after,
.reading-dimension[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.prediction-planet-coin { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }

.prediction-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.prediction-facts div { padding: 6px 8px; border: 1px solid var(--gold-line); border-radius: 9px; background: var(--surface-paper-bg); }
.prediction-facts dt { color: var(--gold-label); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.prediction-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 10px; font-weight: 750; }
.prediction-promise-list, .prediction-mind-list, .prediction-dasha-chain { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.prediction-promise-list li { display: grid; gap: 3px; padding: 7px 2px; border-top: 1px solid var(--gold-line); }
.prediction-promise-list li:first-child { border-top: 0; }
.prediction-promise-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prediction-promise-head strong { font-size: 10.5px; }
.prediction-promise-list p, .prediction-mind-copy p { margin: 0; color: #6f6b63; font-size: 9.5px; line-height: 1.55; }

.prediction-mind-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 8px 2px; border-top: 1px solid var(--gold-line); }
.prediction-mind-row:first-child { border-top: 0; }
.prediction-mind-copy { display: grid; gap: 3px; }
.prediction-mind-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prediction-mind-head strong { font-size: 10.5px; }
.prediction-mind-title { color: var(--ink); font-size: 9.5px; font-weight: 700; }
.prediction-mind-copy .prediction-mind-next { margin-top: 2px; padding: 4px 7px; border-radius: 7px; background: var(--gold-50); color: #5d594f; }
.prediction-mind-next b { color: var(--ink); }

.prediction-sky-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 7px; }
.prediction-sky-tile { display: grid; gap: 3px; padding: 8px 9px; border: 1px solid var(--gold-line); border-radius: 11px; background: var(--surface-paper-bg); }
.prediction-sky-head { display: flex; align-items: center; gap: 6px; }
.prediction-sky-head strong { font-size: 10px; }
.prediction-sky-head small { margin-left: auto; color: #8b867c; font-size: 8.5px; font-weight: 700; }
.prediction-sky-house { color: #4e4b45; font-size: 9.5px; }
.prediction-sky-house b { color: var(--ink); }
.prediction-sky-tile > small { color: #77736b; font-size: 8.5px; line-height: 1.4; }
.prediction-sky-tile > .prediction-sky-meta { color: #9a958c; font-size: 7.5px; }

.prediction-dasha { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 8px 2px; border-top: 1px solid var(--gold-line); }
.prediction-dasha:first-child { border-top: 0; }
.prediction-dasha-level { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #252523; color: var(--yellow); font-size: 8.5px; font-weight: 850; letter-spacing: .04em; }
.prediction-dasha + .prediction-dasha .prediction-dasha-level { background: #3b3a35; }
.prediction-dasha + .prediction-dasha + .prediction-dasha .prediction-dasha-level { background: #57554d; }
.prediction-dasha-copy { display: grid; gap: 4px; min-width: 0; }
.prediction-dasha-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prediction-dasha-head strong { font-size: 10.5px; }
.prediction-dasha-head strong small { color: #8b867c; font-size: 8.5px; font-weight: 650; }
.prediction-dasha-copy > small { color: #77736b; font-size: 8.5px; }
.prediction-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #efe9da; }
.prediction-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gold-bar); }
.prediction-dasha-next { display: grid; gap: 4px; margin: 0; padding: 8px 9px; border: 1px solid #dfe5ef; border-radius: 10px; background: #f6f8fb; font-size: 9px; }
.prediction-dasha-next p { margin: 0; color: #4e4b45; line-height: 1.5; }
.prediction-dasha-next b { color: #4f6893; }

/* Houses in focus: 12 cells, heat by number of sources, gold where transits and dashas meet */
.prediction-house-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.prediction-house { display: grid; align-content: space-between; gap: 6px; min-height: 62px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 11px; background: #faf8f3; transition: transform .15s ease; }
.prediction-house.is-level-1 { background: #fbf8ee; }
.prediction-house.is-level-2 { border-color: var(--gold-line); background: #fcf6e1; }
.prediction-house.is-level-3, .prediction-house.is-level-4 { border-color: var(--gold-pill-border); background: #fbf0c9; }
.prediction-house.is-overlap { border: 1.5px solid var(--yellow-deep); box-shadow: 0 6px 14px -10px rgb(160 120 20 / 70%); }
.prediction-house.is-overlap.is-level-4 { background: radial-gradient(circle at 80% 10%, #fff3b8, #f7e3a0 70%); }
.prediction-house-top { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.prediction-house-top b { color: var(--ink); font-size: 13px; letter-spacing: -.03em; }
.prediction-house-top span { overflow: hidden; color: #6f6b63; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.prediction-house-sources { display: grid; gap: 3px; min-height: 14px; }
.prediction-house-sources > span { display: flex; flex-wrap: wrap; gap: 3px; }
/* Planet capsule: same pill as .prediction-house-chip, but a coloured dot instead of the dark number
   disc, and a tint: gold for transit planets, blue for dasha lords. */
.prediction-planet-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: rgb(255 254 250 / 85%); color: var(--gold-ink); font-size: 7.5px; font-weight: 750; line-height: 13px; letter-spacing: .02em; white-space: nowrap; }
.prediction-planet-chip::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--gold-coin); box-shadow: 0 0 0 1px rgb(160 120 20 / 25%); content: ""; }
.prediction-planet-chip.is-dasha { border-color: #c9d3e6; background: #eef2f9; color: #4f6893; }
.prediction-planet-chip.is-dasha::before { background: #4f6893; box-shadow: none; }
.prediction-legend { display: flex; flex-wrap: wrap; gap: 12px; color: #77736b; font-size: 8.5px; }
.prediction-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.prediction-legend i { width: 10px; height: 10px; border-radius: 50%; }
.prediction-legend .is-overlap { border: 1.5px solid var(--yellow-deep); border-radius: 3px; background: #fbf0c9; }

/* Upcoming changes reuse the Transits event rows; a kind tag tells transit from dasha */
.prediction-change .transit-event-copy strong { display: flex; align-items: center; gap: 6px; }
.prediction-kind { padding: 1px 6px; border-radius: 999px; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.prediction-kind.is-transit { background: var(--gold-100); color: var(--gold-ink); }
.prediction-kind.is-dasha { background: #e5ebf5; color: #4f6893; }
.prediction-sun-strip { display: grid; gap: 6px; padding-top: 4px; }
.prediction-sun-chip { padding: 2px 7px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--surface-paper-bg); color: #5d594f; font-size: 8px; white-space: nowrap; }
.prediction-sun-chip b { color: var(--ink); }

/* Life areas */
.prediction-areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--gold-line); }
.prediction-areas-heading h3 { margin: 4px 0 2px; font-size: 17px; letter-spacing: -.04em; }
.prediction-areas-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.prediction-area-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.prediction-area-tab { display: grid; gap: 6px; min-width: 0; padding: 9px 10px; border: 1px solid var(--gold-border); border-radius: 13px; background: var(--surface-card-bg); box-shadow: var(--surface-raise); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.prediction-area-tab:hover { border-color: var(--gold-border-strong); box-shadow: var(--surface-raise-hover); transform: translateY(-1px); }
.prediction-area-tab:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }
.prediction-area-tab[aria-pressed="true"] { border: 2px solid var(--yellow); background: #252523; box-shadow: 0 8px 18px -10px rgb(37 37 35 / 60%); color: var(--white); }
.prediction-area-tab-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.prediction-area-tab-top strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.prediction-area-tab > small { color: #77736b; font-size: 8.5px; font-weight: 700; }
.prediction-area-tab[aria-pressed="true"] > small { color: #d8c27a; }
.prediction-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.prediction-meter i { height: 4px; border-radius: 2px; background: #e8e2d4; }
.prediction-area-tab[aria-pressed="true"] .prediction-meter i { background: #4a4840; }
.prediction-meter.is-good i.is-on { background: var(--tone-good); }
.prediction-meter.is-mixed i.is-on { background: var(--yellow-deep); }
.prediction-meter.is-caution i.is-on { background: var(--tone-caution); }

.prediction-area-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.prediction-area-summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-radius: 16px; }
.prediction-area-summary-copy { display: grid; align-content: start; gap: 8px; min-width: 0; }
.prediction-area-title { display: flex; align-items: center; gap: 10px; }
.prediction-area-title h4 { margin: 3px 0 0; font-size: 15px; letter-spacing: -.03em; }
.prediction-area-summary-copy > p { margin: 0; color: #4e4b45; font-size: 11px; line-height: 1.65; }
.prediction-karaka { margin-left: 4px; color: #8b867c; font-size: 8px; font-weight: 700; }
.prediction-highlights { display: grid; align-content: center; gap: 7px; }
.prediction-highlight { display: grid; gap: 2px; padding: 8px 10px; border-left: 3px solid; border-radius: 0 10px 10px 0; }
.prediction-highlight.is-good { border-color: var(--tone-good); background: var(--tone-good-bg); }
.prediction-highlight.is-caution { border-color: var(--tone-caution); background: var(--tone-caution-bg); }
.prediction-highlight strong { font-size: 10.5px; }
.prediction-highlight small { color: #5d594f; font-size: 9px; }

/* Timeline bar: lanes of windows across the horizon */
.prediction-gantt { display: grid; gap: 4px; padding: 10px 12px 12px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--surface-paper-bg); }
.prediction-gantt-axis { position: relative; height: 14px; margin: 0 2px; }
.prediction-gantt-axis span { position: absolute; top: 0; color: #8b867c; font-size: 7.5px; font-weight: 750; transform: translateX(-50%); white-space: nowrap; }
.prediction-gantt-axis .is-edge { color: var(--ink); transform: none; }
.prediction-gantt-axis .is-end { left: auto; }
.prediction-gantt-track { position: relative; height: calc(var(--lanes) * 26px + 6px); border-radius: 9px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(225 208 155 / 25%) calc(10% - 1px) 10%), #fffdf6; }
.prediction-gantt-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--gold-pill-border); }
.prediction-gantt-bar { position: absolute; display: flex; height: 22px; align-items: center; gap: 5px; overflow: hidden; padding: 0 7px 0 3px; border-radius: 7px; color: var(--ink); font-size: 8px; font-weight: 750; box-sizing: border-box; }
.prediction-gantt-bar b { display: inline-grid; min-width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 75%); font-size: 7.5px; }
.prediction-gantt-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prediction-gantt-bar.is-good { background: linear-gradient(90deg, #cfe5d4, #e3f0e5); box-shadow: inset 0 0 0 1px #a9cdb2; }
.prediction-gantt-bar.is-mixed { background: linear-gradient(90deg, #f6e6a8, #fbf2d2); box-shadow: inset 0 0 0 1px #e6d48d; }
.prediction-gantt-bar.is-caution { background: linear-gradient(90deg, #f1cdc8, #f8e6e3); box-shadow: inset 0 0 0 1px #e2aaa3; }
.prediction-gantt-bar.is-peak { box-shadow: inset 0 0 0 1.5px var(--tone-good), 0 3px 8px -4px rgb(79 138 95 / 60%); }

/* Timeline navigator: Earlier / period / Later / Today, then a ribbon of every saved pattern */
.prediction-nav { display: grid; gap: 9px; padding: 10px 12px 8px; border-radius: 15px; overflow: visible; }
.prediction-nav-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.prediction-nav-step, .prediction-nav-today { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; font: inherit; font-size: 9.5px; font-weight: 750; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.prediction-nav-step > span[aria-hidden] { font-size: 15px; line-height: 1; transform: translateY(-1px); }
.prediction-nav-step:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.prediction-nav-today { border: 2px solid var(--yellow); background: #252523; color: var(--yellow); box-shadow: 0 3px 8px -3px rgb(37 37 35 / 45%); }
.prediction-nav-today svg { width: 12px; height: 12px; flex: 0 0 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.6; }
.prediction-nav-today:hover:not(:disabled) { box-shadow: 0 5px 12px -4px rgb(37 37 35 / 55%); transform: translateY(-1px); }
.prediction-nav-step:disabled, .prediction-nav-today:disabled { box-shadow: none; cursor: default; opacity: .4; transform: none; }
.prediction-nav-step:focus-visible, .prediction-nav-today:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }
.prediction-nav-period { display: flex; min-width: 0; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; text-align: center; }
.prediction-nav-period strong { font-size: 11.5px; letter-spacing: -.02em; }
.prediction-nav-period small { color: #8b867c; font-size: 8.5px; font-weight: 700; }
.prediction-nav-state { padding: 2px 8px; border-radius: 999px; font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prediction-nav-state.is-today { background: #252523; color: var(--yellow); }
.prediction-nav-state.is-past { background: #ebe8e1; color: #5d594f; }
.prediction-nav-state.is-ahead { background: var(--gold-100); color: var(--gold-ink); }

.prediction-ribbon { display: grid; gap: 3px; }
.prediction-ribbon-track { position: relative; height: calc(var(--lanes) * 9px + 6px); border-radius: 7px; background: #f6f2e8; }
.prediction-ribbon-past { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 7px 0 0 7px; background: repeating-linear-gradient(135deg, rgb(130 125 115 / 9%) 0 4px, transparent 4px 8px); }
.prediction-ribbon-segment { position: absolute; height: 6px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.prediction-ribbon-segment.is-good { background: var(--tone-good); }
.prediction-ribbon-segment.is-mixed { background: var(--yellow-deep); }
.prediction-ribbon-segment.is-caution { background: var(--tone-caution); }
.prediction-ribbon-segment:hover, .prediction-ribbon-segment:focus-visible { filter: brightness(1.1); outline: 2px solid var(--ink); outline-offset: 1px; transform: scaleY(1.4); }
.prediction-ribbon-view { position: absolute; top: -3px; bottom: -3px; border: 1.5px solid #252523; border-radius: 6px; background: rgb(245 214 83 / 16%); box-shadow: 0 0 0 3px rgb(245 214 83 / 30%); pointer-events: none; transition: left .2s ease, width .2s ease; }
.prediction-ribbon-today { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 1px; background: #252523; pointer-events: none; }
.prediction-ribbon-axis { position: relative; height: 12px; }
.prediction-ribbon-axis span { position: absolute; top: 0; color: #9a958c; font-size: 7.5px; font-weight: 750; transform: translateX(-50%); white-space: nowrap; }
.prediction-ribbon-axis span::before { position: absolute; top: -6px; left: 50%; width: 1px; height: 4px; background: #d6cfbf; content: ""; }
.prediction-ribbon-axis .is-start { transform: none; }
.prediction-ribbon-axis .is-start::before { left: 0; }
.prediction-ribbon-axis .is-today { color: var(--ink); font-weight: 850; }
.prediction-ribbon-axis .is-today::before { display: none; }

/* Timeline bar: shaded past and a "Today" line when today falls inside the view */
.prediction-gantt-past { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 9px 0 0 9px; background: repeating-linear-gradient(135deg, rgb(130 125 115 / 8%) 0 4px, transparent 4px 8px); }
.prediction-gantt-today { position: absolute; z-index: 1; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #252523; }
.prediction-gantt-today span { position: absolute; top: -12px; left: 50%; padding: 0 4px; border-radius: 3px; background: #252523; color: var(--yellow); font-size: 6.5px; font-weight: 800; transform: translateX(-50%); white-space: nowrap; }
.prediction-gantt-track { margin-top: 6px; }

/* Pattern status tags; completed patterns are slightly muted */
.prediction-status { padding: 1px 7px; border-radius: 999px; font-size: 7.5px; font-weight: 800; letter-spacing: .03em; }
.prediction-status.is-past { background: #ebe8e1; color: #5d594f; }
.prediction-status.is-upcoming { border: 1px solid var(--gold-pill-border); background: var(--white); color: var(--gold-ink); }
.prediction-window.is-past .prediction-window-body { background: linear-gradient(160deg, #fcfbf8, #f5f2ec); }
.prediction-window.is-past .prediction-window-body::before { opacity: .35; }
.prediction-window.is-past .prediction-window-number { filter: saturate(.35); }
.prediction-window.is-past h5, .prediction-window.is-past .prediction-events li { color: #4e4b45; }

/* Windows: numbered rail + card with expectations, reasoning, triggers and guidance */
.prediction-window-list { display: grid; gap: 0; }
/* List / Paged switch and the pager, just below the zoomed timeline strip. */
.prediction-mode-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 0; }
.prediction-mode-note { color: #8b867c; font-size: 9px; font-weight: 700; }
.prediction-pager { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; }
.prediction-page-step { display: inline-flex; min-height: 30px; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; font: inherit; font-size: 9.5px; font-weight: 750; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.prediction-page-step > span[aria-hidden] { font-size: 15px; line-height: 1; transform: translateY(-1px); }
.prediction-page-step:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.prediction-page-step:disabled { cursor: default; opacity: .4; }
.prediction-page-step:focus-visible, .prediction-mode-switch:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }
.prediction-page-count { display: grid; flex: 1 1 auto; justify-items: center; min-width: 0; line-height: 1.25; text-align: center; }
.prediction-page-count strong { font-size: 10.5px; }
.prediction-page-count small { overflow: hidden; max-width: 100%; color: #8b867c; font-size: 8.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.prediction-mode-switch { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 6px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: 9.5px; font-weight: 750; }
.prediction-mode-track { position: relative; width: 30px; height: 17px; flex: 0 0 auto; border: 1px solid var(--gold-pill-border); border-radius: 999px; background: #efe9da; transition: background .15s, border-color .15s; }
.prediction-mode-track i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: transform .15s; }
.prediction-mode-switch[aria-checked="true"] .prediction-mode-track { border-color: var(--ink); background: var(--ink); }
.prediction-mode-switch[aria-checked="true"] .prediction-mode-track i { transform: translateX(13px); }
/* The bar of the window shown in paged mode; bars open their window when clicked. */
.prediction-gantt-bar { cursor: pointer; }
.prediction-gantt-bar.is-current { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.prediction-window-list.is-paged .prediction-window-rail i { visibility: hidden; }
.prediction-window { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.prediction-window-rail { display: flex; flex-direction: column; align-items: center; }
.prediction-window-rail i { width: 2px; flex: 1; margin: 3px 0; border-radius: 2px; background: var(--gold-line); }
.prediction-window:last-child .prediction-window-rail i { visibility: hidden; }
.prediction-window-number { width: 24px; height: 24px; flex-basis: 24px; font-size: 9px; font-weight: 850; }
.prediction-window.is-good .prediction-window-number { background: radial-gradient(circle at 35% 30%, #eaf6ec, #9fcaa9 60%, #6fa77e); }
.prediction-window.is-caution .prediction-window-number { background: radial-gradient(circle at 35% 30%, #fbecea, #e3a7a0 60%, #c47c75); }
.prediction-window-body { display: grid; gap: 9px; margin-bottom: 10px; padding: 11px 12px; border-radius: 14px; }
.prediction-window.is-good .prediction-window-body::before { background: linear-gradient(90deg, transparent, #9fcaa9, var(--tone-good), #9fcaa9, transparent); }
.prediction-window.is-caution .prediction-window-body::before { background: linear-gradient(90deg, transparent, #e3a7a0, var(--tone-caution), #e3a7a0, transparent); }
.prediction-window.is-peak .prediction-window-body { border-color: #a9cdb2; }
.prediction-window-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.prediction-window-dates { color: var(--gold-ink); font-size: 9.5px; font-weight: 800; letter-spacing: .01em; }
.prediction-window-head h5 { margin: 2px 0 0; font-size: 12.5px; letter-spacing: -.02em; }
.prediction-window-tags { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.prediction-window-tags small { color: #8b867c; font-size: 8px; font-weight: 700; }.prediction-now { padding: 1px 7px; border-radius: 999px; background: #252523; color: var(--yellow); font-size: 7.5px; font-weight: 800; letter-spacing: .04em; }
.prediction-peak { padding: 1px 7px; border: 1px solid #a9cdb2; border-radius: 999px; background: var(--white); color: var(--tone-good); font-size: 7.5px; font-weight: 800; }
.prediction-window-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.prediction-window-columns ul { display: grid; gap: 4px; margin: 5px 0 0; padding-left: 14px; }
/* "What to expect" title with the Chat button beside it */
.prediction-events-head { display: flex; align-items: center; gap: 8px; }
.prediction-chat-button { display: inline-flex; min-height: 17px; flex: 0 0 auto; align-items: center; gap: 3.4px; padding: 0 5.1px 0 5.95px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); box-shadow: 0 1px 2px rgb(23 21 18 / 14%); color: var(--white); cursor: pointer; font: inherit; font-size: 6.8px; font-weight: 750; letter-spacing: .02em; line-height: 1; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.prediction-chat-icon { width: 9.35px; height: 9.35px; flex: 0 0 9.35px; fill: none; stroke: var(--yellow); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; transition: transform .2s; }
.prediction-chat-arrow { width: 6.8px; height: 6.8px; flex: 0 0 6.8px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; opacity: .7; transition: transform .2s; }
.prediction-chat-button:hover { border-color: var(--yellow-deep); background: linear-gradient(135deg, #2f2d28, #252523); box-shadow: 0 3px 8px rgb(23 21 18 / 22%), 0 0 0 2px rgb(245 214 83 / 35%); transform: translateY(-1px); }
.prediction-chat-button:hover .prediction-chat-icon { transform: rotate(-8deg) scale(1.1); }
.prediction-chat-button:hover .prediction-chat-arrow { opacity: 1; transform: translateX(1.5px); }
.prediction-chat-button:active { transform: none; }
.prediction-chat-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.prediction-window.is-past .prediction-chat-button { border-color: #dccb85; background: var(--white); box-shadow: none; color: #5d4f1c; }
.prediction-window.is-past .prediction-chat-icon { stroke: var(--gold-label); }
.prediction-window.is-past .prediction-chat-button:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.prediction-window.is-past .prediction-chat-button:hover .prediction-chat-icon { stroke: var(--yellow); }
.prediction-window-columns li { color: #4e4b45; font-size: 10px; line-height: 1.55; }
.prediction-events li { color: var(--ink); font-weight: 600; }
.prediction-window-columns li::marker { color: #b39a30; }
.prediction-why { padding: 7px 9px; }
.prediction-why li { color: #5d594f; font-size: 9.5px; }
/* Reasoning in two groups, coloured like the D / T chips: dashas (blue) and transits (gold). */
.prediction-why-group { margin-top: 6px; padding: 6px 8px 4px; border-left: 3px solid; border-radius: 8px; }
.prediction-why-group ul { margin: 4px 0 0; padding-left: 16px; }
.prediction-why-group li strong { color: var(--ink); font-weight: 800; }
/* Dashas and Transits panels share one look. */
.prediction-why-group.is-dasha, .prediction-why-group.is-transit { border-color: #4f6893; background: #f1f4fa; }
.prediction-why-head { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
/* Each group is a small collapsible panel: the header toggles it; collapsed, only the header row remains. */
.prediction-why-group > summary { display: flex; width: 100%; cursor: pointer; list-style: none; user-select: none; }
.prediction-why-group > summary::-webkit-details-marker { display: none; }
.prediction-why-group > summary small { margin-left: auto; color: #8b867c; font-size: 8px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.prediction-why-group > summary::after { content: ""; width: 5px; height: 5px; margin: 0 2px 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.prediction-why-group[open] > summary::after { transform: rotate(45deg); }
.prediction-why-group:not([open]) { padding-bottom: 6px; }
.prediction-why-head b { display: inline-grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; font-size: 7px; }
.prediction-why-group.is-dasha .prediction-why-head, .prediction-why-group.is-transit .prediction-why-head { color: #4f6893; }
.prediction-why-group.is-dasha .prediction-why-head b, .prediction-why-group.is-transit .prediction-why-head b { background: #4f6893; color: var(--white); }
.prediction-window-foot { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--gold-line); }
.prediction-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; border-radius: 999px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.prediction-trigger b { display: inline-grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; font-size: 7px; }
.prediction-trigger.is-transit { background: var(--gold-100); color: var(--gold-ink); }
.prediction-trigger.is-transit b { background: var(--gold-coin); color: var(--ink); }
.prediction-trigger.is-dasha { background: #e5ebf5; color: #4f6893; }
.prediction-trigger.is-dasha b { background: #4f6893; color: var(--white); }
/* Guidance: a list in two columns on wide cards (one on narrow ones), with check marks. */
.prediction-advice { display: grid; gap: 5px; padding: 8px 10px; border: 1px solid #dfe9e1; border-radius: 10px; background: #f5faf6; }
.prediction-advice ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.prediction-advice li { position: relative; padding-left: 15px; color: #3f4a42; font-size: 9.5px; line-height: 1.5; }
.prediction-advice li::before { position: absolute; top: 1px; left: 0; color: var(--tone-good); content: "✓"; font-size: 9px; font-weight: 800; }
.prediction-window.is-past .prediction-advice { border-color: #e6e3dc; background: #f8f7f4; }
.prediction-window.is-past .prediction-advice li::before { color: #8b867c; }

/* Reduced motion ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .summary-tabs button, .summary-tab-icon { transition: none; }
  .summary-tabs button:hover .summary-tab-icon { transform: none; }
  .prediction-chat-button, .prediction-chat-icon, .prediction-chat-arrow { transition: none; }
  .prediction-chat-button:hover { transform: none; }
  .prediction-area-tab, .prediction-house, .prediction-ribbon-view, .prediction-ribbon-segment, .prediction-nav-today { transition: none; }
  .prediction-area-tab:hover { transform: none; }
  .yoga-results-get, .yoga-results-get-icon { transition: none; }
  .yoga-results-spinner i { animation-duration: 2.4s; }
}

/* 7. Responsive ------------------------------------------------------------------------------- */
@media (max-width: 780px) {
  /* Tabs: the coin sits above its label so all five fit. */
  .summary-tabs { gap: 2px; padding: 5px; border-radius: 15px; }
  .summary-tabs button { min-height: 54px; flex-direction: column; gap: 4px; padding: 5px 1px; font-size: 10px; }
  .summary-tab-label { max-width: 100%; }
  /* Charts: a single card; its toggles switch between every chart. */
  .chart-visualization-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-visualization-grid > [data-chart-card]:not([data-chart-card="1"]) { display: none; }
  .quick-stats { padding: 15px 5px; border-radius: 17px; }
  .quick-stats.quick-stats--compact { padding: 6px 5px; border-radius: 14px; }
  .quick-stats--compact .quick-stat strong { font-size: 13px; }
  .quick-stats--compact .quick-stat small { margin-top: 0; }
  /* Phones: the coin moves into the label row (a small one), so the value and note keep the tile's full width. */
  .quick-stat--icon { align-items: center; column-gap: 4px; }
  .quick-stat--icon > div { display: contents; }
  .quick-stat--icon > div > span { margin-bottom: 0; }
  .quick-stat--icon strong, .quick-stat--icon small { grid-column: 1 / -1; }
  .quick-stat--icon strong { margin-top: 3px; }
  .quick-stat-icon { width: 14px; height: 14px; flex-basis: 14px; font-size: 8px; }
  .quick-stat-icon svg { width: 9px; height: 9px; stroke-width: 1.8; }
  .quick-stat { padding: 0 10px; }
  .quick-stat strong { font-size: 14px; }
  .quick-stat small { font-size: 9px; }
  .overview-life-areas { gap: 11px; margin-top: 14px; }
  .overview-life-areas-heading,
  .yogas-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .overview-life-areas-heading > p,
  .yogas-heading > p { text-align: left; }
  .overview-life-area-grid { gap: 8px; }
  .overview-life-area { padding: 14px; border-radius: 15px; }
  .life-reading .reading-dimensions { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .transits-panel { padding: 13px; border-radius: 17px; }
  .transits-current-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transit-current-card { padding: 9px; }
  .transit-event { grid-template-columns: 57px 25px minmax(0, 1fr); gap: 7px; padding: 8px; }
  .transit-event-icon { width: 25px; height: 25px; }
  .transit-filter-group { grid-template-columns: 43px minmax(0, 1fr); gap: 5px; }
  .transit-period-toggle { gap: 1px; }
  .transit-period-toggle button { min-height: 29px; padding: 0 6px; font-size: 8px; }
  .overview-area-filter .transit-period-toggle { gap: 1.2px; }
  .overview-area-filter .transit-period-toggle button { min-height: 35px; padding: 0 7.2px; font-size: 9.6px; }
  .prediction-brief, .prediction-grid, .prediction-area-summary, .prediction-window-columns { grid-template-columns: minmax(0, 1fr); }
  .prediction-brief { gap: 12px; padding: 15px; }
  .predictions-panel > .transit-filter-group { margin-bottom: 12px; }
  .prediction-brief-focus { padding: 10px 0 0; border-top: 1px solid rgb(245 214 83 / 30%); border-left: 0; }
  .prediction-house-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prediction-area-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .prediction-area-tab { min-width: 118px; flex: 0 0 auto; scroll-snap-align: start; }
  .prediction-window-head { flex-direction: column; gap: 5px; }
  .prediction-details { padding: 8px; }
  .prediction-details-copy small { white-space: normal; }
  .prediction-nav-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .prediction-nav-today { grid-column: 1 / -1; justify-self: center; }
  .prediction-nav-step-label { display: none; }
  .prediction-nav-step { padding: 0 10px; }
  .prediction-window-tags { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .prediction-house-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prediction-facts { grid-template-columns: minmax(0, 1fr); }
  .prediction-window { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; }
  .prediction-window-number { width: 21px; height: 21px; flex-basis: 21px; }
}
@media (max-width: 420px) {
  .summary-tabs button { font-size: 9.5px; letter-spacing: -.02em; }
  .quick-stat { padding: 0 7px; }
  .quick-stat span { font-size: 8px; }
  .quick-stats--compact .quick-stat strong { font-size: 12px; }
  .quick-stat strong { font-size: 12px; }
}
