/* Aangan prototype.
   The look borrows from Indian architecture: a gateway (darwaza), cusped arches, niche windows (jharokha),
   pavilion plans (chhatri), jali lattice screens, a scalloped cornice and inlay borders.
   Colours are used for their Indian meanings; the mapping is listed in README "Colour and architecture". */
:root {
  /* Stone */
  --ivory: #fffcf6; /* white marble: peace and simplicity. Cards, header */
  --sand: #f5ecdd; /* sandstone ground */
  --wash: #f7efe1; /* fills on marble */
  --line: #e3d3b8;
  --line-mid: #cdb68e;
  --line-strong: #9a8360;
  --ink: var(--g-ink, #221f3b);
  --muted: var(--g-muted, #5f566b);
  /* Kesari (saffron): courage. Brand and main actions */
  --kesari: #e87a1d;
  --kesari-deep: #a8480a;
  --kesari-soft: #fdebd6;
  /* Neel (blue): trust and protection. Privacy, verified, links, own messages */
  --neel: #27307f;
  --neel-deep: #171c52;
  --neel-soft: #e7e9f8;
  /* Haldi (yellow): knowledge. Fact-checks and hints */
  --haldi: #f4c20d;
  --haldi-soft: #fff4cc;
  --haldi-ink: #5a4200;
  /* Narangi (orange): energy. Caution on fast-spreading posts */
  --narangi-soft: #ffe4c7;
  --narangi-ink: #7c3a00;
  /* Hara (green): growth. Groups, success, friends */
  --hara: #1e7b4a;
  --hara-soft: #e1f3e7;
  --hara-ink: #125a35;
  /* Gulabi (pink): love and hospitality. Likes and welcoming new people */
  --gulabi: #c92a63;
  --gulabi-soft: #fce5ed;
  --gulabi-ink: #971c49;
  /* Sindoor (red): auspicious, also the familiar colour for alerts and delete */
  --sindoor: #c4122f;
  --sindoor-soft: #fbe4e5;
  --sindoor-ink: #8c1020;
  /* Jamun (purple): dignity and wisdom. Moderation */
  --jamun: #5b2a86;
  --jamun-soft: #f0e6f8;
  --jamun-ink: #47206b;
  /* Kajal (black): protection. Hidden links, system messages */
  --kajal: #1b1a22;
  /* Lettering that sits directly on the ground. pahar.css sets the --g-* values for the eight watches of the day;
     without them (noon) these are the colours above. Surfaces reset them below, so cards never change. */
  --head: var(--g-head, var(--neel-deep));
  --link: var(--g-link, var(--neel));
  --kesari-text: var(--g-kesari, var(--kesari-deep));
  --hero-top: #fbdfb8; /* sky at the top of the sign-in screen */
  --jali: url(/static/art/jali.svg);
  --focus: var(--neel); /* keyboard focus ring */
  --radius: 10px;
  --shadow: 0 1px 0 rgba(120, 84, 30, 0.08), 0 12px 22px -16px rgba(96, 62, 16, 0.5);
  --shadow-lg: 0 28px 60px -24px rgba(60, 36, 8, 0.55);
  --inlay: 0 0 0 3px var(--ivory), 0 0 0 4px var(--line-mid);
  --tricolour: linear-gradient(90deg, var(--kesari) 0 33.33%, #fff 33.33% 66.66%, var(--hara) 66.66%);
  --top: 64px;
  --font: "Mukta", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Rozha One", "Mukta", "Noto Sans Tamil", "Noto Sans Bengali", Georgia, serif;
}
/* Six tones for people, groups and covers, picked from the palette */
[data-tone="0"] {
  --t1: #b8530f;
  --t2: #7e3305;
}
[data-tone="1"] {
  --t1: #f0b40f;
  --t2: #c88a00;
  --tc: #221f3b;
}
[data-tone="2"] {
  --t1: #1e7b4a;
  --t2: #0f5132;
}
[data-tone="3"] {
  --t1: #2f3c9e;
  --t2: #171c52;
}
[data-tone="4"] {
  --t1: #6b349a;
  --t2: #3e1b5e;
}
[data-tone="5"] {
  --t1: #c92a63;
  --t2: #8a1642;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sand) var(--jali);
}
body.has-dialog {
  overflow: hidden;
}
h1,
h2,
h3,
p,
ul,
ol,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 5px;
}
main:focus {
  outline: none;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ivory);
  color: var(--neel-deep);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus {
  top: 12px;
}
.boot {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}

/* Surfaces: anything with its own marble or tinted fill keeps the daytime lettering whatever the ground is doing. */
.card,
.rail-card,
.me-card,
.topbar,
.tabbar,
.arch-tab,
.tabs,
.dialog,
.menu,
.skel-card,
.notice,
.chip,
.btn:not(.ghost),
.promises li,
.auth-side,
.auth-card.onboard,
.segmented,
.quote,
.form-error,
.skip-link,
.empty-icon,
.react-b,
.qh-b,
.poll-opt,
.event-day,
.mention-box,
.legal-top,
input,
textarea,
select {
  --ink: #221f3b;
  --muted: #5f566b;
  --head: var(--neel-deep);
  --link: var(--neel);
  --kesari-text: var(--kesari-deep);
  color: var(--ink);
}

/* ---------- Small parts ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.dots path {
  stroke-width: 3.2;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 14px;
}
.pad {
  padding: 12px 16px;
}
.grow {
  flex: 1;
}
.pre {
  white-space: pre-line;
}
.stack {
  display: grid;
  gap: 22px;
}
.stack > * {
  min-width: 0;
}
.stack-sm {
  display: grid;
  gap: 10px;
}
.hint {
  font-size: 14px;
  color: var(--muted);
}
/* People sit in a niche window (jharokha) */
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 44px;
  color: var(--tc, #fff);
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(160deg, var(--t1, #2f3c9e), var(--t2, #171c52));
  clip-path: var(--shape-niche);
}
.avatar .initials {
  margin-top: 14%;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.sm {
  width: 32px;
  height: 36px;
  font-size: 12px;
}
.avatar.lg {
  width: 56px;
  height: 62px;
  font-size: 19px;
}
.avatar.xl {
  isolation: isolate;
  width: 104px;
  height: 116px;
  font-size: 34px;
  background: var(--ivory);
}
.avatar.xl::before {
  content: "";
  position: absolute;
  inset: 5px 5px 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--t1, #2f3c9e), var(--t2, #171c52));
  clip-path: var(--shape-niche);
}
.avatar.xl img {
  inset: 5px 5px 0;
  width: calc(100% - 10px);
  height: calc(100% - 5px);
  clip-path: var(--shape-niche);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-weight: 700;
  color: var(--ink);
}
.who-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.verified {
  display: inline-flex;
  color: var(--link);
}
.verified .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--wash);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.chip .icon {
  width: 15px;
  height: 15px;
}
.chip.ok {
  background: var(--hara-soft);
  border-color: #b5dcc3;
  color: var(--hara-ink);
}
.chip.warn {
  background: var(--narangi-soft);
  border-color: #f3c690;
  color: var(--narangi-ink);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--sindoor);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.unread-dot {
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--kesari-deep);
  clip-path: var(--shape-gem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--ivory);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.05s;
}
.btn:hover {
  background: var(--wash);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: linear-gradient(180deg, #f39a3d, var(--kesari));
  border-color: var(--kesari-deep);
  color: var(--neel-deep);
  font-weight: 800;
  box-shadow: 0 2px 0 var(--kesari-deep);
}
.btn.primary:hover {
  background: var(--kesari);
}
.btn.danger {
  background: var(--sindoor);
  border-color: var(--sindoor-ink);
  color: #fff;
}
.btn.danger:hover {
  background: var(--sindoor-ink);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--link);
}
.btn.ghost:hover {
  background: var(--neel-soft);
  --link: var(--neel); /* the hover fill is light, so the label goes back to indigo on any ground */
}
.btn.sm {
  min-height: 36px;
  padding: 3px 12px;
  font-size: 15px;
  border-radius: 7px;
}
.btn.block {
  width: 100%;
}
.btn:disabled,
.btn.is-busy {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn.back {
  justify-self: start;
  margin-bottom: 8px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--wash);
  color: var(--ink);
}
.icon-btn.sm {
  width: 32px;
  height: 32px;
}
.icon-btn.send {
  color: var(--kesari-deep);
}
.icon-btn.show-mobile {
  display: none;
}
.linkish {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label,
legend {
  font-weight: 700;
}
input[type="text"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
textarea {
  resize: vertical;
  line-height: 1.45;
}
select {
  appearance: auto;
}
input[aria-invalid="true"] {
  border-color: var(--sindoor);
}
.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sindoor-soft);
  color: var(--sindoor-ink);
  font-weight: 600;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.switch-row:first-of-type {
  border-top: 0;
}
.switch-row label {
  font-weight: 700;
}
.switch-row select {
  width: auto;
  min-width: 140px;
}
.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.knob {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #8c8377;
  transition: background 0.15s;
}
.knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.switch input:checked + .knob {
  background: var(--neel);
}
.switch input:checked + .knob::after {
  transform: translateX(20px);
}
.switch input:focus-visible + .knob {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: var(--wash);
  border: 1px solid var(--line-mid);
}
.seg {
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--muted);
}
.seg[aria-pressed="true"] {
  background: var(--neel);
  color: #fff;
}
.radio-list {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}
.radio-list legend {
  margin-bottom: 6px;
}
.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
}
.radio-row:hover {
  background: var(--wash);
}
.radio-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--neel);
}

/* ---------- Notices: each colour keeps one meaning ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 4px solid;
  font-size: 15px;
}
.notice .icon {
  margin-top: 2px;
}
.notice.info {
  background: var(--neel-soft);
  border-color: var(--neel);
  color: var(--neel-deep);
} /* blue: protection */
.notice.forwarded {
  background: var(--narangi-soft);
  border-color: var(--kesari);
  color: var(--narangi-ink);
  font-weight: 600;
} /* orange: caution */
.notice.fact {
  background: var(--haldi-soft);
  border-color: var(--haldi);
  color: var(--haldi-ink);
} /* yellow: knowledge */
.notice.danger {
  background: var(--sindoor-soft);
  border-color: var(--sindoor);
  color: var(--sindoor-ink);
  font-weight: 600;
} /* red: alert */
.quote {
  padding: 10px 12px;
  border-left: 4px solid var(--kesari);
  border-radius: 0 8px 8px 0;
  background: var(--wash);
  overflow-wrap: anywhere;
}

/* ---------- Cards, page parts ---------- */
.card {
  background: var(--ivory);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section {
  padding: 18px 20px;
}
.section > h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section h3 {
  font-size: 16px;
  margin: 14px 0 6px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  color: var(--head);
}
.page-head h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 8px;
  background: var(--kesari);
}
.page-head p {
  margin-top: 8px;
  color: var(--muted);
}
.list-title {
  font-size: 19px;
  font-weight: 800;
  margin: 4px 0 -8px;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  font-size: 19px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 66px;
  padding-top: 10px;
  background: var(--kesari-soft);
  color: var(--kesari-deep);
  clip-path: var(--shape-niche);
}
.empty.is-error .empty-icon {
  background: var(--sindoor-soft);
  color: var(--sindoor);
}
.skeleton {
  display: grid;
  gap: 16px;
}
.skel-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}
.skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eadcc4, #f8f0e2, #eadcc4);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skel-line.short {
  width: 35%;
}
.skel-line.mid {
  width: 70%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--line-mid);
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 700;
  color: var(--muted);
}
.tab:hover {
  background: var(--wash);
  text-decoration: none;
}
.tab[aria-selected="true"],
.tab[aria-current="page"] {
  background: var(--kesari-soft);
  color: var(--kesari-deep);
  box-shadow: inset 0 -3px 0 var(--kesari);
}

/* ---------- Toasts, dialogs, menus ---------- */
#toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  display: grid;
  gap: 8px;
  width: min(460px, calc(100vw - 24px));
  transform: translateX(-50%);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px 9px 16px;
  border-radius: 8px;
  border-left: 5px solid var(--haldi);
  background: var(--kajal);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.toast > span {
  flex: 1;
}
.toast.is-error {
  border-left-color: #ff8f98;
  background: var(--sindoor-ink);
}
.toast-action {
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--haldi);
  color: var(--kajal);
  font-weight: 800;
}
.toast-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #fff;
}
.toast :focus-visible {
  outline-color: #fff;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(40, 24, 6, 0.6);
  backdrop-filter: blur(2px);
}
.dialog {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line-mid);
  border-top: 5px solid var(--kesari);
  border-radius: 12px;
  background: var(--ivory);
  box-shadow: var(--shadow-lg);
}
.dialog.wide {
  width: min(640px, 100%);
}
.dialog:focus {
  outline: none;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 6px 20px;
}
.dialog-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  color: var(--neel-deep);
}
.dialog-body {
  padding: 8px 20px 4px;
  overflow: auto;
}
.dialog-body > * + * {
  margin-top: 12px;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 18px;
}
.menu-wrap {
  position: relative;
  display: inline-flex;
}
.menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  min-width: 230px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--line-mid);
  box-shadow: var(--shadow-lg);
}
.menu.left {
  right: auto;
  left: 0;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 7px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--wash);
  text-decoration: none;
}
.menu-item.danger {
  color: var(--sindoor-ink);
}

/* ---------- Sign-in: the gateway ---------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 500px);
  min-height: 100dvh;
  background: var(--ivory);
}
.auth.single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  align-content: center;
  padding: 24px 16px;
  background: var(--sand) var(--jali);
}
.auth-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 27vw, 400px);
  align-items: end;
  gap: clamp(16px, 3vw, 40px);
  overflow: hidden;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px) 0;
  background: var(--jali), linear-gradient(180deg, var(--hero-top) 0%, var(--sand) 64%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--tricolour);
}
.hero-copy {
  align-self: center;
  padding-bottom: clamp(32px, 4vw, 64px);
}
.hero-gate {
  width: 100%;
  height: auto;
}
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(16px, 3vw, 36px);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: var(--kesari-text);
}
.logo-mark {
  display: inline-block;
  flex: none;
  width: 34px;
  height: 34px;
  background: url(art/logo.svg) center / contain no-repeat;
}
.auth-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.06;
  color: var(--head);
  text-wrap: balance;
}
:lang(hi) .auth-hero h1 {
  line-height: 1.3;
  font-size: clamp(32px, 4vw, 56px);
}
.hero-sub {
  margin-top: 18px;
  max-width: 430px;
  font-size: 19px;
}
.promises {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 14px 6px 7px;
  border-radius: 8px;
  background: var(--ivory);
  border: 1px solid var(--line-mid);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.promises .icon {
  box-sizing: content-box;
  padding: 5px;
  border-radius: 6px;
  color: #fff;
}
.promises li:nth-child(1) .icon {
  background: var(--neel);
}
.promises li:nth-child(2) .icon {
  background: var(--kesari-deep);
}
.promises li:nth-child(3) .icon {
  background: var(--hara);
}
.auth-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 48px);
  border-left: 1px solid var(--line);
}
.auth-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.auth-card {
  padding: 4px 0;
}
.auth-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.auth-card > .muted,
.auth-card > .notice {
  margin-bottom: 12px;
}
.auth-card.onboard {
  padding: 26px 24px;
  border: 1px solid var(--line-mid);
  border-top: 5px solid var(--kesari);
  border-radius: 12px;
  background: var(--ivory);
  box-shadow: var(--inlay), var(--shadow-lg);
}
.auth-card.onboard h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
}
.auth-card.onboard > .muted {
  margin: 4px 0 18px;
}
.auth-card.onboard h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  color: var(--neel);
}
.auth-card.onboard .btn.block {
  margin-top: 14px;
}
.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.phone-field:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.phone-field .prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--wash);
  border-right: 1px solid var(--line);
  font-weight: 700;
}
.phone-field input {
  border: 0;
  border-radius: 0;
  outline: none;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.code-input {
  font-size: 24px !important;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-align: center;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.demo-box {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.demo-box h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.demo-list {
  display: grid;
  gap: 8px;
}
.demo-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  background: var(--ivory);
  text-align: left;
}
.demo-btn:hover {
  border-color: var(--kesari);
  background: var(--kesari-soft);
}
.demo-btn.is-busy {
  opacity: 0.6;
}
.demo-text {
  display: grid;
}
.demo-text small {
  color: var(--muted);
}
.proto-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- App frame: cornice header, arcade navigation, courtyard and side verandah ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--top);
  background: var(--ivory);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tricolour);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  background: url(art/scallop.svg) repeat-x;
  pointer-events: none;
}
.topbar-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  height: 100%;
  max-width: 1076px;
  margin: 0 auto;
  padding: 4px 24px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--kesari-deep);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--wash);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.search:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.search input {
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.top-actions > * {
  flex-shrink: 0;
}
.top-create,
.top-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 8px;
  font-weight: 800;
}
.top-create {
  background: linear-gradient(180deg, #f39a3d, var(--kesari));
  color: var(--neel-deep);
  box-shadow: 0 2px 0 var(--kesari-deep);
}
.top-create:hover {
  background: var(--kesari);
}
.top-privacy {
  background: var(--neel);
  color: #fff;
}
.top-privacy:hover,
.top-privacy[aria-current="page"] {
  background: var(--neel-deep);
  text-decoration: none;
}
.top-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink);
}
.top-link:hover,
.top-link[aria-current="page"] {
  background: var(--kesari-soft);
  color: var(--kesari-deep);
  text-decoration: none;
}
.top-link .count {
  position: absolute;
  top: -2px;
  right: -4px;
  border: 2px solid var(--ivory);
  height: 22px;
  min-width: 22px;
}
.account-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
}

/* Arcade: each destination is a cusped arch standing on one plinth */
.arcade {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: min(1028px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 28px;
  border-bottom: 2px solid var(--line-mid);
}
.arch-tab {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: end;
  width: 112px;
  height: 80px;
  padding: 0 6px 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.arch-tab::before,
.arch-tab::after {
  content: "";
  position: absolute;
  clip-path: var(--shape-arch-tall);
}
.arch-tab::after {
  inset: 0;
  z-index: -2;
  background-color: var(--line-mid);
}
.arch-tab::before {
  inset: 2px 2px 0;
  z-index: -1;
  background-color: var(--ivory);
}
.arch-tab:hover {
  text-decoration: none;
}
.arch-tab:hover::before {
  background-color: var(--kesari-soft);
}
.arch-tab[aria-current="page"] {
  color: var(--neel-deep);
  font-weight: 800;
}
.arch-tab[aria-current="page"]::after {
  background-color: var(--kesari-deep);
}
.arch-tab[aria-current="page"]::before {
  background-color: var(--kesari);
  background-image: linear-gradient(180deg, #f6a650, var(--kesari));
}
.arch-tab .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
}
.arch-tab .count {
  position: absolute;
  top: 12px;
  right: 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 320px;
  justify-content: center;
  align-items: start;
  gap: 28px;
  max-width: 1076px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.layout.is-wide {
  grid-template-columns: minmax(0, 1028px);
}
.layout.is-wide .right-rail {
  display: none;
}
#main {
  min-width: 0;
}
#main > * + * {
  margin-top: 22px;
}
.right-rail {
  position: sticky;
  top: calc(var(--top) + 28px);
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - var(--top) - 40px);
  overflow: auto;
  padding: 2px;
}
.me-card,
.rail-card {
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--ivory);
  box-shadow: var(--shadow);
}
.me-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
}
.me-card:hover {
  border-color: var(--kesari);
  text-decoration: none;
}
.me-text {
  display: grid;
  min-width: 0;
}
.me-text small {
  color: var(--muted);
}
.rail-card {
  padding: 14px 14px 12px;
}
.rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-title::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--kesari);
  clip-path: var(--shape-gem);
}
#rail-mygroups .rail-title::before {
  background: var(--hara);
}
#rail-suggest .rail-title::before {
  background: var(--gulabi);
}
#rail-recent .rail-title::before {
  background: var(--neel);
}
:lang(hi) .rail-title {
  letter-spacing: 0;
  font-size: 14px;
}
:lang(hi) .auth-card h2,
:lang(hi) .auth-card.onboard h1,
:lang(hi) .page-head h1,
:lang(hi) .profile-text h1,
:lang(hi) .dialog-head h2,
:lang(hi) .brand,
:lang(hi) .hero-brand {
  line-height: 1.5;
}
.rail-groups {
  display: grid;
  gap: 2px;
}
.rail-group,
.rail-more {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 6px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 600;
}
.rail-group:hover,
.rail-more:hover {
  background: var(--wash);
  text-decoration: none;
}
.rail-group > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-more {
  color: var(--link);
}
.group-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--tc, #fff);
  font-weight: 800;
  background: linear-gradient(140deg, var(--t1, #1e7b4a), var(--t2, #0f5132));
  clip-path: var(--shape-pavilion);
}
.person .group-dot {
  width: 42px;
  height: 42px;
}
.group-dot.xl {
  position: relative;
  isolation: isolate;
  width: 108px;
  height: 108px;
  font-size: 42px;
  background: var(--ivory);
}
.group-dot.xl::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  background: linear-gradient(140deg, var(--t1, #1e7b4a), var(--t2, #0f5132));
  clip-path: var(--shape-pavilion);
}
.rail-card.tip {
  border-color: var(--neel-deep);
  background:
    linear-gradient(rgba(23, 28, 82, 0.55), rgba(23, 28, 82, 0.55)),
    var(--neel-deep) url(art/jali-light.svg);
  color: #fff;
}
.rail-card.tip .rail-title {
  color: #ffd9b0;
}
.rail-card.tip .rail-title::before {
  display: none;
}
.rail-card.tip .rail-title .icon {
  color: var(--kesari);
}
.rail-list {
  display: grid;
  gap: 4px;
}
.rail-person {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-person > a,
.rail-conv {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 6px;
  border-radius: 7px;
  color: var(--ink);
}
.rail-person > a:hover,
.rail-conv:hover {
  background: var(--wash);
  text-decoration: none;
}
.rail-person > a > span:last-child,
.rail-conv > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}
.rail-list small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-conv.unread small {
  color: var(--ink);
  font-weight: 700;
}
.right-rail .proto-note {
  margin: 0 4px;
}
.tabbar {
  display: none;
}

/* ---------- Feed ---------- */
.composer {
  padding: 14px 16px 10px;
}
.composer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.composer textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  resize: none;
  font-size: 17px;
}
.composer-photo {
  position: relative;
  margin-top: 10px;
}
.composer-photo img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}
.icon-btn.on-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--kajal);
  color: #fff;
}
.composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.composer-tools > .btn.primary {
  margin-left: auto;
}
.aud-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
.aud-pick:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.aud-ico {
  display: inline-flex;
  color: var(--link);
}
.aud-pick select {
  width: auto;
  min-height: 40px;
  padding: 4px 8px 4px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-weight: 700;
}
.feed-list {
  display: grid;
  gap: 22px;
}
.feed-list:empty {
  display: none;
}
.feed-list + .btn {
  margin-top: 16px;
}
.post {
  padding: 16px 0 4px;
}
.post > * {
  margin-left: 18px;
  margin-right: 18px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-meta {
  flex: 1;
  min-width: 0;
}
.post-who {
  line-height: 1.3;
}
.post-who .who {
  vertical-align: bottom;
  max-width: 100%;
}
.group-link {
  font-weight: 700;
  color: var(--hara-ink);
}
.post-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.post-sub a {
  color: var(--muted);
}
.aud {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.aud .icon {
  width: 14px;
  height: 14px;
}
.post-body {
  margin-top: 10px;
  font-size: 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post > .post-media {
  width: 100%;
  max-height: 560px;
  margin: 12px 0 0;
  object-fit: cover;
  background: var(--wash);
  border-block: 1px solid var(--line);
}
.post > .notice {
  margin-top: 12px;
}
.shared {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: var(--wash);
}
.shared .post-media {
  width: 100%;
  max-height: 420px;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 6px;
}
.shared .notice {
  margin-top: 10px;
}
.shared.gone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.post-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}
.post-stats .linkish {
  color: var(--muted);
  font-weight: 500;
}
.post-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 42px;
  border-radius: 7px;
  font-weight: 700;
  color: var(--muted);
}
.act:hover {
  background: var(--wash);
  color: var(--ink);
}
.act[aria-pressed="true"] {
  color: var(--gulabi-ink);
} /* pink: affection */
.act[aria-pressed="true"] .icon {
  fill: var(--gulabi-soft);
}
.comments {
  margin-bottom: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}
.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.comment-main {
  flex: 1;
  min-width: 0;
}
.comment-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 2px 10px 10px 10px;
  background: var(--wash);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.comment-main > small {
  display: block;
  margin: 2px 0 0 12px;
}
.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

/* ---------- People, profiles, groups ---------- */
.people {
  display: grid;
}
.people.padded {
  padding: 6px 16px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.person:first-child {
  border-top: 0;
}
.person-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
a.person-main:hover {
  text-decoration: none;
}
a.person-main:hover .who-name {
  text-decoration: underline;
}
.person-text {
  display: grid;
  min-width: 0;
}
.person-text small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
/* Cover: a colonnade of cusped arches in the person's or group's tone */
.profile-cover {
  height: 132px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background:
    url(art/arcade.svg) repeat-x left bottom / auto 100%,
    linear-gradient(120deg, var(--t1, #2f3c9e), var(--t2, #171c52));
}
.profile-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  padding: 0 20px 18px;
}
.profile-main > .avatar {
  margin-top: -56px;
}
.profile-main > .group-dot {
  margin-top: -48px;
}
.profile-text {
  padding-top: 10px;
}
.profile-text h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--neel-deep);
  overflow-wrap: anywhere;
}
.profile-text h1 .verified .icon {
  width: 22px;
  height: 22px;
}
.profile-bio {
  margin-top: 4px;
}
.profile-text .chips {
  margin-top: 10px;
}
.profile-main > .btn-row {
  grid-column: 1 / -1;
  margin-top: 12px;
}
.edit-photo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.edit-pic {
  display: inline-flex;
}
.notif-list {
  padding: 6px;
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--ink);
}
.notif:hover {
  background: var(--wash);
  text-decoration: none;
}
.notif.unread {
  background: var(--kesari-soft);
}
.notif-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--neel);
  color: #fff;
  clip-path: var(--shape-pavilion);
}
.notif-text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.notif.unread .notif-text > span {
  font-weight: 700;
}
.notif-text small {
  color: var(--muted);
}

/* ---------- Messages ---------- */
.msg-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  height: calc(100dvh - var(--top) - 200px);
  min-height: 460px;
}
.msg-list,
.msg-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.msg-list .tabs {
  margin: 8px;
  border: 0;
  background: var(--wash);
}
.msg-list .skeleton,
.msg-thread > .skeleton {
  padding: 8px;
}
.conv-list {
  flex: 1;
  overflow: auto;
  padding: 0 8px 8px;
}
.conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
}
.conv:hover {
  background: var(--wash);
  text-decoration: none;
}
.conv[aria-current="true"] {
  background: var(--kesari-soft);
}
.conv-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.conv-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.conv-top small {
  flex: none;
  color: var(--muted);
}
.conv-last {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.conv-last .icon {
  width: 16px;
  height: 16px;
  color: var(--sindoor);
}
.conv.unread .conv-last {
  color: var(--ink);
  font-weight: 700;
}
.conv-text .chip {
  width: fit-content;
}
.msg-thread > .empty {
  margin: auto;
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--line);
}
.thread-who {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.thread-who .who {
  width: fit-content;
  max-width: 100%;
}
.thread-who .chip {
  padding: 0 8px;
  font-size: 13px;
}
.msg-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--wash) url(art/jali.svg);
}
.msg-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 56px 16px 16px;
}
.msg-log > :first-child {
  margin-top: auto;
}
.msg {
  display: grid;
  justify-items: start;
  max-width: min(78%, 520px);
}
.msg.mine {
  align-self: flex-end;
  justify-items: end;
}
.bubble {
  padding: 8px 14px;
  border-radius: 2px 12px 12px 12px;
  background: var(--ivory);
  border: 1px solid var(--line-mid);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg.mine .bubble {
  border-color: var(--neel-deep);
  border-radius: 12px 2px 12px 12px;
  background: var(--neel);
  color: #fff;
} /* blue: trusted, your own words */
.msg-meta {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0 4px;
  color: var(--muted);
}
.msg .menu {
  top: auto;
  bottom: calc(100% + 4px);
}
.redacted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 2px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--kajal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  vertical-align: baseline;
} /* black: wards off harm */
.redacted .icon {
  width: 13px;
  height: 13px;
  color: var(--haldi);
}
.thread-foot {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.thread-foot:empty {
  display: none;
}
.msg-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.msg-form textarea {
  min-height: 44px;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  resize: none;
}
.request-panel {
  display: grid;
  gap: 10px;
}
.request-panel h2 {
  font-size: 18px;
}

/* ---------- Reports and moderation ---------- */
.report,
.mod-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}
.mod-card {
  border-top: 4px solid var(--jamun);
} /* purple: dignity and considered judgement */
.mod-card + .mod-card {
  margin-top: 16px;
}
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.report-about {
  font-weight: 700;
}
.report-about:empty {
  display: none;
}
.tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 4px 0;
}
.tracker li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.tracker li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
}
.tracker li:first-child::before {
  display: none;
}
.tracker li.done::before {
  background: var(--neel);
}
.tracker .dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ivory);
  border: 3px solid var(--line-mid);
  color: #fff;
}
.tracker .dot .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.tracker li.done {
  color: var(--neel-deep);
}
.tracker li.done .dot {
  background: var(--neel);
  border-color: var(--neel);
}
.tracker li[aria-current="step"] {
  font-weight: 800;
}
.tracker li[aria-current="step"] .dot {
  box-shadow: 0 0 0 3px var(--kesari);
}
.outcome {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--jamun);
  background: var(--jamun-soft);
}
.outcome h3 {
  font-size: 14px;
  color: var(--jamun-ink);
}
.mod-section {
  display: grid;
  gap: 12px;
}
.mod-section .mod-card + .mod-card {
  margin-top: 0;
}
.mod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}
.mod-content,
.mod-who {
  display: grid;
  gap: 8px;
  align-content: start;
}
.mod-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jamun-ink);
}
:lang(hi) .mod-label {
  letter-spacing: 0;
  font-size: 14px;
}
.mod-person {
  display: grid;
  gap: 4px;
}
.mod-media {
  max-height: 220px;
  border-radius: 8px;
}
.mod-form {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mod-form .field {
  align-content: start;
}
.mod-form .field select {
  align-self: start;
}
.mod-form .btn-row {
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.mod-form > .field:only-of-type,
.mod-card[data-appeal] .mod-form .field {
  grid-column: 1 / -1;
}
.recent-list {
  padding: 4px 18px;
}
.recent-list li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.recent-list li:first-child {
  border-top: 0;
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1040px) {
  .layout {
    grid-template-columns: minmax(0, 680px);
  }
  .layout.is-wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .right-rail {
    display: none;
  }
  .arch-tab {
    width: 100px;
  }
}
@media (max-width: 860px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    grid-template-columns: minmax(0, 1fr) 116px;
    padding: 30px 20px 0;
  }
  .hero-copy {
    padding-bottom: 24px;
  }
  .promises {
    display: none;
  }
  .hero-sub {
    font-size: 16px;
    margin-top: 10px;
  }
  .auth-side {
    justify-content: flex-start;
    padding: 20px 20px 40px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .topbar-in {
    gap: 10px;
    padding: 4px 12px 0;
  }
  .search {
    max-width: none;
  }
  .hide-mobile,
  .arcade {
    display: none;
  }
  .icon-btn.show-mobile {
    display: inline-grid;
  }
  .layout,
  .layout.is-wide {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 12px calc(92px + env(safe-area-inset-bottom));
  }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: var(--ivory);
    border-top: 2px solid var(--line-mid);
    box-shadow: 0 -10px 24px -18px rgba(96, 62, 16, 0.7);
  }
  .tab-link {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 1px;
    min-height: 56px;
    padding: 6px 2px 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
  }
  .tab-link:hover {
    text-decoration: none;
  }
  .tab-link[aria-current="page"] {
    color: var(--neel-deep);
    font-weight: 800;
  }
  .tab-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset: 0 5px;
    z-index: -1;
    background: linear-gradient(180deg, #f6a650, var(--kesari));
    clip-path: var(--shape-arch-tall);
  }
  .tab-ico {
    position: relative;
    display: inline-flex;
  }
  .tab-ico .icon {
    width: 22px;
    height: 22px;
  }
  .tab-ico .count {
    position: absolute;
    top: -7px;
    left: 12px;
  }
  #toasts {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .btn.sm {
    min-height: 40px;
  }
  .icon-btn.sm {
    width: 40px;
    height: 40px;
  }
  .msg-layout {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - var(--top) - 116px - env(safe-area-inset-bottom));
  }
  .msg-layout.has-thread .msg-list,
  .msg-layout:not(.has-thread) .msg-thread {
    display: none;
  }
  .msg {
    max-width: 88%;
  }
  .mod-grid,
  .mod-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-main {
    padding: 0 16px 16px;
  }
  .avatar.xl {
    width: 84px;
    height: 94px;
    font-size: 28px;
  }
  .group-dot.xl {
    width: 88px;
    height: 88px;
    font-size: 34px;
  }
  .section {
    padding: 16px;
  }
}
@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
  .act span {
    font-size: 15px;
  }
  .person {
    flex-wrap: wrap;
  }
  .person-actions {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Aath Pahar picker (the colours themselves are in pahar.css) ---------- */
.ph-dial {
  display: grid;
  gap: 12px;
}
.ph-title {
  display: inline-block;
  line-height: 1.5;
}
.ph-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ph-b {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 6px 4px 8px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.3;
  text-align: center;
}
.ph-b:hover {
  background: var(--wash);
}
.ph-b b {
  font-size: 17px;
}
.ph-b span:not(.ph-sw),
.ph-b small {
  color: var(--muted);
  font-size: 14px;
}
.ph-b[aria-pressed="true"] {
  border-color: var(--kesari-deep);
  background: var(--kesari-soft);
  box-shadow: inset 0 -3px 0 var(--kesari);
}
.ph-sw {
  display: block;
  width: 100%;
  height: 30px;
  margin-bottom: 6px;
  border: 1px solid var(--line-mid);
  border-radius: 5px;
  background: var(--sw, var(--wash));
}
.ph-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.ph-auto[aria-pressed="true"] {
  border-color: var(--neel-deep);
  background: var(--neel);
  color: #fff;
}
.ph-now {
  flex: 1;
  min-width: 200px;
  color: var(--muted);
  font-size: 15px;
}
.ph-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 3px 12px 3px 6px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: var(--wash);
  color: var(--muted);
  font-weight: 700;
}
.ph-open:hover {
  border-color: var(--kesari);
}
.ph-open .ph-sw {
  width: 36px;
  height: 30px;
  margin: 0;
}
@media (max-width: 420px) {
  .ph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Stage 1 to 3 features. These reuse the palette and parts above:
   pink for reactions, orange and red for warnings, yellow for sources, blue for protection, green for joining.
   ========================================================================== */
input[type="url"],
input[type="date"],
input[type="time"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
.notice.caution {
  background: var(--narangi-soft);
  border-color: var(--kesari);
  color: var(--narangi-ink);
  font-weight: 600;
} /* orange: caution */
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.inline-form .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tabs {
  overflow-x: auto;
}
.tabs .tab {
  flex: 1 0 auto;
  white-space: nowrap;
}

/* ---------- Language choice (five languages) ---------- */
.lang-set {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.lang-set .seg {
  padding: 4px 11px;
}
.auth-top {
  flex-wrap: wrap;
}
.auth.single .auth-top {
  margin-bottom: 12px;
}
.post.is-pending {
  padding-bottom: 14px;
}
.section .stack-sm + h3 {
  margin-top: 16px;
}

/* ---------- Welcome steps, guardian consent ---------- */
.welcome-steps {
  margin: 4px 0 18px;
}
.welcome-body {
  min-height: 220px;
}
.auth-card.onboard .welcome-body h2 {
  margin: 0 0 8px;
}
.welcome-body .lang-set {
  justify-content: flex-start;
}
.welcome-body .hint {
  margin: 6px 0 14px;
}
.welcome-body .people {
  margin-top: 8px;
}
.welcome-foot {
  justify-content: flex-end;
  margin-top: 16px;
}
.rule-list {
  display: grid;
  gap: 4px;
  margin: 6px 0 16px;
  padding-left: 20px;
  list-style: disc;
}
.rule-list li {
  list-style: disc;
}
.guardian .notice {
  margin-bottom: 12px;
}

/* ---------- Low-data photos ---------- */
.photo-low {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--wash);
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo-low .post-media {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  filter: saturate(0.9);
}
.photo-low .photo-full {
  position: absolute;
  right: 10px;
  bottom: 10px;
}
.photo-low.is-empty .photo-full {
  position: static;
}

/* ---------- Reactions ---------- */
.react-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.react-icons {
  display: inline-flex;
}
.react-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -5px;
  border-radius: 50%;
  border: 2px solid var(--ivory);
  background: var(--gulabi-soft);
  color: var(--gulabi-ink);
}
.react-ico:first-child {
  margin-left: 0;
}
.react-ico .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.react-ico[data-kind="laugh"],
.react-ico[data-kind="wow"] {
  background: var(--haldi-soft);
  color: var(--haldi-ink);
}
.react-ico[data-kind="sad"] {
  background: var(--neel-soft);
  color: var(--neel);
}
.like-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
}
.react-open {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  min-height: 42px;
  border-radius: 7px;
  color: var(--muted);
}
.react-open:hover,
.react-open[aria-expanded="true"] {
  background: var(--wash);
  color: var(--ink);
}
.react-open .icon {
  width: 16px;
  height: 16px;
}
.react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 10px;
  border-top: 1px solid var(--line);
}
.react-b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 12px;
  border-radius: 19px;
  border: 1px solid var(--line-mid);
  background: var(--ivory);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.react-b:hover {
  background: var(--wash);
}
.react-b[aria-pressed="true"] {
  background: var(--gulabi-soft);
  border-color: var(--gulabi);
  color: var(--gulabi-ink);
}

/* ---------- Warnings, sources, held comments, pinned and waiting posts ---------- */
.post > .notice.risk {
  margin-top: 10px;
}
.shared .notice.risk {
  margin-top: 8px;
}
.cm-risk {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0 0 12px;
  color: var(--narangi-ink);
  font-weight: 600;
}
.cm-risk .icon,
.cm-held .icon,
.source-wait .icon {
  width: 15px;
  height: 15px;
}
.cm-held {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0 12px;
  font-size: 14px;
  color: var(--jamun-ink);
}
.comment.is-held .comment-bubble {
  border-style: dashed;
  border-color: var(--jamun);
  background: var(--jamun-soft);
}
.sources {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 10px;
}
.sources .source {
  width: 100%;
}
.sources .source a,
.src-url {
  overflow-wrap: anywhere;
}
.source-wait {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pin-flag {
  color: var(--kesari-text);
  font-weight: 700;
}
.pending-note {
  margin-bottom: 10px;
}
.pending-item {
  display: grid;
  gap: 8px;
}
.pending-item + .pending-item {
  margin-top: 18px;
}
.pending-item > .btn-row {
  justify-content: flex-end;
}
.join-wait {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ---------- Group notice board ---------- */
.board-pinned {
  display: grid;
  gap: 14px;
}
.board-pinned .list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.board-head h2 {
  font-size: 19px;
  font-weight: 800;
}
.board-list {
  display: grid;
}
.board-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.board-item:first-child {
  border-top: 0;
}
.board-main {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.board-side {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.event-day {
  display: grid;
  justify-items: center;
  align-content: center;
  flex: none;
  width: 52px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #b5dcc3;
  border-top: 5px solid var(--hara);
  background: var(--hara-soft);
  color: var(--hara-ink);
  line-height: 1.1;
}
.event-day b {
  font-size: 20px;
}
.event-day small {
  font-size: 12px;
  font-weight: 700;
}
.board-side .btn[aria-pressed="true"] {
  background: var(--hara-soft);
  border-color: var(--hara);
  color: var(--hara-ink);
}
.poll-opts {
  display: grid;
  gap: 6px;
  margin: 8px 0 6px;
}
.poll-opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  background: var(--ivory);
  text-align: left;
  color: var(--ink);
}
button.poll-opt:hover {
  background: var(--wash);
}
.poll-opt[aria-pressed="true"] {
  border-color: var(--neel);
  box-shadow: inset 0 0 0 1px var(--neel);
}
.poll-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.poll-label .icon {
  width: 16px;
  height: 16px;
  color: var(--neel);
  stroke-width: 2.6;
}
.poll-pct {
  font-weight: 800;
  color: var(--neel-deep);
}
.poll-bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--wash);
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
}
.poll-bar::-webkit-progress-bar {
  background: var(--wash);
}
.poll-bar::-webkit-progress-value {
  background: var(--neel);
}
.poll-bar::-moz-progress-bar {
  background: var(--neel);
}

/* ---------- Privacy page: check-up, quiet hours, sign-in activity ---------- */
.checkup-card {
  border-top: 5px solid var(--neel);
}
.checkup-card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neel);
}
.checkup-card > p {
  margin-bottom: 6px;
}
.checkup {
  display: grid;
  gap: 16px;
}
.checkup-step {
  font-weight: 800;
  color: var(--neel);
}
.tracker.steps-4 {
  grid-template-columns: repeat(4, 1fr);
}
.checkup-body {
  min-height: 190px;
  align-content: start;
}
.checkup-body h2 {
  font-size: 19px;
  font-weight: 800;
}
.checkup-body .radio-row .icon {
  color: var(--neel);
}
.checkup-foot {
  justify-content: flex-end;
}
.section h3 + .stack-sm {
  margin-top: 6px;
}
.qh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.qh-b {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  background: var(--ivory);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}
.qh-b:hover:not(:disabled) {
  background: var(--wash);
}
.qh-b small {
  color: var(--muted);
  font-size: 12px;
}
.qh-b[aria-pressed="true"] {
  background: var(--neel);
  border-color: var(--neel-deep);
  color: #fff;
}
.qh-b[aria-pressed="true"] small {
  color: #dfe2fb;
}
.qh-b:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}
.qh-status {
  margin-top: 10px;
  font-weight: 700;
  color: var(--neel-deep);
}
.switch input:disabled + .knob {
  opacity: 0.55;
}
.top-link.is-quiet .icon {
  opacity: 0.55;
}
.top-privacy .count {
  margin-left: 2px;
}
.recovery-ask .btn-row,
#recovery-mine .btn-row {
  margin-top: 8px;
}

/* ---------- Voice notes ---------- */
.voice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.voice audio {
  width: 230px;
  max-width: 100%;
  height: 36px;
}
.bubble.has-voice {
  padding: 8px 10px;
}
.voice-btn {
  flex: none;
  height: 44px;
  width: 44px;
  border: 1px solid var(--line-mid);
  color: var(--kesari-deep);
}
.voice-status {
  font-weight: 800;
  font-size: 18px;
  color: var(--sindoor-ink);
}
.voice-preview audio {
  width: 100%;
}

@media (max-width: 860px) {
  .qh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .board-item {
    flex-wrap: wrap;
  }
  .board-main {
    flex: 1 1 170px;
  }
  .board-item.event .board-side {
    margin-left: 64px;
  }
  .welcome-foot .btn {
    flex: 1 1 auto;
  }
  .voice audio {
    width: 190px;
  }
}

/* ---------- Everyday use, community and launch readiness ---------- */
/* Mentions */
.mention {
  font-weight: 700;
}
.mention-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: var(--wash);
}
.mention-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 2px 10px 2px 4px;
  border: 1px solid var(--line-mid);
  border-radius: 20px;
  background: var(--ivory);
  font-weight: 600;
}
.mention-opt:hover {
  background: var(--kesari-soft);
}
.comments > .mention-box,
.reply-slot > .mention-box {
  margin: 0 0 8px;
}

/* Several photos */
.composer-photo {
  display: grid;
  gap: 6px;
}
.composer-photo[data-n="2"],
.composer-photo[data-n="3"],
.composer-photo[data-n="4"] {
  grid-template-columns: 1fr 1fr;
}
.composer-thumb {
  position: relative;
}
.composer-photo:not([data-n="1"]) img {
  height: 150px;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 12px;
  padding: 0;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.photo-cell {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wash);
}
.photo-grid.n3 .photo-cell:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-cell:focus-visible {
  outline-offset: -3px;
}
.shared .photo-grid {
  border: 0;
  border-radius: 6px;
  overflow: hidden;
}
.viewer {
  display: grid;
  place-items: center;
  min-height: 200px;
  background: var(--kajal);
  border-radius: 8px;
}
.viewer-img {
  max-height: 62vh;
  object-fit: contain;
}
.viewer-count {
  align-self: center;
  font-weight: 700;
}

/* Edited posts */
.linkish.edited {
  font-size: 14px;
  color: inherit;
}
.edit-history .quote p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Replies */
.comment-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 2px 0 0 12px;
}
.comment-foot .linkish {
  font-size: 14px;
  min-height: 28px;
}
.reply-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.reply-list:empty {
  display: none;
}
.reply-slot:not(:empty) {
  margin-top: 8px;
}
.reply-form {
  margin-bottom: 0;
}

/* Group rules */
.rules-text {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  overflow-wrap: anywhere;
}
.rules-pending .btn-row {
  margin-top: 8px;
}

/* Help board */
.help-item {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.help-item > * {
  min-width: 0;
}
.help-title {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
h1.help-title {
  font-size: 22px;
}
.help-title a {
  color: var(--neel-deep);
}
.help-item .post-body {
  margin-top: 0;
}
.help-item .post-media {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}
.chip.help-kind {
  background: var(--neel-soft);
  border-color: #c9cdf0;
  color: var(--neel-deep);
}
[data-kind="blood"] .chip.help-kind,
[data-kind="donor"] .chip.help-kind,
.chip.blood {
  background: var(--sindoor-soft);
  border-color: #f0c2bd;
  color: var(--sindoor-ink);
}
.chip.blood {
  font-weight: 800;
}
[data-kind="found"] .chip.help-kind {
  background: var(--hara-soft);
  border-color: #b5dcc3;
  color: var(--hara-ink);
}
.help-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.help-city {
  max-width: 420px;
}
.help-tabs .tab {
  flex: 0 0 auto;
  white-space: nowrap;
}
#help-replies .comment-form {
  margin-top: 4px;
}
.notif-ico.sm {
  width: 28px;
  height: 28px;
}
.notif-ico.sm .icon {
  width: 16px;
  height: 16px;
}

/* Moderator action log */
.log-list li p {
  overflow-wrap: anywhere;
}

/* Links to the draft legal pages */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
}
.legal-links a {
  font-weight: 600;
}

/* Draft terms, privacy notice and grievance pages */
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--ivory);
  border-bottom: 2px solid var(--line-mid);
}
.legal {
  display: grid;
  gap: 16px;
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 56px;
}
.legal > * {
  min-width: 0;
}
.legal .page-head {
  margin-bottom: 0;
}
.legal-nav .tab:hover {
  text-decoration: none;
}
.legal-section p + p {
  margin-top: 8px;
}
.legal-section form {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}
.legal-section form.inline-form {
  display: flex;
}
.legal-section form .btn {
  justify-self: start;
}
.legal-code {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.legal-answer {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
#gv-status > * + * {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .composer-photo:not([data-n="1"]) img {
    height: 110px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .help-item {
    padding: 14px;
  }
  .legal-top {
    padding: 8px 12px;
  }
}
