/* A quiet, typeset birth chart. Element colours stay functional. */
.cp-page {
  --cp-ink:var(--ink);--cp-muted:#655e68;--cp-line:var(--line);
  --cp-violet:var(--accent);--cp-lilac:#eee8f1;--cp-gold:#765f43;
  gap:30px;padding:22px 0 16px;color:var(--ink);
}
.cp-page :is(.cp-card,.cp-birth) {
  padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;
}
.cp-page .cp-birth {overflow:visible}
.cp-birth .edition-chart-name {
  font:600 clamp(31px,8.3vw,46px)/1.25 var(--serif);letter-spacing:-.055em;
  margin:0 0 13px;overflow-wrap:anywhere;
}
.cp-birth :is(.cp-birth-primary,.cp-birth-facts,.cp-birth-foot){padding-inline:0}
.cp-birth .cp-birth-primary {padding-top:0;gap:4px 7px;align-items:baseline}
.cp-birth-primary strong{font-size:15px;letter-spacing:.015em;font-weight:560}
.cp-page .cp-seal {padding:0 5px;color:#fff;background:#67526e;border-radius:3px;font-size:11px;line-height:18px}
.cp-page .cp-tiny-tag {color:#5f555f;background:transparent;padding:0;font-size:12px}
.cp-birth-primary .cp-birth-nayin {color:#6c5c48;margin-inline-start:0;font-size:11px}
.cp-page .cp-birth-facts {font-size:12px;gap:2px 12px;padding-block:9px 10px}
.cp-page .cp-birth-foot {border-bottom:1px solid var(--cp-line);border-top:0;background:transparent;gap:1px 10px;padding-block:0 8px;justify-content:flex-start}
.cp-birth-foot [data-jump-transits]{min-height:44px;font-size:13px;padding:5px 0}
.cp-page .cp-heading {margin:0 0 12px;gap:6px}
.cp-page .cp-heading h2 {font:600 22px/1.4 var(--serif);letter-spacing:-.025em}
.cp-page .cp-heading h2::before {display:none}
.cp-page .cp-legend {gap:4px}
.cp-page .cp-matrix {gap:0;border-block:1px solid #c9c0c9}
.cp-matrix .cp-pillar {
  border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;
  grid-template-rows:31px 25px 64px 64px 86px repeat(3,46px) minmax(75px,auto);
}
.cp-matrix .cp-pillar:last-child {border-right:0}
.cp-matrix .cp-pillar.is-master {background:#eee7ef}
.cp-matrix .cp-pillar-title,.cp-matrix .is-master .cp-pillar-title {background:transparent}
.cp-matrix .cp-pillar-title small{font-size:10px}
.cp-matrix .cp-pillar .cp-god,.cp-matrix .cp-pillar .cp-large-char:nth-child(3) {border-bottom:0}
.cp-matrix .cp-pillar > :not(:last-child){border-bottom-color:#ded7dc}
.cp-matrix .cp-large-char strong {font:550 35px/1.12 var(--serif)}
.cp-matrix .cp-hidden {padding-block:6px}
.cp-matrix .cp-stars span {padding:0 2px;border-radius:0;background:transparent;color:#6b5746}
.cp-page .cp-rule {margin:0;padding:16px 0}
.cp-page .cp-matrix-foot {border-bottom:1px solid var(--line);padding:6px 0 12px;justify-content:space-between}
.cp-transits .cp-instant {display:flex;align-items:baseline;justify-content:flex-start;gap:3px 8px;background:#ede8eb;border:0;border-radius:0;padding:9px 11px}
.cp-transits .cp-instant >span,.cp-transits .cp-instant b {font-size:11px}
.cp-transits .edition-chart-reset {margin-left:auto;min-height:36px;background:transparent;padding:0 2px;color:var(--accent);font-size:12px;font-weight:650}
.cp-transits .edition-chart-reset:disabled {color:#665c69;opacity:.76}
.cp-transits .cp-subtitle {margin:20px 0 7px}
.cp-transits .cp-subtitle h3 {font:650 16px/1.45 var(--sans)}
.cp-page :is(.cp-decades,.cp-years,.cp-months) {gap:4px}
.cp-page :is(.cp-decades,.cp-years,.cp-months) button {
  border:1px solid #ded8db;border-radius:5px;color:var(--ink);background:#faf8f5
}
.cp-page .cp-decades button {min-height:79px}
.cp-page .cp-years button {min-height:58px}
.cp-page :is(.cp-decades,.cp-years,.cp-months) button[aria-pressed=true] {border-color:var(--accent);background:var(--accent);color:white;box-shadow:none}
.cp-page :is(.cp-decades,.cp-years,.cp-months) button[aria-pressed=true] :is(b,strong,small,span){color:white}
.cp-transits .cp-month-window {margin:11px 0 20px;padding:12px 13px;border-color:#7c6085;background:#ede7ed}
.cp-page .cp-compare{border-radius:1px;border-color:#d5cdd3}
.cp-page .cp-compare thead th{background:#ece7e5}
.cp-page .cp-compare thead th:nth-child(-n+4):not(:first-child){background:#e7dfeb}
.cp-page .cp-compare tr>:first-child {background:#f1edeb}
.cp-page .cp-compare tr>:nth-child(2){background:#f0eaf1}
.cp-page .cp-ask{border:0;border-radius:8px;background:#eae3ed;color:#46334e!important}
.cp-page .cp-ask-icon {background:#60496d;color:#fff;border-radius:50%}
.cp-page .cp-relations,.cp-page .cp-deep {gap:0;border-top:1px solid var(--line)}
.cp-page :is(.cp-relations article,.cp-deep article) {background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 0}
.cp-page .cp-rel-icon {border-radius:50%}
.cp-page .cp-analysis-summary {background:#eee8ec;border:0;border-radius:6px}
.cp-page .cp-analysis-summary h3,.cp-page .cp-deep header b {color:var(--accent)}
.cp-page .cp-dual>div {background:transparent;border:0;border-left:2px solid #ddd2cd;border-radius:0}
.cp-page .cp-dual>div:last-child {border-color:#d8cada}
.cp-page .cp-elements {padding-block:4px}

/* Chat has one focal question. Context, follow-ups and input have distinct weights. */
body .shell[data-page=chat] {
  --chat-paper:var(--paper);--chat-ink:var(--ink);--chat-purple:var(--accent);
  --chat-muted:#665f69;--chat-rule:var(--line);
}
.shell[data-page=chat] .chat-page {font-family:var(--sans);padding-top:8px;line-height:1.7}
.chat-page .chat-birth {border-bottom:1px solid #d7d1cf}
.chat-page .chat-birth-head {min-height:48px;gap:7px}
.chat-page .chat-birth-name {font-size:13px}
.chat-page .chat-birth-overview {font:530 14px/1.5 var(--serif);color:#584c60}
.chat-page .chat-source {margin-top:12px;border-radius:5px;background:#ede7ee;border-left:2px solid #9a829e}
.chat-page .chat-source-title{min-height:44px}
.chat-page .chat-log {gap:23px}
.chat-page section.chat-discovery {display:grid;grid-template-columns:minmax(0,1fr);margin:clamp(26px,7dvh,74px) 0 8px}
.chat-discovery h2.chat-prompt-title {
  grid-row:1;margin:0 0 28px;color:var(--accent);font:560 clamp(34px,9vw,49px)/1.24 var(--serif);
  white-space:pre-line;letter-spacing:-.055em;
}
.chat-discovery h2.chat-prompt-title::first-line{color:var(--ink)}
.chat-discovery .chat-question-list {grid-row:2}
.chat-discovery button.chat-shuffle {
  grid-row:3;justify-self:end;min-height:44px;margin-top:5px;padding:5px 2px;
  font-weight:570;font-size:13px;gap:6px;
}
.chat-discovery .chat-suggestions {border-top:1px solid #bdb1be}
.chat-discovery .chat-suggestions button {
  min-height:66px;padding:14px 3px;line-height:1.65;font-size:15px;color:var(--ink);
  border-bottom:1px solid #d8d1d4;gap:16px;
}
.chat-discovery .chat-suggestions .chat-icon {width:18px;height:18px;color:var(--accent)}
.chat-page .chat-user>.chat-bubble {background:#eae3ed;color:#42374a;border-radius:15px 15px 3px 15px;padding:10px 14px}
.chat-page .chat-avatar {width:24px;height:24px;margin-top:2px;border-radius:50%;background:#e9e1eb}
.chat-page .chat-avatar .chat-icon{width:13px;height:13px}
.chat-page .chat-assistant {gap:10px}
.chat-page .chat-message-footer {margin-top:8px}
.chat-page .chat-icon-button {width:38px;height:38px}
.chat-page .chat-followups {margin-left:34px}
.chat-followups .chat-suggestions button {border-color:#ddd6da;min-height:45px}
.chat-page .chat-report h3 {font-size:16px}
.chat-page .chat-dock {bottom:calc(62px + env(safe-area-inset-bottom));padding:10px 0 12px}
.chat-page .chat-compose {min-height:53px;padding:4px 5px 4px 17px;border-color:#c2b6c5;background:#fffdfa;border-radius:15px}
.chat-page .chat-compose:focus-within {border-color:var(--accent);outline:1px solid var(--accent)}
.chat-page .chat-send {width:44px;height:44px;border-radius:11px}
.chat-page .chat-send:disabled {color:#796a85;background:#e9e3eb}
.chat-page .chat-wait,.chat-page .chat-hint,.chat-page .chat-status {font-size:13px}
.chat-page .chat-status {padding:8px 2px}
@media(min-width:760px){
  .cp-page{gap:35px;padding-top:30px}
  .shell[data-page=chat] .chat-page{min-height:calc(100dvh - 65px - 62px - env(safe-area-inset-bottom));max-width:608px;margin-inline:auto}
  .chat-discovery h2.chat-prompt-title {margin-bottom:35px}
}
@media(max-width:355px){
  .cp-page .cp-legend{gap:2px}
  .cp-page .cp-heading h2{font-size:20px}
  .chat-page .chat-birth-overview {font-size:12px}
  .chat-discovery h2.chat-prompt-title{font-size:32px}
}
@media(max-height:630px){
  .chat-page section.chat-discovery{margin-top:6px}
  .chat-discovery h2.chat-prompt-title{margin-bottom:16px}
}
@media(hover:hover){
  .cp-page .edition-chart-reset:hover:not(:disabled),.chat-page button.chat-shuffle:hover{color:#32223a;background:#eee7ed}
  .chat-page .chat-suggestions button:hover{background:#eee8eb}
  .cp-page :is(.cp-years,.cp-months,.cp-decades) button:hover:not([aria-pressed=true]){background:#efe8ef}
}
