/* Everything is scoped to .astro-app so the site theme is left alone. The class is
   written twice to outrank theme and page-builder rules for buttons and fields. */
.astro-app.astro-app {
  --night: #1e1b4b;
  --haldi: #e3a21a;
  --sindoor: #9b2c4d;
  --tulsi: #176b4d;
  --line: #d9d6ea;
  --muted: #585675;
  max-width: 34rem;
  margin-inline: auto;
  color: #1c1a33;
  font-size: 1rem;
  line-height: 1.5;
}
.astro-app.astro-app[data-view='account'] { max-width: 46rem; }
.astro-app.astro-app *, .astro-app.astro-app *::before { box-sizing: border-box; }
.astro-app.astro-app [hidden] { display: none !important; }
.astro-app.astro-app form { display: grid; gap: 1rem; }
.astro-app.astro-app p { margin: 0; }
.astro-app.astro-app label, .astro-app.astro-app legend { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.astro-app.astro-app input:not([type='radio']), .astro-app.astro-app select {
  width: 100%; min-height: 2.75rem; margin: 0; padding: 0.5rem 0.75rem;
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; height: auto;
}
.astro-app.astro-app select { appearance: auto; -webkit-appearance: menulist; }
.astro-app.astro-app [aria-invalid='true'] { border-color: var(--sindoor) !important; }
.astro-app.astro-app input.astro-code { text-align: center; font-size: 1.5rem; letter-spacing: 0.4em; }
.astro-app.astro-app :focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; }
.astro-app.astro-app .astro-hint, .astro-app.astro-app small { color: var(--muted); font-size: 0.875rem; }
.astro-app.astro-app .astro-field-error { color: var(--sindoor); font-size: 0.875rem; margin-top: 0.3rem; }
.astro-app.astro-app button.astro-button.astro-button {
  min-height: 2.75rem; padding: 0.55rem 1.25rem; font: inherit; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--night); border: 1px solid var(--night); border-radius: 8px;
  margin: 0; line-height: 1.4; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none;
}
.astro-app.astro-app button.astro-button.astro-button:focus { color: #fff; background: var(--night); }
.astro-app.astro-app button.astro-button.astro-button:hover, .astro-app.astro-app button.astro-button.astro-button:focus:hover { background: #35317a; border-color: #35317a; color: #fff; }
.astro-app.astro-app button.astro-button.astro-button:disabled { opacity: 0.55; cursor: not-allowed; }
.astro-app.astro-app button.astro-link.astro-link, .astro-app.astro-app button.astro-link.astro-link:hover, .astro-app.astro-app button.astro-link.astro-link:focus {
  border-radius: 0; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.4;
  justify-self: start; padding: 0.25rem 0; min-height: 0; font: inherit; font-size: 0.95rem; color: var(--night);
  background: none; border: 0; text-decoration: underline; cursor: pointer;
}
.astro-app.astro-app button.astro-link.astro-link:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.astro-app.astro-app .astro-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.astro-app.astro-app .astro-toggle { border: 0; margin: 0; padding: 0; }
.astro-app.astro-app .astro-toggle > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.astro-app.astro-app .astro-toggle label { margin: 0; position: relative; cursor: pointer; }
.astro-app.astro-app .astro-toggle input { position: absolute; opacity: 0; }
.astro-app.astro-app .astro-toggle span { display: block; text-align: center; padding: 0.45rem; border-radius: 6px; color: var(--muted); }
.astro-app.astro-app .astro-toggle input:checked + span { background: var(--night); color: #fff; }
.astro-app.astro-app .astro-toggle input:focus-visible + span { outline: 3px solid var(--haldi); }
.astro-app.astro-app .astro-alert { padding: 0.7rem 0.9rem; border: 1px solid; border-radius: 8px; font-size: 0.9rem; }
.astro-app.astro-app .astro-error { color: var(--sindoor); border-color: #dcb0bd; background: #f8ecf0; }
.astro-app.astro-app .astro-success { color: var(--tulsi); border-color: #a8cdbf; background: #eaf5f0; }
.astro-app.astro-app .astro-info { color: #1c1a33; border-color: var(--haldi); background: #fcf3df; margin-block: 1rem; }
.astro-app.astro-app .astro-greeting { font-size: 1.5rem; color: var(--night); }
.astro-app.astro-app .astro-panel { margin-top: 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--night); border-radius: 12px; }
.astro-app.astro-app .astro-panel h2 { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--night); }
.astro-app.astro-app .astro-panel > .astro-hint { margin-bottom: 1rem; }
.astro-app.astro-app .astro-contact { padding-block: 0.75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.astro-app.astro-app .astro-contact > div:last-child { display: flex; gap: 1rem; align-items: center; }
.astro-app.astro-app .astro-ok { color: var(--tulsi); font-weight: 600; }
.astro-app.astro-app .astro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0; }
.astro-app.astro-app dt { margin: 0; padding: 0; font-weight: 600; font-size: 0.9rem; }
.astro-app.astro-app .astro-grid > div { margin: 0; }
.astro-app.astro-app dd { margin: 0; padding: 0; color: var(--muted); }
.astro-app.astro-app ul { list-style: none; margin: 0; padding: 0; }
.astro-app.astro-app li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 0.75rem; border-top: 1px solid var(--line); }

/* ---- astrologer area ---------------------------------------------------- */
.astro-app.astro-app[data-view='astrologer'] { max-width: 62rem; }
.astro-app.astro-app .astro-narrow { max-width: 42rem; margin-inline: auto; }
.astro-app.astro-app .astro-after { margin-top: 1.25rem; }
.astro-app.astro-app .astro-dash { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.astro-app.astro-app .astro-side { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; background: var(--night); border-radius: 12px; }
.astro-app.astro-app .astro-side a { display: block; padding: 0.6rem 0.75rem; border-radius: 8px; color: #e6e4f5; text-decoration: none; box-shadow: none; }
.astro-app.astro-app .astro-side a:hover { background: #35317a; color: #fff; }
.astro-app.astro-app .astro-side a[aria-current='page'] { background: #fff; color: var(--night); font-weight: 600; }
.astro-app.astro-app .astro-side button.astro-link.astro-link { color: #e6e4f5; padding: 0.6rem 0.75rem; text-decoration: none; justify-self: auto; align-self: flex-start; }
.astro-app.astro-app .astro-side button.astro-link.astro-link:hover { color: #fff; text-decoration: underline; }
.astro-app.astro-app .astro-main > .astro-panel:first-child { margin-top: 0; }
.astro-app.astro-app .astro-presence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.astro-app.astro-app .astro-state { font-size: 1.5rem; font-weight: 600; color: var(--night); }
.astro-app.astro-app .astro-state::before { content: ''; display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.6rem; border-radius: 50%; background: #9a98ae; }
.astro-app.astro-app .astro-state[data-online='true']::before { background: #1e9e68; box-shadow: 0 0 0 4px #d6f0e3; }
.astro-app.astro-app textarea {
  width: 100%; margin: 0; padding: 0.6rem 0.75rem; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: none; resize: vertical;
}
.astro-app.astro-app .astro-photo { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.astro-app.astro-app .astro-photo img, .astro-app.astro-app .astro-initials { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; margin: 0; }
.astro-app.astro-app .astro-initials { display: grid; place-items: center; background: #eceaf6; color: var(--night); font-size: 2rem; font-weight: 600; }
.astro-app.astro-app .astro-photo figure { margin: 0; text-align: center; }
.astro-app.astro-app .astro-photo > .astro-field { flex: 1 1 14rem; }
.astro-app.astro-app input[type='file'] { padding: 0.45rem; }
.astro-app.astro-app .astro-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.astro-app.astro-app .astro-choices > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.astro-app.astro-app .astro-choices label { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.astro-app.astro-app .astro-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.astro-app.astro-app .astro-choices span { display: block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.astro-app.astro-app .astro-choices input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.astro-app.astro-app .astro-choices input:checked + span::before { content: '✓ '; }
.astro-app.astro-app .astro-choices input:focus-visible + span { outline: 3px solid var(--haldi); outline-offset: 2px; }
.astro-app.astro-app .astro-day { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.75rem; padding-block: 0.75rem; border-top: 1px solid var(--line); align-items: start; }
.astro-app.astro-app .astro-day > label { display: flex; align-items: center; gap: 0.5rem; margin: 0; min-height: 2.75rem; }
.astro-app.astro-app .astro-day input[type='checkbox'], .astro-app.astro-app .astro-check input[type='checkbox'] {
  -webkit-appearance: checkbox; appearance: auto; position: static; flex: none; width: 1.15rem; height: 1.15rem; min-height: 0;
  margin: 0; padding: 0; border-radius: 3px; accent-color: var(--night);
}
.astro-app.astro-app .astro-day input[type='checkbox']::before, .astro-app.astro-app .astro-day input[type='checkbox']::after,
.astro-app.astro-app .astro-check input[type='checkbox']::before, .astro-app.astro-app .astro-check input[type='checkbox']::after { content: none; }
.astro-app.astro-app .astro-slots { display: grid; gap: 0.5rem; justify-items: start; }
.astro-app.astro-app .astro-slot { display: grid; grid-template-columns: minmax(0, 8.5rem) auto minmax(0, 8.5rem) auto; align-items: center; gap: 0.5rem; }
.astro-app.astro-app .astro-slot input[type='time'] { width: 100%; min-width: 0; padding-inline: 0.5rem; }
.astro-app.astro-app .astro-photo-block { margin-bottom: 1rem; }
.astro-app.astro-app .astro-main > .astro-alert { margin-block: 1rem; }
.astro-app.astro-app .astro-main > .astro-alert:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .astro-app.astro-app .astro-dash { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .astro-app.astro-app .astro-side { flex-direction: row; flex-wrap: wrap; }
  .astro-app.astro-app .astro-day { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}
@media (max-width: 480px) {
  .astro-app.astro-app .astro-slot { width: 100%; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 0.4rem; row-gap: 0; }
  .astro-app.astro-app .astro-slot > button { grid-column: 1 / -1; justify-self: start; }
}
/* Too narrow for two times side by side without hiding AM/PM. */
@media (max-width: 359px) {
  .astro-app.astro-app .astro-slot { grid-template-columns: minmax(0, 11rem); row-gap: 0.25rem; margin-bottom: 0.5rem; }
}

/* ---- customer dashboard ------------------------------------------------- */
.astro-app.astro-app h2, .astro-app.astro-app h3 { text-transform: none; letter-spacing: normal; }
.astro-app.astro-app .astro-after + .astro-hint { margin-top: 0.75rem; }
.astro-app.astro-app[data-view='account'].astro-wide { max-width: 62rem; }
.astro-app.astro-app .astro-balance { font-size: 2.25rem; font-weight: 700; color: var(--night); margin-bottom: 0.75rem; }
.astro-app.astro-app a.astro-cta, .astro-app.astro-app a.astro-cta:visited, .astro-app.astro-app a.astro-cta:focus {
  display: inline-block; padding: 0.55rem 1.1rem; border: 1px solid var(--night); border-radius: 8px;
  color: var(--night); background: #fff; font-weight: 600; text-decoration: none; box-shadow: none; line-height: 1.4;
}
.astro-app.astro-app a.astro-cta:hover { color: #fff; background: var(--night); }

/* ---- public pages ------------------------------------------------------- */
.astro-app.astro-app[data-view='directory'], .astro-app.astro-app[data-view='home'], .astro-app.astro-app[data-view='featured'] { max-width: 75rem; }
.astro-app.astro-app form.astro-filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); align-items: end;
  padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--night); border-radius: 12px; margin: 0;
}
.astro-app.astro-app .astro-filters .astro-wide { grid-column: 1 / -1; }
.astro-app.astro-app label.astro-check { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin: 0; cursor: pointer; }
.astro-app.astro-app .astro-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.astro-app.astro-app .astro-count { margin: 1.25rem 0 0.75rem; color: var(--muted); }
.astro-app.astro-app .astro-empty { margin-top: 1.25rem; padding: 2rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.astro-app.astro-app ul.astro-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.astro-app.astro-app li.astro-card {
  display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0.35rem; margin: 0;
  padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere;
}
.astro-app.astro-app .astro-card-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.4rem; }
.astro-app.astro-app .astro-card h3 { margin: 0 0 0.15rem; padding: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.astro-app.astro-app .astro-card h3 a { color: var(--night); text-decoration: none; box-shadow: none; }
.astro-app.astro-app .astro-card h3 a:hover { text-decoration: underline; }
.astro-app.astro-app img.astro-card-photo, .astro-app.astro-app .astro-initials.astro-card-photo {
  flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; margin: 0; font-size: 1.4rem;
}
.astro-app.astro-app .astro-card-skills { font-weight: 600; font-size: 0.95rem; }
.astro-app.astro-app .astro-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.9rem; }
.astro-app.astro-app .astro-card-foot strong { font-size: 1.25rem; color: var(--night); }
.astro-app.astro-app .astro-presence-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.astro-app.astro-app .astro-presence-badge::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #9a98ae; }
.astro-app.astro-app .astro-presence-badge[data-state='online'] { color: var(--tulsi); font-weight: 600; }
.astro-app.astro-app .astro-presence-badge[data-state='online']::before { background: #1e9e68; }
.astro-app.astro-app .astro-presence-badge[data-state='busy'], .astro-app.astro-app .astro-presence-badge[data-state='pending'] { color: #7a5200; font-weight: 600; }
.astro-app.astro-app .astro-presence-badge[data-state='busy']::before, .astro-app.astro-app .astro-presence-badge[data-state='pending']::before { background: var(--haldi); }
.astro-app.astro-app .astro-pages { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.astro-app.astro-app .astro-back { margin-bottom: 1rem; }
.astro-app.astro-app .astro-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 0 0 1rem; padding: 0; text-align: left; }
.astro-app.astro-app .astro-profile-head h2 { margin: 0 0 0.25rem; font-size: 1.75rem; font-weight: 700; color: var(--night); overflow-wrap: anywhere; }
.astro-app.astro-app img.astro-profile-photo, .astro-app.astro-app .astro-initials.astro-profile-photo {
  flex: none; width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; margin: 0;
}
.astro-app.astro-app .astro-price strong { font-size: 1.75rem; color: var(--night); }
.astro-app.astro-app .astro-prose { overflow-wrap: anywhere; max-width: 70ch; }
.astro-app.astro-app ul.astro-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.astro-app.astro-app .astro-tags li { display: block; margin: 0; padding: 0; border: 0; }
.astro-app.astro-app .astro-tags a { display: block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--night); text-decoration: none; box-shadow: none; }
.astro-app.astro-app .astro-tags a:hover { border-color: var(--night); }
.astro-app.astro-app table.astro-hours { width: 100%; max-width: 26rem; margin: 0 0 0.5rem; border-collapse: collapse; border: 0; }
.astro-app.astro-app .astro-hours th, .astro-app.astro-app .astro-hours td { padding: 0.45rem 0.5rem 0.45rem 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: none; font-size: 0.95rem; text-transform: none; letter-spacing: normal; }

/* ---- homepage ----------------------------------------------------------- */
.astro-app.astro-app .astro-hero-box { container-type: inline-size; }
.astro-app.astro-app .astro-hero { position: relative; padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--night); border-radius: 16px; color: #fff; }
.astro-app.astro-app .astro-chart { display: block; width: 4.5rem; height: 4.5rem; max-width: none; margin: 0 0 1.25rem; color: var(--haldi); }
@container (min-width: 50rem) {
  .astro-app.astro-app .astro-chart { position: absolute; top: 3.5rem; right: 3.5rem; width: 13rem; height: 13rem; margin: 0; }
}
.astro-app.astro-app .astro-hero h2 { margin: 0 0 0.75rem; max-width: 18ch; font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 700; line-height: 1.15; color: #fff; }
.astro-app.astro-app .astro-hero p { max-width: 36ch; margin-bottom: 1.5rem; color: #e6e4f5; font-size: 1.05rem; }
.astro-app.astro-app form.astro-finder { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: end; max-width: 46rem; margin: 0; }
.astro-app.astro-app .astro-finder label { color: #fff; }
.astro-app.astro-app .astro-finder select { color: #1c1a33; }
.astro-app.astro-app .astro-finder button.astro-button.astro-button, .astro-app.astro-app .astro-finder button.astro-button.astro-button:focus { background: var(--haldi); border-color: var(--haldi); color: #1c1a33; }
.astro-app.astro-app .astro-finder button.astro-button.astro-button:hover { background: #f2b43a; border-color: #f2b43a; color: #1c1a33; }
.astro-app.astro-app .astro-section { margin: 2.5rem 0 0; padding: 0; }
.astro-app.astro-app .astro-section > h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 600; color: var(--night); }
.astro-app.astro-app .astro-more { margin-top: 1.25rem; }
.astro-app.astro-app .astro-facts > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; margin-bottom: 1.25rem; }
.astro-app.astro-app .astro-facts h3 { margin: 0 0 0.35rem; padding-top: 0.75rem; border-top: 3px solid var(--haldi); font-size: 1.05rem; font-weight: 600; color: var(--night); }
@media (max-width: 560px) {
  .astro-app.astro-app form.astro-filters { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem; }
}
@media (max-width: 359px) { .astro-app.astro-app form.astro-filters { grid-template-columns: 1fr; } }


/* ---- chat ---------------------------------------------------------------- */
.astro-app.astro-app[data-view='chat'] { max-width: 46rem; }
.astro-app.astro-app a.astro-cta.astro-primary { background: var(--haldi); border-color: var(--haldi); color: #1c1a33; }
.astro-app.astro-app a.astro-cta.astro-primary:hover { background: #f2b43a; border-color: #f2b43a; color: #1c1a33; }
.astro-app.astro-app .astro-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.astro-app.astro-app .astro-rating { font-weight: 600; font-size: 0.9rem; color: var(--night); }
.astro-app.astro-app .astro-rating > span { color: #b57a06; }
.astro-app.astro-app .astro-chat-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-block: 1rem; }
.astro-app.astro-app ul.astro-reviews li { display: block; }
.astro-app.astro-app img.astro-avatar, .astro-app.astro-app .astro-initials.astro-avatar { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; margin: 0; flex: none; font-size: 1.5rem; }
.astro-app.astro-app img.astro-avatar.astro-small, .astro-app.astro-app .astro-initials.astro-avatar.astro-small { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.astro-app.astro-app .astro-ask { text-align: center; }
.astro-app.astro-app .astro-ask > * + *, .astro-app.astro-app .astro-ask.astro-panel h2 { margin-top: 0.75rem; }
.astro-app.astro-app .astro-ask > .astro-avatar { margin: 0 auto; }
.astro-app.astro-app .astro-ask > button.astro-link.astro-link { display: block; margin-inline: auto; }
.astro-app.astro-app .astro-countdown { font-size: 2.5rem; font-weight: 700; color: var(--night); font-variant-numeric: tabular-nums; }
.astro-app.astro-app .astro-list > * + * { margin-top: 1rem; }
.astro-app.astro-app ul.astro-history li { align-items: center; justify-content: flex-start; }
.astro-app.astro-app ul.astro-history li > div { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.astro-app.astro-app .astro-column { min-width: 0; }
.astro-app.astro-app .astro-incoming { border-color: var(--haldi); border-top-width: 6px; background: #fffaf0; margin: 0 0 1rem; }
.astro-app.astro-app .astro-incoming > * + * { margin-top: 0.5rem; }
.astro-app.astro-app .astro-sound { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 1.25rem; margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--muted); }
.astro-app.astro-app .astro-sound:empty { display: none; }
.astro-app.astro-app .astro-sound-off { border: 1px solid var(--haldi); border-radius: 0.5rem; background: #fffaf0; color: var(--night); padding: 0.5rem 0.75rem; }
.astro-app.astro-app .astro-ask .astro-sound { margin: 1rem 0 0; }
.astro-app.astro-app .astro-incoming .astro-row { justify-content: flex-start; gap: 1.5rem; }
.astro-app.astro-app .astro-running { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 1rem; }

.astro-app.astro-app .astro-chat {
  display: flex; flex-direction: column; height: min(46rem, calc(100vh - 8rem)); height: min(46rem, calc(100dvh - 8rem)); min-height: 26rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.astro-app.astro-app .astro-chat > * { flex: 0 0 auto; }
.astro-app.astro-app a.astro-leave { display: none; }
.astro-app.astro-app .astro-chat-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem; row-gap: 0.35rem; margin: 0; padding: 0.75rem 1rem; background: var(--night); color: #fff; }
.astro-app.astro-app .astro-chat-head .astro-chat-who h2 { margin: 0; padding: 0; font-size: 1.1rem; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.astro-app.astro-app .astro-chat-status { font-size: 0.85rem; color: #d9d6f5; min-height: 1.3em; }
.astro-app.astro-app .astro-chat-meta { display: flex; align-items: center; gap: 0.75rem; }
.astro-app.astro-app .astro-timer { font-size: 1.25rem; font-weight: 700; color: #ffd27a; font-variant-numeric: tabular-nums; }
.astro-app.astro-app button.astro-button.astro-button.astro-end { background: transparent; border-color: #fff; color: #fff; min-height: 2.5rem; padding: 0.35rem 0.8rem; }
.astro-app.astro-app button.astro-button.astro-button.astro-end:hover { background: var(--sindoor); border-color: var(--sindoor); }
.astro-app.astro-app .astro-chat-money { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: 0.1rem; font-size: 0.8rem; color: #d9d6f5; }
.astro-app.astro-app .astro-confirm { padding: 0.75rem 1rem; background: #f8ecf0; border-bottom: 1px solid #dcb0bd; }
.astro-app.astro-app .astro-confirm > * + * { margin-top: 0.5rem; }
.astro-app.astro-app .astro-confirm .astro-row { justify-content: flex-start; gap: 1.5rem; }
.astro-app.astro-app .astro-chat-banner { margin: 0; border-width: 0 0 1px; border-radius: 0; }
/* The message list takes only the space left over, so the writing row is never squeezed. */
.astro-app.astro-app .astro-chat > .astro-chat-body { position: relative; flex: 1 1 0; min-height: 6rem; display: flex; }
.astro-app.astro-app .astro-scroll { flex: 1; overflow-y: auto; padding: 0.75rem; background: #f4f3fa; }
.astro-app.astro-app button.astro-link.astro-earlier { display: block; margin: 0 auto 0.5rem; }
.astro-app.astro-app ol.astro-messages { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.astro-app.astro-app ol.astro-messages li { display: block; max-width: min(85%, 30rem); margin: 0; padding: 0.5rem 0.75rem 0.35rem; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.astro-app.astro-app ol.astro-messages li.astro-theirs { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.astro-app.astro-app ol.astro-messages li.astro-mine { align-self: flex-end; background: #e4e1f7; border-color: #cfcaf0; border-bottom-right-radius: 4px; }
.astro-app.astro-app ol.astro-messages li.astro-unsent { border-style: dashed; }
.astro-app.astro-app ol.astro-messages li p { white-space: pre-wrap; }
.astro-app.astro-app ol.astro-messages li small { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0.5rem; font-size: 0.75rem; }
.astro-app.astro-app ol.astro-messages li small button.astro-link.astro-link { font-size: 0.8rem; }
.astro-app.astro-app .astro-picture { display: block; box-shadow: none; }
.astro-app.astro-app .astro-picture img { display: block; width: auto; height: auto; max-width: 100%; max-height: 16rem; min-width: 6rem; min-height: 4rem; margin: 0; border-radius: 8px; background: #eceaf6; object-fit: contain; }
.astro-app.astro-app .astro-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.astro-app.astro-app button.astro-button.astro-button.astro-jump { position: absolute; left: 50%; bottom: 0.5rem; transform: translateX(-50%); min-height: 2.25rem; padding: 0.25rem 0.9rem; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; }
.astro-app.astro-app .astro-chat > .astro-chat-foot { flex: 0 1 auto; min-height: 4.25rem; max-height: 60%; overflow-y: auto; padding: 0.6rem 0.75rem; border-top: 1px solid var(--line); }
.astro-app.astro-app .astro-chat-foot > * + * { margin-top: 0.5rem; }
.astro-app.astro-app form.astro-composer { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: end; gap: 0.4rem; margin: 0; }
.astro-app.astro-app form.astro-composer > textarea { grid-column: 4; grid-row: 1; }
.astro-app.astro-app form.astro-composer > button[type='submit'] { grid-column: 5; grid-row: 1; }
.astro-app.astro-app form.astro-composer textarea { resize: none; height: 2.75rem; min-height: 2.75rem; max-height: 8.125rem; line-height: 1.5; overflow-y: hidden; }
.astro-app.astro-app button.astro-button.astro-button.astro-tool { background: #fff; color: var(--night); border-color: var(--line); padding: 0.35rem 0.7rem; min-width: 2.75rem; }
.astro-app.astro-app button.astro-button.astro-button.astro-tool:hover { background: #eceaf6; color: var(--night); border-color: var(--night); }
.astro-app.astro-app .astro-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: 0.25rem; max-height: 9rem; overflow-y: auto; }
.astro-app.astro-app .astro-emoji button.astro-button.astro-button.astro-tool { font-size: 1.25rem; padding: 0.25rem; }
.astro-app.astro-app .astro-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.astro-app.astro-app .astro-preview img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 8px; margin: 0; }
.astro-app.astro-app .astro-summary + .astro-summary { margin-top: 0.4rem; }
.astro-app.astro-app .astro-stars > div { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 480px) {
  .astro-app.astro-app .astro-chat { height: calc(100vh - 5rem); height: calc(100dvh - 5rem); }
  .astro-app.astro-app .astro-chat-head { padding: 0.6rem 0.75rem; column-gap: 0.5rem; }
  .astro-app.astro-app .astro-chat-meta { flex-direction: column; align-items: flex-end; gap: 0.25rem; }
  .astro-app.astro-app ol.astro-messages li { max-width: 90%; }
  /* Writing row on top, then the tools with Send filling the rest. */
  .astro-app.astro-app form.astro-composer { grid-template-columns: auto auto auto minmax(0, 1fr); }
  .astro-app.astro-app form.astro-composer > textarea { grid-column: 1 / -1; grid-row: 1; }
  .astro-app.astro-app form.astro-composer > button[type='submit'] { grid-column: 4; grid-row: 2; }
}
@media (max-width: 359px) {
  .astro-app.astro-app .astro-chat-head > .astro-avatar { display: none; }
  .astro-app.astro-app .astro-chat-head { grid-template-columns: minmax(0, 1fr) auto; }
}
/* A phone held sideways: use nearly the whole screen and keep the writing row on one line. */
@media (max-height: 520px) {
  .astro-app.astro-app .astro-chat { height: calc(100vh - 0.5rem); height: calc(100dvh - 0.5rem); min-height: 17rem; }
  .astro-app.astro-app .astro-chat-head { padding-block: 0.35rem; row-gap: 0; }
  .astro-app.astro-app .astro-chat-head > .astro-avatar { display: none; }
  .astro-app.astro-app .astro-chat-head { grid-template-columns: minmax(0, 1fr) auto; }
  .astro-app.astro-app .astro-chat-meta { flex-direction: row; align-items: center; }
  .astro-app.astro-app .astro-chat > .astro-chat-body { min-height: 3.5rem; }
  .astro-app.astro-app .astro-chat-foot { padding-block: 0.35rem; }
}
/* A finished chat is for reading: the page scrolls, and nothing below is squeezed. */
.astro-app.astro-app .astro-chat.astro-ended { height: auto; min-height: 0; }
.astro-app.astro-app .astro-chat.astro-ended > .astro-chat-body { flex: 0 0 auto; height: auto; min-height: 0; }
.astro-app.astro-app .astro-chat.astro-ended .astro-scroll { max-height: 24rem; max-height: min(24rem, 60dvh); }
.astro-app.astro-app .astro-chat.astro-ended > .astro-chat-foot { max-height: none; overflow: visible; padding-bottom: 1rem; }

/* ---- wallet and earnings ---- */
.astro-app.astro-app ul.astro-ledger { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.astro-app.astro-app ul.astro-ledger li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.35rem 1rem; margin: 0; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.astro-app.astro-app ul.astro-ledger li > div:first-child { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.astro-app.astro-app .astro-figure { margin-left: auto; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.astro-app.astro-app .astro-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.astro-app.astro-app button.astro-button.astro-package { width: 100%; margin: 0; background: #fff; color: var(--night); border: 1px solid var(--night); }
.astro-app.astro-app button.astro-button.astro-package:hover:not(:disabled) { background: var(--night); color: #fff; }
.astro-app.astro-app .astro-chat-balance, .astro-app.astro-app .astro-chat-spent { font-variant-numeric: tabular-nums; }
.astro-app.astro-app .astro-chat-banner a { font-weight: 700; text-decoration: underline; color: inherit; }

/* ---- a conversation covering a small screen -------------------------------
   These come last so that they win over the size rules above. */
html.astro-lock, html.astro-lock body { overflow: hidden !important; overscroll-behavior: none; }
.astro-app.astro-app.astro-overlay {
  position: fixed; left: 0; right: 0; top: var(--astro-top, 0px); height: 100vh; height: var(--astro-height, 100dvh);
  max-width: none; margin: 0; padding: 0; z-index: 100000; background: #fff;
}
.astro-app.astro-app .astro-chat.astro-full { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.astro-app.astro-app .astro-chat.astro-full > .astro-chat-head { grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 0.5rem; }
.astro-app.astro-app .astro-chat.astro-full a.astro-leave {
  display: flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2.75rem; margin: 0 0 0 -0.35rem;
  color: #fff; font-size: 2rem; line-height: 1; text-decoration: none; box-shadow: none;
}
.astro-app.astro-app .astro-chat.astro-full .astro-scroll { overscroll-behavior: contain; }
.astro-app.astro-app .astro-chat.astro-full > .astro-chat-foot { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 359px), (max-height: 520px) {
  .astro-app.astro-app .astro-chat.astro-full > .astro-chat-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .astro-app.astro-app .astro-chat.astro-full > .astro-chat-head > .astro-avatar { display: none; }
}
/* Very little room, usually a keyboard on a sideways phone: the writing row comes first. */
.astro-app.astro-app .astro-chat.astro-full.astro-tight > .astro-chat-head { padding-block: 0.25rem; row-gap: 0; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight .astro-chat-money { display: none; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight .astro-chat-meta { flex-direction: row; align-items: center; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight > .astro-chat-body { min-height: 0; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight > .astro-chat-foot { padding-block: 0.35rem; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight form.astro-composer { grid-template-columns: auto auto auto minmax(0, 1fr) auto; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight form.astro-composer > textarea { grid-column: 4; grid-row: 1; }
.astro-app.astro-app .astro-chat.astro-full.astro-tight form.astro-composer > button[type='submit'] { grid-column: 5; grid-row: 1; }
/* Finished: the whole screen scrolls, so the summary and rating form are reachable. */
.astro-app.astro-app .astro-chat.astro-full.astro-ended { height: 100%; overflow-y: auto; }
.astro-app.astro-app .astro-chat.astro-full.astro-ended > .astro-chat-head { position: sticky; top: 0; z-index: 1; }
.astro-app.astro-app .astro-chat.astro-full.astro-ended > .astro-chat-body { height: 24rem; height: min(24rem, 55dvh); }
.astro-app.astro-app .astro-chat.astro-full.astro-ended .astro-scroll { max-height: none; overscroll-behavior: auto; }
.astro-app.astro-app .astro-chat.astro-full.astro-ended > .astro-chat-foot { flex: 0 0 auto; }

/* ---- help and contact --------------------------------------------------- */
.astro-app.astro-app a.astro-report { font-size: 0.875rem; color: var(--sindoor); text-decoration: underline; box-shadow: none; }
.astro-app.astro-app .astro-badge { display: inline-block; padding: 0.15rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.astro-app.astro-app .astro-badge[data-status='open'] { border-color: var(--haldi); background: #fcf3df; color: #1c1a33; }
.astro-app.astro-app .astro-badge[data-status='answered'] { border-color: #a8cdbf; background: #eaf5f0; color: var(--tulsi); }
.astro-app.astro-app ul.astro-requests { margin-top: 1.25rem; }
.astro-app.astro-app ul.astro-requests li { align-items: center; margin: 0; }
.astro-app.astro-app div.astro-state-row { margin-block: 0.5rem 0.75rem; }
.astro-app.astro-app ul.astro-requests li > div { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.astro-app.astro-app ul.astro-requests a { color: var(--night); box-shadow: none; }
.astro-app.astro-app ol.astro-thread { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.75rem; }
.astro-app.astro-app ol.astro-thread li { display: block; margin: 0 2rem 0 0; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.astro-app.astro-app ol.astro-thread li.astro-from-support { margin: 0 0 0 2rem; background: #eef0fb; }
.astro-app.astro-app ol.astro-thread p { white-space: pre-wrap; overflow-wrap: anywhere; }
.astro-app.astro-app .astro-main .astro-panel h2, .astro-app.astro-app .astro-reach dd { overflow-wrap: anywhere; }
.astro-app.astro-app .astro-reach { margin: 0 0 0.5rem; }
.astro-app.astro-app .astro-reach a { color: var(--night); }
.astro-app.astro-app .astro-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.astro-app.astro-app[data-view='contact'] { max-width: 42rem; }
@media (max-width: 480px) {
  .astro-app.astro-app ol.astro-thread li { margin-right: 0.75rem; }
  .astro-app.astro-app ol.astro-thread li.astro-from-support { margin-left: 0.75rem; }
}

/* ---- voice messages ------------------------------------------------------- */
.astro-app.astro-app .astro-voice { display: grid; gap: 0.25rem; font-size: 0.85rem; }
.astro-app.astro-app .astro-voice audio, .astro-app.astro-app .astro-record audio { display: block; width: 16rem; max-width: 100%; height: 2.5rem; margin: 0; }
.astro-app.astro-app ol.astro-messages li:has(.astro-voice) { width: 18rem; }
.astro-app.astro-app .astro-recording { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--sindoor); }
.astro-app.astro-app .astro-recording::before { content: ''; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sindoor); }
.astro-app.astro-app .astro-record-time { font-variant-numeric: tabular-nums; }

/* ---- notifications on this device ----------------------------------------- */
.astro-app.astro-app .astro-notify:empty { display: none; }
.astro-app.astro-app .astro-notify { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.astro-app.astro-app .astro-notify > * + * { margin-top: 0.5rem; }
.astro-app.astro-app .astro-notify .astro-row { justify-content: flex-start; gap: 1.25rem; }
.astro-app.astro-app .astro-ask .astro-notify .astro-row { justify-content: center; }

/* ---- requests and running chats shown on other pages ---------------------- */
.astro-app.astro-app.astro-floating {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); z-index: 99999;
  max-width: 28rem; max-height: 75vh; max-height: 75dvh; overflow-y: auto; margin-inline: auto; padding: 0.75rem;
  background: #fff; border: 2px solid var(--haldi); border-radius: 12px; box-shadow: 0 6px 24px rgb(30 27 75 / 25%);
}
.astro-app.astro-app.astro-floating[hidden] { display: none !important; }
.astro-app.astro-app.astro-floating > :last-child, .astro-app.astro-app.astro-floating .astro-running:last-child { margin-bottom: 0; }
.astro-app.astro-app .astro-running .astro-cta { white-space: nowrap; }
.astro-app.astro-app .astro-chat > .astro-elsewhere { max-height: 40%; overflow-y: auto; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); }

/* ---- the astrologer's running chat covers any screen ---------------------- */
.astro-app.astro-app .astro-chat.astro-held > .astro-chat-head > a.astro-leave { display: none; }
.astro-app.astro-app .astro-chat.astro-full.astro-held > .astro-chat-head { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 359px), (max-height: 520px) {
  .astro-app.astro-app .astro-chat.astro-full.astro-held > .astro-chat-head { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 951px) {
  .astro-app.astro-app.astro-overlay { background: var(--night); }
  .astro-app.astro-app.astro-overlay > .astro-chat.astro-full { max-width: 60rem; margin-inline: auto; }
}

