:root {
  --ink: #173047;
  --ink-2: #30495d;
  --muted: #70808c;
  --paper: #f5f3ee;
  --surface: #fffdf9;
  --surface-2: #eeebe4;
  --line: #dedbd3;
  --navy: #19384e;
  --navy-2: #244b64;
  --terracotta: #ca6e49;
  --terracotta-deep: #aa5236;
  --gold: #c59a59;
  --sage: #7f9887;
  --lavender: #8e82a4;
  --rose: #ac747d;
  --success: #4d7a63;
  --warning: #ad7431;
  --pending: #74777c;
  --shadow: 0 18px 50px rgba(27, 47, 62, 0.10);
  --shadow-soft: 0 8px 24px rgba(27, 47, 62, 0.07);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --sidebar: 248px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media print {
  body > :not(#result-view) {
    display: none !important;
  }

  #result-view,
  #result-view[hidden] {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }

  #result-view .result-header,
  #result-view .report-toc,
  #result-view .result-toolkit,
  #result-view .chart-explorer-panel,
  #result-view .result-audit-panel,
  #result-view .report-builder-panel,
  #result-view button {
    display: none !important;
  }

  #result-view .report-layout {
    display: block !important;
  }

  #result-view .report-main {
    width: 100% !important;
    max-width: none !important;
  }

  #result-view .report-section,
  #result-view .long-reading-block,
  #result-view .data-table-wrap {
    break-inside: avoid;
  }

  #result-view details {
    display: block !important;
  }

  #result-view details > * {
    display: block !important;
  }
}

@media screen {
  body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  input,
  textarea,
  select,
  [contenteditable="true"],
  [data-allow-copy] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
  }

  img,
  picture,
  svg,
  canvas,
  #result-view {
    -webkit-user-drag: none;
  }
}

.form-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
}

.form-subheading small {
  color: var(--muted);
}

.result-header-metric {
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  text-align: right;
}

.result-header-metric strong,
.result-header-metric small {
  display: block;
}

.result-header-metric strong {
  font-size: 1.35rem;
}

.technical-graphic {
  width: min(100%, 1040px);
  margin: 22px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fbfcfc;
}

.technical-graphic svg,
.generated-astro-map,
.generated-local-space,
.generated-technique-timeline {
  display: block;
  width: 100%;
  height: auto;
}

.chart-scroll-hint {
  display: none;
}

.calculation-proof {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.calculation-proof strong {
  flex: 0 0 auto;
}

.result-aspect-details {
  margin-top: 18px;
}

.calculated-technique-result .result-index button.active {
  color: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  background: rgba(172, 75, 48, .08);
}

.calculated-technique-result {
  min-height: 100%;
}

.calculated-technique-result .result-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  min-height: 92px;
  padding-block: 11px;
}

.calculated-technique-result .result-header > div:not(.result-header-metric) {
  display: block;
  min-width: 0;
  justify-self: stretch;
}

.calculated-technique-result .result-header small {
  color: var(--muted);
  font-size: 9px;
}

.calculated-technique-result .result-header h1 {
  margin: 2px 0;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05;
}

.calculated-technique-result .result-header p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.calculated-technique-result .result-header-metric {
  min-width: 132px;
  border-color: var(--line);
  background: var(--surface);
}

.calculated-technique-result .result-layout {
  display: grid;
  width: min(1480px, 100%);
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin: 0 auto;
  padding: 20px clamp(14px, 2.5vw, 36px) 100px;
}

.calculated-technique-result .result-index {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--portal-line);
  background: white;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
}

.calculated-technique-result .result-index > strong {
  margin-bottom: 5px;
  color: var(--portal-muted);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calculated-technique-result .result-index button {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--portal-blue);
  cursor: pointer;
  font-size: 9px;
  line-height: 1.35;
  text-align: left;
}

.calculated-technique-result .result-index .result-index-subitem {
  min-height: 28px;
  margin-left: 10px;
  padding: 5px 8px;
  border-left: 2px solid var(--portal-line);
  color: var(--portal-muted);
  font-size: 8px;
}

.calculated-technique-result .result-document {
  min-width: 0;
}

@media (max-width: 720px) {
  .result-header-metric {
    width: 100%;
    text-align: left;
  }

  .calculated-technique-result .result-header {
    position: relative;
    grid-template-areas:
      "close heading save"
      "metric metric metric";
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 12px;
  }

  .calculated-technique-result .result-header > button:first-child {
    grid-area: close;
    width: 44px;
    height: 44px;
  }

  .calculated-technique-result .result-header > div:not(.result-header-metric) {
    grid-area: heading;
  }

  .calculated-technique-result .result-header .primary-button {
    grid-area: save;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .calculated-technique-result .result-header .primary-button::before {
    content: "Guardar";
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .calculated-technique-result .result-header h1 {
    overflow-wrap: anywhere;
    font-size: 24px;
  }

  .calculated-technique-result .result-header p {
    font-size: 10px;
    line-height: 1.4;
  }

  .calculated-technique-result .result-header-metric {
    grid-area: metric;
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: flex-start;
    gap: 7px;
    padding: 7px 10px;
  }

  .calculated-technique-result .result-header-metric strong {
    font-size: 17px;
  }

  .calculated-technique-result .result-layout {
    display: block;
    padding: 10px 8px 90px;
  }

  .calculated-technique-result .result-index {
    display: none;
  }

  .form-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .advanced-place-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.engine-launch-warning {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 2px solid #a74333;
  border-radius: 8px;
  background: #fff4ec;
  box-shadow: 0 16px 40px rgba(38, 24, 18, .22);
  color: #70291f;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
details:focus-visible {
  outline: 3px solid rgba(202, 110, 73, 0.35);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -60px;
  z-index: 999;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 30px 20px 22px;
  background: #173448;
  color: rgba(255, 255, 255, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  object-fit: contain;
}

.brand-orbit {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.brand-orbit::after {
  position: absolute;
  top: -2px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.brand-star {
  color: #f6d5a0;
  font-size: 18px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: white;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: .02em;
}

.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-label {
  margin: 10px 10px 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-label-spaced {
  margin-top: 26px;
}

.main-nav {
  flex: 1;
}

.compact-nav-toggle {
  display: none;
}

.nav-link {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.nav-link.active {
  box-shadow: inset 3px 0 var(--gold);
}

.nav-icon {
  display: grid;
  width: 21px;
  place-items: center;
  color: #d4b47c;
  font-size: 17px;
}

.nav-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 10px;
}

.sidebar-bottom {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.profile-switcher {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 7px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: #b66b52;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.settings-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 10px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.settings-link:hover {
  color: white;
}

.main-area {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.topbar {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(28px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.92);
}

.topbar h1 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 500;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button {
  width: 40px;
}

.mobile-search {
  display: none;
}

.primary-button,
.secondary-button,
.text-button,
.filter-button,
.sort-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 11px;
  background: var(--terracotta);
  box-shadow: 0 8px 18px rgba(173, 82, 54, 0.18);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}

.primary-button:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

.primary-button.compact {
  min-height: 40px;
  padding: 0 15px;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.secondary-button:hover {
  border-color: #b8b2a7;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--terracotta-deep);
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  color: var(--ink);
}

.text-button.light {
  color: rgba(255, 255, 255, 0.8);
}

.full-width {
  width: 100%;
}

.page-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px clamp(28px, 4vw, 58px) 70px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: page-in .28s ease;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(255px, .85fr);
  gap: 18px;
}

.hero-card {
  position: relative;
  display: flex;
  min-height: 273px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(132deg, #1c4259 0%, #214b63 60%, #2d596d 100%);
  box-shadow: var(--shadow);
  color: white;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  padding: 38px 40px;
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-card h2 {
  max-width: 440px;
  margin: 17px 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 45px);
  font-weight: 500;
  line-height: 1.07;
}

.hero-card p {
  max-width: 470px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-celestial {
  position: absolute;
  inset: -90px -100px -90px auto;
  width: 440px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
}

.orbit-one {
  inset: 50px;
}

.orbit-two {
  inset: 120px;
}

.planet {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 236, 205, .85);
  font-family: var(--serif);
}

.planet-one {
  top: 144px;
  left: 118px;
  width: 105px;
  height: 105px;
  background: rgba(245, 222, 183, .10);
  font-size: 59px;
  transform: rotate(-20deg);
}

.planet-two {
  right: 68px;
  bottom: 72px;
  width: 47px;
  height: 47px;
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 23px;
}

.hero-star {
  position: absolute;
  color: rgba(255,255,255,.5);
}

.star-one { top: 110px; right: 96px; font-size: 15px; }
.star-two { bottom: 106px; left: 57px; font-size: 25px; }
.star-three { top: 202px; right: 33px; }

.moon-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.moon-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.moon-visual {
  display: grid;
  width: 59px;
  height: 59px;
  place-items: center;
  border-radius: 50%;
  background: #e7e3ec;
  box-shadow: inset 12px -4px 0 rgba(117, 101, 143, .12);
  color: var(--lavender);
  font-size: 35px;
  transform: rotate(-17deg);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.status-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5c9877;
  content: "";
}

.moon-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.moon-card p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.section-block {
  margin-top: 34px;
}

.section-block.no-margin {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h2,
.simple-page-head h2,
.catalog-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 500;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.intent-card {
  display: grid;
  min-width: 0;
  min-height: 95px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: .2s ease;
}

.intent-card:hover {
  border-color: rgba(202, 110, 73, .45);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.intent-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-family: var(--serif);
  font-size: 23px;
}

.intent-icon.terracotta { background: #c87a5a; }
.intent-icon.lavender { background: #8a82a2; }
.intent-icon.rose { background: #a9757c; }
.intent-icon.sage { background: #78917f; }

.intent-card strong,
.intent-card small {
  display: block;
}

.intent-card strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.intent-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.intent-card .arrow {
  color: #aeb5b9;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
  gap: 26px;
  margin-top: 38px;
}

.reading-symbol {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 12px;
  background: #e9e5dd;
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-size: 20px;
}

.chart-preview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.chart-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chart-preview-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.verified-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border-radius: 99px;
  background: #e5eee8;
  color: var(--success);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.chart-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 142px;
  overflow: hidden;
  margin: 14px 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #edf4f5;
  cursor: pointer;
}

.chart-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 73% 42%;
  filter: saturate(.8);
  transition: .3s ease;
}

.chart-image-button:hover img {
  transform: scale(1.03);
}

.chart-image-button span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(23, 48, 71, .83);
  color: white;
  font-size: 9px;
  font-weight: 700;
}

.birth-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 14px;
}

.birth-summary span {
  padding: 0 9px;
  border-right: 1px solid var(--line);
}

.birth-summary span:first-child {
  padding-left: 0;
}

.birth-summary span:last-child {
  padding-right: 0;
  border-right: 0;
}

.birth-summary small,
.birth-summary strong {
  display: block;
}

.birth-summary small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.birth-summary strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-intro,
.simple-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.catalog-intro p:not(.eyebrow),
.simple-page-head p:not(.eyebrow) {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-toolbar,
.saved-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  display: flex;
  min-height: 48px;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.search-field:focus-within {
  border-color: rgba(202, 110, 73, .6);
  box-shadow: 0 0 0 3px rgba(202, 110, 73, .08);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-field kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
}

.filter-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.filter-count {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  font-size: 9px;
}

.filter-panel {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.filter-panel[hidden] {
  display: none;
}

.filter-panel fieldset {
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-panel legend {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-panel label {
  color: var(--ink-2);
  font-size: 11px;
}

.filter-panel .text-button {
  margin-left: auto;
}

.category-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 23px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.category-tab:hover,
.category-tab.active {
  background: var(--navy);
  color: white;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
}

.catalog-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.sort-button {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.technique-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.technique-card {
  position: relative;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: .2s ease;
}

.technique-card:hover {
  border-color: rgba(202, 110, 73, .45);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.technique-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.technique-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #ece8df;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 22px;
}

.technique-vector-glyph {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  color: inherit;
  vertical-align: -.14em;
}

.technique-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.technique-status.disponible {
  background: #e4eee7;
  color: var(--success);
}

.technique-status.experimental {
  background: #f5ead9;
  color: var(--warning);
}

.technique-status.pendiente {
  background: #ececec;
  color: var(--pending);
}

.technique-card .category-label {
  margin: 15px 0 4px;
  color: var(--terracotta);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.technique-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.technique-card .description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-purpose {
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 2px solid #d7bc8e;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.45;
}

.technique-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.data-pills {
  display: flex;
  min-width: 0;
  gap: 5px;
}

.data-pill {
  max-width: 100px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technique-open {
  flex: 0 0 auto;
  padding: 5px 0 5px 8px;
  border: 0;
  background: transparent;
  color: var(--terracotta);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.empty-state {
  padding: 55px 20px;
  border: 1px dashed #c9c4ba;
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state > span {
  font-size: 35px;
}

.empty-state h3 {
  margin: 14px 0 5px;
  font-family: var(--serif);
  font-weight: 500;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.saved-toolbar {
  margin-bottom: 22px;
}

.view-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.view-toggle button {
  width: 41px;
  height: 41px;
  border: 0;
  background: var(--surface);
  cursor: pointer;
}

.view-toggle button.active {
  background: var(--navy);
  color: white;
}

.predictive-calendar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(42, 87, 118, .14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(202, 110, 73, .12), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(245, 249, 250, .82));
  box-shadow: 0 18px 40px rgba(22, 40, 54, .06);
}

.predictive-calendar-card h3 {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.predictive-calendar-card p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.predictive-calendar-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
}

.calendar-event-row {
  display: grid;
  grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(42, 87, 118, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.calendar-event-row:hover {
  border-color: rgba(202, 110, 73, .32);
  background: white;
}

.calendar-event-date {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.calendar-event-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.calendar-event-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-body small,
.calendar-event-empty small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.calendar-event-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px dashed rgba(42, 87, 118, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .6);
}

.calculation-placeholder h3 {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.calculation-placeholder p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.calculation-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 34px;
  border: 1px dashed rgba(42, 87, 118, .22);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.7);
  text-align: center;
}

.calculation-placeholder span {
  color: var(--terracotta);
  font-size: 42px;
}

.ephemeris-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ephemeris-current-card,
.current-sky-chart-card,
.ephemeris-board,
.ephemeris-result-head,
.nomenclature-theory-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.ephemeris-current-card {
  position: static;
  padding: 22px;
}

.ephemeris-current-card > div:first-child,
.ephemeris-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ephemeris-current-card small,
.ephemeris-result-head small,
.ephemeris-planet-position small {
  display: block;
  color: var(--muted);
}

.ephemeris-board {
  grid-column: 1 / -1;
  padding: 22px;
  overflow: hidden;
}

.current-sky-chart-card {
  min-width: 0;
  padding: 22px;
}

.current-sky-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.current-sky-chart-heading h3,
.current-sky-aspects h3 {
  margin: 4px 0 0;
}

.current-sky-chart-heading small {
  color: var(--muted);
  text-align: right;
}

.current-sky-chart { min-height: 360px; }
.current-sky-chart > p { padding: 36px; color: var(--muted); text-align: center; }
.current-sky-chart .generated-astro-wheel { display: block; width: 100%; min-width: 0; height: auto; max-height: 680px; }
.current-sky-aspects { margin-top: 18px; }
.current-sky-aspects .data-table-wrap { margin-top: 10px; }

.ephemeris-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, .55fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.ephemeris-form small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.55;
}

.ephemeris-output {
  min-height: 260px;
}

.ephemeris-result-head {
  padding: 20px;
  margin-bottom: 16px;
}

.ephemeris-result-head h3 {
  margin: 4px 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
}

.ephemeris-result-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ephemeris-result-head > span {
  min-width: 86px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.ephemeris-result-head > span strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.ephemeris-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.ephemeris-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.ephemeris-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f4eee5;
  color: var(--ink);
  text-align: left;
}

.ephemeris-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(39, 58, 76, .1);
  vertical-align: top;
}

.ephemeris-table tr:nth-child(even) td {
  background: rgba(248, 244, 238, .55);
}

.ephemeris-table td > small,
.ephemeris-planet-position small {
  margin-top: 4px;
}

.ephemeris-planet-position strong {
  color: var(--ink);
  white-space: nowrap;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.saved-grid.list-view {
  grid-template-columns: minmax(0, 1fr);
}

.saved-grid.list-view .saved-card {
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.8fr) minmax(240px, 1.4fr) minmax(220px, 0.9fr);
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
}

.saved-grid.list-view .saved-card-head {
  display: contents;
}

.saved-grid.list-view .saved-card-head .reading-symbol {
  grid-column: 1;
  grid-row: 1;
}

.saved-grid.list-view .saved-card-head .icon-button {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.saved-grid.list-view .saved-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.saved-grid.list-view .saved-card p {
  grid-column: 3;
  grid-row: 1;
  min-height: 0;
  margin: 0;
}

.saved-grid.list-view .saved-card-foot {
  grid-column: 4;
  grid-row: 1;
  align-self: stretch;
  padding: 0 38px 0 18px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.saved-grid > .empty-state {
  grid-column: 1 / -1;
}

.saved-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.saved-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saved-card h3 {
  margin: 17px 0 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.saved-card p {
  min-height: 42px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
}

.saved-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.saved-card-foot small {
  color: var(--muted);
  font-size: 9px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.person-card,
.add-person-card {
  min-height: 240px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.active-profile {
  border-top: 3px solid var(--terracotta);
}

.person-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.avatar.large {
  width: 54px;
  height: 54px;
  color: white;
  font-size: 14px;
}

.person-card h3 {
  margin: 17px 0 7px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.person-card p {
  color: var(--muted);
  font-size: 11px;
}

.person-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.person-actions .secondary-button {
  flex: 1;
}

.add-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  cursor: pointer;
}

.add-person-card > span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--terracotta);
  font-size: 25px;
}

.add-person-card strong {
  color: var(--ink);
  font-size: 12px;
}

.add-person-card small {
  margin-top: 6px;
  font-size: 9px;
}

.privacy-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding: 17px 20px;
  border-radius: 14px;
  background: #e9eeea;
}

.privacy-notice > span {
  font-size: 24px;
}

.privacy-notice div {
  flex: 1;
}

.privacy-notice strong {
  font-size: 11px;
}

.privacy-notice p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 25px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.settings-nav button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.settings-nav button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.settings-card {
  max-width: 800px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.settings-section {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}

.settings-section h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.settings-section p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.settings-account-section,
.settings-workspace-section,
.settings-commerce-account-section,
.settings-password-section {
  align-items: flex-start;
  padding: 24px 0;
}

.settings-account-section > div:first-child,
.settings-workspace-section > div:first-child,
.settings-commerce-account-section > div:first-child,
.settings-password-section > div:first-child {
  flex: 1 1 260px;
  max-width: 340px;
}

.settings-account-fields {
  display: grid;
  width: min(100%, 420px);
  flex: 1 1 420px;
  gap: 13px;
}

.settings-account-fields input[readonly] {
  background: var(--paper);
  color: var(--muted);
  cursor: default;
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 0;
}

.settings-destination-actions {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-destination-actions .secondary-button {
  justify-content: flex-start;
  gap: 8px;
}

.settings-commerce-summary {
  display: flex;
  width: min(100%, 360px);
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.settings-commerce-summary .current-plan-pill {
  flex: 1 1 auto;
}

.settings-static-value {
  display: grid;
  min-width: 180px;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.settings-static-value span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.settings-static-value strong {
  color: var(--ink);
  font-size: 11px;
}

.settings-password-section .secondary-button {
  flex: 0 0 auto;
}

.settings-password-method-note {
  margin-top: 10px !important;
  color: var(--ink-2) !important;
  font-weight: 700;
}

.settings-password-form {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.settings-password-status {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #b9d8c8;
  border-radius: 9px;
  background: #f0faf5;
  color: #27674a;
  font-size: 11px;
  font-weight: 700;
}

.settings-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.settings-password-grid .form-field:first-child {
  grid-column: 1 / -1;
  width: min(100%, 220px);
}

.settings-password-grid small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.select-label {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.select-label select {
  display: block;
  width: 180px;
  height: 40px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.settings-save {
  margin: 20px 0;
}

.context-help {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid #b7bfc4;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  vertical-align: middle;
}

.mobile-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 35, 49, .52);
  backdrop-filter: blur(3px);
}

body.auth-blocked .modal-backdrop {
  inset: 0 !important;
  z-index: 999;
}

.modal-backdrop[hidden],
.side-panel[hidden],
.guide-modal[hidden],
.calculation-modal[hidden],
.result-view[hidden],
.help-popover[hidden],
.toast[hidden] {
  display: none;
}

.side-panel {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  width: min(570px, 100%);
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -18px 0 50px rgba(22, 42, 56, .18);
  animation: panel-in .3s ease;
}

@keyframes panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 21px;
}

.technique-panel-hero {
  padding: 55px 40px 31px;
  background: #eae6dd;
}

.technique-panel-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--navy);
  color: #efc789;
  font-family: var(--serif);
  font-size: 28px;
}

.technique-panel-hero h2 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
}

.technique-panel-hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}

.technique-panel-body {
  padding: 28px 40px 100px;
}

.panel-section {
  margin-bottom: 27px;
}

.panel-section h3 {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.panel-section p,
.panel-section li {
  color: var(--ink-2);
  font-size: 11px;
}

.panel-section ul {
  padding-left: 18px;
  line-height: 1.65;
}

.question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.question-chip {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 9px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metadata-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.metadata-item small,
.metadata-item strong {
  display: block;
}

.metadata-item small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.metadata-item strong {
  font-size: 10px;
  line-height: 1.45;
}

.technical-details {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.technical-details summary {
  padding: 13px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.technical-details p {
  padding: 0 13px 13px;
  margin: 0;
}

.limitation-box {
  padding: 13px;
  border-radius: 10px;
  background: #f4eadf;
}

.limitation-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--warning);
  font-size: 10px;
}

.limitation-box p {
  margin: 0;
}

.panel-sticky-action {
  position: sticky;
  z-index: 1;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -40px -100px;
  padding: 17px 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, .95);
  backdrop-filter: blur(8px);
}

.panel-sticky-action .primary-button {
  flex: 1;
}

.guide-modal,
.calculation-modal {
  position: fixed;
  z-index: 110;
  top: 50%;
  left: 50%;
  width: min(690px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  padding: 34px 42px 40px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  animation: modal-in .24s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, -47%) scale(.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.guide-progress {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 30px;
  padding-right: 40px;
}

.guide-progress > span {
  width: 35px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
}

.guide-progress > span.active {
  background: var(--terracotta);
}

.guide-progress small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 9px;
}

.guide-step .eyebrow {
  margin-bottom: 7px;
}

.guide-step h2,
.calculation-modal h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.guide-step > p,
.calculation-modal > div > p {
  color: var(--muted);
  font-size: 12px;
}

.guide-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.guide-option {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.guide-option:hover,
.guide-option.selected {
  border-color: var(--terracotta);
  background: #fdf6f1;
}

.guide-option > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 18px;
}

.guide-option > span:last-child {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  flex: 1;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.guide-option strong,
.guide-option small {
  display: block;
}

.guide-option strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.guide-option small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.guide-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 23px;
}

.guide-recommendation {
  position: relative;
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.guide-recommendation.recommended {
  border-color: rgba(202, 110, 73, .65);
  box-shadow: inset 3px 0 var(--terracotta);
}

.recommend-label {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--terracotta);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-recommendation h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.guide-technique-symbol {
  display: inline-flex;
  align-items: center;
  color: var(--terracotta);
  font-size: 1.05em;
  vertical-align: middle;
}

.guide-recommendation p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.guide-recommendation label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
}

.difference-note {
  margin: 15px 0;
  padding: 13px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.55;
}

.calculation-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  padding: 15px;
  border-radius: 12px;
  background: var(--paper);
}

.calculation-summary .technique-symbol {
  background: var(--navy);
  color: #ecc48c;
}

.calculation-summary strong,
.calculation-summary small {
  display: block;
}

.calculation-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.calculation-advanced-options {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.calculation-advanced-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.calculation-advanced-options > summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.calculation-advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 0 14px 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field > span {
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.form-field textarea {
  min-height: 76px;
  padding-top: 10px;
  resize: vertical;
}

.place-search-field {
  position: relative;
}

.place-search-field > small {
  color: var(--muted);
  font-size: 8px;
}

.auto-place-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -6px;
  padding: 10px 12px;
  border: 1px solid rgba(194, 155, 91, .3);
  border-radius: 12px;
  background: rgba(194, 155, 91, .08);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.auto-place-note span {
  color: var(--gold);
  font-size: 15px;
}

.auto-place-note p {
  margin: 0;
}

.auto-place-inline {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.place-search-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 270px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(18, 50, 71, .18);
}

.place-search-results button {
  display: grid;
  width: 100%;
  min-height: 51px;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.place-search-results button:hover,
.place-search-results button:focus-visible {
  background: #eef4f6;
}

.place-search-results button span {
  color: var(--muted);
  font-size: .75rem;
}

.place-search-results button small {
  grid-column: 1 / -1;
  color: var(--portal-blue);
  font-size: .75rem;
}

.place-search-results p {
  margin: 0;
  padding: 13px;
  color: var(--muted);
  font-size: 9px;
}

.advanced-place-details {
  grid-column: 1 / -1;
  padding: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.advanced-place-details summary {
  padding: 12px 0;
  color: var(--portal-blue);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.advanced-place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 9px;
}

.advanced-place-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
}

.advanced-place-grid input {
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.preflight-box {
  margin-top: 17px;
  padding: 14px;
  border-radius: 10px;
  background: #e8eee9;
}

.preflight-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--success);
  font-size: 10px;
}

.preflight-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 9px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.asteroid-check-grid {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.asteroid-check-grid > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.asteroid-check-grid > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.asteroid-check-grid .consent-row {
  margin-top: 10px;
  color: var(--ink-2);
}

.calculation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 21px;
}

.result-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background: var(--paper);
}

.result-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 55px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, .93);
  backdrop-filter: blur(10px);
}

.result-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.result-header .soft-badge {
  background: #e3ded5;
  color: var(--muted);
}

.result-header .primary-button {
  justify-self: end;
}

#result-content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 43px 25px 80px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 18px;
}

.result-intro {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: white;
}

.result-intro h1 {
  margin: 12px 0 9px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
}

.result-intro p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

.result-basis {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.result-basis h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.basis-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.basis-item span {
  color: var(--muted);
}

.result-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 25px;
  margin-top: 27px;
}

.interpretation-card,
.result-side-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.interpretation-card h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.interpretation-card h3 {
  margin-top: 24px;
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.interpretation-card p,
.result-side-card p {
  color: var(--ink-2);
  font-size: 11px;
}

.confidence-meter {
  display: flex;
  gap: 4px;
  margin: 11px 0;
}

.confidence-meter span {
  width: 25px;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
}

.confidence-meter span.on {
  background: var(--success);
}

.result-side-card {
  margin-bottom: 13px;
  padding: 18px;
}

.result-side-card h3 {
  margin-bottom: 7px;
  font-size: 11px;
  text-transform: uppercase;
}

.help-popover {
  position: fixed;
  z-index: 300;
  width: min(310px, calc(100% - 24px));
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.help-popover > button:first-child {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.help-popover strong {
  display: block;
  padding-right: 20px;
  font-family: var(--serif);
  font-size: 17px;
}

.help-popover p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 400;
  right: 20px;
  bottom: 20px;
  display: flex;
  max-width: 330px;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 11px;
  background: var(--navy);
  box-shadow: var(--shadow);
  color: white;
}

.toast span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  font-size: 10px;
}

.toast p {
  margin: 0;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .intent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .technique-grid,
  .saved-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-celestial {
    opacity: .7;
    right: -165px;
  }
}

@media (max-width: 1100px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    display: none;
  }

  .main-area {
    margin-left: 0;
  }

  .topbar {
    min-height: 80px;
    padding: 14px 20px;
  }

  .topbar .eyebrow {
    display: none;
  }

  .page-container {
    padding: 22px 20px 95px;
  }

  .welcome-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .moon-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 17px;
  }

  .moon-card-top {
    grid-row: 1 / 5;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 70px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255,253,249,.96);
    backdrop-filter: blur(12px);
  }

  .mobile-nav > :nth-child(n + 6) {
    display: none;
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }

  .mobile-nav a.active,
  .mobile-nav button.active {
    color: var(--terracotta);
  }

  .mobile-nav span {
    font-size: 18px;
  }

  .mobile-nav small {
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-nav .mobile-new span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-top: -21px;
    border: 4px solid var(--paper);
    border-radius: 50%;
    background: var(--terracotta);
    color: white;
    font-size: 20px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    flex-flow: row;
    overflow-x: auto;
  }

  .settings-nav button {
    flex: 0 0 auto;
  }

  .saved-grid.list-view .saved-card {
    grid-template-columns: 46px minmax(0, 1fr) minmax(190px, .8fr);
    align-items: start;
  }

  .saved-grid.list-view .saved-card h3 {
    grid-column: 2;
    grid-row: 1;
  }

  .saved-grid.list-view .saved-card p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 5px;
  }

  .saved-grid.list-view .saved-card-foot {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .predictive-calendar-card {
    grid-template-columns: 1fr;
  }

  .predictive-calendar-card > .secondary-button {
    width: fit-content;
  }
}

@media (max-width: 650px) {
  .topbar h1 {
    font-size: 20px;
  }

  .top-actions .primary-button {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .top-actions .primary-button span {
    font-size: 16px;
  }

  .top-actions .primary-button span[data-i18n] {
    display: none;
  }

  .mobile-search {
    display: inline-flex;
  }

  .page-container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-card {
    min-height: 350px;
  }

  .hero-copy {
    padding: 29px 25px;
  }

  .hero-card h2 {
    max-width: 290px;
    font-size: 36px;
  }

  .hero-card p {
    max-width: 280px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-celestial {
    top: 90px;
    right: -190px;
    opacity: .52;
  }

  .moon-card {
    padding: 20px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading > .text-button {
    max-width: 85px;
    text-align: right;
  }

  .intent-grid,
  .technique-grid,
  .saved-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .saved-grid.list-view .saved-card {
    display: block;
    padding: 20px;
  }

  .saved-grid.list-view .saved-card-head {
    display: flex;
  }

  .saved-grid.list-view .saved-card h3 {
    margin: 17px 0 7px;
  }

  .saved-grid.list-view .saved-card p {
    min-height: 0;
    margin: 0 0 15px;
  }

  .saved-grid.list-view .saved-card-foot {
    padding: 13px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .predictive-calendar-card {
    padding: 17px;
  }

  .predictive-calendar-card > .secondary-button {
    width: 100%;
  }

  .calendar-event-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .calendar-event-body strong {
    white-space: normal;
  }

  .intent-card {
    min-height: 82px;
  }

  .catalog-intro,
  .simple-page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 21px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-button {
    justify-content: center;
  }

  .filter-panel {
    flex-direction: column;
    gap: 15px;
  }

  .filter-panel fieldset {
    flex-direction: column;
    gap: 8px;
  }

  .filter-panel .text-button {
    margin-left: 0;
  }

  .technique-card {
    min-height: 255px;
  }

  .privacy-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .settings-card {
    padding: 0 16px;
  }

  .settings-section {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .select-label,
  .select-label select {
    width: 100%;
  }

  .technique-panel-hero {
    padding: 62px 23px 27px;
  }

  .technique-panel-body {
    padding: 23px 23px 90px;
  }

  .panel-sticky-action {
    margin: 0 -23px -90px;
    padding: 13px 23px;
  }

  .panel-sticky-action > button {
    width: 100%;
    flex-basis: 100%;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .guide-modal,
  .calculation-modal {
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    padding: 30px 21px 95px;
    border-radius: 0;
    transform: none;
    animation: page-in .2s ease;
  }

  .guide-options,
  .form-grid,
  .calculation-advanced-grid {
    grid-template-columns: 1fr;
  }

  .guide-option {
    min-height: 76px;
  }

  .guide-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .guide-actions button {
    width: 100%;
  }

  .result-header {
    min-height: 69px;
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
  }

  .result-header > div {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .result-header .soft-badge {
    display: none;
  }

  .result-header strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .result-header .primary-button {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .result-header .primary-button::before {
    content: "⌑";
    font-size: 16px;
  }

  .result-hero,
  .result-body {
    grid-template-columns: 1fr;
  }

  .result-intro {
    padding: 26px;
  }

  .result-intro h1 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Professional astrology portal redesign */

:root {
  --portal-navy: #123247;
  --portal-blue: #1d506d;
  --portal-cyan: #287c9d;
  --portal-red: #b84f3b;
  --portal-gold: #b58a45;
  --portal-bg: #edf0f2;
  --portal-panel: #ffffff;
  --portal-line: #cfd7dc;
  --portal-muted: #657681;
}

body {
  background: var(--portal-bg);
  color: #183548;
}

.sidebar {
  inset: 0 0 auto;
  width: 100%;
  height: 72px;
  flex-direction: row;
  align-items: stretch;
  padding: 0 28px;
  border-bottom: 3px solid #d0a04e;
  background: var(--portal-navy);
}

.brand {
  min-width: 204px;
  gap: 10px;
  padding: 0 28px 0 0;
  border-right: 1px solid rgba(255,255,255,.12);
}

.brand-mark {
  width: 35px;
  height: 35px;
}

.brand strong {
  font-size: 21px;
}

.main-nav {
  display: flex;
  flex: 1;
  align-items: stretch;
  padding-left: 16px;
}

.main-nav .nav-label {
  display: none;
}

.nav-link {
  width: auto;
  min-height: 69px;
  gap: 8px;
  margin: 0;
  padding: 0 15px;
  border-radius: 0;
  font-size: 12px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.08);
}

.nav-link.active {
  box-shadow: inset 0 -3px #f3c26c;
}

.nav-icon {
  width: 17px;
  font-size: 15px;
}

.sidebar-bottom {
  display: flex;
  align-items: center;
  padding: 0 0 0 15px;
  border-top: 0;
  border-left: 1px solid rgba(255,255,255,.12);
}

.profile-switcher {
  width: 165px;
}

.settings-link {
  display: none;
}

.main-area {
  margin-left: 0;
  padding-top: 72px;
}

.topbar {
  min-height: 67px;
  padding: 10px clamp(22px, 3vw, 44px);
  border-color: var(--portal-line);
  background: #fff;
}

.topbar .eyebrow {
  margin-bottom: 2px;
  color: var(--portal-muted);
  font-size: 9px;
}

.topbar h1 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.top-actions .primary-button,
.primary-button {
  border-radius: 5px;
  background: var(--portal-blue);
  box-shadow: none;
}

.primary-button:hover {
  background: #153e57;
}

.secondary-button,
.icon-button {
  border-color: var(--portal-line);
  border-radius: 5px;
  box-shadow: none;
}

.page-container {
  max-width: 1480px;
  padding: 25px clamp(22px, 3vw, 44px) 65px;
}

.workspace-actions {
  display: flex;
  gap: 8px;
}

.quick-calculator {
  display: grid;
  grid-template-columns: 190px minmax(160px, .8fr) 130px 100px minmax(220px, 1.35fr) 140px minmax(160px, .8fr);
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #bfcbd2;
  border-top: 3px solid var(--portal-blue);
  background: white;
  box-shadow: 0 3px 10px rgba(30,54,69,.05);
}

.calculator-title {
  display: flex;
  align-self: center;
  align-items: center;
  gap: 10px;
}

.calculator-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #e9bd73;
  font-size: 20px;
}

.calculator-title strong,
.calculator-title small {
  display: block;
}

.calculator-title strong {
  font-size: 12px;
}

.calculator-title small {
  margin-top: 3px;
  color: var(--portal-muted);
  font-size: 8px;
}

.quick-calculator label {
  color: var(--portal-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.quick-calculator input,
.quick-calculator select {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 5px;
  padding: 0 9px;
  border: 1px solid var(--portal-line);
  border-radius: 3px;
  outline: 0;
  background: #fbfcfc;
  color: #1d394a;
  font-size: 10px;
}

.quick-calculator input:focus,
.quick-calculator select:focus {
  border-color: var(--portal-cyan);
  box-shadow: 0 0 0 2px rgba(40,124,157,.12);
}

.quick-calculator .primary-button {
  height: 38px;
  min-height: 38px;
}

.calculator-advanced {
  grid-column: 1 / -1;
  margin: 2px -15px -15px;
  padding: 8px 15px;
  border-top: 1px solid var(--portal-line);
  background: #f4f7f8;
}

.calculator-advanced summary {
  color: var(--portal-blue);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.calculator-advanced > div {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.portal-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.quick-calculator-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 9px;
}

.quick-calculator-account .text-button {
  padding: 0;
  font-size: inherit;
}

.natal-workspace,
.current-sky-panel,
.tool-category {
  border: 1px solid var(--portal-line);
  border-radius: 3px;
  background: var(--portal-panel);
  box-shadow: 0 3px 10px rgba(30,54,69,.04);
}

.workspace-header {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--portal-line);
}

.workspace-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--portal-red);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.workspace-header h3 {
  margin: 0 0 3px;
  font-family: var(--sans);
  font-size: 17px;
}

.workspace-header p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 9px;
}

.compact-action {
  min-height: 35px;
  padding: 0 12px;
  font-size: 10px;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(300px, .7fr);
  min-height: 440px;
}

.portal-chart {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--portal-line);
  background: #f7f9f9;
  cursor: pointer;
}

.portal-chart img {
  width: 100%;
  max-width: 690px;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
}

.chart-facts {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
}

.big-three {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--portal-line);
  border-bottom: 0;
}

.big-three > div {
  display: grid;
  min-height: 58px;
  grid-template-columns: 30px 58px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--portal-line);
}

.big-three > div > span {
  grid-row: 1 / 3;
  color: var(--portal-red);
  font-family: var(--serif);
  font-size: 20px;
}

.big-three small {
  color: var(--portal-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.big-three strong {
  font-size: 10px;
}

.big-three em {
  grid-column: 3;
  color: var(--portal-muted);
  font-size: 8px;
  font-style: normal;
}

.compact-position-table {
  margin-top: 12px;
  border: 1px solid var(--portal-line);
}

.compact-position-table > div {
  display: grid;
  min-height: 32px;
  grid-template-columns: 1fr 1.2fr 30px;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #e4e8ea;
  font-size: 8px;
}

.compact-position-table > div:last-child {
  border-bottom: 0;
}

.compact-position-table .compact-table-head {
  min-height: 26px;
  background: #eaf0f3;
  color: var(--portal-muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-position-table strong {
  font-size: 8px;
}

.table-link {
  margin-top: auto;
  padding: 13px 0 3px;
  border: 0;
  background: transparent;
  color: var(--portal-blue);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-align: left;
}

.workspace-footer {
  display: flex;
  min-height: 41px;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  border-top: 1px solid var(--portal-line);
  background: #f4f7f8;
  color: var(--portal-muted);
  font-size: 8px;
}

.workspace-footer button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--portal-blue);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.current-sky-panel {
  align-self: stretch;
  overflow: hidden;
}

.current-sky-strip {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(260px, 1.3fr);
}

.current-sky-strip .panel-heading-row {
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 0;
}

.current-sky-strip .sky-highlight {
  border-bottom: 0;
}

.catalog-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.panel-heading-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--portal-line);
  background: var(--portal-navy);
  color: white;
}

.panel-heading-row > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
}

.panel-heading-row small,
.panel-heading-row strong {
  display: block;
  grid-column: 2;
}

.panel-heading-row small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel-heading-row strong {
  margin-top: 3px;
  color: rgba(255,255,255,.65);
  font-size: 8px;
}

.live-dot {
  width: 6px;
  height: 6px;
  grid-row: 1;
  border-radius: 50%;
  background: #73c89b;
}

.panel-heading-row button {
  border: 0;
  background: transparent;
  color: #f0c679;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.sky-highlight {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--portal-line);
  background: #f3f6f7;
}

.sky-glyph {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border-radius: 50%;
  background: #dce6eb;
  color: var(--portal-blue);
  font-family: var(--serif);
  font-size: 30px;
}

.sky-highlight small,
.sky-highlight strong {
  display: block;
}

.sky-highlight small {
  color: var(--portal-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.sky-highlight strong {
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 20px;
}

.sky-highlight p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 8px;
}

.sky-table {
  width: calc(100% - 28px);
  margin: 12px 14px;
  border-collapse: collapse;
}

.sky-table td {
  padding: 8px 3px;
  border-bottom: 1px solid #e4e8ea;
  color: var(--portal-muted);
  font-size: 9px;
}

.sky-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.sky-table td:nth-child(2) {
  text-align: right;
}

.sky-table td:last-child {
  width: 20px;
  text-align: right;
}

.current-sky-panel > .secondary-button {
  width: calc(100% - 28px);
  margin: 4px 14px 14px;
}

.professional-tools {
  margin-top: 27px;
}

.professional-heading h2,
.compact-heading h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 750;
}

.tool-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-category {
  padding: 0 13px 9px;
}

.tool-category h3 {
  margin: 0 -13px 4px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--portal-line);
  background: #e9eff2;
  color: var(--portal-navy);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tool-category button {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 33px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 8px 3px;
  border: 0;
  border-bottom: 1px solid #e5e9eb;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tool-category button:last-child {
  border-bottom: 0;
}

.tool-category button > span {
  display: grid;
  width: 27px;
  height: 27px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid #d4dde1;
  border-radius: 50%;
  color: var(--portal-red);
  font-family: var(--serif);
}

.tool-category button strong {
  font-size: 9px;
}

.tool-category button small {
  color: var(--portal-muted);
  font-size: 8px;
}

.tool-category button:hover strong {
  color: var(--portal-blue);
}

.nomenclature-page {
  max-width: 1180px;
}

.nomenclature-head {
  align-items: flex-end;
}

.nomenclature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nomenclature-summary {
  display: grid;
  grid-template-columns: 140px 140px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 18px 0 20px;
}

.nomenclature-summary > div,
.nomenclature-summary > p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--portal-line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 50, 71, .06);
}

.nomenclature-summary strong {
  display: block;
  color: var(--portal-blue);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.nomenclature-summary span,
.nomenclature-summary p {
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.55;
}

.nomenclature-search {
  margin: 0 0 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 50, 71, .06);
}

.nomenclature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nomenclature-card {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 50, 71, .08);
}

.nomenclature-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border-bottom: 1px solid var(--portal-line);
  background: #f6f9fa;
}

.nomenclature-card-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.nomenclature-card-head small {
  color: var(--portal-red);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nomenclature-card-head h3 {
  margin: 3px 0 5px;
  color: var(--portal-blue);
  font-family: var(--serif);
  font-size: 22px;
}

.nomenclature-card-head p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.55;
}

.nomenclature-table-wrap {
  overflow-x: auto;
}

.nomenclature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.nomenclature-table th {
  padding: 9px 11px;
  border-bottom: 1px solid var(--portal-line);
  background: #fbfcfc;
  color: var(--portal-muted);
  font-size: 8px;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.nomenclature-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #edf1f2;
  color: var(--portal-ink);
  vertical-align: top;
}

.nomenclature-table tr:last-child td {
  border-bottom: 0;
}

.nomenclature-symbol {
  min-width: 64px;
  color: var(--portal-red) !important;
  font-family: Georgia, "Times New Roman", "DejaVu Sans", "Segoe UI Symbol", serif;
  font-size: 20px !important;
  font-variant-emoji: text;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nomenclature-vector-glyph {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--portal-red);
}

.nomenclature-text-glyph {
  display: inline-block;
  min-width: 40px;
}

.nomenclature-table strong {
  color: var(--portal-blue);
}

.nomenclature-table small {
  color: var(--portal-muted);
  font-size: 8px;
}

.nomenclature-encyclopedia {
  margin-top: 30px;
}

.nomenclature-encyclopedia-grid {
  display: grid;
  gap: 18px;
}

.nomenclature-theory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.nomenclature-theory-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--portal-blue);
  color: white;
  font-weight: 900;
}

.nomenclature-theory-card small {
  color: var(--portal-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nomenclature-theory-card h3 {
  margin: 6px 0 10px;
  color: var(--portal-blue);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 500;
}

.nomenclature-theory-card p,
.nomenclature-theory-card li {
  color: var(--portal-muted);
  line-height: 1.75;
}

.nomenclature-theory-card details {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: var(--portal-paper);
}

.nomenclature-theory-card summary {
  color: var(--portal-blue);
  cursor: pointer;
  font-weight: 900;
}

.owner-simulation-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px clamp(22px, 3vw, 44px) 0;
  padding: 13px 16px;
  border: 1px solid #d09a47;
  border-radius: 10px;
  background: #fff8e9;
  color: #4a3820;
}

.owner-simulation-banner[hidden] { display: none; }
.owner-simulation-banner > span { color: #a86620; font-size: 20px; }
.owner-simulation-banner p { flex: 1; margin: 0; font-size: 12px; line-height: 1.5; }
.owner-simulation-enter[hidden] { display: none; }

.compact-heading {
  margin-bottom: 10px;
}

/* Dense report */

.result-view {
  background: var(--portal-bg);
}

.result-header {
  min-height: 64px;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 clamp(16px, 3vw, 40px);
  border-color: var(--portal-line);
  background: rgba(255,255,255,.97);
}

.result-header > button:first-child {
  justify-self: start;
}

.result-header .primary-button {
  justify-self: end;
}

.result-header > div {
  justify-self: center;
}

#result-content {
  max-width: 1480px;
  padding: 24px clamp(18px, 3vw, 40px) 100px;
}

.result-toolkit {
  position: sticky;
  z-index: 30;
  top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--portal-line, var(--line));
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 10px 28px rgba(23, 48, 71, .08);
  backdrop-filter: blur(14px);
}

.result-toolkit strong,
.result-toolkit small {
  display: block;
}

.result-toolkit strong {
  color: var(--ink);
  font-size: 12px;
}

.result-toolkit small {
  color: var(--muted);
  font-size: 9px;
}

.result-toolkit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.result-toolkit-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.result-toolkit-actions button:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

#result-view [data-chart-explorer-ready] {
  cursor: pointer;
  outline: none;
}

#result-view [data-chart-explorer-ready]:focus-visible .chart-planet-symbol,
#result-view [data-chart-explorer-ready]:focus-visible .chart-aspect-line,
#result-view [data-chart-explorer-ready]:focus-visible line,
#result-view [data-chart-explorer-ready]:hover .chart-planet-symbol,
#result-view [data-chart-explorer-ready]:hover .chart-aspect-line {
  filter: drop-shadow(0 0 5px rgba(202, 110, 73, .55));
}

.chart-explorer-panel,
.result-audit-panel,
.report-builder-panel {
  position: fixed;
  z-index: 240;
  right: 22px;
  bottom: 22px;
  width: min(430px, calc(100vw - 34px));
  max-height: min(680px, calc(100vh - 44px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-explorer-panel[hidden],
.result-audit-panel[hidden],
.report-builder-panel[hidden] {
  display: none;
}

.chart-explorer-head,
.result-audit-head,
.report-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff7ef, #f3f7f3);
}

.chart-explorer-head small,
.result-audit-head small,
.report-builder-head small {
  color: var(--terracotta-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chart-explorer-head h3,
.result-audit-head h3,
.report-builder-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.result-audit-head p,
.report-builder-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.report-builder-body label select {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

@media (max-width: 820px) {
  .ephemeris-layout,
  .ephemeris-form,
  .nomenclature-theory-card {
    grid-template-columns: 1fr;
  }

  .ephemeris-current-card {
    position: static;
  }

  .current-sky-strip {
    grid-template-columns: 1fr;
  }

  .current-sky-strip .panel-heading-row {
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .current-sky-chart-heading {
    flex-direction: column;
  }

  .current-sky-chart-heading small {
    text-align: left;
  }

  .current-sky-chart { min-height: 260px; }

  .ephemeris-table {
    min-width: 860px;
  }

  .owner-simulation-banner {
    align-items: flex-start;
    flex-direction: column;
    margin: 12px 15px 0;
  }

  .owner-simulation-banner button { width: 100%; }
}

.chart-explorer-body {
  padding: 20px;
}

.chart-explorer-kind {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf4f6;
  color: var(--navy);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chart-explorer-body h4 {
  margin: 13px 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.chart-explorer-body p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.65;
}

.chart-explorer-context,
.course-note {
  margin: 15px 0;
  padding: 13px;
  border: 1px solid rgba(202, 110, 73, .22);
  border-radius: 14px;
  background: #fff8f0;
}

.chart-explorer-context strong {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta-deep);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.course-note summary {
  color: var(--terracotta-deep);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.course-note p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.65;
}

.chart-explorer-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}

.chart-explorer-body dl > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.chart-explorer-body dt {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.chart-explorer-body dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.chart-explorer-related {
  margin-top: 16px;
  padding: 13px;
  border-radius: 14px;
  background: var(--paper);
}

.chart-explorer-related strong {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
}

.chart-explorer-related button {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}

.chart-explorer-related.muted p {
  margin-bottom: 0;
}

.report-builder-body {
  display: grid;
  gap: 13px;
  padding: 18px 20px 20px;
}

.report-builder-body label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 11px;
}

.report-content-assurance {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 8%, #fff);
}

.report-content-assurance strong,
.report-content-assurance p {
  display: block;
}

.report-content-assurance strong {
  color: var(--ink);
  font-size: 12px;
}

.report-content-assurance p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}

.report-builder-body details {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.report-builder-body summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.report-section-choices {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.report-section-choices label {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
}

.report-section-choices strong,
.report-section-choices small {
  display: block;
}

.report-section-choices small {
  color: var(--muted);
  font-size: 9px;
}

.report-notes-field {
  display: grid !important;
}

.report-notes-field textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  font-size: 11px;
}

.report-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.managed-report-list {
  display: grid;
  gap: 9px;
}

.managed-report-list > p {
  margin: 0;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.managed-report-artifact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.managed-report-artifact small,
.managed-report-artifact strong,
.managed-report-artifact span {
  display: block;
}

.managed-report-artifact small {
  color: var(--terracotta-deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.managed-report-artifact strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.managed-report-artifact span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.managed-report-artifact-actions {
  display: grid;
  gap: 5px;
  justify-items: stretch;
}

@media (max-width: 520px) {
  .managed-report-artifact {
    grid-template-columns: 1fr;
  }

  .managed-report-artifact-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.result-audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 18px 20px 6px;
}

.result-audit-grid article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.result-audit-grid article > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.result-audit-grid article.ok > span {
  background: var(--success);
}

.result-audit-grid article.warn > span {
  background: var(--warning);
}

.result-audit-grid strong,
.result-audit-grid small {
  display: block;
}

.result-audit-grid strong {
  color: var(--ink);
  font-size: 11px;
}

.result-audit-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.result-audit-details {
  margin: 10px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.result-audit-details summary {
  padding: 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.result-audit-details p,
.result-audit-details ul {
  margin: 0;
  padding: 0 12px 12px 26px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .result-toolkit {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .result-toolkit-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .chart-explorer-panel,
  .result-audit-panel,
  .report-builder-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: 72vh;
    border-radius: 18px;
  }

  .chart-explorer-body dl {
    grid-template-columns: 1fr;
  }
}

.professional-report {
  color: #1b3748;
}

.report-title-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 17px;
}

.report-breadcrumb {
  margin-bottom: 6px;
  color: var(--portal-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.report-title-block h1 {
  margin: 0 0 5px;
  color: var(--portal-navy);
  font-family: var(--sans);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 760;
}

.report-title-block > div > p:last-child {
  margin: 0;
  color: var(--portal-muted);
  font-size: 11px;
}

.report-title-actions {
  display: flex;
  gap: 7px;
}

.report-tabbar {
  position: sticky;
  z-index: 4;
  top: 64px;
  display: flex;
  overflow-x: auto;
  border: 1px solid var(--portal-line);
  border-bottom: 3px solid var(--portal-blue);
  background: white;
  scrollbar-width: none;
}

.report-tabbar::-webkit-scrollbar {
  display: none;
}

.report-tabbar button {
  min-height: 43px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #e0e6e9;
  background: white;
  color: var(--portal-muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.report-tabbar button:hover,
.report-tabbar button.active {
  background: var(--portal-blue);
  color: white;
}

.report-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.report-toc {
  position: sticky;
  top: 125px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--portal-line);
  background: white;
}

.report-toc > strong {
  padding: 13px;
  border-bottom: 1px solid var(--portal-line);
  background: var(--portal-navy);
  color: white;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.report-toc > button {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-bottom: 1px solid #e4e8ea;
  background: white;
  color: var(--portal-muted);
  cursor: pointer;
  font-size: 8px;
  text-align: left;
}

.report-toc > button span {
  color: #9ca8ae;
  font-size: 7px;
}

.report-toc > button:hover,
.report-toc > button.active {
  box-shadow: inset 3px 0 var(--portal-red);
  color: var(--portal-navy);
  font-weight: 800;
}

.report-reading-progress {
  padding: 13px;
  background: #f0f4f5;
}

.report-reading-progress small,
.report-reading-progress strong {
  display: block;
}

.report-reading-progress small {
  color: var(--portal-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.report-reading-progress strong {
  margin: 3px 0 8px;
  font-size: 9px;
}

.report-reading-progress > span {
  display: block;
  height: 4px;
  overflow: hidden;
  background: #d6dfe3;
}

.report-reading-progress i {
  display: block;
  height: 100%;
  background: var(--portal-red);
}

.report-main {
  min-width: 0;
}

.report-section {
  scroll-margin-top: 125px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--portal-line);
  background: white;
}

.report-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--portal-line);
}

.report-section-title > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #efc377;
  font-family: var(--serif);
  font-size: 12px;
}

.report-section-title small {
  display: block;
  margin-bottom: 2px;
  color: var(--portal-red);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.report-section-title h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 750;
}

.report-summary-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 15px;
  padding: 18px;
  border-left: 4px solid var(--portal-gold);
  background: #f2f5f6;
}

.summary-mark {
  color: var(--portal-gold);
  font-size: 25px;
}

.report-summary-card h3 {
  margin-bottom: 5px;
  font-family: var(--sans);
  font-size: 17px;
}

.report-summary-card p {
  margin: 0;
  color: #49606e;
  font-size: 12px;
  line-height: 1.7;
}

.report-summary-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--portal-red);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.overview-reading {
  margin: 0 0 16px;
  padding: 19px 22px 8px;
  border: 1px solid var(--portal-line);
  border-top: 0;
  background: #fbfcfc;
}

.overview-reading p {
  max-width: 920px;
  margin: 0 auto 14px;
  color: #354f5e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.8;
}

.big-three-report {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.big-three-report article {
  position: relative;
  min-height: 153px;
  padding: 15px 15px 15px 54px;
  border: 1px solid var(--portal-line);
}

.big-three-report article > span {
  position: absolute;
  top: 15px;
  left: 14px;
  color: var(--portal-red);
  font-family: var(--serif);
  font-size: 27px;
}

.big-three-report small {
  color: var(--portal-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.big-three-report h3 {
  margin: 5px 0 3px;
  font-family: var(--sans);
  font-size: 15px;
}

.big-three-report p {
  margin: 0 0 10px;
  color: var(--portal-muted);
  font-size: 8px;
}

.big-three-report strong {
  font-size: 9px;
  line-height: 1.5;
}

.key-findings {
  margin-top: 15px;
  padding: 15px 18px;
  border: 1px solid var(--portal-line);
}

.key-findings h3 {
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
}

.key-findings ol {
  margin: 0;
  padding-left: 19px;
  columns: 2;
  column-gap: 30px;
}

.key-findings li {
  margin-bottom: 7px;
  break-inside: avoid;
  color: #49606e;
  font-size: 9px;
  line-height: 1.5;
}

.report-chart-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  border: 1px solid var(--portal-line);
}

.report-chart-image {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 15px;
  border-right: 1px solid var(--portal-line);
  background: #f5f7f8;
}

.report-chart-image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.chart-view-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
}

.chart-view-toolbar button {
  min-width: 0;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.chart-view-toolbar button.active {
  background: var(--portal-navy);
  color: #fff;
}

.chart-view-pane {
  display: grid;
  min-height: 500px;
  flex: 1;
  place-items: center;
}

.chart-view-pane[hidden] {
  display: none;
}

.generated-chart-pane,
.standalone-generated-chart {
  width: 100%;
}

.generated-chart-pane,
.standalone-generated-chart,
.report-chart-image {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.generated-astro-wheel {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
}

@media (max-width: 720px) {
  .chart-scroll-hint {
    display: block;
    margin: 10px 0 6px;
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.45;
  }

  .generated-astro-wheel {
    width: 680px;
    min-width: 680px;
    max-width: none;
  }
}

.standalone-generated-chart {
  max-width: 780px;
  margin: 0 auto 22px;
  padding: 14px;
  border: 1px solid var(--portal-line);
  background: #f5f7f8;
}

.solar-chart-comparison {
  margin-bottom: 22px;
}

.technique-chart-comparison > .chart-view-toolbar {
  width: 100%;
}

.technique-chart-comparison > .chart-view-toolbar button {
  flex: 1 1 160px;
}

.solar-chart-comparison > .chart-view-toolbar {
  width: min(100%, 520px);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.solar-chart-comparison > .chart-view-toolbar button {
  flex: 1 1 180px;
}

.solar-chart-comparison .standalone-generated-chart {
  margin-bottom: 0;
}

.report-birth-data {
  padding: 17px;
}

.report-birth-data h3 {
  margin: 0 0 8px;
  color: var(--portal-navy);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.report-birth-data h3:not(:first-child) {
  margin-top: 20px;
}

.report-birth-data dl {
  margin: 0;
}

.report-birth-data dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e3e8ea;
  font-size: 8px;
}

.report-birth-data dt {
  color: var(--portal-muted);
}

.report-birth-data dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.report-birth-data .secondary-button {
  margin-top: 15px;
}

.section-explainer {
  max-width: 850px;
  margin: -4px 0 15px;
  color: var(--portal-muted);
  font-size: 10px;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--portal-line);
}

.professional-data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.professional-data-table th {
  height: 36px;
  padding: 0 10px;
  border-right: 1px solid #d6dfe3;
  border-bottom: 2px solid var(--portal-blue);
  background: #e8eef1;
  color: #526975;
  font-size: 7px;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.professional-data-table td {
  height: 37px;
  padding: 0 10px;
  border-right: 1px solid #e1e7e9;
  border-bottom: 1px solid #e1e7e9;
  color: #445c69;
  font-size: 9px;
}

.professional-data-table tbody tr:nth-child(even) {
  background: #f7f9fa;
}

.professional-data-table tbody tr:hover {
  background: #edf4f6;
}

.professional-data-table tbody tr.active-period-row {
  background: #fff3cf;
  box-shadow: inset 4px 0 0 var(--gold);
}

.professional-data-table th:last-child,
.professional-data-table td:last-child {
  border-right: 0;
}

.professional-data-table tr:last-child td {
  border-bottom: 0;
}

.professional-data-table td strong {
  color: #1d394a;
}

.professional-data-table .status-danger {
  color: var(--terracotta-deep);
}

.planet-glyph,
.inline-glyph {
  color: var(--portal-red) !important;
  font-family: var(--serif);
  font-size: 15px !important;
}

.inline-glyph {
  display: inline-block;
  width: 22px;
}

.degree-cell {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.house-chip,
.house-number {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #dce8ed;
  color: var(--portal-blue);
  font-size: 8px;
  font-weight: 800;
}

.table-footnote {
  padding: 9px 11px;
  border: 1px solid var(--portal-line);
  border-top: 0;
  background: #f2f5f6;
  color: var(--portal-muted);
  font-size: 8px;
}

.aspect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 0 0 13px;
  padding: 10px 13px;
  background: #f1f5f6;
  color: var(--portal-muted);
  font-size: 8px;
}

.aspect-legend i {
  margin-right: 4px;
  font-size: 13px;
  font-style: normal;
}

.aspect-harmonious {
  color: #387a9a;
}

.aspect-tense {
  color: #b84f3b;
}

[data-owner-admin-link][hidden] {
  display: none !important;
}

.aspect-creative {
  color: #a36d16;
}

.aspect-symbol {
  display: inline-grid;
  width: 24px;
  margin-right: 7px;
  place-items: center;
  color: var(--portal-blue);
  font-size: 15px;
}

.aspect-symbol.tense {
  color: var(--portal-red);
}

.strength-label {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 10px;
  background: #e5edef;
  font-size: 7px;
  font-weight: 800;
}

.distribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 12px;
}

.distribution-grid > article {
  padding: 15px;
  border: 1px solid var(--portal-line);
}

.distribution-grid h3 {
  margin-bottom: 13px;
  font-size: 10px;
  text-transform: uppercase;
}

.distribution-row {
  display: grid;
  min-height: 29px;
  grid-template-columns: 55px 1fr 20px;
  align-items: center;
  gap: 8px;
  color: var(--portal-muted);
  font-size: 8px;
}

.distribution-row i {
  display: block;
  height: 6px;
  background: #e0e6e9;
}

.distribution-row b {
  display: block;
  height: 100%;
  background: var(--portal-blue);
}

.distribution-row strong {
  font-size: 8px;
  text-align: right;
}

.dominants-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dominants-card li {
  display: grid;
  min-height: 48px;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e3e8ea;
}

.dominants-card li:last-child {
  border-bottom: 0;
}

.dominants-card li > span {
  color: var(--portal-gold);
  font-family: var(--serif);
  font-size: 17px;
}

.dominants-card strong,
.dominants-card small {
  display: block;
}

.dominants-card strong {
  font-size: 9px;
}

.dominants-card small {
  margin-top: 2px;
  color: var(--portal-muted);
  font-size: 7px;
}

.dominants-card li > b {
  font-size: 8px;
}

.method-note {
  margin-top: 13px;
  padding: 13px 15px;
  border-left: 3px solid var(--portal-gold);
  background: #f3f1eb;
}

.method-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
}

.method-note p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 9px;
}

.interpretation-intro {
  padding: 15px 17px;
  border: 1px solid var(--portal-line);
  background: #f2f5f6;
}

.interpretation-intro p {
  margin: 0;
  color: #49606e;
  font-size: 10px;
}

.life-reading-section {
  background: linear-gradient(180deg, #fffdf8 0, #fff 260px);
}

.life-reading-intro {
  margin-bottom: 12px;
  padding: 24px 26px;
  border-left: 5px solid var(--portal-gold);
  background: #f7f1e6;
}

.life-reading-intro small {
  color: var(--portal-red);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.life-reading-intro h3 {
  margin: 5px 0 8px;
  color: var(--portal-navy);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
}

.life-reading-intro p {
  max-width: 820px;
  margin: 0;
  color: #405966;
  font-size: 12px;
  line-height: 1.75;
}

.life-reading-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  margin: 14px 0;
  padding: 28px 26px;
  border: 1px solid #ddd7ca;
  background: #fff;
  box-shadow: 0 8px 24px rgb(28 53 67 / 5%);
}

.life-reading-block > span {
  color: var(--portal-gold);
  font-family: var(--serif);
  font-size: 27px;
}

.life-reading-block small {
  display: block;
  margin-bottom: 5px;
  color: var(--portal-red);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.life-reading-block h3 {
  margin: 0 0 16px;
  color: var(--portal-navy);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.life-reading-block p {
  margin: 0 0 15px;
  color: #263f4d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.82;
}

.result-date {
  display: inline-flex;
  align-items: baseline;
  gap: .38em;
  max-width: 100%;
  margin: .08em .06em;
  padding: .28em .58em;
  border: 1px solid #c9d8de;
  border-radius: 999px;
  background: #f2f7f8;
  color: var(--portal-navy);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: max(.96em, .82rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  vertical-align: .08em;
  white-space: nowrap;
}

.result-date-calendar {
  color: var(--portal-navy);
}

.result-date-separator {
  color: #91a2aa;
  font-weight: 500;
}

.result-date-clock {
  color: var(--portal-red);
  font-weight: 850;
}

.life-reading-block > div > small .result-date,
.technical-fact strong .result-date,
.report-summary-card small .result-date {
  font-size: 1em;
}

.result-date-range {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 5px 7px;
  min-width: 190px;
}

.result-date-range > span:not(.result-date) {
  color: var(--portal-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-date-range .result-date {
  justify-self: start;
  margin: 0;
}

.life-action-box {
  margin-top: 20px;
  padding: 17px 20px;
  border-left: 4px solid var(--portal-blue);
  background: #edf4f6;
}

.life-action-box strong {
  color: var(--portal-navy);
  font-size: 10px;
  text-transform: uppercase;
}

.life-action-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.life-action-box li {
  margin: 7px 0;
  color: #354f5e;
  font-size: 11px;
  line-height: 1.55;
}

.technical-interpretation-section {
  border-top: 5px solid #dbe3e7;
}

.interpretation-chapter-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  margin: 42px 0 4px;
  padding: 24px;
  border-top: 3px solid var(--portal-blue);
  border-bottom: 1px solid var(--portal-line);
  background: linear-gradient(100deg, #edf3f5, #fafbfb);
}

.interpretation-chapter-heading > span {
  color: var(--portal-red);
  font-family: var(--serif);
  font-size: 37px;
  line-height: 1;
}

.interpretation-chapter-heading small {
  display: block;
  margin-bottom: 4px;
  color: var(--portal-red);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.interpretation-chapter-heading h3 {
  margin: 0 0 7px;
  color: var(--portal-navy);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.interpretation-chapter-heading p {
  max-width: 820px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.65;
}

.long-reading-block {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 27px 0;
  border-bottom: 1px solid var(--portal-line);
}

.long-reading-block > span {
  color: #a5b0b6;
  font-family: var(--serif);
  font-size: 23px;
}

.long-reading-block small {
  display: block;
  margin-bottom: 4px;
  color: var(--portal-red);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.long-reading-block h3 {
  margin-bottom: 12px;
  color: var(--portal-navy);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.long-reading-block p {
  margin-bottom: 12px;
  color: #354f5e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.75;
}

.reading-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.reading-keywords b {
  padding: 6px 8px;
  border: 1px solid #d5dde1;
  background: #f5f7f8;
  color: #546b78;
  font-family: var(--sans);
  font-size: 7px;
}

.aspect-reading > span {
  color: var(--portal-blue);
}

.house-reading > span {
  color: var(--portal-gold);
}

.theme-reading {
  margin: 10px 0;
  padding: 28px 20px;
  border: 1px solid var(--portal-line);
  background: #fbfcfc;
}

.theme-reading > span {
  color: var(--portal-red);
}

.reading-evidence {
  margin-top: 17px;
  border: 1px solid #d5dde1;
  background: #f4f7f8;
}

.reading-evidence summary {
  padding: 10px 12px;
  color: var(--portal-blue);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.reading-evidence ul {
  margin: 0;
  padding: 0 30px 13px;
}

.reading-evidence li {
  margin: 4px 0;
  color: var(--portal-muted);
  font-size: 9px;
}

.report-continuation {
  padding: 25px;
  background: var(--portal-navy);
  color: white;
  text-align: center;
}

.report-continuation > span {
  color: #e8bf78;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-continuation h3 {
  margin: 5px 0 15px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.report-continuation > div {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.report-continuation button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 8px;
}

.technical-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.technical-facts-grid > div {
  padding: 13px;
  border: 1px solid var(--portal-line);
}

.technical-facts-grid small,
.technical-facts-grid strong {
  display: block;
}

.technical-facts-grid small {
  color: var(--portal-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.technical-facts-grid strong {
  margin: 4px 0 8px;
  font-size: 9px;
}

.technical-facts-grid p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 8px;
}

.limitations-panel {
  margin: 14px 0;
  padding: 15px 18px;
  border: 1px solid #e2cec9;
  background: #faf3f1;
}

.limitations-panel h3 {
  margin-bottom: 7px;
  color: var(--portal-red);
  font-size: 10px;
  text-transform: uppercase;
}

.limitations-panel ul {
  margin: 0;
  padding-left: 17px;
  color: #5f5552;
  font-size: 9px;
  line-height: 1.7;
}

.source-register {
  margin: 14px 0;
  padding: 15px;
  border: 1px solid var(--portal-line);
  background: #f5f7f8;
}

.source-register h3 {
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
}

.source-register > p {
  margin-bottom: 10px;
  color: var(--portal-muted);
  font-size: 8px;
}

.source-register a {
  display: grid;
  min-height: 38px;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #dce3e6;
  color: var(--portal-blue);
  font-size: 8px;
}

.source-register a strong {
  color: var(--portal-navy);
}

.subtable-title {
  margin: 22px 0 9px;
  font-size: 11px;
  text-transform: uppercase;
}

.report-meta-box {
  display: flex;
  gap: 18px;
  padding: 12px 15px;
  border: 1px solid var(--portal-line);
  background: white;
}

.report-meta-box small,
.report-meta-box strong {
  display: block;
}

.report-meta-box small {
  color: var(--portal-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.report-meta-box strong {
  margin-top: 3px;
  font-size: 8px;
}

.general-technique-report .report-layout {
  margin-top: 0;
}

/* La cabecera de escritorio contiene diez destinos más el selector de perfil.
   Se compacta antes de que el ancho disponible pueda expulsar controles fuera
   del viewport; el breakpoint de contenido más estrecho se mantiene debajo. */
@media (max-width: 1700px) {
  .sidebar {
    padding: 0 16px;
  }

  .brand {
    min-width: 175px;
  }

  .main-nav {
    padding-left: 8px;
  }

  .nav-link {
    padding: 0 9px;
  }

  .nav-icon {
    display: none;
  }

  .profile-switcher {
    width: 130px;
  }

  .sidebar-bottom {
    padding-left: 8px;
  }
}

@media (max-width: 1150px) {

  .quick-calculator {
    grid-template-columns: 170px 110px 120px 90px minmax(190px, 1fr) 115px 95px;
    gap: 7px;
  }

  .workspace-body {
    grid-template-columns: minmax(380px, 1.15fr) minmax(275px, .85fr);
  }

  .tool-category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    display: none;
  }

  .main-area {
    padding-top: 0;
  }

  .topbar {
    min-height: 66px;
  }

  .page-container {
    padding: 18px 15px 95px;
  }

  .quick-calculator {
    grid-template-columns: 1fr 1fr;
  }

  .calculator-title,
  .place-field {
    grid-column: 1 / -1;
  }

  .calculator-advanced {
    margin: 2px -12px -12px;
  }

  .calculator-advanced > div {
    grid-template-columns: 1fr 1fr;
  }

  .quick-calculator .primary-button {
    align-self: end;
  }

  .portal-main-grid {
    grid-template-columns: 1fr;
  }

  .nomenclature-head {
    align-items: stretch;
  }

  .nomenclature-actions {
    justify-content: flex-start;
  }

  .nomenclature-summary,
  .nomenclature-grid {
    grid-template-columns: 1fr;
  }

  .workspace-body {
    grid-template-columns: 1fr;
  }

  .portal-chart {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .chart-facts {
    min-height: 380px;
  }

  .report-title-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-tabbar {
    top: 64px;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-toc {
    display: none;
  }

  .report-chart-panel {
    grid-template-columns: 1fr;
  }

  .report-chart-image {
    min-height: 480px;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .distribution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dominants-card {
    grid-column: 1 / -1;
  }

  .technical-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .quick-calculator {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .calculator-title,
  .place-field {
    grid-column: 1 / -1;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-actions,
  .workspace-actions button {
    width: 100%;
  }

  .portal-chart {
    min-height: 300px;
    padding: 5px;
  }

  .chart-facts {
    min-height: 360px;
  }

  .workspace-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 11px 14px;
  }

  .workspace-footer button {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .tool-category-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    grid-template-columns: auto 1fr auto;
  }

  #result-content {
    padding: 16px 10px 90px;
  }

  .report-title-block h1 {
    font-size: 27px;
  }

  .report-title-actions {
    display: none;
  }

  .report-tabbar {
    margin: 0 -10px;
  }

  .report-section {
    padding: 15px 12px;
  }

  .report-section-title h2 {
    font-size: 18px;
  }

  .big-three-report {
    grid-template-columns: 1fr;
  }

  .big-three-report article {
    min-height: 115px;
  }

  .key-findings ol {
    columns: 1;
  }

  .report-chart-image {
    min-height: 310px;
    padding: 4px;
  }

  .distribution-grid,
  .technical-facts-grid {
    grid-template-columns: 1fr;
  }

  .dominants-card {
    grid-column: auto;
  }

  .long-reading-block {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }

  .long-reading-block > span {
    font-size: 17px;
  }

  .long-reading-block h3 {
    font-size: 21px;
  }

  .long-reading-block p {
    font-size: 12px;
  }

  .life-reading-intro {
    padding: 19px 17px;
  }

  .life-reading-intro h3 {
    font-size: 24px;
  }

  .life-reading-block {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 22px 15px;
  }

  .life-reading-block > span {
    font-size: 19px;
  }

  .life-reading-block h3 {
    font-size: 22px;
  }

  .life-reading-block p {
    font-size: 13px;
    line-height: 1.72;
  }

  .report-continuation > div {
    align-items: stretch;
    flex-direction: column;
  }

  .report-meta-box {
    flex-wrap: wrap;
  }
}
/* Accounts and localisation */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-picker-toggle {
  display: inline-flex;
  width: 86px;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: 600 10px/1 var(--sans);
  cursor: pointer;
}

.language-picker-toggle:hover,
.language-picker-toggle:focus-visible,
.language-picker-toggle[aria-expanded="true"] {
  border-color: #f3c26c;
  background: rgba(255, 255, 255, .14);
}

.language-picker-chevron {
  margin-left: auto;
  transition: transform .18s ease;
}

.language-picker-toggle[aria-expanded="true"] .language-picker-chevron {
  transform: rotate(180deg);
}

.language-picker-menu {
  position: absolute;
  z-index: 360;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 188px;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 30, 44, .24);
}

.language-picker-menu[hidden] {
  display: none;
}

.language-option {
  display: grid;
  min-height: 42px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 600 12px/1.2 var(--sans);
  text-align: left;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-selected="true"] {
  background: #edf4f6;
}

.language-option small {
  color: var(--portal-muted);
  font-size: 10px !important;
}

.language-flag {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(13, 38, 54, .22);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.flag-es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-en {
  background:
    linear-gradient(33deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(-33deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(to right, transparent 41%, #c8102e 41% 59%, transparent 59%),
    linear-gradient(to bottom, transparent 38%, #c8102e 38% 62%, transparent 62%),
    #012169;
}

.flag-fr {
  background: linear-gradient(to right, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666% 100%);
}

.flag-pt {
  background: linear-gradient(to right, #046a38 0 40%, #da291c 40% 100%);
}

.sidebar-bottom .language-picker {
  flex: 0 0 auto;
}

.profile-empty-state {
  display: grid;
  min-height: 310px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 34px;
  border: 1px dashed color-mix(in srgb, var(--terracotta) 45%, var(--line));
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), #fff8f3);
}

.profile-empty-state[hidden],
.natal-workspace[hidden] {
  display: none !important;
}

.profile-empty-state > span,
.profile-list-empty > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--terracotta);
  font-size: 28px;
}

.profile-empty-state small {
  color: var(--terracotta-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-empty-state h3,
.profile-list-empty h3 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 500;
}

.profile-empty-state p,
.profile-list-empty p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-list-empty {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-list-empty > span {
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.profile-list-empty .primary-button {
  margin-top: 16px;
}

.account-modal {
  width: min(840px, calc(100% - 30px));
}

.welcome-modal {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  width: min(820px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 22px;
  background: var(--paper, #fff);
  box-shadow: 0 30px 90px rgba(9, 35, 50, .3);
}

.welcome-modal[hidden] {
  display: none;
}

.welcome-modal .auth-modal-close {
  z-index: 3;
  top: 14px;
  right: 14px;
  border-color: rgba(18, 50, 71, .18);
  background: rgba(255, 255, 255, .94);
}

.welcome-modal[data-blocking="true"] .auth-modal-close {
  display: none;
}

.welcome-shell {
  display: grid;
  grid-template-columns: minmax(245px, .82fr) minmax(0, 1.18fr);
  min-height: 570px;
}

.welcome-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 14%, rgba(235, 188, 102, .22), transparent 28%),
    linear-gradient(155deg, #0c3449, #174f67);
}

.welcome-brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.welcome-brand-lockup img {
  width: 48px;
  height: 48px;
}

.welcome-brand-lockup strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.welcome-brand-lockup small,
.welcome-brand-panel p {
  color: rgba(255, 255, 255, .76);
}

.welcome-trust-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

.welcome-trust-list li::before {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: #f3c873;
}

.welcome-content-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 38px;
}

.welcome-slide {
  display: flex;
  min-height: 360px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.welcome-slide-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 22px;
  background: #e8f1f4;
  color: var(--navy, #15384a);
  font-size: 32px;
}

.welcome-slide h2,
.auth-panel h2 {
  margin: 5px 0 12px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.08;
}

.welcome-slide p,
.auth-panel > p {
  color: var(--muted);
  line-height: 1.7;
}

.welcome-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 22px;
}

.welcome-progress button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7d2d8;
  cursor: pointer;
}

.welcome-progress button.active {
  width: 28px;
  border-radius: 999px;
  background: var(--terracotta);
}

.welcome-actions,
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-actions > button,
.auth-actions > button {
  flex: 1 1 150px;
}

.auth-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form .form-field input {
  width: 100%;
}

.managed-captcha {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.managed-captcha-widget {
  min-height: 65px;
  overflow: hidden;
  border-radius: 8px;
}

.managed-captcha-status {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.auth-form button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .64;
}

.auth-password-hint,
.auth-error,
.recovery-warning {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid #d9a29b;
  border-radius: 9px;
  background: #fff2ef;
  color: #8c3328;
}

.auth-choice-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 18px;
  margin-top: 18px;
}

.privacy-check,
.recovery-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.privacy-check input,
.recovery-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.recovery-code-box {
  margin: 22px 0;
  padding: 18px;
  overflow-wrap: anywhere;
  border: 1px dashed var(--terracotta);
  border-radius: 12px;
  background: #fff8ed;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  user-select: text;
}

.remote-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.remote-account-card h3,
.remote-account-card p {
  margin: 0;
}

.remote-account-card p {
  color: var(--muted);
}

@media screen and (max-width: 700px) {
  .welcome-modal {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: none;
    transform: none;
    border: 0;
    border-radius: 0;
  }

  .welcome-shell {
    display: block;
    min-height: 100%;
  }

  .welcome-brand-panel {
    min-height: 132px;
    padding: 20px 22px;
  }

  .welcome-brand-panel > div:last-child,
  .welcome-trust-list {
    display: none;
  }

  .welcome-content-panel {
    min-height: calc(100vh - 132px);
    padding: 26px 22px calc(30px + env(safe-area-inset-bottom));
  }

  .welcome-slide {
    min-height: 330px;
  }
}

.account-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.account-choice,
.add-account-choice {
  display: grid;
  min-height: 180px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.account-choice.selected {
  border-color: var(--terracotta);
  box-shadow: inset 0 3px 0 var(--terracotta);
}

.account-choice h3 {
  margin: 3px 0 5px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.account-choice p,
.account-choice small {
  margin: 0;
  color: var(--muted);
}

.account-choice .primary-button {
  grid-column: 1 / -1;
}

.add-account-choice {
  grid-template-columns: 1fr;
  place-items: center;
  border-style: dashed;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.add-account-choice > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--terracotta);
  font-size: 24px;
}

.add-account-choice small {
  color: var(--muted);
}

.account-privacy-note,
.profile-form-hint {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}

.account-privacy-note p,
.profile-form-hint p {
  margin: 0;
  line-height: 1.55;
}

.account-sign-out {
  margin-top: 15px;
}

.account-form {
  margin-top: 24px;
}

.calculation-loading,
.calculation-error {
  display: flex;
  grid-column: 1 / -1;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .profile-empty-state {
    grid-template-columns: 1fr;
  }

  .profile-empty-state {
    justify-items: start;
  }

}

@media (max-width: 620px) {
  .asteroid-check-grid > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-picker-toggle {
    width: 76px;
    gap: 5px;
    padding: 0 8px;
    font-size: 10px;
  }

  .settings-nav {
    scrollbar-width: none;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .account-choice-grid {
    grid-template-columns: 1fr;
  }

  .profile-empty-state {
    padding: 22px;
  }
}

/* Ajustes finales de legibilidad y responsive verificados en 320, 390, 720,
   1006, 1101, 1440 y 1600 px. */
@media screen {
  .nav-copy-short {
    display: none;
  }

  .form-grid > .full {
    grid-column: 1 / -1;
  }

  .filter-panel,
  .filter-panel fieldset,
  .data-pills {
    flex-wrap: wrap;
  }

  .filter-panel fieldset {
    min-width: 0;
    flex: 1 1 280px;
  }

  .data-pill {
    max-width: 100%;
    overflow: visible;
    font-size: .75rem;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .quick-calculator input,
  .quick-calculator select {
    font-size: .875rem;
    font-weight: 400;
  }

  .quick-calculator .primary-button {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 44px;
    padding: 7px 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .big-three > div {
    grid-template-columns: 30px minmax(82px, auto) minmax(0, 1fr);
  }

  .big-three strong,
  .big-three em {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ephemeris-table-wrap {
    max-height: 70vh;
  }

  .nav-count,
  .verified-badge,
  .filter-count,
  .filter-panel legend,
  .mobile-more-menu header small,
  .limitation-box strong,
  .guide-recommendation p,
  .guide-recommendation label,
  .recommend-label,
  .difference-note,
  .place-search-results p,
  .help-popover p,
  .toast p,
  .table-footnote,
  .aspect-legend,
  .source-register h3 {
    font-size: .75rem;
    line-height: 1.45;
  }
}

@media screen and (min-width: 1101px) and (max-width: 1400px) {
  .quick-calculator {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .calculator-title {
    grid-column: 1 / -1;
  }

  .place-field {
    grid-column: span 2;
  }
}

@media screen and (min-width: 1101px) and (max-width: 1280px) {
  .sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand {
    min-width: 132px;
  }

  .brand small,
  .nav-copy-full {
    display: none;
  }

  .nav-copy-short {
    display: inline;
  }

  .main-nav {
    min-width: 0;
    padding-left: 5px;
  }

  .nav-link {
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
    white-space: nowrap;
  }

  .profile-switcher {
    width: 132px;
  }
}

@media screen and (min-width: 1101px) {
  .chart-explorer-panel,
  .result-audit-panel,
  .report-builder-panel,
  .report-builder-panel.with-preview {
    top: 153px;
    bottom: 12px;
    max-height: none;
  }
}

@media screen and (min-width: 721px) and (max-width: 1100px) {
  .quick-calculator {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .calculator-title {
    grid-column: 1 / -1;
  }

  .place-field {
    grid-column: span 2;
  }
}

@media screen and (max-width: 1100px) {
  .topbar {
    height: 80px;
    min-height: 80px;
    overflow: hidden;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .app-shell input,
  .app-shell select,
  .app-shell textarea {
    font-size: .875rem;
  }

  .chart-explorer-panel,
  .result-audit-panel,
  .report-builder-panel,
  .report-builder-panel.with-preview {
    top: 92px;
    right: 10px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    max-height: none;
  }

  .toast {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
}

@media screen and (max-width: 720px) {
  .calculated-technique-result .result-header .primary-button {
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .calculated-technique-result .result-header .primary-button::before {
    content: "⌑";
    font-size: 1rem;
  }
}

@media screen and (max-width: 620px) {
  .app-shell input,
  .app-shell select,
  .app-shell textarea {
    font-size: 1rem;
  }
}

/* Navegación principal desplegable en tablet y móvil.
   A 1100 px y por debajo los diez destinos permanecen disponibles dentro de
   una cuadrícula desplegable, sin crear una barra de desplazamiento horizontal. */
@media screen and (max-width: 1100px) {
  :root {
    --compact-main-nav-height: 56px;
  }

  .sidebar {
    position: fixed;
    z-index: 320;
    inset: 0 0 auto;
    display: flex;
    width: 100%;
    height: var(--compact-main-nav-height);
    min-height: var(--compact-main-nav-height);
    flex-direction: row;
    align-items: stretch;
    padding: 0 8px;
    border-bottom: 3px solid #d0a04e;
    background: var(--portal-navy);
  }

  .sidebar .brand {
    width: 46px;
    min-width: 46px;
    flex: 0 0 46px;
    justify-content: center;
    padding: 0 7px 0 0;
    border-right: 1px solid rgba(255,255,255,.12);
  }

  .sidebar .brand-mark {
    width: 32px;
    height: 32px;
  }

  .sidebar .brand > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compact-nav-toggle {
    display: inline-flex;
    min-width: 104px;
    min-height: 53px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 4px;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: .8125rem;
    font-weight: 700;
  }

  .compact-nav-toggle:hover,
  .compact-nav-toggle:focus-visible,
  .compact-nav-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,.1);
  }

  .compact-nav-toggle:focus-visible {
    outline: 2px solid #f3c26c;
    outline-offset: -3px;
  }

  .compact-nav-chevron {
    transition: transform .18s ease;
  }

  .compact-nav-toggle[aria-expanded="true"] .compact-nav-chevron {
    transform: rotate(180deg);
  }

  .sidebar .main-nav {
    position: absolute;
    z-index: 1;
    top: calc(100% - 3px);
    right: 8px;
    left: 8px;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 7px;
    max-height: calc(100vh - var(--compact-main-nav-height) - 12px);
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-top: 3px solid #d0a04e;
    border-radius: 0 0 14px 14px;
    background: var(--portal-navy);
    box-shadow: 0 18px 42px rgba(10,35,50,.32);
    overscroll-behavior: contain;
  }

  .sidebar.compact-nav-open .main-nav {
    display: grid;
  }

  .sidebar .main-nav .nav-label {
    display: none;
  }

  .sidebar .nav-link {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: .75rem;
    line-height: 1.25;
    white-space: normal;
  }

  .sidebar .nav-link.active {
    box-shadow: inset 3px 0 #f3c26c;
  }

  .sidebar .nav-icon {
    display: none;
  }

  .sidebar .nav-copy-full {
    display: inline;
  }

  .sidebar .nav-copy-short {
    display: none;
  }

  .sidebar .sidebar-bottom {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 0 0 0 5px;
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,.12);
  }

  .sidebar .profile-switcher {
    display: grid;
    width: 38px;
    height: 53px;
    min-width: 38px;
    place-items: center;
    padding: 0;
  }

  .sidebar .profile-switcher .avatar {
    width: 32px;
    height: 32px;
  }

  .sidebar .profile-switcher .profile-copy,
  .sidebar .profile-switcher > span:last-child {
    display: none;
  }

  .sidebar .settings-link {
    display: grid;
    width: 38px;
    height: 53px;
    min-width: 38px;
    place-items: center;
    padding: 0;
  }

  .main-area {
    margin-left: 0;
    padding-top: var(--compact-main-nav-height);
  }

  .topbar {
    top: var(--compact-main-nav-height);
  }

  .modal-backdrop {
    inset: calc(var(--compact-main-nav-height) + 80px) 0 calc(74px + env(safe-area-inset-bottom));
  }

  .side-panel,
  .result-view {
    top: calc(var(--compact-main-nav-height) + 80px);
  }

  .guide-modal,
  .calculation-modal {
    top: calc(var(--compact-main-nav-height) + 80px);
  }

  .chart-explorer-panel,
  .result-audit-panel,
  .report-builder-panel,
  .report-builder-panel.with-preview {
    top: calc(var(--compact-main-nav-height) + 92px);
  }

  .skip-link:focus {
    top: calc(var(--compact-main-nav-height) + .5rem);
  }
}

@media screen and (max-width: 480px) {
  .sidebar {
    padding-right: 4px;
    padding-left: 4px;
  }

  .sidebar .brand {
    width: 40px;
    min-width: 40px;
    flex-basis: 40px;
  }

  .sidebar .nav-link {
    padding-right: 8px;
    padding-left: 8px;
    font-size: .6875rem;
  }

  .compact-nav-toggle {
    min-width: 86px;
    margin-right: 2px;
    margin-left: 2px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .sidebar .sidebar-bottom {
    padding-left: 2px;
  }

  .sidebar .profile-switcher,
  .sidebar .settings-link {
    width: 34px;
    min-width: 34px;
  }
}

/* Producto personal: planes, identidad y contacto. Esta capa conserva la
   paleta cálida de Lúmina y mejora jerarquía, contraste y respuesta móvil. */
.membership-section {
  position: relative;
  margin: 44px 0;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(25, 56, 78, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0, rgba(197, 154, 89, .2), transparent 30%),
    linear-gradient(145deg, #fffdf9 0%, #f4f8f7 58%, #f8f2ea 100%);
  box-shadow: 0 24px 70px rgba(23, 48, 71, .09);
}

.membership-section::before {
  content: "";
  position: absolute;
  top: -78px;
  right: -58px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(25, 56, 78, .1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, .2), inset 0 0 0 29px rgba(25, 56, 78, .05);
  pointer-events: none;
}

.membership-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.membership-heading h2 {
  max-width: 760px;
  margin: 6px 0 10px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(29px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.04;
}

.membership-heading p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}

.current-plan-pill {
  min-width: 130px;
  padding: 13px 17px;
  border: 1px solid rgba(25, 56, 78, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
  text-align: right;
}

.current-plan-pill small,
.current-plan-pill strong {
  display: block;
}

.current-plan-pill small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.current-plan-pill strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 1.15rem;
}

.single-report-offer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 21px 23px;
  border: 1px solid rgba(202, 110, 73, .25);
  border-radius: 20px;
  background: rgba(255, 253, 249, .88);
}

.single-report-offer > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.single-report-offer h3,
.membership-card h3 {
  margin: 3px 0 6px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 500;
}

.single-report-offer p,
.membership-card p,
.membership-card li,
.membership-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.single-report-offer p {
  margin: 0;
}

.single-report-offer small,
.plan-kind {
  color: var(--terracotta-deep);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.plan-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  background: #edf3f3;
  color: var(--navy);
  font-size: 1.35rem;
}

.single-report-action {
  display: flex;
  min-width: 210px;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.single-report-action strong {
  color: var(--ink-2);
  font-size: .84rem;
}

.membership-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.membership-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(25, 56, 78, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 34px rgba(23, 48, 71, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.membership-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 56, 78, .28);
  box-shadow: 0 18px 42px rgba(23, 48, 71, .11);
}

.membership-card.featured-plan {
  border-color: rgba(202, 110, 73, .42);
  background: linear-gradient(160deg, #fffdfa, #fff6ee);
}

.membership-card.best-value-plan {
  border-color: rgba(77, 122, 99, .42);
  background: linear-gradient(160deg, #fffefa, #eef7f2);
  box-shadow: 0 15px 40px rgba(53, 98, 76, .1);
}

.membership-card.is-current,
.single-report-offer.is-current {
  border-color: var(--success);
  box-shadow: inset 0 0 0 1px var(--success), 0 14px 34px rgba(77, 122, 99, .12);
}

.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-value-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(77, 122, 99, .2);
  border-radius: 999px;
  background: rgba(77, 122, 99, .1);
  color: #315f49;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.plan-price {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--terracotta-deep) !important;
  font-weight: 750;
}

.membership-card > p:not(.plan-price) {
  min-height: 73px;
  margin: 0;
}

.membership-card > label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 700;
}

.membership-card > label select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(25, 56, 78, .2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-1);
  font: inherit;
}

.membership-card ul {
  display: grid;
  flex: 1;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.membership-card li {
  position: relative;
  padding-left: 24px;
  font-size: .88rem;
}

.membership-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.membership-card .primary-button {
  width: 100%;
  margin-top: auto;
}

.membership-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(25, 56, 78, .12);
}

.membership-footer p {
  max-width: 650px;
  margin: 0;
  font-size: .82rem;
}

.membership-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
}

.result-access-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(202, 110, 73, .3);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8f1, #f6f9f8);
  box-shadow: var(--shadow-soft);
}

.result-access-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
}

.result-access-card small {
  color: var(--terracotta-deep);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-access-card h2 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 500;
}

.result-access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.result-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

#result-view[data-access-level="brief"] .report-layout {
  grid-template-columns: minmax(0, 1fr);
}

#result-view[data-access-level="brief"] #report-resumen {
  width: min(100%, 980px);
  margin-inline: auto;
}

#result-view[data-access-level="brief"] .overview-reading p {
  font-size: 1rem;
  line-height: 1.75;
}

#result-view[data-access-level="brief"] .big-three-report small,
#result-view[data-access-level="brief"] .big-three-report p {
  font-size: .75rem;
}

#result-view[data-access-level="brief"] .big-three-report strong,
#result-view[data-access-level="brief"] .key-findings li {
  font-size: .9rem;
  line-height: 1.6;
}

#result-view[data-access-level="brief"] .key-findings h3 {
  font-size: .85rem;
}

.technique-access-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 11px 0 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3f0;
  color: #3f6d57;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.technique-access-badge.brief {
  background: #fff1e7;
  color: #9b4e31;
}

.technique-access-badge.locked {
  background: #f0edf5;
  color: #6e5d83;
}

.technique-panel-hero .technique-access-badge {
  margin-left: 7px;
  vertical-align: middle;
}

.google-auth-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(23, 48, 71, .2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 750 .9rem var(--sans);
  box-shadow: 0 4px 14px rgba(23, 48, 71, .06);
}

.google-auth-button:hover {
  border-color: rgba(23, 48, 71, .42);
  background: #fafcfc;
}

.google-auth-button > span,
.google-identity-mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #4285f4, #34a853);
  color: #fff;
  font-weight: 850;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 2px;
  color: var(--muted);
  font-size: .75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.account-identity-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.account-identity-row > div {
  min-width: 0;
  flex: 1;
}

.account-identity-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.contact-page {
  max-width: 1120px;
  margin: 0 auto;
}

.managed-public-sections[hidden],
.contact-page [data-public-fallback-section][hidden],
.managed-public-section-image[hidden] {
  display: none !important;
}

.managed-public-sections:not([hidden]) {
  display: grid;
  gap: 22px;
  margin: 0 0 28px;
}

.managed-public-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: 260px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(25, 56, 78, .12);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.managed-public-section-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.managed-public-section h2 {
  margin: 7px 0 14px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.04;
}

.managed-public-section-text {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  white-space: pre-line;
}

.managed-public-section-action {
  width: fit-content;
  margin-top: 22px;
  text-decoration: none;
}

.managed-public-section-image {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #e5eeef, #f6e9dc);
}

.managed-public-section-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.managed-public-section-hero {
  min-height: 390px;
  background:
    radial-gradient(circle at 12% 24%, rgba(197, 154, 89, .25), transparent 28%),
    linear-gradient(145deg, #edf5f4, #fff8f1);
}

.managed-public-section-callout {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  background: linear-gradient(135deg, var(--navy), #244b64);
}

.managed-public-section-callout h2,
.managed-public-section-callout .eyebrow {
  color: #fffdf9;
}

.managed-public-section-callout .managed-public-section-text {
  color: rgba(244, 241, 246, .76);
}

.managed-public-section-contact {
  background:
    radial-gradient(circle at 88% 18%, rgba(197, 154, 89, .2), transparent 25%),
    linear-gradient(145deg, #f1f6f5, #fffaf4);
}

/* El editor propietario persiste únicamente estos presets cerrados. Ningún
   valor del contenido administrado se convierte en CSS libre. */
.managed-public-section[data-managed-theme="mist"] {
  background:
    radial-gradient(circle at 88% 18%, rgba(197, 154, 89, .2), transparent 25%),
    linear-gradient(145deg, #edf5f4, #fff8f1);
}

.managed-public-section[data-managed-theme="paper"] {
  background: linear-gradient(145deg, #fffdf9, #f7f1e9);
}

.managed-public-section[data-managed-theme="night"] {
  background:
    radial-gradient(circle at 68% 22%, rgba(103, 91, 127, .46), transparent 24%),
    linear-gradient(145deg, #0e2032, #172c45 48%, #081725);
}

.managed-public-section[data-managed-theme="violet"] {
  background: linear-gradient(145deg, #675b7f, #3f3857);
}

.managed-public-section[data-managed-theme="night"] h2,
.managed-public-section[data-managed-theme="violet"] h2,
.managed-public-section[data-managed-theme="night"] .eyebrow,
.managed-public-section[data-managed-theme="violet"] .eyebrow,
.managed-public-section[data-managed-layout="cover"] h2,
.managed-public-section[data-managed-layout="cover"] .eyebrow {
  color: #fffdf9;
}

.managed-public-section[data-managed-theme="night"] .managed-public-section-text,
.managed-public-section[data-managed-theme="violet"] .managed-public-section-text,
.managed-public-section[data-managed-layout="cover"] .managed-public-section-text {
  color: rgba(244, 241, 246, .82);
}

.managed-public-section[data-managed-layout="split-left"] {
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
}

.managed-public-section[data-managed-layout="split-left"] .managed-public-section-image {
  order: -1;
}

.managed-public-section[data-managed-layout="stacked"] {
  grid-template-columns: minmax(0, 1fr);
}

.managed-public-section[data-managed-layout="cover"] {
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  min-height: 390px;
}

.managed-public-section[data-managed-layout="cover"]::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 16, 28, .86), rgba(4, 16, 28, .28));
  pointer-events: none;
}

.managed-public-section[data-managed-layout="cover"] .managed-public-section-copy {
  z-index: 2;
}

.managed-public-section[data-managed-layout="cover"] .managed-public-section-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: inherit;
}

.managed-public-section[data-managed-layout="cover"] .managed-public-section-image img {
  height: 100%;
  min-height: 100%;
}

.managed-public-section[data-managed-align="center"] .managed-public-section-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.managed-public-section[data-managed-align="center"] .managed-public-section-action {
  margin-inline: auto;
}

.managed-public-section[data-managed-spacing="compact"] {
  min-height: 190px;
  padding: clamp(22px, 3vw, 34px);
}

.managed-public-section[data-managed-spacing="comfortable"] {
  padding: clamp(28px, 5vw, 54px);
}

.managed-public-section[data-managed-spacing="spacious"] {
  min-height: 360px;
  padding: clamp(42px, 7vw, 76px);
}

.managed-public-section[data-managed-copy-width="narrow"] .managed-public-section-copy {
  max-width: 520px;
}

.managed-public-section[data-managed-copy-width="standard"] .managed-public-section-copy {
  max-width: 720px;
}

.managed-public-section[data-managed-copy-width="wide"] .managed-public-section-copy {
  max-width: 920px;
}

.managed-public-section[data-managed-image-ratio="landscape"] .managed-public-section-image {
  aspect-ratio: 16 / 10;
}

.managed-public-section[data-managed-image-ratio="square"] .managed-public-section-image {
  aspect-ratio: 1;
}

.managed-public-section[data-managed-image-ratio="portrait"] .managed-public-section-image {
  aspect-ratio: 4 / 5;
}

.managed-public-section[data-managed-image-fit="contain"] .managed-public-section-image img {
  object-fit: contain;
}

.managed-public-section[data-managed-heading-size="small"] h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.managed-public-section[data-managed-heading-size="medium"] h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.managed-public-section[data-managed-heading-size="large"] h2 {
  font-size: clamp(2.6rem, 5.8vw, 4.9rem);
}

.managed-public-section[data-managed-button-style="outline"] .managed-public-section-action {
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  box-shadow: none;
}

.managed-public-section[data-managed-button-style="soft"] .managed-public-section-action {
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}

.managed-public-section[data-managed-theme="night"][data-managed-button-style="outline"] .managed-public-section-action,
.managed-public-section[data-managed-theme="violet"][data-managed-button-style="outline"] .managed-public-section-action,
.managed-public-section[data-managed-layout="cover"][data-managed-button-style="outline"] .managed-public-section-action {
  color: #fffdf9;
}

.managed-public-section[data-managed-theme="night"][data-managed-button-style="soft"] .managed-public-section-action,
.managed-public-section[data-managed-theme="violet"][data-managed-button-style="soft"] .managed-public-section-action,
.managed-public-section[data-managed-layout="cover"][data-managed-button-style="soft"] .managed-public-section-action {
  color: #fffdf9;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .24);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 430px;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid rgba(25, 56, 78, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 24%, rgba(197, 154, 89, .22), transparent 27%),
    linear-gradient(145deg, #eef5f4, #fffaf4);
  box-shadow: var(--shadow);
}

.contact-orbit {
  position: relative;
  display: grid;
  width: min(230px, 100%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(25, 56, 78, .24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 34px rgba(255, 255, 255, .35), inset 0 0 0 35px rgba(25, 56, 78, .1);
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(202, 110, 73, .35);
  border-radius: 50%;
}

.contact-orbit::before { inset: 25%; }
.contact-orbit::after { inset: 42%; background: var(--navy); }

.contact-orbit span {
  z-index: 1;
  color: #fff;
  font-size: 1.35rem;
}

.contact-hero h2 {
  max-width: 650px;
  margin: 7px 0 15px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.contact-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-instagram-button {
  width: fit-content;
  margin-top: 24px;
  text-decoration: none;
}

@media screen and (max-width: 900px) {
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .membership-card > p:not(.plan-price) {
    min-height: 0;
  }

  .contact-hero {
    grid-template-columns: minmax(130px, .45fr) minmax(0, 1.55fr);
  }

  .managed-public-section {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr);
  }
}

@media screen and (max-width: 620px) {
  .membership-section {
    margin: 30px 0;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .membership-heading,
  .single-report-offer,
  .membership-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .current-plan-pill {
    width: fit-content;
    text-align: left;
  }

  .single-report-action {
    min-width: 0;
    align-items: stretch;
  }

  .membership-card {
    padding: 21px 18px;
  }

  .membership-footer > div {
    justify-content: flex-start;
  }

  .result-access-card {
    grid-template-columns: 1fr;
  }

  .result-access-actions > button {
    width: 100%;
  }

  .contact-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 27px 21px;
    border-radius: 22px;
  }

  .contact-orbit {
    width: 132px;
    justify-self: start;
  }

  .contact-instagram-button {
    width: 100%;
  }

  .account-identity-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

/* Modernización comercial proporcionada: conserva el portal y mejora lectura,
   confianza y el único canal profesional que el servidor puede configurar. */
@media screen {
  body {
    background: #edf2f4;
  }

  .quick-calculator {
    gap: 12px;
    padding: 18px;
    border-color: #b9c7cf;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 48, 71, .06);
  }

  .calculator-title strong {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
  }

  .calculator-title small {
    margin-top: 4px;
    font-size: .75rem;
  }

  .quick-calculator label {
    font-size: .75rem;
    letter-spacing: .06em;
  }

  .quick-calculator input,
  .quick-calculator select {
    height: 46px;
    margin-top: 7px;
    padding: 0 12px;
    border-color: #c8d3d9;
    border-radius: 6px;
    background: #fff;
    font-size: .9375rem;
  }

  .quick-calculator input:focus,
  .quick-calculator select:focus {
    border-color: var(--portal-cyan);
    box-shadow: 0 0 0 3px rgba(40, 124, 157, .16);
  }

  .quick-calculator .primary-button {
    height: 46px;
    min-height: 46px;
  }

  .calculator-advanced {
    margin: 4px -18px -18px;
    padding: 10px 18px;
    border-radius: 0 0 7px 7px;
  }

  .calculator-advanced summary {
    min-height: 28px;
    font-size: .75rem;
    line-height: 28px;
  }

  .natal-workspace,
  .current-sky-panel,
  .tool-category {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(23, 48, 71, .045);
  }

  .profile-empty-state {
    min-height: 190px;
    grid-column: auto;
    padding: 28px;
    border-radius: 8px;
    background: #fff;
  }

  .profile-empty-state > span {
    width: 54px;
    height: 54px;
    font-size: 23px;
  }

  .profile-empty-state small {
    font-size: .6875rem;
  }

  .profile-empty-state h3 {
    margin-top: 6px;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    line-height: 1.16;
  }

  .profile-empty-state p {
    font-size: .875rem;
    line-height: 1.6;
  }

  .professional-heading h2,
  .compact-heading h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 500;
  }

  .tool-category-grid {
    gap: 16px;
  }

  .tool-category h3 {
    background: #f0f4f6;
    font-size: .75rem;
  }

  .tool-category button {
    min-height: 66px;
    padding: 10px 3px;
  }

  .tool-category button strong {
    font-size: .8125rem;
  }

  .tool-category button small {
    font-size: .75rem;
    line-height: 1.35;
  }

  .professional-service-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin: 24px 0 28px;
    padding: 22px 24px;
    border: 1px solid #c7d2d8;
    border-left: 4px solid var(--portal-red);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 48, 71, .045);
  }

  .professional-service-panel[hidden] {
    display: none !important;
  }

  .professional-service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #e6edf1;
    color: var(--portal-navy);
    font-family: var(--serif);
    font-size: 1.35rem;
  }

  .professional-service-panel .eyebrow {
    margin-bottom: 4px;
  }

  .professional-service-panel h2 {
    margin: 0 0 5px;
    color: var(--portal-navy);
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
  }

  .professional-service-panel p:not(.eyebrow) {
    margin: 0;
    color: #536a78;
    font-size: .875rem;
  }

  .professional-service-panel small {
    display: block;
    margin-top: 7px;
    color: #6d7f89;
    font-size: .75rem;
    line-height: 1.45;
  }

  .professional-service-action {
    min-height: 44px;
    padding: 0 18px;
    border-color: var(--portal-red);
    color: #9f422f;
    font-size: .8125rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .result-toolkit {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .result-toolkit strong {
    font-size: .875rem;
  }

  .result-toolkit small {
    margin-top: 3px;
    font-size: .75rem;
  }

  .result-toolkit-actions button {
    min-height: 38px;
    padding: 0 14px;
    font-size: .75rem;
  }

  .result-toolkit-actions button[data-result-action="builder"] {
    border-color: var(--portal-navy);
    background: var(--portal-navy);
    color: #fff;
  }

  .result-toolkit-actions button[data-result-action="builder"]:hover {
    border-color: var(--portal-blue);
    background: var(--portal-blue);
    color: #fff;
  }

  .report-builder-panel {
    width: min(520px, calc(100vw - 34px));
    border-radius: 14px;
  }

  .report-builder-head h3 {
    font-size: 1.65rem;
  }

  .report-builder-head p,
  .report-builder-body label,
  .report-content-assurance p,
  .report-builder-body summary {
    font-size: .8125rem;
  }

  .report-content-assurance strong {
    font-size: .875rem;
  }

  .report-section-choices small {
    font-size: .75rem;
  }

  .report-builder-actions .primary-button,
  .report-builder-actions .secondary-button {
    min-height: 44px;
  }

  :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(40, 124, 157, .42);
    outline-offset: 3px;
  }
}

@media screen and (max-width: 1100px) {
  .profile-empty-state {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 650px) {
  .quick-calculator {
    gap: 12px;
    padding: 14px;
  }

  .calculator-advanced {
    margin: 4px -14px -14px;
    padding: 10px 14px;
  }

  .profile-empty-state {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }

  .profile-empty-state > .primary-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .professional-service-panel {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }

  .professional-service-action {
    width: 100%;
    grid-column: 1 / -1;
  }

  .report-builder-panel,
  .report-builder-panel.with-preview {
    width: calc(100vw - 20px);
  }
}

@media print {
  .data-table-wrap {
    overflow: visible;
  }

  .professional-data-table {
    min-width: 0;
    table-layout: fixed;
  }

  .professional-data-table th,
  .professional-data-table td {
    height: auto;
    padding: 4px;
    overflow-wrap: anywhere;
    font-size: 7.5pt;
  }
}

@media screen {
  .app-shell small {
    font-size: .75rem !important;
  }

  #result-view .report-summary-card p,
  #result-view .life-reading-intro p,
  #result-view .life-reading-block p,
  #result-view .long-reading-block p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

@media screen and (max-width: 1100px) {
  .app-shell input,
  .app-shell select,
  .app-shell textarea {
    font-size: 1rem !important;
  }

  .mobile-nav small {
    font-size: .6875rem !important;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* PDF real, archivo local y flujos accesibles */
.report-builder-panel.with-preview {
  width: min(960px, calc(100vw - 34px));
}

.report-builder-panel[aria-busy="true"] {
  cursor: progress;
}

.pdf-generation-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf4f6;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.pdf-generation-status.error {
  background: #fff0ec;
  color: #8d342c;
}

.pdf-preview {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #e8ebed;
}

.pdf-preview[hidden] {
  display: none;
}

.pdf-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
}

.pdf-preview iframe {
  display: block;
  width: 100%;
  height: min(66vh, 720px);
  border: 0;
  background: #fff;
}

.danger-action,
.icon-button.danger {
  color: #9b3e35 !important;
}

.account-choice .danger-action {
  grid-column: 1 / -1;
  justify-self: start;
}

.verification-pending-box {
  border-color: #ddbd83 !important;
  background: #fff8e8 !important;
}

.verification-ok-box {
  border-color: #a8cfb7 !important;
  background: #eff8f1 !important;
}

.preflight-box.incomplete {
  border-color: #d7ae75;
  background: #fff9e9;
}

.preflight-box.ready {
  border-color: #a8cfb7;
  background: #eff8f1;
}

.timezone-disambiguation-box {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  margin: 14px 0;
  padding: 15px;
  border: 2px solid #d7ae75;
  border-radius: 14px;
  background: #fff9e9;
}

.timezone-disambiguation-box legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.timezone-disambiguation-box p,
.timezone-disambiguation-box small {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}

.mobile-more-menu {
  position: fixed;
  z-index: 220;
  right: 10px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 10px;
  max-width: 560px;
  max-height: min(72vh, 620px);
  margin: 0 auto;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(18, 50, 71, .28);
}

.mobile-more-menu[hidden] {
  display: none;
}

.mobile-more-menu header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-more-menu header small,
.mobile-more-menu header h2 {
  margin: 0;
}

.mobile-more-menu header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-more-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mobile-more-menu nav a,
.mobile-more-menu nav button {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mobile-more-menu nav a span,
.mobile-more-menu nav button span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  background: #edf4f6;
  color: var(--navy);
}

.chart-explorer-body p {
  font-size: 13px;
  line-height: 1.7;
}

.chart-explorer-body h4 {
  font-size: 16px;
}

.third-party-attribution a:not(.secondary-button) {
  color: var(--terracotta-deep);
  font-weight: 700;
}

/* Navegación persistente y escala mínima legible */

.app-shell p:not(.eyebrow),
.app-shell li {
  font-size: .875rem;
}

.app-shell small {
  font-size: .75rem;
}

.app-shell button,
.app-shell input,
.app-shell select,
.app-shell textarea {
  font-size: .8125rem;
}

.app-shell td,
.app-shell th {
  font-size: .8125rem;
}

.app-shell .eyebrow,
.report-breadcrumb,
.report-section-title small,
.report-summary-card small,
.life-reading-intro small,
.life-reading-block small,
.long-reading-block small,
.interpretation-chapter-heading small {
  font-size: .6875rem;
}

.nav-link {
  font-size: .875rem;
}

.context-help {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  font-size: .8125rem;
}

.topbar .eyebrow {
  font-size: .6875rem;
}

.technique-panel-hero p,
.panel-section p,
.panel-section li,
.guide-step > p,
.calculation-modal > div > p,
.consent-row,
.preflight-box p {
  font-size: .9375rem;
  line-height: 1.65;
}

.panel-section h3,
.metadata-item strong,
.technical-details summary,
.guide-option strong,
.form-field > span,
.preflight-box strong {
  font-size: .8125rem;
}

.question-chip,
.metadata-item small,
.form-field small,
.guide-option small {
  font-size: .75rem;
}

.calculation-summary small,
.calculation-modal small,
.guide-modal small {
  font-size: .75rem;
  line-height: 1.5;
}

.asteroid-check-grid.full {
  grid-column: 1 / -1;
}

.asteroid-check-grid .consent-row {
  min-width: 0;
  white-space: nowrap;
}

.form-field input,
.form-field select,
.form-field textarea,
.quick-calculator input,
.quick-calculator select {
  font-size: .875rem;
}

#result-view p,
#result-view li {
  font-size: .9375rem;
}

#result-view small,
.result-index strong,
.result-index button,
.report-tabbar button,
.report-toc > strong,
.report-toc > button,
.technical-facts-grid small {
  font-size: .75rem;
}

#result-view button,
#result-view input,
#result-view select,
#result-view textarea,
#result-view label,
#result-view summary,
#result-view th,
#result-view td {
  font-size: .8125rem;
}

#result-view td strong,
#result-view dt,
#result-view dd,
#result-view b,
#result-view .soft-badge {
  font-size: .75rem;
}

.report-summary-card p,
.life-reading-intro p,
.life-reading-block p,
.long-reading-block p {
  font-size: 1rem;
  line-height: 1.75;
}

.professional-data-table,
.ephemeris-table,
.nomenclature-table {
  font-size: .8125rem;
}

/* Las piezas compactas del portal heredaban tamaños de 7–10 px. Se mantienen
   las jerarquías, pero ningún texto operativo queda reducido a microtexto. */
.quick-calculator label,
.calculator-advanced summary,
.workspace-kicker,
.technique-status,
.compact-position-table .compact-table-head,
.house-chip,
.house-number,
.strength-label,
.chart-explorer-kind {
  font-size: .6875rem;
}

.big-three strong,
.big-three em,
.select-label,
.compact-position-table > div,
.compact-position-table strong,
.workspace-footer,
.panel-heading-row strong,
.tool-category button strong,
.nomenclature-summary span,
.chart-explorer-context strong,
.chart-explorer-body dt,
.chart-explorer-body dd,
.chart-explorer-related strong,
.report-toc > button span,
.report-reading-progress strong,
.big-three-report strong,
.report-birth-data dl > div,
.distribution-row,
.distribution-row strong,
.dominants-card strong,
.dominants-card li > b,
.method-note strong,
.life-action-box strong,
.reading-keywords b,
.reading-evidence summary,
.report-continuation > span,
.technical-facts-grid strong,
.source-register a,
.report-meta-box strong {
  font-size: .75rem;
}

.tool-category h3,
.report-birth-data h3,
.distribution-grid h3,
.limitations-panel h3,
.course-note summary {
  font-size: .8125rem;
}

.sidebar-bottom {
  gap: 8px;
}

.settings-link {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
}

.settings-link:hover,
.settings-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.settings-link span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media screen and (min-width: 1101px) {
  .sidebar {
    z-index: 300;
  }

  .topbar {
    position: sticky;
    z-index: 290;
    top: 72px;
  }

  .modal-backdrop {
    inset: 141px 0 0;
  }

  .side-panel {
    top: 141px;
    height: calc(100vh - 141px);
  }

  .result-view {
    inset: 141px 0 0;
  }

  .guide-modal,
  .calculation-modal {
    top: calc(50% + 70.5px);
    max-height: calc(100vh - 171px);
  }
}

@media screen and (max-width: 1100px) {
  .topbar {
    position: sticky;
    z-index: 290;
    top: 0;
    min-height: 80px;
  }

  .mobile-nav {
    z-index: 300;
  }

  .modal-backdrop {
    inset: 80px 0 calc(74px + env(safe-area-inset-bottom));
  }

  .side-panel,
  .result-view {
    top: 80px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    height: auto;
  }

  .guide-modal,
  .calculation-modal {
    top: 80px;
    right: 0;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    transform: none;
  }

  .mobile-nav small {
    font-size: .6875rem;
  }

  .app-shell input,
  .app-shell select,
  .app-shell textarea {
    font-size: 1rem;
  }

  .context-help {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 17mm 15mm 18mm;
  }

  html,
  body {
    background: #fff !important;
    color: #162c3c !important;
    font-size: 10.5pt;
  }

  #result-view [hidden],
  #result-view .report-builder-panel,
  #result-view .chart-explorer-panel,
  #result-view .result-audit-panel,
  #result-view .result-toolkit,
  #result-view .report-tabbar,
  #result-view .chart-view-toggle {
    display: none !important;
  }

  #result-view .report-section {
    break-inside: auto;
    page-break-inside: auto;
  }

  #result-view h1,
  #result-view h2,
  #result-view h3,
  #result-view .report-section-title {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  #result-view table,
  #result-view figure,
  #result-view svg,
  #result-view .interpretation-card,
  #result-view .long-reading-block {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  #result-view thead {
    display: table-header-group;
  }

  #result-view a[href]::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
    font-size: 8pt;
  }
}

@media (max-width: 620px) {
  .mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(74px + env(safe-area-inset-bottom));
  }

  .mobile-nav > :nth-child(n + 6) {
    display: none;
  }

  .mobile-nav small {
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: .625rem !important;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .mobile-more-menu nav {
    grid-template-columns: 1fr;
  }

  .report-builder-panel,
  .report-builder-panel.with-preview {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .technical-graphic,
  .standalone-generated-chart,
  .solar-chart-comparison,
  .generated-chart-pane,
  .report-chart-image {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* Última capa: estas reglas deben permanecer después de los estilos heredados. */
@media screen and (min-width: 621px) and (max-width: 1100px) {
  .app-shell input,
  .app-shell select,
  .app-shell textarea {
    font-size: .875rem !important;
  }
}

@media screen and (max-width: 720px) {
  .calculated-technique-result .result-header .primary-button {
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .calculated-technique-result .result-header .primary-button::before {
    content: "⌑";
    font-size: 1rem;
  }
}

@media screen and (max-width: 620px) {
  .mobile-nav small {
    font-size: .625rem !important;
  }

  .chart-explorer-panel,
  .result-audit-panel,
  .report-builder-panel,
  .report-builder-panel.with-preview {
    top: 92px;
    right: 10px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    max-height: none;
  }
}

/* Mantener esta corrección al final: varias capas heredadas vuelven a declarar
   las posiciones móviles y no deben colocar contenido sobre el menú persistente. */
@media screen and (max-width: 1100px) {
  .topbar {
    top: var(--compact-main-nav-height);
  }

  .modal-backdrop {
    inset: calc(var(--compact-main-nav-height) + 80px) 0 calc(74px + env(safe-area-inset-bottom));
  }

  .side-panel,
  .result-view {
    top: calc(var(--compact-main-nav-height) + 80px);
  }

  .guide-modal,
  .calculation-modal {
    top: calc(var(--compact-main-nav-height) + 80px);
  }

  .managed-public-section,
  .managed-public-section-callout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 27px 21px;
    border-radius: 22px;
  }

  .managed-public-section-image,
  .managed-public-section-image img {
    min-height: 190px;
  }

  .managed-public-section-action {
    width: 100%;
  }

  .managed-public-section[data-managed-layout="split-left"] {
    grid-template-columns: 1fr;
  }

  .managed-public-section[data-managed-layout="split-left"] .managed-public-section-image {
    order: 0;
  }

  .managed-public-section[data-managed-layout="cover"] {
    min-height: 390px;
  }

  .managed-public-section[data-managed-layout="cover"] .managed-public-section-image,
  .managed-public-section[data-managed-layout="cover"] .managed-public-section-image img {
    min-height: 100%;
  }

  .managed-public-section[data-managed-spacing="compact"] {
    padding: 22px 19px;
  }

  .managed-public-section[data-managed-spacing="spacious"] {
    padding: 42px 24px;
  }

  .managed-public-section[data-managed-heading-size="large"] h2 {
    font-size: clamp(2.3rem, 12vw, 3.7rem);
  }

  .chart-explorer-panel,
  .result-audit-panel,
  .report-builder-panel,
  .report-builder-panel.with-preview {
    top: calc(var(--compact-main-nav-height) + 92px);
  }
}

/* Cabecera de informe legible en pantallas estrechas. La acción de guardado
   ocupa una fila propia para conservar el texto completo y un área táctil útil. */
@media screen and (max-width: 720px) {
  .result-header {
    grid-template-areas:
      "close heading"
      "save save";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .result-header > button:first-child {
    grid-area: close;
  }

  .result-header > div {
    grid-area: heading;
  }

  .result-header .primary-button {
    grid-area: save;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    overflow: visible;
    font-size: .75rem;
    line-height: 1.2;
    white-space: normal;
  }

  .result-header .primary-button::before {
    content: none;
  }

  .calculated-technique-result .result-header {
    grid-template-areas:
      "close heading"
      "save save"
      "metric metric";
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .calculated-technique-result .result-header .primary-button {
    grid-area: save;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    overflow: visible;
    font-size: .75rem;
    line-height: 1.2;
    white-space: normal;
  }

  .calculated-technique-result .result-header .primary-button::before {
    content: none;
  }
}

/* En teléfonos estrechos cada dato principal dispone de una fila completa.
   Así el nombre, la fecha y los selectores siguen siendo legibles a 320 px. */
@media screen and (max-width: 480px) {
  .quick-calculator {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-calculator > label,
  .quick-calculator > .primary-button,
  .quick-calculator > .calculator-title,
  .quick-calculator > .calculator-advanced {
    grid-column: 1 / -1;
  }
}

/* Alineación final de la navegación responsive. Todos los accesos comparten
   exactamente las mismas dos filas, incluso si una etiqueta ocupa dos líneas.
   Consulta conserva el color de llamada a la acción sin flotar ni alterar la
   geometría del resto del menú. */
@media screen and (max-width: 1100px) {
  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    grid-template-rows: 24px 24px;
    align-content: center;
    align-items: center;
    justify-items: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: 2px;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    appearance: none;
  }

  .mobile-nav span {
    display: grid;
    width: 100%;
    min-width: 0;
    height: 24px;
    margin: 0;
    place-items: center;
    line-height: 1;
  }

  .mobile-nav small {
    display: grid;
    width: 100%;
    min-width: 0;
    height: 24px;
    margin: 0;
    place-items: center;
    line-height: 1.05;
    text-align: center;
  }

  .mobile-nav .mobile-new span {
    width: 100%;
    height: 24px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    font-size: 18px;
    transform: none;
  }

  .mobile-nav a:focus-visible,
  .mobile-nav button:focus-visible {
    border-radius: 12px;
    outline-width: 2px;
    outline-offset: -3px;
  }
}

/* Identidad visual final de las superficies que presentan el producto.
   Mantiene intactas las herramientas densas y concentra la expresión de marca
   en portada, oferta y Contacto. */
@media screen {
  #page-inicio > .quick-calculator {
    border: 1px solid #c5cfd5;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(23, 48, 71, .08);
  }

  #page-inicio > .quick-calculator .calculator-icon {
    border: 1px solid rgba(215, 170, 92, .36);
    background: #17172c;
    color: #dfba74;
  }

  #page-inicio > .quick-calculator .primary-button { background: var(--terracotta); }

  .membership-section {
    border-color: rgba(215, 170, 92, .2);
    background:
      radial-gradient(circle at 90% -10%, rgba(215, 170, 92, .24), transparent 31%),
      radial-gradient(circle at 5% 105%, rgba(92, 76, 134, .34), transparent 34%),
      linear-gradient(145deg, #17172c, #1d2438 60%, #26223a);
    box-shadow: 0 26px 70px rgba(23, 23, 44, .2);
  }

  .membership-section::before {
    border-color: rgba(215, 170, 92, .17);
    box-shadow: inset 0 0 0 28px rgba(255, 255, 255, .018), inset 0 0 0 29px rgba(215, 170, 92, .1);
  }

  .membership-heading h2 { color: #fffdf9; }
  .membership-heading .eyebrow { color: #dfba74; }
  .membership-heading p:not(.eyebrow) { color: rgba(244, 241, 246, .72); }
  .current-plan-pill { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); box-shadow: none; }
  .current-plan-pill small { color: #d9c28e; }
  .current-plan-pill strong { color: #fff; }
  .single-report-offer { border-color: rgba(215, 170, 92, .34); background: #fffdf9; }
  .membership-card { border-color: rgba(255, 255, 255, .1); background: #fff; }
  .membership-card.featured-plan { border-color: rgba(215, 170, 92, .72); background: linear-gradient(160deg, #fffdf9, #fff5e9); }
  .membership-footer { border-color: rgba(255, 255, 255, .16); }
  .membership-footer p { color: rgba(244, 241, 246, .7); }
  .membership-footer .text-button { color: #e3bd77; }
  .membership-footer .text-button:hover { color: #fff; }

  .contact-hero {
    border-color: rgba(215, 170, 92, .22);
    background:
      radial-gradient(circle at 12% 22%, rgba(215, 170, 92, .2), transparent 27%),
      radial-gradient(circle at 95% 90%, rgba(92, 76, 134, .34), transparent 35%),
      linear-gradient(145deg, #17172c, #202a41);
    box-shadow: 0 26px 70px rgba(23, 23, 44, .19);
  }

  .contact-orbit {
    border-color: rgba(215, 170, 92, .44);
    box-shadow: inset 0 0 0 34px rgba(255, 255, 255, .018), inset 0 0 0 35px rgba(215, 170, 92, .12);
  }

  .contact-orbit::before,
  .contact-orbit::after { border-color: rgba(215, 170, 92, .42); }
  .contact-orbit::after { background: var(--terracotta); }
  .contact-hero .eyebrow { color: #dfba74; }
  .contact-hero h2 { color: #fffdf9; }
  .contact-hero p:not(.eyebrow) { color: rgba(244, 241, 246, .73); }
  .contact-hero .primary-button { background: var(--terracotta); }
}

.account-profile-manager-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.account-profile-manager-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.account-profile-manager-row.active-profile {
  border-color: rgba(173, 82, 54, .35);
  background: #fff9f5;
}

.account-profile-manager-row div,
.account-profile-manager-row strong,
.account-profile-manager-row small {
  min-width: 0;
}

.account-profile-manager-row strong,
.account-profile-manager-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-manager-row small {
  margin-top: 3px;
  color: var(--muted);
}

.account-destination-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.account-destination-actions .secondary-button {
  gap: 8px;
}

.profile-edit-action {
  gap: 6px;
}

@media screen and (max-width: 620px) {
  .settings-layout .settings-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    overflow: visible;
  }

  .settings-layout .settings-nav button {
    width: 100%;
    min-width: 0;
    flex: none;
    text-align: left;
  }

  .settings-account-section,
  .settings-workspace-section,
  .settings-commerce-account-section,
  .settings-password-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .settings-account-section > div:first-child,
  .settings-workspace-section > div:first-child,
  .settings-commerce-account-section > div:first-child,
  .settings-password-section > div:first-child,
  .settings-account-fields {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .settings-password-section .secondary-button,
  .settings-form-actions .primary-button {
    width: 100%;
  }

  .settings-destination-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .settings-password-grid {
    grid-template-columns: 1fr;
  }

  .settings-password-grid .form-field:first-child {
    grid-column: auto;
    width: 100%;
  }

  .account-profile-manager-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .account-profile-manager-row .secondary-button {
    grid-column: 2 / -1;
    width: 100%;
  }

  .account-destination-actions {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    display: block;
    overflow: visible;
    white-space: normal;
    -webkit-line-clamp: unset;
  }
}

@media screen and (max-width: 650px) {
  #page-inicio > .quick-calculator { border-radius: 12px; }
  .membership-section { margin-right: -4px; margin-left: -4px; }
  .membership-heading h2 { font-size: 2.2rem; }
  .contact-page { margin: -22px -15px 0; }
  .contact-hero { border-radius: 0; border-right: 0; border-left: 0; }
}

/* Alineación final de la navegación responsive. Todos los accesos comparten
   exactamente las mismas dos filas, incluso si una etiqueta ocupa dos líneas.
   Consulta conserva el color de llamada a la acción sin flotar ni alterar la
   geometría del resto del menú. */
@media screen and (max-width: 1100px) {
  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    grid-template-rows: 24px 24px;
    align-content: center;
    align-items: center;
    justify-items: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: 2px;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    appearance: none;
  }

  .mobile-nav span {
    display: grid;
    width: 100%;
    min-width: 0;
    height: 24px;
    margin: 0;
    place-items: center;
    line-height: 1;
  }

  .mobile-nav small {
    display: grid;
    width: 100%;
    min-width: 0;
    height: 24px;
    margin: 0;
    place-items: center;
    line-height: 1.05;
    text-align: center;
  }

  .mobile-nav .mobile-new span {
    width: 100%;
    height: 24px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    font-size: 18px;
    transform: none;
  }

  .mobile-nav a:focus-visible,
  .mobile-nav button:focus-visible {
    border-radius: 12px;
    outline-width: 2px;
    outline-offset: -3px;
  }
}
