/* ============================================================================
   ASTROCHAT v171 · reference-screen layout
   Presentation only: Ask → Analysing → Answer.
   No chart, KP, timing, credit, authentication, database or API logic lives here.
   ============================================================================ */

:root{
  --ref-red:#5D1D1E;
  --ref-dark-bg:#0b0c0b;
  --ref-dark-surface:#151716;
  --ref-dark-surface-2:#202321;
  --ref-dark-border:#3a3e3b;
  --ref-dark-text:#f4f5f3;
  --ref-dark-muted:#b4b8b5;
  --ref-light-bg:#f7f8f7;
  --ref-light-surface:#ffffff;
  --ref-light-surface-2:#f2f3f2;
  --ref-light-border:#d8dcda;
  --ref-light-text:#171a18;
  --ref-light-muted:#676d69;
}

/* Keep the existing ASTROCHAT mark and typography, but flatten the workspace
   into the compact matte treatment from the supplied reference. */
html[data-theme="dark"] body .workspace,
html[data-theme="dark"] body .home-results,
html[data-theme="dark"] body .conversation-stage{
  background:var(--ref-dark-bg)!important;
}
html[data-theme="light"] body .workspace,
html[data-theme="light"] body .home-results,
html[data-theme="light"] body .conversation-stage{
  background:var(--ref-light-bg)!important;
}

body .conversation-stage{
  width:min(100%,760px)!important;
  max-width:760px!important;
  margin:0 auto!important;
  padding:10px 14px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  overflow:visible!important;
}
body .conversation-stage::before,
body .conversation-stage::after{display:none!important}

/* Header / active profile */
body .home-appbar{
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body .home-appbar::before{display:none!important}
body .home-appbar::after{
  height:1px!important;
  background:var(--ref-red)!important;
  opacity:1!important;
}
html[data-theme="dark"] body .home-appbar{background:#0b0c0b!important}
html[data-theme="light"] body .home-appbar{background:#fff!important}
body .home-profile-row{border-top:0!important}
html[data-theme="dark"] body .home-profile-row{background:#0b0c0b!important}
html[data-theme="light"] body .home-profile-row{background:#fff!important}
body .home-profile-picker{
  min-height:34px!important;
  padding-top:3px!important;
  padding-bottom:3px!important;
}
body .home-profile-monogram{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  font-size:.67rem!important;
  background:var(--ref-red)!important;
  color:#fff!important;
}

/* Guidance header */
body .home-guidance-hero{
  order:1!important;
  width:100%!important;
  margin:0!important;
  padding:1px 0 9px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
}
body .guidance-bindu-wrap,
body .guidance-greeting{display:none!important}
body .guidance-title{
  margin:7px 0 2px!important;
  font-size:clamp(1.42rem,4.8vw,1.82rem)!important;
  line-height:1.05!important;
  font-weight:800!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
}
body .guidance-subtitle{
  margin:0!important;
  font-size:.73rem!important;
  line-height:1.35!important;
  font-weight:480!important;
  text-align:left!important;
}
html[data-theme="dark"] body .guidance-title{color:var(--ref-dark-text)!important}
html[data-theme="dark"] body .guidance-subtitle{color:var(--ref-dark-muted)!important}
html[data-theme="light"] body .guidance-title{color:var(--ref-light-text)!important}
html[data-theme="light"] body .guidance-subtitle{color:var(--ref-light-muted)!important}

/* Natal positions: one compact continuous marquee on the question screen only. */
body .home-natal-ribbon[hidden]{display:none!important}
body .home-natal-ribbon{
  width:100%!important;
  margin:0 0 5px!important;
  padding:5px 0 6px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  overflow:hidden!important;
  border-top:1px solid transparent!important;
  border-bottom:1px solid transparent!important;
}
html[data-theme="dark"] body .home-natal-ribbon{border-color:#303331!important}
html[data-theme="light"] body .home-natal-ribbon{border-color:#e0e3e1!important}
body .natal-ribbon-label{
  padding-left:1px!important;
  font-size:.52rem!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  white-space:nowrap!important;
}
html[data-theme="dark"] body .natal-ribbon-label{color:#d6d8d6!important}
html[data-theme="light"] body .natal-ribbon-label{color:#5e6360!important}
body .natal-ribbon-window{min-width:0!important;overflow:hidden!important;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
body .natal-ribbon-track{
  display:flex!important;
  width:max-content!important;
  align-items:center!important;
  animation:refNatalMarquee 30s linear infinite!important;
  will-change:transform;
}
body .natal-ribbon-set{display:flex!important;align-items:center!important;gap:16px!important;padding-right:16px!important}
body .natal-ribbon-item{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  font-size:.62rem!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body .natal-ribbon-item i{font-style:normal!important;color:var(--ref-red)!important;font-size:.71rem!important}
body .natal-ribbon-item b{font-weight:740!important}
html[data-theme="dark"] body .natal-ribbon-item{color:#c9cdca!important}
html[data-theme="dark"] body .natal-ribbon-item b{color:#fff!important}
html[data-theme="light"] body .natal-ribbon-item{color:#5a605c!important}
html[data-theme="light"] body .natal-ribbon-item b{color:#202421!important}
@keyframes refNatalMarquee{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){body .natal-ribbon-track{animation:none!important}}
body:not(.chat-empty) .home-natal-ribbon{display:none!important}

/* Composer: full-width text area and wine-red action bar. */
body .composer-zone{
  order:2!important;
  position:static!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body .composer-shell{
  position:relative!important;
  width:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  padding:10px!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .composer-shell{background:var(--ref-dark-surface)!important;border:1px solid var(--ref-dark-border)!important}
html[data-theme="light"] body .composer-shell{background:#fff!important;border:1px solid var(--ref-light-border)!important}
body .composer-label{
  position:static!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-size:.57rem!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}
body #astroUserQuery{
  position:static!important;
  width:100%!important;
  min-height:58px!important;
  max-height:88px!important;
  margin:0!important;
  padding:10px 12px 20px!important;
  border-radius:6px!important;
  resize:none!important;
  font-size:.75rem!important;
  line-height:1.42!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body #astroUserQuery{background:var(--ref-dark-surface-2)!important;border:1px solid #353936!important;color:#fff!important}
html[data-theme="dark"] body #astroUserQuery::placeholder{color:#929793!important}
html[data-theme="light"] body #astroUserQuery{background:#f5f6f5!important;border:1px solid #d7dbd8!important;color:#222624!important}
html[data-theme="light"] body #astroUserQuery::placeholder{color:#848a86!important}
body .orbix-composer-actions{
  position:absolute!important;
  right:18px!important;
  top:77px!important;
  bottom:auto!important;
  left:auto!important;
  pointer-events:none!important;
}
body .composer-character-count{font-size:.56rem!important;line-height:1!important}
html[data-theme="dark"] body .composer-character-count{color:#bdc0be!important}
html[data-theme="light"] body .composer-character-count{color:#656b67!important}
body .composer-send{
  position:static!important;
  inset:auto!important;
  width:fit-content!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:6px!important;
  background:var(--ref-red)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
body .composer-send:hover{filter:brightness(1.08)!important;transform:none!important}
body .composer-send::after{
  content:"Ask AstroChat";
  display:block!important;
  font-size:.69rem!important;
  font-weight:780!important;
  letter-spacing:.01em!important;
  color:#fff!important;
}
body .composer-send.no-credits::after{content:"Add questions"}
body .composer-send.processing::after{content:"Validating…"}
body .composer-send .astro-send-moon,
body .composer-send .credits-glyph,
body .composer-send .processing-system{display:none!important}
body .composer-balance-row{
  min-height:25px!important;
  padding:5px 4px 0!important;
  justify-content:center!important;
}
body .composer-question-balance{font-size:.62rem!important;font-weight:500!important}
html[data-theme="dark"] body .composer-question-balance{color:#d2d4d2!important}
html[data-theme="light"] body .composer-question-balance{color:#656b67!important}
body.chat-empty .composer-new-chat,
body.question-processing .composer-new-chat{display:none!important}
body.chat-empty .astro-status,
body.question-processing .astro-status{display:none!important}

/* Empty question screen: compact starting points below the composer. */
body .chat-log-shell{order:3!important;width:100%!important}
body.chat-empty .chat-log-shell{
  flex:0 0 auto!important;
  min-height:0!important;
  height:auto!important;
  margin:8px 0 0!important;
  overflow:visible!important;
}
body.chat-empty .astro-chat-log{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  overflow:visible!important;
  padding:0!important;
}
body.chat-empty .reference-home-empty{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
}
body .reference-starters{width:100%!important;display:grid!important;gap:7px!important}
body .reference-starters h2{
  margin:0 0 1px!important;
  font-size:.76rem!important;
  line-height:1.2!important;
  font-weight:780!important;
}
html[data-theme="dark"] body .reference-starters h2{color:#fff!important}
html[data-theme="light"] body .reference-starters h2{color:#1a1d1b!important}
body .reference-starter-list{display:grid!important;gap:5px!important}
body .reference-starter-row,
body.chat-empty .home-chart-evidence-card{
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:7px 10px!important;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:7px!important;
  box-shadow:none!important;
  text-align:left!important;
}
html[data-theme="dark"] body .reference-starter-row,
html[data-theme="dark"] body.chat-empty .home-chart-evidence-card{background:#171918!important;border:1px solid #363a37!important;color:#f4f5f3!important}
html[data-theme="light"] body .reference-starter-row,
html[data-theme="light"] body.chat-empty .home-chart-evidence-card{background:#fff!important;border:1px solid #dde1de!important;color:#222624!important}
body .reference-starter-row>span:nth-child(2){font-size:.68rem!important;font-weight:560!important;line-height:1.25!important}
body .reference-starter-row>b,
body .home-chart-evidence-arrow{font-size:1.1rem!important;font-weight:400!important;text-align:center!important;color:var(--ref-red)!important}
body .reference-starter-icon{
  width:26px!important;
  height:26px!important;
  display:grid!important;
  place-items:center!important;
  font-size:1rem!important;
  color:var(--ref-red)!important;
}
body.chat-empty .home-ascendant-glyph{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  background:transparent!important;
  color:var(--ref-red)!important;
  font-size:1.15rem!important;
}
body.chat-empty .home-chart-evidence-copy{display:grid!important;gap:1px!important;min-width:0!important}
body.chat-empty .home-chart-evidence-copy small{display:none!important}
body.chat-empty .home-chart-evidence-copy strong{font-size:.69rem!important;font-weight:760!important;line-height:1.2!important}
body.chat-empty .home-chart-evidence-copy span{font-size:.57rem!important;line-height:1.25!important}
html[data-theme="dark"] body.chat-empty .home-chart-evidence-copy span{color:#aeb3af!important}
html[data-theme="light"] body.chat-empty .home-chart-evidence-copy span{color:#727873!important}
body .reference-evidence-link{
  justify-self:center!important;
  margin-top:1px!important;
  padding:4px 7px!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:.58rem!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}

/* Processing screen. The composer is replaced visually by the pending question
   block, so the submitted question remains visible while the input itself stays
   untouched by this CSS. */
body.question-processing .composer-zone{display:none!important}
body.question-processing .home-guidance-hero{padding-bottom:8px!important}
body.question-processing .chat-log-shell{
  flex:1 1 auto!important;
  min-height:0!important;
  margin:0!important;
  overflow:visible!important;
}
body.question-processing .astro-chat-log{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
}
body .consultation-card.pending{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body .consultation-card.pending .consultation-card-head{display:none!important}
body .consultation-card.pending .consultation-question{
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0 0 9px!important;
  padding:10px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .consultation-card.pending .consultation-question{background:var(--ref-dark-surface)!important;border:1px solid var(--ref-dark-border)!important}
html[data-theme="light"] body .consultation-card.pending .consultation-question{background:#fff!important;border:1px solid var(--ref-light-border)!important}
body .consultation-card.pending .consultation-question-label{
  display:block!important;
  margin:0!important;
  font-size:.56rem!important;
  font-weight:800!important;
  letter-spacing:.035em!important;
}
body .consultation-card.pending .consultation-avatar{display:none!important}
body .consultation-card.pending .consultation-question-copy{
  width:100%!important;
  min-height:50px!important;
  margin:0!important;
  padding:9px 11px!important;
  display:block!important;
  border-radius:6px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .consultation-card.pending .consultation-question-copy{background:#202321!important;border:1px solid #343835!important}
html[data-theme="light"] body .consultation-card.pending .consultation-question-copy{background:#f7f8f7!important;border:1px solid #dde1de!important}
body .consultation-card.pending .consultation-question-copy p{
  margin:0!important;
  padding:0!important;
  font-size:.72rem!important;
  line-height:1.35!important;
  font-weight:560!important;
}
body .consultation-card.pending .consultation-question-copy small{display:none!important}
body .consultation-question-processing{display:grid!important;gap:5px!important}
body .consultation-question-processing strong{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px!important;
  background:var(--ref-red)!important;
  color:#fff!important;
  font-size:.66rem!important;
  font-weight:740!important;
}
body .consultation-question-processing small{
  display:block!important;
  text-align:center!important;
  font-size:.58rem!important;
  font-weight:500!important;
}
html[data-theme="dark"] body .consultation-question-processing small{color:#d0d3d1!important}
html[data-theme="light"] body .consultation-question-processing small{color:#666d68!important}
body .consultation-card.pending .consultation-scroll-body{
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
}
body .consultation-card.pending .consultation-answer{
  width:100%!important;
  max-width:none!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
}
body .consultation-card.pending .consultation-assistant-mark,
body .consultation-card.pending .consultation-answer-label{display:none!important}
body .consultation-card.pending .consultation-answer-body{width:100%!important;display:block!important}
body .consultation-card.pending .consultation-answer-loading{display:grid!important;gap:9px!important}
body .reading-progress-card,
body .chat-planet-odometer-scan{
  width:100%!important;
  margin:0!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .reading-progress-card,
html[data-theme="dark"] body .chat-planet-odometer-scan{background:#171918!important;border:1px solid #373b38!important}
html[data-theme="light"] body .reading-progress-card,
html[data-theme="light"] body .chat-planet-odometer-scan{background:#fff!important;border:1px solid #dce0dd!important}
body .reading-progress-card{padding:12px!important}
body .reading-progress-hero{margin:0 0 9px!important;display:block!important}
body .reading-progress-copy{display:grid!important;gap:2px!important}
body .reading-progress-copy strong{font-size:.82rem!important;line-height:1.2!important;font-weight:800!important}
body .reading-progress-copy span{font-size:.62rem!important;line-height:1.35!important}
body .reading-progress-ring{display:none!important}
body .reading-progress-steps{margin:0!important;padding:0!important;display:grid!important;gap:0!important;list-style:none!important}
body .reading-progress-step{
  position:relative!important;
  min-height:34px!important;
  display:grid!important;
  grid-template-columns:23px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  padding:0!important;
  font-size:.66rem!important;
  line-height:1.2!important;
}
body .reading-progress-step:not(:last-child)::after{
  content:""!important;
  position:absolute!important;
  left:11px!important;
  top:24px!important;
  bottom:-10px!important;
  width:1px!important;
}
html[data-theme="dark"] body .reading-progress-step:not(:last-child)::after{background:#525653!important}
html[data-theme="light"] body .reading-progress-step:not(:last-child)::after{background:#cdd1ce!important}
body .reading-step-state{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  border:1px solid #777d79!important;
  background:transparent!important;
  color:#fff!important;
  font-size:.57rem!important;
  z-index:1!important;
}
body .reading-progress-step.is-complete .reading-step-state{background:#f2f3f2!important;border-color:#f2f3f2!important;color:#262926!important}
body .reading-progress-step.is-current .reading-step-state{background:var(--ref-red)!important;border-color:#b7474a!important;box-shadow:0 0 0 2px rgba(93,29,30,.2)!important}
html[data-theme="light"] body .reading-progress-step.is-complete .reading-step-state{background:#454b47!important;border-color:#454b47!important;color:#fff!important}
body .reading-progress-footer{margin-top:8px!important;padding-top:0!important}
body .chat-processing-track{height:4px!important;border-radius:99px!important;overflow:hidden!important}
html[data-theme="dark"] body .chat-processing-track{background:#555a56!important}
html[data-theme="light"] body .chat-processing-track{background:#d7dbd8!important}
body .chat-processing-fill{background:var(--ref-red)!important}
body .reading-progress-meta{margin-top:5px!important;font-size:.55rem!important}
body .reading-analysis-disclosure{margin-top:6px!important;border-radius:6px!important;overflow:hidden!important}
html[data-theme="dark"] body .reading-analysis-disclosure{border:1px solid #373b38!important;background:#151716!important}
html[data-theme="light"] body .reading-analysis-disclosure{border:1px solid #dde0de!important;background:#fff!important}
body .reading-analysis-disclosure summary{min-height:32px!important;padding:6px 8px!important;font-size:.59rem!important}
body .reading-analysis-detail{padding:7px 8px!important;font-size:.56rem!important}
body .chat-planet-odometer-scan{padding:10px 12px!important}
body .planet-odometer-head{margin:0 0 7px!important}
body .planet-odometer-head i{display:none!important}
body .planet-odometer-head span{font-size:.57rem!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important}
body .planet-odometer{
  display:flex!important;
  gap:7px!important;
  justify-content:flex-start!important;
}
body .planet-odometer-slot{
  width:auto!important;
  min-width:76px!important;
  height:28px!important;
  min-height:28px!important;
  padding:0 9px!important;
  border-radius:999px!important;
  overflow:hidden!important;
}
html[data-theme="dark"] body .planet-odometer-slot{background:#2a2d2b!important;border:1px solid #3d413e!important}
html[data-theme="light"] body .planet-odometer-slot{background:#eff1ef!important;border:1px solid #d9ddda!important}
body .planet-odometer-window{height:100%!important;min-height:0!important;display:grid!important;place-items:center!important;overflow:hidden!important}
body .planet-odometer-value{height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:.58rem!important}
body .planet-odometer-value i{font-size:.67rem!important;color:var(--ref-red)!important}
body .planet-odometer-value strong{font-size:.58rem!important;font-weight:640!important}
body .planet-odometer-note{display:none!important}

/* Completed answer screen: remove the composer entirely and let the answer own
   the viewport. The fresh-question action sits below the response, as requested. */
body.reading-complete .home-guidance-hero,
body.reading-complete .composer-zone{display:none!important}
body.reading-complete .chat-log-shell{
  order:1!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  overflow:visible!important;
}
body.reading-complete .astro-chat-log{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
}
body .consultation-card.complete{
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:34px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body .consultation-card.complete::before{
  content:"Your reading"!important;
  position:absolute!important;
  left:0!important;
  top:4px!important;
  font-size:.76rem!important;
  line-height:1.2!important;
  font-weight:800!important;
}
html[data-theme="dark"] body .consultation-card.complete::before{color:#fff!important}
html[data-theme="light"] body .consultation-card.complete::before{color:#191c1a!important}
body .consultation-card.complete .consultation-card-head{display:none!important}
body .consultation-card.complete .consultation-question{
  position:absolute!important;
  top:0!important;
  right:0!important;
  left:auto!important;
  width:auto!important;
  max-width:min(58%,330px)!important;
  min-height:28px!important;
  margin:0!important;
  padding:5px 12px!important;
  display:block!important;
  border:0!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .consultation-card.complete .consultation-question{background:#8d2430!important;color:#fff!important}
html[data-theme="light"] body .consultation-card.complete .consultation-question{background:#f1dcde!important;color:#6f1e24!important}
body .consultation-card.complete .consultation-question-label,
body .consultation-card.complete .consultation-avatar,
body .consultation-card.complete .consultation-question-copy small,
body .consultation-card.complete .consultation-question-processing{display:none!important}
body .consultation-card.complete .consultation-question-copy{margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body .consultation-card.complete .consultation-question-copy p{
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.59rem!important;
  line-height:1.5!important;
  font-weight:650!important;
  color:inherit!important;
}
body .consultation-card.complete .consultation-scroll-body{
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
body .consultation-card.complete .consultation-answer{
  width:100%!important;
  max-width:none!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
}
body .consultation-card.complete .consultation-assistant-mark{display:none!important}
body .consultation-card.complete .consultation-answer-body{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border-radius:10px!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .consultation-card.complete .consultation-answer-body{background:#171918!important;border:1px solid #3a3e3b!important}
html[data-theme="light"] body .consultation-card.complete .consultation-answer-body{background:#fff!important;border:1px solid #dce0dd!important}
body .consultation-card.complete .consultation-answer-label{
  min-height:34px!important;
  margin:0!important;
  padding:7px 10px 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  border:0!important;
  background:transparent!important;
}
body .consultation-card.complete .consultation-answer-label strong{
  color:var(--ref-red)!important;
  font-size:.54rem!important;
  font-weight:800!important;
  letter-spacing:.03em!important;
}
body .consultation-card.complete .consultation-answer-label>span{font-size:.50rem!important;text-transform:uppercase!important}
body .consultation-card.complete .consultation-inline-share-reading{display:none!important}
body .consultation-card.complete .consultation-answer-content,
body .consultation-card.complete .consultation-answer-content.non-timing-response-content,
body .consultation-card.complete.timing-response-card .consultation-answer-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:3px 10px 11px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .consultation-card.complete .chat-answer-line,
body .consultation-card.complete .chat-answer-bullet,
body .consultation-card.complete .chat-answer-bullet>span:last-child,
body .consultation-card.complete .timing-response-copy p{
  font-size:.65rem!important;
  line-height:1.38!important;
  font-weight:440!important;
}
body .consultation-card.complete .chat-answer-line:first-child{
  font-size:.79rem!important;
  line-height:1.22!important;
  font-weight:780!important;
  margin-bottom:5px!important;
}
body .consultation-card.complete .chat-answer-heading{
  margin:7px 0 4px!important;
  padding:0!important;
  font-size:.66rem!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:inherit!important;
}
body .consultation-card.complete .chat-answer-heading::before{display:none!important}
body .consultation-card.complete .chat-answer-gap{height:5px!important}
body .consultation-card.complete .chat-consultation-verdict{margin:8px 0 0!important;padding:8px 9px!important;border-radius:6px!important;font-size:.62rem!important;line-height:1.36!important}
body .consultation-card.complete .chat-technical{
  margin:8px 0 0!important;
  border-radius:6px!important;
  overflow:hidden!important;
}
html[data-theme="dark"] body .consultation-card.complete .chat-technical{border:1px solid #3a3e3b!important;background:#191b1a!important}
html[data-theme="light"] body .consultation-card.complete .chat-technical{border:1px solid #dce0dd!important;background:#fff!important}
body .consultation-card.complete .chat-technical summary{min-height:33px!important;padding:7px 9px!important}
body .consultation-card.complete .chat-technical summary span{font-size:.59rem!important;font-weight:720!important}
body .consultation-card.complete .chat-technical summary small{display:none!important}
body .consultation-card.complete .chat-technical-body{padding:8px 9px!important}
body .consultation-card.complete .chat-technical-body,
body .consultation-card.complete .chat-technical-body *{font-size:.59rem!important;line-height:1.4!important}
body .consultation-card.complete .consultation-feedback,
body .consultation-card.complete .chat-next-questions{display:none!important}
body .consultation-card.complete .consultation-complete-bar.reference-result-footer{
  width:100%!important;
  margin:7px 0 0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:9px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .reference-result-actions{
  width:100%!important;
  min-height:30px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 4px!important;
}
body .reference-result-action,
body .reference-result-evidence{
  min-height:28px!important;
  padding:3px 2px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
  font-size:.58rem!important;
}
body .reference-result-action span{color:var(--ref-red)!important;font-size:.77rem!important}
body .reference-result-action strong{font-size:.58rem!important;font-weight:650!important}
body .reference-result-evidence{margin-left:auto!important;text-decoration:underline!important;text-underline-offset:2px!important}
body .reference-new-question{
  min-width:122px!important;
  min-height:32px!important;
  padding:7px 16px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--ref-red)!important;
  color:#fff!important;
  font-size:.60rem!important;
  font-weight:760!important;
  box-shadow:none!important;
}

/* Light mode uses the same geometry with high-contrast surfaces only. */
html[data-theme="light"] body .reference-result-action,
html[data-theme="light"] body .reference-result-evidence{color:#3d433f!important}
html[data-theme="dark"] body .reference-result-action,
html[data-theme="dark"] body .reference-result-evidence{color:#e8eae8!important}

/* Keep the answer readable on short phones without restoring the old composer. */
@media(max-width:720px){
  body .conversation-stage{padding:8px 11px 13px!important}
  body .home-guidance-hero{padding-top:0!important}
  body .home-natal-ribbon{grid-template-columns:auto minmax(0,1fr)!important;gap:7px!important}
  body .natal-ribbon-set{gap:13px!important;padding-right:13px!important}
  body .composer-shell{padding:9px!important}
  body #astroUserQuery{min-height:55px!important}
  body .orbix-composer-actions{right:16px!important;top:73px!important}
  body .reference-starter-row,
  body.chat-empty .home-chart-evidence-card{min-height:40px!important}
  body .reading-progress-card{padding:11px!important}
  body .planet-odometer-slot{min-width:70px!important;padding-inline:8px!important}
  body .consultation-card.complete{padding-top:33px!important}
  body .consultation-card.complete .consultation-question{max-width:62%!important}
}

@media(max-width:380px){
  body .natal-ribbon-label{font-size:.49rem!important}
  body .natal-ribbon-item{font-size:.57rem!important}
  body .planet-odometer{gap:5px!important}
  body .planet-odometer-slot{min-width:64px!important;padding-inline:6px!important}
  body .reference-result-actions{gap:9px!important}
  body .consultation-card.complete .consultation-question{max-width:66%!important}
}

/* Hidden compatibility node retained for older UI contracts; the visible chart is the marquee. */
body .reference-home-empty>.orbix-home-planet-grid[hidden]{display:none!important}

/* ============================================================================
   ASTROCHAT v171 · mobile/PWA reference corrections
   Presentation only. No astrology, KP, timing, credit, API, database or
   calculation behavior is defined here.
   ============================================================================ */

/* --- Ask screen: robust stacked textarea composer ------------------------- */
body .composer-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto!important;
  gap:7px!important;
  align-items:stretch!important;
}
body .composer-label{
  grid-column:1!important;
  grid-row:1!important;
  order:0!important;
  align-self:auto!important;
  justify-self:stretch!important;
}
body #astroUserQuery{
  grid-column:1!important;
  grid-row:2!important;
  order:0!important;
  min-height:86px!important;
  max-height:126px!important;
  padding:11px 12px!important;
  box-sizing:border-box!important;
  resize:none!important;
  overflow-y:auto!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
body .orbix-composer-actions{
  position:static!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:3!important;
  order:0!important;
  width:100%!important;
  min-height:12px!important;
  margin:-1px 0 0!important;
  padding:0 1px!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  pointer-events:none!important;
}
body .composer-character-count{
  width:auto!important;
  text-align:right!important;
}
body .composer-send{
  position:static!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:4!important;
  order:0!important;
  align-self:center!important;
  justify-self:center!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
}
body .composer-send:disabled{opacity:.72!important}
html[data-theme="light"] body .composer-send,
html[data-theme="light"] body .composer-send:hover,
html[data-theme="light"] body .composer-send:focus-visible{
  background:var(--ref-red)!important;
  color:#fff!important;
  border-color:var(--ref-red)!important;
}

/* Keep the actual submitted textarea visible while analysing. The application
   already disables it through setComposerProcessing(); this makes that state
   explicit and prevents mobile browsers from fading the text excessively. */
body.question-processing .composer-zone{
  display:block!important;
  order:2!important;
  flex:0 0 auto!important;
  margin:0 0 9px!important;
}
body.question-processing #astroUserQuery{
  cursor:not-allowed!important;
  user-select:text!important;
  -webkit-user-select:text!important;
  opacity:1!important;
}
html[data-theme="dark"] body.question-processing #astroUserQuery:disabled{
  color:#e8eae8!important;
  -webkit-text-fill-color:#e8eae8!important;
  background:#202321!important;
}
html[data-theme="light"] body.question-processing #astroUserQuery:disabled{
  color:#333835!important;
  -webkit-text-fill-color:#333835!important;
  background:#f4f5f4!important;
}
body.question-processing .composer-send.processing::after{content:"Analysing…"!important}
body:not(.question-processing) .composer-send.processing::after{content:"Validating…"!important}
body.question-processing .consultation-card.pending .consultation-question{display:none!important}
body.question-processing .home-guidance-hero{padding-bottom:8px!important}

/* --- Empty screen: ascendant/chart evidence belongs at the bottom ---------- */
body.chat-empty .chat-log-shell{
  flex:1 1 auto!important;
  min-height:150px!important;
  height:auto!important;
  margin:9px 0 0!important;
  overflow:visible!important;
}
body.chat-empty .astro-chat-log{
  height:100%!important;
  min-height:100%!important;
}
body.chat-empty .reference-home-empty{
  height:100%!important;
  min-height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
body .reference-starters{
  flex:0 0 auto!important;
}
body .reference-home-bottom{
  width:100%!important;
  margin-top:auto!important;
  padding-top:18px!important;
  display:grid!important;
  gap:7px!important;
}
body .reference-home-bottom .reference-evidence-link{
  justify-self:center!important;
  margin-top:0!important;
}

/* --- Processing: force the three reading stages into a true vertical flow -- */
body .reading-progress-steps{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  gap:0!important;
  margin:10px 0 12px!important;
  padding:0!important;
  align-items:stretch!important;
}
body .reading-progress-steps::before{display:none!important;content:none!important}
body .reading-progress-step,
body .reading-progress-step:nth-child(2),
body .reading-progress-step:nth-child(3){
  position:relative!important;
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  justify-items:start!important;
  justify-content:stretch!important;
  align-items:center!important;
  gap:8px!important;
  min-height:36px!important;
  width:100%!important;
  padding:0!important;
  text-align:left!important;
  white-space:normal!important;
  font-size:.66rem!important;
  line-height:1.25!important;
}
body .reading-progress-step>span:last-child{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  text-align:left!important;
  overflow-wrap:anywhere!important;
}
body .reading-progress-step:not(:last-child)::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  z-index:0!important;
  left:9px!important;
  top:27px!important;
  bottom:-9px!important;
  width:1px!important;
  height:auto!important;
}
body .reading-step-state{
  position:relative!important;
  z-index:1!important;
  grid-row:auto!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  box-shadow:none!important;
}
body .reading-progress-step.is-complete .reading-step-state,
body .reading-progress-step.is-current .reading-step-state{box-shadow:none!important}

/* --- Currently reviewing: three equal planet cells with planet + nakshatra -- */
body .chat-planet-odometer-scan{padding:11px 12px!important}
body .planet-odometer{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  justify-content:stretch!important;
  align-items:stretch!important;
  margin-top:7px!important;
}
body .planet-odometer-slot{
  width:100%!important;
  min-width:0!important;
  height:62px!important;
  min-height:62px!important;
  padding:0!important;
  border-radius:8px!important;
  overflow:hidden!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
body .planet-odometer-window{
  position:relative!important;
  width:100%!important;
  height:62px!important;
  min-height:62px!important;
  display:block!important;
  overflow:hidden!important;
}
body .planet-odometer-value{
  position:absolute!important;
  inset:0!important;
  height:100%!important;
  min-height:0!important;
  padding:7px 5px!important;
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:6px!important;
  text-align:left!important;
}
body .planet-odometer-value i{
  font-size:.9rem!important;
  line-height:1!important;
  text-align:center!important;
}
body .planet-odometer-copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
}
body .planet-odometer-copy strong{
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.61rem!important;
  line-height:1.05!important;
  font-weight:720!important;
}
body .planet-odometer-copy small{
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.49rem!important;
  line-height:1.15!important;
  font-weight:500!important;
}
html[data-theme="dark"] body .planet-odometer-copy small{color:#aeb3af!important}
html[data-theme="light"] body .planet-odometer-copy small{color:#707672!important}

/* --- Mobile/PWA resilience ------------------------------------------------- */
@media(max-width:720px){
  body .conversation-stage{
    width:100%!important;
    max-width:100%!important;
    padding:8px 12px 12px!important;
  }
  body .composer-shell{padding:10px!important;gap:7px!important}
  body #astroUserQuery{
    min-height:84px!important;
    max-height:120px!important;
    font-size:16px!important; /* prevents iOS/browser input zoom */
    line-height:1.35!important;
  }
  body .composer-send{min-height:40px!important;height:40px!important}
  body .composer-send::after{font-size:.72rem!important}
  body .reference-home-bottom{padding-top:16px!important}
  body .reading-progress-card{padding:12px!important}
  body .reading-progress-step,
  body .reading-progress-step:nth-child(2),
  body .reading-progress-step:nth-child(3){font-size:.64rem!important}
  body .planet-odometer{gap:6px!important}
  body .planet-odometer-slot,
  body .planet-odometer-window{height:60px!important;min-height:60px!important}
  body .planet-odometer-value{grid-template-columns:16px minmax(0,1fr)!important;gap:5px!important;padding:6px 4px!important}
  body .planet-odometer-value i{font-size:.82rem!important}
  body .planet-odometer-copy strong{font-size:.58rem!important}
  body .planet-odometer-copy small{font-size:.46rem!important}
}

@media(max-width:420px){
  body .conversation-stage{padding-inline:10px!important}
  body .guidance-title{font-size:1.55rem!important}
  body .guidance-subtitle{font-size:.70rem!important}
  body .composer-shell{padding:9px!important}
  body #astroUserQuery{min-height:82px!important}
  body .reference-starter-row,
  body.chat-empty .home-chart-evidence-card{
    grid-template-columns:27px minmax(0,1fr) 16px!important;
    gap:7px!important;
  }
  body .planet-odometer{gap:5px!important}
  body .planet-odometer-value{
    grid-template-columns:1fr!important;
    grid-template-rows:16px minmax(0,1fr)!important;
    justify-items:center!important;
    gap:3px!important;
    padding:5px 3px!important;
    text-align:center!important;
  }
  body .planet-odometer-copy{align-items:center!important;text-align:center!important;gap:2px!important}
  body .planet-odometer-copy strong,
  body .planet-odometer-copy small{text-align:center!important}
  body .planet-odometer-value i{font-size:.76rem!important}
  body .planet-odometer-copy strong{font-size:.55rem!important}
  body .planet-odometer-copy small{font-size:.43rem!important}
}

@media(max-width:350px){
  body .natal-ribbon-label{font-size:.46rem!important}
  body .natal-ribbon-item{font-size:.53rem!important}
  body .reference-starter-row>span:nth-child(2){font-size:.64rem!important}
  body .planet-odometer-copy strong{font-size:.51rem!important}
  body .planet-odometer-copy small{font-size:.40rem!important}
}

/* The content pane itself is the scrolling surface on phones/PWAs. This avoids
   clipped long answers or processing cards while the header/footer stay stable. */
body .conversation-stage{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
}
body .planet-odometer-copy small{
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
}
body.reading-complete .composer-zone{display:none!important}

/* ============================================================================
   ASTROCHAT v172 · mobile feedback corrections
   UI/UX only. No astrology, KP, timing, credit, API, database or calculation
   behaviour is defined here.
   ============================================================================ */

/* The balance belongs to the question card, directly below the action button. */
body .composer-shell{
  grid-template-rows:auto auto auto auto auto!important;
}
body .composer-balance-row{
  grid-column:1!important;
  grid-row:5!important;
  width:100%!important;
  min-height:22px!important;
  margin:0!important;
  padding:2px 2px 0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body .composer-question-balance{
  display:inline-flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  gap:4px!important;
  line-height:1.2!important;
}
body .composer-question-balance b{font-weight:800!important}

/* Ask screen: treat Ascendant + chart evidence link as one bottom section.
   Explicit flex ordering prevents older grid-row rules from flipping the link. */
body .reference-home-bottom{
  margin-top:auto!important;
  padding-top:18px!important;
  display:block!important;
}
body .reference-ascendant-section{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:5px!important;
}
body .reference-ascendant-section .home-chart-evidence-card{
  order:1!important;
  grid-row:auto!important;
  align-self:stretch!important;
  width:100%!important;
  margin:0!important;
}
body .reference-ascendant-section .reference-evidence-link{
  order:2!important;
  align-self:center!important;
  justify-self:auto!important;
  margin:0!important;
  padding:4px 7px 0!important;
}

/* Contextual suggestions returned by the existing consultation pipeline reuse
   the same starting-question area after + New question is selected. */
body .reference-starters.has-contextual-suggestions h2{
  margin-bottom:7px!important;
}
body .reference-starters.has-contextual-suggestions .reference-starter-icon{
  font-size:.82rem!important;
  font-weight:800!important;
}

/* Processing screen: remove unused hero space and pull the reading card up. */
body.question-processing .home-guidance-hero{display:none!important}
body.question-processing .composer-zone{
  margin:0 0 5px!important;
}
body.question-processing .composer-shell{
  padding-bottom:8px!important;
}
body.question-processing .chat-log-shell{
  margin:0!important;
  flex:1 1 auto!important;
}
body.question-processing .consultation-answer-loading{gap:7px!important}
body.question-processing .reading-progress-card{margin-top:0!important}

/* The progress textarea remains readable but cannot be edited while analysis
   is active; app.js owns the disabled state. */
body.question-processing #astroUserQuery:disabled{
  pointer-events:none!important;
  opacity:1!important;
}

/* Currently reviewing: make the three planet/nakshatra cells use the full
   width, and keep symbols clearly visible on the matte-dark background. */
body .chat-planet-odometer-scan{
  margin-top:0!important;
}
body .planet-odometer{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;
}
body .planet-odometer-slot{
  min-width:0!important;
  width:100%!important;
}
body .planet-odometer-value i{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  font-size:1rem!important;
  font-weight:800!important;
  opacity:1!important;
}
html[data-theme="dark"] body .planet-odometer-value i{
  color:#ff747b!important;
  background:rgba(93,29,30,.34)!important;
  border:1px solid rgba(255,116,123,.26)!important;
  text-shadow:0 0 8px rgba(255,116,123,.24)!important;
}
html[data-theme="light"] body .planet-odometer-value i{
  color:var(--ref-red)!important;
  background:rgba(93,29,30,.07)!important;
  border:1px solid rgba(93,29,30,.12)!important;
}
html[data-theme="dark"] body .planet-odometer-copy strong{color:#fff!important}

/* Completed answer: old light-theme bubble styling used to survive on the
   inner <p>, creating a white patch. Flatten every layer into one pill. */
body .consultation-card.complete .consultation-question,
body .consultation-card.complete .consultation-question-copy,
body .consultation-card.complete .consultation-question-copy p{
  background-image:none!important;
  box-shadow:none!important;
}
body .consultation-card.complete .consultation-question-copy p{
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
}
html[data-theme="dark"] body .consultation-card.complete .consultation-question-copy p{
  background:transparent!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-theme="light"] body .consultation-card.complete .consultation-question-copy p{
  background:transparent!important;
  color:#6f1e24!important;
  -webkit-text-fill-color:#6f1e24!important;
}

/* Completed readings scroll inside the original chat viewport. This keeps the
   footer fixed in place while long answers, expanded derivation/astrologer-view
   sections and the + New question pill remain reachable on mobile browsers/PWA. */
body.reading-complete .conversation-stage{
  min-height:0!important;
  overflow:hidden!important;
}
body.reading-complete .chat-log-shell{
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
}
body.reading-complete .astro-chat-log{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0 2px max(22px,env(safe-area-inset-bottom)) 0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
}
body.reading-complete .consultation-card.complete{
  min-height:min-content!important;
  padding-bottom:8px!important;
}
body.reading-complete .consultation-card.complete .consultation-scroll-body{
  overflow:visible!important;
}
body.reading-complete .consultation-card.complete .chat-technical[open] .chat-technical-body{
  max-height:none!important;
  overflow:visible!important;
}
body.reading-complete .consultation-complete-bar.reference-result-footer{
  padding-bottom:6px!important;
}
body.reading-complete .reference-new-question{
  flex:0 0 auto!important;
  margin-bottom:4px!important;
}

@media(max-width:720px){
  body .composer-shell{padding:9px!important}
  body .composer-balance-row{min-height:20px!important;padding-top:1px!important}
  body.question-processing .composer-zone{margin-bottom:4px!important}
  body .planet-odometer-value i{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    font-size:.9rem!important;
  }
  body.reading-complete .astro-chat-log{
    padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
  }
}

@media(max-width:420px){
  body .planet-odometer-value{
    grid-template-columns:1fr!important;
    grid-template-rows:22px minmax(0,1fr)!important;
  }
  body .planet-odometer-value i{justify-self:center!important}
}

/* ============================================================================
   ASTROCHAT v172 · response/ascendant polish pass 2
   Presentation-only corrections from mobile browser/PWA review.
   ============================================================================ */

/* Ascendant becomes one strong bottom card. The separate evidence hyperlink is
   intentionally removed in app.js; the whole card remains the chart-evidence CTA. */
body.chat-empty .reference-home-bottom{
  padding-top:22px!important;
}
body.chat-empty .reference-ascendant-section{
  gap:0!important;
}
body.chat-empty .reference-ascendant-section .home-chart-evidence-card{
  min-height:82px!important;
  padding:9px 12px!important;
  grid-template-columns:62px minmax(0,1fr) 22px!important;
  gap:12px!important;
  border-radius:13px!important;
  overflow:hidden!important;
}
body.chat-empty .reference-ascendant-section .home-ascendant-glyph{
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  border-radius:16px!important;
  font-size:2.25rem!important;
  line-height:1!important;
  font-weight:900!important;
  background:rgba(93,29,30,.10)!important;
  border:1px solid rgba(93,29,30,.14)!important;
  color:var(--ref-red)!important;
}
html[data-theme="dark"] body.chat-empty .reference-ascendant-section .home-ascendant-glyph{
  background:rgba(128,38,42,.24)!important;
  border-color:rgba(255,114,120,.16)!important;
  color:#ff7a80!important;
  text-shadow:0 0 12px rgba(255,122,128,.18)!important;
}
body.chat-empty .reference-ascendant-section .home-chart-evidence-copy{
  gap:4px!important;
  align-content:center!important;
}
body.chat-empty .reference-ascendant-section .home-chart-evidence-copy strong{
  font-size:.88rem!important;
  line-height:1.15!important;
  font-weight:820!important;
  letter-spacing:-.015em!important;
}
body.chat-empty .reference-ascendant-section .home-chart-evidence-copy span{
  font-size:.64rem!important;
  line-height:1.25!important;
  font-weight:560!important;
}
body.chat-empty .reference-ascendant-section .home-chart-evidence-arrow{
  font-size:1.35rem!important;
  font-weight:650!important;
}

/* Completed question bubble: force a single coloured pill and a plain text span.
   This bypasses legacy light-theme paragraph backgrounds entirely. */
body .consultation-card.complete .consultation-question,
body .consultation-card.complete .consultation-question-copy,
body .consultation-card.complete .reference-complete-question-text{
  background-image:none!important;
  box-shadow:none!important;
}
body .consultation-card.complete .reference-complete-question-text{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  color:inherit!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.59rem!important;
  line-height:1.5!important;
  font-weight:650!important;
  -webkit-box-decoration-break:slice!important;
  box-decoration-break:slice!important;
}
html[data-theme="light"] body .consultation-card.complete .consultation-question{
  background:#f1dcde!important;
  color:#6f1e24!important;
  border:0!important;
}
html[data-theme="light"] body .consultation-card.complete .reference-complete-question-text{
  background:transparent!important;
  color:#6f1e24!important;
  -webkit-text-fill-color:#6f1e24!important;
}
html[data-theme="dark"] body .consultation-card.complete .reference-complete-question-text{
  background:transparent!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* The result CTA must remain a maroon pill in light mode as well. Extra
   specificity is deliberate because older light-theme button rules use !important. */
html[data-theme="light"] body.reading-complete button.reference-new-question,
html[data-theme="dark"] body.reading-complete button.reference-new-question{
  appearance:none!important;
  -webkit-appearance:none!important;
  min-width:128px!important;
  min-height:34px!important;
  padding:8px 18px!important;
  border:1px solid #5D1D1E!important;
  border-radius:999px!important;
  background:#5D1D1E!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 8px 20px rgba(93,29,30,.16)!important;
  font-weight:780!important;
  opacity:1!important;
}
html[data-theme="light"] body.reading-complete button.reference-new-question:hover,
html[data-theme="dark"] body.reading-complete button.reference-new-question:hover{
  background:#6b2224!important;
  border-color:#6b2224!important;
  color:#fff!important;
}

/* Small rounded scroll cue shown at the lower-right of a completed response.
   It disappears once the New question CTA enters the scroll viewport. */
body .reference-response-scroll-cue{
  position:fixed!important;
  z-index:85!important;
  right:max(14px,env(safe-area-inset-right))!important;
  bottom:calc(78px + env(safe-area-inset-bottom))!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:999px!important;
  background:#5D1D1E!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24),0 0 0 3px rgba(93,29,30,.10)!important;
  font-size:1rem!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:opacity .16s ease,transform .16s ease!important;
}
body .reference-response-scroll-cue span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  transform:translateY(-1px)!important;
}
body .reference-response-scroll-cue.is-hidden{
  opacity:0!important;
  transform:translateY(8px)!important;
  pointer-events:none!important;
}
html[data-theme="light"] body .reference-response-scroll-cue{
  border-color:rgba(93,29,30,.18)!important;
  box-shadow:0 8px 22px rgba(93,29,30,.20),0 0 0 3px rgba(93,29,30,.08)!important;
}

@media(max-width:420px){
  body.chat-empty .reference-ascendant-section .home-chart-evidence-card{
    min-height:78px!important;
    grid-template-columns:58px minmax(0,1fr) 18px!important;
    padding:8px 10px!important;
    gap:10px!important;
  }
  body.chat-empty .reference-ascendant-section .home-ascendant-glyph{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    font-size:2.05rem!important;
  }
  body.chat-empty .reference-ascendant-section .home-chart-evidence-copy strong{font-size:.83rem!important}
  body.chat-empty .reference-ascendant-section .home-chart-evidence-copy span{font-size:.60rem!important}
  body .reference-response-scroll-cue{
    right:max(12px,env(safe-area-inset-right))!important;
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
  }
}


/* ASTROCHAT v173 · answer-first response keyword emphasis */
.consultation-card.complete .consultation-answer-content .chat-key-highlight{
  color:var(--ac-red,#5D1D1E)!important;
  font-weight:800!important;
}

.consultation-card.complete .timing-inline-window{
  color:var(--ac-red,#5D1D1E)!important;
  -webkit-text-fill-color:var(--ac-red,#5D1D1E)!important;
}
