/* Mosaic Houses brand theme (Hannita, 8 Oct 2026): the "Essentials" palette —
   cream, forest green and gold — with Bellefair display type and Archivo for
   everything else, from the Mosaic Houses brand decks. Dark mode uses the
   deck's forest-green "Overview" slides. Loaded after the main <style> in
   host/index.html, so it re-points the theme variables the whole app already
   uses and restyles a handful of components; nothing else is changed. */

@font-face {
  font-family: "Bellefair";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/bellefair-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
}

:root {
  /* Ivory rather than beige (9 Oct): page, cards, sidebar and borders */
  --cream:#F7F3EA; --white:#FFFDF8; --ink:#172A1B;
  /* --blue is the action colour and does two jobs: it fills buttons and it
     colours link text. On a light ground one value does both. Dark mode cannot
     have that - a fill dark enough for cream text is invisible as text on a
     dark card - so --blue-fill carries the fills and --blue stays the text
     colour. Here they are deliberately the same, so nothing light-mode moves. */
  --blue:#1E3A24; --blue-fill:#1E3A24; --blue-edge:#1E3A24; --blue-bg:#DCE2CC; --amber:#B88A1E; --danger:#B3261E;
  --line:#E4DCCB; --muted:#5C5338; --faint:#8A7A4E;
  --gold:#B88A1E; --gold-soft:#E9C46A; --sidebar-bg:#F0EADD; --on-forest:#F3EDDC;
  --tag-blue-bg:#DCE2CC; --tag-blue-fg:#1E3A24;
  --tag-yellow-bg:#F4E3AE; --tag-yellow-fg:#6E5207;
  --tag-neutral-bg:#E2DAC4; --tag-neutral-fg:#5C5338;
  --display:"Bellefair", Georgia, "Times New Roman", serif;
  --sans:"Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream:#1A1917; --white:#232220; --ink:#F3EDDC;
    --blue:#90B792; --blue-fill:#253926; --blue-edge:#4C764E; --blue-bg:#253926; --amber:#E2B547; --danger:#FF8A80;
    --line:#38352E; --muted:#ACA695; --faint:#959084;
    --gold:#E2B547; --gold-soft:#E2B547; --sidebar-bg:#141311; --on-forest:#F3EDDC;
    --tag-blue-bg:#253926; --tag-blue-fg:#90B792;
  }
}
:root[data-theme="dark"] {
  --cream:#1A1917; --white:#232220; --ink:#F3EDDC;
  --blue:#90B792; --blue-fill:#253926; --blue-edge:#4C764E; --blue-bg:#253926; --amber:#E2B547; --danger:#FF8A80;
  --line:#38352E; --muted:#ACA695; --faint:#959084;
  --gold:#E2B547; --gold-soft:#E2B547; --sidebar-bg:#141311; --on-forest:#F3EDDC;
  --tag-blue-bg:#253926; --tag-blue-fg:#90B792;
}

body { font-family:var(--sans); }

/* ---------- type ---------- */
.topbar h1, .section-head h3, .banner h2, .auth-word, .sp-head h1, .sp-post-title,
.sp-browse-head h3, #view-library h1, .gc-title, .mh-title, .modal-box h2 {
  font-family:var(--display); font-weight:400; letter-spacing:.01em;
}
.topbar h1 { font-size:clamp(34px,4.4vw,54px); line-height:1.02; }
.section-head h3 { font-size:28px; text-transform:uppercase; letter-spacing:.03em; }
.section-head h3 svg { display:none; }
.sp-post-title { font-size:28px; }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
#hubGreeting { font-family:'Archivo', sans-serif; font-weight:400; font-stretch:100%; text-transform:uppercase; letter-spacing:.01em; } /* regular Archivo greeting (Hannita, 8 Oct); capitals as Austin set them on 7 Oct */
.sp-browse-sec, .sp-pinned-tag, .banner .label, .pc-label {
  letter-spacing:.14em;
}

/* ---------- sidebar ---------- */
.sidebar { background:var(--sidebar-bg); border-right-color:var(--line); }
.sb-word { align-items:center; gap:10px; padding:0 8px 24px; color:var(--blue); }
.sb-word .sb-logo { flex:0 0 auto; display:block; }
.sb-word .sb-name { display:flex; flex-direction:column; line-height:1; }
.sb-word .sb-name b { font-family:var(--sans); font-weight:700; font-size:22px; letter-spacing:.01em; color:inherit; }
.sb-word .sb-name span { font-family:var(--sans); font-weight:700; font-size:11px; letter-spacing:.32em; margin-top:4px; color:inherit; text-transform:uppercase; }
.sb-nav button { font-size:14px; }
/* THE FILL ALONE DOES NOT SAY "YOU ARE HERE" (Codex, 15 Oct). Against the dark
   sidebar the active fill is 1.5:1 and the label is the same cream as every
   inactive one, so making the text readable removed the only signal that this
   is the current page. --blue-edge carries it at 3.54:1 - an inset shadow
   rather than a border, so nothing shifts by a pixel when a row becomes
   active. Light mode is unchanged: there --blue-edge IS the fill. */
.sb-nav button.active { background:var(--blue-fill); color:var(--on-forest); box-shadow:inset 0 0 0 1.5px var(--blue-edge); }
.sb-nav button.active .nav-icon { color:var(--on-forest); }
/* The dark-mode overrides that used to sit here forced the active nav label
   and icon to #1A1917. They existed because the OLD dark action colour was
   GOLD, which needs dark text on it. The fill is a dark green now, so dark
   text on it is 1.24:1 - invisible (Codex, 15 Oct). The base rule's
   --on-forest is already the right answer in both themes, so these are gone
   rather than restyled. */
.sb-section-label { font-size:11px; font-weight:700; letter-spacing:.1em; color:var(--faint); }
.sb-hash { width:18px; flex:0 0 18px; text-align:center; font-family:var(--display); font-size:16px; line-height:1; color:var(--gold); }
.sb-nav button.active .sb-hash { color:var(--gold-soft); }
.sb-count { border:none; background:var(--line); color:var(--ink); }
.sb-count.hot { background:var(--gold-soft); color:#172A1B; }
.sb-nav button.active .sb-count { background:var(--gold-soft); color:#172A1B; }

/* ---------- buttons, cards, chrome ---------- */
.btn { border-radius:999px; background:var(--blue-fill); border-color:var(--blue-edge); color:var(--on-forest); font-weight:700; }
.btn.secondary { background:transparent; color:var(--ink); border-color:var(--line); }
.btn.secondary:hover { background:var(--white); }
.topbar-msg-btn, .user-trigger { background:var(--white); border-color:var(--line); color:var(--ink); }
/* Hovering darkened these with a see-through rgba(0,0,0,.05) (index.html),
   so the page title showed through the button and it read as having lost its
   colour (Paola, 23 Nov). The same slight darkening, opaque. */
.topbar-msg-btn:hover, .topbar-msg-btn[aria-expanded="true"] { background:color-mix(in srgb, var(--ink) 6%, var(--white)); }
.resource-card, .list-row, .ann-card, .gather-card, .profile-card, .sp-card { border-radius:18px; }
.resource-card .icon { color:var(--gold); }
.gc-photo { background:linear-gradient(135deg,#1E3A24,#2F5A37); }
.tag { letter-spacing:.06em; }

/* next-step banner: forest panel, gold eyebrow, display title, gold pill */
.banner { background:#1E3A24; border:none; border-radius:18px; padding:28px 32px; color:#F3EDDC; }
.banner .label { color:#E9C46A; }
.banner h2 { font-size:28px; color:#F3EDDC; margin-bottom:6px; }
.banner p { color:#C9D2C3; }
.banner .btn { background:#E9C46A; border-color:#E9C46A; color:#172A1B; padding:12px 22px; }
:root[data-theme="dark"] .banner { background:#F3EDDC; color:#1A1917; }
:root[data-theme="dark"] .banner h2 { color:#1A1917; }
:root[data-theme="dark"] .banner p { color:#4E5A4B; }
:root[data-theme="dark"] .banner .label { color:#7A5A0E; }
:root[data-theme="dark"] .banner .btn { background:#1A1917; border-color:#1A1917; color:#F3EDDC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .banner { background:#F3EDDC; color:#1A1917; }
  :root:not([data-theme="light"]) .banner h2 { color:#1A1917; }
  :root:not([data-theme="light"]) .banner p { color:#4E5A4B; }
  :root:not([data-theme="light"]) .banner .label { color:#7A5A0E; }
  :root:not([data-theme="light"]) .banner .btn { background:#1A1917; border-color:#1A1917; color:#F3EDDC; }
}

/* ---------- Host Hub: My House card ---------- */
.mh-card { background:var(--white); border:1px solid var(--line); border-radius:18px; padding:24px; cursor:pointer; text-align:left; width:100%; color:var(--ink); display:block; }
.mh-card:hover { border-color:var(--faint); }
.mh-card:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.mh-title { font-size:28px; line-height:1.15; margin:2px 0 10px; }
.mh-pills { display:flex; flex-wrap:wrap; gap:8px; }
.mh-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mh-copy-invite { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:5px 11px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink); cursor:pointer; white-space:nowrap; }
.mh-copy-invite:hover, .mh-copy-invite:focus-visible { border-color:var(--blue); }
.mh-pill { font-size:13px; font-weight:700; padding:4px 11px; border-radius:999px; border:1px solid var(--line); }
.mh-pill.solid { background:var(--blue-fill); border-color:var(--blue-edge); color:var(--on-forest); font-weight:700; }
.mh-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:20px; }
.mh-stats b { display:block; font-family:var(--display); font-weight:400; font-size:28px; line-height:1.1; }
.mh-stats span { font-size:13px; color:var(--muted); }
.mh-more { margin-top:12px; }

/* ---------- Host Hub: announcements with expand ---------- */
.ann-card { align-items:flex-start; }
.ann-card .icon { color:var(--gold); }
.ann-card .ann-text { flex:1; min-width:0; }
.ann-card .msg.ann-clamp { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.ann-toggle { flex:0 0 auto; width:34px; height:34px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink); display:flex; align-items:center; justify-content:center; }
.ann-toggle:hover { background:var(--cream); }
.ann-toggle svg { transition:transform .15s ease; }
.ann-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce) { .ann-toggle svg { transition:none; } }

/* ---------- spaces in the brand ---------- */
.sp-btn.primary, .sp-btn.blue { background:var(--blue-fill); border-color:var(--blue-edge); color:var(--on-forest); border-radius:999px; }
.sp-btn { border-radius:999px; }
.sp-badge { background:var(--blue-fill); color:var(--on-forest); }
.sp-badge.leader { background:var(--blue-bg); color:var(--blue); }
.sp-space-card .nm { font-size:16px; }

.sp-browse { margin-top:32px; }
.sp-browse-head h3 { font-size:28px; text-transform:uppercase; letter-spacing:.03em; }

/* Bellefair ships one weight. Any bold asked of it (spaces.css loads after this
   file) makes the browser fake a bold, which smears some letters — so display
   type is always 400 and never synthesized. */
:root .topbar h1, :root .section-head h3, :root .banner h2, :root .auth-word,
:root .sp-head h1, :root .sp-post-title, :root .sp-browse-head h3, :root #view-library h1,
:root .gc-title, :root .mh-title, :root .modal-box h2, :root .sp-latest-title {
  font-weight:400; font-synthesis:none;
}
:root .sp-head h1 { font-size:clamp(28px,3.2vw,38px); letter-spacing:.01em; }

/* ---------- My House directory (Hannita, 8 Oct): grid by default, list option ---------- */
.dir-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:6px 0 22px; }
.dir-search { display:flex; align-items:center; gap:8px; flex:1 1 240px; max-width:380px; height:44px; padding:0 16px; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--muted); }
.dir-search:focus-within { outline:2px solid var(--blue); outline-offset:1px; }
.dir-search input { flex:1; min-width:0; border:none; background:transparent; outline:none; font:inherit; font-size:14px; color:var(--ink); }
.dir-pill { height:44px; padding:0 34px 0 18px; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--ink); font:inherit; font-size:13px; font-weight:700; cursor:pointer;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%235C5338'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 15px center; }
.dir-pill:focus-visible { outline:2px solid var(--blue); outline-offset:1px; }
.dir-views { display:flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:999px; background:var(--white); }
.dir-views button { width:38px; height:36px; border:none; border-radius:999px; background:transparent; color:var(--muted); display:flex; align-items:center; justify-content:center; cursor:pointer; }
/* Same for the grid/list selection: 1.28:1 against its card without an edge. */
.dir-views button[aria-pressed="true"] { background:var(--blue-fill); color:var(--on-forest); box-shadow:inset 0 0 0 1.5px var(--blue-edge); }
.dir-host { margin-left:auto; padding:12px 22px; }

.dir-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.dir-card { position:relative; display:flex; gap:16px; align-items:flex-start; background:var(--white); border:1px solid var(--line); border-radius:16px; padding:18px; cursor:pointer; box-shadow:0 6px 18px rgba(23,42,27,.06); color:var(--ink); }
.dir-card:hover { border-color:var(--faint); }
.dir-card:focus-visible, .dk-card:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.dir-thumb { flex:0 0 72px; height:72px; border-radius:12px; background:#1E3A24; color:#E9C46A; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.dir-thumb img, .dk-photo img, .draft-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.dir-body { flex:1; min-width:0; }
.dir-city { font-size:13px; color:var(--muted); }
.dir-title { font-weight:700; font-size:16px; line-height:1.2; margin-top:2px; }
.dir-type { font-weight:700; font-size:13px; margin-top:4px; }
.dir-when { font-size:13px; margin-top:2px; }
.dir-foot { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; font-size:13px; color:var(--muted); }
.dir-status { font-size:13px; font-weight:700; padding:3px 11px; border-radius:999px; background:var(--tag-neutral-bg); color:var(--tag-neutral-fg); }
.dir-status.st-draft { background:#E9C46A; color:#172A1B; }
.dir-status.st-approved { background:#1E3A24; color:#F3EDDC; }
.dir-status.st-rejected { background:#F4D9D6; color:#8A1C14; }

.dk-list { display:flex; flex-direction:column; gap:16px; }
.dir-region + .dir-region { margin-top:32px; }
.dir-region h2 { font-family:var(--sans); font-weight:700; font-size:20px; letter-spacing:-.01em; color:var(--ink); margin:0 0 12px; }
.dir-region h2 span { font-size:13px; font-weight:600; color:var(--faint); margin-left:4px; }
.dk-card { position:relative; display:flex; flex-wrap:wrap; background:var(--white); border:1px solid var(--line); border-radius:18px; overflow:hidden; cursor:pointer; color:var(--ink); }
.dk-card:hover { border-color:var(--faint); }
.dk-photo { flex:0 0 200px; min-height:150px; background:linear-gradient(135deg,#1E3A24,#2F5A37); color:#E9C46A; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.dk-photo svg { width:34px; height:48px; stroke-width:2.2; }
.dk-body { flex:1 1 380px; min-width:0; padding:22px 28px; display:flex; flex-direction:column; gap:10px; }
.dk-body .eyebrow { margin:0; }
.dk-title { font-family:var(--display); font-weight:400; font-synthesis:none; font-size:28px; line-height:1.05; letter-spacing:.02em; text-transform:uppercase; }
.dk-cols { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; border-top:1px solid var(--line); padding-top:12px; }
.dk-label { font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); }
.dk-val { font-size:14px; font-weight:700; margin-top:3px; overflow-wrap:anywhere; }
.dk-open { align-self:flex-end; padding:22px 28px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--blue); }
.dk-open { text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:2px; text-underline-offset:5px; }
@media (max-width:640px) {
  .dk-photo { flex-basis:100%; min-height:110px; }
  .dk-cols { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dk-open { padding-top:0; }
  .dir-host { margin-left:0; }
}

/* ---------- Host Hub: drafts folded into one button + pop-up ---------- */
.mh-drafts { display:flex; align-items:center; gap:14px; width:100%; margin-top:12px; padding:14px 18px; border:1px dashed var(--faint); border-radius:16px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; font:inherit; }
.mh-drafts:hover { background:var(--white); border-style:solid; }
.mh-drafts:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.mh-drafts-icon { flex:0 0 40px; height:40px; border-radius:12px; background:#E9C46A; color:#172A1B; display:flex; align-items:center; justify-content:center; }
.mh-drafts-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.mh-drafts-text b { font-size:16px; }
.mh-drafts-text span { font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mh-drafts-cta { flex:0 0 auto; font-size:13px; font-weight:700; color:var(--blue); }
.drafts-list { display:flex; flex-direction:column; gap:8px; }
.draft-row { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:var(--white); color:var(--ink); text-align:left; cursor:pointer; font:inherit; }
.draft-row:hover { border-color:var(--faint); }
.draft-row:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.draft-thumb { flex:0 0 44px; height:44px; border-radius:10px; background:#1E3A24; color:#E9C46A; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.draft-thumb svg { width:16px; height:23px; }
.draft-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.draft-text b { font-size:14px; }
.draft-text span { font-size:13px; color:var(--muted); }

/* ---------- collapsed sidebar: name pops out on hover ---------- */
.sb-tip { position:fixed; z-index:120; transform:translateY(-50%); background:#1E3A24; color:#F3EDDC; font-family:var(--sans); font-size:13px; font-weight:700; padding:7px 12px; border-radius:10px; white-space:nowrap; pointer-events:none; box-shadow:0 8px 20px rgba(23,42,27,.22); }
.sb-tip::before { content:""; position:absolute; left:-5px; top:50%; width:10px; height:10px; background:inherit; transform:translateY(-50%) rotate(45deg); border-radius:2px; }
.sb-tip[hidden] { display:none; }
:root[data-theme="dark"] .sb-tip { background:#E2B547; color:#1A1917; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb-tip { background:#E2B547; color:#1A1917; } }

/* Archivo runs wider than the old font: keep "Assign to" on one line. */
.assign-row label { white-space:nowrap; flex:0 0 auto; }
.dir-host, .dir-pill { width:auto; flex:0 0 auto; }
#draftsOverlay .panel { padding-bottom:26px; }

/* House detail opens as a centered pop-out box, not a drawer from the right
   (Hannita, 8 Oct). Same panel, same content, same open/close code: only its
   placement and shape change, so Admin's Approvals detail moves with it. */
#detailOverlay { justify-content:center; align-items:center; padding:24px; }
#detailOverlay > .panel { height:auto; max-height:90vh; width:min(680px,100%); border-radius:18px; padding:28px 30px 32px; box-shadow:0 24px 60px rgba(23,42,27,.28); }
@media (max-width:640px) {
  #detailOverlay { padding:10px; }
  #detailOverlay > .panel { max-height:94vh; padding:22px 18px 26px; }
}
.dir-public { display:inline-flex; align-items:center; gap:4px; margin-left:8px; font-weight:700; color:var(--blue); text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:2px; text-underline-offset:4px; white-space:nowrap; }
.dir-public:hover { color:var(--ink); }

/* Editing a House inside its pop-up */
#detailPanel.editing .edit-head { margin:0 44px 18px 0; }
/* "Propose a House" / "Edit House" title in regular Archivo, like every page title (Hannita, 15 Oct) */
#detailPanel.editing .edit-head h2 { font-family:var(--sans); font-weight:400; font-stretch:100%; letter-spacing:-.015em; font-size:28px; line-height:1.1; margin:2px 0 0; }
#detailPanel.editing #proposeForm { max-width:none !important; }

/* ---------- phones (Hannita, 8 Oct): slim top bar, menu drawer, less dead space ---------- */
.sb-burger { display:none; }
@media (max-width:760px) {
  .sidebar { position:sticky; top:0; z-index:60; flex-direction:column; align-items:stretch; height:auto; overflow:visible; padding:8px 12px; gap:0; background:var(--sidebar-bg); }
  .sb-head, #appView.sb-collapsed .sb-head { display:flex; align-items:center; justify-content:flex-start; gap:8px; height:44px; margin:0; }
  .sb-burger { display:flex; align-items:center; justify-content:center; width:40px; height:40px; border:none; border-radius:12px; background:transparent; color:var(--ink); flex:0 0 auto; }
  .sb-burger:focus-visible { outline:2px solid var(--blue); outline-offset:1px; }
  .sb-word, #appView.sb-collapsed .sb-word { padding:0; display:flex; }
  .sb-word .sb-logo { width:20px; height:29px; }
  .sb-word .sb-name b { font-size:16px; }
  .sb-nav, #sbSpaces { display:none !important; }
  #appView.sb-open .sidebar { position:fixed; inset:0; z-index:80; height:100dvh; overflow-y:auto; padding:8px 16px 40px; }
  #appView.sb-open .sb-nav { display:flex !important; flex-direction:column; gap:2px; margin-top:14px; }
  #appView.sb-open #sbSpaces { display:block !important; margin-top:10px; }
  #appView.sb-open .sb-nav button, #appView.sb-open .sb-space-btn { width:100%; justify-content:flex-start; padding:12px 12px; font-size:16px; }
  #appView.sb-open .nav-label { display:inline !important; }
  #appView.sb-open .sb-nav a { display:block; }
  body.no-scroll { overflow:hidden; }

  .topbar-user { top:10px; right:12px; gap:6px; }
  .topbar-msg-btn { width:36px; height:36px; box-shadow:none; }
  .user-trigger { padding:3px; box-shadow:none; }
  .user-trigger .u-info, .user-trigger > svg:last-child { display:none; }
  #appView.sb-open ~ .topbar-user, #appView.sb-open .topbar-user { display:none; }

  .main { padding:18px 16px 60px; }
  .topbar { margin-bottom:16px; gap:10px; }
  .topbar h1 { font-size:28px; }
  .topbar p.sub { font-size:14px; }
  .eyebrow { margin-bottom:4px; }
  .search-box { margin-right:0; width:100%; }
  .search-box input { width:100%; max-width:none; }
  .banner { padding:20px 20px; border-radius:16px; }
  .banner h2 { font-size:22px; }
  .section-head h3, .sp-browse-head h3 { font-size:22px; }
  .two-col { gap:20px; }
  .mh-card { padding:18px; }
  .mh-title { font-size:22px; }
  .mh-stats b { font-size:28px; }

  /* Admin tabs scroll sideways on one line instead of wrapping into two rows */
  .admin-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-bottom:14px; }
  .admin-tabs::-webkit-scrollbar { display:none; }
  .admin-tabs button { flex:0 0 auto; padding:10px 12px; }
  .list-row { padding:12px 14px; }

  .dir-bar { gap:8px; margin-bottom:16px; }
  .dir-search { flex-basis:100%; max-width:none; }
  .dir-pill { height:40px; font-size:13px; padding:0 30px 0 14px; background-position:right 12px center; }
  .dir-views button { width:34px; height:32px; }
  #detailOverlay > .panel { max-height:92dvh; }
}

/* Host profile setup: real, roomy fields (it had bare browser inputs) */
.setup-form input, .setup-form select { width:100%; min-height:48px; padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:var(--white); color:var(--ink); font:inherit; font-size:16px; }
.setup-form input:focus, .setup-form select:focus { outline:2px solid var(--blue); outline-offset:1px; }
.setup-form .btn { min-height:46px; padding:12px 26px; }

/* Category dropdown (replaces the card picker) */
#pCategoryPicker { display:block; position:relative; }
.cat-trigger { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; padding:11px 16px; border:1.5px solid var(--line); border-radius:12px; background:var(--white); color:var(--ink); font:inherit; font-size:14px; font-weight:700; text-align:left; cursor:pointer; }
.cat-trigger.empty { color:var(--faint); font-weight:700; }
.cat-trigger:focus-visible { outline:2px solid var(--blue); outline-offset:1px; }
/* A LOCKED PICKER HAS TO LOOK LOCKED. The audience is fixed once a House is
   approved, and a trigger still styled as tappable just goes dead under the
   finger - which reads as the app being broken rather than the field being
   protected. The note beside it says why. */
.cat-trigger:disabled { cursor:not-allowed; background:var(--cream); color:var(--muted); border-style:dashed; }
.cat-trigger:disabled svg { opacity:.45; }
.cat-help { font-size:13px; color:var(--muted); margin-top:6px; line-height:1.4; }
.cat-menu { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30; list-style:none; margin:0; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 16px 40px rgba(23,42,27,.18); max-height:340px; overflow-y:auto; }
.cat-menu .cat-opt { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:10px 12px; border:none; border-radius:10px; cursor:pointer; background:transparent; }
.cat-menu .cat-opt b { font-size:14px; }
.cat-menu .cat-opt span { font-size:13px; color:var(--muted); font-weight:400; line-height:1.35; }
.cat-menu .cat-opt:hover, .cat-menu .cat-opt:focus { background:var(--cream); outline:none; }
.cat-menu .cat-opt.selected { background:var(--blue-bg); }
.cat-menu .cat-opt.selected b { color:var(--blue); }
/* grid children may shrink below their content width (stops the Host Hub
   spilling sideways on phones) */
.two-col > * { min-width:0; }
@media (max-width:860px) { .two-col { grid-template-columns:minmax(0,1fr); } }

/* Venue name suggestions */
.venue-field { position:relative; }
.venue-suggest { position:absolute; left:0; right:0; top:calc(100% - 2px); z-index:30; list-style:none; margin:0; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 16px 40px rgba(23,42,27,.18); max-height:280px; overflow-y:auto; }
.venue-suggest li { display:flex; flex-direction:column; gap:2px; padding:9px 12px; border-radius:10px; cursor:pointer; }
.venue-suggest li b { font-size:14px; }
.venue-suggest li span { font-size:13px; color:var(--muted); }
.venue-suggest li:hover, .venue-suggest li.active { background:var(--cream); }
.venue-map { display:inline-block; margin-top:6px; font-size:13px; font-weight:700; color:var(--blue); text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }
.sb-hash.sb-lock { display:inline-flex; align-items:center; justify-content:center; }
.sb-hash.sb-lock svg { width:14px; height:14px; }

/* ---------- My House: next gathering ---------- */
.mh-next { margin-top:16px; padding:14px 16px; border-radius:14px; background:var(--cream); border:1px solid var(--line); }
.mh-next-eyebrow { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.mh-next-title { font-size:16px; font-weight:700; margin-top:3px; }
.mh-next p { font-size:13px; color:var(--muted); margin:6px 0 0; line-height:1.45; }
.mh-next-list { margin:8px 0 0; padding-left:18px; font-size:13px; color:var(--muted); line-height:1.6; }
.mh-next.soon { border-color:var(--gold-soft); }
.mh-next.today, .mh-next.report { background:#1E3A24; border-color:#1E3A24; color:#F3EDDC; }
.mh-next.today p, .mh-next.report p { color:#C9D2C3; }
.mh-next.today .mh-next-eyebrow, .mh-next.report .mh-next-eyebrow { color:#E9C46A; }
.mh-next.quiet .mh-next-title { font-weight:700; font-size:14px; color:var(--muted); }

/* ---------- notifications bell ---------- */
#topbarBellBtn { position:relative; }
.bell-count { position:absolute; top:-3px; right:-3px; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#B3261E; color:#fff; font-size:11px; font-weight:700; line-height:18px; text-align:center; }
.bell-panel { position:fixed; z-index:95; width:min(380px, calc(100vw - 24px)); max-height:70vh; overflow-y:auto; background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:0 20px 50px rgba(23,42,27,.22); }
.bell-head { padding:14px 18px 8px; }
.bell-head h3 { margin:0; font-size:16px; font-weight:700; }
.bell-list { display:flex; flex-direction:column; padding:4px 8px 10px; }
.bell-item { display:flex; gap:12px; align-items:flex-start; width:100%; padding:10px; border:none; border-radius:12px; background:transparent; color:var(--ink); text-align:left; font:inherit; cursor:pointer; }
.bell-item:hover, .bell-item:focus-visible { background:var(--cream); outline:none; }
.bell-ic { flex:0 0 32px; height:32px; border-radius:10px; background:var(--cream); display:flex; align-items:center; justify-content:center; font-size:16px; }
.bell-item.report .bell-ic { background:#F4E3AE; }
.bell-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.bell-text b { font-size:14px; line-height:1.35; }
.bell-text span { font-size:13px; color:var(--muted); }
.bell-empty { display:flex; flex-direction:column; gap:4px; padding:18px 12px 20px; text-align:center; }
.bell-empty b { font-size:14px; } .bell-empty span { font-size:13px; color:var(--muted); }

/* ---------- loading ---------- */
.boot-loader { display:none; }
#appView.booting .boot-loader { position:fixed; inset:0; z-index:200; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; background:var(--cream); color:var(--blue); font-size:14px; }
#appView.booting .boot-loader #bootSlow:not([hidden]) { display:flex; align-items:center; gap:10px; color:var(--muted); }
.boot-dots { display:flex; gap:6px; }
.boot-dots span { width:7px; height:7px; border-radius:999px; background:var(--gold); animation:bootDot 1s ease-in-out infinite; }
.boot-dots span:nth-child(2) { animation-delay:.15s; } .boot-dots span:nth-child(3) { animation-delay:.3s; }
@keyframes bootDot { 0%,100% { opacity:.25; transform:translateY(0); } 50% { opacity:1; transform:translateY(-4px); } }
@media (prefers-reduced-motion:reduce) { .boot-dots span { animation:none; opacity:.7; } }

/* bell panel: header actions and tabs */
.bell-head { display:flex; align-items:center; gap:4px; }
.bell-head h3 { flex:1; }
.bell-icon-btn { width:34px; height:34px; border:none; border-radius:10px; background:transparent; color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.bell-icon-btn:hover { background:var(--cream); }
.bell-tabs { display:flex; gap:4px; padding:0 14px 8px; border-bottom:1px solid var(--line); }
.bell-tab { height:32px; padding:0 12px; border:1px solid transparent; border-radius:999px; background:transparent; color:var(--muted); font:inherit; font-size:13px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.bell-tab.on { border-color:var(--line); background:var(--white); color:var(--ink); }
.bell-tab-n:empty { display:none; }
.bell-tab-n { font-size:11px; padding:1px 7px; border-radius:999px; background:var(--cream); border:1px solid var(--line); }
.bell-item { position:relative; }
.bell-dot { position:absolute; right:12px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:999px; background:#B3261E; }
.bell-text { padding-right:16px; }

/* notification settings grid */
/* THE MOBILE COLUMN WAS UNREACHABLE, NOT MISSING (Paola, 15 Oct). The row is
   four columns and the labels are sentences, so the `1fr` cannot shrink below
   its longest word: the row grows past the card, and the overflow:hidden that
   rounds the card's corners clipped the last column off the right instead of
   letting anyone get to it. The Admin Users table lost its Admin role column
   the same way, so this takes the same cure - the card scrolls sideways, the
   row keeps a width its labels can live at, and Activity stays put, because a
   checkbox you cannot put an activity to is the wrong checkbox to tick.
   The horizontal padding moves from the row onto its end cells so the sticky
   column has something to paint over the gutter as the rest scrolls under. */
.notif-grid { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; overflow:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; container-type:inline-size; }
.notif-text-note { font-size:13px; line-height:1.5; color:var(--ink, #172A1B); background:var(--cream, #F7F3EA); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin:0 0 12px; }
.notif-row { display:grid; grid-template-columns:1fr repeat(3, 64px); align-items:center; gap:4px; padding:10px 0; min-width:430px; border-top:1px solid var(--line); font-size:14px; background:var(--white); }
.notif-row > :first-child { position:sticky; left:0; z-index:2; background:inherit; padding-left:14px; }
.notif-row > :last-child { padding-right:14px; }
.notif-row:first-child { border-top:none; }
.notif-row.head { background:var(--cream); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.notif-row span[role=cell]:not(:first-child), .notif-row span[role=columnheader]:not(:first-child) { text-align:center; }
.notif-row input[type=checkbox] { width:18px; height:18px; accent-color:var(--blue); }
/* WHEN THE CARD IS NARROW, THE STICKY COLUMN HAS TO BE NARROW TOO (Codex,
   15 Oct, twice). A sticky cell wider than the scrollport minus one channel
   covers the Mobile checkbox at EVERY scroll position, including the last -
   so the fix above would have left the exact column it exists to reach
   unreachable:

       scrollport   sticky Activity   Mobile lands at
         204px          254px            x 146-194      covered
         282px          254px            x 224-272      covered

   THE TRIGGER IS THE CARD'S WIDTH, NOT THE WINDOW'S, which is why the first
   attempt at this - a `max-width:520px` media query - was wrong rather than
   merely incomplete. At a 900px window with the sidebar expanded, the card is
   about 204px wide while the viewport is nowhere near 520, so a viewport query
   never fires and the checkbox stays buried. A container query asks the
   question that actually decides it, and then holds however the card is
   placed: narrow column, wide column, framed, or stacked on a phone.
   Capping Activity at 120px and the row at 300px clears Mobile by 26px even in
   the 204px case. Labels wrap more there; a wrapped label beats a checkbox
   nobody can tap.
   The media query stays as well, so a browser without container query support
   still gets the phone case right - the two agree wherever both apply.
   The padding stays on the end cells in both - a padding shorthand on the row
   would put the gutter back and let the rows scroll visibly through it. */
@container (max-width:340px) {
  .notif-row { grid-template-columns:minmax(0,120px) repeat(3, 48px); min-width:300px; padding:10px 0; font-size:13px; }
  .notif-row > :first-child { padding-left:10px; }
  .notif-row > :last-child { padding-right:10px; }
}
@media (max-width:520px) {
  .notif-row { grid-template-columns:minmax(0,120px) repeat(3, 48px); min-width:300px; padding:10px 0; font-size:13px; }
  .notif-row > :first-child { padding-left:10px; }
  .notif-row > :last-child { padding-right:10px; }
}

/* Admin approvals: Approved chip, Add to public directory, Live */
.ar-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ar-done { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px; border-radius:999px; background:var(--blue-bg); color:var(--blue); font-size:13px; font-weight:700; }
/* A private House never goes live (Hannita, 15 Oct) */
#pPrivateRow .p-for-note { margin:6px 0 0 28px; }
/* Indented under its label like the private one, a step lighter and slightly
   smaller (Paola, 19 Oct) - scoped here so the other two notes, which are
   short, keep the weight they had. */
#pSampleRow .p-for-note { margin:5px 0 0 28px; font-size:12.5px; color:var(--faint); }
.ar-private { display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:13px; font-weight:600; }
.ar-golive svg, .ar-live svg { vertical-align:-3px; margin-right:2px; }
.ar-live { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px; border-radius:999px; background:#1E3A24; color:#F3EDDC; font-size:13px; font-weight:700; text-decoration:none; }
.ar-live:hover { background:#2F5A37; }
.ar-live::before { content:""; width:7px; height:7px; border-radius:999px; background:#7BD88F; box-shadow:0 0 0 3px rgba(123,216,143,.25); }
.detail-admin { display:flex; flex-direction:column; gap:8px; margin:0 44px 16px 0; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--cream); }

/* Use the whole screen (Hannita, 8 Oct). The original Host Hub capped the
   content column at 1100px, which left a wide empty band on big monitors and
   squeezed filter bars and card grids into wrapping. The column now grows
   with the window up to a comfortable reading limit. */
.main { max-width:1680px; }

/* Space and Library pages: the column is wider now, so on big screens keep
   the header clear of the fixed search / bell / messages / profile buttons
   while still lining up with them. */
@media (min-width:1761px) { #view-space, #view-library { padding-right:300px; } }

/* Phone number with a country code in front (Hannita, 8 Oct) */
.phone-field { display:flex; gap:8px; min-width:0; }
.phone-field select { flex:0 0 112px; width:112px !important; min-width:0; }
.phone-field input { flex:1 1 auto; min-width:0; }

/* Thank-you / confirmation pop-up */
#noticeOverlay { z-index:1200; }
.notice-box { max-width:440px; text-align:center; padding:34px 30px 28px; }
.notice-icon { width:56px; height:56px; margin:0 auto 14px; border-radius:999px; background:#1E3A24; color:#E9C46A; display:flex; align-items:center; justify-content:center; }
.notice-box h2 { font-family:'Bellefair', serif; font-weight:400; font-size:28px; line-height:1.1; margin:0 0 10px; }
.notice-body { color:var(--muted); font-size:14px; line-height:1.55; margin:0 0 22px; }
.notice-actions { display:flex; flex-direction:column; gap:8px; }
.notice-actions .btn { width:100%; text-decoration:none; text-align:center; justify-content:center; }

/* Host Hub right column: Welcome kit, then Ask a pastor (Hannita, 8 Oct) */
.hub-widgets { display:flex; flex-direction:column; gap:14px; min-width:0; }
.hub-widgets .resource-card { width:100%; }

/* House pop-up (Hannita, 8 Oct): option A's fact tiles with option B's round
   icons, and the admin decision in a darker band at the bottom. */
#detailOverlay > .panel { width:min(760px,100%); }
.dt-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-right:44px; }
/* The House's name in regular Archivo, like every title (Hannita, 15 Oct) */
.dt-head h2 { margin:0; font-family:var(--sans); font-weight:700; font-stretch:100%; font-size:30px; line-height:1.08; letter-spacing:-.015em; }
.dt-desc { margin:0 0 18px; font-size:15px; line-height:1.55; color:var(--ink); white-space:pre-line; }
.dt-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
.dt-tile { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:12px; background:color-mix(in srgb, var(--ink) 5%, transparent); min-width:0; }
.dt-icon { flex:0 0 32px; width:32px; height:32px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--ink) 9%, transparent); color:var(--ink); }
.dt-text { min-width:0; }
.dt-label { font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); }
.dt-value { font-size:15px; font-weight:700; margin-top:3px; overflow-wrap:anywhere; }
.dt-sub { font-size:13px; color:var(--muted); margin-top:2px; overflow-wrap:anywhere; }
.dt-sub a { color:inherit; text-decoration:underline; }
@media (max-width:640px) { .dt-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:340px) { .dt-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .dt-tile { padding:10px 11px; gap:8px; } .dt-icon { flex-basis:28px; width:28px; height:28px; } }
#detailContent .detail-admin { position:sticky; bottom:-32px; z-index:2; flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:22px 0 0; padding:12px 14px 12px 18px; border:0; border-radius:14px; background:color-mix(in srgb, var(--ink) 10%, var(--cream)); box-shadow:0 -8px 18px color-mix(in srgb, var(--cream) 80%, transparent); }
#detailContent .detail-admin .eyebrow { color:#B88A1E; }
#detailContent .detail-admin .ar-actions { margin:0; }
#detailContent .detail-admin .btn.secondary { background:var(--white); }

/* In-app dialog (replaces the browser's alert / confirm / prompt boxes) */
.app-dialog-overlay { position:fixed; inset:0; z-index:1400; background:rgba(23,42,27,.38); display:flex; align-items:center; justify-content:center; padding:20px; animation:appDialogFade .14s ease; }
.app-dialog { width:min(440px,100%); background:var(--cream); border-radius:18px; box-shadow:0 24px 60px rgba(23,42,27,.3); padding:26px 26px 22px; }
.app-dialog h2 { margin:0 0 8px; font-family:'Bellefair', serif; font-weight:400; font-size:26px; line-height:1.15; }
.app-dialog-body { margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.55; white-space:pre-line; }
.app-dialog-input { width:100%; box-sizing:border-box; border:1px solid var(--line); border-radius:12px; padding:12px 14px; font:inherit; font-size:15px; background:var(--white); color:var(--ink); resize:vertical; margin-bottom:16px; }
.app-dialog-input:focus { outline:2px solid #B88A1E; outline-offset:1px; }
.app-dialog-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.app-dialog-actions .btn { width:auto; padding:10px 20px; }
.app-dialog .btn.danger { background:#9B2C22; border-color:#9B2C22; color:#fff; }
@keyframes appDialogFade { from { opacity:0; } to { opacity:1; } }

/* View as: the selected view gets a check and a soft highlight (Hannita, 8 Oct) */
.viewas-options button.active { color:var(--ink); background:color-mix(in srgb, var(--ink) 7%, transparent); }
.viewas-options button.active::after { content:""; width:14px; height:14px; flex:0 0 14px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; }
/* The preview banner stays clear of the top-right buttons */
@media (min-width:761px) { .mode-banner { margin-right:min(380px, 34%); } }

/* Messages "Assign to": a proper app dropdown, not the browser's default */
.assign-row select { -webkit-appearance:none; appearance:none; height:40px; padding:0 40px 0 16px; border:1px solid var(--line); border-radius:999px; background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; font-size:14px; font-weight:600; color:var(--ink); cursor:pointer; box-shadow:none; }
.assign-row select:hover { border-color:color-mix(in srgb, var(--ink) 30%, var(--line)); }
.assign-row select:focus { outline:none; border-color:#B88A1E; box-shadow:0 0 0 3px color-mix(in srgb, #E9C46A 35%, transparent); }
.assign-row label { font-size:11px; letter-spacing:.14em; color:#8A7A4E; }

/* Status: approved but not yet in the public directory */
.tag-approved-soft { background:color-mix(in srgb, var(--tag-approved-bg, #DCEBDD) 70%, transparent); color:var(--tag-approved-fg, #1E3A24); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--tag-approved-fg, #1E3A24) 25%, transparent); }
.dir-status.st-approved-soft { background:transparent; color:#1E3A24; box-shadow:inset 0 0 0 1.5px #1E3A24; }

/* ---------- My House dashboard (Hannita, 8 Oct) ---------- */
.mhd-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:22px; }
.mhd-title { min-width:0; }
.mhd-title h1 { margin:4px 0 10px; }
.mhd-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; color:var(--muted); }
.mhd-meta > span:not(.tag) + span:not(.tag)::before { content:"·"; margin-right:8px; }
.mhd-head-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mhd-head-actions .btn { display:inline-flex; align-items:center; gap:6px; }
.mhd-switch { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#8A7A4E; }
.mhd-switch select { -webkit-appearance:none; appearance:none; height:38px; max-width:260px; padding:0 36px 0 14px; border:1px solid var(--line); border-radius:999px; background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 15px; font:inherit; font-size:14px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--ink); }
.mhd-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:18px; align-items:start; }
.mhd-col { display:flex; flex-direction:column; gap:18px; min-width:0; }
.mhd-card { background:var(--white); border:1px solid var(--line); border-radius:18px; padding:20px 22px; min-width:0; }
.mhd-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.mhd-card-head h3 { margin:0; font-size:16px; }
.mhd-card-head .btn { display:inline-flex; align-items:center; gap:6px; }
.mhd-card-head { flex-wrap:wrap; }
.mhd-card-acts { display:inline-flex; gap:8px; flex-wrap:wrap; }
.mhd-muted { color:var(--muted); font-size:13px; line-height:1.5; }
.mhd-next-card { padding:0; border:0; background:none; }
.mhd-next-card .mh-next { margin:0; }
.mhd-actions { display:flex; flex-direction:column; gap:10px; padding:14px; }
.mhd-action { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; cursor:pointer; transition:background .15s ease, transform .15s ease; }
.mhd-action:hover { background:color-mix(in srgb, var(--ink) 5%, transparent); }
.mhd-action b { display:block; font-size:15px; }
.mhd-action small { display:block; font-size:12.5px; color:var(--muted); margin-top:2px; }
.mhd-action-ic { flex:0 0 38px; width:38px; height:38px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--ink) 8%, transparent); }
.mhd-action.primary { background:#1E3A24; border-color:#1E3A24; color:#F3EDDC; }
.mhd-action.primary small { color:#C9D2C3; }
.mhd-action.primary .mhd-action-ic { background:#E9C46A; color:#172A1B; }
.mhd-action.primary:hover { background:#24452B; }
.mhd-cal { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.mhd-date { display:flex; flex-direction:column; align-items:center; padding:10px 6px; border-radius:12px; background:color-mix(in srgb, var(--ink) 5%, transparent); text-align:center; }
.mhd-date .mo { font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#B88A1E; }
.mhd-date .dd { font-family:'Bellefair', serif; font-size:30px; line-height:1.05; }
.mhd-date .wd { font-size:12px; color:var(--muted); }
.mhd-date.next { background:#1E3A24; color:#F3EDDC; }
.mhd-date.next .mo { color:#E9C46A; }
.mhd-date.next .wd { color:#C9D2C3; }
.mhd-att { display:flex; flex-direction:column; gap:10px; }
.mhd-bar-row { display:grid; grid-template-columns:110px minmax(0,1fr) 92px; align-items:center; gap:12px; font-size:14px; }
.mhd-bar-date { color:var(--muted); }
.mhd-bar { height:12px; border-radius:999px; background:color-mix(in srgb, var(--ink) 7%, transparent); overflow:hidden; }
.mhd-bar span { display:block; height:100%; border-radius:999px; background:#1E3A24; }
.mhd-bar-n b { font-size:16px; }
.mhd-bar-n small { color:#B88A1E; font-weight:700; }
.mhd-people { display:flex; flex-direction:column; }
.mhd-person { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.mhd-person:first-child { border-top:0; }
.mhd-person-text { flex:1; min-width:0; }
.mhd-person-text b { display:block; font-size:14px; }
.mhd-person-text span { display:block; font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mhd-person .btn { width:auto; }
/* A clickable row is a <div role="button"> here, never a real <button>: a
   button draws its own grey face, its own border and centres its text, which
   turned a clean list into five boxed slabs. So there is NO box to style —
   only the cursor, a quiet hover and a focus ring for the keyboard. */
.mhd-person[role="button"] { cursor:pointer; }
.mhd-person[role="button"]:hover { background:var(--cream); }
.mhd-person[role="button"]:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.mhd-tag { font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; background:#1E3A24; color:#F3EDDC; white-space:nowrap; }
.mhd-tag.soft { background:color-mix(in srgb, #E9C46A 45%, transparent); color:#5A4410; }
.mhd-note { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:baseline; padding:10px 0; border-top:1px solid var(--line); }
.mhd-note:first-child { border-top:0; }
.mhd-note p { margin:0; font-size:14px; line-height:1.5; white-space:pre-line; }
.mhd-note-kind { font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; padding:4px 9px; border-radius:999px; }
.mhd-note-kind.win { background:#DCEBDD; color:#1E3A24; }
.mhd-note-kind.prayer { background:#F6E7B8; color:#7A5A0E; }
.mhd-note-kind.follow { background:#F4DCCB; color:#8A3B12; }
.mhd-empty { max-width:640px; margin:8px 0 0; padding:44px 40px 40px; background:var(--white); border:1px solid var(--line); border-radius:24px; text-align:center; box-shadow:0 1px 2px rgba(23,42,27,.04); }
.mhd-empty-mark { display:inline-flex; align-items:center; justify-content:center; width:76px; height:76px; border-radius:20px; background:#1E3A24; color:#E9C46A; margin-bottom:20px; }
.mhd-empty-mark svg { width:30px; height:44px; }
.mhd-empty h2 { font-family:var(--display); font-weight:400; font-size:32px; line-height:1.1; margin:0 0 10px; color:var(--ink); }
.mhd-empty > p { margin:0 auto 26px; max-width:430px; font-size:15px; line-height:1.6; color:var(--muted); }
.mhd-empty-list { list-style:none; margin:0 0 30px; padding:0; display:grid; gap:10px; text-align:left; }
.mhd-empty-list li { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--cream); }
.mhd-empty-list li > svg { flex:0 0 auto; color:var(--gold); }
.mhd-empty-list span { display:flex; flex-direction:column; gap:2px; font-size:13px; color:var(--muted); }
.mhd-empty-list b { font-size:14px; color:var(--ink); }
.mhd-empty-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.mhd-empty-actions .btn { width:auto; }
@media (max-width:560px) { .mhd-empty { padding:32px 20px 24px; border-radius:20px; } .mhd-empty-actions .btn { width:100%; } }
/* Dialogs used by My House (report form, generated report, add member) */
.app-dialog.mhd-dialog { width:min(560px,100%); max-height:90vh; overflow-y:auto; }
.app-dialog.mhd-dialog.wide { width:min(680px,100%); }
.mhd-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.mhd-form label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; color:var(--muted); }
.mhd-form .full { grid-column:1 / -1; }
.mhd-form input:not([type=checkbox]), .mhd-form select, .mhd-form textarea { border:1px solid var(--line); border-radius:12px; padding:11px 13px; font:inherit; font-size:15px; font-weight:400; background:var(--white); color:var(--ink); }
.mhd-form input:focus, .mhd-form select:focus, .mhd-form textarea:focus { outline:2px solid #B88A1E; outline-offset:1px; }
.mhd-form label.check { flex-direction:row; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--ink); }
.mhd-form label.check input { width:18px; height:18px; accent-color:#1E3A24; }
.mhd-form-msg { margin:0; color:#9B2C22; font-size:13px; }
.mhd-search { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:999px; padding:0 16px; background:var(--white); color:var(--muted); margin-bottom:12px; }
.mhd-search input { flex:1; border:0; background:transparent; padding:12px 0; font:inherit; font-size:15px; color:var(--ink); outline:none; }
.mhd-results { max-height:320px; overflow-y:auto; margin-bottom:14px; }
.mhd-not-found { display:block; width:100%; margin-top:8px; padding:12px; border:1px dashed var(--line); border-radius:12px; background:none; color:var(--muted); font:inherit; font-size:14px; cursor:pointer; }
.mhd-not-found b { color:var(--ink); }
.mhd-create h3 { margin:0 0 12px; font-size:16px; }
.mhd-stats { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; margin:6px 0 16px; }
.mhd-stats div { padding:12px; border-radius:12px; background:color-mix(in srgb, var(--ink) 5%, transparent); }
.mhd-stats b { display:block; font-family:'Bellefair', serif; font-size:30px; line-height:1; font-weight:400; }
.mhd-stats span { font-size:12px; color:var(--muted); }
.mhd-table { width:100%; border-collapse:collapse; font-size:14px; margin-bottom:12px; }
.mhd-table th, .mhd-table td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); }
.mhd-table th { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.mhd-print h3 { font-size:15px; margin:14px 0 6px; }
.mhd-print ul { margin:0; padding-left:18px; font-size:14px; line-height:1.55; }
.mhd-toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:1500; background:#1E3A24; color:#F3EDDC; padding:12px 20px; border-radius:999px; font-size:14px; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.2); }
@media print {
  body.printing-house-report > *:not(.app-dialog-overlay) { display:none !important; }
  body.printing-house-report .app-dialog-overlay { position:static; background:none; padding:0; }
  body.printing-house-report .app-dialog { box-shadow:none; width:100%; max-height:none; }
  body.printing-house-report .app-dialog-actions { display:none; }
}
@media (max-width:900px) { .mhd-grid { grid-template-columns:1fr; } .mhd-side { order:-1; } }
@media (max-width:560px) {
  .mhd-cal { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .mhd-bar-row { grid-template-columns:72px minmax(0,1fr) 70px; gap:8px; }
  .mhd-stats { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .mhd-form { grid-template-columns:1fr; }
  .mhd-head-actions { width:100%; }
}
.mhd-title h1 { font-family:'Bellefair', serif; font-weight:400; font-size:clamp(34px,4.4vw,54px); line-height:1.02; letter-spacing:.01em; }
.mhd-avatar { flex:0 0 36px; width:36px; height:36px; border-radius:999px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#DCEBDD; color:#1E3A24; font-size:12px; font-weight:700; }
.mhd-avatar img { width:100%; height:100%; object-fit:cover; }
.mhd-card-head .btn { white-space:nowrap; }
/* My House: the House switcher is the app's own dropdown */
.mhd-switch { display:flex; align-items:center; gap:8px; }
.mhd-switch-lbl { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#8A7A4E; }
.mhd-dd { position:relative; }
.mhd-dd-btn { display:flex; align-items:center; gap:10px; height:40px; max-width:300px; padding:0 14px 0 16px; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--ink); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.mhd-dd-btn span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mhd-dd-btn svg { flex:0 0 auto; color:var(--muted); }
.mhd-dd-btn:hover { border-color:color-mix(in srgb, var(--ink) 30%, var(--line)); }
.mhd-dd-btn[aria-expanded="true"] { border-color:#B88A1E; box-shadow:0 0 0 3px color-mix(in srgb, #E9C46A 35%, transparent); }
.mhd-dd-menu { position:absolute; right:0; top:calc(100% + 8px); z-index:40; min-width:min(360px, 86vw); max-height:360px; overflow-y:auto; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 18px 44px rgba(23,42,27,.2); }
.mhd-dd-opt { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:10px 12px; border:0; border-radius:10px; background:transparent; color:var(--ink); font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.mhd-dd-opt:hover, .mhd-dd-opt:focus { background:color-mix(in srgb, var(--ink) 6%, transparent); outline:none; }
.mhd-dd-opt.on { background:color-mix(in srgb, #E9C46A 25%, transparent); font-weight:700; }
.mhd-dd-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mhd-dd-opt .tag { flex:0 0 auto; }
@media (max-width:560px) { .mhd-dd-menu { left:0; right:auto; } }
.mhd-dd-btn, .mhd-dd-menu { text-transform:none; letter-spacing:0; }

/* ---------- App-styled dropdowns (host/selects.js), Hannita 8 Oct ---------- */
/* Closed state: every select gets the app's chevron and gold focus ring
   instead of the browser's own control and blue outline. */
#appView select:not([multiple]), .overlay select:not([multiple]), .app-dialog select:not([multiple]), .ci-sheet select:not([multiple]) {
  -webkit-appearance:none; appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:15px; padding-right:38px;
}
#appView select:focus, .overlay select:focus, .app-dialog select:focus, .ci-sheet select:focus, #appView select[data-xs-open] { outline:none; border-color:#B88A1E; box-shadow:0 0 0 3px color-mix(in srgb, #E9C46A 35%, transparent); }
.xs-menu { position:fixed; z-index:1600; max-height:min(360px, 60vh); overflow-y:auto; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 18px 44px rgba(23,42,27,.2); font-family:'Archivo', sans-serif; animation:xsIn .12s ease; }
.xs-opt { display:flex; align-items:center; gap:8px; width:100%; padding:9px 12px 9px 8px; border:0; border-radius:10px; background:transparent; color:var(--ink); font:inherit; font-size:14px; text-align:left; cursor:pointer; white-space:nowrap; }
.xs-opt:hover, .xs-opt:focus { background:color-mix(in srgb, var(--ink) 6%, transparent); outline:none; }
.xs-opt.on { font-weight:700; background:color-mix(in srgb, #E9C46A 22%, transparent); }
.xs-opt[disabled] { opacity:.45; cursor:default; }
.xs-check { flex:0 0 16px; width:16px; height:16px; }
.xs-opt.on .xs-check { background:#1E3A24; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.xs-group { padding:10px 12px 4px; font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#8A7A4E; }
@keyframes xsIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

/* Sidebar: the collapse button sits level with the MOSAIC wordmark (Hannita, 8 Oct) */
@media (min-width:761px) {
  .sb-head { align-items:center; margin-bottom:24px; }
  .sb-head .sb-word { padding-bottom:0; }
  .sb-head .sb-toggle { margin-top:0; }
}
/* My House: feedback when a House wasn't approved (Hannita, 8 Oct) */
.mhd-feedback { display:flex; gap:16px; align-items:flex-start; margin:0 0 18px; padding:20px 22px; border-radius:18px; background:#FBEDEB; border:1px solid #E8B4AE; color:#3A1E1A; }
.mhd-feedback-ic { flex:0 0 40px; width:40px; height:40px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#9B2C22; color:#fff; font-size:18px; }
.mhd-feedback .eyebrow { color:#9B2C22; margin:0; }
.mhd-feedback h3 { margin:4px 0 6px; font-size:17px; }
.mhd-feedback p { margin:0 0 14px; font-size:15px; line-height:1.55; white-space:pre-line; }
.mhd-feedback-actions { display:flex; gap:8px; flex-wrap:wrap; }
.mhd-feedback-actions .btn { width:auto; }
/* My House: where the House stands with the public directory */
.mhd-stage { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 18px; padding:14px 18px; border-radius:16px; border:1px solid var(--line); background:var(--white); }
.mhd-stage p { flex:1 1 280px; margin:0; font-size:14px; line-height:1.5; color:var(--ink); }
.mhd-stage-dot { flex:0 0 10px; width:10px; height:10px; border-radius:999px; background:#B88A1E; }
.mhd-stage.st-live .mhd-stage-dot { background:#2E7D4F; box-shadow:0 0 0 4px rgba(46,125,79,.15); }
.mhd-stage.st-approved { background:color-mix(in srgb, #E9C46A 14%, var(--white)); border-color:#E1CF95; }
.mhd-stage.st-review { background:color-mix(in srgb, #E9C46A 8%, var(--white)); }
.mhd-stage-actions { display:flex; gap:8px; flex-wrap:wrap; }
.mhd-stage-actions .btn { width:auto; display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
/* CCB suggestions under the invite name field */
.ccb-suggest { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:60; max-height:320px; overflow-y:auto; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 16px 40px rgba(23,42,27,.18); }
.ccb-note { padding:8px 10px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#8A7A4E; }
.ccb-note.ccb-warn { margin:2px 0 4px; padding:9px 11px; border-radius:10px; background:#F6E3C2; color:#7A4A12; font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; }
@media (min-width:761px) { #inviteAdminEmail ~ .ccb-suggest { left:auto; width:max(100%, 380px); } }
.ccb-opt { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border:0; border-radius:10px; background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.ccb-opt:hover, .ccb-opt:focus { background:color-mix(in srgb, var(--ink) 6%, transparent); outline:none; }
.ccb-text { min-width:0; }
.ccb-text b { display:block; font-size:14px; }
.ccb-text small { display:block; font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Bell: when each notification came in (Hannita, 8 Oct) */
.bell-time { align-self:flex-start; margin-top:4px; padding:2px 9px; border-radius:999px; background:color-mix(in srgb, var(--ink) 7%, transparent); color:var(--muted); font-size:11px !important; font-weight:600; line-height:1.6; }
/* Host Hub → My House card: the House's name in Archivo (Hannita, 8 Oct) */
.mh-title { font-family:'Archivo', sans-serif !important; font-weight:400 !important; font-stretch:100%; letter-spacing:-.01em; }

/* Page titles in regular Archivo (Hannita, 8 Oct: "page title needs to be in
   Archivo"). Replaces Bellefair, which Austin set as the display face on 7 Oct
   (#8), for the big title on each tab and every space and post title ("all the
   space titles need to be Archivo") — section heads and dialogs keep it. */
:root .topbar h1, :root .mhd-title h1, :root #view-library h1, :root .lib-book h1, :root .sp-head h1,
:root .sp-post-title, :root .sp-latest-title, :root .sp-pm-head h2 {
  font-family:'Archivo', sans-serif; font-weight:400; font-stretch:100%; letter-spacing:-.015em;
}

/* ---------- Phone pass (Hannita, 8 Oct night: "make sure nothing is overlapping
   or taking up too much space so we can get to the content") ---------- */
@media (max-width:760px) {
  /* Notifications open inside the screen instead of hanging off the left edge */
  .bell-panel { left:12px !important; right:12px !important; width:auto; max-height:calc(100dvh - 80px); }

  /* Host Hub: less air between sections; the two widgets sit side by side */
  .section-head { margin:22px 0 10px; }
  .two-col { gap:8px; }
  .hub-widgets { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .hub-widgets > .section-head { grid-column:1 / -1; }
  .hub-widgets .resource-card { padding:14px; gap:4px; }
  .hub-widgets .resource-card .desc { font-size:12.5px; }
  .hub-widgets .resource-card .note { display:none; }

  /* House Directory: link stays on the subtitle line, filters take fewer rows */
  .dir-public { margin-left:0; }
  .dir-bar .dir-pill { height:38px; padding:0 26px 0 12px; background-position:right 9px center; }
  .dir-bar .dir-host { height:38px; padding:0 16px; font-size:13px; }

  /* My House: next gathering first, then the actions, then the rest */
  .mhd-head { margin-bottom:14px; gap:12px; }
  .mhd-title h1 { margin:2px 0 8px; }
  .mhd-grid { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .mhd-col { display:contents; }
  .mhd-next-card { order:1; }
  .mhd-actions { order:2; }
  .mhd-side > .mhd-card:not(.mhd-actions) { order:3; }
  .mhd-col:not(.mhd-side) > .mhd-card:not(.mhd-next-card) { order:4; }
  .mhd-stage, .mhd-feedback { margin-bottom:12px; }
  .mhd-card { padding:16px; border-radius:16px; }
  .mhd-card.mhd-next-card { padding:0; }
  .banner { margin-bottom:6px; }
  .mhd-actions { padding:10px; gap:8px; }
  .mhd-action { padding:10px 12px; }
  .mhd-action-ic { flex-basis:34px; width:34px; height:34px; }
  /* Upcoming dates: one row you can swipe, not a two-row block */
  .mhd-cal { display:flex; gap:8px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; margin:0 -16px; padding:0 16px; }
  .mhd-cal::-webkit-scrollbar { display:none; }
  .mhd-date { flex:0 0 92px; scroll-snap-align:start; }
  .mhd-card-head { margin-bottom:10px; }
  /* Report form: the four number boxes in two columns */
  #mhdReportForm { grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  .mhd-form label, .mhd-form input:not([type=checkbox]), .mhd-form select, .mhd-form textarea { min-width:0; max-width:100%; box-sizing:border-box; }
  #mhdReportForm label:not(.full) { justify-content:space-between; }

  /* Pop-ups whose buttons sit at the bottom keep a solid bar behind them */
  .app-dialog { padding:22px 20px 18px; }
  .app-dialog.mhd-dialog { max-height:calc(100dvh - 32px); }
  .app-dialog.mhd-dialog .app-dialog-actions { position:sticky; bottom:-18px; margin:0 -20px -18px; padding:12px 20px 16px; background:var(--cream); border-top:1px solid var(--line); }

  /* Settings: fields stay inside their card */
  .profile-row input, .profile-row select { min-width:0; }
  .profile-row .pr-label { flex-basis:96px; }
}

/* ---------- Admin → Users: assigned campus, campus access, profile settings (9 Oct) ---------- */
.au-cell-select { min-width:150px; }
.au-access { font-size:13px; color:var(--muted); }
.au-access.all { color:var(--ink); font-weight:700; }
.hero-card.au-hero { position:relative; }
.au-gear-wrap { margin-left:auto; position:relative; align-self:flex-start; }
.au-gear { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--ink); cursor:pointer; transition:background .15s ease, border-color .15s ease; }
.au-gear:hover, .au-gear[aria-expanded="true"] { background:var(--cream); border-color:color-mix(in srgb, var(--ink) 30%, var(--line)); }
.au-gear:focus-visible { outline:2px solid #B88A1E; outline-offset:2px; }
.au-gear-menu { position:absolute; right:0; top:calc(100% + 8px); z-index:40; min-width:230px; padding:6px; background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 18px 44px rgba(23,42,27,.2); }
.au-gear-menu button { display:flex; align-items:center; gap:10px; width:100%; padding:10px 12px; border:0; border-radius:10px; background:transparent; color:var(--ink); font:inherit; font-size:14px; font-weight:600; text-align:left; cursor:pointer; }
.au-gear-menu button:hover, .au-gear-menu button:focus-visible { background:color-mix(in srgb, var(--ink) 6%, transparent); outline:none; }
.au-gear-menu svg { color:var(--muted); flex:0 0 auto; }
.app-dialog.au-perm { width:min(480px,100%); }
.au-perm .eyebrow { margin-bottom:2px; }
.au-perm-form { display:flex; flex-direction:column; gap:14px; margin-top:12px; }
.au-perm-form label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; color:var(--muted); }
.au-perm-form select { height:44px; padding:0 36px 0 14px; border:1px solid var(--line); border-radius:12px; background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 15px; -webkit-appearance:none; appearance:none; font:inherit; font-size:15px; font-weight:500; color:var(--ink); }
.au-perm-form select[hidden] { display:none; }
.au-perm-fixed { font-size:15px; font-weight:600; color:var(--ink); padding:4px 0; }
.au-perm-form small { font-size:12px; font-weight:400; color:var(--faint); }
.au-perm-msg { margin:0; color:#9B2C22; font-size:13px; }
.au-perm-msg:empty { display:none; }

/* Rejected House, opened by its own host: "Edit and resubmit" band (9 Oct) */
#detailContent .detail-resubmit { background:color-mix(in srgb, #E9C46A 22%, var(--cream)); }
.detail-resubmit .ar-note { margin:2px 0 0; font-size:13px; color:var(--muted); }

/* Hover explanations (tips.js, 9 Oct): the sidebar's forest pill, everywhere */
.app-tip { position:fixed; z-index:2000; max-width:260px; background:#1E3A24; color:#F3EDDC; font-family:'Archivo', sans-serif; font-size:13px; font-weight:600; line-height:1.35; padding:7px 12px; border-radius:10px; pointer-events:none; box-shadow:0 8px 20px rgba(23,42,27,.22); animation:appTipIn .12s ease; }
.app-tip::before { content:""; position:absolute; top:-4px; left:var(--arrow-x, 50%); width:10px; height:10px; margin-left:-5px; background:inherit; transform:rotate(45deg); border-radius:2px; }
.app-tip.up::before { top:auto; bottom:-4px; }
.app-tip[hidden] { display:none; }
@keyframes appTipIn { from { opacity:0; transform:translateY(-2px); } to { opacity:1; transform:none; } }
:root[data-theme="dark"] .app-tip { background:#E2B547; color:#1A1917; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-tip { background:#E2B547; color:#1A1917; } }
@media (prefers-reduced-motion:reduce) { .app-tip { animation:none; } }

/* Messages pop-out from the chat icon (Hannita, 9 Oct) — reuses the bell's
   panel, head and tabs; these are the conversation rows. */
.dm-panel .bell-list { padding:6px 8px 4px; }
.dm-row { position:relative; display:flex; align-items:center; gap:12px; width:100%; padding:10px; border:0; border-radius:12px; background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.dm-row:hover, .dm-row:focus-visible { background:var(--cream); outline:none; }
.dm-av { flex:0 0 40px; width:40px; height:40px; border-radius:999px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--blue-bg, #E5ECE3); color:var(--blue); font-size:14px; font-weight:700; }
.dm-av img { width:100%; height:100%; object-fit:cover; }
.dm-av.team { background:#1E3A24; color:#E9C46A; }
.dm-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; padding-right:14px; }
.dm-top { display:flex; align-items:baseline; gap:8px; }
.dm-top b { flex:1; min-width:0; font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-row.unread .dm-top b { font-weight:800; }
.dm-time { flex:none; font-size:12px; color:var(--faint, var(--muted)); }
.dm-snip { font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-row.unread .dm-snip { color:var(--ink); }
.dm-dot { position:absolute; right:10px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:999px; background:#B3261E; }
.dm-all { display:block; width:calc(100% - 16px); margin:2px 8px 10px; padding:10px; border:0; border-top:1px solid var(--line); border-radius:0 0 10px 10px; background:transparent; color:var(--blue); font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.dm-all:hover { background:var(--cream); }

/* First sign-in (Hannita, 8 Oct: "why is Robbie's view so clunky"): only the
   welcome and the setup card — no search, no "My Houses" heading, no
   "pending approvals" line for someone who has nothing yet. */
#view-home.first-run .topbar .sub, #view-home.first-run .search-box, #view-home.first-run .section-head, #view-home.first-run #homeGrid { display:none; }
#view-home.first-run #homeEmpty { padding:0; margin-top:8px; text-align:left; }
.setup-card { max-width:560px; padding:28px 30px; }
.setup-card > .sub { margin:6px 0 18px; }
.setup-form { display:flex; flex-direction:column; gap:14px; }
.setup-form label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:700; color:var(--muted); }
.setup-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.setup-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:4px; }
.setup-actions .win-msg { color:#B3261E; font-size:14px; }
@media (max-width:560px) { .setup-row { grid-template-columns:1fr; } .setup-card { padding:22px 18px; } }
.setup-actions .btn { width:auto; min-width:160px; }

/* Add a co-host (Hannita, 8 Oct): a + on "Hosted by" that shows on hover
   (always shown on touch screens), and an optional co-host on Propose. */
.dt-tile.dt-can-add { position:relative; }
.dt-add { position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; transform:scale(.9); transition:opacity .15s, transform .15s; }
.dt-tile.dt-can-add:hover .dt-add, .dt-add:focus-visible { opacity:1; transform:none; }
.dt-add:hover { background:#1E3A24; color:#F7F3EA; border-color:#1E3A24; }
@media (hover:none) { .dt-add { opacity:1; transform:none; } }
.cohost-form { display:flex; flex-direction:column; gap:12px; margin-top:6px; }
.cohost-form label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:700; color:var(--muted); }
.cohost-form input { min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--white); color:var(--ink); font:inherit; font-size:15px; }
.cohost-msg { margin:0; min-height:1em; color:#B3261E; font-size:13px; }
/* No CCB lookup on a Sample House, so no hint about one either. */
#proposeForm:has(#pSample:checked) .p-for-ccbhint { display:none; }
.cohost-msg:empty { display:none; }
.cohost-list:empty { display:none; }
.cohost-list-head { margin:4px 0 6px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.cohost-list ul { list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:6px; }
.cohost-list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; border:1px solid var(--line); border-radius:12px; font-size:14px; }
.cohost-list li span { min-width:0; overflow-wrap:anywhere; }
.p-cohost .p-optional { font-weight:500; text-transform:none; letter-spacing:0; color:var(--faint, var(--muted)); margin-left:6px; }
.p-cohost-note { margin:0 0 8px; font-size:13px; color:var(--muted); }
/* The legend under "Who is it for?" - "People in a country with no Mosaic
   Campus" under Online Community. Small and light, so it reads as a gloss on
   the choice rather than a second label (Paola, 21 Oct). */
/* "Who is it for?" drawn like "Type of House" (Paola, 21 Oct), so an option
   can carry its legend under it - which a native dropdown cannot. The real
   <select> stays underneath as the value, hidden. */
#pAudiencePicker { display:block; position:relative; }
#pAudiencePicker .cat-menu .cat-opt span { font-size:12px; font-weight:300; }
.p-aud-legend { margin:6px 2px 0; font-size:12px; font-weight:300; line-height:1.4; color:var(--muted); }
.p-future-warn { margin:8px 0 0; padding:9px 12px; border-radius:10px; font-size:12.5px; line-height:1.45; background:var(--tag-orange-bg); color:var(--tag-orange-fg); }
.tag-future-warn { background:var(--tag-orange-bg); color:var(--tag-orange-fg); }
.p-cohost-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.p-cohost-fields > div, .p-cohost-fields input { min-width:0; }
@media (max-width:560px) { .p-cohost-fields { grid-template-columns:1fr; } }
.p-cohost-fields input { width:100%; box-sizing:border-box; }
/* Propose a House: more co-hosts under the first (Paola, 11 Nov). */
#pCoMore:not(:empty) { margin-top:10px; }
#pCoAdd { display:block; margin-top:8px; }
#pCoMore .p-for-more-row { align-items:center; }

/* Propose a House for somebody else — admins only (Hannita, 8 Oct) */
.p-for { padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:color-mix(in srgb, var(--ink) 3%, transparent); }
.p-for-check { display:flex !important; align-items:center; gap:10px; font-size:15px !important; font-weight:700 !important; text-transform:none !important; letter-spacing:0 !important; color:var(--ink) !important; cursor:pointer; margin:0 !important; }
.p-for-check input { width:18px; height:18px; accent-color:#1E3A24; margin:0; }
.p-for-check.small { font-size:14px !important; font-weight:600 !important; margin-top:4px !important; }
.p-for-fields { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
.p-for-title { font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.p-for-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.p-for-grid > div { min-width:0; }
.p-for-grid input, .p-for-grid select { width:100%; box-sizing:border-box; }
.p-for-note { margin:0; font-size:13px; color:var(--muted); }
/* More co-hosts, in the admin's Leader and co-host box (Paola, 10 Nov). */
.p-for-more { display:flex; flex-direction:column; gap:10px; margin-top:-2px; }
.p-for-more-last { display:flex; gap:8px; align-items:center; }
.p-for-more-last input { flex:1 1 auto; min-width:0; }
.p-for-more-row input[readonly] { color:var(--muted); }
.p-for-more-x { flex:0 0 34px; width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:var(--white); color:var(--ink); font-size:18px; line-height:1; cursor:pointer; }
.p-for-more-add { align-self:flex-start; padding:4px 0; background:none; border:0; font:inherit; font-size:14px; font-weight:700; color:var(--blue); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
@media (max-width:560px) { .p-for-grid { grid-template-columns:1fr; } }
.p-for-grid select { min-height:47px; padding:11px 36px 11px 13px; border:1.5px solid var(--line); border-radius:8px; font:inherit; font-size:16px; background:var(--white); color:var(--ink); appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.p-for-title .p-optional { text-transform:none; letter-spacing:0; font-weight:500; }

/* RSVPs in the House pop-up (Hannita, 9 Oct) */
.dt-rsvps { margin-top:14px; padding:16px 18px; border-radius:14px; background:color-mix(in srgb, var(--ink) 5%, transparent); }
.dt-rsvp-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.dt-rsvp-head .dt-label { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); }
.dt-rsvp-n { min-width:22px; height:22px; padding:0 7px; border-radius:999px; background:#1E3A24; color:#F7F3EA; font-size:12px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.dt-rsvp-empty { font-size:14px; color:var(--muted); }
.dt-rsvp-list { display:flex; flex-direction:column; }
.dt-rsvp { display:flex; align-items:flex-start; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.dt-rsvp:first-child { border-top:0; padding-top:2px; }
.dt-rsvp-av { flex:0 0 34px; width:34px; height:34px; border-radius:999px; overflow:hidden; background:var(--blue-bg, #DCE2CC); color:var(--blue); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.dt-rsvp-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:14px; }
.dt-rsvp-text span { color:var(--muted); overflow-wrap:anywhere; }
.dt-rsvp-text a { color:inherit; }
.dt-rsvp-text .dt-rsvp-mail { background:none; border:0; padding:0; font:inherit; color:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.dt-rsvp-text em { color:var(--ink); font-size:13px; }
.dt-rsvp-when { flex:none; font-size:12px; color:var(--faint); padding-top:2px; }
.dt-fold { width:100%; border:0; background:none; padding:0; font:inherit; color:inherit; cursor:pointer; text-align:left; margin-bottom:0; }
.dt-fold .dt-chev { margin-left:auto; color:var(--muted); transition:transform .15s; }
.dt-fold[aria-expanded="true"] { margin-bottom:10px; }
.dt-fold[aria-expanded="true"] .dt-chev { transform:rotate(180deg); }
.dt-att-stats { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-bottom:14px; }
.dt-att-stat { display:flex; flex-direction:column; gap:2px; }
.dt-att-stat b { font-size:22px; line-height:1.1; color:var(--ink); }
.dt-att-stat b small { font-size:13px; font-weight:600; color:var(--muted); }
.dt-att-stat span { font-size:12.5px; color:var(--muted); }
.dt-att-fold { padding-top:12px; border-top:1px solid var(--line); }
.dt-att-table { width:100%; border-collapse:collapse; font-size:14px; }
.dt-att-table th, .dt-att-table td { padding:8px 0; border-top:1px solid var(--line); text-align:left; font-weight:400; }
.dt-att-table thead th { border-top:0; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); padding-top:0; }
.dt-att-table tbody th { font-weight:600; color:var(--ink); }
.dt-att-table .n { text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width:560px) { .dt-att-stats { grid-template-columns:repeat(2, 1fr); } }

/* Person panel (Hannita, 9 Oct) */
[data-person-house] { cursor:pointer; border-radius:12px; transition:background .12s; }
[data-person-house]:hover, [data-person-house]:focus-visible { background:color-mix(in srgb, var(--ink) 4%, transparent); outline:none; }
.pp-overlay { position:fixed; inset:0; z-index:120; background:rgba(23,42,27,.32); display:flex; justify-content:flex-end; }
.pp { position:relative; width:min(520px, 100vw); height:100%; overflow-y:auto; background:var(--white); box-shadow:-20px 0 50px rgba(23,42,27,.18); padding:30px 30px 40px; box-sizing:border-box; animation:ppIn .18s ease-out; }
@keyframes ppIn { from { transform:translateX(24px); opacity:.6; } to { transform:none; opacity:1; } }
.pp-close { position:absolute; top:18px; right:18px; width:38px; height:38px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink); font-size:20px; cursor:pointer; }
.pp-head { display:flex; align-items:center; gap:16px; padding-right:44px; }
.pp-av { flex:0 0 58px; width:58px; height:58px; border-radius:999px; overflow:hidden; background:var(--blue-bg, #DCE2CC); color:var(--blue); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }
.pp-name { margin:0; font-family:'Archivo', sans-serif; font-weight:500; font-size:24px; text-transform:uppercase; letter-spacing:.01em; line-height:1.15; }
.pp-contact { margin-top:4px; font-size:14px; color:var(--muted); overflow-wrap:anywhere; }
.pp-body { margin-top:22px; display:flex; flex-direction:column; gap:22px; }
.pp-chips { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.pp-chip { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:14px; background:var(--cream); border:1px solid var(--line); font-size:15px; font-weight:700; }
.pp-chip small { font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); }
.pp-sec { display:flex; flex-direction:column; gap:10px; }
.pp-sec-head { display:flex; align-items:baseline; gap:10px; }
.pp-sec-head h3 { margin:0; font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); }
.pp-count { margin-left:auto; font-size:12px; color:var(--faint); font-weight:700; }
.pp-list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.pp-row { display:flex; align-items:center; gap:10px; padding:11px 14px; border-top:1px solid var(--line); font-size:14px; }
.pp-row:first-child { border-top:0; }
.pp-row-main { flex:1; min-width:0; overflow-wrap:anywhere; }
.pp-row-main em { font-style:normal; color:var(--muted); }
.pp-when { flex:none; font-size:12px; color:var(--faint); }
.pp-pill { flex:none; padding:3px 10px; border-radius:999px; background:#1E3A24; color:#F7F3EA; font-size:11px; font-weight:700; letter-spacing:.04em; }
.pp-pill.soft { background:var(--cream); color:var(--ink); border:1px solid var(--line); }
.pp-pill.done { background:#DCEBDD; color:#1E3A24; }
.pp-more { display:none; }
.pp-showmore { align-self:flex-start; border:0; background:none; padding:0; font:inherit; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--blue); cursor:pointer; border-bottom:2px solid var(--gold); }
.pp-sub { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); margin-top:2px; }
.pp-gchips { display:flex; flex-wrap:wrap; gap:6px; }
.pp-gchip { padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--cream); font-size:13px; }
.pp-empty { margin:0; font-size:14px; color:var(--muted); }
.pp-note { padding:12px 14px; border-radius:12px; background:var(--cream); }
.pp-foot { padding-top:14px; border-top:1px solid var(--line); font-size:12px; color:var(--faint); }
.pp-loading { display:flex; align-items:center; gap:6px; font-size:14px; color:var(--muted); }
.pp-loading span { width:7px; height:7px; border-radius:999px; background:var(--gold); animation:ppDot 1s infinite ease-in-out; }
.pp-loading span:nth-child(2) { animation-delay:.15s; } .pp-loading span:nth-child(3) { animation-delay:.3s; margin-right:6px; }
@keyframes ppDot { 0%,80%,100% { opacity:.25; } 40% { opacity:1; } }
@media (max-width:560px) { .pp { padding:24px 18px 32px; } .pp-chips { grid-template-columns:1fr 1fr; } .pp-name { font-size:20px; } }

/* Leader and co-host on Edit House (admins, 9 Oct) */
.p-for-head { font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink); }

/* "Did this answer a request?" after adding a Library resource */
.nt-ready .nt-ready-list { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; margin:0 0 16px; }
.nt-ready-row { display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--white); cursor:pointer; }
.nt-ready-row input { width:18px; height:18px; margin-top:2px; accent-color:#1E3A24; flex:none; }
.nt-ready-row span { display:flex; flex-direction:column; gap:2px; min-width:0; }
.nt-ready-row small { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }

/* Admin → Notifications: one card per template */
.nt-list { display:flex; flex-direction:column; gap:14px; max-width:760px; }
.nt-group { margin:18px 0 2px; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.nt-group:first-child { margin-top:0; }
.nt-card { display:flex; flex-direction:column; gap:12px; padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.nt-card-head { display:flex; align-items:center; gap:10px; }
.nt-card .nt-label { flex:1; min-width:0; font-weight:700; font-size:16px; border:1px solid transparent; border-radius:8px; padding:6px 8px; margin-left:-8px; background:transparent; color:var(--ink); font-family:inherit; }
.nt-card .nt-label:hover, .nt-card .nt-label:focus { border-color:var(--line); background:var(--cream); outline:none; }
.nt-aud { flex:none; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:4px 10px; border-radius:999px; background:var(--cream); color:var(--muted); border:1px solid var(--line); }
.nt-card label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.nt-card label input, .nt-card label textarea { font:inherit; font-size:15px; letter-spacing:0; text-transform:none; font-weight:400; color:var(--ink); background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:10px 12px; resize:vertical; }
.nt-card label input:focus, .nt-card label textarea:focus { outline:2px solid #B88A1E; outline-offset:1px; }
.nt-fill { margin:0; font-size:13px; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.nt-chip { font:inherit; font-size:12px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; padding:3px 8px; border-radius:6px; border:1px solid var(--line); background:var(--cream); color:var(--ink); cursor:pointer; }
.nt-chip:hover { border-color:var(--ink); }
.nt-preview { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:12px; background:var(--cream); border:1px dashed var(--line); font-size:14px; }
.nt-preview span:last-child { color:var(--muted); font-size:13px; }
.nt-pv-label { font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); margin-bottom:2px; }
.nt-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.nt-actions .btn { width:auto; }
.nt-msg { margin-right:auto; font-size:13px; color:var(--muted); }
@media (max-width:560px) { .nt-card { padding:16px; } .nt-card-head { flex-wrap:wrap; } }
.p-for-check[hidden], .p-for-head[hidden] { display:none !important; }

/* "Something not working?" button and pop-up (9 Oct) */
.fb-fab { position:fixed; right:20px; bottom:20px; z-index:900; width:48px; height:48px; border-radius:50%; border:1px solid var(--line); background:var(--white); color:var(--ink); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(23,42,27,.16); cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.fb-fab:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(23,42,27,.22); }
.fb-fab:focus-visible { outline:2px solid #B88A1E; outline-offset:2px; }
.fb-fab[hidden] { display:none; }
.fb-dialog { position:relative; width:min(480px,100%); max-height:90vh; overflow-y:auto; }
.fb-x { position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:var(--white); color:var(--ink); font-size:20px; line-height:1; cursor:pointer; }
.fb-dialog h2 { padding-right:40px; }
.fb-drop { display:block; border:1.5px dashed var(--line); border-radius:14px; background:var(--white); padding:18px; text-align:center; cursor:pointer; margin-bottom:14px; }
.fb-drop.over, .fb-drop:focus-visible { border-color:var(--ink); outline:none; }
.fb-drop-empty { display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--muted); font-size:13px; }
.fb-drop-empty b { color:var(--ink); font-size:14px; }
.fb-drop-full { display:flex; flex-direction:column; align-items:center; gap:10px; }
.fb-drop-full[hidden], .fb-drop-empty[hidden] { display:none; }
.fb-drop-full img { max-width:100%; max-height:220px; border-radius:10px; border:1px solid var(--line); }
.fb-remove { font:inherit; font-size:13px; font-weight:700; background:none; border:none; color:var(--muted); text-decoration:underline; cursor:pointer; }
.fb-label { display:block; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.fb-mail { width:min(620px,100%); }
.fb-mail-meta { display:flex; flex-wrap:wrap; gap:6px 18px; margin:0 0 14px; font-size:13px; color:var(--muted); }
.fb-mail-meta b { color:var(--ink); margin-right:4px; }
.fb-mail-plabel { margin-top:16px; }
.fb-mail-status { font-weight:500; text-transform:none; letter-spacing:0; color:var(--muted); margin-left:6px; }
.fb-mail-preview { display:block; width:100%; height:420px; border:1px solid var(--line); border-radius:12px; background:#F7F3EA; }
.fb-mail { max-height:94vh; }
.fb-dialog textarea { width:100%; box-sizing:border-box; border:1px solid var(--line); border-radius:12px; padding:12px 14px; font:inherit; font-size:15px; background:var(--white); color:var(--ink); resize:vertical; }
.fb-dialog textarea:focus { outline:2px solid #B88A1E; outline-offset:1px; }
.fb-msg { min-height:18px; margin:6px 0 8px; font-size:13px; color:#9B2C22; }
.fb-list { display:flex; flex-direction:column; gap:12px; max-width:820px; }
.fb-card { display:flex; gap:16px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.fb-card.is-new { border-color:#B88A1E; }
.fb-card.is-focus { box-shadow:0 0 0 3px #B88A1E; transition:box-shadow .6s; }
@media (prefers-reduced-motion: reduce) { .fb-card.is-focus { transition:none; } }
.fb-shot { flex:none; width:140px; }
.fb-shot img { width:140px; max-height:160px; object-fit:cover; object-position:top; border-radius:10px; border:1px solid var(--line); display:block; }
.fb-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.fb-head { display:flex; justify-content:space-between; gap:10px; font-size:14px; }
.fb-head span { color:var(--muted); font-size:13px; white-space:nowrap; }
.fb-desc { margin:0; font-size:15px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.fb-none, .fb-meta { color:var(--muted); font-size:13px; }
.fb-meta { margin:0; }
.fb-status { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.fb-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.fb-reply { display:flex; flex-wrap:wrap; gap:8px; }
.fb-icon { width:36px; height:36px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.fb-icon:hover { background:var(--cream); }
.fb-icon:disabled { opacity:.5; cursor:default; }
.fb-status select { font:inherit; font-size:14px; text-transform:none; letter-spacing:0; font-weight:500; color:var(--ink); background:var(--cream); border:1px solid var(--line); border-radius:8px; padding:6px 10px; }
.fb-empty { display:flex; flex-direction:column; gap:4px; padding:28px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); font-size:14px; }
.fb-empty b { color:var(--ink); }
@media (max-width:560px) { .fb-fab { right:14px; bottom:14px; } .fb-card { flex-direction:column; } .fb-shot, .fb-shot img { width:100%; } }
/* Room under the last thing on a page so the feedback button never covers it. */
@media (max-width:560px) { #appView { padding-bottom:76px; } }
/* Welcome kit text boxes; the invite's copy icon sits beside its heading,
   plain, in the muted text colour (Paola, 14 Oct). */
.kit-head { font-weight:700; font-size:14px; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
.kit-copy-box { background:var(--cream); border-radius:8px; padding:12px 14px; font-size:13px; line-height:1.6; white-space:pre-wrap; }
.kit-copy-btn { display:inline-flex; align-items:center; gap:5px; height:22px; min-width:22px; justify-content:center; padding:0; border:0; background:none; color:var(--muted); cursor:pointer; font:inherit; font-size:12px; font-weight:700; border-radius:6px; }
.kit-copy-btn:hover, .kit-copy-btn:focus-visible { color:var(--ink); }
.kit-copy-btn.copied { color:var(--blue); }
/* "✓ Copied" for two seconds after a copy button copies (Paola, 14 Oct). */
.mh-copy-invite.copied, [data-mhd="copy-invite"].copied { background:var(--blue-fill); border-color:var(--blue-edge); color:var(--on-forest, #F3EDDC); }

/* ---------- Admin → Interests (Hannita, 15 Oct): the combined design ---------- */
#adminTabInterests { display:flex; flex-direction:column; gap:18px; }
#adminTabInterests[hidden] { display:none; }
.in-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px; }
.in-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.in-search { display:flex; align-items:center; gap:8px; height:42px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--faint); width:280px; max-width:100%; box-sizing:border-box; }
.in-search input { border:0; outline:0; background:transparent; font:inherit; font-size:15px; color:var(--ink); flex:1; min-width:0; }
.in-tools .filter { height:42px; margin:0; }
.in-tiles { display:flex; gap:10px; flex-wrap:wrap; }
.in-tile { display:flex; flex-direction:column; gap:2px; padding:12px 18px; border-radius:14px; background:var(--white); border:1px solid var(--line); min-width:120px; box-sizing:border-box; }
.in-tile span { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.in-tile b { font-size:26px; font-weight:700; line-height:1.15; color:var(--ink); }
.in-tile.dark { background:var(--blue-fill); border-color:var(--blue-edge); }
/* This week is a button now: it lights up the people it counts. The other two
   tiles are still plain, so these resets have to be harmless on a div. */
button.in-tile { font:inherit; color:inherit; text-align:left; cursor:pointer; }
button.in-tile:hover { border-color:color-mix(in srgb, var(--ink) 30%, var(--line)); }
.in-tile.on { box-shadow:0 0 0 2px var(--gold-soft); }
/* Lit and dim always travel together: the rim does the work on its own, so
   nobody is relying on the fade alone to tell which three these are. */
.in-card.lit { border-color:var(--blue-edge); box-shadow:0 0 0 2px var(--blue-edge); }
.in-card.dim { opacity:.38; }
.in-spot { font-size:13px; color:var(--muted); margin:0 0 12px; line-height:1.55; }
.in-tile.dark span { color:var(--gold-soft); }
.in-tile.dark b { color:var(--on-forest); }
.in-warn { margin:0; padding:10px 14px; border-radius:12px; background:var(--tag-yellow-bg); color:var(--tag-yellow-fg); font-size:13px; line-height:1.45; }
.in-board-wrap { overflow-x:auto; margin:0 -4px; padding:0 4px 6px; scroll-snap-type:x proximity; }
.in-board { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(232px, 1fr); gap:14px; align-items:start; }
.in-col { display:flex; flex-direction:column; gap:10px; background:color-mix(in srgb, var(--ink) 5%, var(--cream)); border-radius:16px; padding:12px; scroll-snap-align:start; min-width:0; }
.in-col-head { display:flex; justify-content:space-between; align-items:center; padding:2px 4px; }
.in-col-head b { font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink); }
.in-count { font-size:12px; font-weight:700; padding:2px 9px; border-radius:999px; background:var(--tag-neutral-bg); color:var(--tag-neutral-fg); }
.in-count-new { background:var(--blue-fill); color:var(--on-forest); }
.in-count-contacted { background:var(--tag-yellow-bg); color:var(--tag-yellow-fg); }
.in-count-invited, .in-count-account { background:var(--tag-blue-bg); color:var(--tag-blue-fg); }
.in-count-hosting { background:var(--blue-fill); color:var(--gold-soft); }
.in-col-body { display:flex; flex-direction:column; gap:10px; min-height:60px; border-radius:12px; transition:background .12s; }
.in-col-body.over { background:color-mix(in srgb, var(--blue) 10%, transparent); outline:2px dashed var(--blue-edge); outline-offset:2px; }
.in-card { position:relative; background:var(--white); border:1px solid var(--line); border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:5px; cursor:pointer; text-align:left; }
.in-card:hover { border-color:color-mix(in srgb, var(--ink) 25%, var(--line)); }
.in-card:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.in-card.unread { border:2px solid var(--blue-edge); padding:11px; box-shadow:0 6px 18px rgba(30,58,36,.12); }
.in-card.dragging { opacity:.45; }
.in-card-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.in-card-top b { font-size:14px; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.in-card-age { font-size:11.5px; color:var(--faint); flex:0 0 auto; }
.in-reply { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; color:var(--danger); flex:0 0 auto; }
.in-reply span { width:7px; height:7px; border-radius:50%; background:var(--danger); }
.in-card-line { font-size:12.5px; color:var(--muted); line-height:1.35; }
.in-card-nudge { font-size:11.5px; font-weight:600; color:var(--gold); }
.in-card-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:11px; color:var(--faint); margin-top:2px; }
.in-card-foot > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.in-move { flex:0 0 auto; border:1px solid var(--line); background:transparent; color:var(--ink); border-radius:999px; padding:5px 10px; font:700 11px var(--sans); cursor:pointer; min-height:30px; }
.in-move:hover { background:var(--cream); }
.in-empty { margin:0; padding:10px 4px; font-size:12.5px; color:var(--faint); }
.in-more, .in-link { all:unset; cursor:pointer; font-size:12.5px; font-weight:600; color:var(--blue); padding:2px 4px; }
.in-more:hover, .in-link:hover { text-decoration:underline; }
.in-menu { position:fixed; z-index:1700; width:180px; background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 32px rgba(23,42,27,.2); padding:6px; display:flex; flex-direction:column; }
.in-menu-label { font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); padding:6px 8px 4px; }
.in-menu button { text-align:left; border:0; background:transparent; border-radius:8px; padding:10px 8px; font:500 14px var(--sans); color:var(--ink); cursor:pointer; }
.in-menu button:hover, .in-menu button:focus-visible { background:var(--cream); outline:none; }
.in-menu button.on { background:color-mix(in srgb, var(--ink) 7%, transparent); font-weight:700; }
.in-menu button.sep { border-top:1px solid var(--line); border-radius:0 0 8px 8px; color:var(--muted); }
.in-foot { display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:var(--muted); background:var(--white); border:1px solid var(--line); border-radius:14px; padding:12px 16px; }
.in-foot p { margin:0; line-height:1.5; }
.in-foot b { color:var(--ink); }
.in-sync { color:var(--faint); }

.in-back { align-self:flex-start; }
.in-person { display:flex; flex-wrap:wrap; gap:18px; align-items:flex-start; }
.in-side { flex:1 1 340px; max-width:400px; min-width:0; display:flex; flex-direction:column; gap:14px; }
.in-pcard, .in-notes, .in-main { background:var(--white); border:1px solid var(--line); border-radius:18px; box-sizing:border-box; }
.in-pcard { padding:22px; display:flex; flex-direction:column; gap:16px; }
.in-avatar { width:64px; height:64px; border-radius:50%; background:var(--tag-blue-bg); color:var(--tag-blue-fg); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; }
/* Titles in regular Archivo, like every page title (Hannita, 8 Oct). */
.in-name { margin:0; font-family:var(--sans); font-weight:400; font-size:30px; line-height:1.1; letter-spacing:-.015em; color:var(--ink); }
.in-sub { margin:4px 0 0; font-size:13px; color:var(--muted); }
.in-label { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.in-status { display:flex; flex-direction:column; gap:7px; }
.in-seg { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:4px; }
.in-seg button { border:0; border-radius:10px; padding:10px 2px; min-height:40px; background:color-mix(in srgb, var(--ink) 6%, transparent); color:var(--muted); font:600 11.5px var(--sans); cursor:pointer; }
.in-seg button.on { background:var(--blue-fill); color:var(--on-forest); font-weight:700; }
.in-hint { font-size:12px; color:var(--faint); line-height:1.4; }
.in-info { display:grid; grid-template-columns:auto 1fr; gap:8px 14px; margin:0; font-size:13.5px; }
.in-info dt { color:var(--faint); }
.in-info dd { margin:0; color:var(--ink); min-width:0; overflow-wrap:anywhere; }
.in-info a { color:var(--ink); }
.in-actions { display:flex; gap:8px; }
.in-actions .btn { flex:1; width:auto; border-radius:999px; text-transform:uppercase; letter-spacing:.08em; font-size:12px; min-height:46px; }
.in-actions .btn.secondary { flex:0 0 auto; }
.in-notes { padding:18px 20px; display:flex; flex-direction:column; gap:10px; }
.in-note { font-size:13.5px; line-height:1.5; color:var(--muted); display:flex; flex-direction:column; gap:2px; }
.in-note-who { font-size:11.5px; font-weight:600; color:var(--faint); }
.in-note-form { display:flex; flex-direction:column; gap:8px; }
.in-note-form textarea { border:1px solid var(--line); border-radius:12px; padding:10px 12px; font:14px/1.45 var(--sans); background:var(--cream); color:var(--ink); resize:vertical; }
.in-note-form .btn { align-self:flex-start; border-radius:999px; }
.in-main { flex:999 1 520px; min-width:0; padding:22px 24px; display:flex; flex-direction:column; gap:16px; }
.in-main-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.in-main-head h3 { margin:0; font-family:var(--sans); font-weight:400; font-size:24px; letter-spacing:-.01em; color:var(--ink); }
.in-main-head span { font-size:12px; color:var(--faint); }
.in-thread { display:flex; flex-direction:column; gap:14px; padding:18px; border-radius:14px; background:var(--cream); max-height:min(560px, 62vh); overflow-y:auto; }
.in-pill { align-self:center; font-size:12px; color:var(--muted); background:var(--white); border:1px solid var(--line); border-radius:999px; padding:6px 12px; text-align:center; }
.in-event { align-self:center; font-size:12px; color:var(--faint); text-align:center; }
.in-msg { max-width:72%; display:flex; flex-direction:column; gap:4px; }
.in-msg.out { align-self:flex-end; align-items:flex-end; }
.in-msg.in { align-self:flex-start; }
.in-bubble { padding:12px 15px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.in-msg.out .in-bubble { border-radius:18px 18px 4px 18px; background:var(--blue-fill); color:var(--on-forest); }
.in-msg.in .in-bubble { border-radius:18px 18px 18px 4px; background:var(--white); border:1px solid var(--line); color:var(--ink); }
.in-subj { display:block; font-size:11.5px; font-weight:700; color:var(--faint); margin-bottom:4px; }
.in-meta { font-size:11px; color:var(--faint); }
.in-compose { display:flex; flex-direction:column; gap:8px; border:1px solid var(--line); border-radius:16px; padding:12px 14px; }
.in-subject { display:flex; gap:8px; align-items:center; font-size:12.5px; color:var(--faint); }
.in-subject input { flex:1; min-width:0; border:0; outline:0; background:transparent; font:inherit; font-size:14px; color:var(--ink); padding:4px 0; }
.in-compose textarea { border:0; outline:0; resize:vertical; background:transparent; font:15px/1.5 var(--sans); color:var(--ink); min-height:66px; }
.in-compose-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--faint); }
.in-compose-foot .btn { width:auto; border-radius:999px; text-transform:uppercase; letter-spacing:.08em; font-size:12px; min-height:42px; padding:0 20px; }
@media (max-width:760px) {
  .in-head { align-items:stretch; }
  .in-search { width:100%; }
  .in-tools, .in-tools .filter { width:100%; }
  .in-tiles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; width:100%; }
  .in-tile { min-width:0; padding:10px 12px; }
  .in-tile b { font-size:20px; }
  .in-board { grid-auto-columns:82%; }
  .in-side { max-width:none; }
  .in-pcard, .in-main { padding:18px; }
  .in-msg { max-width:88%; }
  .in-thread { padding:12px; max-height:none; }
  .in-seg button { font-size:10.5px; padding:10px 1px; }
}
/* My House → Announcements, for a private House's guest page (15 Oct) */
.mhd-ann-form { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.mhd-ann-form textarea { border:1px solid var(--line); border-radius:12px; padding:10px 12px; font:15px/1.5 var(--sans); background:var(--cream); color:var(--ink); resize:vertical; min-height:80px; }
.mhd-ann-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.mhd-ann-foot .btn { width:auto; border-radius:999px; }
.mhd-ann-list { display:flex; flex-direction:column; gap:10px; }
.mhd-ann { background:var(--cream); border-radius:12px; padding:10px 12px; }
.mhd-ann p { margin:4px 0 0; font-size:14px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.mhd-ann-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.mhd-ann-del { all:unset; cursor:pointer; font-size:12px; font-weight:600; color:var(--muted); }
.mhd-ann-del:hover { color:var(--danger); }

/* An X on each notification, on hover (Hannita, 15 Oct); always there on touch screens */
.bell-row { position:relative; }
.bell-row .bell-item { padding-right:40px; }
.bell-x { position:absolute; top:50%; margin-top:-14px; right:4px; width:28px; height:28px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--muted); font:400 18px/1 var(--sans); display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; transition:opacity .12s; z-index:1; }
.bell-row:hover .bell-x, .bell-x:focus-visible { opacity:1; }
.bell-row:hover .bell-dot { opacity:0; }
.bell-x:hover { color:var(--danger); border-color:var(--danger); }
@media (hover:none) { .bell-x { opacity:.8; top:8px; margin-top:0; } }

/* Copy invite link: a quiet button, not the main action (Hannita, 15 Oct: "a little bit too big") */
.btn.ar-copy { font-size:12.5px; padding:7px 13px; min-height:0; gap:6px; text-transform:none; letter-spacing:0; }

/* A SAMPLE HOUSE SAYS SO ACROSS THE TOP (Paola, 20 Oct, chosen from four).
   Only admins ever see one - the House Directory hides them from everybody
   else - so this is a label for whoever is working on it, not a warning to
   the room. The card keeps its own shape; the strip sits above it like the
   label on a folder. */
/* Both cards are flex rows, so a strip left in the flow sat BESIDE the photo
   as a column of its own (Paola, 20 Oct: "this is not what we agreed on").
   It is pinned across the top instead, and the card makes room under it. */
.dir-card.is-sample, .dk-card.is-sample { overflow:hidden; }
.dir-card.is-sample { padding-top:44px; }
.dk-card.is-sample { padding-top:26px; }
.is-sample > .sample-bar { position:absolute; top:0; left:0; right:0; z-index:1; }
.tag.tag-sample { background:var(--gold); color:#fff; }
.tag-pair { display:inline-flex; flex-wrap:wrap; gap:6px; align-items:center; }
.sample-bar {
  background:var(--gold); color:#fff;
  font-size:10.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  text-align:center; padding:6px 10px; line-height:1.3;
}

/* The message to a House's leader when an admin saves a change to it. */
.p-notice { padding:16px 18px; border-radius:14px; border:1.5px solid #B88A1E; background:#FFF8E6; color:var(--ink); }
.p-notice h4 { margin:0 0 4px; font-size:15px; }
.p-notice .p-for-note { margin:0 0 10px; font-size:13px; color:var(--muted); }
.p-notice textarea { width:100%; min-height:120px; padding:11px 13px; border:1.5px solid var(--line); border-radius:8px; font:inherit; font-size:15px; background:var(--white); color:var(--ink); resize:vertical; }
.p-notice .p-for-check { margin-top:10px; display:flex; gap:8px; align-items:center; font-size:14px; text-transform:none; letter-spacing:0; font-weight:600; color:var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-notice { background:color-mix(in srgb, #B88A1E 14%, transparent); } }
:root[data-theme="dark"] .p-notice { background:color-mix(in srgb, #B88A1E 14%, transparent); }

/* The admin's pencil on a House card: edit without opening the House first. */
.card-edit { position:absolute; top:12px; right:12px; z-index:2; width:34px; height:34px; border-radius:999px; border:1.5px solid var(--line); background:var(--white); color:var(--ink); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.card-edit:hover { border-color:var(--ink); }
.card-edit:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.is-sample .card-edit { top:40px; }
.dir-card:has(.card-edit) .dir-body, .dk-card:has(.card-edit) .dk-body { padding-right:38px; }

/* ---------- Future check-in (checkin.js) ---------- */
/* Injected into My House for a Future House. The card is the door; the roster
   opens over it rather than as a section, because a leader is mid-night and
   losing their place is the cost of a navigation. */
.ci-tonight { display:flex; flex-direction:column; gap:14px; }
.ci-tonight.off { opacity:.72; }
.ci-tonight-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ci-tonight-head .eyebrow { margin:0; }
.ci-tonight-when { font-size:13px; color:var(--muted); }
.ci-tonight-side { display:inline-flex; align-items:center; gap:14px; flex-wrap:wrap; }
/* The check-out switch (admins only), option A: a small switch by the date. */
.ci-switch { display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--muted); cursor:pointer; position:relative; }
.ci-switch input { position:absolute; opacity:0; width:1px; height:1px; }
.ci-switch i { position:relative; width:40px; height:23px; border-radius:999px; background:#D6CFBD; transition:background .15s; flex-shrink:0; }
.ci-switch i::after { content:""; position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .15s; }
.ci-switch input:checked + i { background:var(--blue-fill); }
.ci-switch input:checked + i::after { left:20px; }
.ci-switch input:focus-visible + i { box-shadow:0 0 0 3px color-mix(in srgb, #E9C46A 45%, transparent); }
.ci-switch input:disabled + i { opacity:.55; }
/* "See pick-up list" - a link under the buttons, not a third button. */
.ci-link { display:inline-block; margin-top:10px; padding:4px 0; background:none; border:0; font:inherit; font-size:13.5px; font-weight:600; color:var(--blue); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.ci-sample { background:var(--tag-yellow-bg); color:var(--tag-yellow-fg); border-radius:9px; padding:8px 11px; font-size:12.5px; font-weight:600; }
.ci-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ci-count b { display:block; font-family:var(--display); font-size:30px; line-height:1; }
.ci-count span { display:block; font-size:11px; color:var(--muted); margin-top:2px; }
.ci-count.in b { color:var(--blue); }
.ci-tonight-actions { display:flex; gap:9px; flex-wrap:wrap; }
/* width:auto for the same reason as .ci-act: the base .btn is width:100%, and
   leaving it to fight flex-basis is what makes these two read as unequal. */
.ci-tonight-actions .btn { flex:1 1 140px; width:auto; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:46px; }
/* The browser's own focus ring is indigo, which on a forest-green card looks
   like a border somebody got wrong rather than a focused button. */
.ci-tonight-actions .btn:focus-visible, .ci-act:focus-visible {
  outline:2px solid var(--blue); outline-offset:2px; }
.ci-tonight .ci-none { margin:0; font-size:13px; }
.ci-door-open { align-self:flex-start; width:auto; min-height:40px; padding:8px 14px; }
/* The form is the scroller, as .ci-list is in the roster: .ci-sheet stays
   overflow:hidden (#130), so without this everything below the screen -
   the guardian and the Register button - could not be reached (Paola, 10 Nov). */
.ci-door { display:flex; flex-direction:column; gap:10px; padding:0 2px 4px;
  flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.ci-door .ci-sheet-q { margin:8px 0 0; }
.ci-door-note { margin:4px 0 0; font-size:12.5px; color:var(--muted); }
/* Two even lines, centred: REGISTER over + CHECK-IN (Paola, 10 Nov). */
.ci-door-go { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; line-height:1.15; }
.ci-door-go span { display:block; white-space:nowrap; }
.ci-door-err { margin:0; color:var(--danger); font-size:13px; }
.ci-door-field { display:block; font-size:12px; font-weight:600; color:var(--muted); }
.ci-door-field input, .ci-door-field select { width:100%; box-sizing:border-box; min-height:46px; border:1px solid var(--line); border-radius:11px;
  background:var(--white); padding:0 13px; font:inherit; font-size:15px; color:var(--ink); margin-top:5px; }

.ci-scrim { position:fixed; inset:0; background:rgba(23,42,27,.44); z-index:70; display:flex; align-items:flex-end; justify-content:center; }
body.ci-locked { overflow:hidden; }
.ci-panel { background:var(--cream); width:100%; max-width:640px; max-height:92vh; border-radius:20px 20px 0 0;
  display:flex; flex-direction:column; box-shadow:0 -10px 40px rgba(23,42,27,.18); }
.ci-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 20px 12px; }
.ci-panel-head h2 { margin:2px 0 0; font-family:var(--display); font-weight:400; font-size:30px; line-height:1; }
.ci-panel-head-right { display:flex; align-items:center; gap:10px; }
.ci-panel-count { font-size:12.5px; color:var(--muted); white-space:nowrap; }
.ci-x { width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:var(--white);
  color:var(--ink); font-size:20px; line-height:1; cursor:pointer; flex-shrink:0;
  /* The × is drawn, not typed: the font's × sits below the middle of its line,
     so it read as low in the circle (Paola, 10 Nov). The character stays in
     the markup, hidden, with the aria-label saying Close. */
  position:relative; padding:0; font-size:0; }
.ci-x::before { content:""; position:absolute; inset:0; margin:auto; width:12px; height:12px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9M10.5 1.5l-9 9' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9M10.5 1.5l-9 9' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ci-tools { padding:0 20px 10px; display:flex; flex-direction:column; gap:9px; }
.ci-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.ci-search-wrap { display:block; }
.ci-search { width:100%; box-sizing:border-box; min-height:44px; border:1px solid var(--line); border-radius:11px;
  background:var(--white); padding:0 13px; font:inherit; font-size:14px; color:var(--ink); }
.ci-chips { display:flex; gap:6px; flex-wrap:wrap; }
.ci-chip { min-height:34px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink);
  font:inherit; font-size:12px; font-weight:600; padding:0 12px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.ci-chip.on { background:var(--blue-fill); border-color:var(--blue-edge); color:var(--on-forest); }
.ci-chip span { opacity:.75; }
/* min-height:0 so this can actually shrink inside the flex column and scroll;
   without it a flex item refuses to go below its content height. */
.ci-list { flex:1 1 auto; min-height:0; overflow-y:auto; padding:2px 20px 22px; display:flex; flex-direction:column; gap:8px; }
.ci-empty { padding:26px 4px; text-align:center; color:var(--muted); font-size:14px; }
/* Not on the list: CCB's matches and Create profile (Paola, 23 Nov). */
.ci-ccb-box { display:flex; flex-direction:column; gap:8px; padding:10px 2px 4px; }
.ci-ccb-h { margin:0; font-size:14px; font-weight:700; color:var(--ink); }
.ci-ccb-note { margin:0; font-size:13px; color:var(--muted); }
.ci-ccb-box .ci-text { cursor:default; }
.ci-door-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ci-door-more { border-top:1px solid var(--line); padding-top:8px; }
.ci-door-more summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:6px; }
.ci-door-more[open] { display:flex; flex-direction:column; gap:10px; }
/* A student still missing details from the door (Paola, 23 Nov). */
.ci-missing { display:block; margin-top:3px; font-size:12px; font-weight:600; color:#9A6B12; }
.ci-details summary { cursor:pointer; list-style:revert; }
.ci-details[open] summary { margin-bottom:8px; }
.ci-details .ci-door { padding:0; }

.ci-row { display:flex; align-items:center; gap:11px; background:var(--white); border:1px solid var(--line);
  border-radius:13px; padding:11px 13px; }
.ci-row.out { opacity:.66; }
.ci-av { flex-shrink:0; }
/* The row's text is a BUTTON now — tapping a student opens who they are and
   who is collecting them. It still has to read as a line of text rather than
   a control, so the button chrome is stripped back off. */
.ci-text { flex-grow:1; min-width:0; display:flex; flex-direction:column; gap:1px;
  background:none; border:0; padding:0; font:inherit; color:inherit; text-align:left; cursor:pointer; }
.ci-text:hover b { text-decoration:underline; text-underline-offset:2px; }
.ci-text:focus-visible { outline:2px solid var(--blue); outline-offset:3px; border-radius:6px; }
.ci-text b { font-size:14px; }
.ci-age { font-weight:400; color:var(--muted); }
.ci-guardian { font-size:11.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ci-tel { color:var(--blue); font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:3px; }
.ci-stamp { font-size:11.5px; font-weight:600; margin-top:2px; }
.ci-stamp.in { color:var(--blue); }
.ci-stamp.out { color:var(--muted); }
.ci-ccb { font-size:11px; color:var(--muted); }
.ci-ccb.ok { color:var(--blue); }
.ci-ccb.warn { color:var(--danger); }
/* width:auto is doing real work. The base .btn is width:100% (see index.html;
   .btn.small is the usual escape hatch), so a row button stretched across the
   whole row and sat on top of the student's name and age - the one thing a
   leader reads before tapping it. flex-shrink:0 alone did not stop that. */
.ci-act { min-height:44px; width:auto; padding:0 14px; display:inline-flex; align-items:center; gap:5px; flex-shrink:0; font-size:13px; white-space:nowrap; }

.ci-sheet-scrim { position:fixed; inset:0; background:rgba(23,42,27,.5); z-index:80; display:flex; align-items:flex-end; justify-content:center; }
/* overflow:hidden, not auto — the LIST inside is the scroller (.ci-list). With
   both able to scroll, the list never got a bounded height, so it grew and
   pushed the last students past the bottom of the screen. */
.ci-sheet { background:var(--white); width:100%; max-width:520px; max-height:92vh; overflow:hidden;
  border-radius:20px 20px 0 0; padding:18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display:flex; flex-direction:column; gap:13px;
  box-shadow:0 -10px 40px rgba(23,42,27,.2); }

/* ON A BIG SCREEN THIS IS A DIALOG, NOT A BOTTOM SHEET. Pinned to the bottom
   edge it opened very low in a desktop window and the roster ran off the
   screen, so a leader could not see who was left to check in. A phone keeps
   the sheet, because the bottom is where a thumb is. */
@media (min-width:720px) {
  .ci-sheet-scrim, .ci-scrim { align-items:center; }
  .ci-sheet { border-radius:20px; max-height:82vh; box-shadow:0 18px 50px rgba(23,42,27,.26); }
  /* The roster panel is a SECOND scrim with its own class, and fixing only
     .ci-sheet-scrim left the one you actually open first still pinned to the
     bottom of the window with its list running off the screen. */
  .ci-panel { border-radius:20px; max-height:82vh; box-shadow:0 18px 50px rgba(23,42,27,.22); }
}
.ci-sheet-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.ci-sheet-head h3 { margin:2px 0 0; font-family:var(--display); font-weight:400; font-size:28px; line-height:1; }
.ci-sheet-q { margin:0; font-size:15px; font-weight:600; }
.ci-people { display:flex; flex-direction:column; gap:8px; }
.ci-person { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left;
  background:var(--white); border:1px solid var(--line); border-radius:13px; padding:13px 14px; cursor:pointer;
  font:inherit; color:var(--ink); min-height:44px; }
.ci-person:first-child { border-color:var(--blue-edge); }
.ci-person b { font-size:15px; }
.ci-person span { font-size:12px; color:var(--muted); }
.ci-else { display:flex; align-items:center; justify-content:center; gap:7px; min-height:46px;
  border:1px dashed var(--faint); border-radius:13px; background:transparent; color:var(--blue);
  font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.ci-new { display:flex; flex-direction:column; gap:11px; }
.ci-new label { display:block; font-size:12px; font-weight:600; color:var(--muted); }
.ci-new input[type="text"], .ci-new input[type="tel"], .ci-new input:not([type]) {
  width:100%; box-sizing:border-box; min-height:46px; border:1px solid var(--line); border-radius:11px;
  background:var(--white); padding:0 13px; font:inherit; font-size:15px; color:var(--ink); margin-top:5px; }
.ci-new-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.ci-keep { display:flex; align-items:flex-start; gap:10px; background:var(--cream); border:1px solid var(--line);
  border-radius:11px; padding:12px 13px; cursor:pointer; font-weight:400; color:var(--ink); }
.ci-keep input { width:18px; height:18px; margin:1px 0 0; accent-color:var(--blue-fill); flex-shrink:0; }
.ci-keep span { font-size:13px; line-height:1.4; }
.ci-sheet-actions { display:flex; gap:9px; margin-top:2px; }
.ci-sheet-actions .btn { flex:1 1 0; min-height:48px; }

/* Who a student is, and who is collecting them. */
.ci-who-wrap { display:flex; flex-direction:column; gap:12px; overflow-y:auto; min-height:0; }
.ci-who-block { border:1px solid var(--line); border-radius:13px; padding:12px 14px; background:var(--white); }
.ci-who-label { font-size:11px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--gold); }
.ci-who-name { font-size:15px; font-weight:700; margin-top:3px; }
/* The pick-up list: a line between the student and who may collect them (Paola, 10 Nov). */
.ci-pk-name { padding-bottom:9px; margin-bottom:2px; border-bottom:1px solid var(--line); }
/* Their number, and a way to call or text it (Paola, 10 Nov). */
.ci-who-pickup .ci-pk-tel { color:var(--ink); font-size:13px; margin-top:2px; }
.ci-pk-ways { display:flex; gap:6px; flex-shrink:0; }
.ci-who-lines { display:flex; flex-direction:column; gap:1px; margin-top:3px; font-size:13.5px; color:var(--muted); word-break:break-word; }
.ci-who-none { font-size:13.5px; color:var(--muted); margin:4px 0 0; }
.ci-ways { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
/* A real tap target, and never offered when there is nothing behind it: a
   Call button that dials nothing is worse than no button at the door. */
.ci-way { display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:0 13px; border-radius:999px;
  border:1px solid var(--line); background:var(--cream); color:var(--ink); font-size:12.5px; font-weight:700;
  text-decoration:none; white-space:nowrap; }
.ci-way:hover { border-color:var(--ink); }
.ci-who-pickup { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; }
.ci-who-pickup b { display:block; font-size:14px; }
.ci-who-pickup span { display:block; font-size:12px; color:var(--muted); }
/* The number goes on the check-out row too: at the door the person in front
   of you is sometimes not the person on the list, and the first thing a
   leader does is ring whoever put them there. */
.ci-person-tel { display:inline-flex; align-items:center; gap:5px; margin-top:3px; color:var(--blue); font-weight:600; }

/* What the guardian wrote on the sign-up: date of birth, school, address. */
/* Admin → Notifications: the In-app / Email / Text filter. */
.nt-filter { display:inline-flex; gap:4px; padding:4px; margin:0 0 18px; border:1px solid var(--line); border-radius:999px; background:var(--white); max-width:100%; overflow-x:auto; }
.nt-filter button { flex:none; font:inherit; font-size:13.5px; font-weight:700; padding:8px 16px; border:0; border-radius:999px; background:transparent; color:var(--muted); cursor:pointer; white-space:nowrap; }
.nt-filter button:hover { color:var(--ink); }
.nt-filter button.active { background:var(--blue-fill); color:var(--on-forest); }
.nt-filter button:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.nt-sample { max-width:760px; }
/* An email preview, drawn as it lands in an inbox. */
.ae-item { border-top:1px solid var(--line); }
.ae-item:first-child { border-top:0; }
.ae-item .ae-row { border-top:0; }
.ae-btns { display:flex; gap:8px; flex:0 0 auto; }
.ae-preview { display:flex; flex-direction:column; gap:16px; padding:0 0 18px; }
.ae-email { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#F7F3EA; }
.ae-email-head { display:flex; gap:10px; align-items:baseline; padding:11px 16px; background:var(--white); border-bottom:1px solid var(--line); font-size:14px; }
.ae-email-head span { flex:none; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.ae-email-head b { min-width:0; overflow-wrap:anywhere; }
.ae-email iframe { display:block; width:100%; height:640px; border:0; background:#F7F3EA; }
/* A text preview: a phone's message bubble. */
.tx-card .nt-card-head { justify-content:space-between; flex-wrap:wrap; }
.tx-name { font-size:16px; }
.tx-what { margin:-4px 0 0; font-size:13px; color:var(--muted); }
.tx-lang { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:999px; }
.tx-lang button { font:inherit; font-size:12px; font-weight:700; padding:4px 11px; border:0; border-radius:999px; background:transparent; color:var(--muted); cursor:pointer; }
.tx-lang button.active { background:var(--cream); color:var(--ink); }
.tx-phone { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:18px 16px; border-radius:18px; background:var(--cream); border:1px solid var(--line); }
.tx-from { font-size:11.5px; font-weight:700; color:var(--muted); }
.tx-bubble { max-width:340px; padding:10px 14px; border-radius:18px 18px 18px 5px; background:#E9E9EB; color:#111; font-family:-apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size:15px; line-height:1.38; white-space:pre-wrap; overflow-wrap:anywhere; }
.tx-count { font-size:11.5px; color:var(--faint); }
/* Send yourself any email a House sends, from a sample. */
.ae-pick { display:flex; align-items:center; gap:10px; margin-bottom:14px; font-size:13px; font-weight:700; color:var(--muted); }
.ae-pick select { flex:1 1 auto; max-width:340px; min-height:42px; padding:0 12px; border:1px solid var(--line);
  border-radius:10px; background:var(--white); color:var(--ink); font:inherit; font-size:14px; font-weight:600; }
.ae-row { display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:13px 0; border-top:1px solid var(--line); }
.ae-row:first-child { border-top:0; }
.ae-row b { display:block; font-size:14px; }
.ae-row span { display:block; font-size:12.5px; color:var(--muted); margin-top:2px; }
.ae-row .btn { flex:0 0 auto; }
@media (max-width:560px) { .ae-row { flex-direction:column; align-items:flex-start; gap:9px; } .ae-email iframe { height:560px; } }

.ci-facts { display:flex; flex-direction:column; gap:7px; margin-top:7px; }
.ci-fact { display:flex; gap:10px; align-items:baseline; justify-content:space-between; font-size:13.5px; }
.ci-fact span { color:var(--muted); flex:0 0 auto; }
/* The value wraps rather than truncating — a home address cut off at the edge
   of a phone is the half you needed. */
.ci-fact b { font-weight:600; text-align:right; word-break:break-word; }
@media (max-width:560px) { .ci-new-two { grid-template-columns:1fr; } }

/* ---- Future attendance: the record that outlives the night (21 Oct) ----- */
.att-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; text-align:center; }
.att-stat b { display:block; font-family:var(--display); font-size:34px; line-height:1; }
.att-stat span { display:block; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-top:4px; }
.att-stat.in b { color:var(--blue); }
.att-stat.pct b { color:#B88A1E; }
/* The base .btn is width:100%, which is what this wants. */
.att-see { margin-top:15px; min-height:44px; }

/* The report unfolds INSIDE the card - no scrim, nothing to dismiss. */
.att-report { margin-top:16px; padding-top:15px; border-top:1px solid var(--line); }
.att-when { display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap; margin-bottom:13px; }
.att-sub { font-size:12.5px; color:var(--muted); }
.att-filed { font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.att-file { white-space:nowrap; width:auto; }
.att-chips { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px; }
.att-chip { border:1px solid var(--line); border-radius:999px; padding:7px 13px; font:inherit; font-size:12.5px;
  background:var(--white); color:var(--ink); cursor:pointer; white-space:nowrap; }
.att-chip.on { background:var(--blue); border-color:var(--blue); color:#F3EDDC; font-weight:700; }

.att-head, .att-row { display:grid; grid-template-columns:minmax(0,1fr) 92px 128px 18px; gap:10px; align-items:center; }
/* Check-out off for this House (houses_future_settings): no Check out column. */
.att-report.no-out .att-head, .att-report.no-out .att-row { grid-template-columns:minmax(0,1fr) 92px 18px; }
.att-head { font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#8A7A4E;
  padding-bottom:9px; border-bottom:1px solid var(--line); }
.att-row { padding:13px 0; border-bottom:1px solid #EFE8D8; cursor:pointer; font-size:13.5px; }
.att-row:last-of-type { border-bottom:0; }
.att-row.open { border-bottom:0; padding-bottom:9px; }
.att-row:hover { background:color-mix(in srgb, var(--ink) 3%, transparent); }
.att-row:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.att-nm { font-weight:700; font-size:14px; min-width:0; }
.att-tm { font-variant-numeric:tabular-nums; }
.att-chev { color:#9A9079; font-size:16px; transition:transform .15s ease; }
.att-row.open .att-chev { transform:rotate(90deg); }

.att-fold { background:#FAF8F0; border:1px solid #EFE8D8; border-radius:11px; padding:13px 15px; margin:0 0 13px; }
.att-fold.warn { border-color:#E3CD93; background:#FEFBF3; }
.att-grid { display:grid; grid-template-columns:104px minmax(0,1fr); gap:6px 12px; font-size:13px; }
.att-lab { font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#6E5207; }
.att-dim { color:var(--muted); }
.att-tag { display:inline-block; font-size:9.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:#6E5207; background:var(--tag-yellow-bg, #FBF1D8); border:1px solid #E3CD93; border-radius:999px; padding:2px 8px; }

.att-contact { display:flex; align-items:center; gap:9px; margin-top:11px; padding-top:11px; border-top:1px solid #E8E0CE; }
.att-missed .att-contact { border-top:0; margin-top:0; padding:10px 0; border-bottom:1px solid #EFE8D8; }
.att-missed .att-contact:last-child { border-bottom:0; }
.att-who { flex:1 1 auto; min-width:0; font-size:13px; }
.att-who .att-lab { display:block; margin-bottom:2px; }
.att-ic { width:32px; height:32px; border-radius:9px; border:1px solid var(--line); background:var(--white);
  display:inline-flex; align-items:center; justify-content:center; color:var(--blue); flex-shrink:0; text-decoration:none; }
.att-ic:hover { background:color-mix(in srgb, var(--blue) 7%, transparent); }
button.att-ic, button.ci-way { font-family:inherit; cursor:pointer; }
button.att-ic { padding:0; }
.att-missed { margin-top:18px; padding-top:14px; border-top:2px solid var(--line); }
.att-missed > .att-lab { margin-bottom:4px; }

.mhd-fromdoor { display:block; margin-top:6px; font-size:11.5px; line-height:1.45; color:#6E5207;
  background:#FBF4D9; border:1px solid #EADFAE; border-radius:7px; padding:6px 9px; }

@media (max-width:560px) {
  .att-head, .att-row { grid-template-columns:minmax(0,1fr) 76px 104px 14px; gap:7px; font-size:12.5px; }
  .att-report.no-out .att-head, .att-report.no-out .att-row { grid-template-columns:minmax(0,1fr) 76px 14px; }
  .att-grid { grid-template-columns:1fr; gap:2px 0; }
  .att-grid .att-lab { margin-top:8px; }
}
.mhd-person-contact { display:inline-flex; gap:7px; flex-shrink:0; margin-left:4px; }
.mhd-person-contact .att-ic { width:30px; height:30px; }
.att-nudge { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-top:12px; padding:10px 13px; border-radius:11px; background:#FBF4D9; border:1px solid #EADFAE;
  font-size:12.5px; color:#6E5207; }

/* Resources — a Future House's own card (21 Oct).
   The rows are a label and an action, not tiles: a leader reads this on a
   phone, where three square cards become one column anyway. */
.res-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
/* A row with an action is the target, not just its button. */
.res-row[data-res] { cursor:pointer; }
.res-row[data-res]:hover .res-what b { text-decoration:underline; text-underline-offset:3px; }
.res-row[data-res]:hover .btn { background:var(--blue-fill); border-color:var(--blue-fill); color:var(--on-forest); }
.res-row:last-of-type { border-bottom:0; }
.res-row.col { flex-direction:column; align-items:stretch; gap:9px; }
.res-what { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.res-what b { font-size:14px; }
.res-what span { color:var(--muted); font-size:12.5px; line-height:1.45; }
.res-row .btn { flex:0 0 auto; }
.res-open { padding:4px 0 14px; border-bottom:1px solid var(--line); }
.res-all { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 8px; }
.res-all .btn { display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.res-hint { color:var(--muted); font-size:12px; line-height:1.5; margin:0 0 12px; }
/* Send an announcement: a row like the others, with the two icons on the
   right and the legend saying who it reaches (Hannita, 21 Oct). */
.res-announce { display:flex; align-items:center; gap:12px; padding:12px 0 14px; }
.res-ics { display:flex; gap:8px; flex:0 0 auto; }
.res-people { display:flex; flex-direction:column; gap:8px; }
.res-person { border:1px solid var(--line); border-radius:12px; }
/* One line each, with the chevron that says it opens (Hannita, 21 Oct). */
.res-line { display:flex; align-items:center; gap:10px; padding:11px 12px; cursor:pointer; }
.res-line:hover { background:color-mix(in srgb, var(--ink) 3%, transparent); border-radius:12px; }
.res-line:focus-visible { outline:2px solid var(--blue); outline-offset:2px; border-radius:12px; }
.res-person.open .res-line { border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; }
.res-nm { flex:1; min-width:0; }
.res-fold { padding:4px 12px 11px; }
.res-person.open .att-chev { transform:rotate(90deg); }
.res-may { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
.res-may > .att-lab { display:block; margin-bottom:2px; }
/* Resources is a page of My House, not a layer over it (Hannita, 21 Oct):
   Back is a link, there is no scrim, and the card has the whole width. */
.mhd-page { min-width:0; }
.mhd-back { display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:6px 0; margin-bottom:6px;
  font-family:inherit; font-size:13px; color:var(--muted); cursor:pointer; }
.mhd-back:hover { color:var(--ink); }
.mhd-back:focus-visible { outline:2px solid var(--blue); outline-offset:3px; border-radius:6px; }
/* The width is what the page buys: two students across, and the one that is
   open takes the full row so its contacts are not squeezed into a half. */
@media (min-width:860px) {
  #mhdResourcesPage .res-people { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); align-items:start; }
  #mhdResourcesPage .res-person.open { grid-column:1 / -1; }
}

/* The weekly bars, shared by both kinds of House (Hannita, 21 Oct). A row is
   a button because it opens the week: the report on a regular House, that
   night's registry in Resources on a Future one. */
.mhd-weeks { display:flex; flex-direction:column; margin-top:4px; }
.mhd-week { display:grid; grid-template-columns:110px minmax(0,1fr) 72px 12px; align-items:center; gap:12px;
  width:100%; min-height:44px; padding:8px 6px; font:inherit; font-size:14px; color:inherit; text-align:left;
  background:none; border:0; border-radius:10px; cursor:pointer; }
.mhd-week:hover { background:color-mix(in srgb, var(--ink) 4%, transparent); }
.mhd-week:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.mhd-week .mhd-bar-n { text-align:right; }
.mhd-week-none { font-size:11.5px; font-weight:700; letter-spacing:.04em; color:#6E5207; }
.mhd-week-chev { color:#9A9079; font-size:16px; }
.mhd-weeks-total { display:flex; align-items:baseline; gap:8px; margin-top:6px; padding:12px 6px 0; border-top:1px solid var(--line); }
.mhd-weeks-total b { font-family:'Bellefair', serif; font-weight:400; font-size:24px; }
.mhd-weeks-total span { font-size:12.5px; color:var(--muted); }
.att-weeks { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
/* What a week opens into on a regular House: what was filed for it. */
.mhd-week-fold { margin-top:10px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.mhd-week-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin-bottom:8px; }
.mhd-week-grid div { display:flex; flex-direction:column; gap:1px; }
.mhd-week-grid b { font-family:'Bellefair', serif; font-weight:400; font-size:26px; }
.mhd-week-grid span { font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#6E5207; }
.mhd-week-line { display:flex; flex-direction:column; gap:2px; padding-top:8px; font-size:13px; line-height:1.5; }
@media (max-width:560px) {
  .mhd-week { grid-template-columns:76px minmax(0,1fr) 58px 10px; gap:8px; font-size:12.5px; }
}

/* The planner: a week's list, fresh each date (Hannita, 21 Oct). */
.plan { padding-top: 4px; }
.plan-list { display:flex; flex-direction:column; }
.plan-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.plan-row:last-child { border-bottom:0; }
.plan-tick { display:flex; align-items:center; gap:10px; flex-grow:1; min-width:0; cursor:pointer; min-height:34px; }
.plan-tick input { width:18px; height:18px; flex:0 0 18px; accent-color:var(--blue-fill); cursor:pointer; }
.plan-t { font-size:13.5px; line-height:1.4; }
.plan-row.done .plan-t { text-decoration:line-through; color:var(--muted); }
.plan-who { flex:0 0 auto; font-size:11.5px; font-weight:700; letter-spacing:.04em; background:var(--tag-neutral-bg); color:var(--tag-neutral-fg); border-radius:999px; padding:4px 10px; }
.plan-x { flex:0 0 auto; width:32px; height:32px; display:flex; align-items:center; justify-content:center; font-size:19px; line-height:1;
  color:var(--faint); background:none; border:0; border-radius:999px; cursor:pointer; }
.plan-x:hover { color:var(--danger); background:color-mix(in srgb, var(--ink) 5%, transparent); }
.plan-add { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.plan-add input { flex:1 1 180px; min-width:0; font:inherit; font-size:13.5px; color:var(--ink); background:var(--white);
  border:1px solid var(--line); border-radius:999px; padding:11px 15px; min-height:44px; }
.plan-add input:focus-visible { outline:2px solid var(--blue); outline-offset:1px; }
.plan-add .btn { flex:0 0 auto; }

.mh-acts { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }

/* ---------- Messages, Circle-style (Hannita, 27 Oct) ----------
   Conversations | the open conversation | a quick profile. Below 1181px the
   profile slides over instead of taking a column; on a phone one column shows
   at a time, edge to edge, with a back arrow. Adapted to the Houses palette
   rather than Circle's grey. */
.main:has(#view-messages:not([hidden])) { padding-bottom:24px; }
.mx { --mx-list:300px; --mx-prof:300px; display:grid; grid-template-columns:var(--mx-list) minmax(0,1fr) var(--mx-prof); grid-template-areas:"list chat prof"; height:calc(100dvh - 104px); min-height:520px; margin-top:46px; background:var(--white); border:1px solid var(--line); border-radius:18px; overflow:hidden; position:relative; }
.mx.no-list { grid-template-columns:minmax(0,1fr) var(--mx-prof); grid-template-areas:"chat prof"; }
.mx.profile-hidden, .mx.no-profile-data { grid-template-columns:var(--mx-list) minmax(0,1fr); grid-template-areas:"list chat"; }
.mx.no-list.profile-hidden { grid-template-columns:minmax(0,1fr); grid-template-areas:"chat"; }
.mx.profile-hidden .mx-profile, .mx.no-profile-data .mx-profile { display:none; }
.mx-list { grid-area:list; display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--line); background:var(--white); }
.mx-list[hidden] { display:none; }
.mx-list-head { display:flex; align-items:center; gap:2px; padding:16px 12px 10px 18px; }
.mx-title { flex:1; margin:0; font-family:var(--sans); font-size:20px; font-weight:700; letter-spacing:-.01em; line-height:1.2; color:var(--ink); }
.mx-icon-btn { flex:0 0 auto; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:none; border-radius:10px; background:transparent; color:var(--ink); cursor:pointer; }
.mx-icon-btn:hover, .mx-icon-btn.on, .mx-icon-btn[aria-expanded="true"] { background:var(--cream); }
.mx-icon-btn:focus-visible { outline:2px solid var(--blue); outline-offset:1px; }
.mx-tabs { display:flex; gap:4px; padding:0 14px 10px; border-bottom:1px solid var(--line); }
.mx-tabs[hidden] { display:none; }
.mx-tab { height:32px; padding:0 14px; border:1px solid transparent; border-radius:999px; background:transparent; color:var(--muted); font:inherit; font-size:13px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.mx-tab.on { border-color:var(--line); background:var(--cream); color:var(--ink); }
.mx-tab-n:empty { display:none; }
.mx-tab-n { min-width:18px; height:18px; padding:0 6px; border-radius:999px; background:#B3261E; color:#fff; font-size:11px; line-height:18px; text-align:center; }
.mx-search { padding:10px 14px; border-bottom:1px solid var(--line); }
.mx-search input, .mx-insearch input { width:100%; height:38px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--cream); color:var(--ink); font:inherit; font-size:14px; }
.mx-search input:focus, .mx-insearch input:focus { outline:2px solid var(--blue); outline-offset:0; background:var(--white); }
.mx-archived-head { display:flex; align-items:center; gap:10px; padding:4px 18px 12px; border-bottom:1px solid var(--line); font-size:14px; }
.mx-archived-head[hidden] { display:none; }
.mx-link { border:none; background:none; padding:4px 0; color:var(--blue); font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.mx-threads { flex:1; min-height:0; overflow-y:auto; padding:6px 8px; }
.mx-row { position:relative; display:flex; align-items:center; gap:12px; padding:10px 10px; border-radius:12px; cursor:pointer; color:var(--ink); }
.mx-row:hover { background:var(--cream); }
.mx-row:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.mx-row.active { background:var(--blue-bg); }
.mx-row-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; padding-right:14px; }
.mx-row-top { display:flex; align-items:baseline; gap:6px; }
.mx-row-top b { flex:1; min-width:0; font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mx-row.unread .mx-row-top b { font-weight:800; }
.mx-row-top time { flex:none; font-size:12px; color:var(--faint); }
.mx-row-muted { flex:none; color:var(--faint); display:inline-flex; align-self:center; }
.mx-row-snip { font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mx-row.unread .mx-row-snip { color:var(--ink); }
.mx-dot { position:absolute; right:10px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:999px; background:#B3261E; }
.mx-archived-btn { margin:0 8px 8px; padding:11px 12px; border:none; border-top:1px solid var(--line); background:transparent; color:var(--muted); font:inherit; font-size:13px; font-weight:700; text-align:left; cursor:pointer; border-radius:0 0 10px 10px; }
.mx-archived-btn:hover { color:var(--ink); background:var(--cream); }
.mx-archived-btn[hidden] { display:none; }

.mx-av { flex:0 0 40px; width:40px; height:40px; border-radius:999px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--blue-bg); color:var(--blue); font-size:14px; font-weight:700; }
.mx-av img { width:100%; height:100%; object-fit:cover; }
.mx-av.team { background:#1E3A24; color:#E9C46A; }
.mx-av.sm { flex-basis:26px; width:26px; height:26px; font-size:11px; }
.mx-av.xl { flex-basis:84px; width:84px; height:84px; font-size:26px; }
.mx-av.xl.team svg { width:30px; height:44px; }

.mx-chat { grid-area:chat; display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--white); }
.mx-head { display:flex; align-items:center; gap:6px; min-height:64px; padding:10px 12px 10px 16px; border-bottom:1px solid var(--line); }
.mx-head[hidden] { display:none; }
.mx-back { display:none; align-items:center; justify-content:center; width:36px; height:36px; margin-left:-6px; border:none; border-radius:10px; background:transparent; color:var(--ink); flex:0 0 auto; }
.mx-head-who { flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:2px; border:none; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; border-radius:12px; }
.mx-head-who:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.mx-head .th-who { display:flex; flex-direction:column; min-width:0; }
.mx-head .th-name { font-size:15px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mx-head .th-meta { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mx-head .th-meta:empty { display:none; }
/* Which of a leader's two conversations (25 Nov): Pastor, or Houses app support. */
.mx-topic { font-size:10px; line-height:15px; padding:0 6px; margin-right:6px; vertical-align:1px; }
.mx-head .th-meta .mx-topic { margin:0 0 0 6px; }
.mx-head .th-meta span:first-child.mx-topic { margin-left:0; }
.sp-badge.mx-topic.support { background:var(--blue-bg); color:var(--blue); }
.mx-p-topic { margin-top:-4px; font-size:12px; }
.mx-muted-ic { color:var(--faint); display:inline-flex; }
.mx-muted-ic[hidden] { display:none; }
.mx-insearch { display:flex; align-items:center; gap:8px; padding:8px 12px 8px 16px; border-bottom:1px solid var(--line); background:var(--cream); color:var(--muted); }
.mx-insearch[hidden] { display:none; }
.mx-insearch input { flex:1; height:34px; background:var(--white); }
.mx-insearch-n { flex:none; font-size:12px; font-weight:700; color:var(--muted); }
.mx-thread { flex:1; min-height:0; overflow-y:auto; padding:8px 20px 16px; }
.mx-day { display:flex; align-items:center; gap:12px; margin:18px 0 8px; color:var(--faint); font-size:12px; font-weight:700; }
.mx-day::before, .mx-day::after { content:""; flex:1; height:1px; background:var(--line); }
.mx-new { display:flex; align-items:center; gap:10px; margin:14px 0 6px; color:#B3261E; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.mx-new::before { content:""; flex:1; height:1px; background:#B3261E; }
.mx-new span { order:2; }
.mx-new::after { content:""; order:3; width:0; }
.mx-msg { display:flex; gap:12px; padding:6px 8px; margin:0 -8px; border-radius:10px; }
.mx-msg:hover { background:color-mix(in srgb, var(--cream) 70%, transparent); }
.mx-msg.grouped { padding-top:1px; padding-bottom:1px; }
.mx-msg .mx-av { flex-basis:36px; width:36px; height:36px; font-size:13px; margin-top:2px; }
.mx-msg .mx-av[data-mx-person], .mx-who { cursor:pointer; }
.mx-msg-gutter { flex:0 0 36px; display:flex; justify-content:center; padding-top:3px; }
.mx-msg-gutter time { font-size:10px; color:var(--faint); opacity:0; }
.mx-msg.grouped:hover .mx-msg-gutter time { opacity:1; }
.mx-msg-main { flex:1; min-width:0; }
.mx-msg-head { display:flex; align-items:baseline; gap:8px; margin-bottom:1px; }
.mx-msg-head b { font-size:14px; font-weight:700; }
.mx-who:hover { text-decoration:underline; text-underline-offset:2px; }
.mx-msg-head time { font-size:12px; color:var(--faint); }
.mx-msg-body { font-size:14.5px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.mx-msg-body a { color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
.mx-msg-body mark { background:#F4E3AE; color:inherit; border-radius:3px; padding:0 1px; }
.mx-mention, .mx-spacelink { display:inline; padding:0 3px; border:none; border-radius:5px; background:var(--blue-bg); color:var(--blue) !important; font:inherit; font-weight:700; text-decoration:none !important; cursor:pointer; }
.mx-mention:hover, .mx-spacelink:hover { text-decoration:underline !important; }
.mx-imgs { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.mx-img { display:block; width:220px; max-width:100%; aspect-ratio:4/3; border-radius:12px; overflow:hidden; background:var(--cream); border:1px solid var(--line); }
.mx-img img { width:100%; height:100%; object-fit:cover; display:block; }
.mx-img img:not([src]) { visibility:hidden; }
.mx-file { display:flex; align-items:center; gap:10px; max-width:320px; margin-top:6px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--cream); color:var(--ink); text-decoration:none; }
.mx-file:hover { border-color:var(--ink); }
.mx-file-ic { flex:0 0 34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:var(--white); color:var(--blue); }
.mx-file-main { min-width:0; display:flex; flex-direction:column; }
.mx-file-main b { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mx-file-main small { font-size:12px; color:var(--muted); }
.mx-empty { display:flex; flex-direction:column; align-items:center; gap:4px; padding:28px 16px; text-align:center; color:var(--muted); font-size:13px; }
.mx-empty b { color:var(--ink); font-size:15px; }
.mx-empty-chat { justify-content:center; height:100%; gap:8px; }
.mx-empty-chat .mx-av { margin-bottom:6px; }
.mx-loading { display:flex; justify-content:center; gap:6px; padding:30px; }
.mx-loading span { width:7px; height:7px; border-radius:999px; background:var(--gold); animation:bootDot 1s ease-in-out infinite; }
.mx-loading span:nth-child(2) { animation-delay:.15s; } .mx-loading span:nth-child(3) { animation-delay:.3s; }

.mx-composer { margin:0 16px 16px; border:1px solid var(--line); border-radius:16px; background:var(--white); box-shadow:0 2px 10px rgba(23,42,27,.05); }
.mx-composer[hidden] { display:none; }
.mx-composer:focus-within { border-color:color-mix(in srgb, var(--ink) 35%, var(--line)); }
.mx-composer textarea { display:block; width:100%; min-height:46px; max-height:180px; padding:13px 16px 4px; border:none; background:transparent; resize:none; color:var(--ink); font:inherit; font-size:14.5px; line-height:1.45; outline:none; box-shadow:none; }
.mx-tools { display:flex; align-items:center; gap:2px; padding:4px 8px 8px; }
.mx-tool { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border:none; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; }
.mx-tool:hover { background:var(--cream); color:var(--ink); }
.mx-tool:disabled { opacity:.45; cursor:default; }
.mx-tools-gap { flex:1; }
.mx-send { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:none; border-radius:999px; background:var(--blue-fill); color:var(--on-forest); cursor:pointer; }
.mx-send:disabled { opacity:.35; cursor:default; }
.mx-send:not(:disabled):hover { filter:brightness(1.15); }
.mx-pending { display:flex; flex-wrap:wrap; gap:8px; padding:12px 12px 0; }
.mx-pending[hidden] { display:none; }
.mx-chip { display:inline-flex; align-items:center; gap:8px; max-width:260px; padding:6px 6px 6px 8px; border:1px solid var(--line); border-radius:10px; background:var(--cream); font-size:12px; color:var(--ink); }
.mx-chip img { width:32px; height:32px; border-radius:6px; object-fit:cover; }
.mx-chip-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.mx-chip small { color:var(--muted); flex:none; }
.mx-chip button { flex:none; width:22px; height:22px; display:flex; align-items:center; justify-content:center; border:none; border-radius:999px; background:transparent; color:var(--muted); cursor:pointer; }
.mx-chip button:hover { background:var(--white); color:var(--ink); }
.mx-menu { min-width:220px; }
.mx-menu button svg, .mx-picker button svg { flex:none; }
.mx-menu button.danger { color:var(--danger); }
.mx-picker { min-width:240px; max-width:300px; }
.mx-picker .mx-pick-ic { width:22px; text-align:center; flex:none; }
.mx-pick-empty { margin:0; padding:8px 10px; font-size:13px; color:var(--muted); }
.mx-emoji { min-width:0; }

.mx-profile { grid-area:prof; position:relative; display:flex; flex-direction:column; gap:16px; min-height:0; overflow-y:auto; padding:28px 20px 24px; border-left:1px solid var(--line); background:var(--white); }
.mx-profile-close { position:absolute; top:10px; right:10px; display:none; }
.mx-p-top { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.mx-p-top h2 { margin:6px 0 0; font-family:var(--sans); font-size:18px; font-weight:700; line-height:1.25; }
.mx-p-badges { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.mx-p-facts { display:flex; flex-direction:column; gap:10px; margin:0; padding:14px 0 0; border-top:1px solid var(--line); }
.mx-p-facts > div { display:flex; flex-direction:column; gap:1px; }
.mx-p-facts dt { font-size:12px; color:var(--muted); }
.mx-p-facts dd { margin:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.mx-p-facts a { color:var(--blue); }
.mx-p-sec { display:flex; flex-direction:column; gap:8px; padding-top:14px; border-top:1px solid var(--line); }
.mx-p-sec h3 { margin:0; font-size:13px; font-weight:700; color:var(--ink); }
.mx-p-house { display:flex; align-items:center; gap:8px; width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--white); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.mx-p-house:hover { border-color:var(--ink); background:var(--cream); }
.mx-p-house-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.mx-p-house-main b { font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mx-p-house-main small { font-size:12px; color:var(--muted); }
.mx-p-note { margin:0; font-size:13px; line-height:1.5; color:var(--muted); text-align:center; }
.mx-p-sec .mx-p-note { text-align:left; }
.mx-p-history { width:100%; }
.mx-profile .assign-row { display:flex; flex-direction:column; align-items:stretch; gap:6px; padding-top:14px; border-top:1px solid var(--line); }
.mx-profile .assign-row[hidden] { display:none; }
.mx-profile .assign-row label { font-size:13px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--ink); }
.mx-profile .assign-row select { width:100%; }
.mx-profile .shoutout-panel { padding:14px 0 0; border-top:1px solid var(--line); }
.mx-profile .shoutout-panel[hidden] { display:none; }
.mx-profile .shoutout-panel .so-label { cursor:pointer; display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--ink); }
.mx-profile .shoutout-panel .so-label::after { content:"+"; font-size:16px; line-height:1; color:var(--muted); }
.mx-profile .shoutout-panel.so-open .so-label::after { content:"–"; }
.mx-profile .shoutout-panel:not(.so-open) .shoutout-row, .mx-profile .shoutout-panel:not(.so-open) #shoutoutMsg { display:none; }
.mx-profile .shoutout-row { flex-direction:column; align-items:stretch; }
.mx-scrim { position:fixed; inset:0; z-index:118; background:rgba(23,42,27,.32); }
.mx-scrim[hidden] { display:none; }

/* Not enough room for three columns: the profile slides over. */
@media (max-width:1180px) {
  .mx, .mx.profile-hidden { grid-template-columns:var(--mx-list) minmax(0,1fr); grid-template-areas:"list chat"; }
  .mx.no-list, .mx.no-list.profile-hidden { grid-template-columns:minmax(0,1fr); grid-template-areas:"chat"; }
  .mx .mx-profile, .mx.profile-hidden .mx-profile { display:flex; position:fixed; top:0; right:0; bottom:0; z-index:120; width:min(360px, 92vw); border-left:1px solid var(--line); box-shadow:-18px 0 40px rgba(23,42,27,.18); transform:translateX(105%); visibility:hidden; transition:transform .22s ease, visibility 0s linear .22s; padding-top:52px; }
  .mx.profile-open .mx-profile { transform:none; visibility:visible; transition:transform .22s ease; }
  .mx.no-profile-data .mx-profile { display:none; }
  .mx-profile-close { display:flex; }
}
@media (max-width:1180px) and (prefers-reduced-motion:reduce) { .mx .mx-profile { transition:none; } }

/* Phones: one column at a time, edge to edge under the app's top bar. */
@media (max-width:760px) {
  .main:has(#view-messages:not([hidden])) { padding:0; }
  .mx { --mx-list:100%; display:block; height:calc(100dvh - 60px); min-height:0; margin:0; border:none; border-radius:0; }
  .mx > .mx-list, .mx > .mx-chat { height:100%; }
  .mx-list { border-right:none; }
  .mx-list-head { padding:14px 10px 8px 16px; }
  .mx:not(.no-list):not(.thread-open) .mx-chat { display:none; }
  .mx.thread-open .mx-list { display:none; }
  .mx.thread-open .mx-back { display:flex; }
  .mx-head { padding:8px 8px 8px 10px; min-height:58px; }
  .mx-thread { padding:4px 14px 12px; }
  .mx-composer { margin:0 10px 10px; }
  .mx-composer textarea { font-size:16px; }
  .mx-tool { width:36px; height:36px; }
  .mx-img { width:170px; }
}
.mx-p-history { margin-top:2px; }
.mx-profile-body { display:flex; flex-direction:column; gap:16px; }
.mx-profile-body:empty { display:none; }
.mx-msg-gutter time { white-space:nowrap; }
/* The feedback button sits over the send arrow on narrow screens: lift it
   clear of the composer while Messages is open, and behind the profile
   slide-over while that is open. */
@media (max-width:1180px) {
  body:has(#view-messages:not([hidden]) #messagesForm:not([hidden])) .fb-fab { bottom:104px; }
  body:has(.mx.profile-open) .fb-fab { display:none; }
}
@media (max-width:760px) {
  body:has(.mx:not(.no-list):not(.thread-open)) .fb-fab { bottom:20px; }
}

/* Future sign-ups waiting for the leader's approval (28 Oct) */
.ci-waiting { margin:0 0 18px; padding:14px 16px; border:1px solid color-mix(in srgb, #E9C46A 60%, transparent); border-radius:14px; background:color-mix(in srgb, #E9C46A 12%, transparent); }
.ci-waiting-h { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.ci-waiting-note { margin:6px 0 10px; font-size:12.5px; line-height:1.45; color:var(--muted); }
.ci-pending { cursor:default; }
.ci-decide { display:flex; gap:6px; margin-left:auto; flex-shrink:0; }
.ci-decide .btn { width:auto; }
@media (max-width:640px) { .ci-pending { flex-wrap:wrap; } .ci-decide { width:100%; margin-left:0; } .ci-decide .btn { flex:1; } }

/* Schedule for later (28 Oct): the send button splits into send + a chevron,
   as in Slack, and the chevron opens the schedule menu. */
.mx-send-wrap { display:inline-flex; align-items:stretch; border-radius:999px; overflow:hidden; }
.mx-send-wrap .mx-send { border-radius:999px 0 0 999px; width:38px; }
.mx-sched { width:28px; height:36px; display:flex; align-items:center; justify-content:center; border:none; border-left:1px solid color-mix(in srgb, var(--on-forest) 30%, transparent); background:var(--blue-fill); color:var(--on-forest); cursor:pointer; border-radius:0 999px 999px 0; }
.mx-sched:hover { filter:brightness(1.15); }
.mx-send-wrap .mx-send:disabled { opacity:1; filter:saturate(.25) brightness(1.25); }
.sched-menu { position:fixed; z-index:3000; min-width:240px; padding:8px 0; background:var(--card, #fff); border:1px solid var(--line, #e4dccb); border-radius:12px; box-shadow:0 12px 32px rgba(23,42,27,.16); font-family:inherit; }
.sched-h { padding:6px 18px 8px; font-size:13px; color:var(--muted); }
.sched-menu button { display:block; width:100%; text-align:left; padding:9px 18px; border:0; background:none; font:inherit; font-size:15px; color:var(--ink, #172A1B); cursor:pointer; }
.sched-menu button:hover, .sched-menu button:focus-visible { background:color-mix(in srgb, var(--blue-fill) 10%, transparent); outline:none; }
.sched-sep { height:1px; margin:6px 0; background:var(--line, #e4dccb); }
.sched-ov { position:fixed; inset:0; z-index:3001; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(23,42,27,.32); }
.sched-card { width:100%; max-width:380px; padding:22px; border-radius:16px; background:var(--card, #fff); box-shadow:0 18px 48px rgba(0,0,0,.2); }
.sched-card h3 { margin:0 0 14px; font-size:18px; }
.sched-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sched-fields label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; color:var(--muted); }
.sched-fields input { padding:10px 12px; border:1px solid var(--line, #e4dccb); border-radius:10px; font:inherit; font-size:15px; color:var(--ink, #172A1B); background:#fff; }
.sched-when { margin:12px 0 0; font-size:13px; color:var(--muted); }
.sched-err { margin:8px 0 0; font-size:13px; color:#b42318; }
.sched-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.sched-actions .btn { width:auto; }
.mx-scheduled { display:flex; flex-direction:column; gap:6px; margin:0 0 8px; }
.mx-sched-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; background:color-mix(in srgb, var(--blue-fill) 8%, transparent); font-size:13px; }
.mx-sched-item.failed { background:#fdecea; }
.mx-sched-ic { flex:0 0 auto; color:var(--muted); display:flex; }
.mx-sched-text { display:flex; flex-direction:column; min-width:0; flex:1; }
.mx-sched-text span { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mx-sched-err { color:#b42318 !important; white-space:normal !important; }
.mx-sched-x { flex:0 0 auto; border:0; background:none; font:inherit; font-size:13px; font-weight:700; color:var(--ink, #172A1B); text-decoration:underline; cursor:pointer; }
/* The post composer's Publish gets the same chevron. */
.sp-publish-wrap { display:inline-flex; align-items:stretch; }
.sp-publish-wrap #spCPublish { border-top-right-radius:0; border-bottom-right-radius:0; }
.sp-sched { display:flex; align-items:center; justify-content:center; width:38px; border:0; border-left:1px solid rgba(255,255,255,.35); border-radius:0 999px 999px 0; background:var(--blue-fill); color:var(--on-forest); cursor:pointer; }
.sp-sched:disabled { opacity:.45; cursor:default; }
.sp-scheduled { display:flex; flex-direction:column; gap:6px; margin:0 0 14px; }

/* Archive this House (Hannita, 3 Nov), at the foot of Edit House. */
.p-archive { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--white); }
.p-archive b { display:block; font-size:14px; }
.p-archive span { display:block; margin-top:2px; font-size:12.5px; line-height:1.45; color:var(--muted); }
.p-archive .btn { flex:none; width:auto; color:var(--danger); border-color:var(--danger); }
.ar-actions .ar-delete { color:var(--danger); border-color:var(--danger); }
@media (max-width:560px) { .p-archive { flex-direction:column; align-items:flex-start; } }

/* "Watch the onboarding again" at the foot of the Welcome kit (Paola, 18 Nov). */
.kit-onb { width:100%; margin-top:6px; display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--white); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.kit-onb:hover { border-color:#B88A1E; }
.kit-onb:focus-visible { outline:2px solid #B88A1E; outline-offset:2px; }
.kit-onb-icon { width:34px; height:34px; flex:0 0 34px; border-radius:10px; background:var(--blue-fill); color:var(--on-forest); display:grid; place-items:center; }
.kit-onb-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:14px; }
.kit-onb-text span { color:var(--muted); font-size:13px; }
.kit-onb-arrow { color:var(--muted); }

/* "Good to know" after Module 3 (Paola, 18 Nov): a module's look, no checkbox. */
.ob-extra > summary { list-style:none; }
.ob-extra > summary::-webkit-details-marker { display:none; }
.ob-extra .ob-extra-icon { color:var(--muted); }
.ob-extra .module-body ul { padding-left:18px; }
.ob-extra .module-body li { margin-bottom:6px; }

/* Communications (Paola, 19 Nov): the emails a House's guests get. */
.cm-intro { margin:0 0 14px; color:var(--muted); font-size:14px; max-width:62ch; }
.cm-row .cm-tag { flex:0 0 auto; font-size:10.5px; padding:3px 9px; border-radius:999px; background:var(--line); color:var(--muted); text-transform:uppercase; font-weight:700; }
.cm-row .cm-on { background:color-mix(in srgb, var(--blue-fill) 16%, transparent); color:var(--blue-fill); }
.cm-row .cm-off { background:color-mix(in srgb, var(--danger) 12%, transparent); color:var(--danger); }
.cm-open { padding:4px 0 18px; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
.cm-row .cm-pill { border:0; font-family:inherit; letter-spacing:.06em; cursor:pointer; transition:box-shadow .15s, filter .15s; }
.cm-row .cm-pill:hover, .cm-row .cm-pill:focus-visible { box-shadow:0 0 0 2px currentColor; outline:none; }
.cm-row .cm-pill:disabled { opacity:.6; cursor:progress; }
/* The pill's tooltip: when it next goes, and what a click does. */
.cm-row .cm-pill { position:relative; }
.cm-row .cm-pill[data-tip]::after { content:attr(data-tip) "\A" attr(data-tip-sub); white-space:pre-line; position:absolute; right:0; bottom:calc(100% + 8px); z-index:30; width:max-content; max-width:240px; padding:8px 11px; border-radius:10px; background:var(--ink); color:var(--cream); font-family:inherit; font-size:12.5px; font-weight:500; line-height:1.55; letter-spacing:0; text-transform:none; text-align:left; box-shadow:0 6px 18px rgba(23,42,27,.18); opacity:0; pointer-events:none; transform:translateY(3px); transition:opacity .12s, transform .12s; }
.cm-row .cm-pill[data-tip]:hover::after, .cm-row .cm-pill[data-tip]:focus-visible::after { opacity:1; transform:none; }
.res-what .cm-when { color:var(--ink); font-weight:600; }
.cm-ann { border-top:1px dashed var(--line); }
/* The same field as My House's forms (.mhd-form input). */
.cm-subject { width:100%; max-width:520px; box-sizing:border-box; border:1px solid var(--line); border-radius:12px; padding:11px 13px; font:inherit; font-size:15px; font-weight:400; background:var(--white); color:var(--ink); }
.cm-subject:focus { outline:2px solid #B88A1E; outline-offset:1px; }
.cm-find { margin:14px 0 0; }
/* Send it now: one line at the top of an open email, two small pills. */
.cm-send { padding-bottom:10px; border-bottom:1px solid var(--line); }
.cm-send-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.cm-send-row .cm-label { margin:0 4px 0 0; }
.cm-send-row .btn { width:auto; }
.cm-send .cm-msg { margin-top:6px; }
/* Room between the last name and Cancel (Paola, 23 Nov: "the cancel button touches the line"). */
.cm-pick .app-dialog-actions { margin-top:18px; }
.cm-people li:last-child button { border-bottom:0; }
.cm-label { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-top:6px; }
.cm-status { font-weight:500; text-transform:none; letter-spacing:0; margin-left:6px; }
.cm-hint { margin:0; font-size:12.5px; color:var(--muted); line-height:1.45; }
.cm-link { background:none; border:0; padding:0; color:var(--blue-fill); font:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; margin-left:4px; }
.cm-lock { margin:0; font-size:13.5px; color:var(--muted); }
.cm-preview { display:block; width:100%; height:420px; border:1px solid var(--line); border-radius:12px; background:#F7F3EA; }
.cm-msg { margin:0; font-size:13px; color:var(--danger); min-height:0; }
.cm-msg:empty { display:none; }
.cm-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:4px; }
.cm-sched { font-size:12.5px; color:var(--muted); }
.cm-pick { width:min(460px,100%); }
.cm-people { list-style:none; margin:12px 0 0; padding:0; max-height:50vh; overflow:auto; }
.cm-people button { display:flex; flex-direction:column; gap:1px; width:100%; text-align:left; background:none; border:0; border-bottom:1px solid var(--line); padding:10px 4px; font:inherit; cursor:pointer; }
.cm-people button:hover { background:color-mix(in srgb, var(--line) 50%, transparent); }
.cm-people span { font-size:12.5px; color:var(--muted); }
