.kundli-positions-near-map,
.kundli-dasha-explorer,
.dasha-now {
  margin: .75rem 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(225, 182, 115, .32);
  border-radius: 20px;
  background: rgba(28, 12, 37, .58);
  color: #f7eade;
}
.kundli-position-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .65rem;
}
.kundli-positions-near-map summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; color: #f4c987; font-weight: 600; list-style: none; }
.kundli-positions-near-map summary::-webkit-details-marker { display: none; }
.kundli-positions-near-map[open] summary { margin-bottom: .8rem; }
.kundli-positions-near-map summary:focus-visible { outline: 2px solid #f4c987; outline-offset: 3px; }
.kundli-position-list > div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .8rem;
  border: 1px solid rgba(225, 182, 115, .2);
  border-radius: 14px;
  background: rgba(9, 5, 18, .44);
}
.kundli-position-list b,
.kundli-dasha-explorer strong { color: #f4c987; }
.kundli-position-list span,
.kundli-position-list small { overflow-wrap: anywhere; }
.dasha-now { display: flex; align-items: center; gap: .55rem 1rem; flex-wrap: wrap; }
.dasha-now small { color: #f4c987; letter-spacing: .08em; }
.dasha-now b { color: #f7eade; }
.dasha-now span { color: #d7c9d9; font-size: .85rem; }
.kundli-dasha-explorer { padding: 0; overflow: hidden; }
.dasha-explorer-toggle,
.dasha-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; color: #f7eade; background: transparent; border: 0; cursor: pointer;
}
.dasha-explorer-toggle { min-height: 56px; padding: .8rem 1rem; color: #f4c987; font-weight: 600; }
.dasha-explorer-body { padding: 0 .6rem .6rem; }
.dasha-explorer-body[hidden] { display: none; }
.dasha-explorer-body > p { padding: .4rem; margin: 0 0 .4rem; font-size: .82rem; color: #d7c9d9; }
.dasha-row,
.dasha-period { min-height: 52px; padding: .55rem .7rem; border-top: 1px solid rgba(225, 182, 115, .16); }
.dasha-row:focus-visible,
.dasha-explorer-toggle:focus-visible { outline: 2px solid #f4c987; outline-offset: -2px; }
.dasha-row.is-current,
.dasha-period.is-current { background: rgba(133, 80, 122, .15); }
.dasha-row span { min-width: 0; }
.dasha-row b,
.dasha-row small,
.dasha-period b,
.dasha-period small { display: block; }
.dasha-row small,
.dasha-period small { color: #d7c9d9; font-size: .75rem; margin-top: .15rem; }
.dasha-row i { color: #f4c987; font-size: 1.3rem; font-style: normal; }
.dasha-nested { margin-left: .9rem; border-left: 1px solid rgba(225, 182, 115, .32); }
.dasha-nested > strong { display: block; padding: .5rem .7rem .2rem; font-size: .75rem; letter-spacing: .08em; }
.dasha-praty { margin-left: .9rem; }
.chart-results { scroll-margin-top: 18px; }
.chart-result-header > div { display: grid; gap: 5px; min-width: 0; }
.chart-result-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.chart-loading { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(225, 182, 115, .28); border-radius: 14px; background: rgba(9, 5, 18, .5); }
.chart-loading b { color: #f7eade; }
.chart-loading span { color: #d7c9d9; font-size: 12px; line-height: 1.55; }

/* Council reading: keep the dark surface legible even after older light-theme rules. */
#council .royal-reading-stage .answer-card,
#council .royal-reading-stage #answer-content {
  color: #f8ecdc !important;
}
#council .royal-reading-stage #answer-content p,
#council .royal-reading-stage #answer-content li,
#council .royal-reading-stage .response-headline,
#council .royal-reading-stage .council-timeline strong,
#council .royal-reading-stage .council-asked-question p {
  color: #f8ecdc !important;
}
#council .royal-reading-stage #answer-content .card-label,
#council .royal-reading-stage .timeline-date,
#council .royal-reading-stage .timeline-highlight,
#council .royal-reading-stage .council-followups > span,
#council .royal-reading-stage .pramana-feedback > p {
  color: #f2c984 !important;
}
#council .royal-reading-stage .council-timeline li {
  background: linear-gradient(145deg, #3a2144, #241428) !important;
  border: 1px solid rgba(226, 186, 122, .55) !important;
  color: #f8ecdc !important;
}
#council .royal-reading-stage .council-timeline li:before,
#council .royal-reading-stage .council-timeline .timeline-why summary {
  color: #f2c984 !important;
}
#council .royal-reading-stage .council-timeline .timeline-classical {
  display: block;
  margin: 10px 0 0;
  color: #f4e4d4 !important;
  font: 400 14px/1.55 "DM Sans", sans-serif;
}
#council .royal-reading-stage .council-timeline .timeline-why,
#council .royal-reading-stage .council-timeline .timeline-why p {
  color: #f4e4d4 !important;
  border-left-color: rgba(242, 201, 132, .45);
}
#council .royal-reading-stage .status-pill {
  color: #f9dfac !important;
  background: #321b39 !important;
  border-color: #bb8c57 !important;
}
#council .royal-reading-stage .reasoning,
#council .royal-reading-stage .council-followups button {
  color: #f8ecdc !important;
  background: #311b39 !important;
  border-color: #a77770 !important;
}
#council .royal-reading-stage .pramana-feedback {
  background: #29152f !important;
  border: 1px solid #a77770 !important;
  border-radius: 14px;
  padding: 12px 14px !important;
}
#council #answer-content .pramana-feedback {
  box-sizing: border-box;
  width: 100%;
  margin: 18px 0 0 !important;
  padding: 14px !important;
  background: #29152f !important;
  border: 1px solid #b88a66 !important;
  border-radius: 14px;
}
#council #answer-content .pramana-feedback > p { color: #f2c984 !important; }
#council #answer-content .pramana-choices { display: flex; flex-wrap: wrap; gap: 9px; }
#council #answer-content .pramana-choices button {
  width: auto !important;
  height: auto !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  color: #fff2e2 !important;
  background: #442044 !important;
  border: 1px solid #c18b75 !important;
  border-radius: 11px;
  font-size: 13px !important;
}
#council .royal-reading-stage .pramana-choices button {
  width: auto !important;
  min-width: 112px;
  height: auto !important;
  min-height: 42px !important;
  padding: 8px 13px !important;
  color: #fff2e2 !important;
  background: #442044 !important;
  border: 1px solid #c18b75 !important;
  border-radius: 11px;
  font-size: 13px !important;
  line-height: 1.25;
  white-space: normal;
}
#council .royal-reading-stage .pramana-choices button:hover,
#council .royal-reading-stage .pramana-choices button:focus-visible {
  background: #65315c !important;
  outline: 2px solid #f2c984;
  outline-offset: 2px;
}
#council .council-audit-choice { display:flex; align-items:flex-start; gap:9px; font-size:11px; line-height:1.4; color:#ddc9d8; text-transform:none; letter-spacing:0; }
#council .council-audit-choice input { width:16px; height:16px; flex:0 0 16px; margin:1px 0 0; accent-color:#d7a66b; }
.operator-consent-dialog { width:min(520px,calc(100vw - 28px)); max-height:85vh; overflow:auto; padding:28px; border:1px solid #d5a971; border-radius:20px; background:linear-gradient(145deg,#321735,#170c20); color:#f9ecdd; box-shadow:0 24px 90px #08030bba; }
.operator-consent-dialog::backdrop { background:#08040bd9; backdrop-filter:blur(6px); }
.operator-consent-dialog h2 { margin:8px 0 15px; color:#f3d39c; font:normal 32px Georgia,serif; }
.operator-consent-dialog p { color:#e2d0dd; font-size:14px; line-height:1.6; }
.operator-consent-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.operator-consent-actions button { flex:1 1 180px; min-height:45px; }

/* Vedic Kundli metadata: keep the rāśi number, sign, lord and occupants readable
   in both the North Indian map and the mobile house doorway. */
.calculated-kundli .kundli-house-sign { color:#f1d28f; font:600 10px/1.15 "DM Mono", monospace; letter-spacing:.2px; }
.calculated-kundli .kundli-house-lord { color:#d8b9d2; font:500 9px/1.15 "DM Sans", sans-serif; }
.calculated-kundli .kundli-house-planets { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calculated-kundli .kundli-house-card { width:19%; height:15%; padding:3px!important; line-height:1.1; }
.calculated-kundli .kundli-house-card small { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calculated-kundli .kundli-legend { margin:8px 0 0; color:#b9a8c8; font:10px/1.45 "DM Sans", sans-serif; }
.calculated-kundli .kundli-legend span { display:block; color:#d8bb83; margin-top:2px; }
.chart-reading-strip { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 4px; }
.chart-reading-strip span, .door-chart-facts span { display:grid; gap:3px; padding:8px 10px; border:1px solid rgba(232,197,119,.18); border-radius:9px; color:#bcaac9; font:10px/1.25 "DM Mono", monospace; }
.chart-reading-strip b, .door-chart-facts b { color:#f2d399; font:600 11px/1.25 "DM Sans", sans-serif; }
.door-chart-facts { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 13px; }
.door-house small { line-height:1.45; }
@media (max-width:600px) {
  .calculated-kundli .kundli-house-card { width:22%; height:16%; }
  .calculated-kundli .kundli-house-sign { font-size:8px; }
  .calculated-kundli .kundli-house-lord { font-size:7px; }
  .calculated-kundli .kundli-legend { font-size:9px; }
  .chart-reading-strip span, .door-chart-facts span { flex:1 1 130px; }
}
