/*
 * HAR SHALOM CEMETERY — the office back end's look.
 *
 * File     public/harshalom/static/admin.css  (served at /harshalom/static/admin.css)
 * Version  1.19.0
 * Owner    lane A (the office back end); lane L5b (1.1.0); Har Shalom release 0.017, lane flow (1.4.0);
 *          its review fixes, 0.017-fixB (1.5.0); release 0.018, lane office (1.7.0-1.9.0), lane office2
 *          (1.10.0-1.12.0), lane phone (1.13.0); daily feedback sweep (1.16.0, ticket #1777 item 1);
 *          Har Shalom lane (1.17.0, ticket #1777 item 2)
 * Pages    app/harshalom/admin/** (AdminShell links it), app/harshalom/login
 *
 * LIGHT, like the site (owner law; DESIGN_V2.md): the page on --hs-bg, white panels with a 1px
 * line, ink text, Har Shalom green only as a thin accent (the active tab, links, focus, the one
 * main button), gold never a block, no text on solid red or green. Every colour is a token from
 * static/hs.css; nothing here defines a colour of its own except tints of those tokens.
 *
 * Every rule sits under `.hs` (BUILD_CONTRACT 5), the back end's own classes start `hsa-`. A
 * static file (no PostCSS): no nesting, prefixes written out. Rule 40: every shell fills the
 * screen; only the sign-in card caps its width (fullbleed-ok).
 *
 * THREE EXPERIENCES (owner item 11)
 *   PHONE    < 700px    a compact name row with Sign out, a tab strip that scrolls sideways, one
 *                       panel at a time, tables become cards, a Call link beside a phone number.
 *   TABLET   700-1199px the name row and the tabs row; two panes side by side; 44px targets.
 *   COMPUTER >= 1200px  one header row (mark | tabs | View site, who, Sign out); panels side by
 *                       side; long lists scroll inside their panel so the page fits the screen.
 *
 * CHANGELOG (Rule 45)
 *   1.0.0 · 2026-10-29 · lane A — created.
 *   1.1.0 · 2026-11-02 · feat/harshalom-v3-audit, lane L5b — the phone block ends at 699.98px, so
 *           no fractional width between 699 and 700 falls between the phone and the tablet rules
 *           (V-62, as hs.css does); the burial form's kind wording (V-39) and its dates question
 *           (V-35); plot statuses on a section's sheet, the sheet and plots forms with their
 *           previews, the import page, the calendar card's preview tables, the site photo (V-36,
 *           V-37). New text keeps the 13px floor (--hs-fs-min) and new buttons a 44px target on a
 *           touch screen (--hs-tap).
 *   1.2.0 · 2026-11-02 · feat/harshalom-v3-audit, integration — the Dashboard's five tiles: two
 *           a row on a phone with the odd last one full width, three and two on a tablet, one row
 *           on a computer (auto-fit). The Team page (lane L5a, V-19): invitations spaced, the role
 *           select its own width, the Change cell stacked on a phone. The version line under the
 *           office's pages (V-45). A chip's and a tile's small text keep the 13px floor
 *           (--hs-fs-min).
 *   1.3.0 · 2026-11-02 · feat/hs-tefilos, v3.1 lane C — the Tefilos page (.hsa-tf-*): the list
 *           with ↑ / ↓, the boxes (the text right to left in the site's serif), the preview. Added at
 *           the end; nothing above changed.
 *   1.4.0 · 2026-11-11 · harshalom/0.017-flow (release 0.017, "one map", lane flow) — the office's
 *           overlay on the survey's boxes (the Sections page: each state's fill, edge and ink from the
 *           page's variables, a society's hold outlined, the key, the tick that adds tapped boxes to
 *           Mark plots, "The old row/plot sheet"), the Inbox's plot block (Book a plot, Reserve a
 *           plot) and the home's Burials coming. Added before "the Inbox"; nothing else changed.
 *   1.5.0 · 2026-11-11 · harshalom/0.017-fixB (the screens review) — a survey box tapped into Mark
 *           plots is ringed (.is-picked, S-07); on the Team page a field approval's button and a
 *           seat's standing chip wrap inside their column (the page laid out 949 / 409 px wide on a
 *           390 px phone, S-02); on a touch screen a History line's link and its Details, Sign out,
 *           View site, a panel's "more" link, Burials coming's plot link, the Inbox's kinds, Back and
 *           Call, a section's list of burials and the Team page's radio and tick rows are 44 px
 *           targets (S-10).
 *   1.6.0 · 2026-11-11 · harshalom/0.017-fix2P (P4) — the answer line's own lines (.hsa-msg__line:
 *           what to check after a save, a refusal's reasons) each on its own line in normal weight,
 *           and its OK button (.hsa-msg__go) under them, a 44 px target like every button. Added
 *           after the answer line's rules; nothing else changed.
 *   1.7.0 · 2026-11-11 · harshalom/0.018-office (release 0.018, audit R9) — the tab strip at 1200-1439px:
 *           the tabs 8px a side and the header's gaps 16px, so the owner's nine tabs fit beside the mark
 *           and the name at 1247 and 1280 px (53 and 20 px were hidden, with the first tab cut to
 *           "board"). WHERE MORE IS: a strip or table that scrolls sideways inside its own frame fades
 *           out at the edge that has more past it (admin.js 1.10.0 marks `data-hsa-more`); the tab
 *           strip's scrollbar is hidden, so this is its cue. Added; nothing else changed.
 *   1.8.0 · 2026-11-11 · harshalom/0.018-office (release 0.018, audit R7) — a label and its value
 *           (.hsa-dl: the Inbox's details, Team's Waiting for approval and Field seats, Settings'
 *           cards) no longer squeeze the value: the label column grew to its 160 px before the value
 *           got anything, so on a phone a value was 92 px wide and names, emails and dates broke one or
 *           two words a line (18 lines for one sentence; "Nov 11, 2026, 9:00 A" off the edge). The
 *           value now sits beside its 160 px label only where it keeps at least 16em (224 px); where it
 *           would not (a phone, a narrow card) it goes under its label, the row's whole width.
 *           Settings' preview tables (.hsa-impact) are one card per burial where the table is under
 *           760 px wide (a container query): the burial, then each choice with its dates under it,
 *           side by side while each keeps 170 px (the dates had been 31-56 px wide, a word a line).
 *           Wide tables: as before. An address moves to the next line whole when it can and breaks
 *           only before its '@' or a '.' when it must (HsaEmail 1.3.0); in a table's column (700px
 *           and up) and in the header it stays on one line, as before.
 *   1.9.0 · 2026-11-11 · harshalom/0.018-office (release 0.018, audit R8) — the Sections page
 *           (hsa-split--sections): the twenty sections are a strip of small buttons across the top
 *           (the section's number and its burials) at every size, not a 320 px column, and the
 *           survey's boxes take the page's whole width under it: at 1247 px they ran 183 px past their
 *           panel (1008 px of boxes in 825 px), at 1366 px 64 px. [Corrected in 1.11.0: this entry said
 *           "now they fit from 1200 px". That held on the office lane's branch alone. On the release,
 *           with lane S's boxes as wide as their widest family name, section 18 (1,530 px of boxes)
 *           still scrolls sideways at 1247, 1280, 1366 and 1440 px (367, 334, 248, 174 px, measured
 *           11 Nov 2026) and fits at 1920 px; section 7 fits from 1247 px.] Where they still scroll
 *           sideways their frame (hsa-bxframe) is shaded at the side that has more and "Scroll sideways
 *           for the other rows." shows. The names inside the boxes
 *           are sections.css's (lane S), unchanged here. Every other page: as before.
 *   1.10.0 · 2026-11-11 · harshalom/0.018-office2 (release 0.018, O2-1) — the overlay line on a box
 *           (.hs-bx__o, the holder's name or the dig's step) is never cut: it was one line cut with "…"
 *           (overflow hidden, nowrap) in 8 boxes of section 18 at every size. Now 12 px, wrapping at its
 *           spaces only (a hyphenated name held whole, .hsa-bxo__w; a Hebrew line in the names' bold
 *           serif, .hsa-bxo--he), at most two lines; a row widened for it (.hsa-bxwrap--cols, HsBoxSheet
 *           0.004 `cols`) is added to the table's least width, so every other row keeps sections.css's
 *           room (60 px a box, 52 px from 1200 px); paper keeps sections.css's one-page sheet. Added;
 *           nothing else changed.
 *   1.11.0 · 2026-11-11 · harshalom/0.018-office2 (release 0.018, O2-2, O2-3, O2-4) — THE SECTIONS PAGE IS
 *           ONE SCREEN AGAIN on a computer (the owner's rule of 30 Oct 2026). 1.9.0 had let it grow to
 *           2,178-2,768 px (1366x768: 2,178; 1247x1222: 2,768; 1920x1080: 2,294), the forms and the
 *           burials reached by scrolling the page. From 1024 px, on a screen: the office root is the
 *           screen's height, its main part a column (it scrolls inside itself only if a window is too
 *           short for even that); the sections strip's label sits beside its buttons; the section's
 *           panel takes the rest, and in it the boxes' frame takes what the title, the key and the tray
 *           leave (at least 160 px) and scrolls inside itself both ways, as wide as the panel (the boxes
 *           keep their width). The tray (.hsa-tray, sections/page.tsx 1.5.0) holds Mark plots, the
 *           burials, the graves on no surveyed plot and the old sheet as disclosures: one row on a
 *           computer (Mark plots two shares), two a row on a tablet, stacked on a phone; an open one
 *           takes up to half the panel and scrolls inside itself. A section with no survey: its panel
 *           scrolls inside itself, as before 1.9.0. O2-3: the 1.9.0 entry's "now they fit from 1200 px"
 *           is corrected there to what was measured. O2-4: on paper the line "Scroll sideways for the
 *           other rows." and the frame's shade are not printed. Every other page: as before.
 *   1.12.0 · 2026-11-11 · harshalom/0.018-office2 (release 0.018, O2-5, O2-6) — O2-5: the Inbox's kinds
 *           (.hsa-kinds, their scrollbar hidden: 267-377 px more at 320-430 px) and a list's table
 *           (.hsa-tablewrap: Burials 38 px more at 320 px) fade at the edge that has more, as the tab
 *           strip does (admin.js 1.12.0 marks them data-hsa-more). O2-6: Team, Invite someone, a
 *           society's hold: where it is (".. 6 plots (section 18)") goes on its own line under the
 *           society's name, the name's whole width (it was 48 px wide on 4 lines at 320-430 px). Added;
 *           nothing else changed.
 *   1.13.0 · 2026-11-11 · harshalom/0.018-phone (release 0.018; the owner on his phone, 11 Nov ~9:40 PM
 *           ET: "a whole bunch of empty fields that don't belong there") — ONE THING TO DO = ONE BIG
 *           BUTTON; ITS FORM ONLY ONCE PRESSED (.hsa-act, parts.tsx HsaAct): the button is a full-width
 *           row 44 px tall (48 px to a finger: pointer coarse), the office's words and a › at its end;
 *           pressed, it becomes the open form's title bar (× at its end) over the form, and its Cancel
 *           (.hsa-act__cancel) shows only once admin.js runs (data-hsa-js on the office's root, admin.js
 *           1.13.0); without JavaScript the title bar closes it. The same on every screen, picked by the
 *           browser alone (no device is guessed): the form appears for the action chosen. Where you are:
 *           a card's "‹ Back to the map" (.hsa-pc__back) and "No plot chosen". Added at the end before
 *           Tefilos' block; nothing above changed.
 *   1.14.0 · 2026-11-20 · harshalom/0.022-photos (the lead; ticket #1739) — .hsa-upload--row: the Add picture
 *     box inside a Burials row (the graves with no picture yet) sits in the row, without the burial page's rule
 *     above it; the file box takes the cell's width, Upload beside it; on a phone (the row is a card) it is a full
 *     line with a 44 px button.
 *     #1740 (David on a computer: "very confusing ... a nice and friendly user set up"): the home's
 *     "What would you like to do?" (.hsa-do): six big light buttons, a title and one plain line each, three
 *     across on a computer, two on a tablet, one on a phone (60 px at least); the Inbox's button is green-edged
 *     while something is new. From 1600 px wide the home's content is drawn larger (zoom 1.15; 1.3 from 2200),
 *     so a big screen is not a page of small print; the office's other pages are unchanged.
 *   1.15.0 · 2026-12-01 · agy/harshalom-033 (ticket #1775) — .hsa-brand__mark and .hsa-brand__logo frame the
 *     official Har Shalom Cemetery vector crest across both the Office shell and Sign-in door.
 *   1.16.0 · 2026-12-03 · daily feedback sweep (ticket #1777 item 1) — .hsa-field--addr / .hsa-addr-list
 *     / .hsa-addr-opt: the Chapel / Levaya address box's Google Places dropdown. Tokens only
 *     (--hs-surface/--hs-line-2/--hs-r/--hs-accent-soft/--hs-muted), light, Rule 34.
 *   1.17.0 · 2026-12-03 · Har Shalom lane (ticket #1777 item 2) — a refused tick box's row goes red
 *     ([data-hsa-bad], set by admin.js 1.17.0) and a box's label goes red with it; a red box that
 *     is focused keeps its red border. Light tokens only (--hs-red / --hs-red-soft).
 *   1.18.0 · 2026-12-04 · harshalom/0.037-dispatch-people — Dispatch & Field's Members (.hsa-mems, .hsa-mem*)
 *     and Every burial (.hsa-hist*) views: one row per member with his attendance number at the right, one
 *     row per burial with its facts as a short list. Light tokens only (Rule 34); full width (Rule 40);
 *     on a phone the attendance drops under the name and nothing scrolls sideways.
 *   1.19.0 · 2026-12-04 · harshalom/0.041-members-button (#1783) — .hsa-dsp__see: the way to the members'
 *     names is a big button; on Dispatch & Field each tick box (Capabilities, What he can do) stands on its own
 *     line with its words beside it (on David's phone they ran together across the line). And the owner, 4 Dec
 *     ("way oversized. Every box is way crazy oversized ... I only have room for 2 roster names on my screen"):
 *     Dispatch & Field is compact — small tiles in one row, slim panels, the members one line each on a computer
 *     (two on a phone: name and group, then what he does, the count, Call and Text), group chips, a three-box
 *     row for the family contact.
 */

/* ── the root ──────────────────────────────────────────────────────────── */

.hs.hsa {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hs .hsa-email > span {
  /* the '@' sits in its own span; it reads as one address */
  display: inline;
}

/* An address moves to the next line whole when it can (1.8.0, audit R7), and breaks before its '@' or a
   '.' only when it is longer than the whole line (HsaEmail 1.3.0's <wbr>). The header keeps its one
   line, cut at its 220px as before. */
.hs .hsa-email {
  display: inline-block;
  max-width: 100%;
}

.hs .hsa-me__email .hsa-email {
  display: inline;
}

.hs .hsa-me__email wbr {
  display: none;
}

/* ── the header ────────────────────────────────────────────────────────── */

.hs .hsa-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--hs-surface);
  border-bottom: 1px solid var(--hs-line);
}

.hs .hsa-top__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'brand me'
    'tabs tabs';
  align-items: center;
  column-gap: 12px;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}

.hs .hsa-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  min-width: 0;
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--hs-line-2);
  border-radius: 9px;
  background: #fbfaf7;
  color: var(--hs-accent);
}

.hs .hsa-brand__logo {
  display: block;
  width: 100%;
  height: 100%;
}

.hs .hsa-brand__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.hs .hsa-brand__en {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.hs .hsa-brand__office {
  color: var(--hs-accent);
}

.hs .hsa-brand__he {
  font-size: 13px;
  color: var(--hs-muted);
  white-space: nowrap;
}

.hs .hsa-tabs {
  grid-area: tabs;
  min-width: 0;
  margin: 0 calc(-1 * max(12px, env(safe-area-inset-left)));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-tabs::-webkit-scrollbar {
  display: none;
}

.hs .hsa-tabs__list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.hs .hsa-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--hs-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.hs .hsa-tab:hover {
  color: var(--hs-accent-ink);
  background: var(--hs-accent-soft);
}

.hs .hsa-tab[aria-current='page'] {
  color: var(--hs-accent-ink);
  border-bottom-color: var(--hs-accent);
}

/* WHERE MORE IS (1.7.0). admin.js (1.10.0) marks a sideways scroller `data-hsa-more` with the edges that
   have more past them; that edge fades out (28px, admin.js EDGE_FADE), so the strip or the table reads
   as "more this way". The tab strip's scrollbar is hidden: this is its only cue. 1.12.0 (O2-5): the
   Inbox's kinds (their scrollbar hidden too) and a list's table (.hsa-tablewrap) the same way. A section's boxes have
   their own frame's shade (.hsa-bxframe, below), which leaves their scrollbars alone. */
.hs .hsa-tabs[data-hsa-more='right'],
.hs .hsa-kinds[data-hsa-more='right'],
.hs .hsa-sheetwrap[data-hsa-more='right'],
.hs .hsa-impact[data-hsa-more='right'],
.hs .hsa-tablewrap[data-hsa-more='right'] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), rgba(0, 0, 0, 0.12));
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), rgba(0, 0, 0, 0.12));
}

.hs .hsa-tabs[data-hsa-more='left'],
.hs .hsa-kinds[data-hsa-more='left'],
.hs .hsa-sheetwrap[data-hsa-more='left'],
.hs .hsa-impact[data-hsa-more='left'],
.hs .hsa-tablewrap[data-hsa-more='left'] {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), rgba(0, 0, 0, 0.12));
  mask-image: linear-gradient(to left, #000 calc(100% - 28px), rgba(0, 0, 0, 0.12));
}

.hs .hsa-tabs[data-hsa-more='left right'],
.hs .hsa-kinds[data-hsa-more='left right'],
.hs .hsa-sheetwrap[data-hsa-more='left right'],
.hs .hsa-impact[data-hsa-more='left right'],
.hs .hsa-tablewrap[data-hsa-more='left right'] {
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.12),
    #000 28px,
    #000 calc(100% - 28px),
    rgba(0, 0, 0, 0.12)
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.12),
    #000 28px,
    #000 calc(100% - 28px),
    rgba(0, 0, 0, 0.12)
  );
}

.hs .hsa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid #f2c4c0;
  border-radius: 999px;
  background: var(--hs-red-soft);
  color: var(--hs-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hs .hsa-me {
  grid-area: me;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hs .hsa-me__site {
  display: none;
  color: var(--hs-accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hs .hsa-me__who {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  line-height: 1.2;
}

.hs .hsa-me__email {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.hs .hsa-me__seat {
  font-size: 12px;
  color: var(--hs-muted);
}

.hs .hsa-btn.hsa-me__out {
  min-height: 36px;
  padding: 4px 10px;
  font-size: 14px;
}

/* ── the page head ─────────────────────────────────────────────────────── */

.hs .hsa-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 14px max(12px, env(safe-area-inset-right)) 32px max(12px, env(safe-area-inset-left));
}

.hs .hsa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.hs .hsa-head__txt {
  min-width: 0;
}

.hs .hsa-head__h {
  font-size: var(--hs-h1);
  color: var(--hs-accent-ink);
}

.hs .hsa-head__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  color: var(--hs-muted);
  font-size: 14px;
}

.hs .hsa-head__he {
  font-size: 17px;
  color: var(--hs-ink);
}

.hs .hsa-head__cells {
  font-size: 13px;
}

.hs .hsa-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs .hsa-noscript {
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  color: var(--hs-muted);
}

/* ── buttons, chips, small text ───────────────────────────────────────── */

.hs .hsa-btn {
  white-space: nowrap;
}

.hs .hsa-btn--small {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 13px;
}

.hs .hsa-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 8px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-muted);
  font-size: var(--hs-fs-min);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.hs .hsa-chip--ok {
  border-color: #bfdfcb;
  background: var(--hs-green-soft);
  color: var(--hs-green);
}

.hs .hsa-chip--new {
  border-color: #f2c4c0;
  background: var(--hs-red-soft);
  color: var(--hs-red);
}

.hs .hsa-chip--warn {
  border-color: #ead7a8;
  background: #fbf5e6;
  color: #7a5a14;
}

.hs .hsa-chip--off {
  background: var(--hs-bg);
}

.hs .hsa-when {
  color: var(--hs-muted);
  font-size: 13px;
  white-space: nowrap;
}

.hs .hsa-hint {
  display: block;
  margin-top: 4px;
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-text {
  color: var(--hs-ink);
  font-size: 14px;
}

.hs .hsa-text--now {
  margin-top: 6px;
  color: var(--hs-muted);
}

.hs .hsa-empty {
  padding: 8px 0;
  color: var(--hs-muted);
  font-size: 14px;
}

.hs .hsa-sub {
  margin: 16px 0 8px;
  font-family: var(--hs-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .hsa-place {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hs .hsa-count {
  color: var(--hs-muted);
  font-size: 13px;
}

/* ── the answer line and the error slots admin.js writes ─────────────── */

.hs .hsa-msg {
  font-size: 14px;
  font-weight: 600;
}

.hs .hsa-msg:empty {
  display: none;
}

.hs .hsa-msg[data-tone='ok'] {
  color: var(--hs-green);
}

.hs .hsa-msg[data-tone='err'] {
  padding: 8px 10px;
  border: 1px solid #f2c4c0;
  border-radius: var(--hs-r);
  background: var(--hs-red-soft);
  color: var(--hs-red);
}

/* 1.6.0: what to check after a save, and a refusal's reasons, one per line; then OK */
.hs .hsa-msg__line {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

.hs .hsa-msg__go {
  margin-top: 10px;
  min-height: 44px;
}

.hs .hsa-err {
  display: block;
  color: var(--hs-red);
  font-size: 13px;
  font-weight: 600;
}

.hs .hsa-err:empty {
  display: none;
}

.hs .hsa-input[aria-invalid='true'] {
  border-color: var(--hs-red);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

/* ticket #1777 item 2: a tick box has no border to colour, so its whole row goes red; a box
   that is also focused keeps its red border (the focus ring stays, the red is not lost). */
.hs .hsa-check[data-hsa-bad],
.hs .hsa-field[data-hsa-bad] .hsa-label {
  color: var(--hs-red);
}

.hs .hsa-check[data-hsa-bad] {
  border-radius: var(--hs-r);
  background: var(--hs-red-soft);
  outline: 2px solid var(--hs-red);
  outline-offset: 2px;
}

.hs .hsa-input[aria-invalid='true']:focus {
  border-color: var(--hs-red);
}

/* ── panels ────────────────────────────────────────────────────────────── */

.hs .hsa-panel {
  min-width: 0;
}

.hs .hsa-panel--flush {
  padding: 12px;
}

.hs .hsa-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.hs .hsa-panel__h {
  font-size: var(--hs-h2);
}

.hs .hsa-panel__h [lang='yi'],
.hs .hsa-panel__h [lang='he'] {
  margin-left: 8px;
  font-size: 0.85em;
  color: var(--hs-muted);
}

.hs .hsa-more {
  color: var(--hs-accent);
  font-size: 14px;
  font-weight: 600;
}

/* ── forms ─────────────────────────────────────────────────────────────── */

.hs .hsa-form {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hs .hsa-inline {
  display: inline-flex;
  margin: 0;
}

/* a lone button in a form keeps its own width */
.hs .hsa-form > .hs-btn {
  justify-self: start;
}

.hs .hsa-field {
  min-width: 0;
}

/* The Chapel / Levaya address box's Google Places dropdown (1.16.0, ticket #1777 item 1). */
.hs .hsa-field--addr {
  position: relative;
}

.hs .hsa-addr-list {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line-2);
  border-radius: var(--hs-r);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  max-height: 260px;
  overflow-y: auto;
}

.hs .hsa-addr-list[hidden] {
  display: none;
}

.hs .hsa-addr-opt {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-surface);
  color: var(--hs-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hs .hsa-addr-opt:last-child {
  border-bottom: 0;
}

.hs .hsa-addr-opt:hover,
.hs .hsa-addr-opt:focus {
  background: var(--hs-accent-soft);
  outline: none;
}

.hs .hsa-addr-opt__main {
  display: block;
  font-weight: 600;
}

.hs .hsa-addr-opt__sub {
  display: block;
  margin-top: 1px;
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-label {
  display: block;
  margin-bottom: 4px;
  color: var(--hs-ink);
  font-size: 14px;
  font-weight: 600;
}

.hs .hsa-input[dir='rtl'] {
  font-family: var(--hs-serif);
  font-size: 18px;
}

.hs .hsa-select {
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--hs-muted) 50%),
    linear-gradient(135deg, var(--hs-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.hs .hsa-textarea {
  min-height: 72px;
  resize: vertical;
  font-size: 15px;
}

.hs .hsa-textarea--addr {
  min-height: 64px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 14px;
}

.hs .hsa-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hs .hsa-group__h {
  margin-bottom: 8px;
  padding: 0;
  color: var(--hs-accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hs .hsa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.hs .hsa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hs .hsa-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.hs .hsa-radios legend {
  width: 100%;
  padding: 0;
}

.hs .hsa-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-size: 14px;
  cursor: pointer;
}

.hs .hsa-radios input {
  width: 18px;
  height: 18px;
  accent-color: var(--hs-accent);
}

/* Team, Invite someone: a society's hold (1.12.0, O2-6). The tick, the society's name beside it, and
   where its hold is (".. 6 plots (section 18)") on its own line under the name, the name's whole width:
   in the label's row it was squeezed to 48 px, one or two words a line, on a phone. */
.hs .hsa-radios[data-hsa-field-holds] label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
}

.hs .hsa-radios[data-hsa-field-holds] label > .hsa-hint {
  grid-column: 2;
  margin-top: 0;
}

.hs .hsa-file {
  display: block;
  width: 100%;
  font-size: 14px;
}

/* ── the Dashboard ─────────────────────────────────────────────────────── */

.hs .hsa-dash {
  display: grid;
  gap: 14px;
}

.hs .hsa-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hs .hsa-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow);
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-tile:hover {
  border-color: var(--hs-accent);
}

.hs .hsa-tile__n {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hs-accent-ink);
  font-variant-numeric: tabular-nums;
}

.hs .hsa-tile--new .hsa-tile__n {
  color: var(--hs-red);
}

.hs .hsa-tile__label {
  font-weight: 600;
  font-size: 14px;
}

.hs .hsa-tile__sub {
  color: var(--hs-muted);
  font-size: var(--hs-fs-min);
}

.hs .hsa-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 10px 14px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  font-size: 14px;
}

.hs .hsa-strip__h {
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .hsa-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hs .hsa-strip__note {
  color: var(--hs-muted);
}

.hs .hsa-strip__go {
  margin-left: auto;
  color: var(--hs-accent);
  font-weight: 600;
}

.hs .hsa-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.hs .hsa-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-rows > li + li {
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-row:hover {
  background: var(--hs-accent-soft);
}

.hs .hsa-row__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}

.hs .hsa-row__en {
  font-weight: 600;
}

.hs .hsa-row__he {
  font-size: 16px;
  color: var(--hs-muted);
}

.hs .hsa-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  color: var(--hs-muted);
  font-size: 13px;
  text-align: right;
}

.hs .hsa-row__plot {
  font-variant-numeric: tabular-nums;
}

/* ── History lines ─────────────────────────────────────────────────────── */

.hs .hsa-changes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 8px 0;
}

.hs .hsa-changes > .hsa-change + .hsa-change {
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-change__type {
  color: var(--hs-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hs .hsa-change__what {
  font-size: 14px;
}

.hs .hsa-change__what a {
  color: var(--hs-ink);
}

.hs .hsa-change__meta {
  color: var(--hs-muted);
  font-size: 13px;
}

/* A touch screen (1.5.0): a History line's link and its Details, Sign out, View site and the
   Dashboard's small links are 44 px targets (they were 18 to 36 px tall). */
@media (pointer: coarse) {
  .hs .hsa-change__what a {
    display: flex;
    align-items: center;
    min-height: var(--hs-tap);
  }

  .hs .hsa-btn.hsa-me__out {
    min-height: var(--hs-tap);
  }

  .hs .hsa-me__site {
    align-items: center;
    min-height: var(--hs-tap);
  }

  .hs .hsa-more,
  .hs .hsa-strip__go {
    display: inline-flex;
    align-items: center;
    min-height: var(--hs-tap);
  }

  /* a link inside a sentence (Burials coming's "the grave still to close"): 44 px to the finger, the
     line itself as tall as before */
  .hs .hsa-coming__close a {
    display: inline-block;
    padding: 13px 0;
    margin: -13px 0;
  }

  .hs .hsa-diff summary {
    padding: 12px 0;
  }

  /* the Inbox's kinds and its "Back to the list", the Team page's radio and tick rows, a section's
     list of burials, a Call link */
  .hs.hsa .hsa-kind,
  .hs .hsa-radios label,
  .hs.hsa .hsa-seclist__people a {
    min-height: var(--hs-tap);
  }

  .hs.hsa .hsa-call {
    display: inline-block;
    padding: 13px 4px;
    margin: -13px 0;
  }

  .hs .hsa-back {
    display: inline-flex;
    align-items: center;
    min-height: var(--hs-tap);
  }
}

.hs .hsa-diff summary {
  color: var(--hs-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.hs .hsa-diff__t {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  font-size: 13px;
}

.hs .hsa-diff__t th,
.hs .hsa-diff__t td {
  padding: 4px 6px;
  border: 1px solid var(--hs-line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.hs .hsa-diff__t thead th {
  background: var(--hs-bg);
}

/* ── the Burials list ──────────────────────────────────────────────────── */

.hs .hsa-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
}

.hs .hsa-filters .hsa-field--grow {
  grid-column: 1 / -1;
}

.hs .hsa-filters__go {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.hs .hsa-tablewrap {
  position: relative;
  overflow-x: auto;
}

.hs .hsa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hs .hsa-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  background: var(--hs-bg);
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.hs .hsa-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hs-line);
  vertical-align: top;
}

.hs .hsa-table tbody tr:hover {
  background: #fdfcf9;
}

.hs .hsa-name {
  display: flex;
  flex-direction: column;
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-name:hover .hsa-name__en {
  color: var(--hs-accent);
  text-decoration: underline;
}

.hs .hsa-name__en {
  font-weight: 600;
}

.hs .hsa-name__he {
  align-self: flex-start;
  font-size: 16px;
  color: var(--hs-muted);
}

.hs .hsa-cell2 {
  display: flex;
  flex-direction: column;
}

.hs .hsa-cell2 [lang='he'] {
  align-self: flex-start;
  color: var(--hs-muted);
}

.hs .hsa-table .hsa-chip {
  margin-top: 2px;
}

.hs .hsa-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.hs .hsa-pager > :last-child {
  justify-self: end;
}

.hs .hsa-pager__at {
  color: var(--hs-muted);
  font-size: 13px;
}

/* ── one burial: form + side panels ───────────────────────────────────── */

.hs .hsa-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.hs .hsa-split__side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hs .hsa-split__main {
  min-width: 0;
}

.hs .hsa-bform {
  gap: 16px;
}

.hs .hsa-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.hs .hsa-photo {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hs .hsa-photo__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
}

.hs .hsa-photo__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs .hsa-photo--off .hsa-photo__img img {
  opacity: 0.45;
}

.hs .hsa-photo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hs .hsa-photo__bar .hsa-btn {
  white-space: normal;
  text-align: left;
}

.hs .hsa-upload {
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-upload .hsa-btn {
  justify-self: start;
}

/* 0.022 (ticket #1739): the Add picture box inside a Burials row */
.hs .hsa-upload--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-top: 0;
  border-top: 0;
  min-width: 12rem;
}

.hs .hsa-upload--row .hsa-label {
  flex: 1 0 100%;
  margin: 0;
}

.hs .hsa-upload--row .hsa-file {
  flex: 1 1 10rem;
  min-width: 0;
}

@media (max-width: 699px) {
  .hs .hsa-upload--row .hsa-btn {
    min-height: 44px;
  }
}

/* ── The home's "What would you like to do?" (0.022, ticket #1740) ─────────── */

.hs .hsa-do__h {
  margin: 4px 0 0;
  font-family: var(--hs-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--hs-ink);
}

.hs .hsa-do__h--sub {
  margin-top: 6px;
  font-size: 17px;
  color: var(--hs-muted);
}

.hs .hsa-do__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.hs .hsa-do__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow);
  color: var(--hs-ink);
  text-decoration: none;
}

.hs a.hsa-do__card:hover,
.hs a.hsa-do__card:focus-visible {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hsa-do__card--new {
  border-color: var(--hs-green);
  box-shadow: inset 4px 0 0 var(--hs-green), var(--hs-shadow);
}

.hs .hsa-do__t {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hs-accent-ink);
}

.hs .hsa-do__s {
  font-size: 15px;
  line-height: 1.35;
  color: var(--hs-muted);
}

.hs .hsa-do__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hs .hsa-do__row .hsa-input {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 1199px) {
  .hs .hsa-do__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .hs .hsa-do__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs .hsa-do__card {
    min-height: 60px;
  }
}

@media screen and (min-width: 1600px) {
  .hs .hsa-dash {
    zoom: 1.15;
  }
}

@media screen and (min-width: 2200px) {
  .hs .hsa-dash {
    zoom: 1.3;
  }
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.hs .hsa-seclist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-sec {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--hs-r);
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-sec:hover {
  background: var(--hs-accent-soft);
}

.hs .hsa-sec[aria-current='true'] {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hsa-sec__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hs-line-2);
  border-radius: 8px;
  background: var(--hs-surface);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hs .hsa-sec__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
}

.hs .hsa-sec__yi {
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-sec__n {
  margin-left: auto;
  color: var(--hs-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.hs .hsa-sec .hsa-chip {
  display: none;
}

.hs .hsa-sheetwrap {
  /* positioned, so the screen-reader names inside the squares stay inside the scroll box
     (an absolutely placed .hs-sr would otherwise widen the whole page) */
  position: relative;
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
}

.hs .hsa-sheet {
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.hs .hsa-sheet th {
  position: sticky;
  top: 0;
  padding: 2px 4px;
  background: var(--hs-bg);
  color: var(--hs-muted);
  font-weight: 600;
}

.hs .hsa-sheet tbody th {
  left: 0;
  z-index: 1;
}

.hs .hsa-sq {
  width: 40px;
  min-width: 40px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--hs-line);
  background: var(--hs-surface);
  text-align: center;
}

.hs .hsa-sq--on {
  background: var(--hs-accent-soft);
}

.hs .hsa-sq--on a {
  display: block;
  padding: 2px 1px;
  overflow: hidden;
  color: var(--hs-accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hs .hsa-sq--on a:hover {
  background: var(--hs-accent);
  color: #fff;
}

.hs .hsa-seclist__people {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-seclist__people a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-height: 36px;
  padding: 4px 2px;
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-ink);
  text-decoration: none;
  font-size: 14px;
}

.hs .hsa-seclist__people a:hover {
  background: var(--hs-accent-soft);
}

.hs .hsa-seclist__people .hsa-place {
  min-width: 64px;
  color: var(--hs-muted);
}

.hs .hsa-seclist__people [lang='he'] {
  color: var(--hs-muted);
}

/* ── One map (0.017, lane flow): the survey's boxes in the office, Book a plot, Burials coming ──
   app/harshalom/admin/sections/page.tsx and ../_parts/HsaPlotFlow.tsx. The boxes are Section by
   Section's own table (static/sections.css, .hs-bx); here is only the office's overlay on them, the
   key, the Inbox's plot block and the home's Burials coming. A state's colours are variables the page
   sets from the one list (_plot-layers.ts HSA_BOX_STATUS, hsaPlotCssVars): nothing here names the
   colour of a state. The boxes' rules start `.hs.hsa .hsa-bxwrap` so they sit above sections.css,
   which the page links after this sheet. */

.hs .hsa-bx--occupied {
  --hsa-f: var(--hsa-box-occupied-fill);
  --hsa-e: var(--hsa-box-occupied-edge);
  --hsa-i: var(--hsa-box-occupied-ink);
}

.hs .hsa-bx--preparing {
  --hsa-f: var(--hsa-box-preparing-fill);
  --hsa-e: var(--hsa-box-preparing-edge);
  --hsa-i: var(--hsa-box-preparing-ink);
}

.hs .hsa-bx--sold {
  --hsa-f: var(--hsa-box-sold-fill);
  --hsa-e: var(--hsa-box-sold-edge);
  --hsa-i: var(--hsa-box-sold-ink);
}

.hs .hsa-bx--reserved {
  --hsa-f: var(--hsa-box-reserved-fill);
  --hsa-e: var(--hsa-box-reserved-edge);
  --hsa-i: var(--hsa-box-reserved-ink);
}

.hs .hsa-bx--held {
  --hsa-f: var(--hsa-box-held-fill);
  --hsa-e: var(--hsa-box-held-edge);
  --hsa-i: var(--hsa-box-held-ink);
}

.hs .hsa-bx--available {
  --hsa-f: var(--hsa-box-available-fill);
  --hsa-e: var(--hsa-box-available-edge);
  --hsa-i: var(--hsa-box-available-ink);
}

/* The key: a swatch for each state, its word and its count. */
.hs .hsa-bxkey {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: var(--hs-fs-min);
}

.hs .hsa-bxkey__i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hs-ink);
}

.hs .hsa-bxkey__sw {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--hsa-e, var(--hs-line-2));
  border-radius: 4px;
  background: var(--hsa-f, var(--hs-surface));
}

.hs .hsa-bx--hold > .hsa-bxkey__sw {
  outline: var(--hsa-hold-width, 2px) dashed var(--hsa-hold-edge, var(--hs-accent));
  outline-offset: 1px;
}

.hs .hsa-bx--stale > .hsa-bxkey__sw {
  border-style: dashed;
  border-color: var(--hsa-box-occupied-edge, var(--hs-line-2));
}

/* How to read it, and the tick that lets a tap add a box to Mark plots. */
.hs .hsa-bxhow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  margin: 0 0 6px;
  color: var(--hs-muted);
  font-size: var(--hs-fs-min);
}

.hs .hsa-bxpick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--hs-ink);
  font-weight: 600;
  cursor: pointer;
}

.hs .hsa-bxpick input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--hs-accent);
}

/* The boxes scroll inside their own frame (the row letters and plot numbers held, sections.css). */
.hs .hsa-bxwrap {
  position: relative;
  max-height: calc(100dvh - 140px);
  margin: 0 0 12px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
  -webkit-overflow-scrolling: touch;
}

.hs .hsa-bxwrap:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 1px;
}

/* Each box by its state: fill, edge, the colour of its words. */
.hs.hsa .hsa-bxwrap .hs-bx__c[class*='hsa-bx--'] {
  border-color: var(--hsa-e);
  background: var(--hsa-f);
}

.hs.hsa .hsa-bxwrap .hs-bx__a {
  min-height: 0;
  color: var(--hsa-i, var(--hs-ink));
}

.hs.hsa .hsa-bxwrap .hs-bx__a .hs-bx__k {
  color: var(--hsa-i, var(--hs-faint));
}

.hs.hsa .hsa-bxwrap .hs-bx__a:hover {
  background: rgba(31, 58, 46, 0.08);
}

/* The Team page on a phone (1.5.0): nothing is wider than the screen. A field approval's button names
   the society, which can be long (two holds: two names), and a seat's standing chip ("Invited · has not
   signed in yet") are allowed to wrap inside their column. */
.hs [data-hsa-approve-field] {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.hs .hsa-dl dd .hsa-chip {
  max-width: 100%;
  white-space: normal;
}

/* A box tapped into Mark plots (admin.js 1.4.0, the tick on): ringed in the map's "chosen" sky blue,
   a colour no state uses (admin.css 1.5.0). */
.hs.hsa .hsa-bxwrap .hs-bx__a.is-picked {
  box-shadow: inset 0 0 0 3px #0284c7;
  background: rgba(2, 132, 199, 0.1);
}

/* A society's hold: the box outlined (HSA_HOLD_OUTLINE). */
.hs.hsa .hsa-bxwrap .hs-bx__c.hsa-bx--hold {
  outline: var(--hsa-hold-width, 2px) dashed var(--hsa-hold-edge, var(--hs-accent));
  outline-offset: 0;
}

/* Marked occupied with no burial on the site: a dashed edge. */
.hs.hsa .hsa-bxwrap .hs-bx__c.hsa-bx--stale {
  border-style: dashed;
  border-color: var(--hsa-box-occupied-edge, var(--hs-line-2));
}

/* The holder's name, or the dig's step, under the box's own name. 1.10.0 (O2-1): whole, never cut with
   "…": 12 px (the boxes' English names' size), wrapping at its spaces only, at most two lines; the row
   is made wide enough for that (HsaPlotFlow.tsx hsaBoxCols, below). A hyphenated name is held whole
   (.hsa-bxo__w); a Hebrew line reads right to left in the names' bold serif (.hsa-bxo--he). */
.hs .hs-bx__o {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.hs .hsa-bxo {
  display: block;
}

.hs .hsa-bxo__w {
  white-space: nowrap;
}

.hs .hsa-bxo--he {
  font-family: var(--hs-serif);
  font-weight: 700;
  text-align: right;
}

/* A row widened for its overlay line (1.10.0, HsBoxSheet 0.004 `cols`): the table keeps every other row
   at the room sections.css gives it, and adds the widened rows' own widths (--hsa-bx-k rows,
   --hsa-bx-sum px). The same sum as sections.css's .hs-bx min-width, with those rows taken out of it. */
.hs.hsa .hsa-bxwrap--cols .hs-bx {
  min-width: calc(
    (var(--hs-bx-n, 18) - var(--hsa-bx-k, 0)) * max(60px, var(--hs-bx-fit, var(--hs-bx-w, 0px))) +
      var(--hsa-bx-sum, 0px) + 72px
  );
}

/* The tick on: a tap adds the box to Mark plots. */
.hs.hsa:has([data-hsa-pick]:checked) .hsa-bxwrap .hs-bx__a {
  cursor: copy;
}

.hs .hsa-bxloose {
  margin: 0 0 12px;
}

/* The old row/plot sheet, closed under the boxes. */
.hs .hsa-oldsheet {
  padding: 0 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
}

.hs .hsa-oldsheet[open] {
  padding-bottom: 12px;
}

.hs .hsa-oldsheet__h {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--hs-accent-ink);
  font-weight: 700;
  cursor: pointer;
}

/* The Inbox: a funeral notice's or an application's plot. */
.hs .hsa-plotflow {
  margin: 14px 0;
  padding: 10px 14px 12px;
  border: 1px solid var(--hs-line);
  border-left: 3px solid var(--hs-accent);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
}

.hs .hsa-plotflow .hsa-sub {
  margin-top: 0;
}

.hs .hsa-plotflow__say {
  margin: 0 0 6px;
  font-weight: 600;
}

.hs .hsa-plotflow__why {
  margin: 0 0 8px;
  color: var(--hs-muted);
}

.hs .hsa-plotflow__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 8px;
}

.hs .hsa-plotflow__list {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.hs .hsa-plotflow__list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.hs .hsa-plotflow__list .hsa-plotflow__why {
  flex: 1 1 260px;
  margin: 0;
}

/* The home: Burials coming. */
.hs .hsa-coming__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 8px;
  font-size: var(--hs-fs-min);
}

.hs .hsa-coming__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hs .hsa-coming__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-coming__list > li + li {
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-coming__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-coming__row:hover {
  background: var(--hs-accent-soft);
}

.hs .hsa-coming__box {
  min-width: 64px;
  color: var(--hs-accent-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hs .hsa-coming__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hs .hsa-coming__who {
  font-weight: 600;
}

.hs .hsa-coming__day,
.hs .hsa-coming__next {
  color: var(--hs-muted);
  font-size: var(--hs-fs-min);
}

.hs .hsa-coming__step {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.hs .hsa-coming__close {
  margin: 8px 0 0;
  color: var(--hs-muted);
  font-size: var(--hs-fs-min);
}

/* A touch screen: every box and button of these is a 44px target. */
@media (pointer: coarse) {
  .hs.hsa .hsa-bxwrap .hs-bx__a {
    min-height: var(--hs-tap);
  }

  .hs .hsa-plotflow .hs-btn {
    min-height: var(--hs-tap);
  }
}

/* A phone: the step under the name; the boxes one screen tall. */
@media (max-width: 699.98px) {
  .hs .hsa-coming__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hs .hsa-coming__step {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    text-align: left;
  }

  .hs .hsa-bxhow {
    justify-content: flex-start;
  }
}

/* A tablet: Burials coming over the latest burials and the changes. */
@media (min-width: 700px) and (max-width: 1199.98px) {
  .hs .hsa-two.hsa-two--three > .hsa-coming {
    grid-column: 1 / -1;
  }
}

/* A computer: the boxes leave room above for the title and the key; the forms scroll under them.
   The home: Burials coming beside the latest burials and the changes, so the page keeps its height. */
@media (min-width: 1200px) {
  .hs .hsa-bxwrap {
    min-height: 280px;
    max-height: calc(100vh - 330px);
  }

  /* as sections.css from 1200 px: a box at least 52 px (1.10.0) */
  .hs.hsa .hsa-bxwrap--cols .hs-bx {
    min-width: calc(
      (var(--hs-bx-n, 18) - var(--hsa-bx-k, 0)) * max(52px, var(--hs-bx-fit, var(--hs-bx-w, 0px))) +
        var(--hsa-bx-sum, 0px) + 72px
    );
  }

  .hs .hsa-two.hsa-two--three {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr);
  }

  /* In its column the step sits under the name, as on a phone. */
  .hs .hsa-two--three .hsa-coming__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hs .hsa-two--three .hsa-coming__step {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    text-align: left;
  }
}

/* ── the Inbox ─────────────────────────────────────────────────────────── */

.hs .hsa-kinds {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hs .hsa-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.hs .hsa-kind[aria-current='page'] {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
}

.hs .hsa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.hs .hsa-chips--bar {
  margin-bottom: 12px;
}

.hs .hsa-chips .hs-chip[aria-current='true'] {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
  font-weight: 600;
}

.hs .hsa-chips__n {
  color: var(--hs-muted);
  font-variant-numeric: tabular-nums;
}

.hs .hsa-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-list > li + li {
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-li {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-li:hover {
  background: var(--hs-bg);
}

.hs .hsa-li[aria-current='true'] {
  background: var(--hs-accent-soft);
}

.hs .hsa-li__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hs .hsa-li__t {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs .hsa-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hs-red);
}

.hs .hsa-li__s {
  overflow: hidden;
  color: var(--hs-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs .hsa-li__w {
  color: var(--hs-faint);
  font-size: 12px;
}

.hs .hsa-li__w .hsa-when {
  font-size: 12px;
  color: inherit;
}

.hs .hsa-back {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--hs-accent);
  font-weight: 600;
}

.hs .hsa-item__top {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.hs .hsa-item__meta {
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-ref {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.hs .hsa-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hs .hsa-dl {
  display: grid;
  gap: 0;
  margin: 0;
}

/* A label and its value (1.8.0, audit R7). The value sits beside its 160 px label only while it keeps at
   least 16em (224 px at 14 px); in a narrower row (a phone, a narrow card) it wraps under its label and
   takes the row's whole width. The 999 to 1 grow keeps the label at its 160 px beside the value (it takes
   a thousandth of the room left) and the whole row when it stands alone. (It was a grid of
   minmax(96px, 160px) and 1fr: the label grew to 160 px before the value got anything, and on a
   320 px phone the value had 92 px.) */
.hs .hsa-dl__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hs-line);
  font-size: 14px;
}

.hs .hsa-dl dt {
  flex: 1 0 160px;
  min-width: 0;
  color: var(--hs-muted);
}

.hs .hsa-dl dd {
  flex: 999 1 16em;
  margin: 0;
  min-width: 0;
  text-align: left;
  word-break: break-word;
}

.hs .hsa-call {
  margin-left: 6px;
  color: var(--hs-accent);
  font-weight: 600;
}

.hs .hsa-body {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.hs .hsa-answers {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 14px;
}

.hs .hsa-answers th,
.hs .hsa-answers td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--hs-line);
  text-align: left;
  vertical-align: top;
}

.hs .hsa-answers th {
  width: 40%;
  color: var(--hs-muted);
  font-weight: 500;
}

.hs .hsa-files ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.hs .hsa-files .hsa-hint {
  display: inline;
  margin: 0;
}

.hs .hsa-office {
  margin-top: 6px;
}

.hs .hsa-office__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hs .hsa-note {
  gap: 8px;
}

.hs .hsa-pick {
  padding: 32px 8px;
  text-align: center;
}

/* ── Settings ──────────────────────────────────────────────────────────── */

.hs .hsa-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.hs .hsa-card .hsa-form {
  margin-top: 12px;
}

/* ── the sign-in door ─────────────────────────────────────────────────── */

.hs.hsa-door {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.hs .hsa-door__card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 440px; /* fullbleed-ok: a sign-in card */
}

.hs .hsa-brand--door {
  /* not in the header grid here: no named area, or the card's grid grows columns for it */
  grid-area: auto;
  min-height: 0;
  margin: 0;
}

.hs .hsa-door__h {
  font-size: var(--hs-h1);
  color: var(--hs-accent-ink);
}

.hs .hsa-door__p {
  color: var(--hs-ink);
}

.hs .hsa-door__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── the cemetery's own data (v3, lane L5b) ──────────────────────────── */

/* The answer line asking a question (the dates check), and a quiet note in an error slot. */
.hs .hsa-msg[data-tone='ask'] {
  padding: 8px 10px;
  border: 1px solid #ead7a8;
  border-radius: var(--hs-r);
  background: #fbf5e6;
  color: #5c430c;
}

.hs .hsa-err[data-tone='note'] {
  color: var(--hs-muted);
  font-weight: 400;
}

.hs .hsa-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hs .hsa-ask:empty {
  display: none;
}

.hs .hsa-ask__btn {
  min-height: var(--hs-tap);
  white-space: normal;
  text-align: left;
}

/* The burial form: the wording of the kind chosen (V-39). The server draws the stored kind's
   wording; :has() follows the box as it changes. */
.hs .hsa-k-sef {
  display: none;
}

.hs .hsa-bform.is-sefarim .hsa-k-sef {
  display: inline;
}

.hs .hsa-bform.is-sefarim .hsa-k-per,
.hs .hsa-bform.is-sefarim .hsa-k-perfield {
  display: none;
}

@supports selector(:has(*)) {
  .hs .hsa-bform:has(select[name='kind'] option[value='sefer_torah_burial']:checked) .hsa-k-sef {
    display: inline;
  }

  .hs .hsa-bform:has(select[name='kind'] option[value='sefer_torah_burial']:checked) .hsa-k-per,
  .hs .hsa-bform:has(select[name='kind'] option[value='sefer_torah_burial']:checked) .hsa-k-perfield {
    display: none;
  }

  .hs .hsa-bform:has(select[name='kind'] option[value='person']:checked) .hsa-k-sef {
    display: none;
  }

  .hs .hsa-bform:has(select[name='kind'] option[value='person']:checked) .hsa-k-per {
    display: inline;
  }

  .hs .hsa-bform:has(select[name='kind'] option[value='person']:checked) .hsa-k-perfield {
    display: block;
  }
}

/* Plot statuses on a section's sheet (V-36). */
.hs .hsa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: var(--hs-fs-min);
  color: var(--hs-muted);
}

.hs .hsa-legend__i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hs .hsa-legend__i b {
  color: var(--hs-ink);
  font-variant-numeric: tabular-nums;
}

.hs .hsa-legend__sw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  border: 1px solid var(--hs-line);
  border-radius: 3px;
  background: var(--hs-surface);
  font-size: var(--hs-fs-min);
  font-weight: 700;
}

.hs .hsa-legend__i--reserved .hsa-legend__sw,
.hs .hsa-sq--reserved {
  background: #fbf5e6;
  color: #7a5a14;
}

.hs .hsa-legend__i--sold .hsa-legend__sw,
.hs .hsa-sq--sold {
  background: #eef1f6;
  color: #3d4a63;
}

.hs .hsa-legend__i--occupied .hsa-legend__sw {
  background: var(--hs-accent-soft);
}

.hs .hsa-sq--stale {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 4px,
    rgba(122, 90, 20, 0.12) 4px 6px
  );
}

.hs .hsa-sq__b {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--hs-fs-min);
  font-weight: 700;
  cursor: pointer;
}

.hs .hsa-sq__b:hover,
.hs .hsa-sq__b:focus-visible {
  background: var(--hs-accent-soft);
  outline: 2px solid var(--hs-accent);
  outline-offset: -2px;
}

.hs .hsa-edits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.hs .hsa-edit {
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid var(--hs-line);
}

.hs .hsa-grid--two {
  grid-template-columns: minmax(0, 1fr);
}

/* A preview the server answered with (a sheet, plot statuses, an import). */
.hs .hsa-preview:empty {
  display: none;
}

.hs .hsa-pv {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--hs-line-2);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
  font-size: 14px;
}

.hs .hsa-pv__sum {
  max-inline-size: var(--hs-prose-max); /* fullbleed-ok: a sentence, capped for reading */
  font-weight: 600;
}

.hs .hsa-pv__bads,
.hs .hsa-pv__notes {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 18px;
}

.hs .hsa-pv__bads {
  color: var(--hs-red);
}

.hs .hsa-pv__notes {
  color: var(--hs-muted);
}

.hs .hsa-pv__svg {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
}

.hs .hsa-pv__outline {
  fill: var(--hs-accent-soft);
  stroke: var(--hs-accent);
}

.hs .hsa-pv__cell {
  fill: var(--hs-muted);
  opacity: 0.45;
}

.hs .hsa-pv__dot {
  fill: var(--hs-red);
  stroke: #fff;
}

.hs .hsa-pv__dot.is-off {
  display: none;
}

.hs .hsa-pv__tablewrap {
  position: relative;
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
}

.hs .hsa-pv__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hs-fs-min);
}

.hs .hsa-pv__table th,
.hs .hsa-pv__table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--hs-line);
  text-align: left;
  vertical-align: top;
}

.hs .hsa-pv__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--hs-bg);
  color: var(--hs-muted);
  font-weight: 600;
}

.hs .hsa-pv__table tr.is-bad td {
  background: var(--hs-red-soft);
}

.hs .hsa-pv__said span {
  display: block;
}

.hs .hsa-pv__bad {
  color: var(--hs-red);
  font-weight: 600;
}

.hs .hsa-pv__note {
  color: var(--hs-muted);
}

.hs .hsa-pv__good {
  color: var(--hs-green);
  font-weight: 600;
}

/* Settings: the calendar card spans the row; its preview tables highlight the option chosen. */
.hs .hsa-card--wide {
  grid-column: 1 / -1;
}

.hs .hsa-impact {
  position: relative;
  overflow: auto;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
}

.hs .hsa-impact__t {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hs-fs-min);
}

.hs .hsa-impact__t th,
.hs .hsa-impact__t td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--hs-line);
  text-align: left;
  vertical-align: top;
}

.hs .hsa-impact__t thead th {
  background: var(--hs-bg);
  color: var(--hs-muted);
  font-weight: 600;
}

.hs .hsa-impact__t td span {
  display: block;
}

.hs .hsa-impact__yr {
  color: var(--hs-muted);
  font-weight: 400;
}

.hs .hsa-impact__light {
  color: var(--hs-muted);
}

/* Settings' preview tables in a narrow place (1.8.0, audit R7): one card per burial. The table answers
   its own width (a container query), not the screen's: under 760 px its four choices squeezed the dates
   to 31-56 px on a phone and about 100 px on a tablet, a word or two a line. A card names the burial,
   then each choice (its words from the cell's data-label) with its dates under it, side by side while
   each keeps 170 px; the choice the box holds stays highlighted, as in the table. */
.hs .hsa-impact {
  container: hsa-impact / inline-size;
}

@container hsa-impact (max-width: 759.98px) {
  .hs .hsa-impact__t thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hs .hsa-impact__t,
  .hs .hsa-impact__t tbody,
  .hs .hsa-impact__t tr,
  .hs .hsa-impact__t th,
  .hs .hsa-impact__t td {
    display: block;
    width: 100%;
  }

  /* a card: the burial across the top, the choices side by side while each keeps 170 px, else one
     under the other */
  .hs .hsa-impact__t tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    padding: 4px 0 6px;
    border-bottom: 1px solid var(--hs-line);
  }

  .hs .hsa-impact__t tbody th {
    grid-column: 1 / -1;
  }

  .hs .hsa-impact__t tr:last-child {
    border-bottom: 0;
  }

  .hs .hsa-impact__t th,
  .hs .hsa-impact__t td {
    padding: 4px 10px;
    border-bottom: 0;
  }

  .hs .hsa-impact__t tbody th {
    font-size: 14px;
  }

  .hs .hsa-impact__t td::before {
    content: attr(data-label);
    display: block;
    color: var(--hs-muted);
    font-weight: 400;
  }
}

.hs .hsa-impacts[data-adar='II+I'] [data-rule='adar'][data-opt='II+I'],
.hs .hsa-impacts[data-adar='II'] [data-rule='adar'][data-opt='II'],
.hs .hsa-impacts[data-adar='I'] [data-rule='adar'][data-opt='I'],
.hs .hsa-impacts[data-adar='both'] [data-rule='adar'][data-opt='both'],
.hs .hsa-impacts[data-thirtieth='first-anniversary'] [data-rule='thirtieth'][data-opt='first-anniversary'],
.hs .hsa-impacts[data-thirtieth='next-month'] [data-rule='thirtieth'][data-opt='next-month'] {
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
  font-weight: 600;
}

@supports selector(:has(*)) {
  .hs .hsa-cal:has(select[name='adarInLeapYear'] option[value='II+I']:checked) [data-rule='adar'][data-opt='II+I'],
  .hs .hsa-cal:has(select[name='adarInLeapYear'] option[value='II']:checked) [data-rule='adar'][data-opt='II'],
  .hs .hsa-cal:has(select[name='adarInLeapYear'] option[value='I']:checked) [data-rule='adar'][data-opt='I'],
  .hs .hsa-cal:has(select[name='adarInLeapYear'] option[value='both']:checked) [data-rule='adar'][data-opt='both'],
  .hs .hsa-cal:has(select[name='missingThirtieth'] option[value='first-anniversary']:checked) [data-rule='thirtieth'][data-opt='first-anniversary'],
  .hs .hsa-cal:has(select[name='missingThirtieth'] option[value='next-month']:checked) [data-rule='thirtieth'][data-opt='next-month'] {
    background: var(--hs-accent-soft);
    color: var(--hs-accent-ink);
    font-weight: 600;
  }
}

.hs .hsa-radios--stack {
  flex-direction: column;
  align-items: flex-start;
}

.hs .hsa-sitephoto {
  margin: 8px 0 0;
}

.hs .hsa-sitephoto img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
}

/* The import page. */
.hs .hsa-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.hs .hsa-import__help .hsa-text,
.hs .hsa-import__help .hsa-list {
  max-inline-size: var(--hs-prose-max); /* fullbleed-ok: help text, capped for reading */
}

.hs .hsa-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

/* ── the Team page (v3, V-19) and the version line (V-45) ────────────── */

.hs .hsa-ver {
  margin-top: 24px;
  font-variant-numeric: tabular-nums;
}

.hs .hsa-invite {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.hs .hsa-invite input[readonly] {
  font-size: var(--hs-fs-min);
  background: var(--hs-bg);
}

.hs .hsa-table--team .hsa-actions .hsa-select {
  width: auto;
  min-width: 7.5em;
}

.hs .hsa-team > .hsa-two {
  align-items: start;
}

/* Touch screens: every new button is a 44px target. */
@media (pointer: coarse) {
  .hs .hsa-edit .hs-btn,
  .hs .hsa-pv .hs-btn,
  .hs .hsa-import .hs-btn,
  .hs .hsa-card .hs-btn {
    min-height: var(--hs-tap);
  }

  .hs .hsa-sq__b {
    min-height: 32px;
  }
}

/* ── PHONE only (< 700px): tables become cards, one panel at a time ──── */

@media (max-width: 699.98px) {
  /* The import preview: one card a line. */
  .hs .hsa-pv__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hs .hsa-pv__table,
  .hs .hsa-pv__table tbody,
  .hs .hsa-pv__table tr,
  .hs .hsa-pv__table td {
    display: block;
    width: 100%;
  }

  .hs .hsa-pv__table tr {
    padding: 6px 4px;
    border-bottom: 1px solid var(--hs-line);
  }

  .hs .hsa-pv__table td {
    display: flex;
    gap: 8px;
    padding: 1px 0;
    border: 0;
  }

  .hs .hsa-pv__table td::before {
    content: attr(data-label);
    flex: none;
    width: 96px;
    color: var(--hs-muted);
  }

  .hs .hsa-pv__table td:empty {
    display: none;
  }

  .hs .hsa-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hs .hsa-table,
  .hs .hsa-table tbody,
  .hs .hsa-table tr,
  .hs .hsa-table td {
    display: block;
    width: 100%;
  }

  .hs .hsa-table tr {
    padding: 8px 2px;
    border-bottom: 1px solid var(--hs-line);
  }

  .hs .hsa-table td {
    display: flex;
    gap: 8px;
    padding: 2px 0;
    border: 0;
  }

  .hs .hsa-table td:not(:first-child)::before {
    content: attr(data-label);
    flex: none;
    width: 112px;
    color: var(--hs-muted);
    font-size: 12px;
  }

  .hs .hsa-table td[data-label='Photos'] {
    display: none;
  }

  /* the Inbox: the list, or the open item */
  .hs .hsa-split--inbox.has-open > .hsa-split__side,
  .hs .hsa-split--inbox:not(.has-open) > .hsa-split__main {
    display: none;
  }

  .hs .hsa-head__actions {
    width: 100%;
  }

  /* the Dashboard: two tiles a row, an odd last one full width */
  .hs .hsa-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* the Team page: the role, Save role and Deactivate one under the other */
  .hs .hsa-table--team td[data-label='Change'] {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── TABLET and up (>= 700px) ─────────────────────────────────────────── */

@media (min-width: 700px) {
  .hs .hsa-top__bar {
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  }

  .hs .hsa-brand {
    min-height: 56px;
  }

  .hs .hsa-tabs {
    margin: 0 calc(-1 * max(20px, env(safe-area-inset-left)));
  }

  .hs .hsa-tabs__list {
    padding: 0 12px;
  }

  .hs .hsa-me__site,
  .hs .hsa-me__who {
    display: flex;
  }

  .hs .hsa-main {
    padding: 18px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left));
  }

  /* the Dashboard's five tiles: three, then two (six tracks; no tile sits alone) */
  .hs .hsa-tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hs .hsa-tile {
    grid-column: span 2;
  }

  .hs .hsa-tile:nth-child(n + 4) {
    grid-column: span 3;
  }

  .hs .hsa-two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hs .hsa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs .hsa-filters {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
  }

  .hs .hsa-filters .hsa-field--grow {
    grid-column: auto;
  }

  .hs .hsa-filters__go {
    grid-column: auto;
  }

  .hs .hsa-split {
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  }

  .hs .hsa-split--list,
  .hs .hsa-split--inbox {
    grid-template-columns: minmax(240px, 2fr) minmax(0, 3fr);
  }

  .hs .hsa-split--list > .hsa-split__side,
  .hs .hsa-split--inbox > .hsa-split__side {
    grid-row: 1;
    grid-column: 1;
  }

  .hs .hsa-split--list > .hsa-split__main,
  .hs .hsa-split--inbox > .hsa-split__main {
    grid-row: 1;
    grid-column: 2;
  }

  .hs .hsa-seclist {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs .hsa-sec .hsa-chip {
    display: inline-flex;
  }

  .hs .hsa-back {
    display: none;
  }

  .hs .hsa-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs .hsa-call {
    display: none;
  }

  .hs .hsa-seclist__people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs .hsa-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs .hsa-import {
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  }

  /* An address in a table's column stays on one line, as before 1.8.0: its break points (HsaEmail
     1.3.0, <wbr>, which Chrome honours even in nowrap) would let the table narrow its column and split
     it. On a phone the rows are cards and an address that has to break does so before its '@' or a '.'. */
  .hs .hsa-table .hsa-email {
    white-space: nowrap;
  }

  .hs .hsa-table .hsa-email wbr {
    display: none;
  }
}

/* ── COMPUTER (>= 1200px): one header row; the page fits the screen ──── */

@media (min-width: 1200px) {
  .hs .hsa-top__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'brand tabs me';
    column-gap: 24px;
    padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  }

  .hs .hsa-brand {
    min-height: 60px;
  }

  .hs .hsa-tabs {
    margin: 0;
    border-top: 0;
    align-self: stretch;
  }

  .hs .hsa-tabs__list {
    height: 100%;
    padding: 0;
  }

  .hs .hsa-tab {
    height: 100%;
    min-height: 60px;
  }

  .hs .hsa-main {
    padding: 20px max(24px, env(safe-area-inset-right)) 28px max(24px, env(safe-area-inset-left));
  }

  .hs .hsa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs .hsa-split {
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    gap: 18px;
  }

  .hs .hsa-split--list {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .hs .hsa-split--inbox {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  }

  /* Long lists scroll inside their panel: the page itself fits the screen. */
  .hs .hsa-tablewrap {
    max-height: calc(100vh - 330px);
    overflow: auto;
  }

  .hs .hsa-split--inbox > .hsa-split__side,
  .hs .hsa-split--inbox > .hsa-split__main,
  .hs .hsa-split--list > .hsa-split__side {
    max-height: calc(100vh - 210px);
    overflow: auto;
  }

  .hs .hsa-split--list > .hsa-split__main {
    max-height: calc(100vh - 170px);
    overflow: auto;
  }

  .hs .hsa-split:not(.hsa-split--list):not(.hsa-split--inbox) > .hsa-split__side {
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding-right: 2px;
  }

  .hs .hsa-card .hsa-form {
    gap: 10px;
  }

  .hs .hsa-textarea--addr {
    min-height: 50px;
  }

  .hs .hsa-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hs .hsa-seclist__people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs .hsa-tile__n {
    font-size: 28px;
  }

  /* the Dashboard: every tile on one row (auto-fit, so a sixth tile would still fit) */
  .hs .hsa-tiles {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .hs .hsa-tiles .hsa-tile {
    grid-column: auto;
  }

  /* Under a section's sheet: Mark plots beside The sheet. */
  .hs .hsa-edits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The calendar's three boxes side by side; the 3-column form grid would crowd two. */
  .hs .hsa-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs .hsa-import {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  }
}

/* A very large screen (wave 1's step): the import's help and the edits get room. */
@media (min-width: 1800px) {
  .hs .hsa-import {
    grid-template-columns: minmax(0, 3fr) minmax(var(--hs-side-w), 1fr);
  }
}

/* A burial's page on a wide computer: the form keeps its three columns, the side gets room. */
@media (min-width: 1440px) {
  .hs .hsa-split:not(.hsa-split--list):not(.hsa-split--inbox) {
    grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr);
  }
}

/* ── The Sections page (1.9.0, audit R8): the sections a strip, the boxes the whole width ──────────
   app/harshalom/admin/sections/page.tsx 1.3.0. The page keeps hsa-split--list's markup; these rules
   come after the tablet and computer blocks so they win there (same weight, later). */

.hs .hsa-split--list.hsa-split--sections {
  grid-template-columns: minmax(0, 1fr);
}

.hs .hsa-split--sections > .hsa-split__side,
.hs .hsa-split--sections > .hsa-split__main {
  grid-row: auto;
  grid-column: auto;
  max-height: none;
  overflow: visible;
}

.hs .hsa-secstrip__h {
  margin: 0 0 8px;
  color: var(--hs-ink);
  font-size: 14px;
  font-weight: 700;
}

.hs .hsa-secstrip__sub {
  color: var(--hs-muted);
  font-weight: 400;
}

.hs .hsa-split--sections .hsa-seclist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* a section's button: its number in the square, its burials beside it (its name read aloud and in
   its title); a Yiddish name, when a section has one, beside them */
.hs .hsa-split--sections .hsa-sec {
  position: relative;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-color: var(--hs-line);
  background: var(--hs-surface);
}

.hs .hsa-split--sections .hsa-sec:hover {
  background: var(--hs-accent-soft);
}

.hs .hsa-split--sections .hsa-sec[aria-current='true'] {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  box-shadow: inset 0 0 0 1px var(--hs-accent);
}

.hs .hsa-split--sections .hsa-sec__txt {
  display: contents;
}

.hs .hsa-split--sections .hsa-sec__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hs .hsa-split--sections .hsa-sec__n {
  margin-left: 0;
  font-size: 14px;
}

/* The boxes' frame: shaded at the side that has more past it (admin.js 1.10.0 marks the scroller
   data-hsa-more), over the boxes and never over their scrollbars' use (it takes no clicks). */
.hs .hsa-bxframe {
  position: relative;
  margin: 0 0 12px;
}

.hs .hsa-bxframe > .hsa-bxwrap {
  margin: 0;
}

.hs .hsa-bxframe::before,
.hs .hsa-bxframe::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 4;
  width: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.hs .hsa-bxframe::before {
  left: 1px;
  border-radius: var(--hs-r) 0 0 var(--hs-r);
  background: linear-gradient(to left, rgba(31, 58, 46, 0), rgba(31, 58, 46, 0.18));
}

.hs .hsa-bxframe::after {
  right: 1px;
  border-radius: 0 var(--hs-r) var(--hs-r) 0;
  background: linear-gradient(to right, rgba(31, 58, 46, 0), rgba(31, 58, 46, 0.18));
}

.hs .hsa-bxframe:has(> .hsa-bxwrap[data-hsa-more~='left'])::before,
.hs .hsa-bxframe:has(> .hsa-bxwrap[data-hsa-more~='right'])::after {
  opacity: 1;
}

/* the line that says so, only while the boxes scroll sideways */
.hs .hsa-bxmore {
  display: none;
  color: var(--hs-ink);
  font-weight: 600;
}

.hs .hsa-bxpanel:has(.hsa-bxwrap[data-hsa-more]) .hsa-bxmore {
  display: inline;
}

/* ── The Sections page on one screen (1.11.0, O2-2; the owner's rule of 30 Oct 2026: a computer page is
   one screen, what is long scrolls inside its own frame) ─────────────────────────────────────────────
   Under the boxes, a tray of disclosures: Mark plots, the section's burials, the graves on no surveyed
   plot, the old row/plot sheet (sections/page.tsx 1.5.0). Ticking "Tap plots to add them to Mark
   plots" opens Mark plots (admin.js 1.11.0). On a phone they stack; on a tablet two a row. */
.hs .hsa-tray {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
}

.hs .hsa-tray__i {
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
}

.hs .hsa-tray__i[open] {
  padding-bottom: 12px;
}

.hs .hsa-tray__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  min-height: 44px;
  color: var(--hs-accent-ink);
  font-weight: 700;
  cursor: pointer;
}

.hs .hsa-tray__n {
  color: var(--hs-muted);
  font-weight: 400;
}

/* the old sheet keeps its own box; in the tray it sits like the others */
.hs .hsa-tray .hsa-oldsheet {
  padding-top: 0;
}

/* Mark plots' form under its summary: no second line above it */
.hs .hsa-tray__i > .hsa-edit {
  padding-top: 0;
  border-top: 0;
}

/* a list in a narrow tray box: one column */
.hs .hsa-tray .hsa-seclist__people {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .hs .hsa-tray {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A computer (from 1024 px, on a screen): the page is one screen. The header, the page's title row and
   the sections strip keep their height; the chosen section's panel takes the rest; in it the boxes'
   frame takes what the title, the key and the tray leave, and scrolls inside itself both ways (its
   rows and plot numbers held, sections.css; shaded at the side that has more, above). An open tray box
   takes what it needs up to half the panel, and less where the boxes would get under 160 px; the tray
   then scrolls inside itself. The frame
   keeps the panel's whole width, so the boxes are as wide as before. If a window is shorter than all
   that, the page's main part scrolls inside itself: nothing is ever out of reach. */
@media screen and (min-width: 1024px) {
  .hs.hsa:has(.hsa-split--sections) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .hs.hsa:has(.hsa-split--sections) > .hsa-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 8px;
    overflow: auto;
  }

  .hs .hsa-main > .hsa-split--sections {
    flex: 1 1 auto;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    gap: 10px;
  }

  .hs .hsa-main:has(> .hsa-split--sections) > .hsa-head {
    margin-bottom: 10px;
  }

  .hs .hsa-main:has(> .hsa-split--sections) > .hsa-ver {
    margin-top: 6px;
  }

  /* the strip: its two-line label beside the buttons, not a line above them */
  .hs .hsa-split--sections > .hsa-split__side {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    padding: 8px 12px;
  }

  .hs .hsa-split--sections .hsa-secstrip__h {
    flex: none;
    max-width: 15em;
    margin: 0;
    line-height: 1.3;
  }

  .hs .hsa-split--sections .hsa-secstrip__sub {
    display: block;
    font-size: 13px;
  }

  .hs .hsa-split--sections > .hsa-split__side > .hsa-seclist {
    flex: 1 1 0;
    min-width: 0;
  }

  /* the chosen section's panel: its own frame */
  .hs .hsa-split--sections > .hsa-split__main {
    min-height: 0;
    overflow: auto;
  }

  .hs .hsa-split--sections > .hsa-bxpanel {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hs .hsa-bxpanel > .hsa-panel__top,
  .hs .hsa-bxpanel > .hsa-bxkey,
  .hs .hsa-bxpanel > .hsa-bxhow {
    flex: none;
  }

  .hs .hsa-bxpanel > .hsa-bxframe {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 160px;
    margin-bottom: 8px;
  }

  .hs .hsa-bxpanel > .hsa-bxframe > .hsa-bxwrap {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
  }

  .hs .hsa-bxpanel > .hsa-tray {
    flex: 0 1 auto;
    min-height: calc(var(--hs-tap) + 2px);
    max-height: 50%;
    overflow: auto;
    overscroll-behavior: contain;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
  }

  /* Mark plots has the most to show: two shares of the row */
  .hs .hsa-bxpanel > .hsa-tray > .hsa-tray__mark {
    grid-column: span 2;
  }
}

/* A narrower computer (1.7.0, audit R9): the tabs a little tighter and the header's gaps 16px, so every
   tab fits beside the mark and the name (the owner's 1247 px window hid 53 px, the first tab read
   "board"). From 1440px, as before. */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .hs .hsa-top__bar {
    column-gap: 16px;
  }

  .hs .hsa-tab {
    padding: 0 8px;
  }
}

@media print {
  .hs .hsa-top,
  .hs .hsa-head__actions,
  .hs .hsa-form button {
    display: none;
  }

  /* 1.10.0: paper keeps sections.css's one-page sheet: no widened row, the overlay line its small size */
  .hs.hsa .hsa-bxwrap--cols .hs-bx {
    min-width: 0;
  }

  .hs.hsa .hsa-bxwrap--cols .hs-bx col {
    width: auto !important;
  }

  .hs .hs-bx__o {
    font-size: 5.5pt;
  }

  /* 1.11.0 (O2-4): nothing scrolls on paper, so neither the line that says to scroll sideways nor the
     frame's shade is printed (the frame keeps data-hsa-more from the screen) */
  .hs .hsa-bxmore,
  .hs .hsa-bxpanel:has(.hsa-bxwrap[data-hsa-more]) .hsa-bxmore {
    display: none;
  }

  .hs .hsa-bxframe::before,
  .hs .hsa-bxframe::after {
    display: none;
  }
}

/* ── 1.13.0 (0.018-phone): one thing to do = one big button; its form only once pressed ───────────
   parts.tsx HsaAct: <details class="hsa-act" name="hsa-act"><summary class="hsa-act__btn">…</summary>
   <div class="hsa-act__body">the form</div></details>. Closed at load on every screen; one open at a
   time (the browser's own `name` group; admin.js 1.13.0 where a browser does not know it). */

.hs .hsa-act {
  margin: 8px 0 0;
  border: 1px solid var(--hs-line-2);
  border-radius: 10px;
  background: var(--hs-surface);
}

.hs .hsa-act__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--hs-tap);
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--hs-accent-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.hs .hsa-act__btn::-webkit-details-marker {
  display: none;
}

.hs .hsa-act__btn::marker {
  content: '';
}

/* its sign at the end: › to open, × to close (the words stay the title alone) */
.hs .hsa-act__btn::after {
  content: '\203A';
  flex: none;
  margin-left: auto;
  color: var(--hs-accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.hs .hsa-act[open] > .hsa-act__btn {
  border-bottom: 1px solid var(--hs-line);
  border-radius: 9px 9px 0 0;
  background: var(--hs-accent-soft);
}

.hs .hsa-act[open] > .hsa-act__btn::after {
  content: '\00D7';
}

.hs .hsa-act__btn:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

.hs .hsa-act__body {
  padding: 12px 14px 14px;
}

.hs .hsa-act__body > .hsa-form:first-child,
.hs .hsa-act__body > .hsa-text:first-child {
  margin-top: 0;
}

/* a lesser one ("Go to another plot"): the same size, quieter */
.hs .hsa-act--quiet {
  border-style: dashed;
}

.hs .hsa-act--quiet > .hsa-act__btn {
  color: var(--hs-ink);
  font-weight: 600;
}

/* Cancel is a script's button: shown once admin.js runs (it marks the office's root) */
.hs.hsa:not([data-hsa-js]) .hsa-act__cancel {
  display: none;
}

/* a mouse: the row answers the pointer */
@media (hover: hover) {
  .hs .hsa-act__btn:hover {
    background: var(--hs-accent-soft);
  }
}

/* a finger: 48 px rows */
@media (pointer: coarse) {
  .hs .hsa-act__btn {
    min-height: 48px;
  }
}

/* a card's read-out of what is set now, above its Change button */
.hs .hsa-act-now {
  margin-top: 4px;
}

/* a form opened under its button keeps no separating line of its own */
.hs .hsa-act__body > .hsa-upload {
  padding-top: 0;
  border-top: 0;
}

/* a seat's "Change the role" in People: the button its cell's width */
.hs .hsa-act--cell {
  margin: 0;
}

/* the Sections page on a phone: the survey's boxes once asked for (:target on the panel, no script) */
.hs .hsa-bxshow,
.hs .hsa-bxhide {
  display: none;
}

@media (max-width: 699.98px) {
  .hs .hsa-bxpanel:not(:target) > .hsa-bxframe,
  .hs .hsa-bxpanel:not(:target) > .hsa-bxhow {
    display: none;
  }

  .hs .hsa-bxpanel:not(:target) > .hsa-bxshow {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: var(--hs-tap);
    margin: 10px 0 2px;
    white-space: normal;
    text-align: left;
  }

  .hs .hsa-bxpanel:not(:target) > .hsa-bxshow::after {
    content: '\203A';
    margin-left: 8px;
    font-size: 22px;
    line-height: 1;
  }

  .hs .hsa-bxpanel:target > .hsa-bxhide {
    display: inline-flex;
    align-items: center;
    min-height: var(--hs-tap);
    color: var(--hs-accent);
    font-weight: 600;
  }
}

/* ── Tefilos (v3.1, lane C): app/harshalom/admin/tefilos/page.tsx ─────────── */

.hs .hsa-tf-rows > li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs .hsa-tf-row__main {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 8px;
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-tf-row__main:hover,
.hs .hsa-tf-row__main[aria-current='true'] {
  background: var(--hs-accent-soft);
}

.hs .hsa-tf-row__main[aria-current='true'] {
  box-shadow: inset 3px 0 0 var(--hs-accent);
}

.hs .hsa-tf-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-tf-row__acts {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: 50%;
}

.hs .hsa-tf-row__acts .hsa-msg {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--hs-fs-min, 13px);
  text-align: right;
}

.hs .hsa-tf-row__acts .hsa-msg:empty {
  display: none;
}

.hs .hsa-tf-move {
  min-width: 36px;
  font-size: 16px;
}

.hs .hsa-tf-names {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.hs .hsa-tf-names__en {
  font-weight: 600;
}

.hs .hsa-tf-names__he {
  color: var(--hs-accent-ink);
  font-family: var(--hs-serif);
  font-size: 1.1em;
}

.hs .hsa-tf-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hs .hsa-tf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.hs .hsa-tf-body {
  min-height: 260px;
  font-family: var(--hs-serif);
  font-size: 20px;
  line-height: 1.9;
}

.hs .hsa-tf-standing .hsa-actions,
.hs .hsa-tf-fileoff {
  flex-wrap: wrap;
}

.hs .hsa-tf-fileoff {
  margin-top: 8px;
}

/* the preview draws the public reading pane: a quiet frame around it */
.hs .hsa-tf-preview .tf-doc {
  border-style: dashed;
  box-shadow: none;
}

@media (min-width: 700px) {
  .hs .hsa-tf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699.98px), (pointer: coarse) {
  .hs .hsa-tf-move {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ── Dispatch & Field + Section Criteria & Masked Blocks (0.020) ─────────── */

.hs .hsa-bx--masked {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(241, 245, 249, 0.72) 0px,
    rgba(241, 245, 249, 0.72) 5px,
    rgba(51, 65, 85, 0.22) 5px,
    rgba(51, 65, 85, 0.22) 9px
  );
  outline: 2px solid #334155;
  outline-offset: -2px;
}

.hs .hsa-seccrit {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: var(--hs-r);
  background: #f8faf8;
}

.hs .hsa-seccrit__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
}

.hs .hsa-seccrit__blocks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
}

.hs .hsa-seccrit__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-ink);
  font-size: 13px;
  text-decoration: none;
}

.hs .hsa-seccrit__chip--society {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hsa-seccrit__chip--family {
  border-color: #7c3aed;
  background: #faf5ff;
}

.hs .hsa-seccrit__chip--masked {
  border-color: #334155;
  background: #f1f5f9;
  font-weight: 600;
}

.hs .hsa-dsp {
  display: grid;
  gap: 14px;
}

.hs .hsa-dsp__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hs .hsa-dsp__body {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  }
}

.hs .hsa-dsp__side,
.hs .hsa-dsp__main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hs .hsa-dsp__list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-dsp__item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hsa-dsp__item:hover,
.hs .hsa-dsp__item.is-active {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hsa-dsp__item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hs .hsa-dsp__item-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-dsp__rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-dsp__stage {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  font-size: 13px;
}

.hs .hsa-dsp__stage.is-done {
  border-color: #bfdfcb;
  background: var(--hs-green-soft);
}

.hs .hsa-dsp__stage.is-now {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  box-shadow: 0 0 0 2px rgba(27, 94, 58, 0.14);
}

.hs .hsa-dsp__stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hs-bg);
  color: var(--hs-accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.hs .hsa-dsp__stage.is-done .hsa-dsp__stage-num {
  background: var(--hs-surface);
  color: var(--hs-green);
}

.hs .hsa-dsp__stage-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hs .hsa-dsp__stage-phase {
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-dsp__clock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.hs .hsa-dsp__clock-row {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: #fbfaf7;
  font-size: 14px;
}

.hs .hsa-dsp__clock-row span {
  color: var(--hs-muted);
  font-size: 13px;
}

.hs .hsa-dsp__crew {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hs .hsa-dsp__crew-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: var(--hs-surface);
  font-size: 14px;
}

/* 0.024: Per-Grave Schedules & Reminders */
.hs .hsa-sched-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hs .hsa-sched__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hs .hsa-sched__alert {
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 8px;
  border: 1px solid var(--hs-line);
  background: var(--hs-accent-soft);
}

.hs .hsa-sched__alert--overdue {
  border-color: var(--hs-danger);
  background: var(--hs-danger-soft);
}

.hs .hsa-sched__alert-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hs .hsa-sched__alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-ink);
}

.hs .hsa-sched__alert-sub,
.hs .hsa-sched__allok {
  margin: 0;
  font-size: 14px;
  color: var(--hs-muted);
}

.hs .hsa-sched__list {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hs .hsa-sched__item {
  padding: 10px 12px;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: var(--hs-surface);
}

.hs .hsa-sched__item--done {
  background: #fbfaf7;
}

.hs .hsa-sched__item--overdue {
  border-color: var(--hs-danger);
}

.hs .hsa-sched__item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hs .hsa-sched__item-lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-ink);
}

.hs .hsa-sched__item-when {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-accent-ink);
}

.hs .hsa-sched__item-rem {
  margin-top: 2px;
  font-size: 13px;
  color: var(--hs-muted);
}

.hs .hsa-sched__checks {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: #fbfaf7;
}

.hs .hsa-sched__checks-sum {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .hsa-sched__checks-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.hs .hsa-sched-board {
  display: grid;
  gap: 16px;
}

.hs .hsa-sched-cards {
  display: grid;
  gap: 12px;
}

.hs .hsa-sched-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hs .hsa-sched-card__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.hs .hsa-sched-card__name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.hs .hsa-sched-card__sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--hs-muted);
}

.hs .hsa-sched-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 0.025: Office Cemetery Walkthrough Uploader, Phone Stitcher & Compass Calibrator ── */
.hs .hsa-wt {
  display: grid;
  gap: 18px;
}

.hs .hsa-wt__lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}

.hs .hsa-wt__card {
  display: grid;
  gap: 10px;
}

.hs .hsa-wt__phone {
  display: grid;
  gap: 12px;
}

.hs .hsa-wt__ph-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.hs .hsa-wt__compass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hs .hsa-wt__shot {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1.5px dashed var(--hs-line);
  border-radius: 10px;
  background: var(--hs-surface);
  cursor: pointer;
  text-align: center;
}

.hs .hsa-wt__shot:hover {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hsa-wt__shot.is-ready {
  border-style: solid;
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hsa-wt__shot-lbl {
  font-weight: 700;
  font-size: 14px;
  color: var(--hs-ink);
}

.hs .hsa-wt__shot-state {
  font-size: 12px;
  color: var(--hs-muted);
}

.hs .hsa-wt__stitch-preview {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--hs-line);
}

.hs .hsa-wt__cal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .hs .hsa-wt__cal-grid {
    grid-template-columns: 1fr;
  }
}

.hs .hsa-wt__cal-view {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--hs-line);
  background: linear-gradient(180deg, #d7e8f6 0%, #eef3ec 50%, #c8d9bd 100%);
}

.hs .hsa-wt__cal-pano {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 200% auto;
  background-position: 50% 50%;
}

.hs .hsa-wt__cal-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: var(--hs-ink);
}

.hs .hsa-wt__cal-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hs .hsa-wt__cal-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid var(--hs-accent);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.hs .hsa-wt__slider {
  width: 100%;
  accent-color: var(--hs-accent);
}

/* ── Release 0.029: Office Edit Safety Standard & Undo (Rules 1-7) ── */

.hs.hsa [hidden] {
  display: none !important;
}

.hs.hsa .hsa-top-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.hs.hsa .hsa-whats-new {
  padding: 8px 12px;
  border-radius: var(--hs-r);
  border: 1px solid #bcd4c2;
  background: #f2f8f3;
  color: var(--hs-ink);
  font-size: 14px;
  line-height: 1.4;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hs.hsa .hsa-undo-bar {
  padding: 8px 12px;
  border-radius: var(--hs-r);
  border: 1.5px solid #c5b482;
  background: #fdf8ea;
  color: var(--hs-ink);
  min-width: 0;
  max-width: 100%;
}

.hs.hsa .hsa-undo-bar[data-just-saved='1'] {
  border-color: #2f7a47;
  background: #eaf7ee;
  box-shadow: 0 2px 10px rgba(47, 122, 71, 0.14);
}

.hs.hsa .hsa-undo-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

.hs.hsa .hsa-undo-bar__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b4714;
}

.hs.hsa .hsa-undo-bar[data-just-saved='1'] .hsa-undo-bar__title {
  color: #1f5b33;
}

.hs.hsa .hsa-undo-bar__btn {
  min-height: 40px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 1.35;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  font-weight: 700;
  background: #ffffff;
  border-color: #b7a165;
  color: var(--hs-ink);
  text-align: left;
}

.hs.hsa .hsa-undo-bar__btn:hover {
  background: #fffdf5;
  border-color: #8c7432;
}

/* Read-only View Mode (Rule 1) */
.hs.hsa .hsa-ve__dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 16px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: var(--hs-r);
  border: 1px solid var(--hs-line);
  background: #fbfcfa;
}

.hs.hsa .hsa-ve__item {
  min-width: 0;
}

.hs.hsa .hsa-ve__item--wide {
  grid-column: 1 / -1;
}

.hs.hsa .hsa-ve__dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hs-muted);
  margin: 0 0 2px;
}

.hs.hsa .hsa-ve__dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--hs-ink);
  line-height: 1.35;
  overflow-wrap: break-word;
}

.hs.hsa .hsa-ve__rtl {
  display: inline-block;
  font-family: var(--hs-serif);
  font-size: 18px;
}

.hs.hsa .hsa-ve__empty {
  color: var(--hs-muted);
  font-weight: 400;
}

.hs.hsa .hsa-ve__bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs.hsa .hsa-ve__open {
  min-width: 148px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
}

/* Coloured Editing bar (Rule 2) — inside HsaViewEdit and opened PATCH HsaAct disclosures */
.hs.hsa .hsa-editing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--hs-r);
  border: 1.5px solid #d99b26;
  background: #fff6de;
  color: #5a3b00;
}

.hs.hsa .hsa-editing-bar__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #c77d0a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hs.hsa .hsa-editing-bar__txt {
  font-size: 14px;
  font-weight: 600;
}

.hs.hsa details[data-hsa-act][open] > .hsa-act__body:has(form[data-method='PATCH'])::before {
  content: 'Editing · Review your changes, then press Save or Cancel.';
  display: block;
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: var(--hs-r);
  border: 1.5px solid #d99b26;
  background: #fff6de;
  color: #5a3b00;
  font-size: 13.5px;
  font-weight: 700;
}

/* Save asks first — diff confirmation & red zero-word-overlap warning (Rule 4) */
.hs.hsa .hsa-diff-confirm {
  margin-top: 14px;
}

.hs.hsa .hsa-diff-confirm__box {
  padding: 14px 16px;
  border-radius: var(--hs-r);
  border: 2px solid var(--hs-accent);
  background: #f8fbf8;
}

.hs.hsa .hsa-diff-confirm__h {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-ink);
}

.hs.hsa .hsa-diff-confirm__list {
  margin: 0 0 12px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.hs.hsa .hsa-diff-confirm__item {
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-ink);
}

.hs.hsa .hsa-diff-confirm__item--warn {
  list-style: none;
  margin-left: -20px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #b42318;
  background: #fef3f2;
  color: #912018;
}

.hs.hsa .hsa-diff-confirm__line {
  display: block;
}

.hs.hsa .hsa-diff-confirm__warn-note {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #b42318;
}

/* Undo confirmation & Undone badge (Rules 6 & 7) */
.hs.hsa .hsa-change__undo {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.hs.hsa .hsa-undo-slot {
  margin-top: 8px;
}

.hs.hsa .hsa-undo-confirm {
  padding: 10px 12px;
  border-radius: var(--hs-r);
  border: 1.5px solid #c5b482;
  background: #ffffff;
}

.hs.hsa .hsa-undo-confirm__q {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hs-ink);
}

.hs.hsa .hsa-undo-done {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--hs-r);
  border: 1.5px solid #2f7a47;
  background: #eaf7ee;
  color: #1b512d;
  font-weight: 700;
}

.hs.hsa .hsa-undo-err {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--hs-r);
  border: 1.5px solid #b42318;
  background: #fef3f2;
  color: #912018;
  font-weight: 600;
}




/* ── 1.18.0 · Dispatch & Field: Members and Every burial (0.037) ───────── */
.hs .hsa-mems,
.hs .hsa-hist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hs .hsa-mem,
.hs .hsa-hist__row {
  border: 1px solid var(--hs-line-2);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  padding: 12px 14px;
  min-width: 0;
}
.hs .hsa-mem__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.hs .hsa-mem__who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
}
.hs .hsa-mem__role {
  color: var(--hs-muted);
}
.hs .hsa-mem__count {
  text-align: right;
  flex: none;
}
.hs .hsa-mem__n {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hs-accent);
}
.hs .hsa-mem__l {
  font-size: 0.85rem;
  color: var(--hs-muted);
}
.hs .hsa-mem__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.hs .hsa-mem__more {
  margin-top: 8px;
}
.hs .hsa-mem__more > summary,
.hs .hsa-hist__year > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.hs .hsa-mem__list {
  margin: 6px 0 10px;
  padding-left: 18px;
  columns: 2 280px;
}
.hs .hsa-hist__year {
  margin-top: 8px;
}
.hs .hsa-hist__top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.hs .hsa-hist__day {
  font-weight: 600;
  color: var(--hs-muted);
}
.hs .hsa-hist__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.hs .hsa-hist__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  margin: 6px 0 0;
}
.hs .hsa-hist__facts dt {
  color: var(--hs-muted);
}
.hs .hsa-hist__facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .hs .hsa-mem__top {
    flex-direction: column;
  }
  .hs .hsa-mem__count {
    text-align: left;
  }
  .hs .hsa-hist__facts {
    grid-template-columns: 1fr;
  }
  .hs .hsa-hist__facts dt {
    margin-top: 4px;
  }
}

/* ── 1.19.0 · Dispatch & Field: the way to the names; one tick box to a line (#1783) ── */
.hs .hsa-dsp__see {
  display: inline-flex;
  margin-top: 8px;
}
.hs .hsa-dsp .hsa-field .hsa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

/* ── 1.19.0 · Dispatch & Field, compact (the owner, 4 Dec: "way oversized") ───────────── */
.hs .hsa-dsp .hsa-tiles {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}
.hs .hsa-dsp .hsa-tile {
  padding: 6px 10px;
  gap: 0;
  box-shadow: none;
}
.hs .hsa-dsp .hsa-tile__n {
  font-size: 18px;
}
.hs .hsa-dsp .hsa-tile__label {
  font-size: 13px;
}
.hs .hsa-dsp .hsa-tile__sub {
  display: none;
}
.hs .hsa-dsp .hsa-act {
  margin-top: 6px;
}
.hs .hsa-dsp .hsa-act__btn {
  min-height: 38px;
  padding: 4px 12px;
  font-size: 15px;
}
.hs .hsa-dsp__none .hsa-empty {
  margin: 8px 0;
  padding: 0;
}
.hs .hsa-grid--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* the members: one line each */
.hs .hsa-memsec {
  margin-top: 8px;
  padding: 10px 12px;
}
.hs .hsa-memsec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.hs .hsa-memsec__head .hsa-sub {
  margin: 0;
}
.hs .hsa-memsec__find .hsa-input {
  min-height: 34px;
  padding: 4px 10px;
  width: 220px;
  max-width: 100%;
}
.hs .hsa-memsec__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 2px;
}
.hs .hsa-memsec__g {
  padding: 3px 10px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.hs .hsa-memsec__g.is-on {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
  font-weight: 700;
}
.hs .hsa-memsec .hsa-mems {
  gap: 0;
}
.hs .hsa-memsec .hsa-mem {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(0, 1.2fr) 70px auto 56px;
  align-items: center;
  gap: 2px 10px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--hs-line);
  border-radius: 0;
  background: transparent;
}
.hs .hsa-memsec .hsa-mem--off {
  opacity: 0.6;
}
.hs .hsa-memsec .hsa-mem__who {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.2;
}
.hs .hsa-memsec .hsa-mem__role,
.hs .hsa-memsec .hsa-mem__does {
  font-size: 12.5px;
  color: var(--hs-muted);
  min-width: 0;
}
.hs .hsa-memsec .hsa-mem__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  text-align: right;
}
.hs .hsa-memsec .hsa-mem__n {
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}
.hs .hsa-memsec .hsa-mem__ran {
  font-size: 12px;
  color: var(--hs-muted);
}
.hs .hsa-memsec .hsa-mem__call {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.hs .hsa-memsec .hsa-mem__btn {
  min-height: 30px;
  padding: 2px 10px;
  font-size: 13px;
}
.hs .hsa-memsec .hsa-mem__more {
  margin: 0;
}
.hs .hsa-memsec .hsa-mem__more > summary {
  padding: 2px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.hs .hsa-memsec .hsa-mem__more[open] {
  grid-column: 1 / -1;
  padding: 6px 0 10px;
}
.hs .hsa-memsec .hsa-mem__more[open] > summary {
  text-align: left;
}
@media (max-width: 699px) {
  .hs .hsa-memsec .hsa-mem {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      'who count call'
      'does does more';
    padding: 6px 0;
  }
  .hs .hsa-memsec .hsa-mem__who {
    grid-area: who;
  }
  .hs .hsa-memsec .hsa-mem__count {
    grid-area: count;
  }
  .hs .hsa-memsec .hsa-mem__call {
    grid-area: call;
  }
  .hs .hsa-memsec .hsa-mem__does {
    grid-area: does;
  }
  .hs .hsa-memsec .hsa-mem__more {
    grid-area: more;
  }
  .hs .hsa-memsec .hsa-mem__more[open] {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .hs .hsa-grid--three {
    grid-template-columns: 1fr;
  }
}

/* 1.19.0 · Dispatch & Field on a phone: the links one small line, the counts one strip, the members right after */
.hs .hsa-dsp__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 14px;
}
.hs .hsa-dsp__links a {
  color: var(--hs-accent-ink);
  font-weight: 600;
}
@media (max-width: 699px) {
  .hs .hsa-dsp .hsa-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .hs .hsa-dsp .hsa-tile {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
  }
  .hs .hsa-dsp .hsa-tile__n {
    font-size: 15px;
  }
  .hs .hsa-dsp .hsa-tile__label {
    font-size: 12.5px;
  }
  .hs .hsa-memsec .hsa-mem {
    padding: 4px 0;
    gap: 0 8px;
  }
  .hs .hsa-memsec .hsa-mem__btn {
    min-height: 28px;
    padding: 1px 8px;
  }
}
@media (min-width: 700px) {
  .hs .hsa-memsec .hsa-mem {
    padding: 2px;
  }
}
.hs .hsa-memsec .hsa-mem__who {
  align-items: flex-start;
  text-align: left;
}
.hs .hsa-memsec .hsa-mem__who b {
  font-size: 15px;
}

/* 1.19.0 · the New Funeral form, compact: two boxes a row even on a phone, slimmer boxes and labels */
.hs .hsa-dsp .hsa-act .hsa-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}
.hs .hsa-dsp .hsa-act .hsa-field {
  margin: 0 0 6px;
}
.hs .hsa-dsp .hsa-act .hsa-label {
  font-size: 13px;
  margin-bottom: 2px;
}
.hs .hsa-dsp .hsa-act .hsa-input {
  min-height: 38px;
  padding: 5px 9px;
  font-size: 15px;
}
.hs .hsa-dsp .hsa-act .hsa-hint {
  font-size: 12px;
}
@media (max-width: 699px) {
  .hs .hsa-dsp .hsa-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }
  .hs .hsa-dsp .hsa-grid--three > :first-child {
    grid-column: 1 / -1;
  }
}
