/* Ask Seektra — mobile-first, in-tab */
#askRoot { max-width: 560px; margin: 0 auto; }

.ask-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.ask-head h2 { font-family: Georgia, serif; font-size: 1.3rem; margin: 0; }
.ask-s { font-size: 0.74rem; color: var(--text-muted); }
.ask-bal { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 700;
  color: var(--accent-teal, #68e0c8); background: rgba(104,224,200,0.1); border: 1px solid rgba(104,224,200,0.3);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.ask-new { width: 100%; padding: 14px; border: none; border-radius: 13px; font-family: inherit; font-weight: 700;
  font-size: 1rem; color: #1a0b2e; background: linear-gradient(120deg, var(--accent), var(--accent-gold, #e8943a)); cursor: pointer; }
.ask-free { text-align: center; font-size: 0.74rem; color: var(--text-muted); margin: 8px 0 22px; }

.ask-seclab { font-size: 0.66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.ask-th { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border-color);
  border-radius: 12px; margin-bottom: 8px; background: var(--input-bg); cursor: pointer; transition: background .13s; }
.ask-th:hover { background: rgba(168,140,255,0.06); }
.ask-thq { flex: 1; min-width: 0; }
.ask-thq b { font-size: 0.9rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-thq small { font-size: 0.72rem; color: var(--text-muted); }
.ask-thpill { font-size: 1rem; flex: none; }

.ask-back { background: none; border: none; color: var(--text-muted); font-family: inherit; font-size: 0.8rem;
  cursor: pointer; padding: 0; margin-bottom: 14px; }
.ask-back:hover { color: var(--text-primary); }

.ask-lab { font-size: 0.72rem; color: var(--text-secondary); font-weight: 600; margin: 0 0 7px; }
.ask-types { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.ask-type { padding: 7px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  background: var(--input-bg); border: 1.5px solid var(--border-color); color: var(--text-muted); }
.ask-type.on { background: rgba(192,132,252,0.14); border-color: rgba(192,132,252,0.4); color: #d9b8ff; }

.ask-addppl { font-size: 0.78rem; color: var(--accent); background: none; border: none; font-family: inherit;
  cursor: pointer; padding: 4px 0; margin-bottom: 10px; }
.ask-ppl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 12px; border-radius: 11px;
  border: 1px dashed rgba(192,132,252,0.3); background: rgba(192,132,252,0.03); }
.ask-ppl-more button { background: none; border: none; color: var(--accent); font-family: inherit; font-size: 0.74rem; cursor: pointer; padding: 0; }
.ask-ppl-more input { margin-top: 8px; }

.ask-inp { width: 100%; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--border-color);
  color: var(--text-primary); border-radius: 9px; padding: 10px 12px; font-family: inherit; font-size: 0.88rem; }
textarea.ask-inp { resize: none; min-height: 70px; }
.ask-inp:focus { outline: none; border-color: rgba(192,132,252,0.5); }
.ask-cc { text-align: right; font-size: 0.68rem; color: var(--text-muted); margin-top: 4px;
  min-height: 1em; line-height: 1.5; }
/* Amber near the limit, never red — running out of room is not an error. */
.ask-cc-warn { color: var(--accent-gold, #e8943a); }
.ask-cc-full { color: var(--accent-gold, #e8943a); text-align: left; font-size: 0.72rem; }
/* In the drawer composer the counter sits on its own row under the textarea. */
.ask-composer .ask-cc { flex-basis: 100%; text-align: right; margin: 2px 0 0; }

.ask-astros { display: flex; gap: 8px; }
.ask-ab { flex: 1; text-align: center; padding: 10px 6px; border-radius: 11px; cursor: pointer;
  background: var(--input-bg); border: 1.5px solid var(--border-color); }
.ask-ab.on { background: rgba(192,132,252,0.12); border-color: rgba(192,132,252,0.4); }
.ask-abn { font-size: 0.84rem; font-weight: 700; color: #d9b8ff; }
.ask-abv { font-size: 0.66rem; color: var(--text-muted); }

.ask-go { width: 100%; margin-top: 16px; padding: 14px; border: none; border-radius: 12px; font-family: inherit;
  font-weight: 700; font-size: 0.95rem; color: #1a0b2e; background: linear-gradient(120deg, var(--accent), var(--accent-gold, #e8943a)); cursor: pointer; }
.ask-go small { font-weight: 600; opacity: .72; font-size: 0.74rem; }
.ask-disc { text-align: center; font-size: 0.68rem; color: var(--text-muted); margin-top: 10px; font-style: italic; }

/* thread */
.ask-qmsg { background: rgba(192,132,252,0.12); border: 1px solid rgba(192,132,252,0.3);
  border-radius: 13px 13px 3px 13px; padding: 10px 14px; margin: 0 0 12px auto; max-width: 82%; font-size: 0.88rem; color: var(--text-primary); }
.ask-amsg { background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 13px; padding: 15px 16px; margin-bottom: 12px; }
.ask-who { display: flex; align-items: center; gap: 6px; font-size: 0.73rem; color: var(--text-muted);
  margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid var(--border-color); }
.ask-who b { color: #d9b8ff; }
.ask-sec { margin-bottom: 11px; } .ask-sec:last-child { margin-bottom: 0; }
.ask-sh { font-size: 0.66rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; margin: 0 0 3px; }
.ask-sh.a { color: var(--accent-gold, #e8943a); } .ask-sh.b { color: #d9b8ff; }
.ask-sh.c { color: var(--text-muted); } .ask-sh.d { color: var(--accent-teal, #68e0c8); }
.ask-sp { font-size: 0.87rem; margin: 0; color: #e8def7; line-height: 1.55; }

.ask-fus { display: flex; flex-direction: column; gap: 7px; margin: 4px 0; }
.ask-fu { text-align: left; padding: 9px 13px; border-radius: 10px; font-size: 0.82rem; cursor: pointer;
  background: var(--input-bg); border: 1px solid rgba(192,132,252,0.3); color: #d9b8ff; font-family: inherit; }
.ask-fu:hover { background: rgba(192,132,252,0.14); }
.ask-fuinp { margin-top: 4px; min-height: 54px; }
.ask-fugo { align-self: flex-end; padding: 8px 16px; border-radius: 999px; border: none; font-family: inherit;
  font-weight: 700; font-size: 0.82rem; color: #1a0b2e; background: var(--accent); cursor: pointer; }
.ask-fumeta { font-size: 0.72rem; color: var(--text-muted); margin: 8px 0 2px; }
.ask-newq2 { width: 100%; margin-top: 12px; background: none; border: 1px solid rgba(192,132,252,0.3);
  color: #d9b8ff; font-family: inherit; font-size: 0.82rem; font-weight: 600; padding: 10px; border-radius: 11px; cursor: pointer; }

/* loader with meaningful text + dots */
.ask-loading { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text-secondary); }
.ask-dots { display: inline-flex; gap: 4px; }
.ask-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;
  animation: askb 1.2s infinite ease-in-out; }
.ask-dots i:nth-child(2) { animation-delay: .15s; } .ask-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes askb { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---- other-person pills + inline form ---- */
.ask-person-pills { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.ask-pill-add { font-family: inherit; font-size: 0.88rem; font-weight: 600; padding: 0.55rem 1rem; border-radius: 999px;
  cursor: pointer; border: none; background: linear-gradient(120deg, #c084fc, #e8943a); color: #1a0e2e; }
.ask-pill-add:hover { filter: brightness(1.06); }
.ask-pill-skip { font-family: inherit; font-size: 0.88rem; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }
.ask-pill-skip:hover { color: var(--text-primary); }
.ask-personform { display: flex; flex-direction: column; gap: 9px; }
.ask-personform .ask-inp { width: 100%; box-sizing: border-box; }
.ask-personform .ask-row2 { display: flex; gap: 9px; }
.ask-personform .ask-row2 .ask-inp { flex: 1; }
.ask-ac-wrap { position: relative; }
.ask-ac { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 3px;
  background: var(--bg-card, #1a1030); border: 1px solid var(--border-color); border-radius: 11px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5); max-height: 220px; overflow-y: auto; }
.ask-ac.show { display: block; }
.ask-ac-item { padding: 9px 12px; cursor: pointer; font-size: 0.9rem; color: var(--text-primary); }
.ask-ac-item:hover { background: rgba(192,132,252,0.12); }
.ask-ac-sub { color: var(--text-muted); font-size: 0.82rem; }
.ask-review { padding: 4px 2px; }
.ask-rev-title { font-family: Georgia, serif; font-size: 1.25rem; color: var(--text-primary); margin: 0 0 4px; }
.ask-rev-sub { font-size: 0.86rem; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; }
.ask-rev-card { background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 14px;
  overflow: hidden; margin-bottom: 16px; }
.ask-rev-row { display: flex; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--border-soft); }
.ask-rev-row:last-child { border-bottom: none; }
.ask-rev-k { flex: none; width: 96px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); font-weight: 700; padding-top: 2px; }
.ask-rev-v { flex: 1; min-width: 0; font-size: 0.92rem; color: var(--text-primary); line-height: 1.5; }
.ask-rev-q { color: #f2e4ff; font-style: italic; }
.ask-rev-edit { display: block; width: 100%; margin-top: 10px; background: none; border: none;
  color: var(--text-secondary); font-family: inherit; font-size: 0.88rem; padding: 8px; cursor: pointer; }
.ask-rev-edit:hover { color: var(--text-primary); }
.ask-astro-status { display: inline-flex; align-items: center; gap: 9px; }
.ask-astro-nm { font-family: Georgia, serif; font-size: 1.15rem; color: var(--text-primary); }
.ask-astro-state { font-family: -apple-system, system-ui, sans-serif; font-size: 0.72rem;
  color: var(--text-muted); font-style: italic; }
/* the presence dot: solid green = here/ready; pulsing = processing */
.ask-live-dot { width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,0.6); }
.ask-live-dot.busy { animation: ask-live-pulse 1.3s ease-in-out infinite; }
@keyframes ask-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,220,132,0.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 7px rgba(61,220,132,0);  transform: scale(1.12); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0);    transform: scale(1); }
}

/* ---- typing indicator (calm, branded — replaces the old dots in-answer) ---- */
.ask-typing { display: inline-flex; align-items: center; gap: 4px; }
.ask-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block; opacity: .35; animation: ask-type 1.25s infinite ease-in-out; }
.ask-typing i:nth-child(2) { animation-delay: .18s; }
.ask-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes ask-type { 0%,60%,100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); } }

/* ---- continue-for-1-Ask confirm bar (when free follow-ups are used) ---- */
/* in-composer version: replaces the input + Send entirely */
.ask-continue-bar { width: 100%; text-align: center; padding: 4px 2px; }
.ask-cont-txt { font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); margin: 0 0 11px; }
.ask-cont-txt b { color: var(--accent-gold, #e8943a); }
.ask-continue { border-color: rgba(232,148,58,0.35) !important;
  background: linear-gradient(160deg, rgba(232,148,58,0.08), var(--input-bg)) !important; }
.ask-continue .ask-sp b { color: var(--accent-gold, #e8943a); }
.ask-cont-btns { display: flex; gap: 9px; margin-top: 12px; }
.ask-cont-yes { flex: 1; font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.6rem 0.9rem;
  border-radius: 11px; cursor: pointer; border: none;
  background: linear-gradient(120deg, #c084fc, #e8943a); color: #1a0e2e; }
.ask-cont-yes:hover { filter: brightness(1.06); }
.ask-cont-no { font-family: inherit; font-size: 0.9rem; padding: 0.6rem 0.9rem; border-radius: 11px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }
.ask-cont-no:hover { color: var(--text-primary); }
.ask-chatlog, .ask-drawer-body { scrollbar-width: thin; scrollbar-color: rgba(192,132,252,0.4) transparent; }
.ask-chatlog::-webkit-scrollbar, .ask-drawer-body::-webkit-scrollbar { width: 8px; }
.ask-chatlog::-webkit-scrollbar-track, .ask-drawer-body::-webkit-scrollbar-track { background: transparent; }
.ask-chatlog::-webkit-scrollbar-thumb, .ask-drawer-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(192,132,252,0.45), rgba(232,148,58,0.35));
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.ask-chatlog::-webkit-scrollbar-thumb:hover, .ask-drawer-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(192,132,252,0.7), rgba(232,148,58,0.5)); background-clip: padding-box; }

/* paywall / cap */
.ask-pay { background: linear-gradient(160deg, rgba(192,132,252,0.1), rgba(232,148,58,0.06));
  border: 1px solid rgba(192,132,252,0.3); border-radius: 16px; padding: 22px; text-align: center; }
.ask-pay h3 { font-family: Georgia, serif; font-size: 1.15rem; margin: 0 0 8px; }
.ask-why { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 16px; }

@media (max-width: 480px) {
  .ask-head h2 { font-size: 1.15rem; }
  .ask-qmsg { max-width: 88%; }
}

/* whose-chart picker */
.ask-chartsel { -webkit-appearance: none; appearance: none; cursor: pointer; }
.ask-savedsel { -webkit-appearance: none; appearance: none; cursor: pointer; margin-bottom: 10px; }
.ask-ctx-who { color: var(--text-secondary); font-weight: 600; }
.ask-ctx-detail { color: var(--text-muted); }
.ask-time { font-size: 0.66rem; color: var(--text-muted); opacity: 0.7; margin-top: 5px; }
.ask-qmsg .ask-time { text-align: right; }
.ask-chartsub { font-size: 0.72rem; color: var(--text-muted); margin: 5px 0 14px; }
.ask-nochart { font-size: 0.84rem; color: var(--text-muted); padding: 14px; border: 1px dashed var(--border-color);
  border-radius: 11px; margin-bottom: 14px; text-align: center; }

/* full-width sellable landing */
#askRoot { max-width: 780px; }
.ask-hero { text-align: center; padding: 12px 0 8px; }
.ask-hero-greet { font-size: 0.82rem; color: var(--accent); font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }
.ask-hero-title { font-family: Georgia, serif; font-size: 2rem; margin: 0 0 12px; line-height: 1.15; }
.ask-hero-lead { font-size: 0.95rem; color: var(--text-secondary); max-width: 54ch; margin: 0 auto 22px; line-height: 1.6; }
.ask-hero .ask-new { max-width: 420px; margin: 0 auto; }
.ask-free { text-align: center; font-size: 0.76rem; color: var(--text-muted); margin: 9px 0 26px; }
.ask-hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; margin: 0 auto 22px; text-align: left; }
.ask-hp { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--border-color);
  border-radius: 13px; background: rgba(192,132,252,0.04); }
.ask-hp-ic { font-size: 1.1rem; flex: none; }
.ask-hp b { display: block; font-size: 0.86rem; color: var(--text-primary); }
.ask-hp span { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; }
.ask-hero-foot { font-size: 0.76rem; font-style: italic; color: var(--accent); margin: 0 0 8px; }
#askThreads { max-width: 620px; margin: 8px auto 0; }
@media (max-width: 620px) {
  .ask-hero-title { font-size: 1.55rem; }
  .ask-hero-points { grid-template-columns: 1fr; }
}

/* drawer */
/* The Ask drawer is an immersive, always-dark reading surface. Re-declare the
   dark theme variables on the wrapper so inner elements that use var(--input-bg),
   var(--text-primary) etc. stay dark/readable even when the app is in light mode.
   (Fixes pale text on a light background in light mode.) */
.ask-drawer-wrap, .ask-modal {
  --bg-primary:#0a0812; --bg-secondary:#150b22; --bg-tertiary:#1f0d35;
  --bg-card:rgba(21,11,34,0.82);
  --text-primary:#f5e9ff; --text-secondary:#b8a4d0; --text-muted:#7a6a92;
  --border-color:rgba(192,132,252,0.18); --border-soft:rgba(192,132,252,0.10);
  --input-bg:rgba(10,8,18,0.6);
  --accent:#c084fc; --accent-hover:#a855f7; --accent-soft:rgba(192,132,252,0.14);
  --accent-gold:#e8943a; --ok:#6ee7b7;
}
.ask-drawer-wrap { position: fixed; inset: 0; z-index: 200; }
.ask-drawer-scrim { position: absolute; inset: 0; background: rgba(6,4,14,0.6); opacity: 0; transition: opacity .22s; }
.ask-drawer-wrap.on .ask-drawer-scrim { opacity: 1; }
.ask-drawer { position: absolute; top: 0; right: 0; height: 100%; width: 620px; max-width: 94vw;
  background: #140e26; border-left: 1px solid var(--border-color);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.7,.3,1);
  box-shadow: -20px 0 50px rgba(0,0,0,0.55); }
.ask-drawer-wrap.on .ask-drawer { transform: translateX(0); }
.ask-drawer-hd { flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border-color); }
.ask-drawer-hd h3 { font-family: Georgia, serif; font-size: 1.15rem; margin: 0; }
.ask-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.ask-drawer-body.ask-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ask-chatlog { flex: 1; overflow-y: auto; padding: 18px 22px; }
.ask-composer { flex: none; border-top: 1px solid var(--border-color); padding: 12px 20px 14px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ask-composer .ask-fuinp { flex: 1; min-width: 0; min-height: 46px; margin: 0; }
.ask-composer .ask-fugo { flex: none; }
.ask-composer .ask-fumeta { flex-basis: 100%; margin: 2px 0 0; }
.ask-drawer-x { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.ask-drawer-x:hover { color: var(--text-primary); background: var(--input-bg); }

@media (max-width: 720px) {
  .ask-landing { grid-template-columns: 1fr; gap: 20px; }
  .ask-why { order: 2; }
  .ask-actions { order: 1; }
  .ask-drawer { width: 100%; max-width: 100%; }
}

/* drawer back button */
.ask-drawer-back { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
  padding: 2px 10px 2px 0; margin-right: 4px; }
.ask-drawer-back:hover { color: var(--text-primary); }

/* chart context line in chat */
.ask-ctx { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-bottom: 14px; }

/* tiny follow-up meta */
.ask-fumeta { font-size: 0.66rem; color: var(--text-muted); opacity: 0.75; }

/* delete btn on history rows */
.ask-thdel { background: none; border: none; cursor: pointer; padding: 7px; flex: 0 0 auto; line-height: 0;
  border-radius: 8px; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s; }
.ask-thdel:hover { color: #ff8fa0; background: rgba(255,90,110,0.14); }
.ask-thdel svg { display: block; }

/* custom confirm modal */
.ask-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(6,4,14,0.65); padding: 20px; }
.ask-modal-box { background: #171026; border: 1px solid var(--border-color); border-radius: 16px; padding: 22px 24px;
  max-width: 360px; width: 100%; text-align: center; }
.ask-modal-box h4 { font-family: Georgia, serif; font-size: 1.1rem; margin: 0 0 8px; }
.ask-modal-box p { font-size: 0.84rem; color: var(--text-muted); margin: 0 0 18px; }
.ask-modal-btns { display: flex; gap: 10px; }
.ask-modal-cancel, .ask-modal-del { flex: 1; padding: 10px; border-radius: 10px; font-family: inherit; font-weight: 700;
  font-size: 0.86rem; cursor: pointer; border: 1px solid var(--border-color); }
.ask-modal-cancel { background: var(--input-bg); color: var(--text-primary); }
.ask-modal-del { background: rgba(255,90,110,0.15); border-color: rgba(255,90,110,0.4); color: #ff8fa0; }
.ask-modal-del:hover { background: rgba(255,90,110,0.25); }

/* clearer back button + previous-questions link for non-tech users */
.ask-drawer-back { background: none; border: none; color: var(--accent); font-family: inherit; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; padding: 4px 8px 4px 0; }
.ask-drawer-back:hover { color: #d9b8ff; }
.ask-prevlink { display: block; width: 100%; text-align: left; background: rgba(192,132,252,0.06);
  border: 1px solid var(--border-color); border-radius: 11px; padding: 11px 14px; margin-bottom: 16px;
  font-family: inherit; font-size: 0.86rem; font-weight: 600; color: #d9b8ff; cursor: pointer; }
.ask-prevlink:hover { background: rgba(192,132,252,0.12); }
/* warm prose answers: comfortable paragraph spacing */
.ask-amsg .ask-sp { margin: 0 0 12px; }
.ask-amsg .ask-sp:last-child { margin-bottom: 0; }
/* rendered inline markdown inside answers */
.ask-amsg .ask-sp b { color: #f2e4ff; font-weight: 700; }
.ask-amsg .ask-sp i { font-style: italic; color: #e8def7; }
/* bullet lines */
.ask-amsg .ask-li { position: relative; padding-left: 16px; margin: 0 0 7px; }
.ask-amsg .ask-li:last-child { margin-bottom: 12px; }
.ask-amsg .ask-li::before { content: "•"; position: absolute; left: 3px; top: 0;
  color: var(--accent, #c084fc); }

/* drawer header tabs (Ask / Previous) */
.ask-drawer-tabs { display: flex; gap: 4px; background: var(--input-bg); border-radius: 999px; padding: 3px; }
.ask-dtab { border: none; background: none; font-family: inherit; font-size: 0.84rem; font-weight: 600;
  color: var(--text-muted); padding: 6px 18px; border-radius: 999px; cursor: pointer; }
.ask-dtab.on { background: rgba(192,132,252,0.2); color: #efe4ff; }

/* clean previous list */
.ask-prev-list { display: flex; flex-direction: column; gap: 8px; }
.ask-prev-row { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--border-color);
  border-radius: 12px; cursor: pointer; transition: background .12s; overflow: hidden; }
.ask-prev-row:hover { background: rgba(168,140,255,0.06); }
.ask-prev-ic { font-size: 1.1rem; flex: 0 0 auto; }
.ask-prev-mid { flex: 1 1 auto; min-width: 0; }
.ask-prev-mid b { font-size: 0.92rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.ask-prev-mid small { font-size: 0.73rem; color: var(--text-muted); }
.ask-prev-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ask-prev-when { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.ask-prev-empty { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 40px 20px; }
.ask-prev-empty span { font-size: 0.82rem; }

/* previous questions heading */
.ask-prev-head { margin-bottom: 16px; }
.ask-prev-head h4 { font-family: Georgia, serif; font-size: 1.05rem; margin: 0 0 5px; color: var(--text-primary); }
.ask-prev-head p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.ask-prev-head b { color: #d9b8ff; }

/* add-person fields with labels + why notes */
.ask-field { margin-bottom: 12px; }
.ask-flab { display: block; font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.ask-flab span { color: var(--text-muted); font-weight: 400; font-style: italic; }
.ask-why { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.ask-morebtn { background: none; border: none; color: var(--accent); font-family: inherit; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; padding: 4px 0; }
.ask-morebtn:hover { color: #d9b8ff; }
/* native date/time inputs styled for dark theme (calendar/clock icons come built in) */
.ask-date { color-scheme: dark; cursor: pointer; }
.ask-date::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }

/* DOB + Time side by side, place full width below */
.ask-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .ask-row2 { grid-template-columns: 1fr; } }

/* add-person intro explainer */
.ask-ppl-intro { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.5; margin: 0 0 14px;
  padding: 10px 12px; background: rgba(192,132,252,0.05); border-radius: 9px; }
.ask-ppl-intro b { color: #d9b8ff; }

/* why-better comparison */
.ask-why-block { max-width: 680px; margin: 30px auto 0; }
.ask-why-h { font-family: Georgia, serif; font-size: 1.25rem; text-align: center; margin: 0 0 16px; }
.ask-cmp-head { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; gap: 10px; padding: 0 12px 8px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ask-cmp-head .ask-cmp-seek { color: var(--accent); }
.ask-cmp-head .ask-cmp-gen { color: var(--text-muted); }
.ask-cmp-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; gap: 10px; padding: 12px;
  border-top: 1px solid var(--border-color); font-size: 0.8rem; align-items: start; }
.ask-cmp-what { font-weight: 600; color: var(--text-primary); }
.ask-cmp-row .ask-cmp-seek { color: var(--text-secondary); }
.ask-cmp-row .ask-cmp-gen { color: var(--text-muted); }
.ask-tick { color: #68e0c8; font-weight: 800; margin-right: 3px; }
.ask-cross { color: #ff8fa0; font-weight: 800; margin-right: 3px; }

/* FAQ accordion */
.ask-faq { max-width: 680px; margin: 34px auto 10px; }
.ask-faq-item { border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.ask-faq-q { width: 100%; text-align: left; background: none; border: none; font-family: inherit; font-size: 0.9rem;
  font-weight: 600; color: var(--text-primary); padding: 14px 16px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; }
.ask-faq-q:hover { background: rgba(168,140,255,0.04); }
.ask-faq-ar { transition: transform .18s; color: var(--text-muted); flex: none; }
.ask-faq-q.on .ask-faq-ar { transform: rotate(180deg); }
.ask-faq-a { display: none; padding: 0 16px 15px; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }
.ask-faq-a b { color: var(--text-primary); }

@media (max-width: 560px) {
  .ask-cmp-head, .ask-cmp-row { grid-template-columns: 1fr; gap: 4px; }
  .ask-cmp-head { display: none; }
  .ask-cmp-row .ask-cmp-seek::before { content: '✦ Seektra: '; color: var(--accent); font-weight: 700; }
  .ask-cmp-row .ask-cmp-gen::before { content: 'Generic: '; color: var(--text-muted); font-weight: 700; }
}

/* no-chart call to action (replaces dead-end form) */
.ask-nochart-cta { text-align: center; padding: 2rem 1.5rem; max-width: 420px; margin: 1rem auto; }
.ask-nc-ic { font-size: 2rem; margin-bottom: 0.7rem; }
.ask-nc-title { font-family: Georgia, serif; font-size: 1.3rem; color: var(--text-primary, #fff); margin-bottom: 0.6rem; }
.ask-nc-body { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary, #b8a5d0); margin-bottom: 1.4rem; }

/* ============================================================
   Ask landing — example chips, redesigned why-block, drawer ideas,
   closing signature. (Additive; old .ask-cmp-* rules left in place.)
   ============================================================ */

/* example-question chips (the "what you can ask" hook under the CTA) */
.ask-examples { max-width: 620px; margin: 4px auto 22px; }
.ask-ex-h { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); font-weight: 700; margin: 0 0 10px; text-align: center; }
.ask-ex-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ask-ex-chip { font-family: inherit; font-size: 0.82rem; padding: 8px 13px; border-radius: 999px;
  background: rgba(192,132,252,0.08); border: 1px solid rgba(192,132,252,0.28); color: #d9b8ff;
  line-height: 1.3; cursor: pointer; }
.ask-ex-chip:hover { background: rgba(192,132,252,0.16); }
.ask-ex-em { margin-right: 5px; }

/* redesigned why-block (lead with strength) */
.ask-why-h em { font-style: normal; color: var(--accent-gold, #e8943a); font-weight: 700; }
.ask-why-sub { max-width: 620px; margin: 0 auto 20px; text-align: center; font-size: 0.9rem;
  line-height: 1.6; color: var(--text-secondary); }
.ask-why-pts { max-width: 620px; margin: 0 auto 18px; display: flex; flex-direction: column; gap: 13px; }
.ask-why-pt { display: flex; gap: 11px; align-items: flex-start; }
.ask-why-ic { color: var(--accent); flex: none; font-size: 0.95rem; margin-top: 1px; }
.ask-why-pt-t { font-size: 0.9rem; line-height: 1.45; }
.ask-why-pt-t b { color: var(--text-primary); font-weight: 600; }
.ask-why-pt-t span { color: var(--text-secondary); }
.ask-why-quiet { max-width: 620px; margin: 0 auto 14px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 13px 15px; }
.ask-why-quiet-h { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); font-weight: 700; margin: 0 0 7px; }
.ask-why-quiet-p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.ask-why-quiet-p b { color: #d9b8ff; font-weight: 600; }
.ask-why-honest { max-width: 620px; margin: 0 auto; text-align: center; font-size: 0.8rem;
  font-style: italic; color: var(--text-muted); line-height: 1.55; }
.ask-why-honest b { color: var(--text-secondary); font-style: normal; font-weight: 600; }

/* closing signature */
.ask-signoff { max-width: 620px; margin: 26px auto 6px; padding-top: 18px;
  border-top: 1px solid var(--border-soft); text-align: center; font-size: 0.8rem;
  color: var(--text-muted); line-height: 1.6; }
.ask-signoff b { color: #d9b8ff; font-weight: 600; }
.ask-heart { color: var(--accent-gold, #e8943a); }

/* drawer: "Need ideas?" button + popover */
.ask-lab-row { display: flex; align-items: center; justify-content: space-between; }
.ask-ideas-btn { font-family: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer;
  color: var(--accent-gold, #e8943a); background: rgba(232,148,58,0.1);
  border: 1px solid rgba(232,148,58,0.32); border-radius: 999px; padding: 4px 11px; }
.ask-ideas-btn:hover { background: rgba(232,148,58,0.18); }
.ask-ideas-pop { margin: 4px 0 9px; background: rgba(232,148,58,0.05);
  border: 1px solid rgba(232,148,58,0.3); border-radius: 12px; padding: 13px 14px; }
.ask-ideas-h { font-size: 0.72rem; font-weight: 700; color: var(--accent-gold, #e8943a); margin-bottom: 3px; }
.ask-ideas-sub { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 11px; line-height: 1.45; }
.ask-ideas-grp { margin-bottom: 11px; } .ask-ideas-grp:last-child { margin-bottom: 0; }
.ask-ideas-grp-t { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.ask-ideas-line { display: block; width: 100%; text-align: left; font-family: inherit;
  font-size: 0.82rem; color: #d9c9ef; padding: 7px 10px; border-radius: 7px; margin-bottom: 5px;
  background: rgba(192,132,252,0.05); border: 1px solid transparent; cursor: pointer; line-height: 1.35; }
.ask-ideas-line:last-child { margin-bottom: 0; }
.ask-ideas-line:hover { background: rgba(192,132,252,0.13); border-color: rgba(192,132,252,0.25); }

/* "Read in: name · dob · time · place" confirmation chip shown in the chat
   after a user adds another person, so they can verify the details we used. */
.ask-person-confirm {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent-gold, #e8943a);
  background: rgba(232,148,58,0.08);
  border: 1px solid rgba(232,148,58,0.28);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 2px 0 8px;
  line-height: 1.4;
}

/* Astrologer info card in the picker — "who it's for" + a sample line in their
   voice, so people know what they're choosing (esp. blunt Navjot). */
.ask-abinfo {
  margin: 10px 0 4px;
  padding: 11px 13px;
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.ask-abinfo-for {
  font-size: 0.78rem;
  color: var(--text, #e9ddf7);
  line-height: 1.5;
  margin-bottom: 6px;
}
.ask-abinfo-sample {
  font-size: 0.78rem;
  color: var(--accent-gold, #e8943a);
  font-style: italic;
  line-height: 1.5;
  opacity: 0.9;
}

/* Astrologer info panel — appears under the SELECTED box with a pointer arrow. */
.ask-ab { position: relative; }
.ask-abinfo {
  position: relative;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 0.5px solid rgba(232,148,58,0.28);
  border-radius: 10px;
  background: rgba(232,148,58,0.05);
}
.ask-abinfo.ask-abinfo-empty { display: none; }
/* the upward pointer, positioned at --ab-arrow-x (set in JS to the selected box center) */
.ask-abinfo::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--ab-arrow-x, 40px);
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(232,148,58,0.05);
  border-left: 0.5px solid rgba(232,148,58,0.28);
  border-top: 0.5px solid rgba(232,148,58,0.28);
  transform: translateX(-50%) rotate(45deg);
}
.ask-abinfo-for {
  font-size: 0.78rem;
  color: var(--text, #e9ddf7);
  line-height: 1.5;
  margin-bottom: 6px;
}
.ask-abinfo-sample {
  font-size: 0.78rem;
  color: var(--accent-gold, #e8943a);
  font-style: italic;
  line-height: 1.5;
  opacity: 0.92;
}

/* ============================================================
   The roster — who else is in this reading
   A strip of pills above the conversation. It exists because the details were
   typed into a form that then vanished: "read the two of you together" only
   means something if the reader can see who the other one is.
   The × takes somebody back OUT of the reading. It is not erasure and the copy
   never says it is — their earlier turn stays in the thread, and what changes
   is that their chart stops being used from here on.
   ============================================================ */
.ask-roster { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 10px; }
.ask-roster:empty { display: none; margin: 0; }
.ask-rlab { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); font-weight: 700; margin-right: 2px; }
.ask-rpill { display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; line-height: 1.3; padding: 4px 4px 4px 11px;
  border-radius: 999px; background: rgba(192,132,252,0.08);
  border: 1px solid rgba(192,132,252,0.28); color: #d9c9ef;
  transition: opacity .18s ease; }
.ask-rpill b { font-weight: 600; color: var(--text-primary, #e9ddf7); }
.ask-rpill i { font-style: normal; font-size: 0.68rem; color: var(--text-muted); }
.ask-rpill.going { opacity: 0.4; }          /* in flight — not gone yet */
/* The × is a real button: keyboard-reachable, with a target big enough to hit
   on a phone without zooming, which a bare glyph is not. */
.ask-rx { font-family: inherit; font-size: 0.9rem; line-height: 1;
  width: 22px; height: 22px; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; border-radius: 50%;
  color: var(--text-muted); background: transparent; border: 0; padding: 0; }
.ask-rx:hover { background: rgba(255,255,255,0.10); color: var(--text-primary, #e9ddf7); }
.ask-rx:focus-visible { outline: 2px solid var(--accent, #c084fc); outline-offset: 1px; }
/* Shown only once the cap is actually reached. A limit announced early is a
   limit the reader has to carry around for no reason. */
.ask-rnote { flex: 1 1 100%; font-size: 0.7rem; color: var(--text-muted);
  line-height: 1.45; margin-top: 2px; }

/* the note left in the log when somebody is taken out, and the at-cap message */
.ask-person-out { color: var(--text-muted);
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12);
  display: block; max-width: 100%; }

/* required-field message under an input (the name on the add-person forms) */
.ask-err { font-size: 0.7rem; color: #f0a5a5; line-height: 1.4; margin-top: 4px; }
.ask-err:empty { display: none; }
.ask-inp.bad { border-color: rgba(240,165,165,0.55); }

/* "Save Priya to your charts?" — offered after a successful add, never done
   silently, and the default is no. This used to fire on every add that had a
   city attached: somebody typing a girlfriend's birth time into a question
   about a fight should not find her in their saved horoscopes afterwards. */
.ask-saveoffer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 2px 0 10px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 0.5px solid rgba(255,255,255,0.10);
  font-size: 0.74rem; color: var(--text-secondary); line-height: 1.45; }
.ask-saveoffer span { flex: 1 1 auto; min-width: 160px; }
.ask-savebtn { font-family: inherit; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; padding: 5px 12px; border-radius: 999px;
  color: var(--accent, #c084fc); background: rgba(192,132,252,0.10);
  border: 1px solid rgba(192,132,252,0.32); }
.ask-savebtn:hover { background: rgba(192,132,252,0.18); }
.ask-savebtn.ghost { color: var(--text-muted); background: transparent;
  border-color: rgba(255,255,255,0.14); }
.ask-savebtn.ghost:hover { background: rgba(255,255,255,0.06); }
