/* Ashram journal (public) + Sansthaan desk (admin). */
:root {
  --jr-line: color-mix(in oklab, var(--color-maroon) 12%, transparent);
}

/* ——— Public journal ——— */
.jr { background: #fbf7ef; color: #2a1a12; }
.jr a { color: var(--color-maroon); text-underline-offset: 0.18em; }
.jr a:hover { color: var(--color-gold-soft, #c5a059); }
.jr-mast, .jr-head { max-width: 52rem; margin: 0 auto; padding: 2.2rem 1.2rem 1.2rem; }
.jr-kicker, .jr-tag {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-gold-soft, #c5a059); margin: 0 0 0.4rem;
}
.jr-mast h1, .jr-head h1 {
  font-family: "Playfair Display", serif; font-weight: 700;
  color: var(--color-maroon); margin: 0 0 0.5rem; letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.jr-deck, .jr-sub { color: #6b5748; font-size: 1.05rem; line-height: 1.55; margin: 0; max-width: 40rem; }
.jr-topics { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: 52rem; margin: 0 auto 1.4rem; padding: 0 1.2rem; }
.jr-topics a {
  border: 1px solid #ead9a8; border-radius: 999px; padding: 0.28rem 0.8rem;
  color: #2a1a12; text-decoration: none; font-size: 0.82rem; background: #fff;
}
.jr-topics a.is-on, .jr-topics a:hover { background: var(--color-maroon); color: #f8efe0; border-color: var(--color-maroon); }
.jr-feature, .jr-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center;
  max-width: 52rem; margin: 0 auto 1rem; padding: 0.9rem 1.2rem;
  background: #fff; border: 1px solid #ead9a8; border-radius: 1rem;
  text-decoration: none; color: inherit;
}
.jr-feature img, .jr-row img { width: 100%; height: 96px; object-fit: cover; border-radius: 0.6rem; }
.jr-feature h2, .jr-row h3 { font-family: "Playfair Display", serif; color: var(--color-maroon); margin: 0.2rem 0 0.35rem; }
.jr-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.55rem; color: #6b5748; font-size: 0.78rem; }
.jr-avatar { width: 1.5rem; height: 1.5rem; border-radius: 999px; object-fit: contain; background: var(--color-maroon); }
.jr-list { max-width: 52rem; margin: 0 auto 3rem; padding: 0 1.2rem; display: grid; gap: 0.8rem; }
.jr-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--color-maroon); z-index: 40; }
.jr-crumbs { max-width: 52rem; margin: 0 auto; padding: 1.4rem 1.2rem 0; font-size: 0.82rem; color: #6b5748; }
.jr-crumbs a:hover { color: var(--color-maroon); text-decoration: underline; }
.jr-by { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; color: #6b5748; font-size: 0.85rem; }
.jr-by img { width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--color-maroon); object-fit: contain; }
.jr-share { display: flex; gap: 0.4rem; }
.jr-share a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid #ead9a8; border-radius: 999px; color: var(--color-maroon); text-decoration: none;
}
.jr-cover { max-width: 52rem; margin: 1.2rem auto; padding: 0 1.2rem; }
.jr-cover img { width: 100%; border-radius: 1rem; display: block; }
.jr-cover figcaption { font-size: 0.78rem; color: #6b5748; margin-top: 0.4rem; }
.jr-layout { max-width: 52rem; margin: 0 auto; padding: 0 1.2rem 3rem; display: grid; gap: 1.4rem; }
@media (min-width: 900px) {
  .jr-layout { grid-template-columns: 180px 1fr; }
  .jr-toc { position: sticky; top: 6rem; align-self: start; }
}
.jr-toc p { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c5a059; font-weight: 800; }
.jr-toc ol { margin: 0.4rem 0 0; padding: 0 0 0 1.1rem; color: #6b5748; font-size: 0.86rem; }
.jr-toc a { color: inherit; text-decoration: none; }
.jr-toc a:hover { color: var(--color-maroon); }
.jr-body { font-size: 1.05rem; line-height: 1.7; }
.jr-body h2 { font-family: "Playfair Display", serif; color: var(--color-maroon); font-size: 1.35rem; margin: 1.6rem 0 0.6rem; }
.jr-body p { margin: 0 0 1rem; }
.jr-end { max-width: 52rem; margin: 0 auto 3rem; padding: 0 1.2rem; }
.jr-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.jr-tags a { border: 1px solid #ead9a8; border-radius: 999px; padding: 0.2rem 0.7rem; text-decoration: none; font-size: 0.78rem; color: #2a1a12; background: #fff; }
.jr-bio, .jr-cta { background: #fff; border: 1px solid #ead9a8; border-radius: 1rem; padding: 1rem; margin-top: 0.8rem; }
.jr-more { max-width: 52rem; margin: 0 auto 4rem; padding: 0 1.2rem; }
.jr-more h2 { font-family: "Playfair Display", serif; color: var(--color-maroon); }

/* ——— Desk shell ——— */
body.ad {
  margin: 0;
  min-height: 100vh;
  background: #fbf7ef;
  color: #2a1a12;
  font-family: Hind, system-ui, sans-serif;
}
body.ad img { max-width: 100%; }
.ad-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: #7a1e1e; color: #f8efe0;
  border-bottom: 2px solid #c5a059;
}
.ad-top img { width: 36px; height: 36px; object-fit: contain; flex: none; background: transparent; }
.ad-top b { font-family: "Playfair Display", serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; flex: none; }
.ad-top nav { display: flex; flex-wrap: wrap; gap: 0.15rem; flex: 1; min-width: 0; }
.ad-top nav a {
  color: #f4ead4; text-decoration: none; font-size: 0.78rem; font-weight: 650;
  padding: 0.32rem 0.62rem; border-radius: 999px; white-space: nowrap;
}
.ad-top nav a:hover { background: rgba(255,255,255,.1); }
.ad-top nav a.is-on { background: #d4af37; color: #5c1212; }
.ad-out, .ad-back {
  appearance: none; border: 1px solid rgba(244,234,212,.45); background: transparent;
  color: #f8efe0; border-radius: 999px; height: 32px; padding: 0 0.75rem;
  font: 650 0.75rem/1 Hind, sans-serif; cursor: pointer; flex: none;
}
.ad-out:hover, .ad-back:hover { background: rgba(255,255,255,.1); }
.ad-wrap { padding: 1.15rem 1.2rem 2.4rem; max-width: 1180px; margin: 0 auto; }
.ad-narrow { max-width: 760px; }
.ad-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.7rem; }
.ad-head h1 { font-family: "Playfair Display", serif; font-size: 1.7rem; color: #7a1e1e; margin: 0; font-weight: 700; }
.ad-lead { margin: 0.35rem 0 0; color: #6b5748; font-size: 0.9rem; max-width: 36rem; }
.ad-hint { font-size: 0.8rem; color: #6b5748; margin: 0.3rem 0 0.7rem; line-height: 1.45; }
.ad-hint b { color: var(--color-maroon, #7a1e1e); font-weight: 700; }
.ad-mute { color: #6b5748; font-size: 0.75rem; margin-top: 0.15rem; }
.ad-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ad-btn {
  appearance: none; border: 1px solid #ead9a8; background: #fff; color: #2a1a12;
  border-radius: 999px; height: 36px; padding: 0 0.9rem;
  font: 650 0.82rem/1 Hind, sans-serif; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.ad-btn:hover { border-color: #c5a059; }
.ad-btn.maroon { background: #7a1e1e; color: #f8efe0; border-color: #7a1e1e; }
.ad-btn.gold { background: #d4af37; color: #5c1212; border-color: #c5a059; }
.ad-btn.ghost { background: transparent; }
.ad-btn:disabled { opacity: 0.45; cursor: default; }

.ad-table-wrap { overflow: auto; border: 1px solid #ead9a8; background: #fff; border-radius: 0.8rem; }
.ad-table { width: 100%; border-collapse: collapse; background: #fff; }
.ad-table th, .ad-table td {
  text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid #ead9a8;
  vertical-align: middle; font-size: 0.88rem;
}
.ad-table th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b5748; font-weight: 700; background: #fbf7ef; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid #ead9a8; background: #fff; display: block;
}
.ad-table td > .ad-thumb { width: 56px; height: 56px; max-width: 56px; }
.ad-mini { width: 6.2rem; border: 1px solid #ead9a8; border-radius: 0.45rem; padding: 0.4rem 0.45rem; font-size: 0.88rem; background: #fff; }
.ad-off { font-weight: 700; color: var(--color-maroon, #7a1e1e); white-space: nowrap; }
.ad-switch { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; cursor: pointer; }
.ad-pill { display: inline-block; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ad-pill.on { background: #e8f6ee; color: #166534; }
.ad-pill.off { background: #f3e6c8; color: #7a1e1e; }
.ad-score { font-variant-numeric: tabular-nums; font-weight: 700; color: #7a1e1e; }

.ad-form { background: #fff; border: 1px solid #ead9a8; border-radius: 0.9rem; padding: 1.1rem 1.1rem 1.3rem; }
.ad-field { margin: 0 0 0.85rem; }
.ad-field label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7a1e1e; margin: 0 0 0.3rem;
}
.ad-field input, .ad-field textarea, .ad-field select, .ad-form input, .ad-form textarea, .ad-form select {
  width: 100%; border: 1px solid #ead9a8; border-radius: 0.55rem;
  padding: 0.55rem 0.7rem; font: 400 0.95rem/1.45 Hind, sans-serif;
  color: #2a1a12; background: #fff; box-sizing: border-box;
}
.ad-field textarea { min-height: 5rem; resize: vertical; }
.ad-field input:focus, .ad-field textarea:focus, .ad-field select:focus {
  outline: 2px solid color-mix(in oklab, #7a1e1e 40%, white); outline-offset: 1px;
}
.ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.ad-chip {
  appearance: none; border: 1px solid #ead9a8; background: #fff; color: #2a1a12;
  border-radius: 999px; height: 32px; padding: 0 0.8rem; font: 650 0.8rem/1 Hind, sans-serif; cursor: pointer;
}
.ad-chip.is-on { background: #7a1e1e; color: #f8efe0; border-color: #7a1e1e; }
.ad-drop {
  border: 1px dashed #c5a059; border-radius: 0.8rem; min-height: 8rem;
  display: grid; place-items: center; text-align: center; color: #6b5748;
  cursor: pointer; padding: 0.8rem; background: #fbf7ef;
}
.ad-drop.is-on { background: #fff8ea; }
.ad-drop img { max-height: 180px; max-width: 100%; object-fit: contain; }
.ad-h { font-family: "Playfair Display", serif; font-size: 1.15rem; color: #7a1e1e; margin: 0 0 0.35rem; }
.ad-toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--color-maroon, #7a1e1e); color: #f8efe0;
  padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.8rem; z-index: 40;
  display: none;
}
.ad-toast.is-on { display: block; }
.ad-count { font-size: 0.72rem; color: #6b5748; margin-top: 0.2rem; }
.ad-count.bad { color: #9b1c1c; }
.ad-count.ok { color: #166534; }
.ad-err { color: #9b1c1c; font-size: 0.82rem; min-height: 1.1rem; }
.ad-frame { width: 100%; min-height: 70vh; border: 1px solid #ead9a8; background: #fff; border-radius: 0.7rem; }
.ad-preview { margin-top: 1rem; }

.ad-fmt {
  display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0 0 0.45rem;
  padding: 0.35rem; background: #fbf7ef; border: 1px solid #ead9a8; border-radius: 0.6rem;
}
.ad-fmt button {
  appearance: none; border: 0; background: #fff; color: #2a1a12;
  height: 28px; min-width: 28px; padding: 0 0.45rem; border-radius: 0.35rem;
  font: 650 0.75rem/1 Hind, sans-serif; cursor: pointer; border: 1px solid #ead9a8;
}
.ad-fmt button:hover { border-color: #c5a059; }
.ad-dot { width: 18px; height: 18px; border-radius: 999px; padding: 0 !important; min-width: 18px !important; }
.ad-dot.maroon { background: #7a1e1e; }
.ad-dot.gold { background: #b8860b; }
.ad-dot.ink { background: #2a1a12; }
.ad-dot.black { background: #111; }
.ad-rich {
  min-height: 8rem; border: 1px solid #ead9a8; border-radius: 0.6rem;
  padding: 0.7rem 0.8rem; background: #fff; line-height: 1.55;
}
.ad-rich:empty:before { content: attr(data-ph); color: #9a8470; }
.ad-pics { display: grid; gap: 0.7rem; margin: 0.55rem 0 0.75rem; }
.ad-pic {
  display: grid; grid-template-columns: 112px 1fr; gap: 0.7rem; align-items: start;
  border: 1px solid #ead9a8; border-radius: 0.8rem; padding: 0.65rem; background: #fff;
}
.ad-pic-still {
  width: 112px; height: 112px; background: #1a0e0a; border-radius: 0.5rem;
  overflow: hidden; cursor: pointer; position: relative; display: grid; place-items: center;
}
.ad-pic-still img { width: 100%; height: 100%; object-fit: contain; }
.ad-pic-still span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(26,14,10,.72); color: #f4ead4;
  font-size: 0.65rem; text-align: center; padding: 0.18rem 0.2rem;
}
.ad-pic-move { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.ad-pic-main {
  font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #7a1e1e; background: #fff6c8; border: 1px solid #d4af37;
  border-radius: 999px; padding: .2rem .55rem;
}
.ad-hero-list { display: grid; gap: 0.8rem; margin-top: 0.8rem; }
.ad-hero-card {
  display: grid; grid-template-columns: 118px 1fr auto; gap: 0.75rem; align-items: start;
  background: #fff; border: 1px solid #ead9a8; border-radius: 0.85rem; padding: 0.75rem;
}
.ad-hero-still { display: grid; place-items: center; width: 118px; height: 80px; background: #1a0e0a; border-radius: 0.5rem; overflow: hidden; }
.ad-hero-still img { width: 100%; height: 100%; object-fit: cover; }
.ad-hero-meta { font-size: 0.8rem; color: #6b5748; }
.ad-hero-move { display: flex; flex-direction: column; gap: 0.3rem; }
.ad-logo-drop { max-width: 220px; min-height: 6rem; }

.ad-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: #fbf7ef; }
.ad-card {
  width: min(420px, 100%); background: #fff; border: 1px solid #ead9a8; border-radius: 1.1rem;
  padding: 1.6rem 1.4rem 1.5rem; text-align: center;
}
.ad-card img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 0.6rem; }
.ad-card .k { letter-spacing: .18em; text-transform: uppercase; color: #c5a059; font-size: 0.7rem; font-weight: 800; }
.ad-card h1 { font-family: "Playfair Display", serif; color: #7a1e1e; margin: 0.3rem 0 0.4rem; font-size: 1.6rem; }
.ad-card .lead { color: #6b5748; font-size: 0.88rem; }
.ad-card input { margin: 0.8rem 0; }
.ad-card button[type=submit] {
  appearance: none; width: 100%; height: 42px; border: 0; border-radius: 999px;
  background: #7a1e1e; color: #f8efe0; font: 700 0.9rem/1 Hind, sans-serif; cursor: pointer;
}

.ad-sheet {
  position: fixed; inset: 0; background: rgba(26,14,10,.46); z-index: 50;
  display: grid; place-items: center; padding: 1rem;
}
.ad-sheet-card {
  width: min(440px, 100%); background: #fff; border-radius: 1rem; padding: 1.1rem;
  border: 1px solid #ead9a8;
}
.ad-sheet-card h2 { font-family: "Playfair Display", serif; color: #7a1e1e; margin: 0 0 0.4rem; }
.ad-sheet-card textarea { width: 100%; border: 1px solid #ead9a8; border-radius: 0.5rem; padding: 0.55rem; font: 400 0.88rem/1.45 Hind, sans-serif; }

.ad-envelope {
  background: #fffdf8; border: 1px solid #ead9a8; border-radius: 0.95rem;
  padding: 1rem 1rem 0.4rem; margin: 0 0 1.1rem;
}
.ad-envelope h2 { font-family: "Playfair Display", serif; color: #7a1e1e; margin: 0 0 0.5rem; font-size: 1.2rem; }
.ad-envelope-k, .ad-letter-k {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #c5a059; margin: 0 0 0.35rem;
}
.ad-src { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.85rem; }
.ad-src label { cursor: pointer; }
.ad-src input { position: absolute; opacity: 0; pointer-events: none; }
.ad-src span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 0.75rem;
  border: 1px solid #ead9a8; border-radius: 999px; background: #fff; font-size: 0.8rem; font-weight: 650;
}
.ad-src input:checked + span { background: #7a1e1e; color: #f8efe0; border-color: #7a1e1e; }
.ad-from {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline;
  background: #fbf7ef; border-radius: 0.55rem; padding: 0.5rem 0.7rem; margin: 0 0 0.8rem; font-size: 0.88rem;
}
.ad-from em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #c5a059; font-weight: 800; }
.ad-env-card { background: #fff; border: 1px solid #ead9a8; border-radius: 0.7rem; padding: 0.8rem; margin: 0 0 0.8rem; }
.ad-env-card p { margin: 0.2rem 0; display: flex; gap: 0.6rem; font-size: 0.86rem; }
.ad-env-card i { font-style: normal; color: #6b5748; min-width: 5.5rem; }
.ad-bday-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 0 0 1rem; }
.ad-bday-card {
  border: 1px solid #ead9a8; border-radius: 0.8rem; padding: 0.7rem; background: #fff; cursor: pointer; display: grid; gap: 0.2rem;
}
.ad-bday-card input { position: absolute; opacity: 0; pointer-events: none; }
.ad-bday-card b { color: #7a1e1e; }
.ad-bday-card span { font-weight: 800; color: #c5a059; }
.ad-bday-card i { font-style: normal; font-size: 0.75rem; color: #6b5748; }
.ad-bday-card:has(input:checked) { border-color: #7a1e1e; box-shadow: 0 0 0 1px #7a1e1e; }

.ad-report-list { display: grid; gap: 0.65rem; }
.ad-report {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  background: #fff; border: 1px solid #ead9a8; border-radius: 0.8rem; padding: 0.85rem 1rem;
}
.ad-report b { display: block; color: #7a1e1e; }
.ad-report span { font-size: 0.8rem; color: #6b5748; }

.ad-step { border: 1px solid #ead9a8; border-radius: 0.8rem; padding: 0.8rem; margin: 0.7rem 0; background: #fff; }
.ad-step-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.ad-step-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }

/* Blog editor */
.ed { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; padding: 1rem 1.2rem 2rem; max-width: 1180px; margin: 0 auto; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.ed-cover { display: block; min-height: 160px; background: #fbf7ef; border: 1px dashed #c5a059; border-radius: 0.8rem; cursor: pointer; overflow: hidden; }
.ed-cover img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.ed-cover span { display: grid; place-items: center; min-height: 160px; color: #6b5748; padding: 1rem; }
.ed-title, .ed-sub, .ed-body { outline: none; }
.ed-title { font-family: "Playfair Display", serif; font-size: 2rem; color: #7a1e1e; margin: 0.7rem 0 0.3rem; }
.ed-sub { color: #6b5748; font-size: 1.05rem; margin-bottom: 0.7rem; }
.ed-body { min-height: 20rem; background: #fff; border: 1px solid #ead9a8; border-radius: 0.7rem; padding: 0.9rem; line-height: 1.6; }
.ed-side { background: #fff; border: 1px solid #ead9a8; border-radius: 0.9rem; padding: 0.9rem; }
.seo-h { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.seo-h b { color: #7a1e1e; }
.seo-h span { display: block; font-size: 0.72rem; color: #6b5748; font-weight: 400; }
.seo-ring { width: 56px; height: 56px; flex: none; }
.seo-list { list-style: none; padding: 0; margin: 0 0 0.8rem; font-size: 0.8rem; }
.seo-list li { padding: 0.2rem 0; color: #6b5748; }
.seo-list .ok { color: #166534; }
.seo-list .bad { color: #9b1c1c; }

/* ——— Wix-style submissions ——— */
.sub-page { padding: 12px 16px 32px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: #162d3d; }
.sub-page.has-side { padding-right: 420px; }
.sub-card { background: #fff; border: 1px solid #e5ecf0; border-radius: 8px; overflow: visible; }
.sub-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eef2f5; flex-wrap: wrap; }
.sub-tabs { display: flex; gap: 2px; }
.sub-tab {
  appearance: none; border: 0; background: transparent; height: 36px; padding: 0 12px;
  font: 600 13px/1 Helvetica Neue, Helvetica, Arial, sans-serif; color: #3d5a6c; cursor: pointer; border-bottom: 2px solid transparent;
}
.sub-tab.is-on { color: #116dff; border-bottom-color: #116dff; }
.sub-count { font-weight: 600; color: #7a92a5; margin-left: 4px; }
.sub-tools { display: flex; align-items: center; gap: 6px; }
.sub-icon-btn {
  appearance: none; border: 1px solid #d6e0e8; background: #fff; color: #325264;
  height: 32px; padding: 0 10px; border-radius: 6px; cursor: pointer; font: 600 12px/1 Helvetica Neue, Helvetica, Arial, sans-serif;
  display: inline-flex; align-items: center; gap: 6px;
}
.sub-icon-btn.is-on { border-color: #116dff; color: #116dff; background: #eef5ff; }
.sub-search { display: flex; align-items: center; gap: 6px; border: 1px solid #d6e0e8; border-radius: 6px; height: 32px; padding: 0 8px; background: #fff; }
.sub-search input { border: 0; outline: none; width: 160px; font-size: 13px; }
.sub-qx, .sub-x { appearance: none; border: 0; background: none; cursor: pointer; font-size: 16px; color: #7a92a5; }
.sub-ai { appearance: none; border: 1px solid #d6e0e8; background: #fff; height: 32px; padding: 0 10px; border-radius: 6px; cursor: pointer; font: 600 12px Helvetica Neue, Helvetica, Arial, sans-serif; }
.sub-bulk { display: none; align-items: center; gap: 8px; padding: 8px 12px; background: #f4f8fb; border-bottom: 1px solid #eef2f5; }
.sub-bulk.is-on { display: flex; }
.sub-table-wrap { overflow: auto; max-height: calc(100vh - 220px); }
.sub-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: auto; }
.sub-table th, .sub-table td { padding: 10px 8px; border-bottom: 1px solid #eef2f5; text-align: left; vertical-align: middle; background: #fff; }
.sub-table th { background: #f7fafc; color: #5b7384; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.sub-table tbody tr { cursor: pointer; }
.sub-table tr:hover td { background: #f4f8ff; }
.sub-table tr.is-open td { background: #e7f1ff; box-shadow: inset 0 1px 0 #116dff, inset 0 -1px 0 #116dff; }
.sub-table tr.is-open td:first-child { box-shadow: inset 2px 0 0 #116dff, inset 0 1px 0 #116dff, inset 0 -1px 0 #116dff; }
.sub-table tr.is-open td:last-child { box-shadow: inset -2px 0 0 #116dff, inset 0 1px 0 #116dff, inset 0 -1px 0 #116dff; }
.sub-table th.is-sort { position: relative; }
.sub-table td.sub-check, .sub-table th.sub-check {
  width: 36px; position: sticky; left: 0; z-index: 2; background: #fff;
}
.sub-table th.sub-check { z-index: 3; background: #f7fafc; }
.sub-table td.sub-menu-col, .sub-table th.sub-menu-col {
  width: 46px; white-space: nowrap; text-align: right; background: transparent; box-shadow: none; position: relative;
}
.sub-table th.sub-menu-col { background: #f7fafc; }
.sub-float { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.sub-table tr:hover td.sub-check, .sub-table tr:hover td.sub-menu-col { background: #f7fbff; }
.sub-view {
  appearance: none; border: 0; background: #116dff; color: #fff; height: 30px; padding: 0 14px;
  border-radius: 6px; font: 700 13px Helvetica Neue, Helvetica, Arial, sans-serif; cursor: pointer;
  display: none; align-items: center;
}
.sub-table tr:hover .sub-view, .sub-table tr.is-open .sub-view { display: inline-flex; }
.sub-dots {
  appearance: none; border: 0; background: transparent; cursor: pointer; color: #5b7384;
  width: 32px; height: 32px; border-radius: 6px; display: inline-grid; place-items: center; vertical-align: middle;
}
.sub-dots:hover, .sub-dots.is-on { background: #eef5ff; color: #116dff; }
.sub-rh { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; }
.sub-date b { display: block; font-weight: 600; white-space: nowrap; }
.sub-date span { color: #7a92a5; font-size: 12px; white-space: nowrap; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sub-chips.is-stack { flex-direction: column; align-items: flex-start; }
.sub-chip { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.sub-chips.is-stack .sub-chip { max-width: 100%; white-space: normal; }
.sub-pay { display: inline-block; max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; background: #eef2f5; }
.sub-pay.is-pre { background: #f6e27a; color: #5a4300; }
.sub-pay.is-part { background: #b7f3ea; color: #0d4f4a; }
.sub-pay.is-cod { background: #e7eef5; color: #243848; }
.sub-clip { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-none, .sub-empty { text-align: center; padding: 48px 16px; color: #5b7384; }
.sub-none-art { display: block; margin: 0 auto 12px; }
.sub-reset { appearance: none; border: 1px solid #d6e0e8; background: #fff; height: 32px; padding: 0 12px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.sub-chipbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #eef2f5; align-items: center; }
.sub-fchip { background: #eef5ff; color: #116dff; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.sub-fchip button { appearance: none; border: 0; background: none; cursor: pointer; color: inherit; }
.sub-clearall { appearance: none; border: 0; background: none; color: #116dff; cursor: pointer; font-weight: 600; font-size: 12px; }
.sub-skel { height: 12px; background: linear-gradient(90deg, #eef2f5, #f7fafc, #eef2f5); border-radius: 4px; animation: sub-shimmer 1.2s linear infinite; }
@keyframes sub-shimmer { 0% { opacity: .55; } 100% { opacity: 1; } }
.sub-side {
  position: fixed; top: var(--desk-top, 56px); right: 0; bottom: 0; width: 400px; background: #fff;
  z-index: 25; box-shadow: -8px 0 28px rgba(22,45,61,.12); overflow: auto; padding: 16px 18px 40px;
  color: #162d3d;
}
.sub-side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.sub-side-h h3 { margin: 0; font-size: 18px; color: #162d3d; }
.sub-side-lead { color: #5b7384; font-size: 13px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.sub-side-lead b { color: #162d3d; font-size: 14px; }
.sub-side-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.sub-fsearch { display: flex; align-items: center; gap: 6px; border: 1px solid #d6e0e8; border-radius: 6px; padding: 0 8px; height: 34px; margin-bottom: 10px; }
.sub-fsearch input { border: 0; outline: none; flex: 1; }
.sub-acc-sec { border-bottom: 1px solid #eef2f5; }
.sub-acc-h { appearance: none; width: 100%; border: 0; background: none; display: flex; justify-content: space-between; padding: 10px 0; cursor: pointer; font-weight: 600; }
.sub-acc-b { padding: 0 0 10px; display: grid; gap: 6px; }
.sub-radio, .sub-checkl { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.sub-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-pop { background: #fff; border: 1px solid #d6e0e8; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 8px; }
.sub-menu {
  position: fixed; z-index: 80; background: #fff; border: 1px solid #d6e0e8; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16); min-width: 220px; padding: 6px;
}
.sub-menu button {
  appearance: none; width: 100%; border: 0; background: none; text-align: left;
  padding: 8px 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 13px; border-radius: 6px;
}
.sub-menu button:hover { background: #f4f8fb; }
.sub-rel { display: inline-block; }
.sub-fbadge { background: #116dff; color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 6px; margin-left: 4px; }
.sub-fl.is-bad input { border-color: #e22; box-shadow: 0 0 0 1px #e22; }
.sub-err { color: #c01212; font-size: 12px; font-style: normal; display: flex; align-items: center; gap: 4px; }
.sub-tel { display: flex; align-items: center; gap: 6px; }
.sub-tel input { flex: 1; }
.sub-flag { font-size: 18px; line-height: 1; }
.sub-dob { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; }
.sub-dob label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #7a92a5; }
.sub-dob select { height: 36px; border: 1px solid #c9d4dd; border-radius: 6px; padding: 0 6px; font-size: 13px; color: #162d3d; }
.sub-hi { margin: 4px 0 0; font-size: 12px; color: #9aa8b5; line-height: 1.45; }
.sub-plist { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow: auto; padding: 4px 0; }
.sub-dfields .sub-pay, .sub-dfields .sub-chip { max-width: 100%; white-space: normal; }
.sub-dfields .sub-df > span {
  display: block; font-size: 11px; font-weight: 700; color: #7a92a5;
  letter-spacing: 0.02em; margin-bottom: 4px;
}
.sub-dfields .sub-df > div { font-size: 14px; color: #162d3d; word-break: break-word; line-height: 1.45; }
.sub-h1 {
  font: 700 20px Helvetica Neue, Helvetica, Arial, sans-serif;
  color: #162d3d; margin: 0 0 10px; letter-spacing: -0.02em;
}
.sub-df label { display: block; font-size: 11px; color: #7a92a5; margin-bottom: 4px; }
.sub-df input, .sub-df textarea, .sub-df select {
  width: 100%; height: 36px; border: 1px solid #c9d4dd; border-radius: 6px; padding: 0 8px; font-size: 13px; box-sizing: border-box;
}
.sub-df textarea { height: auto; min-height: 64px; padding: 8px; }
.sub-edit-acts {
  position: sticky; bottom: 0; background: #fff;
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 0 16px; border-top: 1px solid #eef2f5; margin-top: 8px;
}
.sub-stat { display: grid; gap: 8px; font-size: 13px; }
.sub-stat p { margin: 0; display: flex; gap: 8px; }
.sub-stat i { font-style: normal; color: #7a92a5; min-width: 110px; }
.sub-undo {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 90; background: #1c2b3a; color: #fff;
  border-radius: 8px; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25); min-width: 340px;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px;
}
.sub-undo .ok { color: #3dd68c; display: grid; }
.sub-undo b { font-weight: 600; flex: 1; }
.sub-undo [data-undo] {
  appearance: none; border: 1px solid rgba(255,255,255,.35); background: transparent;
  color: #fff; border-radius: 6px; height: 28px; padding: 0 10px; cursor: pointer; font-weight: 600;
}
.sub-undo-x { appearance: none; border: 0; background: none; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.sub-mute { color: #7a92a5; font-size: 12px; }

/* ——— Speak the letter ——— */
.ya-voice {
  --yv-ink: #2a1a12; --yv-mute: #6b5748; --yv-line: #ead9a8;
  --yv-gold: #c5a059; --yv-maroon: #7a1e1e; --yv-cream: #fbf7ef; --yv-paper: #fffdf8;
  background: var(--yv-paper); border: 1px solid var(--yv-line); border-radius: 1.15rem;
  padding: 1rem 1rem 1.1rem; margin: 0 0 1.05rem; box-shadow: 0 1px 0 rgba(42, 26, 18, 0.04);
}
.ya-voice-h { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.75rem; }
.ya-voice-h h2 { font-family: "Playfair Display", serif; font-size: 1.15rem; font-weight: 700; color: var(--yv-maroon); margin: 0 0 0.2rem; letter-spacing: -0.01em; }
.ya-voice-h p { margin: 0; color: var(--yv-mute); font-size: 0.82rem; line-height: 1.45; max-width: 38rem; }
.ya-voice-mark { flex: none; width: 42px; height: 42px; border-radius: 14px; background: #7a1e1e; color: #f4ead4; display: grid; place-items: center; }
.ya-voice-langs { display: flex; gap: 0.4rem; margin: 0 0 0.85rem; }
.ya-voice-langs button {
  appearance: none; border: 1px solid var(--yv-line); background: #fff; color: var(--yv-ink);
  border-radius: 999px; height: 36px; padding: 0 0.95rem; font: 650 0.82rem/1 Hind, sans-serif; cursor: pointer;
}
.ya-voice-langs button.is-on { background: var(--yv-maroon); border-color: var(--yv-maroon); color: #f8efe0; }
.ya-voice-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; min-height: 52px; }
.ya-voice-mic {
  position: relative; appearance: none; border: 0; background: var(--yv-maroon); color: #f8efe0;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none;
}
.ya-voice-mic b { position: absolute; left: calc(100% + 10px); white-space: nowrap; color: var(--yv-maroon); font: 700 0.82rem/1 Hind, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.ya-voice-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(122, 30, 30, 0.28); pointer-events: none; }
.ya-voice.is-rec .ya-voice-ring { animation: ya-voice-pulse 1.4s ease-out infinite; }
.ya-voice.is-rec .ya-voice-mic { background: #9b1c1c; }
@keyframes ya-voice-pulse { 0% { transform: scale(0.92); opacity: 0.7; } 100% { transform: scale(1.22); opacity: 0; } }
.ya-voice-meter { display: flex; align-items: center; gap: 0.7rem; flex: 1; min-width: 180px; }
.ya-voice-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; flex: 1; max-width: 220px; }
.ya-voice-bars i { display: block; flex: 1; height: 100%; background: var(--yv-gold); border-radius: 2px; transform: scaleY(0.12); transform-origin: center bottom; }
.ya-voice-time { font-variant-numeric: tabular-nums; font-size: 0.88rem; color: var(--yv-ink); min-width: 2.6rem; }
.ya-voice-stop {
  appearance: none; border: 1px solid var(--yv-maroon); background: #fff; color: var(--yv-maroon);
  height: 36px; padding: 0 0.8rem; border-radius: 999px; font: 650 0.8rem/1 Hind, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.ya-voice-status { margin: 0.7rem 0 0; color: var(--yv-mute); font-size: 0.8rem; line-height: 1.45; }
.ya-voice-live { margin: 0.55rem 0 0; padding: 0.55rem 0.7rem; background: var(--yv-cream); border-radius: 0.65rem; color: var(--yv-ink); font-size: 0.9rem; line-height: 1.5; min-height: 2.4rem; }
.ya-voice-review { margin-top: 0.85rem; }
.ya-voice-lab { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yv-maroon); margin: 0 0 0.35rem; }
.ya-voice-review textarea {
  width: 100%; min-height: 8.5rem; border: 1px solid var(--yv-line); border-radius: 0.7rem;
  padding: 0.7rem 0.8rem; font: 400 0.95rem/1.55 Hind, "Noto Sans Devanagari", serif; color: var(--yv-ink); background: #fff; resize: vertical;
}
.ya-voice-review textarea:focus { outline: 2px solid color-mix(in oklab, var(--yv-maroon) 45%, white); outline-offset: 1px; }
.ya-voice-listen { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.65rem 0 0.55rem; }
.ya-voice-listen button {
  appearance: none; border: 1px solid var(--yv-line); background: #fff; color: var(--yv-ink);
  height: 40px; padding: 0 0.85rem 0 0.75rem; border-radius: 0.65rem; font: 650 0.82rem/1 Hind, sans-serif;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}
.ya-voice-listen button:disabled { opacity: 0.45; cursor: default; }
.ya-voice-listen button svg { margin-left: 1px; }
.ya-voice-ok { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--yv-ink); cursor: pointer; min-height: 40px; }
.ya-voice-ok input { width: 18px; height: 18px; accent-color: var(--yv-maroon); }
.ya-voice-acts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.ya-voice.is-busy .ya-voice-mic { opacity: 0.7; }
.ad-fmt [data-cmd="speak"] { font-weight: 700; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .ed { grid-template-columns: 1fr; }
  .ad-bday-grid { grid-template-columns: 1fr 1fr; }
  .ad-hero-card { grid-template-columns: 1fr; }
  .sub-page.has-side { padding-right: 12px; }
}
@media (max-width: 720px) {
  .ad-grid2, .ad-step-grid { grid-template-columns: 1fr; }
  .ad-pic { grid-template-columns: 1fr; }
  .ad-pic-still { width: 100%; height: 200px; }
  .ad-top { flex-wrap: wrap; }
  .ad-top nav { display: flex; width: 100%; order: 4; }
  .ad-wrap { padding: 0.9rem 0.75rem 2rem; }
  .jr-feature, .jr-row { grid-template-columns: 1fr; }
  .ya-voice { padding: 0.85rem; border-radius: 1rem; }
  .ya-voice-mic b { position: static; }
  .ya-voice-mic { width: auto; height: 44px; border-radius: 999px; padding: 0 0.9rem 0 0.7rem; display: inline-flex; gap: 0.4rem; }
  .ya-voice-listen button, .ya-voice-stop, .ya-voice-acts .ad-btn { min-height: 44px; }
  .sub-page { padding: 10px; }
  .sub-search input { width: 90px; }
  .sub-side { width: 100vw; }
  .ad-bday-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ya-voice.is-rec .ya-voice-ring { animation: none; }
  .ya-voice-bars i { transition: none; }
  .sub-skel { animation: none; }
}
