:root {
  --book-navy: #12243f;
  --book-navy-soft: #243b56;
  --book-gold: #c49334;
  --book-teal: #4d8f88;
  --book-rose: #b46152;
  --book-paper: #fffefb;
  --book-cream: #f7f1e5;
  --book-ink: #17212d;
  --book-muted: #66717b;
  --book-line: #c9ced2;
}

.form-step.has-professional-report.is-visible {
  display: flex;
  flex-direction: column;
}

.form-step.has-professional-report > .review-layout {
  display: none;
}

.form-step.has-professional-report > .answer-home { order: 1; }
.form-step.has-professional-report > .report-blueprint { order: 2; }
.form-step.has-professional-report > .professional-report-reader { order: 3; }
.form-step.has-professional-report > .validation-preview-panel { order: 4; }
.form-step.has-professional-report > .private-session-panel { order: 5; }
.form-step.has-professional-report > .calculation-gate { order: 6; }
.form-step.has-professional-report > .form-actions { order: 7; }

.professional-report-reader {
  margin: 0 -22px 34px;
}

.professional-report-reader[hidden] {
  display: none;
}

.report-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.report-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 24px 28px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--book-navy);
  box-shadow: 0 18px 50px rgba(18, 36, 63, 0.16);
}

.report-reader-toolbar span {
  color: #e2bd70;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-reader-toolbar h2 {
  margin: 5px 0 3px;
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.report-reader-toolbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.report-reader-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.report-reader-actions .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.report-book-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.report-book-navigation {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  padding: 18px;
  border: 1px solid rgba(18, 36, 63, 0.13);
  border-radius: 16px;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 15px 44px rgba(28, 39, 45, 0.08);
  overflow-y: auto;
}

.report-book-navigation > span {
  display: block;
  margin-bottom: 10px;
  color: var(--book-gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.report-book-navigation nav {
  display: grid;
  gap: 2px;
}

.report-book-navigation nav a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 8px 6px;
  color: var(--book-ink);
  border-bottom: 1px solid rgba(18, 36, 63, 0.08);
  text-decoration: none;
}

.report-book-navigation nav a:hover,
.report-book-navigation nav a:focus-visible {
  color: var(--book-navy);
  background: rgba(196, 147, 52, 0.09);
}

.report-book-navigation nav b {
  color: var(--book-gold);
  font-size: 0.7rem;
}

.report-book-navigation nav span {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.report-book-navigation nav small {
  color: var(--book-muted);
  font-size: 0.62rem;
}

.report-book-navigation .book-callout {
  margin-top: 16px;
  padding: 12px;
}

.report-book-navigation .book-callout strong {
  font-size: 0.72rem;
}

.report-book-navigation .book-callout p {
  font-size: 0.64rem;
}

.report-page-stack {
  display: grid;
  min-width: 0;
  gap: 28px;
  justify-items: center;
}

.report-paper {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100%, 794px);
  min-height: 1123px;
  padding: 34px 42px 24px;
  color: var(--book-ink);
  border: 1px solid rgba(18, 36, 63, 0.12);
  background: var(--book-paper);
  box-shadow: 0 22px 64px rgba(18, 36, 63, 0.12);
  scroll-margin-top: 90px;
}

.report-paper.is-cover {
  display: block;
  padding: 0;
  color: #fff;
  border: 0;
  background: var(--book-navy);
  overflow: hidden;
}

.report-paper-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 7px;
  color: var(--book-muted);
  border-bottom: 2px solid var(--book-gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.report-paper-header span:last-child {
  color: var(--book-gold);
  text-align: right;
}

.report-paper-title {
  margin: 16px 0 14px;
  color: var(--book-navy);
  font-family: var(--serif);
  font-size: 1.68rem;
  line-height: 1.08;
}

.report-paper-content {
  min-height: 0;
  font-size: 0.73rem;
  line-height: 1.42;
}

.report-paper-content > *:first-child {
  margin-top: 0;
}

.book-page-guide {
  display: grid;
  grid-template-columns: minmax(118px, 0.7fr) minmax(0, 1.25fr) minmax(0, 1.15fr);
  gap: 12px;
  margin: 0 0 11px;
  padding: 9px 11px;
  color: var(--book-navy);
  border-left: 3px solid var(--book-teal);
  background: rgba(77, 143, 136, 0.085);
}

.book-page-guide div {
  display: grid;
  align-content: start;
  gap: 2px;
}

.book-page-guide span {
  color: var(--book-teal);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.book-page-guide strong,
.book-page-guide p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.3;
}

.report-cover-content > .book-page-guide {
  grid-template-columns: 1fr;
  box-sizing: border-box;
  width: min(335px, 100%);
  margin: 0 0 12px;
  color: #fff;
  border-left-color: #e0bd74;
  background: rgba(255, 255, 255, 0.07);
}

.report-cover-content > .book-page-guide span {
  color: #e0bd74;
}

.report-paper-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 7px;
  color: #91979e;
  border-top: 1px solid rgba(196, 147, 52, 0.42);
  font-size: 0.56rem;
}

.report-cover-content {
  position: relative;
  box-sizing: border-box;
  display: flex;
  min-height: 1123px;
  padding: 96px 72px 54px;
  flex-direction: column;
  background:
    radial-gradient(circle at 75% 44%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(160deg, #132640 0%, #102037 70%, #0c1a2d 100%);
}

.report-cover-content::before {
  position: absolute;
  top: 62px;
  right: 72px;
  left: 72px;
  height: 2px;
  content: "";
  background: var(--book-gold);
}

.book-cover-kicker {
  color: #e0bd74;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.report-cover-content h1 {
  max-width: 470px;
  margin: 46px 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 3.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.report-cover-content h2 {
  margin: 14px 0 0;
  color: #e7b957;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: pre-line;
}

.book-cover-mandala {
  position: absolute;
  top: 208px;
  right: 38px;
  width: 365px;
  height: 365px;
}

.mandala-segment {
  fill: none;
  stroke-width: 42;
}

.mandala-ring {
  fill: rgba(4, 16, 30, 0.72);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.mandala-ring.is-inner {
  fill: rgba(16, 32, 55, 0.92);
}

.mandala-spoke {
  stroke: rgba(255, 255, 255, 0.2);
}

.mandala-label {
  fill: #fff;
  font-size: 20px;
}

.mandala-initials {
  fill: #fff;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
}

.book-cover-facts {
  display: grid;
  grid-template-columns: 102px 1fr;
  width: 335px;
  margin: auto 0 28px;
  font-size: 0.78rem;
}

.book-cover-facts dt,
.book-cover-facts dd {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.book-cover-facts dt {
  color: #ddb768;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-cover-facts dd {
  color: #fff;
  font-weight: 700;
}

.report-cover-content .book-callout {
  width: 100%;
  margin: 0;
  color: #fff;
  border-color: rgba(196, 147, 52, 0.65);
  background: rgba(0, 0, 0, 0.16);
}

.book-subtitle {
  margin: 18px 0 8px;
  color: var(--book-teal);
  font-family: var(--serif);
  font-size: 1rem;
}

.book-caption,
.book-evidence-line,
.book-table-frame + .book-caption {
  color: var(--book-muted);
  font-size: 0.62rem;
}

.book-evidence-line {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.book-table-frame {
  width: 100%;
  margin: 10px 0 14px;
  overflow: hidden;
}

.book-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.64rem;
  line-height: 1.26;
}

.book-table caption {
  padding: 7px 9px;
  color: var(--book-navy);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: left;
  background: rgba(196, 147, 52, 0.12);
}

.book-table th,
.book-table td {
  padding: 5px 7px;
  border: 1px solid var(--book-line);
  text-align: left;
  vertical-align: top;
}

.book-table thead th {
  color: #fff;
  background: var(--book-navy);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.book-table tbody th {
  color: var(--book-navy);
  background: rgba(196, 147, 52, 0.06);
  font-weight: 800;
}

.book-table-frame.is-compact .book-table,
.book-table-frame.is-matrix .book-table {
  font-size: 0.54rem;
  line-height: 1.16;
}

.book-table-frame.is-compact th,
.book-table-frame.is-compact td,
.book-table-frame.is-matrix th,
.book-table-frame.is-matrix td {
  padding: 3px 5px;
}

.book-table-frame.is-matrix .book-table {
  table-layout: fixed;
}

.book-callout {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(196, 147, 52, 0.6);
  background: rgba(196, 147, 52, 0.09);
}

.book-callout.is-teal {
  border-color: rgba(77, 143, 136, 0.65);
  background: rgba(77, 143, 136, 0.08);
}

.book-callout.is-rose {
  border-color: rgba(180, 97, 82, 0.58);
  background: rgba(180, 97, 82, 0.08);
}

.book-callout.is-dark {
  border-color: rgba(196, 147, 52, 0.65);
  background: rgba(3, 12, 22, 0.2);
}

.book-callout-label {
  display: block;
  margin-bottom: 2px;
  color: var(--book-gold);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-callout strong {
  display: block;
  color: var(--book-navy);
  font-size: 0.8rem;
}

.book-callout.is-dark strong,
.book-callout.is-dark .book-callout-label {
  color: #e6bd6c;
}

.book-callout p {
  margin: 4px 0 0;
  line-height: 1.36;
}

.book-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.book-two-column .book-callout {
  height: 100%;
  margin: 0;
}

.book-bullets {
  margin: 8px 0 14px;
  padding-left: 18px;
}

.book-bullets li {
  margin-bottom: 5px;
}

.book-prose-block {
  margin-bottom: 14px;
}

.book-prose-block h3 {
  margin: 0 0 5px;
  color: var(--book-teal);
  font-family: var(--serif);
  font-size: 0.96rem;
}

.book-prose-block > p {
  margin: 0;
}

.book-prose-block .book-callout {
  margin: 8px 0 0;
}

.book-topic-contract-page {
  display: grid;
  gap: 6px;
}

.book-topic-contract {
  display: grid;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid rgba(18, 36, 63, 0.18);
  border-top: 3px solid var(--book-gold);
  background: rgba(255, 255, 255, 0.7);
  break-inside: avoid;
}

.book-topic-contract.is-unavailable {
  border-color: rgba(180, 97, 82, 0.58);
  background: rgba(180, 97, 82, 0.08);
}

.book-topic-contract-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.book-topic-contract-kicker,
.book-topic-contract-block > strong,
.book-topic-contract-patterns > strong,
.book-topic-contract-meta > strong {
  display: block;
  color: var(--book-teal);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.book-topic-contract h3 {
  margin: 1px 0 0;
  color: var(--book-navy);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.05;
}

.book-topic-reliability {
  padding: 3px 5px;
  color: #fff;
  background: var(--book-teal);
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: center;
}

.book-topic-reliability.is-time_sensitive {
  background: var(--book-rose);
}

.book-topic-contract-block,
.book-topic-contract-patterns,
.book-topic-contract-meta {
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid rgba(18, 36, 63, 0.1);
  background: rgba(18, 36, 63, 0.025);
}

.book-topic-contract-block p,
.book-topic-contract-meta p {
  margin: 2px 0 0;
  font-size: 0.51rem;
  line-height: 1.22;
}

.book-topic-direct {
  border-color: rgba(196, 147, 52, 0.32);
  background: rgba(196, 147, 52, 0.08);
}

.book-topic-direct p {
  color: var(--book-navy);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.24;
}

.book-topic-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.book-topic-contract-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.book-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 10px;
  margin: 2px 0 0;
  padding-left: 13px;
  font-size: 0.48rem;
  line-height: 1.18;
}

.book-topic-list li {
  margin: 0;
}

.book-topic-reliability-note.is-time_sensitive {
  border-color: rgba(180, 97, 82, 0.32);
  background: rgba(180, 97, 82, 0.06);
}

.book-topic-evidence p {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.43rem;
}

.book-topic-related p {
  font-style: italic;
}

.book-contents-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.book-contents-list li {
  display: grid;
  grid-template-columns: 58px 1fr 54px;
  align-items: center;
  min-height: 43px;
  margin-bottom: 3px;
  background: #eef0ee;
}

.book-contents-list b {
  align-self: stretch;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--book-teal);
}

.book-contents-list li:nth-child(even) b {
  background: var(--book-gold);
}

.book-contents-list span {
  padding: 0 14px;
  color: var(--book-navy);
  font-weight: 700;
}

.book-contents-list small {
  padding-right: 12px;
  color: var(--book-muted);
  text-align: right;
}

.book-south-chart-figure {
  width: 68%;
  margin: 2px auto 12px;
}

.book-south-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 1;
  border: 2px solid var(--book-navy);
  background: var(--book-paper);
}

.book-sign-cell {
  min-width: 0;
  padding: 6px;
  border: 0 solid var(--book-line);
}

.book-sign-pisces { grid-area: 1 / 1; border-right-width: 1px; border-bottom-width: 1px; }
.book-sign-aries { grid-area: 1 / 2; border-right-width: 1px; border-bottom-width: 1px; }
.book-sign-taurus { grid-area: 1 / 3; border-right-width: 1px; border-bottom-width: 1px; }
.book-sign-gemini { grid-area: 1 / 4; border-bottom-width: 1px; }
.book-sign-aquarius { grid-area: 2 / 1; border-right-width: 1px; border-bottom-width: 1px; }
.book-sign-cancer { grid-area: 2 / 4; border-bottom-width: 1px; }
.book-sign-capricorn { grid-area: 3 / 1; border-right-width: 1px; border-bottom-width: 1px; }
.book-sign-leo { grid-area: 3 / 4; border-bottom-width: 1px; }
.book-sign-sagittarius { grid-area: 4 / 1; border-right-width: 1px; }
.book-sign-scorpio { grid-area: 4 / 2; border-right-width: 1px; }
.book-sign-libra { grid-area: 4 / 3; border-right-width: 1px; }
.book-sign-virgo { grid-area: 4 / 4; }

.book-sign-heading {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: var(--book-navy);
  font-size: 0.56rem;
}

.book-sign-heading span {
  color: var(--book-gold);
  font-size: 0.48rem;
}

.book-sign-bodies {
  display: grid;
  gap: 2px;
  margin-top: 5px;
}

.book-chart-body {
  color: var(--book-navy-soft);
  font-size: 0.51rem;
  white-space: nowrap;
}

.book-chart-center {
  display: grid;
  grid-area: 2 / 2 / 4 / 4;
  padding: 16px;
  place-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(196, 147, 52, 0.12), rgba(77, 143, 136, 0.06));
}

.book-chart-center strong {
  color: var(--book-navy);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.book-chart-center span {
  margin-top: 5px;
  color: var(--book-muted);
  font-size: 0.58rem;
}

.book-south-chart-figure figcaption,
.book-bar-figure figcaption,
.book-period-figure figcaption,
.book-transit-map figcaption {
  margin-top: 5px;
  color: var(--book-muted);
  font-size: 0.55rem;
  text-align: center;
}

.book-bar-figure {
  margin: 26px 0 30px;
}

.book-house-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  height: 190px;
  padding: 0 24px 1px;
  border-bottom: 1px solid var(--book-navy);
  background: repeating-linear-gradient(to top, rgba(18, 36, 63, 0.07) 0 1px, transparent 1px 47px);
}

.book-house-bar-column {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: end;
}

.book-house-bar-value,
.book-house-bar-label {
  color: var(--book-muted);
  font-size: 0.55rem;
}

.book-house-bar {
  width: 58%;
  min-height: 3px;
  margin: 3px 0;
  background: var(--book-navy);
}

.book-structure-diagram {
  margin: 8px 0 18px;
  padding: 18px;
  background: var(--book-cream);
}

.book-exchange-row,
.book-cluster-row {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: stretch;
  gap: 12px;
}

.book-cluster-row {
  grid-template-columns: repeat(3, 1fr);
}

.book-node {
  padding: 14px;
  border: 1px solid var(--book-line);
  background: #fff;
  text-align: center;
}

.book-node.is-blue { border-color: rgba(77, 126, 160, 0.55); }
.book-node.is-rose { border-color: rgba(180, 97, 82, 0.55); }
.book-node.is-compact { padding: 11px; }

.book-node > span {
  display: block;
  color: var(--book-gold);
  font-size: 0.54rem;
  font-weight: 800;
}

.book-node strong {
  display: block;
  margin: 3px 0;
  color: var(--book-navy);
}

.book-node p {
  margin: 4px 0 0;
  font-size: 0.58rem;
}

.book-exchange-connector {
  display: grid;
  place-content: center;
  color: var(--book-navy);
  text-align: center;
}

.book-exchange-connector::before,
.book-exchange-connector::after {
  display: block;
  height: 1px;
  margin: 5px 0;
  content: "";
  background: var(--book-gold);
}

.book-exchange-connector span {
  color: var(--book-rose);
  font-size: 0.58rem;
}

.book-diagram-caption {
  margin: 18px 0 10px;
  color: var(--book-navy);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.book-period-figure {
  margin: 18px 0;
}

.book-period-strip {
  display: flex;
  min-height: 84px;
  overflow: hidden;
}

.book-period-segment {
  position: relative;
  display: flex;
  min-width: 38px;
  padding: 9px 5px;
  color: #fff;
  flex-basis: 0;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.book-period-segment.is-current {
  outline: 3px solid var(--book-navy);
  outline-offset: -4px;
}

.book-period-segment strong {
  font-size: 0.58rem;
}

.book-period-segment small {
  font-size: 0.44rem;
  opacity: 0.8;
}

.book-transit-map {
  margin: 20px 0;
}

.book-transit-axis {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-height: 130px;
  border: 1px solid var(--book-line);
}

.book-transit-slot {
  display: flex;
  min-width: 0;
  padding: 7px 3px;
  border-right: 1px solid var(--book-line);
  flex-direction: column;
  text-align: center;
}

.book-transit-slot:last-child {
  border: 0;
}

.book-transit-slot > span {
  color: var(--book-muted);
  font-size: 0.52rem;
}

.book-transit-slot > div {
  display: flex;
  gap: 4px;
  margin: auto 0;
  flex-direction: column;
}

.book-transit-slot b {
  padding: 4px 2px;
  color: #fff;
  border-radius: 2px;
  background: var(--book-teal);
  font-size: 0.52rem;
}

.book-slow-timing {
  margin: 8px 0 10px;
  padding: 10px 11px;
  border: 1px solid var(--book-line);
  background: rgba(247, 241, 229, 0.55);
}

.book-slow-timing-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.book-slow-timing-row > strong {
  color: var(--book-navy);
  font-size: 0.46rem;
}

.book-slow-timing-track {
  position: relative;
  height: 19px;
  border-radius: 2px;
  background:
    linear-gradient(to right, rgba(18, 36, 63, 0.14) 1px, transparent 1px) 0 0 / 25% 100%,
    rgba(18, 36, 63, 0.035);
  overflow: hidden;
}

.book-slow-timing-band {
  position: absolute;
  top: 2px;
  height: 15px;
  min-width: 5px;
  padding: 1px 3px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  background: var(--book-teal);
  font-size: 0.39rem;
  line-height: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-slow-timing-band.is-dasha { background: #9c6328; }
.book-slow-timing-band.is-jupiter { background: #a77725; }
.book-slow-timing-band.is-saturn { background: #315a57; }
.book-slow-timing-band.is-rahu { background: #67566f; }
.book-slow-timing-band.is-ketu { background: #8b5b4e; }

.book-slow-timing-row.is-events .book-slow-timing-track {
  background: rgba(196, 147, 52, 0.09);
  overflow: visible;
}

.book-slow-timing-marker {
  position: absolute;
  top: 6px;
  width: 7px;
  height: 7px;
  background: var(--book-rose);
  transform: translateX(-50%) rotate(45deg);
}

.book-slow-timing-marker.is-station {
  border-radius: 50%;
  background: var(--book-teal);
}

.book-slow-timing figcaption {
  margin-top: 6px;
  color: var(--book-muted);
  font-size: 0.46rem;
  text-align: center;
}

.book-western-wheel {
  display: block;
  width: 68%;
  max-height: 480px;
  margin: 0 auto 10px;
}

.book-wheel-outer,
.book-wheel-inner,
.book-wheel-core {
  fill: rgba(196, 147, 52, 0.03);
  stroke: var(--book-navy);
  stroke-width: 1.5;
}

.book-wheel-core {
  fill: rgba(77, 143, 136, 0.03);
}

.book-wheel-spoke {
  stroke: rgba(18, 36, 63, 0.45);
}

.book-wheel-sign {
  fill: var(--book-gold);
  font-size: 18px;
}

.book-wheel-aspect {
  stroke-width: 1.1;
  opacity: 0.55;
}

.book-wheel-aspect.is-harmonious { stroke: var(--book-teal); }
.book-wheel-aspect.is-dynamic { stroke: var(--book-rose); }
.book-wheel-aspect.is-conjunction { stroke: var(--book-gold); }

.book-wheel-planet-dot {
  fill: var(--book-paper);
  stroke: var(--book-navy);
  stroke-width: 1.5;
}

.book-wheel-planet {
  fill: var(--book-navy);
  font-size: 9px;
  font-weight: 800;
}

.book-wheel-center {
  fill: var(--book-navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.book-end-mark {
  margin-top: 56px;
  color: var(--book-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
}

@media (max-width: 1050px) {
  .professional-report-reader {
    margin-right: 0;
    margin-left: 0;
  }

  .report-book-layout {
    grid-template-columns: 1fr;
  }

  .report-book-navigation {
    position: static;
    max-height: none;
  }

  .report-book-navigation nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .professional-report-reader,
  .report-book-layout,
  .report-page-stack,
  .report-paper,
  .report-paper-content {
    min-width: 0;
    max-width: 100%;
  }

  .professional-report-reader {
    overflow-x: hidden;
  }

  .report-reader-toolbar,
  .report-reader-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-book-navigation nav {
    grid-template-columns: 1fr;
  }

  .report-paper {
    width: 100%;
    min-height: 0;
    padding: 24px 20px 18px;
  }

  .book-page-guide {
    grid-template-columns: 1fr;
  }

  .report-cover-content {
    min-height: 880px;
    padding: 70px 28px 34px;
  }

  .report-cover-content::before {
    top: 46px;
    right: 28px;
    left: 28px;
  }

  .report-cover-content h1 {
    font-size: 2.45rem;
  }

  .book-cover-mandala {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    margin: 20px auto;
  }

  .book-cover-facts,
  .book-south-chart-figure,
  .book-western-wheel {
    width: 100%;
  }

  .book-two-column,
  .book-exchange-row,
  .book-cluster-row {
    grid-template-columns: 1fr;
  }

  .book-exchange-connector {
    min-height: 70px;
  }

  .book-table-frame {
    overflow-x: auto;
  }

  .book-table {
    min-width: 620px;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body > .site-header,
  body > footer,
  body > .skip-link,
  #view-match > .workspace-heading,
  #view-match > .foundation-banner,
  #match-form > .form-step[data-form-step="1"],
  #match-form > .form-step[data-form-step="3"],
  .form-step[data-form-step="2"] > :not(.professional-report-reader),
  .report-reader-toolbar,
  .report-book-navigation {
    display: none !important;
  }

  main,
  #view-match,
  #match-form,
  .form-step[data-form-step="2"],
  .professional-report-reader,
  .report-book-layout,
  .report-page-stack {
    display: block !important;
    width: 210mm !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .view:not(#view-match) {
    display: none !important;
  }

  #view-match {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .report-paper {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 9mm 12mm 7mm !important;
    border: 0 !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
    overflow: hidden;
  }

  .report-paper:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .report-paper.is-cover {
    display: block !important;
    padding: 0 !important;
  }

  .report-cover-content {
    min-height: 297mm !important;
    height: 297mm !important;
    padding: 25mm 19mm 14mm !important;
  }

  .report-paper-footer {
    display: flex !important;
  }

  .book-table-frame {
    overflow: hidden !important;
  }

  .book-table {
    min-width: 0 !important;
  }
}
