@font-face { font-family: Spectral; font-weight: 300; font-display: swap; src: url(/static/fonts/spectral-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Spectral; font-weight: 400; font-display: swap; src: url(/static/fonts/spectral-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Spectral; font-weight: 400; font-style: italic; font-display: swap; src: url(/static/fonts/spectral-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Spectral; font-weight: 600; font-display: swap; src: url(/static/fonts/spectral-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/static/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/static/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(/static/fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Grenze Gotisch"; font-weight: 500; font-display: swap; src: url(/static/fonts/grenze-gotisch-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Grenze Gotisch"; font-weight: 700; font-display: swap; src: url(/static/fonts/grenze-gotisch-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url(/static/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(/static/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-display: swap; src: url(/static/fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }

:root {
  --night: #15213a;
  --watch: #2b3c61;
  --first-light: #f2b65a;
  --ember: #c9803a;
  --stone: #e9ecf0;
  --paper: #ffffff;
  --ink: #1a2233;
  --muted: #566074;
  --line: #d3d8e0;
  /* The outline of a control: quiet buttons, pickers, open marks. */
  --rim: #8b94a5;
  --ok: #24694a;
  --bad: #a33a2c;
  --warn: #8a5c0d;
  --serif: Spectral, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gothic: "Grenze Gotisch", Georgia, serif;
  --book: "EB Garamond", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  /* On a wide screen the header, public pages and footer share one centered width, so their left
     edges line up while their backgrounds still run edge to edge. */
  --max: 72rem;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; }
/* The footer stays at the bottom of a short page. */
body { display: flex; flex-direction: column; min-height: 100svh; }
body > main { flex: 1 0 auto; width: 100%; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--first-light); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* The header, the same on every page. The brand is a small label, not a title: each page has its own
   one title below. */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; padding: 0.35rem var(--edge); background: var(--night); color: #eef1f6; font-family: var(--sans); font-size: 1rem; line-height: 1.4; }
.site-head .brand { margin-right: auto; padding: 0.65rem 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-head nav a { padding: 0.65rem 0; text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }
.site-head nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--first-light); }
.site-head .badge { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border-radius: 1em; background: #eef1f6; color: var(--night); font-size: 0.75rem; font-weight: 700; line-height: 1.4; text-align: center; vertical-align: 0.1em; }

/* Public site: always dark, red Gothic headings over book text, after the editions' own pages. The
   member pages take the same colors when dark, from dark.css. */
.public {
  --ground: #0b0a09; --ink: #efe7d8; --quiet: #c9bfae; --muted: #a99d88; --blood: #d9473b;
  --scripture: #ef6a5c; --ref: #e8dcc4; --line: #3a2f1e; --stone: #15130f; --button: #b8322a;
  background: var(--ground); color: var(--ink); font-family: var(--book); font-size: 1.2rem; color-scheme: dark;
}
.public h1, .public h2, .public h3 { font-family: var(--gothic); font-weight: 700; color: var(--blood); }
.public .skip { background: var(--ground); }

.public .site-head { background: var(--ground); border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--book); font-size: 1.1rem; }
.public .site-head .brand { padding: 0.5rem 0; font-family: var(--gothic); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--blood); }
/* On the home page the header lies on the painting: no bar of its own, only the painting's shading. */
.public .site-head.over-art { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: transparent; border-bottom: 0; }

.cta { display: inline-block; font-family: var(--gothic); font-weight: 500; font-size: 1.6rem; line-height: 1.2; padding: 0.4em 1.2em 0.45em; background: #b8322a; color: #fbf3e4; text-decoration: none; border: 1px solid #b8322a; border-radius: 2px; cursor: pointer; }
.cta:hover { background: #c93d33; border-color: #c93d33; }
.cta.quiet { background: transparent; color: #efe7d8; border-color: #8a7a5c; font-size: 1.45rem; }
.cta.quiet:hover { background: rgba(239, 231, 216, 0.06); border-color: #c9bfae; }
.ref { margin: 0.6rem 0 1.4rem; font-family: var(--gothic); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: 0.06em; color: var(--ref); }
.scripture { font-style: italic; color: var(--scripture); }
.credit { font-size: 0.875rem; line-height: 1.4; color: #b3a891; }

/* The home painting fills the first screen. The words sit at the lower left over its dark passages;
   the shading keeps them readable and lets the light through on the right. */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; overflow: hidden; background: var(--ground); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(11, 10, 9, 0.96) 0%, rgba(11, 10, 9, 0.78) 36%, rgba(11, 10, 9, 0.12) 68%),
    linear-gradient(90deg, rgba(11, 10, 9, 0.82) 0%, rgba(11, 10, 9, 0.4) 42%, rgba(11, 10, 9, 0) 68%),
    linear-gradient(180deg, rgba(11, 10, 9, 0.8) 0, rgba(11, 10, 9, 0) 8.75rem);
}
.hero-text { position: relative; z-index: 2; max-width: calc(var(--edge) + 46rem); padding: 7rem var(--gutter) 4.5rem var(--edge); }
.hero h1 { margin: 0; font-size: clamp(3.6rem, 7.8vw, 7rem); line-height: 0.95; }
.hero-lede { margin: 0 0 2rem; max-width: 36rem; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; }
.hero-text p:last-child { margin: 0; }
.credit--hero { position: absolute; z-index: 2; right: var(--edge); bottom: 1.25rem; margin: 0; max-width: 35rem; text-align: right; }
.credit--foot { display: none; flex-basis: 100%; }

/* What is left of the home page after the first screen: a notice, and the way to the rules. */
.rules-band { padding: clamp(3.5rem, 8vw, 6rem) var(--edge); border-top: 1px solid var(--line); text-align: center; }
.rules-band > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.rules-band h2 { margin-top: 0; margin-bottom: 1.25rem; font-size: clamp(2.4rem, 4.4vw, 3.1rem); line-height: 1.05; }
.rules-band p { margin-top: 0; margin-bottom: 1.25rem; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.5; }
.rules-band .muted { margin-bottom: 0.4rem; font-size: 1.1rem; color: var(--quiet); }
.rules-band .scripture { margin-bottom: 0.4rem; }
.rules-band .ref { margin-bottom: 2.25rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.rules-band .next-run { margin-top: 1.5rem; margin-bottom: 0; font-size: 1.05rem; color: var(--muted); }

@media (max-width: 48rem) {
  /* Small enough that the five public links share one row under the name. */
  .public .site-head { font-size: 1rem; }
  .public .site-head nav { gap: 0 0.9rem; }
  .hero-art img { object-position: 50% 35%; }
  .hero::before {
    background:
      linear-gradient(20deg, rgba(11, 10, 9, 0.97) 0%, rgba(11, 10, 9, 0.9) 34%, rgba(11, 10, 9, 0.35) 60%, rgba(11, 10, 9, 0) 78%),
      linear-gradient(180deg, rgba(11, 10, 9, 0.85) 0, rgba(11, 10, 9, 0) 8.5rem);
  }
  /* The text stops short of the right edge so the light still shows there. */
  .hero-text { padding: 9rem 3rem 2.25rem var(--edge); }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.2rem); }
  .credit--hero { display: none; }
  .credit--foot { display: block; }
}

.ladder { width: 100%; max-width: 46rem; border-collapse: collapse; margin: 1.5rem 0; font-size: 1.05rem; }
.ladder th, .ladder td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-top: 1px solid var(--line); }
.ladder th { font-weight: 600; white-space: nowrap; color: var(--ref); }

/* The reading width limits the text, not the padded box, so the wide-screen margin cannot squeeze it. */
.page { padding: 2rem var(--edge) 4rem; }
.page.prose { box-sizing: content-box; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.05; margin: 0.4em 0 0.6em; max-width: 20ch; }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; margin: 1.5em 0 0.5em; }
.prose h3 { font-size: 1.45rem; margin: 1.8em 0 0.3em; }
.prose p { margin: 0 0 1em; }
.notice { padding: 0.8rem 1rem; margin: 1rem 0; border-left: 4px solid var(--button); background: var(--stone); font-size: 1.1rem; }

.site-foot { padding: 2.5rem var(--edge); background: var(--ground); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--book); font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-foot a { color: var(--quiet); }
.site-foot .copy { flex-basis: 100%; margin-top: 0.8rem; font-size: 0.95rem; }

/* Forms: shared by site and app. 16px text stops iOS zooming on focus. */
.form { font-family: var(--sans); max-width: 34rem; }
.field { margin: 0 0 1.15rem; }
.field label, .field > .label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.hint { display: block; color: var(--muted); font-size: 0.95rem; font-weight: 400; }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 0.7rem 0.75rem; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #aab2c0; border-radius: 3px;
}
textarea { min-height: 7rem; resize: vertical; }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; align-items: start; margin-bottom: 0.7rem; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; }
.radios { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.radios label { font-weight: 400; display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.hp { position: absolute; left: -9999px; }
.public .form { font-family: var(--book); font-size: 1.1rem; }
.public .field label, .public .field > .label { font-weight: 500; }
.public input[type="text"], .public input[type="email"], .public input[type="password"], .public select, .public textarea { font-family: var(--book); font-size: 1.05rem; color: var(--ink); background: var(--stone); border-color: #6b5f4a; }
.public .check input, .public .radios input { accent-color: var(--button); }
.public .flash.ok { background: #1c3a2a; color: #d9eee3; }
.public .flash.error { background: #4a1c15; color: #f6dcd6; }

/* Member app */
/* One surface from the header down: the title and the content sit on it together, separated by rules
   rather than boxed as cards. */
.app { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.45; --surface: #fff; background: var(--surface); min-height: 100svh; }
/* Member pages share the header's left edge, so the brand, the title and the content line up. */
.app-main { padding: 0 var(--edge) 3rem; }
.app-main > * { max-width: 42rem; }
.app-top { padding: 1.5rem 0 0.75rem; }
@media (min-width: 48rem) { .app-top { padding-top: 2.25rem; } }
.app .flash { margin-top: 1rem; border-radius: 3px; }
.standing { margin-left: 0.5em; color: var(--muted); font-size: 0.86em; font-weight: 400; white-space: nowrap; }
.standing span + span { margin-left: 0.5em; }
.standing .badge { width: 1.15em; height: 1.15em; margin-right: 0.4em; vertical-align: -0.22em; }
.app-top .standing { margin-left: 0; color: inherit; }
.app-top .day { font-family: var(--serif); font-size: 2rem; font-weight: 300; line-height: 1.1; margin: 0; }
.app-top .sub { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.98rem; }

/* History: a square per Challenge, its month over its year, colored by year. */
.history-switch { display: flex; gap: 0.5rem; margin: 0.6rem 0 0; font-family: var(--sans); font-size: 0.9rem; }
.history-switch a { padding: 0.2rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.history-switch a[aria-current="page"] { background: var(--night); border-color: var(--night); color: #fff; }
.roll { list-style: none; margin: 0; padding: 0; }
.roll li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.roll-name { margin: 0; font-weight: 600; }
.icons { display: flex; flex-wrap: wrap; gap: 4px; margin: 0.35rem 0 0; }
/* The year classes color known years. A later year falls back to the night color. */
.month-icon { background: var(--night); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: #fff; font-family: var(--sans); font-size: 10px; font-weight: 700; line-height: 1; text-align: center; text-transform: uppercase; }
.month-icon.y21 { background: #2b3c61; } .month-icon.y22 { background: #24694a; } .month-icon.y23 { background: #8a5c0d; }
.month-icon.y24 { background: #7a2f5c; } .month-icon.y25 { background: #c9803a; } .month-icon.y26 { background: #15213a; }
.month-icon.y20 { background: #5a3e85; } .month-icon.y27 { background: #1d6470; }
/* A Challenge he is in now, and a month he asked to add that command has not yet approved. */
.month-icon.now, .month-icon.asked { background: transparent; color: var(--ink); border: 2px dashed currentColor; }
.month-icon.asked { color: #7a2f5c; border-style: dotted; }
/* The list's search, sort and filters, which wrap on a phone, and command's line under a man. */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end; margin: 1rem 0 0; font-family: var(--sans); }
.filters label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; color: var(--muted); }
.filters .find-box { flex: 2 1 14rem; }
.filters select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.75rem 0 0; padding: 0; font-family: var(--sans); font-size: 0.9rem; }
.chips a { display: inline-block; padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.chips a[aria-current="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.count-line { margin: 0.9rem 0 0.25rem; color: var(--muted); font-size: 0.95rem; }
.man > .hint { margin: 0.2rem 0 0; }

/* His page: the standing row, then his Challenges beside his Telegram ids, stacked on a phone. */
.man-page { font-family: var(--sans); }
.app-main > .man-page { max-width: 64rem; }
.man-page .back { margin: 0.25rem 0 0.75rem; font-size: 0.95rem; }
.standing-form { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; align-items: flex-end; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.standing-form label { display: flex; flex-direction: column; gap: 0.15rem; flex: 0 1 7rem; font-size: 0.85rem; color: var(--muted); }
.standing-form label.wide { flex: 1 1 13rem; }
.standing-form input, .standing-form select { color: var(--ink); }
.standing-form input.warn { border: 2px solid #e0a800; background: #fff8e1; }
.warn-line { margin: 0.6rem 0 0; padding: 0.5rem 0.75rem; border: 2px solid #e0a800; border-radius: 3px; background: #fff8e1; color: #3d2f00; font-size: 0.95rem; }
.man-columns { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 1.25rem; }
.man-columns > section { flex: 1 1 20rem; min-width: 0; }
.man-columns > section:first-child { flex-basis: 24rem; }
.man-columns h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.year-grid { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.5rem 0 0.75rem; }
.year-row { display: flex; align-items: center; gap: 0.35rem; }
.year-row .year { width: 3rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.month-box { position: relative; display: inline-grid; }
.month-box > span { display: inline-grid; place-items: center; width: 2.75rem; height: 2.5rem; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.month-box input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.month-box input:checked + span, .month-box.credited > span { background: var(--year, var(--night)); border-color: var(--year, var(--night)); color: #fff; }
.month-box input:focus-visible + span { outline: 3px solid var(--first-light); outline-offset: 1px; }
/* A month changed on this page and not yet saved. */
.month-box input:checked:not([data-was]) + span, .month-box input[data-was]:not(:checked) + span { box-shadow: 0 0 0 3px var(--first-light); }
.month-box.now > span { border: 2px dashed var(--ink); color: var(--ink); }
.month-box.locked > span { border-style: dashed; opacity: 0.45; }
.month-box.asked > span { border: 2px dotted #7a2f5c; }
.month-box.y20 { --year: #5a3e85; } .month-box.y21 { --year: #2b3c61; } .month-box.y22 { --year: #24694a; } .month-box.y23 { --year: #8a5c0d; }
.month-box.y24 { --year: #7a2f5c; } .month-box.y25 { --year: #c9803a; } .month-box.y26 { --year: #15213a; } .month-box.y27 { --year: #1d6470; }
.id-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.id-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.inline-add { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; margin-top: 0.5rem; }
.inline-add label { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 12rem; font-size: 0.85rem; color: var(--muted); }
.man-rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 3rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.man-rest h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.man-rest h3 { margin: 1rem 0 0.25rem; font-size: 1rem; }
.man-rest p { margin: 0.25rem 0; }
.man-rest .standing-form { padding-bottom: 0; border-bottom: 0; }
.standing-form .check-line { flex-direction: row; align-items: center; gap: 0.4rem; flex: 1 1 100%; color: var(--ink); font-size: 0.95rem; }
.standing-form .check-line input { width: auto; }
.id-list .row-actions { margin: 0; }
.man-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; margin: 0.1rem 0 0; color: var(--muted); font-family: var(--sans); font-size: 0.9rem; }
.man-flag { padding: 0 0.5rem; border-radius: 999px; background: var(--stone); color: var(--ink); font-size: 0.8rem; font-weight: 600; }
.man-flag.warn { background: #fff8e1; color: #5c4400; box-shadow: inset 0 0 0 1px #e0a800; }
.challenge { border-top: 1px solid var(--line); padding: 0.6rem 0; }
.challenge summary { display: flex; gap: 0.6rem; align-items: center; cursor: pointer; list-style: none; }
.challenge .names { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0.5rem 0 0; padding: 0; font-family: var(--sans); font-size: 0.9rem; }
.challenge .names li { border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.6rem; }
.challenge .names li.me { background: var(--night); border-color: var(--night); color: #fff; }
.challenge .names li.me .standing { color: #dfe4ec; }
.flash { padding: 0.75rem 1rem; font-weight: 600; }
.flash.ok { background: #d9eee3; color: #14492f; }
.flash.error { background: #f6dcd6; color: #7c2417; }

.tasks { list-style: none; margin: 0; padding: 0; }
.task { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.task h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.task .state { margin: 0.15rem 0 0; color: var(--muted); }
.task.done .state { color: var(--ok); font-weight: 600; }
.task.failed .state { color: var(--bad); font-weight: 600; }
.task form { margin-top: 0.75rem; }
/* Today: one line per job, a mark, the job and its state. The open one holds its button. Done and
   missed are said in words as well as color. */
.eyebrow { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.95rem; }
.eyebrow .standing { margin-left: 0.2em; }
.checklist { list-style: none; margin: 0.75rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.check-item { border-bottom: 1px solid var(--line); }
.check-item > details > summary, .check-item > .line { display: grid; grid-template-columns: 1.75rem auto 1fr; align-items: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.4rem 0; }
.check-item > details > summary { grid-template-columns: 1.75rem auto 1fr 0.75rem; list-style: none; cursor: pointer; }
.check-item > details > summary::-webkit-details-marker { display: none; }
.check-item > details > summary::after { content: ""; justify-self: end; width: 0.45rem; height: 0.45rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-0.15rem) rotate(45deg); }
.check-item > details[open] > summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.mark { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 0.9rem; font-weight: 700; line-height: 1; color: #fff; box-shadow: inset 0 0 0 2px var(--rim); }
.is-due .mark { box-shadow: inset 0 0 0 2px var(--ember); }
.is-done .mark { background: var(--ok); box-shadow: none; }
.is-late .mark, .is-missed .mark { background: var(--bad); box-shadow: none; }
.check-item .what { font-size: 1.15rem; font-weight: 700; }
.check-item .status { justify-self: end; text-align: right; font-size: 0.98rem; font-weight: 600; }
.is-done .status { color: var(--ok); }
.is-late .status, .is-missed .status { color: var(--bad); }
.check-body { padding: 0.1rem 0 1.25rem; }
.check-body > form + details, .check-body > form + form { margin-top: 1rem; }
.item-title { margin: 0 0 0.75rem; font-weight: 600; }
.penance-line { display: block; margin: 1.25rem 0 0; padding: 0.8rem 1rem; border-radius: 3px; text-decoration: none; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.penance-line strong { display: block; color: var(--bad); }
.penance-line span { color: var(--muted); font-size: 0.95rem; }
.penance-line:hover strong { text-decoration: underline; }
/* The phone's file picker is the workout card's main control, so it gets a real button. */
input[type="file"] { width: 100%; font: 400 0.98rem/1.4 var(--sans); color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 0.75rem; padding: 0.8rem 1.1rem; font: 700 1.05rem/1.2 var(--sans); color: var(--ink); background: transparent; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rim); cursor: pointer; }
.btn { display: inline-block; font: 700 1.05rem/1.2 var(--sans); padding: 0.75rem 1.1rem; color: #fff; background: var(--night); border: 0; border-radius: 3px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--watch); }
.btn.big { display: block; width: 100%; padding: 1.1rem; font-size: 1.3rem; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rim); }
.btn.small { font-size: 0.95rem; padding: 0.45rem 0.7rem; }
.btn[disabled] { background: #9aa3b2; cursor: not-allowed; }
.progress-note { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; min-height: 1.3em; }
.progress-note.error { color: var(--bad); font-weight: 600; }

details.more { margin-top: 0.6rem; }
details.more summary { cursor: pointer; font-weight: 600; padding: 0.2rem 0; }
.blocks { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.blocks li { margin-bottom: 0.6rem; }
.blocks .blk { font-weight: 600; display: block; }
.section-title { margin: 1.75rem 0 0.25rem; font-size: 1rem; font-weight: 700; color: var(--muted); }
.plain-list { margin: 0; padding: 0.5rem 0 0.8rem 1.2rem; border-bottom: 1px solid var(--line); }
.plain-list li { margin-bottom: 0.3rem; }
.rest { padding: 1.5rem 0; }
.rest h2 { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; margin: 0 0 0.3em; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.inline input[type="number"] { width: 5.5rem; }
.inline label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.inline .grow { flex: 1 1 100%; }
/* Today's boards: three 10px squares per man, check-in, workout and Scripture. Grey not yet, green
   done, red missed or late. His own is outlined. A square that turns green pulses to twice its size. */
.boards { margin: 0 0 0.4rem; }
.board { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.3rem 0; }
.board-label { flex: 0 0 4.2rem; margin: 0; font: 600 0.8rem/14px var(--sans); color: var(--muted); }
.board-men { display: flex; flex-wrap: wrap; gap: 5px 7px; margin: 0; padding: 0; list-style: none; }
.board-man { display: flex; gap: 2px; padding: 1px; border-radius: 2px; }
.board-man.me { box-shadow: 0 0 0 1px var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 2px; background: #c9ced8; }
.dot.ok { background: #2f9e5b; }
.dot.bad { background: #c43d2f; }
.dot.pop { animation: pop 0.8s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(2); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dot.pop { animation: none; } }

/* Scripture: one grid at a time, five across, books then chapters then verses. The line above the
   grid says where he is. Marked is his last reading. Start is the first verse of the passage. */
#scripture { scroll-margin-top: 0.5rem; }
.pick-path { display: flex; align-items: center; gap: 0.75rem; margin: 0.4rem 0 0.6rem; font: 700 1.05rem/1.2 var(--sans); }
.pick-path .back { display: flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; font-size: 1.4rem; text-decoration: none; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; margin-bottom: 0.9rem; }
.pick { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 0.15rem; border: 0; border-radius: 3px; background: none; box-shadow: inset 0 0 0 1px var(--rim); font: 700 0.95rem/1.1 var(--sans); color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; }
.pick.marked { box-shadow: inset 0 0 0 3px var(--first-light); }
.pick.start { background: var(--night); color: #fff; box-shadow: none; }

.msg { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.msg .who { font-weight: 700; }
.msg time { color: var(--muted); font-size: 0.9rem; margin-left: 0.4rem; }
.msg p { margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.3rem; font-size: 0.95rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Lead: what needs him, then his men with this morning's ticks. A man's own page holds the actions. */
.wait-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wait-list > li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.wait-list p { margin: 0 0 0.5rem; }
.find { display: flex; gap: 0.5rem; margin: 1.25rem 0 0; }
.find input { flex: 1; min-width: 0; }
.section-title .count { margin-left: 0.4em; font-weight: 400; }
/* Fixed columns, so the ticks line up from one squad's table to the next. */
.men { width: 100%; border-collapse: collapse; table-layout: fixed; }
.men thead th:not(:first-child) { width: 5.25rem; }
.men th, .men td { padding: 0.65rem 0.5rem 0.65rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.men thead th { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.men td { width: 4.75rem; }
.men tbody th { font-weight: 400; }
.men tbody th a { font-weight: 700; }
.flag { display: block; font-size: 0.85rem; font-weight: 700; color: var(--bad); }
.tick { font-weight: 700; }
.tick.is-on_time { color: var(--ok); }
.tick.is-late, .tick.is-missed { color: var(--bad); }
.tick.is-pending, .tick.is-rest { font-weight: 400; color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.evidence { margin: 0.75rem 0 0; max-height: 24rem; border-radius: 3px; background: #000; }
.grave { margin-top: 2rem; }
.grave > summary { color: var(--bad); }
.item { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.item p { margin: 0; }
.tiny-form { margin-top: 0.4rem; }
.tiny-form summary { cursor: pointer; font-weight: 600; font-size: 0.98rem; }
.admin { padding: 0.25rem 0 1rem; }
.admin h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.link-list a:hover { text-decoration: underline; }
.scroll { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.table th, .table td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.link-box { word-break: break-all; padding: 0.7rem; background: var(--stone); font-size: 0.95rem; }
.rulebook { padding: 0.25rem 0 1rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; }
.rulebook h2 { font-size: 1.3rem; font-weight: 600; margin: 1.8rem 0 0.4rem; }
.rulebook .src { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

/* The header's menu: History, Lead, Rules and Me behind three bars, open without script. */
.site-head .menu { position: relative; }
.site-head .menu > summary { display: flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; list-style: none; cursor: pointer; position: relative; }
.site-head .menu > summary::-webkit-details-marker { display: none; }
.site-head .menu .bars, .site-head .menu .bars::before, .site-head .menu .bars::after { display: block; width: 1.2rem; height: 2px; background: currentColor; }
.site-head .menu .bars { position: relative; }
.site-head .menu .bars::before, .site-head .menu .bars::after { content: ""; position: absolute; left: 0; }
.site-head .menu .bars::before { top: -6px; }
.site-head .menu .bars::after { top: 6px; }
.site-head .menu .alert { position: absolute; top: 0.55rem; right: 0.45rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #d9473b; }
.site-head .menu-items { position: absolute; right: 0; top: 100%; z-index: 20; display: flex; flex-direction: column; min-width: 11rem; padding: 0.3rem 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface, #fff); color: var(--ink); box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); }
.site-head .menu-items a { padding: 0.7rem 1rem; }
.site-head .menu-items a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--first-light); }
.site-head.signed-in nav { align-items: center; gap: 0 1.25rem; }

/* Chat, after the chat apps men already use: rooms across the top, the newest message at the bottom
   beside the box he types in. What men type are bubbles, his own on the right; what the app posts for
   them are slim lines, so typing stands out. */
.chat { --mine: color-mix(in srgb, var(--first-light) 24%, var(--surface)); --theirs: var(--stone); padding-top: 0.4rem; display: flex; flex-direction: column; min-height: calc(100svh - 3.6rem); }
.room-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.4rem 0; scrollbar-width: none; }
.room-tab { flex: none; padding: 0.3rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.room-tab[aria-current="page"] { background: var(--night); border-color: var(--night); color: #fff; }
.room-tab .badge { margin-left: 0.35em; padding: 0 0.4em; border-radius: 1em; background: var(--bad); color: #fff; font-size: 0.75rem; }
.archive-note { margin: 0.2rem 0; font-size: 0.88rem; color: var(--muted); }
.room-mute { flex: none; margin-left: auto; }
.room-mute .room-tab { padding: 0.3rem 0.6rem; background: none; font: inherit; line-height: inherit; cursor: pointer; }
.pinned { margin: 0.2rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pinned > summary { overflow: hidden; padding: 0.45rem 0; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; list-style: none; }
.pinned > summary::-webkit-details-marker { display: none; }
.pin-label { font-weight: 700; color: var(--ember); }
.pinned ol { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.pinned li { padding: 0.25rem 0; overflow-wrap: anywhere; }
.room-board { padding: 0.3rem 0 0.4rem; border-bottom: 1px solid var(--line); }
.room-board .board-count { margin: 0 0 0.2rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.room-board .board { margin: 0.15rem 0; }
.room-board .dot { width: 6px; height: 6px; }
.older { margin: 0.5rem 0; text-align: center; font-size: 0.95rem; }
.stream { list-style: none; margin: 0; padding: 0.3rem 0 0.5rem; }
.empty { color: var(--muted); text-align: center; }
.msg-bubble { display: flex; align-items: flex-end; gap: 0.45rem; margin: 0.35rem 0; scroll-margin-top: 4rem; }
.msg-bubble.mine { flex-direction: row-reverse; }
.bubble { min-width: 0; max-width: 82%; padding: 0.4rem 0.7rem 0.3rem; border-radius: 12px 12px 12px 3px; background: var(--theirs); }
.mine .bubble { border-radius: 12px 12px 3px 12px; background: var(--mine); }
.note .bubble { box-shadow: inset 3px 0 0 var(--ember); }
.bubble p { margin: 0; }
.bubble .to { font-size: 0.8rem; font-weight: 700; color: var(--ember); }
/* A raised issue: its card in the leaders' room, and his thread under Me. */
.issue-card { border-left: 3px solid var(--ember); padding: 0.1rem 0 0.1rem 0.6rem; margin-bottom: 0.4rem; }
.issue-head { margin: 0; font-size: 0.85rem; }
.issue-head span { margin-left: 0.6em; color: var(--muted); }
.issue-card .row-actions { margin-top: 0.3rem; }
.issue-thread { list-style: none; padding: 0; margin: 0 0 1rem; }
.issue-thread li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.issue-thread .who { margin: 0; }
.issue-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.2rem 0 0; }
.bubble .who { font-size: 0.85rem; }
.bubble .name { font-weight: 700; }
.bubble .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .meta { display: flex; justify-content: flex-end; gap: 0.5em; margin-top: 0.1rem; color: var(--muted); font-size: 0.75rem; }
.avatar { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--watch); color: #fff; font-weight: 700; font-size: 0.9rem; object-fit: cover; }
.quote { display: block; margin: 0.15rem 0 0.25rem; padding: 0.2rem 0.5rem; border-left: 3px solid var(--ember); border-radius: 3px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: inherit; font-size: 0.88rem; text-decoration: none; overflow-wrap: anywhere; }
.quote.gone { color: var(--muted); font-style: italic; }
.msg-line { margin: 0.15rem 0; scroll-margin-top: 4rem; font-size: 0.9rem; }
.msg-line .line { display: flex; align-items: center; gap: 0.45rem; min-height: 1.9rem; color: var(--muted); }
.msg-line .line-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.msg-line .line-text b { color: var(--ink); }
.msg-line time { flex: none; font-size: 0.78rem; }
.fold-open { flex: 1; min-width: 0; }
.fold-open > summary { list-style: none; cursor: pointer; overflow-wrap: anywhere; }
.fold-open > summary::-webkit-details-marker { display: none; }
.fold-open > summary b { color: var(--ink); }
.fold-members { list-style: none; margin: 0.2rem 0 0.3rem; padding: 0 0 0 0.8rem; border-left: 2px solid var(--line); }
.marks { display: inline-flex; flex: none; gap: 2px; }
.marks .dot { width: 8px; height: 8px; }
.marks .dot.ring { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--ink); }
.thumb { flex: none; display: block; width: 3rem; height: 2.25rem; overflow: hidden; border-radius: 4px; background: #000; }
.thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb-note, .archived, .pinned-mark { flex: none; font-size: 0.75rem; color: var(--muted); }
.archived { font-weight: 700; }
.reactions { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.msg-line .reactions { margin-left: 2.1rem; }
.reactions button, .reactions span { padding: 0 0.45rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 0.85rem/1.6 var(--sans); cursor: pointer; }
.reactions button.mine { border-color: var(--ember); background: color-mix(in srgb, var(--first-light) 20%, var(--surface)); }
.msg-menu { position: relative; flex: none; align-self: center; }
.msg-menu > summary { padding: 0 0.4rem; color: var(--muted); list-style: none; cursor: pointer; font-weight: 700; }
.msg-menu > summary::-webkit-details-marker { display: none; }
.msg-menu-body { position: absolute; right: 0; z-index: 10; display: flex; flex-direction: column; gap: 0.1rem; min-width: 12rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); }
/* A bubble's menu opens under the whole row, from the side its bubble starts on, so a short message's
   menu never runs off the screen. */
.msg-bubble { position: relative; }
.msg-bubble .msg-menu { position: static; }
.msg-bubble .msg-menu-body { top: 100%; left: 2.45rem; right: auto; }
.msg-bubble.mine .msg-menu-body { left: auto; right: 0; }
.msg-menu-body a, .msg-menu-body .link { display: block; width: 100%; padding: 0.5rem 0.4rem; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.react-row { display: flex; justify-content: space-between; }
.react-row button { min-width: 2.2rem; min-height: 2.2rem; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
/* A quiet room still keeps the box at the bottom of the screen: the top margin takes the slack. */
.chat .composer { position: sticky; bottom: 0; z-index: 5; margin: auto calc(-1 * var(--edge)) 0; padding: 0.45rem var(--edge) max(0.45rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.composing { margin: 0 0 0.35rem; font-size: 0.88rem; color: var(--muted); overflow-wrap: anywhere; }
.composer-row { display: flex; align-items: flex-end; gap: 0.4rem; }
.chat .composer textarea { flex: 1; min-width: 0; min-height: 2.6rem; max-height: 9rem; padding: 0.5rem 0.7rem; border-radius: 18px; resize: none; }
.composer .send { flex: none; min-height: 2.6rem; padding: 0 1rem; border: 0; border-radius: 18px; background: var(--night); color: #fff; font-weight: 700; cursor: pointer; }
.composer .emoji-btn, .composer .gif-btn { flex: none; min-width: 2.6rem; min-height: 2.6rem; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.app-main:has(.chat) { padding-bottom: 0; }
.new-messages { position: fixed; left: 50%; bottom: 5.2rem; z-index: 6; transform: translateX(-50%); padding: 0.35rem 0.9rem; border: 0; border-radius: 999px; background: var(--night); color: #fff; font: 600 0.9rem/1.3 var(--sans); box-shadow: 0 4px 12px rgb(0 0 0 / 0.25); cursor: pointer; }
.bubble .gif { display: block; max-width: 14rem; max-height: 14rem; border-radius: 8px; background: #000; cursor: pointer; }
.msg-bubble.sticker .bubble { padding: 0; background: none; box-shadow: none; }
.sticker-img { display: block; width: 9rem; height: 9rem; object-fit: contain; }
.shelf-pop { margin-top: 0.4rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shelf-pop[hidden] { display: none; }
.shelf-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.shelf-tabs button { padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: 600 0.88rem/1.4 var(--sans); cursor: pointer; }
.shelf-tabs button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.shelf-tabs .shelf-add { margin-left: auto; }
.shelf-note { margin: 0 0 0.3rem; font-size: 0.85rem; color: var(--muted); }
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; max-height: 14rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.shelf-grid button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: var(--stone); overflow: hidden; cursor: pointer; }
.shelf-grid video, .shelf-grid img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shelf-list { list-style: none; margin: 0; padding: 0; }
.shelf-list li { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.shelf-list p { margin: 0; font-size: 0.9rem; }
.shelf-thumb { width: 4rem; height: 4rem; border-radius: 6px; background: var(--stone); object-fit: cover; }
.photo-link { display: block; margin: 0.2rem 0; }
.bubble .photo { display: block; max-width: 100%; max-height: 22rem; border-radius: 8px; background: var(--stone); }
.photo-note { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.composer .photo-btn { flex: none; min-width: 2.6rem; min-height: 2.6rem; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.me-photo { display: block; width: 96px; height: 96px; margin: 0.3rem 0 0.6rem; border-radius: 50%; object-fit: cover; }
.send-error { margin: 0 0 0.35rem; color: var(--bad); font-size: 0.88rem; font-weight: 600; }
.emoji-pop { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.1rem; max-height: 12rem; overflow-y: auto; margin-top: 0.4rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { min-height: 2.4rem; border: 0; background: none; font-size: 1.35rem; cursor: pointer; }

/* Member pages in the dark live in dark.css, which the layout loads only when they should be dark. */

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
