/* The back office (login, account, users, edit seats, the Gabbai's pages) and the seating chart,
   in the public pages' look (public/home.css): Frank Ruhl Libre, black and grays on paper, the
   logo at the top linking home. Colors, fonts, sizes, radii and shadows are the tokens in
   /css/tokens.css (src/design/tokens.js), which every page loads first. */

/* The seating chart's measures (print sizes below). */
:root {
  --seat-col: minmax(40px, 1fr);
  --edge-col: 22px;
  --track: 11px;
  --name-size: var(--text-seat-name);
  --id-size: var(--text-seat-id);
  --open-fill: var(--seat-open);
  --open-border: var(--seat-open-line);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 var(--space-4) var(--space-6);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.45;
}
a { color: var(--ink); }

header p { margin: 4px 0; }
#status { color: var(--error); min-height: 1.2em; }
footer { max-width: 900px; margin: 12px auto 0; text-align: center; color: var(--muted); font-size: var(--text-sm); line-height: 1.35; }

/* The seating chart, on a white card, the footer note under it. */
#chart-scroll { overflow-x: auto; max-width: 1240px; margin: 14px auto 0; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--card); }
#chart {
  display: grid;
  column-gap: 2px;
  min-width: 1000px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--name-size);
  font-weight: bold;
  overflow: hidden;
}
.feature.fixture { background: var(--fixture); border: 1px solid var(--field); color: var(--muted); }
.feature.edge { font-size: var(--id-size); }
.feature.vertical { writing-mode: vertical-rl; }
.feature.wall { background: var(--wall); }
.feature.wall.vertical { justify-self: center; width: 25%; }
.feature.wall:not(.vertical) { align-self: center; height: max(3px, 25%); }
.feature.room { background: repeating-linear-gradient(45deg, var(--card) 0 4px, var(--room-hatch) 4px 6px); border: 1px solid var(--seat-line); }

.seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1px;
  border: 1px solid var(--seat-line);
  background: var(--card);
  font: inherit;
  color: inherit;
  text-align: center;
  overflow: hidden;
}
/* Light divider at each seat boundary inside a box that covers several seats. */
.seat.taken {
  background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--seat-divider) calc(100% - 1px));
  background-size: calc(100% / var(--seats, 1)) 100%;
  background-repeat: repeat-x;
}
.seat.taken .seat-id { display: none; }
body.admin .seat.taken .seat-id { display: inline; }
/* On the admin page, seats are buttons only for an account that can edit them. */
button.seat { cursor: pointer; }
button.seat.taken:hover, button.seat.taken:focus-visible { outline: 2px solid var(--seat-line); }
.seat-id { font-size: var(--id-size); color: var(--muted); line-height: 1; }
.seat-name { font-size: calc(var(--name-size) * var(--fit, 1)); font-weight: bold; line-height: 1.05; overflow-wrap: anywhere; }
.seat.open { background: var(--open-fill); border: 1px dashed var(--open-border); }
button.seat.open:hover, button.seat.open:focus-visible { background: var(--fixture); outline: 2px solid var(--seat-line); }
.chart-page footer { max-width: 760px; margin: 18px auto 0; font-size: var(--text-ui); line-height: 1.5; }
.admin #logged-in { color: var(--muted); }
/* The members' seat picker (/portal/seats): the household's own seats stand out, with their ids. */
.seat.mine { background-color: var(--attention); border: 2px solid var(--attention-line); }
body.seat-picker .seat.taken .seat-id { display: inline; }
.seat-picker #picker-note { max-width: 860px; margin: 0 auto; text-align: center; }

@media print {
  :root {
    --seat-col: 1fr;
    --edge-col: 13pt;
    --track: 5.6pt;
    --name-size: var(--print-text-seat-name);
    --id-size: var(--print-text-seat-id);
    --open-fill: var(--card);
    --open-border: var(--seat-open-line-print);
  }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .screen-only { display: none; }
  #chart-scroll { overflow: visible; }
  #chart { min-width: 0; max-width: none; width: 100%; column-gap: 1pt; }
  .feature.fixture { background: var(--fixture-print); }
}

/* Dialogs (Users, Edit seats) */
dialog { max-width: calc(100vw - 32px); padding: 16px 20px; border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); color: var(--ink); }
dialog::backdrop { background: var(--backdrop); }
dialog h2 { margin: 0 0 12px; font-size: var(--text-2xl); }
dialog label { display: block; margin-bottom: 4px; }
dialog input { width: 22em; max-width: 100%; }
#edit-error { color: var(--error); min-height: 1.2em; margin: 8px 0; }
.actions { display: flex; gap: 8px; justify-content: flex-end; }
/* A page or form waiting for the server can't be edited (the scripts set inert meanwhile). */
[inert] { opacity: 0.6; }

/* The header: logo, title, the menu (public/lib/session.js) and the status line. */
.app-head { max-width: 860px; margin: 0 auto; padding: 22px 0 10px; text-align: center; }
.app-head .brand img { width: 100%; max-width: 230px; height: auto; mix-blend-mode: multiply; }
.app-head h1 { margin: 10px 0 2px; font-size: var(--text-4xl); font-weight: 700; }
.account-links { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; margin: 8px 0 0; font-size: var(--text-ui); }
.account-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.account-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
/* "Log out" in the members' menu: a button that looks like the links next to it. */
.forms .account-links .link-button { padding: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; color: var(--muted); font-size: inherit; font-weight: normal; }
.forms .account-links .link-button:hover { background: none; color: var(--ink); border-bottom-color: var(--ink); }
body:not(.chart-page) #status { margin: 8px 0 0; }

/* Login, account and users */
.auth-page main { max-width: 860px; margin: 16px auto 0; }
.auth-form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto; }
.auth-form label { margin-top: 6px; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { width: 22em; max-width: 100%; }
.auth-form fieldset { border: none; margin: 6px 0 0; padding: 0; }
.auth-form legend { padding: 0; margin-bottom: 4px; }
.role-choice { display: block; margin: 2px 0; }
.auth-page .actions button { padding: 6px 14px; }
.auth-form button[type="submit"] { margin-top: 8px; }
.form-error { color: var(--error); min-height: 1.2em; margin: 4px 0 0; }
.form-done { color: var(--done); min-height: 1.2em; margin: 4px 0 0; }
.profile { margin: 0 auto; border-collapse: collapse; }
.profile th { text-align: left; padding: 2px 12px 2px 0; color: var(--muted); font-weight: normal; }
.table-scroll { overflow-x: auto; }
.user-table { width: 100%; margin: 0 auto; border-collapse: collapse; }
.user-table th, .user-table td { text-align: left; padding: 6px 10px; max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-table th { color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--ink); }
.user-table td { border-bottom: 1px solid var(--rule); }
.user-table tr.banned td { color: var(--muted); }
#user-dialog section { margin: 0 0 14px; }
.role-choice input { width: auto; padding: 0; margin: 0 4px 0 0; }
#user-dialog .auth-form { margin: 0; }

/* The Gabbai's pages */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gabbai-page h2 { text-align: center; }
.gabbai-page input:not([type="checkbox"]):not([type="radio"]), .gabbai-page textarea { max-width: 100%; }
.gabbai-page textarea { width: 34em; display: block; }
.input-time { width: 6.5em; }
.input-short { width: 14em; }
.input-long { width: 28em; }
.week-picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.problem { text-align: center; margin: 0 0 16px; }
.sheet-section h4 { font-size: var(--text-base); margin: 0 0 4px; }
.hint { color: var(--muted); margin: 0 0 8px; font-size: var(--text-ui); }
.label { margin: 8px 0 4px; }
.field-row { margin: 8px 0; }
.field-row label { display: block; margin-bottom: 4px; }
.choices { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.check { display: block; margin: 4px 0; }
.repeat .line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.repeat .line label:not(.check) { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.add-line { margin-top: 6px; }
.grid-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.grid-block { border: 1px solid var(--rule); border-radius: var(--radius-lg); margin: 0; padding: 6px 12px 10px; min-width: 0; background: var(--paper); }
.grid-block legend { font-weight: 700; padding: 0 4px; }
.grid-row { display: flex; gap: 4px 10px; align-items: baseline; padding: 4px 0; }
.grid-label { flex: none; width: 9.5em; }
.grid-values { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cell-item { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.cell-item .was { color: var(--muted); }
.needs-confirm { background: var(--attention); outline: 2px solid var(--attention-line); border-radius: var(--radius-md); }
.calc-notice { padding: 8px; margin: 8px 0; }
.calc-notice label:not(.check) { display: block; }
.plag-switches { margin-top: 6px; font-size: var(--text-sm); }
/* The Gabbai's monthly and long-term Ner L'Maor sponsors. */
.sponsor-list { list-style: none; margin: 0 0 10px; padding: 0; }
.sponsor-list li { padding: 8px 0; }
.sponsor-list li:not(.hint) { border-bottom: 1px solid var(--rule); }
#sponsorship-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
#every-week summary { font-size: var(--text-lg); font-weight: bold; cursor: pointer; margin-bottom: 8px; }
/* A printed sheet's preview (the page the PDF is made from) fills the column; its height is set to its pages'. */
.sheet-frame { display: block; width: 100%; height: 8.5in; border: 0; border-radius: var(--radius-lg); background: var(--desk); }
.sheet-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 10px; margin-top: 16px; background: var(--paper); border-top: 1px solid var(--rule); box-shadow: var(--shadow-actions); }
.sheet-actions p { margin: 0; flex-basis: 100%; text-align: center; min-height: 1.2em; }
@media (max-width: 600px) {
  .grid-editor { grid-template-columns: 1fr; }
  .grid-row { flex-wrap: wrap; }
  .grid-label { width: auto; flex-basis: 100%; }
}

/* Buttons and fields, on the back-office pages and in the Edit seats dialog (class "forms"):
   the page's main action is filled; the others are outlined; small row buttons are quiet. */
.forms button {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-ui);
  font-weight: 500;
  cursor: pointer;
}
.forms button:hover { background: var(--ink); color: var(--on-ink); }
.forms button[type="submit"], .forms #download { background: var(--ink); color: var(--on-ink); }
.forms button[type="submit"]:hover, .forms #download:hover { background: var(--ink-hover); }
.forms button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.auth-page .cell-item button, .auth-page .remove-line, .auth-page .sponsor-list button, .user-table button, .name-results button, .saved-card-list button { padding: 3px 10px; font-size: var(--text-xs); border-color: var(--field); color: var(--muted); }
.auth-page .cell-item button:hover, .auth-page .remove-line:hover, .auth-page .sponsor-list button:hover, .user-table button:hover, .name-results button:hover, .saved-card-list button:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }

.forms input:not([type="checkbox"]):not([type="radio"]), .forms textarea, .forms select {
  padding: 7px 9px;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base);
}
.forms input:focus, .forms textarea:focus, .forms select:focus { outline: none; border-color: var(--ink); box-shadow: var(--shadow-focus); }
.auth-page input[type="checkbox"], .auth-page input[type="radio"] { accent-color: var(--ink); }
.auth-page label { color: var(--ink); }

/* Each part of a page is a card */
.auth-page main > section, .auth-page form > .sheet-section, .auth-page #every-week {
  margin: 0 0 var(--space-4);
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.auth-page h2 { font-size: var(--text-3xl); font-weight: 700; margin: 0 0 10px; }
.auth-page .sheet-section h3 { font-size: var(--text-2xl); font-weight: 700; margin: 0 0 8px; }
/* The week and fast pickers are sections of main but not cards. */
.auth-page .week-picker { border: 0; background: none; padding: 0; }
.auth-page #week-title, .auth-page #master-title, .auth-page #fast-title { margin: 6px 0 18px; font-size: var(--text-3xl); }
/* A time the Gabbai changed by hand, red as it prints. */
.auth-page .cell-item.overridden input { color: var(--changed); border: 1px solid var(--changed); box-shadow: var(--shadow-changed); }
@media (max-width: 600px) {
  .auth-page main > section, .auth-page form > .sheet-section, .auth-page #every-week { padding: 14px; }
}
/* A section that is only a button (Log out) isn't a card. */
.auth-page main > section.auth-form { margin: 0 auto 16px; border: 0; background: none; padding: 0; }
.auth-page .must-change { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--error); border-radius: var(--radius-lg); background: var(--card); color: var(--error); }

/* The Hebrew on-screen keyboard (public/lib/hebrew-keyboard.js): the "א" button sits next to its
   field and the keyboard opens on its own line below it, in the page's flow, never over it. */
.hebrew-field { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-1); max-width: 100%; vertical-align: top; }
.hebrew-field > input, .hebrew-field > textarea { min-width: 0; }
.forms .hebrew-toggle { padding: 6px 10px; font-size: var(--text-base); line-height: 1.2; }
.hebrew-keyboard { flex-basis: 100%; display: flex; flex-direction: column; gap: var(--space-1); max-width: 26em; padding: var(--space-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper); direction: ltr; }
.hebrew-row { display: flex; gap: var(--space-1); }
.forms .hebrew-keyboard button { flex: 1 1 0; min-width: 0; padding: 6px 0; font-size: var(--text-lg); font-weight: 500; background: var(--card); }
.forms .hebrew-keyboard button:hover { background: var(--ink); color: var(--on-ink); }
.forms .hebrew-keyboard .key-space { flex-grow: 5; }
.forms .hebrew-keyboard .key-backspace { flex-grow: 2; }

/* The directory: block and filters, the homes table, a home's editor. */
.auth-page .directory-controls { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: center; align-items: flex-end; border: 0; background: none; padding: 0; }
.directory-controls label { display: flex; flex-direction: column; gap: 2px; }
.home-table tr.due td { background: var(--attention); }
.home-table tr.overdue td:nth-child(5) { color: var(--error); }
.home-dialog { width: 48em; }
.home-dialog h3, .portal-page h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-1); }
.home-dialog .actions { flex-wrap: wrap; margin-top: var(--space-3); }
.home-dialog input[type="radio"], .home-dialog input[type="date"], .portal-page input[type="date"] { width: auto; }
.status-choice { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; margin: 0 0 var(--space-2); padding: 0; }
.status-choice legend { padding: 0; margin-bottom: var(--space-1); }
.home-dialog .status-choice label { margin: 0; padding: 6px 14px; border: 1px solid var(--field); border-radius: var(--radius-sm); font-size: var(--text-ui); cursor: pointer; }
.home-dialog .status-choice label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.status-choice label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.person { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.home-dialog .person label, .portal-page .person label { display: flex; flex-direction: column; gap: 2px; max-width: 100%; margin: 0; }
.home-dialog .input-name, .portal-page .input-name { width: 10em; }
.home-dialog .input-email, .portal-page .input-email { width: 16em; }
.home-dialog .input-phone, .portal-page .input-phone { width: 9em; }
.home-dialog .input-age, .portal-page .input-age { width: 4.5em; }
.home-dialog textarea { width: 34em; max-width: 100%; }
.dialog-extra { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.dialog-extra h3 { margin-top: 0; }

/* The members portal and the sign-up requests (the people rows are the directory's, above) */
.portal-page .actions { margin-top: var(--space-3); }
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list > li { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.request-list .choices { margin: var(--space-2) 0; }
.request-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; margin-top: var(--space-2); }
.request-actions label { display: flex; flex-direction: column; gap: 2px; }

/* Households: the list, membership types, one household (/household) */
.list-search { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.type-add { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: flex-end; margin-top: var(--space-3); }
.type-add h3 { flex-basis: 100%; margin: 0; font-size: var(--text-lg); }
/* Paying by card (/portal, /household): Banquest's card fields sit in their own iframe. */
.card-part { margin-top: var(--space-4); }
.card-part form > label { display: inline-flex; flex-direction: column; gap: 2px; margin-top: var(--space-2); }
.card-fields { max-width: 26em; min-height: 120px; margin: var(--space-2) 0; }
/* "Save this card for next time" is hidden where the card is always saved (automatic payment, a monthly donation); .check would show it. */
.card-part .check[hidden] { display: none; }
/* Card logos (public/cards/, /lib/card-brands.js): the accepted cards above the card fields, the
   saved cards (the pay form's picker and the "Saved cards" list) and a card in the histories. */
img.card-brand { vertical-align: middle; }
.card-with-logo img.card-brand { margin-right: var(--space-1); }
.card-brands { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.saved-cards { border: none; margin: var(--space-2) 0; padding: 0; }
.saved-cards legend { padding: 0; color: var(--muted); font-size: var(--text-ui); }
.saved-card, .saved-card-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.saved-card { margin: var(--space-1) 0; }
.saved-card-list { list-style: none; margin: 0; padding: 0; }
.saved-card-list li { padding: var(--space-1) 0; border-bottom: 1px solid var(--rule); }
.saved-card.expired, .saved-card-list li.expired { color: var(--muted); }
.saved-card.expired img.card-brand, .saved-card-list li.expired img.card-brand { opacity: 0.5; }
.card-expiry { color: var(--muted); font-size: var(--text-sm); }
.card-tag { color: var(--muted); font-size: var(--text-xs); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 0 var(--space-1); }
/* Pledges (/portal, /household; /lib/pledges.js): each with its sums, its payments and its buttons. */
.pledge-list { list-style: none; margin: 0; padding: 0; }
.pledge-list > li { padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); }
.pledge-list p { margin: 0 0 var(--space-1); }
.pledge-date, .pledge-sums { color: var(--muted); font-size: var(--text-ui); }
.pledge.cancelled .pledge-head strong { color: var(--muted); }
.pledge-list .pledge-payments { width: auto; margin: 0 0 var(--space-1); }
.pledge-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Donations (/portal, /household; /lib/donations.js): once or every month, and what only a monthly one asks. Monthly donations are listed like pledges. */
.donate-how { margin-top: var(--space-2); }
.donate-monthly { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); }
.donate-monthly[hidden] { display: none; }
.donate-monthly label { display: flex; flex-direction: column; gap: 2px; }
/* An unconfirmed card payment's "Charged" / "Not charged" buttons wrap rather than hide behind the ellipsis. */
.user-table td.card-outcome { white-space: normal; }
.type-add label, .type-table label { display: flex; flex-direction: column; gap: 2px; }
.input-money { width: 7em; }
.input-count { width: 5em; }
.type-table td { overflow: visible; }
.type-table input:not([type="checkbox"]) { max-width: 100%; }
.household-page h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-1); }
.household-page .person label { display: flex; flex-direction: column; gap: 2px; max-width: 100%; margin: 0; }
/* An adult's email that bounced or was marked as spam, under their row. */
.household-page .email-problem { flex-basis: 100%; margin: 0; color: var(--error); font-size: var(--text-sm); }
/* A payment that got no receipt (no email on file), under its note (and on /donations, a gift's note and donor). */
.household-page .receipt-note, .donations-page .receipt-note { display: block; color: var(--muted); font-size: var(--text-sm); }
.household-page .input-name { width: 10em; }
.household-page .input-email { width: 16em; }
.household-page .input-phone { width: 9em; }
.household-page .input-age { width: 4.5em; }
.household-page input[type="date"] { width: auto; }
.household-page textarea { width: 34em; max-width: 100%; }
.household-page .field-row label { display: block; }
.household-page .actions { margin-top: var(--space-3); justify-content: flex-start; }
.auth-page main > section.danger-zone { border-color: var(--error); }

/* Households import and Hebrew names */
.import-help { margin: 0 0 var(--space-3); padding-left: 1.2em; }
.name-search { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; align-items: flex-start; }
.name-search input[type="search"] { width: 18em; max-width: 100%; }
.name-results { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.name-results li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.name-hebrew { font-size: var(--text-lg); }

/* Emailing the subscribers: the sheets' "Email to subscribers" (public/lib/sheet-email.js), the
   Email page (/email), and the members' email choices on /portal. */
.send-progress { flex-basis: 100%; text-align: center; }
.send-progress:empty { display: none; }
.send-progress p { margin: 0; }
.send-failures { margin: var(--space-1) 0 0; padding-left: 1.2em; text-align: left; color: var(--error); font-size: var(--text-sm); }
.confirm-dialog { width: 30em; }
.confirm-dialog p { margin: 0 0 var(--space-2); }
.confirm-dialog .actions { margin-top: var(--space-3); }
.email-page label { display: block; margin: var(--space-2) 0 var(--space-1); }
.email-page .input-subject { width: 30em; max-width: 100%; }
.email-page textarea { width: 40em; max-width: 100%; }
.email-page .actions { justify-content: flex-start; margin-top: var(--space-2); }
.email-page #send-list { background: var(--ink); color: var(--on-ink); }
.email-page #send-list:hover { background: var(--ink-hover); }
.email-page .user-table td { vertical-align: top; }
.email-page .user-table td:last-child { white-space: normal; max-width: 24em; }
.problem-list { margin: 0; padding-left: 1.2em; }
.portal-page .email-choices { border: 0; margin: 0 0 var(--space-2); padding: 0; }

/* The dashboard (/dashboard): counts as label–number tables, lists of families with links. */
.dashboard-page h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-1); }
.dashboard-page .profile { margin: 0 0 var(--space-2); }
.plain-list { margin: 0 0 var(--space-2); padding-left: 1.2em; }
/* Its tables wrap their words instead of cutting them, so they read at phone width. */
.dashboard-page .user-table th, .dashboard-page .user-table td { white-space: normal; }

/* Donations (/donations): the totals, every gift, the open pledges and the monthly donations
   (listed as on /household). Its tables wrap like the dashboard's. */
.donations-page .profile { margin: 0 0 var(--space-2); }
.donations-page .user-table th, .donations-page .user-table td { white-space: normal; vertical-align: top; }
.donations-page .card-with-logo { white-space: nowrap; }
