/* Panel and reader styling. Extends ys.css. */
.panel-body { background: var(--cream); }
.panel-top {
  display: flex; align-items: center; gap: 1rem; padding: .8rem 1.4rem;
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.panel-logo { height: 38px; width: auto; }
.panel-who { margin-left: auto; font-weight: 600; color: var(--forest); font-size: .93rem; }
.panel-wrap { width: min(1080px, 100% - 2.4rem); margin: 1.8rem auto 4rem; }
.panel-centre { display: grid; place-items: center; min-height: 70vh; padding: 1.4rem; }
.panel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.panel-head h1 { margin: 0; }
.panel-h2 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.panel-note { color: var(--ink-3); font-size: .9rem; margin: 0 0 .9rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

.pill {
  background: rgba(31,175,99,.14); color: var(--green-deep); font-size: .78rem;
  font-weight: 700; padding: .12rem .55rem; border-radius: 999px;
}
.pill-warn { background: rgba(184,144,30,.18); color: #7a5f0e; }

.row-card {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 10px; padding: .85rem 1.1rem; margin-bottom: .6rem;
}
.row-card.row-late { border-left-color: #C0392B; }
.row-sub { display: block; color: var(--ink-3); font-size: .85rem; }
.row-mid { text-align: right; }
.amount { font-weight: 700; color: var(--forest); }
.due-ok { color: var(--green-deep); font-weight: 600; font-size: .88rem; }
.due-late { color: #C0392B; font-weight: 700; font-size: .88rem; }
@media (max-width: 640px) {
  .row-card { grid-template-columns: 1fr; text-align: left; }
  .row-mid { text-align: left; }
}

.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 1rem 0 1.4rem; }
.order-head h1 { margin: 0 0 .2rem; font-size: 1.5rem; }
.order-grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

.detail-list { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .4rem 1rem; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: none; }
.detail-list dt { color: var(--ink-3); font-size: .88rem; }
.detail-list dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; }

.question-box { background: var(--gold-pale); border: 1px solid var(--gold-soft); border-radius: 10px; padding: .9rem 1.1rem; margin-top: 1rem; }
.question-box strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #7a5f0e; margin-bottom: .35rem; }
.question-box p { margin: 0; font-size: .95rem; }

.section-edit { margin-bottom: 1.1rem; }
.section-edit label { display: block; font-weight: 600; font-size: .92rem; color: var(--forest); margin-bottom: .3rem; }
.section-edit textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; line-height: 1.6; resize: vertical;
}
.section-edit textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,175,99,.15); }
.writer-actions { display: flex; gap: .7rem; margin-top: 1.2rem; }

.msg { font-size: .89rem; margin: .7rem 0 0; min-height: 1.2em; }
.msg-ok { color: var(--green-deep); }
.msg-bad { color: #C0392B; }

/* --- image picker --------------------------------------------------------- */
.picker {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,80,58,.45);
  display: grid; place-items: center; padding: 1.2rem; backdrop-filter: blur(3px);
}
.picker-box {
  background: #fff; border-radius: 14px; width: min(880px, 100%);
  max-height: 86vh; display: flex; flex-direction: column; padding: 1.2rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.picker-head { display: flex; align-items: center; gap: 1rem; }
.picker-head h2 { margin: 0; font-size: 1.15rem; }
.picker-tabs { display: flex; gap: .4rem; margin-left: auto; }
.tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .35rem .9rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink-2);
}
.tab.is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.picker-close { border: none; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-3); }
.picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .8rem; overflow-y: auto; margin-top: .8rem; padding-right: .3rem;
}
.pick {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .6rem;
  cursor: pointer; display: flex; flex-direction: column; gap: .4rem; align-items: center;
  font: inherit; transition: border-color .18s, transform .18s;
}
.pick:hover { border-color: var(--green); transform: translateY(-2px); }
.pick img { width: 100%; height: 168px; object-fit: contain; }
.pick span { font-size: .78rem; color: var(--ink-2); text-align: center; line-height: 1.3; }

.section-images { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 .4rem; }
.placed { position: relative; margin: 0; width: 210px; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; }
.placed img { width: 100%; height: 190px; object-fit: contain; display: block; cursor: zoom-in; }
.placed figcaption { font-size: .76rem; color: var(--ink-3); text-align: center; margin-top: .2rem; line-height: 1.25; }
.placed-x {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1; font-size: 1rem; color: #C0392B;
}
.add-img { margin-top: .2rem; }

/* --- today / all orders switch -------------------------------------------- */
.view-switch { display: flex; gap: .4rem; margin-left: auto; }
.row-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-dim { opacity: .55; border-left-color: var(--ink-3); }
.detail-list dd a { color: var(--green-deep); }
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; }
  .view-switch { margin-left: 0; order: 3; width: 100%; }
}

/* --- chart tables --------------------------------------------------------- */
.pos-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pos-table th { background: var(--gold-pale); color: var(--forest); text-align: left;
  padding: .5rem .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pos-table td { padding: .45rem .7rem; border-top: 1px solid var(--line); }
.retro { color: var(--gold-ink); font-weight: 700; font-size: .78rem; }
.dasha-now { background: rgba(31,175,99,.08); }

/* --- show password ------------------------------------------------------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 2.9rem; }
.pw-eye {
  position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; color: var(--ink-3); border-radius: 6px; padding: 0;
}
.pw-eye:hover { color: var(--green-deep); background: rgba(0,0,0,.04); }
.pw-eye:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* --- a chart opened full size ------------------------------------------- */
.zoom-back {
  position: fixed; inset: 0; background: rgba(20,18,12,.82); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem; cursor: zoom-out;
}
.zoom-back img { max-width: min(92vw, 900px); max-height: 88vh; background: #fff;
  border-radius: 10px; padding: 1rem; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.zoom-cap { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center;
  color: #f4efe2; font-size: .92rem; }

/* --- planetary position & vimshottari dasha ------------------------------- *
 * Dense reference data she reads while writing, so it is set tighter and
 * smaller than the rest of the panel — but the running dasha is pulled out and
 * marked, because that is the line she actually needs at a glance.
 * -------------------------------------------------------------------------- */
.astro-h { font-size: .95rem; margin: 1.2rem 0 .5rem; color: var(--forest); }
.astro-scroll { overflow-x: auto; }
.astro-table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.astro-table th, .astro-table td {
  border-bottom: 1px solid var(--line); padding: .34rem .5rem; text-align: left; white-space: nowrap;
}
.astro-table th { background: var(--cream, #faf6ec); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.astro-asc td { font-weight: 600; background: rgba(201,162,39,.10); }
.astro-r { color: #C0392B; font-weight: 700; font-size: .74rem; }
.astro-dim { color: var(--ink-3); font-weight: normal; font-size: .82rem; }

.astro-now { background: rgba(31,175,99,.10); border-left: 3px solid var(--green);
  padding: .5rem .7rem; border-radius: 0 6px 6px 0; font-size: .88rem; margin: .2rem 0 .7rem; }

.astro-dasha { font-size: .85rem; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .5rem; }
.astro-dasha details { border-bottom: 1px solid var(--line); }
.astro-dasha details:last-child { border-bottom: 0; }
.astro-dasha summary { cursor: pointer; padding: .3rem .1rem; list-style: revert; }
.astro-dasha summary.is-now { color: var(--green-deep); font-weight: 600; }
.astro-l2 { padding-left: 1rem; }
.astro-l3 { list-style: none; margin: .1rem 0 .4rem; padding-left: 1rem; }
.astro-l3 li { padding: .12rem 0; }
.astro-l3 li.is-now { color: var(--green-deep); font-weight: 600; }
.astro-foot { font-size: .76rem; color: var(--ink-3); margin: .6rem 0 0; }

/* --- "we need your birth details" ---------------------------------------- *
 * The one thing a paying customer must not miss. Dr. Yogita could not find the
 * form at all, so this sits above the list, in her gold, and cannot be read as
 * decoration.
 * -------------------------------------------------------------------------- */
.needs-details {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(180deg, #fdf8ea, #faf3e0);
  border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1.2rem;
}
.needs-details p { margin: .25rem 0 0; font-size: .92rem; color: var(--ink-2); }
.needs-details .btn { margin-left: auto; flex: none; }
@media (max-width: 560px) { .needs-details .btn { margin-left: 0; width: 100%; } }

/* --- the six North Indian charts ----------------------------------------- *
 * Drawn from the calculation, not picked from the picture library. Sized so a
 * chart is readable on a laptop without opening it — her first complaint was
 * that charts were too small to read.
 * -------------------------------------------------------------------------- */
.ni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.ni-chart { margin: 0; }
.ni-chart svg { width: 100%; height: auto; display: block; background: #fff;
  border-radius: 6px; cursor: zoom-in; }
.ni-chart figcaption { font-size: .74rem; color: var(--ink-3); text-align: center; margin-top: .25rem; }
.ni-lines { fill: none; stroke: var(--gold, #b8901e); stroke-width: .8; opacity: .85; }
.ni-r { font-size: 5.2px; fill: var(--ink-3); text-anchor: middle; dominant-baseline: middle; }
.ni-p { font-size: 5.6px; fill: var(--forest, #14503a); text-anchor: middle;
  dominant-baseline: middle; font-weight: 600; }

/* --- hover to enlarge a chart -------------------------------------------- *
 * "when the curser goes on chart she can zoom it to study it" — 13 Aug 2026.
 * Pure CSS so it is instant: the chart lifts and grows under the pointer, and
 * clicking opens it full screen. z-index lifts it above its neighbours in the
 * grid, otherwise the one to its right would be drawn on top of it.
 * -------------------------------------------------------------------------- */
.ni-chart { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.ni-chart svg { transition: transform .18s ease; transform-origin: center; }
.ni-chart:hover { z-index: 60; }
.ni-chart:hover svg {
  transform: scale(1.75);
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
  border: 1px solid var(--gold, #b8901e);
}
.ni-chart:hover figcaption { opacity: 0; }
@media (hover: none) { .ni-chart:hover svg { transform: none; box-shadow: none; } }
/* A computed chart opened full screen — it is an SVG, so give it a size. */
.zoom-back svg { width: min(88vw, 720px); height: auto; background: #fff;
  border-radius: 10px; padding: 1rem; box-shadow: 0 18px 60px rgba(0,0,0,.5); }

/* ---------------------------------------------------------------------------
 * Monthly horoscope — twelve signs, each with its own transit chart beside the
 * box she writes in. The chart sits LEFT of the writing on a wide screen and
 * above it on a narrow one, so on her phone she still reads the chart first and
 * writes second, which is the order she works in.
 * -------------------------------------------------------------------------- */
.h-sign { margin-bottom: 1.1rem; }
.h-grid { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 1.2rem; }
.h-chart { min-width: 0; }
.h-chart .astro-table { margin-top: .5rem; }
.h-write { min-width: 0; display: flex; flex-direction: column; }
.h-write label { font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.h-write textarea { width: 100%; flex: 1; min-height: 9rem; resize: vertical; }
.h-acts { display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; margin-top: .6rem; flex-wrap: wrap; }
@media (max-width: 720px) {
  .h-grid { grid-template-columns: minmax(0, 1fr); }
  .h-chart { max-width: 300px; margin: 0 auto; }
}
