/* Additions consume the shared design tokens. */
.astro-controls {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.astro-options {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.astro-options label {
  flex: 1;
  min-width: 160px;
}
.astro-options > span {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
}
.inline-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.inline-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}
.astro-controls summary {
  cursor: pointer;
  color: var(--gold-light);
  padding: var(--space-3) 0;
}
.astro-controls output {
  color: var(--gold-light);
}
.transit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.transit-heading button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--gold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}
#transit-date {
  accent-color: var(--gold);
  padding: 0;
}
#transit-aspects {
  max-height: 280px;
  overflow: auto;
}
.transit-layer circle {
  fill: var(--panel);
  stroke: var(--element-air);
}
.transit-layer text {
  fill: var(--gold-light);
  font-size: 16px;
}
.transit-aspect {
  stroke: var(--aspect-flow);
  stroke-width: 0.7;
  opacity: 0.22;
  stroke-dasharray: 3 6;
}
.transit-aspect.tension {
  stroke: var(--aspect-tension);
}
.chart-stage {
  perspective: 1100px;
  isolation: isolate;
  position: relative;
}
.sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}
.sphere-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--muted);
  font-size: 12px;
}
.sphere-controls button,
.sheet-handle {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  background: var(--panel);
  color: var(--gold-light);
  font: inherit;
  cursor: pointer;
}
.sphere-controls [hidden] {
  display: none;
}
.sphere-controls button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--bg);
}
.armillary {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-scene) var(--ease);
}
.armillary > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotateX(0deg);
  transition: transform var(--duration-scene) var(--ease);
  filter: drop-shadow(0 0 5px var(--line-strong));
}
.sphere-on .armillary {
  opacity: 1;
}
.sphere-on .armillary > svg {
  transform: rotateX(var(--tilt));
}
.chart-stage > .natal-wheel {
  transition: opacity var(--duration-scene) var(--ease);
}
.sphere-on > .natal-wheel {
  opacity: 0 !important;
  pointer-events: none;
}
.sphere-on {
  touch-action: none;
  cursor: grab;
}
.sphere-on:active {
  cursor: grabbing;
}
.zodiac-glyph {
  font-variant-emoji: text;
}
.aspect-line {
  fill: none;
  stroke: var(--aspect-flow);
  opacity: 0.2;
  transition: opacity var(--duration-medium) var(--ease);
  filter: drop-shadow(0 0 2px var(--line-strong));
}
.aspect-line.tension,
.aspect-flow.tension {
  stroke: var(--aspect-tension);
}
.aspect-line.union {
  stroke: var(--aspect-union);
}
.aspect-line.highlighted {
  opacity: 1;
  stroke-width: 1.7;
}
.aspect-flow:not(.highlighted) {
  opacity: 0.2;
}
.planet-aura,
.planet-ripple,
.planet-satellite-ring,
.orbit-trace,
.aspect-flow {
  animation: none !important;
}
.center-breath {
  animation: astra-breath var(--duration-breath) var(--ease-in-out) infinite;
}
@keyframes astra-breath {
  50% {
    opacity: 0.15;
  }
}
.chart-enter > .natal-wheel {
  animation: astra-enter var(--duration-medium) var(--ease) both;
}
.chart-enter > .natal-wheel .zodiac-layer {
  animation: astra-enter var(--duration-medium) var(--ease) both;
  animation-delay: calc(var(--stagger) * 3);
}
.chart-enter > .natal-wheel .house-layer {
  animation: astra-enter var(--duration-medium) var(--ease) both;
  animation-delay: calc(var(--stagger) * 5);
}
.chart-enter > .natal-wheel .planet-node {
  animation: astra-enter var(--duration-medium) var(--ease) both;
  animation-delay: calc(var(--stagger) * (7 + var(--planet-index)));
}
.chart-enter > .natal-wheel .aspect-layer {
  animation: astra-enter var(--duration-medium) var(--ease) both;
  animation-delay: calc(var(--duration-entry) - var(--duration-medium));
}
@keyframes astra-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.natal-motion-paused .chart-stage *,
.natal-page-hidden .chart-stage * {
  animation-play-state: paused !important;
}
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}
.planet-node:focus-visible .planet-disc {
  stroke: var(--gold-light);
  stroke-width: 3;
}
.sheet-handle {
  display: none;
}
@media (max-width: 760px) {
  #chart-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .expanded-layout {
    display: block !important;
  }
  .expanded-layout > div:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--line-strong);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-4);
    max-height: 62dvh;
    overflow: auto;
    transform: translateY(calc(100% - 100px));
    transition: transform var(--duration-medium) var(--ease);
    z-index: 4;
  }
  .expanded-layout > div.sheet-open {
    transform: translateY(0);
  }
  .sheet-handle {
    display: block;
    margin: 0 auto var(--space-4);
    touch-action: none;
    width: 100%;
  }
  .expanded-layout .chart-stage {
    margin-top: var(--space-5);
  }
  .sphere-controls span {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chart-stage * {
    animation: none !important;
    transition: none !important;
  }
  .sky-canvas {
    display: none;
  }
}
.saved-profiles {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-5);
}
.saved-profiles label {
  min-width: 220px;
  flex: 1;
}
.saved-profiles p {
  font-size: 13px;
  color: var(--muted);
  flex-basis: 100%;
  margin: 0;
}
.saved-profiles button,
.product-controls button,
.daily-journal button,
.install-astra {
  font: inherit;
  color: var(--gold-light);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 44px;
}
.saved-profiles button:disabled {
  opacity: 0.5;
  cursor: default;
}
.product-controls {
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.product-controls p,
.daily-journal p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.product-controls [hidden] {
  display: none;
}
.product-controls summary {
  cursor: pointer;
  color: var(--gold-light);
  padding: var(--space-4) 0;
}
.product-controls table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.product-controls td,
.product-controls th {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.synastry-selectors {
  display: flex;
  gap: var(--space-3);
}
.synastry-selectors label {
  flex: 1;
  min-width: 0;
}
.syn-wheel svg {
  width: 100%;
  height: auto;
}
.syn-marker {
  fill: var(--panel);
  stroke: var(--lunar);
}
.syn-glyph {
  fill: var(--lunar);
  font-size: 15px;
}
.synastry-panel {
  margin-top: var(--space-5);
}
.daily-journal {
  margin: var(--space-8) auto;
  padding: var(--space-6);
  max-width: 900px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: var(--radius-lg);
}
.daily-journal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
}
.daily-journal h2 em {
  color: var(--gold-light);
}
.daily-journal label {
  color: var(--muted);
  font-size: 13px;
}
.daily-journal textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font: inherit;
  color: var(--text);
  margin: var(--space-3) 0;
}
.daily-journal summary {
  cursor: pointer;
  padding: var(--space-5) 0;
  color: var(--gold-light);
}
.daily-journal time {
  color: var(--gold);
  font-size: 13px;
}
.daily-journal article {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.daily-journal article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#journal-status {
  display: inline-block;
  margin-left: var(--space-3);
  color: var(--gold-light);
  font-size: 13px;
}
#reading-deck {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 65ch;
}
@media (max-width: 760px) {
  .saved-profiles {
    gap: var(--space-3);
  }
  .product-controls table {
    font-size: 11px;
  }
  .product-controls td,
  .product-controls th {
    padding: 7px 3px;
  }
  .daily-journal {
    padding: var(--space-5);
    margin: var(--space-6) var(--space-4);
  }
  .daily-journal h2 {
    font-size: 32px;
  }
  .synastry-selectors {
    flex-direction: column;
  }
}
.export-preview img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.chart-enter > .natal-wheel .aspect-line {
  stroke-dasharray: 700;
  animation: astra-trace var(--duration-medium) var(--ease) both;
  animation-delay: calc(var(--duration-entry) - var(--duration-medium));
}
@keyframes astra-trace {
  from {
    stroke-dashoffset: 700;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.planet-node:not(.selected):not(.hover-focus) {
  opacity: 0.2;
}
.planet-node.selected,
.planet-node.hover-focus {
  opacity: 1;
}
#reading-basis {
  font-size: 13px;
  color: var(--muted);
  margin: var(--space-4) 0;
}
#reading-basis summary {
  cursor: pointer;
  color: var(--gold-light);
}
#reading-basis p {
  line-height: 1.7;
}
.aspect-line.flow,
.aspect-flow.flow {
  stroke: var(--aspect-flow);
}
.form-help,
.chart-note,
.chart-touch-hint,
.natal-meta,
.method-note,
.map-status,
.chart-legend,
.chart-toolbar > span {
  color: var(--muted);
  opacity: 1;
}

/* Lecturas con espacio para ejemplos y conexiones, también en la carta ampliada. */
.insight-depth,
.chart-synthesis {
  font-size: 1rem;
  line-height: 1.8;
}
.insight-depth h4 {
  font-family: inherit;
  font-size: 1rem;
  color: var(--gold-light);
  margin: 1.5rem 0 0.5rem;
}
.insight-depth p,
.chart-synthesis p {
  margin: 0.65rem 0 1rem;
}
.reading-example {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(200, 174, 119, 0.055);
}
.reading-example > span {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.reading-example p {
  margin: 0.5rem 0 0;
}
.insight-connections {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 1.5rem 0;
  padding: 1rem 0;
}
.insight-connections summary {
  cursor: pointer;
  font-size: 1rem;
  color: var(--gold-light);
}
.insight-connections summary:focus-visible,
.chart-synthesis button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}
.depth-caption {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}
.chart-synthesis {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}
.chart-synthesis h3 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 400;
  margin: 0.75rem 0 1.25rem;
}
.chart-synthesis blockquote {
  color: var(--gold-light);
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.chart-synthesis .text-link {
  background: none;
  border: 0;
  padding: 0.5rem 0;
  color: var(--gold-light);
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-reading-body {
  max-width: 65ch;
}
.article-reading-body p {
  font-size: 1rem;
  line-height: 1.85;
}
@media (max-width: 600px) {
  .insight-depth,
  .insight-depth p,
  .chart-synthesis p {
    font-size: 1rem;
  }
  .insight-depth .depth-caption {
    font-size: 0.875rem;
  }
  .reading-example {
    padding: 0.8rem 1rem;
  }
}
