/* The homepage is one observatory stage; imagery stays separate from live controls. */
html:has(.constellation-home),
body:has(.constellation-home) { height: 100%; overflow: hidden; }
body:has(.constellation-home) .mobile-app,
body:has(.constellation-home) .mobile-content,
body:has(.constellation-home) .mobile-ask-shell { height: 100dvh !important; min-height: 0 !important; overflow: hidden !important; }
body:has(.constellation-home) .mobile-app { padding-top: var(--signal-nav-height) !important; }
body:has(.constellation-home) .mobile-content,
body:has(.constellation-home) .mobile-ask-shell { height: calc(100dvh - var(--signal-nav-height)) !important; }
.mobile-ask-shell[data-signal-view="home"]::before,
.mobile-ask-shell[data-signal-view="conversation"]::before,
.mobile-ask-shell[data-signal-view="home"] .ask-bg-star-layer,
.mobile-ask-shell[data-signal-view="conversation"] .ask-bg-star-layer { display: none !important; }
.mobile-ask-shell[data-signal-view="home"] .constellation-home,
.mobile-ask-shell[data-signal-view="conversation"] .constellation-home {
  display: block !important;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  height: 100%;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #1b122a url('/web-static/brand/constellation-stage-background.png') center top / cover no-repeat;
  scrollbar-color: #68516d #1b122a;
}
.constellation-home *, .constellation-home *::before, .constellation-home *::after { box-sizing: border-box; }
.constellation-content {
  width: min(1240px, calc(100% - 120px));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(12px, 2.7vh, 30px) 0 clamp(10px, 2vh, 22px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}
.constellation-heading { position: relative; text-align: center; }
.constellation-heading h1 { margin: 0; color: #f5e4c2; font-family: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; font-size: clamp(38px, min(4.4vw, 6vh), 64px); font-weight: 400; line-height: 1.18; letter-spacing: .025em; }
.constellation-heading h1 > span { color: #e7a0bf; }
.constellation-wheel-shell { position: relative; height: clamp(118px, 17vh, 170px); margin: clamp(2px, 1vh, 12px) -15px 0; }
.constellation-orbit { position: absolute; width: min(100%, 1000px); height: auto; top: 44%; left: 50%; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; opacity: .82; }
.constellation-wheel { position: absolute; inset: 0 30px 0; display: flex; justify-content: space-around; align-items: center; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab; }
.constellation-wheel.is-dragging { cursor: grabbing; }
.constellation-topic { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; border: 0; background: transparent; color: #d0b9cb; min-height: 58px; padding: 10px 8px; font: 400 24px/1.3 Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; cursor: inherit; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.constellation-topic img { width: 12px; height: 12px; object-fit: contain; opacity: .78; pointer-events: none; }
.constellation-topic.active { color: #ffe9cf; }
html[lang="en"] .constellation-topic { font-size: 20px; }
.constellation-topic.active img { display: none; }
.constellation-wheel.is-ready .constellation-topic { position: absolute; left: 50%; top: 50%; width: var(--topic-width, 150px); transform-origin: center; will-change: transform, opacity; }
.constellation-topic:focus-visible { outline: 1px solid #e7a0bf; outline-offset: -3px; border-radius: 12px; }
.constellation-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 12px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; opacity: .7; transform: translateY(-70%); }
.constellation-arrow:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.constellation-arrow.previous { left: -12px; }
.constellation-arrow.next { right: -12px; }
.constellation-arrow img { width: 18px; height: 18px; object-fit: contain; }
.constellation-arrow.previous img { transform: rotate(180deg); }
.constellation-form.signal-ask-form { width: calc(100% - 80px); max-width: 1120px; margin: 0 auto; }
.constellation-composer { padding: 6px 8px 6px 14px; border: 1px solid rgba(218, 171, 230, .7); border-radius: 999px; background: rgba(112, 75, 119, .18); box-shadow: inset 0 0 24px rgba(220, 171, 230, .04), 0 8px 30px rgba(14, 7, 25, .13); }
.constellation-composer:focus-within { border-color: #e2b8ea; box-shadow: 0 0 0 3px rgba(200, 148, 239, .08); }
.constellation-person { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; min-height: 38px; border: 0; border-radius: 999px; background: transparent; padding: 0 12px; }
.constellation-person > img { height: 20px; width: 20px; object-fit: contain; opacity: .9; }
.constellation-person-control { position: relative; display: inline-flex; min-width: 0; align-items: center; }
body .constellation-person select { max-width: 190px; width: auto; min-height: 36px; padding: 0 30px 0 6px !important; margin: 0; border: 0 !important; border-radius: 0 !important; appearance: none; -webkit-appearance: none; background: transparent !important; color: #f1e7ef !important; box-shadow: none !important; font: inherit; font-size: 14px; cursor: pointer; }
.constellation-person-chevron { position: absolute; right: 6px; width: 13px; height: 13px; object-fit: contain; pointer-events: none; transform: rotate(90deg); opacity: .9; }
.constellation-person option { background: #25182e; color: #f1e7ef; }
.constellation-person a { min-height: 36px; display: flex; align-items: center; color: #f1e7ef; font-size: 14px; text-decoration: none; }
.constellation-home .signal-mode-tabs { display: grid; grid-template-columns: minmax(118px, .48fr) minmax(0, 2.8fr); align-items: stretch; width: 100%; margin: 0 auto 22px; overflow: visible; border: 0; border-bottom: 1px solid rgba(223, 215, 239, .2); border-radius: 0; background: transparent; }
.signal-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.constellation-home .signal-mode-tabs button { position: relative; display: flex; min-width: 0; min-height: 70px; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px 15px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #817b8e; font-family: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; cursor: pointer; }
.constellation-home .signal-mode-tabs button:hover { border: 0; background: transparent; color: #c8c0cc; }
.constellation-home .signal-mode-tabs button::after { content: ""; position: absolute; right: 20%; bottom: -1px; left: 20%; height: 2px; background: transparent; }
.constellation-home .signal-mode-tabs button.active { border: 0; background: transparent; box-shadow: none; color: #f1d5a7; }
.constellation-home .signal-mode-tabs button.active::after { background: #e4a6c6; }
.signal-mode-star { width: 13px; height: 13px; flex: 0 0 auto; object-fit: contain; visibility: hidden; }
.signal-mode-tabs button.active .signal-mode-star { visibility: visible; }
.signal-mode-tabs button > span { display: grid; gap: 4px; justify-items: start; }
.signal-mode-tabs button strong { color: inherit; font-size: 17px; font-weight: 500; line-height: 1.15; }
.signal-mode-tabs button small { color: #777181; font-size: 12px; font-weight: 400; letter-spacing: .04em; line-height: 1.2; }
.signal-mode-tabs button.active small { color: #d1b49c; }
.constellation-home .signal-question-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 0; }
.constellation-home .signal-question-row:focus-within { border: 0; box-shadow: none; }
body.has-desktop-rail .constellation-home .signal-question-row textarea[data-signal-question] { min-height: 48px; max-height: 150px; padding: 12px 16px; border: 0 !important; border-left: 1px solid rgba(215, 177, 225, .3) !important; border-radius: 0; background: transparent !important; font-size: 15px; line-height: 1.55; outline: 0; box-shadow: none !important; overflow-y: auto; }
.constellation-home .signal-question-row textarea::placeholder { color: #b8a5c1; }
.constellation-home .signal-question-row > button { min-width: 132px; min-height: 46px; padding: 0 20px; gap: 13px; font-size: 14px; font-weight: 650; background: #ecb1cf; box-shadow: none; }
.constellation-home .signal-question-row > button img { width: 16px; height: 16px; object-fit: contain; filter: brightness(.18); }
.constellation-home .constellation-overview {
  width: calc(100% - 140px);
  max-width: 1060px;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 42px;
  margin: clamp(14px, 3vh, 42px) auto 0;
  overflow: hidden;
}
.constellation-home .signal-recent,
.constellation-explore { min-height: 0; overflow: hidden; }
.constellation-home .signal-recent { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.constellation-home .signal-recent-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(231, 160, 191, .35) transparent; }
.constellation-home .signal-section-heading { gap: 12px; margin-bottom: 10px; }
.constellation-home .signal-section-heading h2, .constellation-explore h2 { margin: 0; font: 500 24px/1.4 Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; color: #f3e5eb; }
.constellation-home .signal-section-heading a { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 40px; color: #c2acc7; font-size: 12px; }
.constellation-home .signal-section-heading a img, .constellation-history-chevron, .constellation-explore a img { width: 12px; height: 12px; object-fit: contain; opacity: .7; }
.constellation-home .signal-recent-list > a { min-height: 49px; grid-template-columns: 16px minmax(0, 1fr) auto 12px; gap: 14px; border-bottom-color: rgba(218, 192, 227, .17); }
.constellation-history-star { height: 12px; width: 12px; object-fit: contain; }
.constellation-recent-content { display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; }
.constellation-recent-person { flex: none; max-width: 180px; overflow: hidden; color: #ded5e0; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.constellation-recent-topic { flex: none; max-width: 120px; overflow: hidden; color: #e4a6c6; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.constellation-recent-separator { flex: none; width: 1px; height: 16px; background: rgba(223, 193, 234, .3); }
.constellation-home .signal-recent-list .constellation-recent-question { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.constellation-home .signal-recent-list strong { font-size: 14px; font-weight: 400; }
.constellation-home .signal-recent-list time { color: #bca6c1; font: 12px var(--font-mono); }
.constellation-home .signal-empty-row { min-height: 0; padding: clamp(8px, 1.8vh, 24px) 0; border: 0; border-radius: 0; background: transparent; align-content: start; gap: 8px; }
.constellation-home .signal-empty-row strong { color: #ddcbdc; font-size: 15px; }
.constellation-home .signal-empty-row span { color: #b29db9; font-size: 13px; line-height: 1.8; }
.constellation-explore { padding-left: 36px; border-left: 1px solid rgba(223, 193, 234, .2); }
.constellation-explore h2 { margin-bottom: 12px; }
.constellation-explore a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; color: #e4d4e6; text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(218, 192, 227, .16); }
.constellation-explore a:last-child { border-bottom: 0; }
.constellation-explore a:hover, .constellation-home a:hover { color: #f2b6d5; }
.constellation-home button:focus-visible, .constellation-home a:focus-visible, .constellation-home select:focus-visible { outline: 2px solid #edb9d9 !important; outline-offset: 4px; }
.constellation-home [hidden] { display: none !important; }
body.signal-history-open { overflow: hidden; }
.signal-history-dialog[hidden] { display: none !important; }
.signal-history-dialog { position: fixed; inset: var(--signal-nav-height, 64px) 0 0; z-index: 170; display: grid; place-items: center; padding: 30px; }
.signal-history-backdrop { position: absolute; inset: 0; border: 0; background: rgba(9, 5, 17, .74); backdrop-filter: blur(9px); cursor: default; }
.signal-history-panel { position: relative; width: min(860px, calc(100vw - 48px)); max-height: min(760px, calc(100dvh - var(--signal-nav-height, 64px) - 60px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(224, 177, 232, .56); border-radius: 30px; background: linear-gradient(145deg, rgba(63, 38, 77, .98), rgba(28, 17, 43, .98)); box-shadow: 0 34px 90px rgba(5, 2, 12, .56), inset 0 0 54px rgba(233, 166, 205, .04); color: #f2e6ed; }
.signal-history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 34px 38px 24px; border-bottom: 1px solid rgba(226, 196, 235, .14); }
.signal-history-header p { margin: 0 0 9px; color: #c9b7cf; font-size: 10px; font-weight: 650; letter-spacing: .2em; }
.signal-history-header h2 { margin: 0; font: 500 34px/1.25 Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; color: #f8e8ca; }
.signal-history-header span { display: block; margin-top: 9px; color: #bcaabd; font-size: 13px; line-height: 1.7; }
.signal-history-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(225, 192, 232, .26); border-radius: 50%; background: rgba(255, 255, 255, .035); color: #eadce9; font-size: 25px; line-height: 1; cursor: pointer; }
.signal-history-close:hover { border-color: #e6b4d2; color: #f6c4df; }
.signal-history-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 9px; padding: 18px 38px; border-bottom: 1px solid rgba(226, 196, 235, .14); color: #bcaabd; }
.signal-history-summary strong { color: #f0b8d3; font: 500 25px/1 Georgia, serif; }
.signal-history-summary span { font-size: 12px; }
.signal-history-summary a { display: inline-flex; align-items: center; gap: 9px; color: #efdeea; font-size: 13px; text-decoration: none; }
.signal-history-summary a img { width: 11px; height: 11px; object-fit: contain; }
.signal-history-list { min-height: 180px; overflow-y: auto; padding: 8px 38px 30px; overscroll-behavior: contain; scrollbar-color: rgba(231, 160, 191, .35) transparent; }
.signal-history-card { min-height: 76px; display: grid; grid-template-columns: 15px minmax(0, 1fr) 12px; align-items: center; gap: 17px; border-bottom: 1px solid rgba(224, 194, 232, .13); color: #eee0e9; text-decoration: none; }
.signal-history-card:hover { color: #f2b6d5; }
.signal-history-card > img { width: 12px; height: 12px; object-fit: contain; opacity: .72; }
.signal-history-card span { min-width: 0; display: grid; gap: 7px; }
.signal-history-card strong { overflow: hidden; color: inherit; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.signal-history-card small { color: #ad9bb4; font: 11px/1.4 var(--font-mono); }
.signal-history-empty { min-height: 310px; display: grid; place-items: center; align-content: center; gap: 13px; padding: 38px; text-align: center; }
.signal-history-empty > img { width: 18px; height: 18px; object-fit: contain; }
.signal-history-empty strong { color: #f2e2e9; font: 500 23px/1.35 Georgia, 'Songti SC', serif; }
.signal-history-empty span { max-width: 440px; color: #b7a5bb; font-size: 13px; line-height: 1.8; }
.signal-history-empty button { min-height: 42px; margin-top: 8px; padding: 0 20px; border: 1px solid rgba(231, 181, 211, .5); border-radius: 999px; background: rgba(237, 177, 207, .1); color: #f0dce8; cursor: pointer; }
.signal-history-dialog button:focus-visible, .signal-history-dialog a:focus-visible { outline: 2px solid #edb9d9; outline-offset: 3px; }
@media (min-width: 1600px) and (min-height: 1050px) {
  .constellation-content { padding-top: 34px; }
  .constellation-wheel-shell { margin-top: 22px; height: 190px; }
  .constellation-home .constellation-overview { margin-top: 42px; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .constellation-content { padding-top: 9px; padding-bottom: 8px; }
  .constellation-heading h1 { font-size: clamp(36px, 5.5vh, 48px); }
  .constellation-wheel-shell { height: 112px; margin-top: 0; }
  .constellation-composer { padding-top: 6px; padding-bottom: 6px; border-radius: 999px; }
  .constellation-person, .constellation-person a, body .constellation-person select { min-height: 32px; }
  .constellation-home .signal-mode-tabs { margin-bottom: 14px; }
  .constellation-home .signal-mode-tabs button { min-height: 58px; padding-top: 5px; padding-bottom: 12px; }
  .constellation-home .signal-question-row { min-height: 52px; }
  body.has-desktop-rail .constellation-home .signal-question-row textarea[data-signal-question] { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
  .constellation-home .signal-question-row > button { min-height: 46px; }
  .constellation-home .constellation-overview { margin-top: 10px; }
  .constellation-home .signal-section-heading h2, .constellation-explore h2 { font-size: 20px; }
  .constellation-home .signal-section-heading { margin-bottom: 2px; }
  .constellation-home .signal-section-heading a { min-height: 30px; }
  .constellation-explore h2 { margin-bottom: 2px; }
  .constellation-explore a { min-height: 38px; }
}
@media (max-width: 1099px) {
  .constellation-content { width: calc(100% - 50px); padding-top: clamp(10px, 2vh, 25px); }
  .constellation-form.signal-ask-form { width: calc(100% - 20px); }
  .constellation-home .constellation-overview { width: calc(100% - 30px); gap: 28px; grid-template-columns: minmax(0, 1fr) 180px; }
  .constellation-explore { padding-left: 24px; }
}
@media (max-width: 600px) {
  .mobile-ask-shell[data-signal-view="home"] .constellation-home { padding-bottom: 0; background-position: center top; background-size: auto 100%; }
  .constellation-content { width: 100%; padding: 10px 18px 12px; }
  .constellation-heading h1 { font-size: clamp(29px, 7.8vw, 42px); letter-spacing: 0; }
  html[lang="en"] .constellation-heading h1 { font-size: 32px; }
  .constellation-wheel-shell { margin: 4px -18px 0; height: clamp(112px, 17vh, 146px); }
  .constellation-orbit { width: 100%; height: 290px; max-width: none; left: 50%; top: 44%; object-fit: cover; }
  .constellation-wheel { inset: 0 16px 22px; }
  .constellation-topic { font-size: 22px; }
  html[lang="en"] .constellation-topic { font-size: 18px; }
  .constellation-arrow { top: 50%; background: rgba(30, 17, 44, .74); }
  .constellation-arrow.previous { left: 0; }
  .constellation-arrow.next { right: 0; }
  .constellation-form.signal-ask-form { width: 100%; }
  .constellation-composer { border-radius: 22px; padding: 10px; }
  .constellation-person { min-height: 34px; }
  .constellation-person a, body .constellation-person select { min-height: 32px; font-size: 13px; }
  .constellation-home .signal-mode-tabs { grid-template-columns: 1fr; max-width: 100%; margin-bottom: 14px; }
  .constellation-home .signal-mode-tabs button { min-width: 0; min-height: 54px; gap: 5px; padding: 6px 5px 10px; }
  .signal-mode-star { width: 10px; height: 10px; }
  .signal-mode-tabs button strong { font-size: 14px; }
  .signal-mode-tabs button small { font-size: 10px; }
  .constellation-home .signal-question-row { grid-template-columns: auto minmax(0, 1fr); gap: 0; }
  body.has-desktop-rail .constellation-home .signal-question-row textarea[data-signal-question] { min-height: 48px; padding: 12px; font-size: 14px; }
  .constellation-home .signal-question-row > button { grid-column: 2; justify-self: end; min-height: 40px; min-width: 120px; font-size: 13px; padding: 0 16px; margin-top: 8px; }
  .constellation-home .constellation-overview { width: 100%; grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 12px; overflow-y: auto; }
  .constellation-home .signal-section-heading h2, .constellation-explore h2 { font-size: 22px; }
  .constellation-home .signal-recent-list > a { grid-template-columns: 12px minmax(0, 1fr) 12px; padding: 10px 0; row-gap: 5px; }
  .constellation-recent-content { flex-wrap: wrap; gap: 3px 8px; }
  .constellation-recent-topic + .constellation-recent-separator { display: none; }
  .constellation-home .signal-recent-list .constellation-recent-question { flex-basis: 100%; white-space: nowrap; line-height: 1.65; }
  .constellation-home .signal-recent-list time { grid-column: 2; grid-row: 2; }
  .constellation-history-chevron { grid-column: 3; grid-row: 1; }
  .constellation-explore { padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(223, 193, 234, .2); overflow: visible; }
  .signal-history-dialog { inset: var(--signal-nav-height, 116px) 0 0; align-items: end; padding: 0; }
  .signal-history-panel { width: 100%; max-height: calc(100dvh - var(--signal-nav-height, 116px) - 8px); border-radius: 26px 26px 0 0; border-bottom: 0; }
  .signal-history-header { padding: 24px 20px 18px; }
  .signal-history-header h2 { font-size: 28px; }
  .signal-history-summary { padding: 14px 20px; }
  .signal-history-list { padding: 4px 20px 24px; }
  .signal-history-card { min-height: 72px; }
  .signal-history-empty { min-height: 280px; padding: 28px 12px; }
}

/* The home folds away while its composer settles into the conversation dock. */
.constellation-home > .signal-home-departure {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
body .mobile-ask-shell[data-signal-view="conversation"] .constellation-content {
  display: block; width: 100%; padding: 0; min-height: 0;
}
body .mobile-ask-shell[data-signal-view="conversation"] .ask-stage {
  box-sizing: border-box; width: 100%; max-width: none !important;
  padding: 40px max(24px, calc((100% - 820px) / 2)) 150px !important;
}
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer {
  position: fixed; left: max(24px, calc((100% - 820px) / 2)) !important; right: auto !important;
  width: min(820px, calc(100% - 48px)) !important;
  max-width: 820px !important; bottom: 24px !important;
  margin-left: 0 !important; transform: none !important;
  transform-origin: top left;
}
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .ask-input-wrap {
  box-sizing: border-box; width: 100% !important;
  min-height: 68px; padding: 10px 14px !important;
  border: 1px solid rgba(225,181,231,.5) !important;
  border-radius: 26px !important;
  background: rgba(47,29,61,.96) !important;
  box-shadow: 0 12px 35px rgba(12,5,23,.24) !important;
}
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .ask-text-frame,
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer textarea {
  background: transparent !important; box-shadow: none !important; border: 0 !important;
}
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .ask-waiting-surface {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: #e5cddd !important; font-weight: 400;
}
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .composer-mode-button {
  background: rgba(230,177,211,.12) !important; box-shadow: none !important;
  color: #edcde1 !important; border-color: rgba(230,177,211,.24) !important;
}
@media (max-width: 640px) {
  body .mobile-ask-shell[data-signal-view="conversation"] .ask-stage { padding: 24px 18px 140px !important; }
  body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer { left: 12px !important; width: calc(100% - 24px) !important; bottom: 12px !important; }
}

.signal-entering-conversation .audio-toggle { visibility: hidden !important; }

/* Navigation now owns reports, tests, archive and music; the home keeps history. */
.constellation-home .constellation-overview {
  width: min(980px, calc(100% - 140px));
  max-width: 980px;
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1099px) {
  .constellation-home .constellation-overview { width: calc(100% - 30px); }
}
@media (max-width: 600px) {
  .constellation-home .constellation-overview { width: 100%; }
}
/* Legacy card display rules must not expose a closed prompt on reload. */
body:has(.constellation-home) .framework-switch-card[hidden] { display: none !important; }

/* Palette bridge: keep the constellation layout intact while using the same
   deep plum, lilac and blush tokens as the profile workspace. */
.mobile-ask-shell[data-signal-view="home"] .constellation-home,
.mobile-ask-shell[data-signal-view="conversation"] .constellation-home {
  background-color: #080914;
  background-image: url('/web-static/brand/constellation-stage-background.png');
  background-blend-mode: normal;
  box-shadow: inset 0 0 0 100vmax rgba(8, 9, 20, .82);
  scrollbar-color: #5f4967 #080914;
}

.constellation-heading h1 { color: #f1d5a7; }
.constellation-heading h1 > span,
.constellation-topic.active { color: #e4a6c6; }
.constellation-orbit { opacity: .8; filter: none; }
.constellation-topic { color: #a19aaa; }
.constellation-topic:focus-visible { outline-color: #e4a6c6; }
.constellation-arrow:hover { background: rgba(225, 226, 245, .05); }

.constellation-composer {
  border-color: var(--signal-line);
  background: rgba(17, 18, 35, .86);
  box-shadow: inset 0 0 24px rgba(208, 149, 194, .025), 0 8px 30px rgba(0, 0, 8, .22);
}
.constellation-composer:focus-within {
  border-color: rgba(228, 166, 198, .6);
  box-shadow: 0 0 0 3px rgba(228, 166, 198, .08);
}
.constellation-person {
  border-color: transparent;
  background: transparent;
}
body .constellation-person select,
.constellation-person a { color: #ebe8ef !important; }
.constellation-person option { background: #0d0e1d; color: #ebe8ef; }
.constellation-home .signal-mode-tabs button { border-color: var(--signal-line); color: #c1bac8; }
.constellation-home .signal-mode-tabs button:hover { border-color: rgba(228, 166, 198, .46); }
.constellation-home .signal-mode-tabs button.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #f1d5a7;
}
body.has-desktop-rail .constellation-home .signal-question-row textarea[data-signal-question] {
  border-color: rgba(223, 215, 239, .2) !important;
  color: #f0edf3;
}
.constellation-home .signal-question-row textarea::placeholder { color: #7f788e; }
.constellation-home .signal-question-row > button { background: #e4a6c6; color: #171223; }
.constellation-home .signal-question-row > button:hover { background: #edb5d2; }
.constellation-home .signal-recent-list { scrollbar-color: rgba(228, 166, 198, .3) transparent; }
.constellation-home .signal-section-heading h2,
.constellation-explore h2 { color: #eeeaf0; }
.constellation-home .signal-section-heading a { color: #918ba2; }
.constellation-home .signal-recent-list > a,
.constellation-explore a { border-color: rgba(220, 213, 241, .12); }
.constellation-home .signal-recent-list time { color: #918ba2; }
.constellation-home .signal-empty-row strong { color: #d8d4dc; }
.constellation-home .signal-empty-row span { color: #918ba2; }
.constellation-explore { border-color: rgba(220, 213, 241, .12); }
.constellation-explore a { color: #d4d0d8; }
.constellation-explore a:hover,
.constellation-home a:hover { color: #e4a6c6; }
.constellation-home button:focus-visible,
.constellation-home a:focus-visible,
.constellation-home select:focus-visible { outline-color: #e4a6c6 !important; }

.signal-history-backdrop { background: rgba(4, 5, 13, .78); }
.signal-history-panel {
  border-color: var(--signal-line);
  background: #111223;
  box-shadow: 0 34px 90px rgba(0, 0, 7, .58), inset 0 0 54px rgba(208, 149, 194, .025);
  color: #eeeaf0;
}
.signal-history-header,
.signal-history-summary { border-color: rgba(220, 213, 241, .12); }
.signal-history-header p,
.signal-history-header span,
.signal-history-summary { color: #918ba2; }
.signal-history-header h2 { color: #f1d5a7; }
.signal-history-close { border-color: var(--signal-line); color: #d7d3dc; }
.signal-history-close:hover { border-color: #e4a6c6; color: #f1c1d9; }
.signal-history-summary strong { color: #e4a6c6; }
.signal-history-summary a,
.signal-history-card { color: #ddd9e1; }
.signal-history-list { scrollbar-color: rgba(228, 166, 198, .3) transparent; }
.signal-history-card { border-color: rgba(220, 213, 241, .1); }
.signal-history-card:hover { color: #e4a6c6; }
.signal-history-card small { color: #918ba2; }
.signal-history-empty strong { color: #e8e4ea; }
.signal-history-empty span { color: #918ba2; }
.signal-history-empty button {
  border-color: rgba(228, 166, 198, .46);
  background: rgba(228, 166, 198, .1);
  color: #f0dce8;
}
.signal-history-dialog button:focus-visible,
.signal-history-dialog a:focus-visible { outline-color: #e4a6c6; }

body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .ask-input-wrap {
  border-color: var(--signal-line) !important;
  background: rgba(17, 18, 35, .96) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 8, .28) !important;
}
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .ask-waiting-surface { color: #d7d3dc !important; }
body .mobile-ask-shell[data-signal-view="conversation"] #ask-composer .composer-mode-button {
  background: rgba(228, 166, 198, .1) !important;
  color: #f0dce8 !important;
  border-color: rgba(228, 166, 198, .24) !important;
}

/* Homepage balance pass: one centered primary stage, followed by a compact
   reflection shelf. The page stays minimal; hierarchy comes from width and
   rhythm instead of adding more containers. */
.constellation-content {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vh, 34px);
}

.mobile-ask-shell[data-signal-view="home"] .constellation-home {
  display: block !important;
}

.constellation-primary {
  width: 100%;
  align-self: center;
}

.constellation-home .constellation-overview {
  width: min(720px, calc(100% - 120px));
  max-width: 720px;
  min-height: auto;
  margin: 0 auto;
  overflow: visible;
}

.constellation-home .signal-section-heading {
  margin-bottom: 6px;
}

.constellation-home .signal-section-heading h2 {
  font-size: 20px;
}

.constellation-home .signal-recent-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: visible;
}

.constellation-home .signal-recent-list > a {
  min-height: 54px;
  grid-template-columns: 12px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-top: 1px solid rgba(220, 213, 241, .14);
  border-bottom: 0;
}

.constellation-home .signal-recent-list > a:hover {
  border-top-color: rgba(228, 166, 198, .42);
}

.constellation-home .constellation-recent-content {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
}

.constellation-home .constellation-recent-person,
.constellation-home .constellation-recent-topic {
  max-width: 132px;
  font-size: 12px;
}

.constellation-home .signal-recent-list .constellation-recent-question {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #d8d4dc;
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.constellation-home .signal-recent-list time {
  display: none;
}

.constellation-home .constellation-history-chevron {
  align-self: center;
  margin-top: 0;
}

@media (min-width: 1100px) and (max-height: 820px) {
  .constellation-content { gap: 14px; }
  .constellation-home .signal-recent-list > a { min-height: 68px; padding-top: 10px; }
}

@media (min-width: 1100px) and (min-height: 1200px) {
  .mobile-ask-shell[data-signal-view="home"] .constellation-content {
    position: relative;
    top: 50%;
    width: min(1240px, calc(100% - 120px));
    height: min(1080px, 100%);
    transform: translateY(-50%);
  }
}

@media (max-width: 1099px) {
  .constellation-home .constellation-overview {
    width: min(760px, calc(100% - 48px));
  }
}

@media (max-width: 600px) {
  .constellation-content {
    grid-template-rows: auto auto;
    align-content: start;
    gap: 20px;
  }

  .constellation-primary { align-self: start; }

  .constellation-home .constellation-overview { width: 100%; }

  .constellation-home .signal-recent-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .constellation-home .signal-recent-list > a {
    min-height: 72px;
    grid-template-columns: 12px minmax(0, 1fr) 10px;
    padding: 12px 0 9px;
  }

  .constellation-home .constellation-recent-content {
    display: grid;
    grid-template-columns: auto 1px minmax(0, auto);
    gap: 7px 9px;
    overflow: visible;
  }

  .constellation-home .signal-recent-list .constellation-recent-question {
    display: -webkit-box;
    grid-column: 1 / -1;
    flex-basis: auto;
    line-height: 1.5;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Final homepage composition: the orbit leads into one quiet composer, then
   three unmistakable reading modes. The recent list stays a narrow column. */
.constellation-home .constellation-primary { display: grid; justify-items: center; gap: clamp(20px, 3vh, 34px); }
.constellation-home .constellation-wheel-shell { width: 100%; height: clamp(172px, 24vh, 250px); margin: 0 -15px; }
.constellation-home .constellation-orbit { top: 52%; width: min(100%, 1050px); }
.constellation-home .constellation-wheel { inset: 0 30px; }
.constellation-home .constellation-form.signal-ask-form { display: flex; flex-direction: column; align-items: center; width: min(1000px, 68vw); max-width: none; margin: 0; }
.constellation-home .constellation-composer { width: 100%; padding: 7px 9px; border: 1px solid rgba(223, 204, 232, .26); border-radius: 999px; background: rgba(46, 34, 62, .63); box-shadow: 0 12px 42px rgba(0, 0, 5, .16); }
.constellation-home .signal-question-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 15px; min-height: 56px; }
.constellation-home .constellation-person { position: relative; display: grid; place-items: center; width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; background: rgba(222, 205, 227, .14); }
.constellation-home .constellation-person-control { position: absolute; inset: 0; display: block; }
.constellation-home .constellation-person-initial { display: grid; place-items: center; width: 56px; height: 56px; color: #f1d5a7; font: 400 25px/1 'Songti SC', 'Noto Serif CJK SC', serif; text-decoration: none; }
.constellation-home .constellation-person a.constellation-person-initial { width: 56px; height: 56px; min-height: 56px; font-size: 32px; }
body .constellation-home .constellation-person select { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; min-height: 0; padding: 0 !important; opacity: 0; cursor: pointer; }
.constellation-home .signal-question-row textarea[data-signal-question],
body.has-desktop-rail .constellation-home .signal-question-row textarea[data-signal-question] { width: 100%; min-height: 40px; max-height: 150px; padding: 8px 0; border: 0 !important; background: transparent !important; color: #f0edf3; font-size: 18px; line-height: 1.35; resize: none; }
.constellation-home .signal-question-row textarea::placeholder { color: #b5a7be; opacity: 1; }
.constellation-home .signal-question-row textarea[data-signal-question] { scrollbar-width: none; }
.constellation-home .signal-question-row textarea[data-signal-question]::-webkit-scrollbar { display: none; }
.constellation-home .signal-question-row > button { display: grid; place-items: center; grid-column: auto; justify-self: auto; width: 56px; height: 56px; min-width: 56px; min-height: 56px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #e4a6c6; }
.constellation-home .signal-question-row > button img { width: 54px; height: 54px; object-fit: contain; filter: none; }
.constellation-home .signal-mode-tabs { display: block; width: min(390px, 100%); max-width: 390px; margin: 12px auto 0; border: 0; background: transparent; }
.constellation-home .signal-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.constellation-home .signal-mode-tabs button { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 3px 0 9px; color: #a7a0b1; }
.constellation-home .signal-mode-tabs button::after { display: block; right: 12px; left: 12px; bottom: 0; height: 2px; background: transparent; }
.constellation-home .signal-mode-tabs button.active { color: #f5dba5; }
.constellation-home .signal-mode-tabs button.active::after { background: #f5dba5; }
.constellation-home .signal-mode-tabs button strong { font: 400 16px/1.3 Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; white-space: nowrap; }
.constellation-home .signal-mode-check { visibility: hidden; width: 12px; font: 600 16px/1 sans-serif; }
.constellation-home .signal-mode-tabs button.active .signal-mode-check { visibility: visible; }
.constellation-home .signal-mode-icon { display: block; flex: 0 0 42px; width: 42px; height: 42px; background-image: url('/web-static/brand/constellation-mode-icons.png'); background-repeat: no-repeat; background-size: 300% 100%; filter: grayscale(.7); opacity: .65; }
.constellation-home .signal-mode-icon-chart { background-position: 0 50%; }
.constellation-home .signal-mode-icon-bazi { background-position: 50% 50%; }
.constellation-home .signal-mode-icon-tarot { background-position: 100% 50%; }
.constellation-home .signal-mode-tabs button.active .signal-mode-icon,
.constellation-home .signal-mode-tabs button:hover .signal-mode-icon { opacity: 1; filter: none; }
.constellation-home .constellation-overview { width: min(820px, 51vw); }
/* Approved material-rich stage: the artwork owns its lighting. Do not tint
   the entire surface, which would flatten brass, glass and planet colors. */
.mobile-ask-shell[data-signal-view="home"] .constellation-home {
  background-color: #080914;
  background-image: url('/web-static/brand/constellation-stage-materials-v2.png');
  box-shadow: none;
}
.constellation-home .constellation-topic.active { color: #f1dfb8; }
.constellation-home .constellation-topic { color: #b4adbd; }
.constellation-home .constellation-composer {
  background: rgba(17, 18, 35, .94);
  border-color: rgba(220, 213, 241, .3);
  box-shadow: 0 12px 42px rgba(0, 0, 5, .16);
}
.constellation-home .constellation-composer:focus-within {
  border-color: rgba(228, 166, 198, .6);
  box-shadow: 0 0 0 3px rgba(228, 166, 198, .08);
}
.constellation-home .signal-question-row textarea::placeholder { color: #b4adbd; }
.constellation-home .signal-section-heading h2 { color: #f1dfb8; }

@media (min-width: 1100px) and (min-height: 821px) {
  .constellation-home .constellation-content { padding-bottom: 90px; }
  .constellation-home .constellation-primary { gap: 18px; }
  .constellation-home .constellation-wheel-shell { height: 210px; }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .constellation-home .constellation-primary { gap: 14px; }
  .constellation-home .constellation-wheel-shell { height: clamp(130px, 19vh, 170px); }
  .constellation-home .signal-recent-list > a { min-height: 54px; }
}

@media (max-width: 600px) {
  .constellation-home .constellation-primary { gap: 16px; }
  .constellation-home .constellation-wheel-shell { height: clamp(135px, 21vh, 190px); margin: 0 -18px; }
  .constellation-home .constellation-form.signal-ask-form { width: 100%; }
  .constellation-home .constellation-composer { padding: 7px 8px; border-radius: 999px; }
  .constellation-home .signal-question-row { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 10px; min-height: 42px; }
  .constellation-home .constellation-person,
  .constellation-home .constellation-person-initial,
  .constellation-home .constellation-person a.constellation-person-initial { width: 42px; height: 42px; min-height: 42px; font-size: 22px; }
  .constellation-home .signal-question-row textarea[data-signal-question],
  body.has-desktop-rail .constellation-home .signal-question-row textarea[data-signal-question] { min-height: 36px; padding: 7px 0; font-size: 14px; }
  .constellation-home .signal-question-row > button { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
  .constellation-home .signal-question-row > button img { width: 40px; height: 40px; }
  .constellation-home .signal-mode-tabs { margin-top: 10px; }
  .constellation-home .signal-mode-options { gap: 4px; }
  .constellation-home .signal-mode-tabs button { min-height: 44px; gap: 4px; }
  .constellation-home .signal-mode-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .constellation-home .signal-mode-tabs button strong { font-size: 14px; }
  .constellation-home .constellation-overview { width: 100%; }
}
